From 0debed166f733b294fbeefd7a0d5b04a59cee369 Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Mon, 3 Mar 2025 20:11:34 -0500 Subject: [PATCH 01/41] add 0 district legislators --- .node-version | 2 +- .nvmrc | 2 +- app/controllers/bills_controller.rb | 18 +++++++++- app/controllers/buckets/assets_controller.rb | 5 ++- .../concerns/default_meta_taggable.rb | 1 + .../components/bill/BillComponent.tsx | 33 +++++++++++++----- .../bill/charts/DistrictVotesChart.tsx | 5 --- app/frontend/hooks/usePollBillOnUserVote.ts | 34 ++++++++----------- app/models/user_vote.rb | 1 + app/services/score_updater_service.rb | 2 ++ config/environments/production.rb | 4 +-- config/recurring.yml | 2 +- .../legislators/congress_dot_gov.rb | 22 +++++++++--- lib/region_util.rb | 2 ++ lib/sway_google_cloud_storage.rb | 8 +++-- package-lock.json | 16 ++++----- package.json | 2 +- public/images/robots.txt | 3 -- .../congress/congress/legislators.json | 27 +++++++++++++++ 19 files changed, 128 insertions(+), 61 deletions(-) delete mode 100644 public/images/robots.txt diff --git a/.node-version b/.node-version index cc7ce7f4..517f3866 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -v22.13.1 +v22.14.0 diff --git a/.nvmrc b/.nvmrc index cc7ce7f4..517f3866 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v22.13.1 +v22.14.0 diff --git a/app/controllers/bills_controller.rb b/app/controllers/bills_controller.rb index eb1aa92a..e8a2b7fd 100644 --- a/app/controllers/bills_controller.rb +++ b/app/controllers/bills_controller.rb @@ -8,6 +8,7 @@ class BillsController < ApplicationController before_action :verify_is_admin, only: %i[new edit create update destroy] before_action :set_bill, only: %i[show edit update destroy] + before_action :meta_title # GET /bills or /bills.json def index @@ -66,7 +67,7 @@ def edit end, legislators: current_sway_locale&.legislators&.filter do |l| if current_sway_locale&.congress? && @bill.external_id.starts_with?("PN") - l.active && l.title.starts_with?("Sen") + l.active && !l.title.starts_with?("Rep") else l.active end @@ -130,6 +131,21 @@ def destroy new end + def meta_title + @meta_title = case action_name + when "index" + current_sway_locale.present? ? "#{current_sway_locale&.human_name} Legislation" : "Sway Legislation" + when "show" + if @bill.present? && current_sway_locale.present? + "#{@bill.external_id} - #{current_sway_locale&.human_name}" + else + "Sway Legislation" + end + else + "Sway" + end + end + private def set_bill diff --git a/app/controllers/buckets/assets_controller.rb b/app/controllers/buckets/assets_controller.rb index 16a4f2a8..363050e8 100644 --- a/app/controllers/buckets/assets_controller.rb +++ b/app/controllers/buckets/assets_controller.rb @@ -6,15 +6,14 @@ class AssetsController < ApplicationController extend T::Sig include SwayGoogleCloudStorage - before_action :verify_is_admin, only: %i[create] + before_action :verify_is_admin # Upload a file to the assets bucket in GCP # return the new file location def create render json: { bucket_file_path: file_name, - url: generate_put_signed_url_v4(bucket_name: SwayGoogleCloudStorage::BUCKETS[:ASSETS], file_name:, - content_type: buckets_assets_params[:mime_type]) + url: generate_put_signed_url_v4(bucket_name: SwayGoogleCloudStorage::BUCKETS[:ASSETS], file_name:, content_type: buckets_assets_params[:mime_type]) }, status: :ok end diff --git a/app/controllers/concerns/default_meta_taggable.rb b/app/controllers/concerns/default_meta_taggable.rb index e920e52e..4a2972e1 100644 --- a/app/controllers/concerns/default_meta_taggable.rb +++ b/app/controllers/concerns/default_meta_taggable.rb @@ -28,6 +28,7 @@ def default_meta_tags { "description" => meta_description, "author" => "Plebeian Technologies, Inc.", + "title" => meta_title, "og:description" => meta_description, "og:type" => "website", "og:title" => meta_title, diff --git a/app/frontend/components/bill/BillComponent.tsx b/app/frontend/components/bill/BillComponent.tsx index 14ed7769..0ee28a22 100644 --- a/app/frontend/components/bill/BillComponent.tsx +++ b/app/frontend/components/bill/BillComponent.tsx @@ -125,14 +125,18 @@ const BillComponent: React.FC = ({ bill, bill_score, sponsor, organizati )} - - {/* {user_vote && ( */} - - -

How Others Voted

-
-
- {/* )} */} + {user_vote && ( + // Render this below summary when there is no user vote + + +

How Others Voted

+
+
+ )} {bill?.summary && (
@@ -165,6 +169,19 @@ const BillComponent: React.FC = ({ bill, bill_score, sponsor, organizati
)} + {!user_vote && ( + // Render this below summary when there is no user vote + + +

How Others Voted

+
+
+ )} +
diff --git a/app/frontend/components/bill/charts/DistrictVotesChart.tsx b/app/frontend/components/bill/charts/DistrictVotesChart.tsx index 32423510..18a180c2 100644 --- a/app/frontend/components/bill/charts/DistrictVotesChart.tsx +++ b/app/frontend/components/bill/charts/DistrictVotesChart.tsx @@ -5,7 +5,6 @@ import { chartDimensions, SWAY_COLORS } from "../../../sway_utils"; import { IChildChartProps } from "./BillChartsContainer"; import { BarElement, CategoryScale, Chart as ChartJS, Legend, LinearScale, Title, Tooltip } from "chart.js"; -import { isEmpty } from "lodash"; import { getBarChartOptions } from "../../../sway_utils/charts"; ChartJS.register(CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend); @@ -13,10 +12,6 @@ ChartJS.register(CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend) const DistrictVotesChart: React.FC = ({ bill, score, district }) => { const districtScore = score.districts.find((d) => d.district.name === district.name); - if (isEmpty(districtScore)) { - return null; - } - const data = { labels: ["Support", "Oppose"], datasets: [ diff --git a/app/frontend/hooks/usePollBillOnUserVote.ts b/app/frontend/hooks/usePollBillOnUserVote.ts index 9a3843d2..47121151 100644 --- a/app/frontend/hooks/usePollBillOnUserVote.ts +++ b/app/frontend/hooks/usePollBillOnUserVote.ts @@ -1,11 +1,11 @@ import { router } from "@inertiajs/react"; +import { logDev } from "app/frontend/sway_utils"; import { useCallback, useEffect, useState } from "react"; -const MAX_ITERATIONS = 3; +const MAX_ITERATIONS = 5; export const usePollBillOnUserVote = () => { const [voted, setVoted] = useState(false); - const [int, setInt] = useState(); const [iterations, setIterations] = useState(0); const onUserVote = useCallback(() => { @@ -18,26 +18,20 @@ export const usePollBillOnUserVote = () => { useEffect(() => { if (iterations >= MAX_ITERATIONS) { - setInt(undefined); setIterations(0); - window.clearInterval(int); - } else if (!voted && int !== undefined) { - window.clearInterval(int); - setInt(undefined); - } else if (iterations < MAX_ITERATIONS && voted && int === undefined) { - setInt( - window.setInterval(() => { - setIterations((current) => current + 1); - router.reload({ fresh: true }); - }, 1000), - ); + setVoted(false); + } else if (iterations < MAX_ITERATIONS && voted) { + window.setTimeout(() => { + logDev("usePollBillOnUserVote.useEffect - reloading page. Iteration -", iterations); + router.reload({ + fresh: true, + onFinish: () => { + setIterations((current) => current + 1); + }, + }); + }, 1000); } - return () => { - if (int) { - window.clearInterval(int); - } - }; - }, [int, iterations, voted]); + }, [iterations, voted]); return { onUserVote, onScoreReceived }; }; diff --git a/app/models/user_vote.rb b/app/models/user_vote.rb index 43c8d0ec..b043769e 100644 --- a/app/models/user_vote.rb +++ b/app/models/user_vote.rb @@ -67,6 +67,7 @@ def against? # Update BillScore, BillScoreDistrict and UserLegislatorScore sig { void } def update_scores + Rails.logger.info("UserVote - #{id} - created. Creating job OnUserVoteUpdateScoresJob.") OnUserVoteUpdateScoresJob.perform_later(self) end diff --git a/app/services/score_updater_service.rb b/app/services/score_updater_service.rb index 1034ad04..ab65dc14 100644 --- a/app/services/score_updater_service.rb +++ b/app/services/score_updater_service.rb @@ -15,6 +15,8 @@ def initialize(user_vote) @districts = T.let(nil, T.nilable(T::Array[District])) @bill_districts = T.let(nil, T.nilable(T::Array[District])) @user_districts = T.let(nil, T.nilable(T::Array[District])) + + Rails.logger.info("ScoreUpdaterService.new - initialized service with UserVote - #{user_vote.id}") end def run diff --git a/config/environments/production.rb b/config/environments/production.rb index 829a88ca..11a8483f 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -69,7 +69,7 @@ # Log to STDOUT # https://stackoverflow.com/a/32628272/6410635 - config.logger = Logger.new($stdout) + config.logger = Logger.new(STDOUT) # Use a different cache store in production. # config.cache_store = :mem_cache_store @@ -77,7 +77,7 @@ # Use a real queuing backend for Active Job (and separate queues per environment). config.active_job.queue_adapter = :solid_queue config.solid_queue.connects_to = {database: {writing: :queue}} - config.solid_queue.logger = ActiveSupport::Logger.new($stdout) + config.solid_queue.logger = ActiveSupport::Logger.new(STDOUT) # config.active_job.queue_name_prefix = "sway_rails_production" config.action_mailer.perform_caching = false diff --git a/config/recurring.yml b/config/recurring.yml index 8f2883a2..2f9e04ab 100644 --- a/config/recurring.yml +++ b/config/recurring.yml @@ -10,4 +10,4 @@ production: class: OnDeactivatedPhoneDeleteUserJob queue: background args: [] - schedule: every day at 4am + schedule: every day at 10am diff --git a/db/seeds/seed_preparers/legislators/congress_dot_gov.rb b/db/seeds/seed_preparers/legislators/congress_dot_gov.rb index e81c5676..6ac69aa4 100644 --- a/db/seeds/seed_preparers/legislators/congress_dot_gov.rb +++ b/db/seeds/seed_preparers/legislators/congress_dot_gov.rb @@ -25,11 +25,15 @@ def active end def title - (json.fetch("terms").last&.fetch("chamber", nil) == "Senate") ? "Sen." : "Rep." + if potus? + "Pres." + else + (json.fetch("terms").last&.fetch("chamber", nil) == "Senate") ? "Sen." : "Rep." + end end def party - @_party ||= Legislator.to_party_char_from_name(json.fetch("partyHistory").first&.fetch("partyAbbreviation")) + @_party ||= Legislator.to_party_char_from_name(json.fetch("partyName", json.dig("partyHistory", 0, "partyAbbreviation"))) end def first_name @@ -46,7 +50,7 @@ def phone def link default_link = "https://api.congress.gov/v3/member/#{external_id}" - json.fetch("officialWebsiteUrl", default_link) || default_link + json.fetch("url", json.fetch("officialWebsiteUrl", default_link)) || default_link end def country @@ -54,7 +58,7 @@ def country end def region_code - @_region_code ||= RegionUtil.from_region_name_to_region_code(json.fetch("state")) + @_region_code ||= potus? ? json.fetch("state") : RegionUtil.from_region_name_to_region_code(json.fetch("state")) end def postal_code @@ -69,6 +73,10 @@ def congress? true end + def potus? + external_id == "POTUS" # set by Sway + end + class << self def prepare(json) api_key = ENV["CONGRESS_GOV_API_KEY"] @@ -103,6 +111,10 @@ def prepare(json) return nil end + if bioguide_id == "POTUS" + return json + end + # T.unsafe - .get does not exist on Faraday response = T.unsafe(Faraday).get("https://api.congress.gov/v3/member/#{bioguide_id}?&api_key=#{api_key}") result = JSON.parse(response.body).fetch("member") @@ -122,7 +134,7 @@ def prepare(json) ) nil else - result + result.deep_stringify_keys end end end diff --git a/lib/region_util.rb b/lib/region_util.rb index 15597c53..142945ad 100644 --- a/lib/region_util.rb +++ b/lib/region_util.rb @@ -43,6 +43,7 @@ def self.from_region_code_to_region_name(code) end STATE_NAMES_CODES = T.let({ + "United States": "US", # POTUS Alabama: "AL", Alaska: "AK", "American Samoa": "AS", @@ -105,6 +106,7 @@ def self.from_region_code_to_region_name(code) }, T::Hash[Symbol, String]) STATE_CODES_NAMES = T.let({ + US: "United States", # POTUS AL: "Alabama", AK: "Alaska", AS: "American Samoa", diff --git a/lib/sway_google_cloud_storage.rb b/lib/sway_google_cloud_storage.rb index 9d974939..caf4e59d 100644 --- a/lib/sway_google_cloud_storage.rb +++ b/lib/sway_google_cloud_storage.rb @@ -56,7 +56,7 @@ def generate_get_signed_url_v4(bucket_name:, file_name:) storage.signed_url bucket_name, file_name, method: "GET", expires: storage_expiry_time, version: :v4 end - sig { params(bucket_name: String, file_name: String, content_type: String).void } + sig { params(bucket_name: String, file_name: String, content_type: String).returns(T.nilable(String)) } def generate_put_signed_url_v4(bucket_name:, file_name:, content_type:) return unless bucket_name.present? && file_name.present? @@ -115,7 +115,11 @@ def delete_file(bucket_name:, file_name:) bucket = storage.bucket bucket_name, skip_lookup: true file = bucket.file file_name - file.delete + if file.present? + file.delete + else + Rails.logger.warn("SwayGoogleCloudStorage.delete_file -> File #{file_name} does NOT exist. Skipping deletion.") + end end private diff --git a/package-lock.json b/package-lock.json index cb496f17..c25331de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -46,7 +46,7 @@ "@eslint/js": "^9.21.0", "@types/eslint__js": "^9.14.0", "@types/lodash": "^4.17.16", - "@types/node": "^20.12.13", + "@types/node": "^22.13.8", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", "@vitejs/plugin-react": "^4.3.4", @@ -2804,13 +2804,13 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "20.17.22", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.22.tgz", - "integrity": "sha512-9RV2zST+0s3EhfrMZIhrz2bhuhBwxgkbHEwP2gtGWPjBzVQjifMzJ9exw7aDZhR1wbpj8zBrfp3bo8oJcGiUUw==", + "version": "22.13.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.8.tgz", + "integrity": "sha512-G3EfaZS+iOGYWLLRCEAXdWK9my08oHNZ+FHluRiggIYJPOXzhOiDgpVCUHaUvyIC5/fj7C/p637jdzC666AOKQ==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~6.19.2" + "undici-types": "~6.20.0" } }, "node_modules/@types/parse-json": { @@ -10442,9 +10442,9 @@ } }, "node_modules/undici-types": { - "version": "6.19.8", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", - "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", "dev": true, "license": "MIT" }, diff --git a/package.json b/package.json index 100d02f2..81bb0a37 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "@eslint/js": "^9.21.0", "@types/eslint__js": "^9.14.0", "@types/lodash": "^4.17.16", - "@types/node": "^20.12.13", + "@types/node": "^22.13.8", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", "@vitejs/plugin-react": "^4.3.4", diff --git a/public/images/robots.txt b/public/images/robots.txt deleted file mode 100644 index e9e57dc4..00000000 --- a/public/images/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: diff --git a/storage/seeds/data/united_states/congress/congress/legislators.json b/storage/seeds/data/united_states/congress/congress/legislators.json index 4f65b16b..272c5d39 100644 --- a/storage/seeds/data/united_states/congress/congress/legislators.json +++ b/storage/seeds/data/united_states/congress/congress/legislators.json @@ -1,4 +1,31 @@ [ + { + "bioguideId": "POTUS", + "name": "Trump, Donald", + "partyName": "Republican", + "state": "US", + "firstName": "Donald", + "lastName": "Trump", + "currentMember": true, + "district": "0", + "terms": { + "item": [ + { + "chamber": "White House", + "startYear": 2025 + }, + { + "chamber": "White House", + "startYear": 2021 + } + ] + }, + "updateDate": "", + "url": "https://whitehouse.gov", + "depiction": { + "imageUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/83/TrumpPortrait.jpg/1024px-TrumpPortrait.jpg" + } + }, { "bioguideId": "M001243", "name": "McCormick, David", From 63609e54924320314453618ac01305d229e679ea Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Thu, 6 Mar 2025 15:42:28 -0500 Subject: [PATCH 02/41] padawan - job for sending notifications, with tests --- .../on_bill_becomes_botw_notify_users_job.rb | 19 + app/models/bill.rb | 22 +- app/models/bill_notification.rb | 47 + app/models/sway_locale.rb | 4 +- app/scraper/scraper/faraday_connector.rb | 2 +- config/environments/test.rb | 3 +- config/recurring.yml | 22 +- ...0250306171014_create_bill_notifications.rb | 9 + db/schema.rb | 10 +- sorbet/rbi/dsl/bill.rbi | 21 + sorbet/rbi/dsl/bill_notification.rbi | 1194 +++++++++++++++++ .../on_bill_becomes_botw_notify_users_job.rbi | 20 + spec/factories/vote.rb | 5 +- ...bill_becomes_botw_notify_users_job_spec.rb | 65 + ...ess_legislator_vote_update_service_spec.rb | 73 +- 15 files changed, 1450 insertions(+), 66 deletions(-) create mode 100644 app/jobs/on_bill_becomes_botw_notify_users_job.rb create mode 100644 app/models/bill_notification.rb create mode 100644 db/migrate/20250306171014_create_bill_notifications.rb create mode 100644 sorbet/rbi/dsl/bill_notification.rbi create mode 100644 sorbet/rbi/dsl/on_bill_becomes_botw_notify_users_job.rbi create mode 100644 spec/jobs/on_bill_becomes_botw_notify_users_job_spec.rb diff --git a/app/jobs/on_bill_becomes_botw_notify_users_job.rb b/app/jobs/on_bill_becomes_botw_notify_users_job.rb new file mode 100644 index 00000000..3d35fed2 --- /dev/null +++ b/app/jobs/on_bill_becomes_botw_notify_users_job.rb @@ -0,0 +1,19 @@ +# typed: strict + +# When a Bill becomes the Bill of the Week +# Notify all users via push +class OnBillBecomesBotwNotifyUsersJob < ApplicationJob + extend T::Sig + + queue_as :background + + sig { void } + def perform + SwayLocale.all.each do |sway_locale| + botw = Bill.of_the_week(sway_locale:) + + # Only send 1 notification per iteration of this job + break if botw&.notifyable? && BillNotification.create!(bill: botw) + end + end +end diff --git a/app/models/bill.rb b/app/models/bill.rb index 40ac34cc..d5ee0dda 100644 --- a/app/models/bill.rb +++ b/app/models/bill.rb @@ -46,6 +46,7 @@ class Bill < ApplicationRecord belongs_to :sway_locale has_one :bill_score, dependent: :destroy + has_one :bill_notification, dependent: :destroy has_many :bill_cosponsors, dependent: :destroy has_many :votes, inverse_of: :bill, dependent: :destroy @@ -53,7 +54,6 @@ class Bill < ApplicationRecord has_many :organization_bill_positions, inverse_of: :bill, dependent: :destroy before_validation :downcase_status - after_update :send_notifications_on_update after_create_commit :create_bill_score validates :external_id, :category, :chamber, :introduced_date_time_utc, :link, :status, :summary, :title, :sway_locale_id, :legislator_id, presence: { @@ -120,6 +120,11 @@ def organizations organization_bill_positions.map(&:organization) end + sig { returns(T::Boolean) } + def notifyable? + scheduled_release_date_utc == Time.zone.today && bill_notification.nil? + end + # Render a single bill from a controller sig { params(current_user: T.nilable(User), current_sway_locale: T.nilable(SwayLocale)).returns(T::Hash[Symbol, T.anything]) } def render(current_user, current_sway_locale) @@ -198,21 +203,6 @@ def downcase_status end end - # after create - - sig { void } - def send_notifications_on_update - Rails.logger.info("Bill.send_notifications_on_update - New Release Date - #{scheduled_release_date_utc} - WAS - #{attribute_before_last_save("scheduled_release_date_utc")}") - if updated_scheduled_release_date_utc? - SwayPushNotificationService.new( - title: "New Bill of the Week", - body: "#{title} in #{sway_locale.human_name}" - ).send_push_notification - end - rescue Exception => e # rubocop:disable Lint/RescueException - Rails.logger.error(e) - end - def updated_scheduled_release_date_utc? scheduled_release_date_utc == Time.zone.today && attribute_before_last_save("scheduled_release_date_utc") != Time.zone.today end diff --git a/app/models/bill_notification.rb b/app/models/bill_notification.rb new file mode 100644 index 00000000..8367490a --- /dev/null +++ b/app/models/bill_notification.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# typed: true + +# == Schema Information +# +# Table name: bill_notifications +# +# id :integer not null, primary key +# created_at :datetime not null +# updated_at :datetime not null +# bill_id :integer not null +# +# Indexes +# +# index_bill_notifications_on_bill_id (bill_id) UNIQUE +# +# Foreign Keys +# +# bill_id (bill_id => bills.id) +# +class BillNotification < ApplicationRecord + extend T::Sig + + belongs_to :bill + + after_create_commit :notify + + sig { returns(Bill) } + def bill + T.cast(super, Bill) + end + + private + + sig { void } + def notify + Rails.logger.info("BillNotification.notify - sending notifications for bill - #{bill.id} / #{bill.sway_locale.name}") + SwayPushNotificationService.new( + title: "New Bill of the Week", + body: "#{bill.sway_locale.city_name}: #{bill.title}" + ).send_push_notification + rescue Exception => e # rubocop:disable Lint/RescueException + Rails.logger.warn("BillNotification.notify - ERROR sending notifications for bill - #{bill.id} / #{bill.sway_locale.name}") + Rails.logger.error(e) + Sentry.capture_exception(e) + end +end diff --git a/app/models/sway_locale.rb b/app/models/sway_locale.rb index db47ebee..6dbae344 100644 --- a/app/models/sway_locale.rb +++ b/app/models/sway_locale.rb @@ -163,8 +163,6 @@ def to_builder end end - private - sig { returns(String) } def country_name SwayLocale.format_name(T.cast(RegionUtil.from_country_code_to_name(country), String)) @@ -180,6 +178,8 @@ def city_name SwayLocale.format_name(T.cast(city, String)) end + private + sig { void } def nameify_country self.country = country_name diff --git a/app/scraper/scraper/faraday_connector.rb b/app/scraper/scraper/faraday_connector.rb index 64df5b8c..c12684e8 100644 --- a/app/scraper/scraper/faraday_connector.rb +++ b/app/scraper/scraper/faraday_connector.rb @@ -91,7 +91,7 @@ def put(path, body = {}) end def timeout - 45 + 5 end def connection diff --git a/config/environments/test.rb b/config/environments/test.rb index fc025289..2575a91d 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -71,5 +71,6 @@ # .tap { |logger| logger.formatter = ::Logger::Formatter.new } # .then { |logger| ActiveSupport::TaggedLogging.new(logger) } - config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "debug") + # config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "warn") + # config.logger = Logger.new($stdout) end diff --git a/config/recurring.yml b/config/recurring.yml index 2f9e04ab..e155817f 100644 --- a/config/recurring.yml +++ b/config/recurring.yml @@ -1,9 +1,14 @@ -# development: -# remove_users_with_deactivate_phone_numbers: -# class: OnDeactivatedPhoneDeleteUserJob -# queue: background -# args: [] -# schedule: every day at 4am +development: + on_bill_becomes_botw_notify_users_job: + class: OnBillBecomesBotwNotifyUsersJob + queue: background + args: [] + schedule: every day at 6pm + # remove_users_with_deactivate_phone_numbers: + # class: OnDeactivatedPhoneDeleteUserJob + # queue: background + # args: [] + # schedule: every day at 4am production: remove_users_with_deactivate_phone_numbers: @@ -11,3 +16,8 @@ production: queue: background args: [] schedule: every day at 10am + on_bill_becomes_botw_notify_users_job: + class: OnBillBecomesBotwNotifyUsersJob + queue: background + args: [] + schedule: every day at 6pm diff --git a/db/migrate/20250306171014_create_bill_notifications.rb b/db/migrate/20250306171014_create_bill_notifications.rb new file mode 100644 index 00000000..f5f5caaf --- /dev/null +++ b/db/migrate/20250306171014_create_bill_notifications.rb @@ -0,0 +1,9 @@ +class CreateBillNotifications < ActiveRecord::Migration[8.0] + def change + create_table :bill_notifications do |t| + t.references :bill, null: false, foreign_key: true, index: {unique: true} + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb index f5da0b25..d01e6ce6 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.0].define(version: 2025_02_24_201540) do +ActiveRecord::Schema[8.0].define(version: 2025_03_06_171014) do create_table "addresses", force: :cascade do |t| t.string "street", null: false t.string "street2" @@ -47,6 +47,13 @@ t.index ["legislator_id"], name: "index_bill_cosponsors_on_legislator_id" end + create_table "bill_notifications", force: :cascade do |t| + t.integer "bill_id", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["bill_id"], name: "index_bill_notifications_on_bill_id", unique: true + end + create_table "bill_score_districts", force: :cascade do |t| t.integer "bill_score_id", null: false t.integer "district_id", null: false @@ -342,6 +349,7 @@ add_foreign_key "bill_cosponsors", "bills" add_foreign_key "bill_cosponsors", "legislators" + add_foreign_key "bill_notifications", "bills" add_foreign_key "bill_score_districts", "bill_scores" add_foreign_key "bill_score_districts", "districts" add_foreign_key "bill_scores", "bills" diff --git a/sorbet/rbi/dsl/bill.rbi b/sorbet/rbi/dsl/bill.rbi index 47542a7d..3b5aa5a0 100644 --- a/sorbet/rbi/dsl/bill.rbi +++ b/sorbet/rbi/dsl/bill.rbi @@ -343,12 +343,21 @@ class Bill sig { params(value: T::Enumerable[::BillCosponsor]).void } def bill_cosponsors=(value); end + sig { returns(T.nilable(::BillNotification)) } + def bill_notification; end + + sig { params(value: T.nilable(::BillNotification)).void } + def bill_notification=(value); end + sig { returns(T.nilable(::BillScore)) } def bill_score; end sig { params(value: T.nilable(::BillScore)).void } def bill_score=(value); end + sig { params(args: T.untyped, blk: T.untyped).returns(::BillNotification) } + def build_bill_notification(*args, &blk); end + sig { params(args: T.untyped, blk: T.untyped).returns(::BillScore) } def build_bill_score(*args, &blk); end @@ -358,6 +367,12 @@ class Bill sig { params(args: T.untyped, blk: T.untyped).returns(::SwayLocale) } def build_sway_locale(*args, &blk); end + sig { params(args: T.untyped, blk: T.untyped).returns(::BillNotification) } + def create_bill_notification(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(::BillNotification) } + def create_bill_notification!(*args, &blk); end + sig { params(args: T.untyped, blk: T.untyped).returns(::BillScore) } def create_bill_score(*args, &blk); end @@ -416,6 +431,9 @@ class Bill sig { params(value: T::Enumerable[::OrganizationBillPosition]).void } def organization_bill_positions=(value); end + sig { returns(T.nilable(::BillNotification)) } + def reload_bill_notification; end + sig { returns(T.nilable(::BillScore)) } def reload_bill_score; end @@ -425,6 +443,9 @@ class Bill sig { returns(T.nilable(::SwayLocale)) } def reload_sway_locale; end + sig { void } + def reset_bill_notification; end + sig { void } def reset_bill_score; end diff --git a/sorbet/rbi/dsl/bill_notification.rbi b/sorbet/rbi/dsl/bill_notification.rbi new file mode 100644 index 00000000..372ea13b --- /dev/null +++ b/sorbet/rbi/dsl/bill_notification.rbi @@ -0,0 +1,1194 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for dynamic methods in `BillNotification`. +# Please instead update this file by running `bin/tapioca dsl BillNotification`. + + +class BillNotification + include GeneratedAssociationMethods + include GeneratedAttributeMethods + extend CommonRelationMethods + extend GeneratedRelationMethods + + private + + sig { returns(NilClass) } + def to_ary; end + + class << self + sig do + params( + attributes: T.untyped, + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(::BillNotification) + end + def new(attributes = nil, &block); end + end + + module CommonRelationMethods + sig { params(block: T.nilable(T.proc.params(record: ::BillNotification).returns(T.untyped))).returns(T::Boolean) } + def any?(&block); end + + sig { params(column_name: T.any(String, Symbol)).returns(T.any(Integer, Float, BigDecimal)) } + def average(column_name); end + + sig { params(block: T.nilable(T.proc.params(object: ::BillNotification).void)).returns(::BillNotification) } + sig do + params( + attributes: T::Array[T.untyped], + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(T::Array[::BillNotification]) + end + sig do + params( + attributes: T.untyped, + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(::BillNotification) + end + def build(attributes = nil, &block); end + + sig { params(operation: Symbol, column_name: T.any(String, Symbol)).returns(T.any(Integer, Float, BigDecimal)) } + def calculate(operation, column_name); end + + sig { params(column_name: T.nilable(T.any(String, Symbol))).returns(Integer) } + sig { params(column_name: NilClass, block: T.proc.params(object: ::BillNotification).void).returns(Integer) } + def count(column_name = nil, &block); end + + sig { params(block: T.nilable(T.proc.params(object: ::BillNotification).void)).returns(::BillNotification) } + sig do + params( + attributes: T::Array[T.untyped], + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(T::Array[::BillNotification]) + end + sig do + params( + attributes: T.untyped, + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(::BillNotification) + end + def create(attributes = nil, &block); end + + sig { params(block: T.nilable(T.proc.params(object: ::BillNotification).void)).returns(::BillNotification) } + sig do + params( + attributes: T::Array[T.untyped], + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(T::Array[::BillNotification]) + end + sig do + params( + attributes: T.untyped, + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(::BillNotification) + end + def create!(attributes = nil, &block); end + + sig do + params( + attributes: T::Array[T.untyped], + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(T::Array[::BillNotification]) + end + sig do + params( + attributes: T.untyped, + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(::BillNotification) + end + def create_or_find_by(attributes, &block); end + + sig do + params( + attributes: T::Array[T.untyped], + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(T::Array[::BillNotification]) + end + sig do + params( + attributes: T.untyped, + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(::BillNotification) + end + def create_or_find_by!(attributes, &block); end + + sig { returns(T::Array[::BillNotification]) } + def destroy_all; end + + sig { params(conditions: T.untyped).returns(T::Boolean) } + def exists?(conditions = :none); end + + sig { returns(T.nilable(::BillNotification)) } + def fifth; end + + sig { returns(::BillNotification) } + def fifth!; end + + sig do + params( + args: T.any(String, Symbol, ::ActiveSupport::Multibyte::Chars, T::Boolean, BigDecimal, Numeric, ::ActiveRecord::Type::Binary::Data, ::ActiveRecord::Type::Time::Value, Date, Time, ::ActiveSupport::Duration, T::Class[T.anything]) + ).returns(::BillNotification) + end + sig do + params( + args: T::Array[T.any(String, Symbol, ::ActiveSupport::Multibyte::Chars, T::Boolean, BigDecimal, Numeric, ::ActiveRecord::Type::Binary::Data, ::ActiveRecord::Type::Time::Value, Date, Time, ::ActiveSupport::Duration, T::Class[T.anything])] + ).returns(T::Enumerable[::BillNotification]) + end + sig do + params( + args: NilClass, + block: T.proc.params(object: ::BillNotification).void + ).returns(T.nilable(::BillNotification)) + end + def find(args = nil, &block); end + + sig { params(args: T.untyped).returns(T.nilable(::BillNotification)) } + def find_by(*args); end + + sig { params(args: T.untyped).returns(::BillNotification) } + def find_by!(*args); end + + sig do + params( + start: T.untyped, + finish: T.untyped, + batch_size: Integer, + error_on_ignore: T.untyped, + order: Symbol, + block: T.proc.params(object: ::BillNotification).void + ).void + end + sig do + params( + start: T.untyped, + finish: T.untyped, + batch_size: Integer, + error_on_ignore: T.untyped, + order: Symbol + ).returns(T::Enumerator[::BillNotification]) + end + def find_each(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, order: :asc, &block); end + + sig do + params( + start: T.untyped, + finish: T.untyped, + batch_size: Integer, + error_on_ignore: T.untyped, + order: Symbol, + block: T.proc.params(object: T::Array[::BillNotification]).void + ).void + end + sig do + params( + start: T.untyped, + finish: T.untyped, + batch_size: Integer, + error_on_ignore: T.untyped, + order: Symbol + ).returns(T::Enumerator[T::Enumerator[::BillNotification]]) + end + def find_in_batches(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, order: :asc, &block); end + + sig do + params( + attributes: T::Array[T.untyped], + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(T::Array[::BillNotification]) + end + sig do + params( + attributes: T.untyped, + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(::BillNotification) + end + def find_or_create_by(attributes, &block); end + + sig do + params( + attributes: T::Array[T.untyped], + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(T::Array[::BillNotification]) + end + sig do + params( + attributes: T.untyped, + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(::BillNotification) + end + def find_or_create_by!(attributes, &block); end + + sig do + params( + attributes: T::Array[T.untyped], + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(T::Array[::BillNotification]) + end + sig do + params( + attributes: T.untyped, + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(::BillNotification) + end + def find_or_initialize_by(attributes, &block); end + + sig { params(signed_id: T.untyped, purpose: T.untyped).returns(T.nilable(::BillNotification)) } + def find_signed(signed_id, purpose: nil); end + + sig { params(signed_id: T.untyped, purpose: T.untyped).returns(::BillNotification) } + def find_signed!(signed_id, purpose: nil); end + + sig { params(arg: T.untyped, args: T.untyped).returns(::BillNotification) } + def find_sole_by(arg, *args); end + + sig { returns(T.nilable(::BillNotification)) } + sig { params(limit: Integer).returns(T::Array[::BillNotification]) } + def first(limit = nil); end + + sig { returns(::BillNotification) } + def first!; end + + sig { returns(T.nilable(::BillNotification)) } + def forty_two; end + + sig { returns(::BillNotification) } + def forty_two!; end + + sig { returns(T.nilable(::BillNotification)) } + def fourth; end + + sig { returns(::BillNotification) } + def fourth!; end + + sig { returns(Array) } + def ids; end + + sig do + params( + of: Integer, + start: T.untyped, + finish: T.untyped, + load: T.untyped, + error_on_ignore: T.untyped, + order: Symbol, + use_ranges: T.untyped, + block: T.proc.params(object: PrivateRelation).void + ).void + end + sig do + params( + of: Integer, + start: T.untyped, + finish: T.untyped, + load: T.untyped, + error_on_ignore: T.untyped, + order: Symbol, + use_ranges: T.untyped + ).returns(::ActiveRecord::Batches::BatchEnumerator) + end + def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, order: :asc, use_ranges: nil, &block); end + + sig { params(record: T.untyped).returns(T::Boolean) } + def include?(record); end + + sig { returns(T.nilable(::BillNotification)) } + sig { params(limit: Integer).returns(T::Array[::BillNotification]) } + def last(limit = nil); end + + sig { returns(::BillNotification) } + def last!; end + + sig { params(block: T.nilable(T.proc.params(record: ::BillNotification).returns(T.untyped))).returns(T::Boolean) } + def many?(&block); end + + sig { params(column_name: T.any(String, Symbol)).returns(T.untyped) } + def maximum(column_name); end + + sig { params(record: T.untyped).returns(T::Boolean) } + def member?(record); end + + sig { params(column_name: T.any(String, Symbol)).returns(T.untyped) } + def minimum(column_name); end + + sig { params(block: T.nilable(T.proc.params(object: ::BillNotification).void)).returns(::BillNotification) } + sig do + params( + attributes: T::Array[T.untyped], + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(T::Array[::BillNotification]) + end + sig do + params( + attributes: T.untyped, + block: T.nilable(T.proc.params(object: ::BillNotification).void) + ).returns(::BillNotification) + end + def new(attributes = nil, &block); end + + sig { params(block: T.nilable(T.proc.params(record: ::BillNotification).returns(T.untyped))).returns(T::Boolean) } + def none?(&block); end + + sig { params(block: T.nilable(T.proc.params(record: ::BillNotification).returns(T.untyped))).returns(T::Boolean) } + def one?(&block); end + + sig { params(column_names: T.untyped).returns(T.untyped) } + def pick(*column_names); end + + sig { params(column_names: T.untyped).returns(T.untyped) } + def pluck(*column_names); end + + sig { returns(T.nilable(::BillNotification)) } + def second; end + + sig { returns(::BillNotification) } + def second!; end + + sig { returns(T.nilable(::BillNotification)) } + def second_to_last; end + + sig { returns(::BillNotification) } + def second_to_last!; end + + sig { returns(::BillNotification) } + def sole; end + + sig { params(initial_value_or_column: T.untyped).returns(T.any(Integer, Float, BigDecimal)) } + sig do + type_parameters(:U) + .params( + initial_value_or_column: T.nilable(T.type_parameter(:U)), + block: T.proc.params(object: ::BillNotification).returns(T.type_parameter(:U)) + ).returns(T.type_parameter(:U)) + end + def sum(initial_value_or_column = nil, &block); end + + sig { returns(T.nilable(::BillNotification)) } + sig { params(limit: Integer).returns(T::Array[::BillNotification]) } + def take(limit = nil); end + + sig { returns(::BillNotification) } + def take!; end + + sig { returns(T.nilable(::BillNotification)) } + def third; end + + sig { returns(::BillNotification) } + def third!; end + + sig { returns(T.nilable(::BillNotification)) } + def third_to_last; end + + sig { returns(::BillNotification) } + def third_to_last!; end + end + + module GeneratedAssociationMethods + sig { returns(T.nilable(::Bill)) } + def bill; end + + sig { params(value: T.nilable(::Bill)).void } + def bill=(value); end + + sig { returns(T::Boolean) } + def bill_changed?; end + + sig { returns(T::Boolean) } + def bill_previously_changed?; end + + sig { params(args: T.untyped, blk: T.untyped).returns(::Bill) } + def build_bill(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(::Bill) } + def create_bill(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(::Bill) } + def create_bill!(*args, &blk); end + + sig { returns(T.nilable(::Bill)) } + def reload_bill; end + + sig { void } + def reset_bill; end + end + + module GeneratedAssociationRelationMethods + sig { returns(PrivateAssociationRelation) } + def all; end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def and(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def annotate(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def arel_columns(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def create_with(*args, &blk); end + + sig { params(value: T::Boolean).returns(PrivateAssociationRelation) } + def distinct(value = true); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def eager_load(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def except(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def excluding(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def extending(*args, &blk); end + + sig { params(association: Symbol).returns(T::Array[T.untyped]) } + def extract_associated(association); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def from(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelationGroupChain) } + def group(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def having(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def in_order_of(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def includes(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def invert_where(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def joins(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def left_joins(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def left_outer_joins(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def limit(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def lock(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def merge(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def none(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def null_relation?(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def offset(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def only(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def optimizer_hints(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def or(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def order(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def preload(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def readonly(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def references(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def regroup(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def reorder(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def reselect(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def reverse_order(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def rewhere(*args, &blk); end + + sig { params(args: T.untyped).returns(PrivateAssociationRelation) } + sig do + params( + blk: T.proc.params(record: ::BillNotification).returns(BasicObject) + ).returns(T::Array[::BillNotification]) + end + def select(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def strict_loading(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def structurally_compatible?(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def uniq!(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def unscope(*args, &blk); end + + sig { returns(PrivateAssociationRelationWhereChain) } + sig { params(args: T.untyped).returns(PrivateAssociationRelation) } + def where(*args); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def with(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def with_recursive(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) } + def without(*args, &blk); end + end + + module GeneratedAttributeMethods + sig { returns(::Integer) } + def bill_id; end + + sig { params(value: ::Integer).returns(::Integer) } + def bill_id=(value); end + + sig { returns(T::Boolean) } + def bill_id?; end + + sig { returns(T.nilable(::Integer)) } + def bill_id_before_last_save; end + + sig { returns(T.untyped) } + def bill_id_before_type_cast; end + + sig { returns(T::Boolean) } + def bill_id_came_from_user?; end + + sig { returns(T.nilable([::Integer, ::Integer])) } + def bill_id_change; end + + sig { returns(T.nilable([::Integer, ::Integer])) } + def bill_id_change_to_be_saved; end + + sig { params(from: ::Integer, to: ::Integer).returns(T::Boolean) } + def bill_id_changed?(from: T.unsafe(nil), to: T.unsafe(nil)); end + + sig { returns(T.nilable(::Integer)) } + def bill_id_in_database; end + + sig { returns(T.nilable([::Integer, ::Integer])) } + def bill_id_previous_change; end + + sig { params(from: ::Integer, to: ::Integer).returns(T::Boolean) } + def bill_id_previously_changed?(from: T.unsafe(nil), to: T.unsafe(nil)); end + + sig { returns(T.nilable(::Integer)) } + def bill_id_previously_was; end + + sig { returns(T.nilable(::Integer)) } + def bill_id_was; end + + sig { void } + def bill_id_will_change!; end + + sig { returns(::ActiveSupport::TimeWithZone) } + def created_at; end + + sig { params(value: ::ActiveSupport::TimeWithZone).returns(::ActiveSupport::TimeWithZone) } + def created_at=(value); end + + sig { returns(T::Boolean) } + def created_at?; end + + sig { returns(T.nilable(::ActiveSupport::TimeWithZone)) } + def created_at_before_last_save; end + + sig { returns(T.untyped) } + def created_at_before_type_cast; end + + sig { returns(T::Boolean) } + def created_at_came_from_user?; end + + sig { returns(T.nilable([::ActiveSupport::TimeWithZone, ::ActiveSupport::TimeWithZone])) } + def created_at_change; end + + sig { returns(T.nilable([::ActiveSupport::TimeWithZone, ::ActiveSupport::TimeWithZone])) } + def created_at_change_to_be_saved; end + + sig { params(from: ::ActiveSupport::TimeWithZone, to: ::ActiveSupport::TimeWithZone).returns(T::Boolean) } + def created_at_changed?(from: T.unsafe(nil), to: T.unsafe(nil)); end + + sig { returns(T.nilable(::ActiveSupport::TimeWithZone)) } + def created_at_in_database; end + + sig { returns(T.nilable([::ActiveSupport::TimeWithZone, ::ActiveSupport::TimeWithZone])) } + def created_at_previous_change; end + + sig { params(from: ::ActiveSupport::TimeWithZone, to: ::ActiveSupport::TimeWithZone).returns(T::Boolean) } + def created_at_previously_changed?(from: T.unsafe(nil), to: T.unsafe(nil)); end + + sig { returns(T.nilable(::ActiveSupport::TimeWithZone)) } + def created_at_previously_was; end + + sig { returns(T.nilable(::ActiveSupport::TimeWithZone)) } + def created_at_was; end + + sig { void } + def created_at_will_change!; end + + sig { returns(::Integer) } + def id; end + + sig { params(value: ::Integer).returns(::Integer) } + def id=(value); end + + sig { returns(T::Boolean) } + def id?; end + + sig { returns(T.nilable(::Integer)) } + def id_before_last_save; end + + sig { returns(T.untyped) } + def id_before_type_cast; end + + sig { returns(T::Boolean) } + def id_came_from_user?; end + + sig { returns(T.nilable([::Integer, ::Integer])) } + def id_change; end + + sig { returns(T.nilable([::Integer, ::Integer])) } + def id_change_to_be_saved; end + + sig { params(from: ::Integer, to: ::Integer).returns(T::Boolean) } + def id_changed?(from: T.unsafe(nil), to: T.unsafe(nil)); end + + sig { returns(T.nilable(::Integer)) } + def id_in_database; end + + sig { returns(T.nilable([::Integer, ::Integer])) } + def id_previous_change; end + + sig { params(from: ::Integer, to: ::Integer).returns(T::Boolean) } + def id_previously_changed?(from: T.unsafe(nil), to: T.unsafe(nil)); end + + sig { returns(T.nilable(::Integer)) } + def id_previously_was; end + + sig { returns(::Integer) } + def id_value; end + + sig { params(value: ::Integer).returns(::Integer) } + def id_value=(value); end + + sig { returns(T::Boolean) } + def id_value?; end + + sig { returns(T.nilable(::Integer)) } + def id_value_before_last_save; end + + sig { returns(T.untyped) } + def id_value_before_type_cast; end + + sig { returns(T::Boolean) } + def id_value_came_from_user?; end + + sig { returns(T.nilable([::Integer, ::Integer])) } + def id_value_change; end + + sig { returns(T.nilable([::Integer, ::Integer])) } + def id_value_change_to_be_saved; end + + sig { params(from: ::Integer, to: ::Integer).returns(T::Boolean) } + def id_value_changed?(from: T.unsafe(nil), to: T.unsafe(nil)); end + + sig { returns(T.nilable(::Integer)) } + def id_value_in_database; end + + sig { returns(T.nilable([::Integer, ::Integer])) } + def id_value_previous_change; end + + sig { params(from: ::Integer, to: ::Integer).returns(T::Boolean) } + def id_value_previously_changed?(from: T.unsafe(nil), to: T.unsafe(nil)); end + + sig { returns(T.nilable(::Integer)) } + def id_value_previously_was; end + + sig { returns(T.nilable(::Integer)) } + def id_value_was; end + + sig { void } + def id_value_will_change!; end + + sig { returns(T.nilable(::Integer)) } + def id_was; end + + sig { void } + def id_will_change!; end + + sig { void } + def restore_bill_id!; end + + sig { void } + def restore_created_at!; end + + sig { void } + def restore_id!; end + + sig { void } + def restore_id_value!; end + + sig { void } + def restore_updated_at!; end + + sig { returns(T.nilable([::Integer, ::Integer])) } + def saved_change_to_bill_id; end + + sig { returns(T::Boolean) } + def saved_change_to_bill_id?; end + + sig { returns(T.nilable([::ActiveSupport::TimeWithZone, ::ActiveSupport::TimeWithZone])) } + def saved_change_to_created_at; end + + sig { returns(T::Boolean) } + def saved_change_to_created_at?; end + + sig { returns(T.nilable([::Integer, ::Integer])) } + def saved_change_to_id; end + + sig { returns(T::Boolean) } + def saved_change_to_id?; end + + sig { returns(T.nilable([::Integer, ::Integer])) } + def saved_change_to_id_value; end + + sig { returns(T::Boolean) } + def saved_change_to_id_value?; end + + sig { returns(T.nilable([::ActiveSupport::TimeWithZone, ::ActiveSupport::TimeWithZone])) } + def saved_change_to_updated_at; end + + sig { returns(T::Boolean) } + def saved_change_to_updated_at?; end + + sig { returns(::ActiveSupport::TimeWithZone) } + def updated_at; end + + sig { params(value: ::ActiveSupport::TimeWithZone).returns(::ActiveSupport::TimeWithZone) } + def updated_at=(value); end + + sig { returns(T::Boolean) } + def updated_at?; end + + sig { returns(T.nilable(::ActiveSupport::TimeWithZone)) } + def updated_at_before_last_save; end + + sig { returns(T.untyped) } + def updated_at_before_type_cast; end + + sig { returns(T::Boolean) } + def updated_at_came_from_user?; end + + sig { returns(T.nilable([::ActiveSupport::TimeWithZone, ::ActiveSupport::TimeWithZone])) } + def updated_at_change; end + + sig { returns(T.nilable([::ActiveSupport::TimeWithZone, ::ActiveSupport::TimeWithZone])) } + def updated_at_change_to_be_saved; end + + sig { params(from: ::ActiveSupport::TimeWithZone, to: ::ActiveSupport::TimeWithZone).returns(T::Boolean) } + def updated_at_changed?(from: T.unsafe(nil), to: T.unsafe(nil)); end + + sig { returns(T.nilable(::ActiveSupport::TimeWithZone)) } + def updated_at_in_database; end + + sig { returns(T.nilable([::ActiveSupport::TimeWithZone, ::ActiveSupport::TimeWithZone])) } + def updated_at_previous_change; end + + sig { params(from: ::ActiveSupport::TimeWithZone, to: ::ActiveSupport::TimeWithZone).returns(T::Boolean) } + def updated_at_previously_changed?(from: T.unsafe(nil), to: T.unsafe(nil)); end + + sig { returns(T.nilable(::ActiveSupport::TimeWithZone)) } + def updated_at_previously_was; end + + sig { returns(T.nilable(::ActiveSupport::TimeWithZone)) } + def updated_at_was; end + + sig { void } + def updated_at_will_change!; end + + sig { returns(T::Boolean) } + def will_save_change_to_bill_id?; end + + sig { returns(T::Boolean) } + def will_save_change_to_created_at?; end + + sig { returns(T::Boolean) } + def will_save_change_to_id?; end + + sig { returns(T::Boolean) } + def will_save_change_to_id_value?; end + + sig { returns(T::Boolean) } + def will_save_change_to_updated_at?; end + end + + module GeneratedRelationMethods + sig { returns(PrivateRelation) } + def all; end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def and(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def annotate(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def arel_columns(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def create_with(*args, &blk); end + + sig { params(value: T::Boolean).returns(PrivateRelation) } + def distinct(value = true); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def eager_load(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def except(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def excluding(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def extending(*args, &blk); end + + sig { params(association: Symbol).returns(T::Array[T.untyped]) } + def extract_associated(association); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def from(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelationGroupChain) } + def group(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def having(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def in_order_of(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def includes(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def invert_where(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def joins(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def left_joins(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def left_outer_joins(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def limit(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def lock(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def merge(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def none(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def null_relation?(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def offset(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def only(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def optimizer_hints(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def or(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def order(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def preload(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def readonly(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def references(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def regroup(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def reorder(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def reselect(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def reverse_order(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def rewhere(*args, &blk); end + + sig { params(args: T.untyped).returns(PrivateRelation) } + sig do + params( + blk: T.proc.params(record: ::BillNotification).returns(BasicObject) + ).returns(T::Array[::BillNotification]) + end + def select(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def strict_loading(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def structurally_compatible?(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def uniq!(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def unscope(*args, &blk); end + + sig { returns(PrivateRelationWhereChain) } + sig { params(args: T.untyped).returns(PrivateRelation) } + def where(*args); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def with(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def with_recursive(*args, &blk); end + + sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) } + def without(*args, &blk); end + end + + class PrivateAssociationRelation < ::ActiveRecord::AssociationRelation + include CommonRelationMethods + include GeneratedAssociationRelationMethods + + Elem = type_member { { fixed: ::BillNotification } } + + sig { returns(T::Array[::BillNotification]) } + def to_a; end + + sig { returns(T::Array[::BillNotification]) } + def to_ary; end + end + + class PrivateAssociationRelationGroupChain < PrivateAssociationRelation + Elem = type_member { { fixed: ::BillNotification } } + + sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)]) } + def average(column_name); end + + sig do + params( + operation: Symbol, + column_name: T.any(String, Symbol) + ).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)]) + end + def calculate(operation, column_name); end + + sig { params(column_name: T.untyped).returns(T::Hash[T.untyped, Integer]) } + def count(column_name = nil); end + + sig { params(args: T.untyped, blk: T.untyped).returns(T.self_type) } + def having(*args, &blk); end + + sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.untyped]) } + def maximum(column_name); end + + sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.untyped]) } + def minimum(column_name); end + + sig { returns(T::Hash[T.untyped, Integer]) } + def size; end + + sig do + params( + column_name: T.nilable(T.any(String, Symbol)), + block: T.nilable(T.proc.params(record: T.untyped).returns(T.untyped)) + ).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)]) + end + def sum(column_name = nil, &block); end + end + + class PrivateAssociationRelationWhereChain + Elem = type_member { { fixed: ::BillNotification } } + + sig { params(args: T.untyped).returns(PrivateAssociationRelation) } + def associated(*args); end + + sig { params(args: T.untyped).returns(PrivateAssociationRelation) } + def missing(*args); end + + sig { params(opts: T.untyped, rest: T.untyped).returns(PrivateAssociationRelation) } + def not(opts, *rest); end + end + + class PrivateCollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include CommonRelationMethods + include GeneratedAssociationRelationMethods + + Elem = type_member { { fixed: ::BillNotification } } + + sig do + params( + records: T.any(::BillNotification, T::Enumerable[T.any(::BillNotification, T::Enumerable[::BillNotification])]) + ).returns(PrivateCollectionProxy) + end + def <<(*records); end + + sig do + params( + records: T.any(::BillNotification, T::Enumerable[T.any(::BillNotification, T::Enumerable[::BillNotification])]) + ).returns(PrivateCollectionProxy) + end + def append(*records); end + + sig { returns(PrivateCollectionProxy) } + def clear; end + + sig do + params( + records: T.any(::BillNotification, T::Enumerable[T.any(::BillNotification, T::Enumerable[::BillNotification])]) + ).returns(PrivateCollectionProxy) + end + def concat(*records); end + + sig { returns(T::Array[::BillNotification]) } + def load_target; end + + sig do + params( + records: T.any(::BillNotification, T::Enumerable[T.any(::BillNotification, T::Enumerable[::BillNotification])]) + ).returns(PrivateCollectionProxy) + end + def prepend(*records); end + + sig do + params( + records: T.any(::BillNotification, T::Enumerable[T.any(::BillNotification, T::Enumerable[::BillNotification])]) + ).returns(PrivateCollectionProxy) + end + def push(*records); end + + sig do + params( + other_array: T.any(::BillNotification, T::Enumerable[T.any(::BillNotification, T::Enumerable[::BillNotification])]) + ).returns(T::Array[::BillNotification]) + end + def replace(other_array); end + + sig { returns(PrivateAssociationRelation) } + def scope; end + + sig { returns(T::Array[::BillNotification]) } + def target; end + + sig { returns(T::Array[::BillNotification]) } + def to_a; end + + sig { returns(T::Array[::BillNotification]) } + def to_ary; end + end + + class PrivateRelation < ::ActiveRecord::Relation + include CommonRelationMethods + include GeneratedRelationMethods + + Elem = type_member { { fixed: ::BillNotification } } + + sig { returns(T::Array[::BillNotification]) } + def to_a; end + + sig { returns(T::Array[::BillNotification]) } + def to_ary; end + end + + class PrivateRelationGroupChain < PrivateRelation + Elem = type_member { { fixed: ::BillNotification } } + + sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)]) } + def average(column_name); end + + sig do + params( + operation: Symbol, + column_name: T.any(String, Symbol) + ).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)]) + end + def calculate(operation, column_name); end + + sig { params(column_name: T.untyped).returns(T::Hash[T.untyped, Integer]) } + def count(column_name = nil); end + + sig { params(args: T.untyped, blk: T.untyped).returns(T.self_type) } + def having(*args, &blk); end + + sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.untyped]) } + def maximum(column_name); end + + sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.untyped]) } + def minimum(column_name); end + + sig { returns(T::Hash[T.untyped, Integer]) } + def size; end + + sig do + params( + column_name: T.nilable(T.any(String, Symbol)), + block: T.nilable(T.proc.params(record: T.untyped).returns(T.untyped)) + ).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)]) + end + def sum(column_name = nil, &block); end + end + + class PrivateRelationWhereChain + Elem = type_member { { fixed: ::BillNotification } } + + sig { params(args: T.untyped).returns(PrivateRelation) } + def associated(*args); end + + sig { params(args: T.untyped).returns(PrivateRelation) } + def missing(*args); end + + sig { params(opts: T.untyped, rest: T.untyped).returns(PrivateRelation) } + def not(opts, *rest); end + end +end diff --git a/sorbet/rbi/dsl/on_bill_becomes_botw_notify_users_job.rbi b/sorbet/rbi/dsl/on_bill_becomes_botw_notify_users_job.rbi new file mode 100644 index 00000000..9fb81dfc --- /dev/null +++ b/sorbet/rbi/dsl/on_bill_becomes_botw_notify_users_job.rbi @@ -0,0 +1,20 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for dynamic methods in `OnBillBecomesBotwNotifyUsersJob`. +# Please instead update this file by running `bin/tapioca dsl OnBillBecomesBotwNotifyUsersJob`. + + +class OnBillBecomesBotwNotifyUsersJob + class << self + sig do + params( + block: T.nilable(T.proc.params(job: OnBillBecomesBotwNotifyUsersJob).void) + ).returns(T.any(OnBillBecomesBotwNotifyUsersJob, FalseClass)) + end + def perform_later(&block); end + + sig { void } + def perform_now; end + end +end diff --git a/spec/factories/vote.rb b/spec/factories/vote.rb index cc234e5c..dc4f01f6 100644 --- a/spec/factories/vote.rb +++ b/spec/factories/vote.rb @@ -5,8 +5,9 @@ # https://clerk.house.gov/Votes/2024142 house_roll_call_vote_number { 142 } - # https://www.senate.gov/legislative/LIS/roll_call_votes/vote1182/vote_118_2_00154.xml - senate_roll_call_vote_number { 154 } + # OLD: https://www.senate.gov/legislative/LIS/roll_call_votes/vote1191/vote_119_1_00154.xml + # NEW: https://www.senate.gov/legislative/LIS/roll_call_votes/vote1191/vote_119_1_00108.xml + senate_roll_call_vote_number { 108 } initialize_with { new({bill:, house_roll_call_vote_number:, senate_roll_call_vote_number:}) } end diff --git a/spec/jobs/on_bill_becomes_botw_notify_users_job_spec.rb b/spec/jobs/on_bill_becomes_botw_notify_users_job_spec.rb new file mode 100644 index 00000000..a133c9ec --- /dev/null +++ b/spec/jobs/on_bill_becomes_botw_notify_users_job_spec.rb @@ -0,0 +1,65 @@ +require "rails_helper" + +RSpec.describe OnBillBecomesBotwNotifyUsersJob, type: :job do + context "a bill already exists" do + it "is not notifyable because the scheduled_release_date_utc has passed" do + bill = create(:bill, scheduled_release_date_utc: Time.zone.now - 3.days) + expect(bill.notifyable?).to eql(false) + end + + it "is not notifyable because scheduled_release_date_utc is in the future" do + bill = create(:bill, scheduled_release_date_utc: Time.zone.now + 3.days) + expect(bill.notifyable?).to eql(false) + end + + it "is not notifyable because it already has a BillNotification" do + bill = create(:bill, scheduled_release_date_utc: Time.zone.now) + expect(bill.notifyable?).to eql(true) + BillNotification.create!(bill:) + expect(bill.notifyable?).to eql(false) + end + + it "is notifyable" do + bill = create(:bill, scheduled_release_date_utc: Time.zone.now) + expect(bill.notifyable?).to eql(true) + end + end + + context "a user has a push notification subscription" do + include_context "Setup" + + it "sends a notification when a BillNotification is created" do + notifier = class_double("WebPush").as_stubbed_const(transfer_nested_constants: true) + expect(notifier).to receive(:payload_send) # to + + _sway_locale, user = setup + PushNotificationSubscription.create!( + endpoint: "taco", + p256dh: "taco", + auth: "taco", + user: user, + subscribed: true + ) + + bill = create(:bill, scheduled_release_date_utc: Time.zone.now) + BillNotification.create!(bill:) + end + + it "does NOT send a notification, when a BillNotification is NOT created" do + notifier = class_double("WebPush").as_stubbed_const(transfer_nested_constants: true) + expect(notifier).to_not receive(:payload_send) # to_not + + _sway_locale, user = setup + PushNotificationSubscription.create!( + endpoint: "taco", + p256dh: "taco", + auth: "taco", + user: user, + subscribed: true + ) + + create(:bill, scheduled_release_date_utc: Time.zone.now) + # BillNotification.create!(bill:) + end + end +end diff --git a/spec/services/congress_legislator_vote_update_service_spec.rb b/spec/services/congress_legislator_vote_update_service_spec.rb index 7724c24c..d0dc0e86 100644 --- a/spec/services/congress_legislator_vote_update_service_spec.rb +++ b/spec/services/congress_legislator_vote_update_service_spec.rb @@ -9,52 +9,51 @@ country: "united_states" } -skip_running_this_test_because_it_hits_the_congress_gov_api_for_each_seeded_legislator_and_seeds_are_bad_in_tests = false - -if skip_running_this_test_because_it_hits_the_congress_gov_api_for_each_seeded_legislator_and_seeds_are_bad_in_tests - RSpec.describe CongressLegislatorVoteUpdateService do - describe "#run" do - context "a new CONGRESSIONAL Bill is created" do - before do - sway_locale = create( - :sway_locale, - CONGRESS - ) - - SeedLegislator.run([sway_locale]) - end +RSpec.describe CongressLegislatorVoteUpdateService do + skip "This test hits the Congress API for each legislator." + + describe "#run" do + context "a new CONGRESSIONAL Bill is created" do + before do + sway_locale = create( + :sway_locale, + CONGRESS + ) + skip "No legislators seeded. Skipping test." if sway_locale.legislators.size == 0 + + SeedLegislator.run([sway_locale]) + end - after do - Legislator.all.each do |l| - l.bills.each(&:destroy) - end - Legislator.all.each(&:destroy) - SwayLocale.find_by(CONGRESS).destroy + after do + Legislator.all.each do |l| + l.bills.each(&:destroy) end + Legislator.all.each(&:destroy) + SwayLocale.find_by(CONGRESS)&.destroy + end - it "creates new LegislatorVotes for both the house and senate" do - expect(Legislator.count).to be > 500 - expect(LegislatorVote.count).to eql(0) + it "creates new LegislatorVotes for both the house and senate" do + expect(Legislator.count).to be > 500 + expect(LegislatorVote.count).to eql(0) - address = build(:address, region_code: "MD") + address = build(:address, region_code: "MD") - sway_locale = SwayLocale.find_by(CONGRESS) - expect(sway_locale).to_not be_nil + sway_locale = SwayLocale.find_by(CONGRESS) + expect(sway_locale).to_not be_nil - district = build(:district, sway_locale:) + district = build(:district, sway_locale:) - senator = Legislator.find_by(external_id: "V000128").presence || build(:legislator, address:, district:, title: "Sen.", external_id: "V000128", first_name: "Chris", - last_name: "Van Hollen") - representative = Legislator.find_by(external_id: "M000687").presence || build(:legislator, address:, district:, first_name: "Kweisi", last_name: "Mfume", - external_id: "M000687", title: "Rep.") + senator = Legislator.find_by(external_id: "V000128").presence || build(:legislator, address:, district:, title: "Sen.", external_id: "V000128", first_name: "Chris", + last_name: "Van Hollen") + representative = Legislator.find_by(external_id: "M000687").presence || build(:legislator, address:, district:, first_name: "Kweisi", last_name: "Mfume", + external_id: "M000687", title: "Rep.") - bill = create(:bill, sway_locale: sway_locale, external_id: "hr815") - create(:vote, bill:) + bill = create(:bill, sway_locale: sway_locale, external_id: "hr815") + create(:vote, bill:) - expect(LegislatorVote.count).to eql(510) - expect(LegislatorVote.where(legislator: senator).first&.support).to eql("FOR") - expect(LegislatorVote.where(legislator: representative).first&.support).to eql("FOR") - end + expect(LegislatorVote.count).to eql(510) + expect(LegislatorVote.where(legislator: senator).first&.support).to eql("FOR") + expect(LegislatorVote.where(legislator: representative).first&.support).to eql("FOR") end end end From 08df230fb81a6952de6802eb9a0bd0687c23f458 Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Mon, 10 Mar 2025 12:57:39 -0400 Subject: [PATCH 03/41] padawan - dynamic sitemap.xml --- app/controllers/legislators_controller.rb | 16 +++++++++ app/controllers/sitemap_controller.rb | 12 +++++++ app/controllers/sway_locales_controller.rb | 4 ++- .../dialogs/ContactLegislatorDialog.tsx | 10 +++--- ...congress_legislator_vote_update_service.rb | 2 +- app/views/sitemap/index.xml.builder | 36 +++++++++++++++++++ config/routes.rb | 1 + public/{sitemap.xml => _sitemap.xml} | 0 spec/requests/sitemap_spec.rb | 7 ++++ 9 files changed, 82 insertions(+), 6 deletions(-) create mode 100644 app/controllers/sitemap_controller.rb create mode 100644 app/views/sitemap/index.xml.builder rename public/{sitemap.xml => _sitemap.xml} (100%) create mode 100644 spec/requests/sitemap_spec.rb diff --git a/app/controllers/legislators_controller.rb b/app/controllers/legislators_controller.rb index 026c653a..478f02ca 100644 --- a/app/controllers/legislators_controller.rb +++ b/app/controllers/legislators_controller.rb @@ -2,6 +2,9 @@ # typed: true class LegislatorsController < ApplicationController + before_action :set_legislator, only: %i[show] + skip_before_action :authenticate_user!, only: %i[show] + # GET /legislators or /legislators.json def index render_component(Pages::LEGISLATORS, @@ -12,8 +15,21 @@ def index end) end + def show + render_component(Pages::LEGISLATORS, + lambda do + { + legislators: [@legislator.to_sway_json] + } + end) + end + private + def set_legislator + @legislator = Legislator.find(params[:id]) + end + def json_legislators current_user&.user_legislators&.joins(:legislator)&.where(active: true, legislators: {active: true})&.map do |ul| ul.legislator.to_sway_json diff --git a/app/controllers/sitemap_controller.rb b/app/controllers/sitemap_controller.rb new file mode 100644 index 00000000..40ddc855 --- /dev/null +++ b/app/controllers/sitemap_controller.rb @@ -0,0 +1,12 @@ +class SitemapController < ApplicationController + skip_before_action :authenticate_user! + + def index + @bills = Bill.all.includes(:sway_locale) # Replace YourModel with your actual model + @legislators = Legislator.all.includes(district: :sway_locale) # Replace YourModel with your actual model + @sway_locales = SwayLocale.all + respond_to do |format| + format.xml { render layout: false } # Render without layout + end + end +end diff --git a/app/controllers/sway_locales_controller.rb b/app/controllers/sway_locales_controller.rb index e239071b..ae6ab358 100644 --- a/app/controllers/sway_locales_controller.rb +++ b/app/controllers/sway_locales_controller.rb @@ -2,9 +2,11 @@ # typed: true class SwayLocalesController < ApplicationController + skip_before_action :authenticate_user! + # GET /sway_locales or /sway_locales.json def index - render json: current_user&.sway_locales&.map(&:to_sway_json), status: :ok + render json: (current_user&.sway_locales || SwayLocale.all).map(&:to_sway_json), status: :ok end # GET /sway_locales/1 or /sway_locales/1.json diff --git a/app/frontend/components/dialogs/ContactLegislatorDialog.tsx b/app/frontend/components/dialogs/ContactLegislatorDialog.tsx index 6782bdcb..55a0af33 100644 --- a/app/frontend/components/dialogs/ContactLegislatorDialog.tsx +++ b/app/frontend/components/dialogs/ContactLegislatorDialog.tsx @@ -24,7 +24,7 @@ interface IProps { } const ContactLegislatorDialog: React.FC = ({ user_vote, legislator, open, handleClose, type }) => { - const user = useUser(); + const user = useUser() as sway.IUser | undefined; const [locale] = useLocale(); const setClosed = useCallback(() => { @@ -32,15 +32,15 @@ const ContactLegislatorDialog: React.FC = ({ user_vote, legislator, open }, [handleClose]); const address = useCallback((): string => { - return getFullUserAddress(user); + return user ? getFullUserAddress(user) : ""; }, [user]); const registeredVoter = useCallback((): string => { - if (!user.is_registered_to_vote) { + if (!user?.is_registered_to_vote) { return "I"; } return "I am registered to vote and"; - }, [user.is_registered_to_vote]); + }, [user?.is_registered_to_vote]); const shortSupport = useCallback((): string => { if (!user_vote) return ""; @@ -155,6 +155,8 @@ const ContactLegislatorDialog: React.FC = ({ user_vote, legislator, open }, [getLegislatorEmail, getLegislatorPhone, type, legislator.id]); const render = useMemo(() => { + if (!user) return null; + if (type === "email" && !legislator.email) { logDev(`missing EMAIL for ${legislator.full_name} - ${legislator.external_id}`); return ( diff --git a/app/services/congress_legislator_vote_update_service.rb b/app/services/congress_legislator_vote_update_service.rb index 572911f4..45706d26 100644 --- a/app/services/congress_legislator_vote_update_service.rb +++ b/app/services/congress_legislator_vote_update_service.rb @@ -71,7 +71,7 @@ def senator(vote) if legislators.size == 1 legislators.first&.id else - ls = Legislator.where(id: legislators).includes(:district).filter do |legislator| + ls = Legislator.where(id: legislators).includes(district: :sway_locale).filter do |legislator| legislator.sway_locale.region_code == vote.state_code.upcase end return nil if ls.empty? || ls.size > 1 diff --git a/app/views/sitemap/index.xml.builder b/app/views/sitemap/index.xml.builder new file mode 100644 index 00000000..a01e292b --- /dev/null +++ b/app/views/sitemap/index.xml.builder @@ -0,0 +1,36 @@ +xml.instruct! :xml, version: "1.0" +xml.urlset xmlns: "http://www.sitemaps.org/schemas/sitemap/0.9" do + xml.url do + xml.loc root_url + end + + xml.url do + xml.loc sway_locales_url + end + + xml.url do + xml.loc bills_url + end + + xml.url do + xml.loc legislators_url + end + + @sway_locales.each do |object| + xml.url do + xml.loc bill_of_the_week_index_url(sway_locale_id: object.id) + end + end + + @bills.each do |object| + xml.url do + xml.loc bill_url(object, sway_locale_id: object.sway_locale.id) # Replace object_url with your URL helper + end + end + + @legislators.each do |object| + xml.url do + xml.loc legislator_url(object, sway_locale_id: object.sway_locale.id) # Replace object_url with your URL helper + end + end +end diff --git a/config/routes.rb b/config/routes.rb index 9e7b4ea3..8a6c1d82 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,6 +3,7 @@ Rails.application.routes.draw do # get "well_known/index" get ".well-known/webauthn", action: "index", controller: :well_known + get "sitemap.xml", action: "index", controller: :sitemap get "bill_of_the_week_schedule/update" default_url_options protocol: :https diff --git a/public/sitemap.xml b/public/_sitemap.xml similarity index 100% rename from public/sitemap.xml rename to public/_sitemap.xml diff --git a/spec/requests/sitemap_spec.rb b/spec/requests/sitemap_spec.rb new file mode 100644 index 00000000..2cf43c69 --- /dev/null +++ b/spec/requests/sitemap_spec.rb @@ -0,0 +1,7 @@ +require "rails_helper" + +RSpec.describe "Sitemaps", type: :request do + describe "GET /index" do + pending "add some examples (or delete) #{__FILE__}" + end +end From b8d287b1f150ac00107ebf405adc1a284017f9ae Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Mon, 10 Mar 2025 12:59:11 -0400 Subject: [PATCH 04/41] padawan - add ahrefs site audit bot to robots.txt --- public/robots.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/public/robots.txt b/public/robots.txt index f85dd0a4..fbe9066e 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -7,6 +7,7 @@ Allow: /bill/ Allow: /bill_of_the_week/ Allow: /legislators/ Allow: /legislator/ +Allow: /sway_locales/ Disallow: / User-agent: Bingbot @@ -16,6 +17,7 @@ Allow: /bill/ Allow: /bill_of_the_week/ Allow: /legislators/ Allow: /legislator/ +Allow: /sway_locales/ Disallow: / User-agent: DuckDuckBot @@ -25,6 +27,7 @@ Allow: /bill/ Allow: /bill_of_the_week/ Allow: /legislators/ Allow: /legislator/ +Allow: /sway_locales/ Disallow: / User-agent: AhrefsBot @@ -34,6 +37,17 @@ Allow: /bill/ Allow: /bill_of_the_week/ Allow: /legislators/ Allow: /legislator/ +Allow: /sway_locales/ +Disallow: / + +User-agent: AhrefsSiteAudit +Allow: /$ +Allow: /bills/ +Allow: /bill/ +Allow: /bill_of_the_week/ +Allow: /legislators/ +Allow: /legislator/ +Allow: /sway_locales/ Disallow: / User-agent: * From ddcc7d11b60d36adbbada80c7036271637ed0257 Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Tue, 11 Mar 2025 09:40:52 -0400 Subject: [PATCH 05/41] update robots.txt, gems --- Gemfile.lock | 33 +- config/environments/production.rb | 1 + public/robots.txt | 20 + ....rbi => google-apis-storage_v1@0.50.0.rbi} | 0 ...@1.7.1.rbi => google-cloud-core@1.8.0.rbi} | 0 ....4.0.rbi => google-cloud-errors@1.5.0.rbi} | 12 +- .../gems/{rack@3.1.10.rbi => rack@3.1.12.rbi} | 2 +- .../rbi/gems/{rbi@0.2.4.rbi => rbi@0.3.0.rbi} | 3781 +++++++-- sorbet/rbi/gems/rbs@3.8.1.rbi | 6882 +++++++++++++++++ ...@2.15.1.rbi => rubocop-shopify@2.16.0.rbi} | 0 sorbet/rbi/gems/rubocop@1.71.2.rbi | 50 +- 11 files changed, 9874 insertions(+), 907 deletions(-) rename sorbet/rbi/gems/{google-apis-storage_v1@0.49.0.rbi => google-apis-storage_v1@0.50.0.rbi} (100%) rename sorbet/rbi/gems/{google-cloud-core@1.7.1.rbi => google-cloud-core@1.8.0.rbi} (100%) rename sorbet/rbi/gems/{google-cloud-errors@1.4.0.rbi => google-cloud-errors@1.5.0.rbi} (97%) rename sorbet/rbi/gems/{rack@3.1.10.rbi => rack@3.1.12.rbi} (99%) rename sorbet/rbi/gems/{rbi@0.2.4.rbi => rbi@0.3.0.rbi} (56%) create mode 100644 sorbet/rbi/gems/rbs@3.8.1.rbi rename sorbet/rbi/gems/{rubocop-shopify@2.15.1.rbi => rubocop-shopify@2.16.0.rbi} (100%) diff --git a/Gemfile.lock b/Gemfile.lock index 1bb895f2..5480ea1d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -155,14 +155,14 @@ GEM retriable (>= 2.0, < 4.a) google-apis-iamcredentials_v1 (0.22.0) google-apis-core (>= 0.15.0, < 2.a) - google-apis-storage_v1 (0.49.0) + google-apis-storage_v1 (0.50.0) google-apis-core (>= 0.15.0, < 2.a) - google-cloud-core (1.7.1) + google-cloud-core (1.8.0) google-cloud-env (>= 1.0, < 3.a) google-cloud-errors (~> 1.0) google-cloud-env (2.2.1) faraday (>= 1.0, < 3.a) - google-cloud-errors (1.4.0) + google-cloud-errors (1.5.0) google-cloud-storage (1.55.0) addressable (~> 2.8) digest-crc (~> 0.4) @@ -267,7 +267,7 @@ GEM nio4r (~> 2.0) raabro (1.4.0) racc (1.8.1) - rack (3.1.10) + rack (3.1.12) rack-proxy (0.7.7) rack rack-session (2.1.0) @@ -312,9 +312,12 @@ GEM zeitwerk (~> 2.6) rainbow (3.1.1) rake (13.2.1) - rbi (0.2.4) + rbi (0.3.0) prism (~> 1.0) + rbs (>= 3.4.4) sorbet-runtime (>= 0.5.9204) + rbs (3.8.1) + logger rdoc (6.12.0) psych (>= 4.0.0) regexp_parser (2.10.0) @@ -376,8 +379,8 @@ GEM rubocop-ast (>= 1.31.1, < 2.0) rubocop-rspec (3.4.0) rubocop (~> 1.61) - rubocop-shopify (2.15.1) - rubocop (~> 1.51) + rubocop-shopify (2.16.0) + rubocop (~> 1.62) rubocop-thread_safety (0.6.0) rubocop (>= 1.48.1) ruby-progressbar (1.13.0) @@ -411,14 +414,14 @@ GEM fugit (~> 1.11.0) railties (>= 7.1) thor (~> 1.3.1) - sorbet (0.5.11874) - sorbet-static (= 0.5.11874) - sorbet-runtime (0.5.11874) - sorbet-static (0.5.11874-universal-darwin) - sorbet-static (0.5.11874-x86_64-linux) - sorbet-static-and-runtime (0.5.11874) - sorbet (= 0.5.11874) - sorbet-runtime (= 0.5.11874) + sorbet (0.5.11915) + sorbet-static (= 0.5.11915) + sorbet-runtime (0.5.11915) + sorbet-static (0.5.11915-universal-darwin) + sorbet-static (0.5.11915-x86_64-linux) + sorbet-static-and-runtime (0.5.11915) + sorbet (= 0.5.11915) + sorbet-runtime (= 0.5.11915) spoom (1.5.4) erubi (>= 1.10.0) prism (>= 0.28.0) diff --git a/config/environments/production.rb b/config/environments/production.rb index 11a8483f..ec99dd97 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -120,6 +120,7 @@ # "example.com", # Allow requests from example.com "sway.vote", "app.sway.vote", + "www.sway.vote", # /.*\.sway\.vote/, # Allow requests from subdomains like `www.example.com` /.*\.fly\.dev/, # Allow requests from subdomains like `www.example.com` "localhost", diff --git a/public/robots.txt b/public/robots.txt index fbe9066e..8059d71b 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -10,6 +10,26 @@ Allow: /legislator/ Allow: /sway_locales/ Disallow: / +User-agent: Googlebot-News +Allow: /$ +Allow: /bills/ +Allow: /bill/ +Allow: /bill_of_the_week/ +Allow: /legislators/ +Allow: /legislator/ +Allow: /sway_locales/ +Disallow: / + +User-agent: Mozilla/5.0 (compatible; Google-Site-Verification/1.0) +Allow: /$ +Allow: /bills/ +Allow: /bill/ +Allow: /bill_of_the_week/ +Allow: /legislators/ +Allow: /legislator/ +Allow: /sway_locales/ +Disallow: / + User-agent: Bingbot Allow: /$ Allow: /bills/ diff --git a/sorbet/rbi/gems/google-apis-storage_v1@0.49.0.rbi b/sorbet/rbi/gems/google-apis-storage_v1@0.50.0.rbi similarity index 100% rename from sorbet/rbi/gems/google-apis-storage_v1@0.49.0.rbi rename to sorbet/rbi/gems/google-apis-storage_v1@0.50.0.rbi diff --git a/sorbet/rbi/gems/google-cloud-core@1.7.1.rbi b/sorbet/rbi/gems/google-cloud-core@1.8.0.rbi similarity index 100% rename from sorbet/rbi/gems/google-cloud-core@1.7.1.rbi rename to sorbet/rbi/gems/google-cloud-core@1.8.0.rbi diff --git a/sorbet/rbi/gems/google-cloud-errors@1.4.0.rbi b/sorbet/rbi/gems/google-cloud-errors@1.5.0.rbi similarity index 97% rename from sorbet/rbi/gems/google-cloud-errors@1.4.0.rbi rename to sorbet/rbi/gems/google-cloud-errors@1.5.0.rbi index 74291f1e..2f699e58 100644 --- a/sorbet/rbi/gems/google-cloud-errors@1.4.0.rbi +++ b/sorbet/rbi/gems/google-cloud-errors@1.5.0.rbi @@ -14,25 +14,25 @@ module Google::Cloud def storage(scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end class << self - # source://google-cloud-core/1.7.1/lib/google/cloud.rb#158 + # source://google-cloud-core/1.8.0/lib/google/cloud.rb#158 def auto_load_files; end - # source://google-cloud-core/1.7.1/lib/google/cloud.rb#128 + # source://google-cloud-core/1.8.0/lib/google/cloud.rb#128 def auto_load_gems; end - # source://google-cloud-core/1.7.1/lib/google/cloud.rb#91 + # source://google-cloud-core/1.8.0/lib/google/cloud.rb#91 def configure; end # source://google-cloud-env/2.2.1/lib/google/cloud/env.rb#530 def env; end - # source://google-cloud-core/1.7.1/lib/google/cloud.rb#103 + # source://google-cloud-core/1.8.0/lib/google/cloud.rb#103 def init_configuration; end - # source://google-cloud-core/1.7.1/lib/google/cloud.rb#142 + # source://google-cloud-core/1.8.0/lib/google/cloud.rb#142 def loaded_files; end - # source://google-cloud-core/1.7.1/lib/google/cloud.rb#62 + # source://google-cloud-core/1.8.0/lib/google/cloud.rb#62 def new(project_id = T.unsafe(nil), credentials = T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil)); end # source://google-cloud-storage/1.55.0/lib/google-cloud-storage.rb#142 diff --git a/sorbet/rbi/gems/rack@3.1.10.rbi b/sorbet/rbi/gems/rack@3.1.12.rbi similarity index 99% rename from sorbet/rbi/gems/rack@3.1.10.rbi rename to sorbet/rbi/gems/rack@3.1.12.rbi index 3450b89e..73a41573 100644 --- a/sorbet/rbi/gems/rack@3.1.10.rbi +++ b/sorbet/rbi/gems/rack@3.1.12.rbi @@ -4295,7 +4295,7 @@ class Rack::Static # Convert HTTP header rules to HTTP headers # - # source://rack//lib/rack/static.rb#166 + # source://rack//lib/rack/static.rb#167 def applicable_rules(path); end # source://rack//lib/rack/static.rb#125 diff --git a/sorbet/rbi/gems/rbi@0.2.4.rbi b/sorbet/rbi/gems/rbi@0.3.0.rbi similarity index 56% rename from sorbet/rbi/gems/rbi@0.2.4.rbi rename to sorbet/rbi/gems/rbi@0.3.0.rbi index 314eb7e9..9ca377df 100644 --- a/sorbet/rbi/gems/rbi@0.2.4.rbi +++ b/sorbet/rbi/gems/rbi@0.3.0.rbi @@ -5,24 +5,41 @@ # Please instead update this file by running `bin/tapioca gem rbi`. -# source://rbi//lib/rbi.rb#7 +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rbi` gem. +# Please instead update this file by running `bin/tapioca gem rbi`. + +# source://rbi//lib/rbi.rb#8 +# source://rbi//lib/rbi.rb#13 module RBI; end -# source://rbi//lib/rbi/model.rb#1045 +# source://rbi//lib/rbi/model.rb#802 class RBI::Arg < ::RBI::Node - # source://rbi//lib/rbi/model.rb#1057 + # : (String value, ?loc: Loc?) -> void + # + # @return [Arg] a new instance of Arg + # + # source://rbi//lib/rbi/model.rb#807 sig { params(value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(value, loc: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#1063 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#813 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#1068 + # : -> String + # + # source://rbi//lib/rbi/model.rb#818 sig { returns(::String) } def to_s; end - # source://rbi//lib/rbi/model.rb#1049 + # : String + # + # source://rbi//lib/rbi/model.rb#804 sig { returns(::String) } def value; end end @@ -31,13 +48,17 @@ end # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#351 +# source://rbi//lib/rbi/model.rb#298 class RBI::Attr < ::RBI::NodeWithComments include ::RBI::Indexable abstract! - # source://rbi//lib/rbi/model.rb#376 + # : (Symbol name, Array[Symbol] names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) -> void + # + # @return [Attr] a new instance of Attr + # + # source://rbi//lib/rbi/model.rb#314 sig do params( name: ::Symbol, @@ -50,50 +71,67 @@ class RBI::Attr < ::RBI::NodeWithComments end def initialize(name, names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#420 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#394 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end # @abstract # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#61 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#58 sig { abstract.returns(T::Array[::RBI::Method]) } def convert_to_methods; end # @abstract # - # source://rbi//lib/rbi/model.rb#384 + # source://rbi//lib/rbi/model.rb#322 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/index.rb#113 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#109 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#428 + # : (Node other) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#403 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi//lib/rbi/model.rb#358 + # : Array[Symbol] + # + # source://rbi//lib/rbi/model.rb#305 sig { returns(T::Array[::Symbol]) } def names; end - # source://rbi//lib/rbi/model.rb#364 + # : Array[Sig] + # + # source://rbi//lib/rbi/model.rb#311 sig { returns(T::Array[::RBI::Sig]) } def sigs; end - # source://rbi//lib/rbi/model.rb#361 + # : Visibility + # + # source://rbi//lib/rbi/model.rb#308 sig { returns(::RBI::Visibility) } def visibility; end - # @return [Visibility] + # : Visibility # - # source://rbi//lib/rbi/model.rb#361 + # source://rbi//lib/rbi/model.rb#308 + # @return [Visibility] def visibility=(_arg0); end private - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#89 + # : (String name, Sig? sig, Visibility visibility, Loc? loc, Array[Comment] comments) -> Method + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#79 sig do params( name: ::String, @@ -105,7 +143,9 @@ class RBI::Attr < ::RBI::NodeWithComments end def create_getter_method(name, sig, visibility, loc, comments); end - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#110 + # : (String name, Sig? sig, (Type | String)? attribute_type, Visibility visibility, Loc? loc, Array[Comment] comments) -> Method + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#91 sig do params( name: ::String, @@ -118,16 +158,22 @@ class RBI::Attr < ::RBI::NodeWithComments end def create_setter_method(name, sig, attribute_type, visibility, loc, comments); end + # : -> [Sig?, (Type | String)?] + # # @raise [UnexpectedMultipleSigsError] # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#66 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#64 sig(:final) { returns([T.nilable(::RBI::Sig), T.nilable(T.any(::RBI::Type, ::String))]) } def parse_sig; end end -# source://rbi//lib/rbi/model.rb#387 +# source://rbi//lib/rbi/model.rb#325 class RBI::AttrAccessor < ::RBI::Attr - # source://rbi//lib/rbi/model.rb#401 + # : (Symbol name, *Symbol names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (AttrAccessor node) -> void } -> void + # + # @return [AttrAccessor] a new instance of AttrAccessor + # + # source://rbi//lib/rbi/model.rb#327 sig do params( name: ::Symbol, @@ -141,26 +187,40 @@ class RBI::AttrAccessor < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#460 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#432 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#140 + # : -> Array[Method] + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#122 sig { override.returns(T::Array[::RBI::Method]) } def convert_to_methods; end - # source://rbi//lib/rbi/model.rb#407 + # : -> Array[String] + # + # source://rbi//lib/rbi/model.rb#334 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/model.rb#413 + # : -> String + # + # source://rbi//lib/rbi/model.rb#341 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#419 +# source://rbi//lib/rbi/model.rb#347 class RBI::AttrReader < ::RBI::Attr - # source://rbi//lib/rbi/model.rb#433 + # : (Symbol name, *Symbol names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (AttrReader node) -> void } -> void + # + # @return [AttrReader] a new instance of AttrReader + # + # source://rbi//lib/rbi/model.rb#349 sig do params( name: ::Symbol, @@ -174,26 +234,40 @@ class RBI::AttrReader < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#442 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#416 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#154 + # : -> Array[Method] + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#137 sig { override.returns(T::Array[::RBI::Method]) } def convert_to_methods; end - # source://rbi//lib/rbi/model.rb#439 + # : -> Array[String] + # + # source://rbi//lib/rbi/model.rb#356 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/model.rb#445 + # : -> String + # + # source://rbi//lib/rbi/model.rb#363 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#451 +# source://rbi//lib/rbi/model.rb#369 class RBI::AttrWriter < ::RBI::Attr - # source://rbi//lib/rbi/model.rb#465 + # : (Symbol name, *Symbol names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (AttrWriter node) -> void } -> void + # + # @return [AttrWriter] a new instance of AttrWriter + # + # source://rbi//lib/rbi/model.rb#371 sig do params( name: ::Symbol, @@ -207,35 +281,53 @@ class RBI::AttrWriter < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#451 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#424 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#163 + # : -> Array[Method] + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#147 sig { override.returns(T::Array[::RBI::Method]) } def convert_to_methods; end - # source://rbi//lib/rbi/model.rb#471 + # : -> Array[String] + # + # source://rbi//lib/rbi/model.rb#378 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/model.rb#477 + # : -> String + # + # source://rbi//lib/rbi/model.rb#385 sig { override.returns(::String) } def to_s; end end # An arbitrary blank line that can be added both in trees and comments # -# source://rbi//lib/rbi/model.rb#76 +# source://rbi//lib/rbi/model.rb#73 class RBI::BlankLine < ::RBI::Comment - # source://rbi//lib/rbi/model.rb#80 + # : (?loc: Loc?) -> void + # + # @return [BlankLine] a new instance of BlankLine + # + # source://rbi//lib/rbi/model.rb#75 sig { params(loc: T.nilable(::RBI::Loc)).void } def initialize(loc: T.unsafe(nil)); end end -# source://rbi//lib/rbi/model.rb#816 +# source://rbi//lib/rbi/model.rb#642 class RBI::BlockParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#827 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (BlockParam node) -> void } -> void + # + # @return [BlockParam] a new instance of BlockParam + # + # source://rbi//lib/rbi/model.rb#644 sig do params( name: ::String, @@ -246,18 +338,26 @@ class RBI::BlockParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#838 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#656 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#833 + # : -> String + # + # source://rbi//lib/rbi/model.rb#651 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#220 +# source://rbi//lib/rbi/model.rb#202 class RBI::Class < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#238 + # : (String name, ?superclass_name: String?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Class node) -> void } -> void + # + # @return [Class] a new instance of Class + # + # source://rbi//lib/rbi/model.rb#210 sig do params( name: ::String, @@ -269,50 +369,71 @@ class RBI::Class < ::RBI::Scope end def initialize(name, superclass_name: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#384 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#362 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#246 + # : -> String + # + # source://rbi//lib/rbi/model.rb#219 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/model.rb#224 + # : String + # + # source://rbi//lib/rbi/model.rb#204 sig { returns(::String) } def name; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#224 + # source://rbi//lib/rbi/model.rb#204 + # @return [String] def name=(_arg0); end - # source://rbi//lib/rbi/model.rb#227 + # : String? + # + # source://rbi//lib/rbi/model.rb#207 sig { returns(T.nilable(::String)) } def superclass_name; end - # @return [String, nil] + # : String? # - # source://rbi//lib/rbi/model.rb#227 + # source://rbi//lib/rbi/model.rb#207 + # @return [String, nil] def superclass_name=(_arg0); end end -# source://rbi//lib/rbi/model.rb#55 +# source://rbi//lib/rbi/model.rb#54 class RBI::Comment < ::RBI::Node - # source://rbi//lib/rbi/model.rb#62 + # : (String text, ?loc: Loc?) -> void + # + # @return [Comment] a new instance of Comment + # + # source://rbi//lib/rbi/model.rb#59 sig { params(text: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(text, loc: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#68 + # : (Object other) -> bool + # + # source://rbi//lib/rbi/model.rb#65 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#59 + # : String + # + # source://rbi//lib/rbi/model.rb#56 sig { returns(::String) } def text; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#59 + # source://rbi//lib/rbi/model.rb#56 + # @return [String] def text=(_arg0); end end @@ -331,38 +452,64 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#583 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#546 +# A tree showing incompatibles nodes +# Is rendered as a merge conflict between `left` and` right`: +# ~~~rb +# class Foo +# <<<<<<< left +# def m1; end +# def m2(a); end +# ======= +# def m1(a); end +# def m2; end +# >>>>>>> right +# end class RBI::ConflictTree < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/merge_trees.rb#593 + # : (?left_name: String, ?right_name: String) -> void + # + # @return [ConflictTree] a new instance of ConflictTree + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#554 sig { params(left_name: ::String, right_name: ::String).void } def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#587 + # : Tree + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#548 sig { returns(::RBI::Tree) } def left; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#590 + # : String + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#551 sig { returns(::String) } def left_name; end - # @return [Tree] + # : Tree # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#587 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#548 + # @return [Tree] def right; end - # @return [String] + # : String # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#590 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#551 + # @return [String] def right_name; end end # Consts # -# source://rbi//lib/rbi/model.rb#314 +# source://rbi//lib/rbi/model.rb#270 class RBI::Const < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#329 + # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Const node) -> void } -> void + # + # @return [Const] a new instance of Const + # + # source://rbi//lib/rbi/model.rb#275 sig do params( name: ::String, @@ -374,43 +521,61 @@ class RBI::Const < ::RBI::NodeWithComments end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#411 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#386 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#337 + # : -> String + # + # source://rbi//lib/rbi/model.rb#283 sig { returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/index.rb#103 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#99 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#318 + # : String + # + # source://rbi//lib/rbi/model.rb#272 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#344 + # : -> String + # + # source://rbi//lib/rbi/model.rb#291 sig { override.returns(::String) } def to_s; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#318 + # source://rbi//lib/rbi/model.rb#272 + # @return [String] def value; end end -# source://rbi//lib/rbi/rewriters/merge_trees.rb#351 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#332 class RBI::DuplicateNodeError < ::RBI::Error; end -# source://rbi//lib/rbi.rb#8 +# source://rbi//lib/rbi.rb#9 +# source://rbi//lib/rbi.rb#14 class RBI::Error < ::StandardError; end -# source://rbi//lib/rbi/model.rb#891 +# source://rbi//lib/rbi/model.rb#692 class RBI::Extend < ::RBI::Mixin include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#903 + # : (String name, *String names, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Extend node) -> void } -> void + # + # @return [Extend] a new instance of Extend + # + # source://rbi//lib/rbi/model.rb#694 sig do params( name: ::String, @@ -422,22 +587,34 @@ class RBI::Extend < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#510 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#479 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/index.rb#143 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#139 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#909 + # : -> String + # + # source://rbi//lib/rbi/model.rb#701 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#139 +# source://rbi//lib/rbi/model.rb#135 class RBI::File - # source://rbi//lib/rbi/model.rb#158 + # : (?strictness: String?, ?comments: Array[Comment]) ?{ (File file) -> void } -> void + # + # @return [File] a new instance of File + # + # source://rbi//lib/rbi/model.rb#146 sig do params( strictness: T.nilable(::String), @@ -447,24 +624,35 @@ class RBI::File end def initialize(strictness: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#166 + # : (Node node) -> void + # + # source://rbi//lib/rbi/model.rb#154 sig { params(node: ::RBI::Node).void } def <<(node); end - # source://rbi//lib/rbi/model.rb#149 + # : Array[Comment] + # + # source://rbi//lib/rbi/model.rb#143 sig { returns(T::Array[::RBI::Comment]) } def comments; end - # @return [Array] + # : Array[Comment] # - # source://rbi//lib/rbi/model.rb#149 + # source://rbi//lib/rbi/model.rb#143 + # @return [Array] def comments=(_arg0); end - # source://rbi//lib/rbi/model.rb#171 + # : -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#159 sig { returns(T::Boolean) } def empty?; end - # source://rbi//lib/rbi/printer.rb#751 + # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void + # + # source://rbi//lib/rbi/printer.rb#794 sig do params( out: T.any(::IO, ::StringIO), @@ -475,40 +663,56 @@ class RBI::File end def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # source://rbi//lib/rbi/rbs_printer.rb#1040 + # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1106 sig { params(out: T.any(::IO, ::StringIO), indent: ::Integer, print_locs: T::Boolean).void } def rbs_print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end - # source://rbi//lib/rbi/rbs_printer.rb#1046 + # : (?indent: Integer, ?print_locs: bool) -> String + # + # source://rbi//lib/rbi/rbs_printer.rb#1112 sig { params(indent: ::Integer, print_locs: T::Boolean).returns(::String) } def rbs_string(indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#143 + # : Tree + # + # source://rbi//lib/rbi/model.rb#137 sig { returns(::RBI::Tree) } def root; end - # @return [Tree] + # : Tree # - # source://rbi//lib/rbi/model.rb#143 + # source://rbi//lib/rbi/model.rb#137 + # @return [Tree] def root=(_arg0); end - # source://rbi//lib/rbi/model.rb#146 + # : String? + # + # source://rbi//lib/rbi/model.rb#140 sig { returns(T.nilable(::String)) } def strictness; end - # @return [String, nil] + # : String? # - # source://rbi//lib/rbi/model.rb#146 + # source://rbi//lib/rbi/model.rb#140 + # @return [String, nil] def strictness=(_arg0); end - # source://rbi//lib/rbi/printer.rb#757 + # : (?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> String + # + # source://rbi//lib/rbi/printer.rb#800 sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end end # source://rbi//lib/rbi/formatter.rb#5 class RBI::Formatter - # source://rbi//lib/rbi/formatter.rb#21 + # : (?add_sig_templates: bool, ?group_nodes: bool, ?max_line_length: Integer?, ?nest_singleton_methods: bool, ?nest_non_public_members: bool, ?sort_nodes: bool) -> void + # + # @return [Formatter] a new instance of Formatter + # + # source://rbi//lib/rbi/formatter.rb#10 sig do params( add_sig_templates: T::Boolean, @@ -521,40 +725,55 @@ class RBI::Formatter end def initialize(add_sig_templates: T.unsafe(nil), group_nodes: T.unsafe(nil), max_line_length: T.unsafe(nil), nest_singleton_methods: T.unsafe(nil), nest_non_public_members: T.unsafe(nil), sort_nodes: T.unsafe(nil)); end - # source://rbi//lib/rbi/formatter.rb#44 + # : (RBI::File file) -> void + # + # source://rbi//lib/rbi/formatter.rb#33 sig { params(file: ::RBI::File).void } def format_file(file); end - # source://rbi//lib/rbi/formatter.rb#49 + # : (RBI::Tree tree) -> void + # + # source://rbi//lib/rbi/formatter.rb#38 sig { params(tree: ::RBI::Tree).void } def format_tree(tree); end - # source://rbi//lib/rbi/formatter.rb#9 + # : Integer? + # + # source://rbi//lib/rbi/formatter.rb#7 sig { returns(T.nilable(::Integer)) } def max_line_length; end - # @return [Integer, nil] + # : Integer? # - # source://rbi//lib/rbi/formatter.rb#9 + # source://rbi//lib/rbi/formatter.rb#7 + # @return [Integer, nil] def max_line_length=(_arg0); end - # source://rbi//lib/rbi/formatter.rb#38 + # : (RBI::File file) -> String + # + # source://rbi//lib/rbi/formatter.rb#27 sig { params(file: ::RBI::File).returns(::String) } def print_file(file); end end -# source://rbi//lib/rbi/rewriters/group_nodes.rb#87 +# source://rbi//lib/rbi/rewriters/group_nodes.rb#84 class RBI::Group < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/group_nodes.rb#94 + # : (Kind kind) -> void + # + # @return [Group] a new instance of Group + # + # source://rbi//lib/rbi/rewriters/group_nodes.rb#89 sig { params(kind: ::RBI::Group::Kind).void } def initialize(kind); end - # source://rbi//lib/rbi/rewriters/group_nodes.rb#91 + # : Kind + # + # source://rbi//lib/rbi/rewriters/group_nodes.rb#86 sig { returns(::RBI::Group::Kind) } def kind; end end -# source://rbi//lib/rbi/rewriters/group_nodes.rb#99 +# source://rbi//lib/rbi/rewriters/group_nodes.rb#94 class RBI::Group::Kind < ::T::Enum enums do Attrs = new @@ -578,11 +797,15 @@ class RBI::GroupNodesError < ::RBI::Error; end # Sorbet's misc. # -# source://rbi//lib/rbi/model.rb#1377 +# source://rbi//lib/rbi/model.rb#1042 class RBI::Helper < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1391 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Helper node) -> void } -> void + # + # @return [Helper] a new instance of Helper + # + # source://rbi//lib/rbi/model.rb#1047 sig do params( name: ::String, @@ -593,28 +816,42 @@ class RBI::Helper < ::RBI::NodeWithComments end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#528 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#495 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/index.rb#173 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#169 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1381 + # : String + # + # source://rbi//lib/rbi/model.rb#1044 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#1398 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1055 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#868 +# source://rbi//lib/rbi/model.rb#678 class RBI::Include < ::RBI::Mixin include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#880 + # : (String name, *String names, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Include node) -> void } -> void + # + # @return [Include] a new instance of Include + # + # source://rbi//lib/rbi/model.rb#680 sig do params( name: ::String, @@ -626,49 +863,73 @@ class RBI::Include < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#501 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#471 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/index.rb#133 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#129 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#886 + # : -> String + # + # source://rbi//lib/rbi/model.rb#687 sig { override.returns(::String) } def to_s; end end # source://rbi//lib/rbi/index.rb#5 class RBI::Index < ::RBI::Visitor - # source://rbi//lib/rbi/index.rb#21 + # : -> void + # + # @return [Index] a new instance of Index + # + # source://rbi//lib/rbi/index.rb#18 sig { void } def initialize; end - # source://rbi//lib/rbi/index.rb#32 + # : (String id) -> Array[Node] + # + # source://rbi//lib/rbi/index.rb#29 sig { params(id: ::String).returns(T::Array[::RBI::Node]) } def [](id); end - # source://rbi//lib/rbi/index.rb#37 + # : (*Node nodes) -> void + # + # source://rbi//lib/rbi/index.rb#34 sig { params(nodes: ::RBI::Node).void } def index(*nodes); end - # source://rbi//lib/rbi/index.rb#27 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#24 sig { returns(T::Array[::String]) } def keys; end - # source://rbi//lib/rbi/index.rb#42 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/index.rb#40 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi//lib/rbi/index.rb#59 + # : ((Indexable & Node) node) -> void + # + # source://rbi//lib/rbi/index.rb#57 sig { params(node: T.all(::RBI::Indexable, ::RBI::Node)).void } def index_node(node); end class << self - # source://rbi//lib/rbi/index.rb#13 + # : (*Node node) -> Index + # + # source://rbi//lib/rbi/index.rb#10 sig { params(node: ::RBI::Node).returns(::RBI::Index) } def index(*node); end end @@ -678,7 +939,7 @@ end # # @abstract Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/index.rb#74 +# source://rbi//lib/rbi/index.rb#70 module RBI::Indexable interface! @@ -689,33 +950,49 @@ module RBI::Indexable # # @abstract # - # source://rbi//lib/rbi/index.rb#85 + # source://rbi//lib/rbi/index.rb#81 + # Unique IDs that refer to this node. + # Some nodes can have multiple ids, for example an attribute accessor matches the ID of the sig { abstract.returns(T::Array[::String]) } def index_ids; end end -# source://rbi//lib/rbi/model.rb#1073 +# source://rbi//lib/rbi/model.rb#823 class RBI::KwArg < ::RBI::Arg - # source://rbi//lib/rbi/model.rb#1086 + # : (String keyword, String value, ?loc: Loc?) -> void + # + # @return [KwArg] a new instance of KwArg + # + # source://rbi//lib/rbi/model.rb#828 sig { params(keyword: ::String, value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(keyword, value, loc: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#1092 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#834 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#1077 + # : String + # + # source://rbi//lib/rbi/model.rb#825 sig { returns(::String) } def keyword; end - # source://rbi//lib/rbi/model.rb#1097 + # : -> String + # + # source://rbi//lib/rbi/model.rb#839 sig { returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#757 +# source://rbi//lib/rbi/model.rb#600 class RBI::KwOptParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#772 + # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwOptParam node) -> void } -> void + # + # @return [KwOptParam] a new instance of KwOptParam + # + # source://rbi//lib/rbi/model.rb#605 sig do params( name: ::String, @@ -727,22 +1004,32 @@ class RBI::KwOptParam < ::RBI::Param end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#784 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#618 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#779 + # : -> String + # + # source://rbi//lib/rbi/model.rb#613 sig { override.returns(::String) } def to_s; end - # source://rbi//lib/rbi/model.rb#761 + # : String + # + # source://rbi//lib/rbi/model.rb#602 sig { returns(::String) } def value; end end -# source://rbi//lib/rbi/model.rb#730 +# source://rbi//lib/rbi/model.rb#581 class RBI::KwParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#741 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwParam node) -> void } -> void + # + # @return [KwParam] a new instance of KwParam + # + # source://rbi//lib/rbi/model.rb#583 sig do params( name: ::String, @@ -753,18 +1040,26 @@ class RBI::KwParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#752 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#595 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#747 + # : -> String + # + # source://rbi//lib/rbi/model.rb#590 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#789 +# source://rbi//lib/rbi/model.rb#623 class RBI::KwRestParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#800 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwRestParam node) -> void } -> void + # + # @return [KwRestParam] a new instance of KwRestParam + # + # source://rbi//lib/rbi/model.rb#625 sig do params( name: ::String, @@ -775,18 +1070,26 @@ class RBI::KwRestParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#811 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#637 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#806 + # : -> String + # + # source://rbi//lib/rbi/model.rb#632 sig { override.returns(::String) } def to_s; end end # source://rbi//lib/rbi/loc.rb#5 class RBI::Loc - # source://rbi//lib/rbi/loc.rb#38 + # : (?file: String?, ?begin_line: Integer?, ?end_line: Integer?, ?begin_column: Integer?, ?end_column: Integer?) -> void + # + # @return [Loc] a new instance of Loc + # + # source://rbi//lib/rbi/loc.rb#26 sig do params( file: T.nilable(::String), @@ -798,39 +1101,52 @@ class RBI::Loc end def initialize(file: T.unsafe(nil), begin_line: T.unsafe(nil), end_line: T.unsafe(nil), begin_column: T.unsafe(nil), end_column: T.unsafe(nil)); end - # @return [Integer, nil] + # : Integer? # - # source://rbi//lib/rbi/loc.rb#27 + # source://rbi//lib/rbi/loc.rb#23 + # @return [Integer, nil] def begin_column; end - # source://rbi//lib/rbi/loc.rb#27 + # : Integer? + # + # source://rbi//lib/rbi/loc.rb#23 sig { returns(T.nilable(::Integer)) } def begin_line; end - # @return [Integer, nil] + # : Integer? # - # source://rbi//lib/rbi/loc.rb#27 + # source://rbi//lib/rbi/loc.rb#23 + # @return [Integer, nil] def end_column; end - # @return [Integer, nil] + # : Integer? # - # source://rbi//lib/rbi/loc.rb#27 + # source://rbi//lib/rbi/loc.rb#23 + # @return [Integer, nil] def end_line; end - # source://rbi//lib/rbi/loc.rb#24 + # : String? + # + # source://rbi//lib/rbi/loc.rb#20 sig { returns(T.nilable(::String)) } def file; end - # source://rbi//lib/rbi/loc.rb#56 + # : -> String? + # + # source://rbi//lib/rbi/loc.rb#44 sig { returns(T.nilable(::String)) } def source; end - # source://rbi//lib/rbi/loc.rb#47 + # : -> String + # + # source://rbi//lib/rbi/loc.rb#35 sig { returns(::String) } def to_s; end class << self - # source://rbi//lib/rbi/loc.rb#12 + # : (String file, Prism::Location prism_location) -> Loc + # + # source://rbi//lib/rbi/loc.rb#8 sig { params(file: ::String, prism_location: ::Prism::Location).returns(::RBI::Loc) } def from_prism(file, prism_location); end end @@ -838,9 +1154,13 @@ end # A tree that _might_ contain conflicts # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#330 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#320 class RBI::MergeTree < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/merge_trees.rb#344 + # : (?loc: Loc?, ?comments: Array[Comment], ?conflicts: Array[Rewriters::Merge::Conflict]) ?{ (Tree node) -> void } -> void + # + # @return [MergeTree] a new instance of MergeTree + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#325 sig do params( loc: T.nilable(::RBI::Loc), @@ -851,18 +1171,24 @@ class RBI::MergeTree < ::RBI::Tree end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), conflicts: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#334 + # : Array[Rewriters::Merge::Conflict] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#322 sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } def conflicts; end end # Methods and args # -# source://rbi//lib/rbi/model.rb#485 +# source://rbi//lib/rbi/model.rb#393 class RBI::Method < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#515 + # : (String name, ?params: Array[Param], ?is_singleton: bool, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (Method node) -> void } -> void + # + # @return [Method] a new instance of Method + # + # source://rbi//lib/rbi/model.rb#410 sig do params( name: ::String, @@ -877,39 +1203,57 @@ class RBI::Method < ::RBI::NodeWithComments end def initialize(name, params: T.unsafe(nil), is_singleton: T.unsafe(nil), visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#535 + # : (Param param) -> void + # + # source://rbi//lib/rbi/model.rb#430 sig { params(param: ::RBI::Param).void } def <<(param); end - # source://rbi//lib/rbi/model.rb#570 + # : (String name) -> void + # + # source://rbi//lib/rbi/model.rb#465 sig { params(name: ::String).void } def add_block_param(name); end - # source://rbi//lib/rbi/model.rb#560 + # : (String name, String default_value) -> void + # + # source://rbi//lib/rbi/model.rb#455 sig { params(name: ::String, default_value: ::String).void } def add_kw_opt_param(name, default_value); end - # source://rbi//lib/rbi/model.rb#555 + # : (String name) -> void + # + # source://rbi//lib/rbi/model.rb#450 sig { params(name: ::String).void } def add_kw_param(name); end - # source://rbi//lib/rbi/model.rb#565 + # : (String name) -> void + # + # source://rbi//lib/rbi/model.rb#460 sig { params(name: ::String).void } def add_kw_rest_param(name); end - # source://rbi//lib/rbi/model.rb#545 + # : (String name, String default_value) -> void + # + # source://rbi//lib/rbi/model.rb#440 sig { params(name: ::String, default_value: ::String).void } def add_opt_param(name, default_value); end - # source://rbi//lib/rbi/model.rb#540 + # : (String name) -> void + # + # source://rbi//lib/rbi/model.rb#435 sig { params(name: ::String).void } def add_param(name); end - # source://rbi//lib/rbi/model.rb#550 + # : (String name) -> void + # + # source://rbi//lib/rbi/model.rb#445 sig { params(name: ::String).void } def add_rest_param(name); end - # source://rbi//lib/rbi/model.rb#587 + # : (?params: Array[SigParam], ?return_type: (String | Type), ?is_abstract: bool, ?is_override: bool, ?is_overridable: bool, ?is_final: bool, ?type_params: Array[String], ?checked: Symbol?) ?{ (Sig node) -> void } -> void + # + # source://rbi//lib/rbi/model.rb#470 sig do params( params: T::Array[::RBI::SigParam], @@ -925,72 +1269,102 @@ class RBI::Method < ::RBI::NodeWithComments end def add_sig(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#469 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#440 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#613 + # : -> String + # + # source://rbi//lib/rbi/model.rb#496 sig { returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/index.rb#123 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#119 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#495 + # : bool + # + # source://rbi//lib/rbi/model.rb#401 sig { returns(T::Boolean) } def is_singleton; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#495 + # source://rbi//lib/rbi/model.rb#401 + # @return [Boolean] def is_singleton=(_arg0); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#478 + # : (Node other) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#450 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi//lib/rbi/model.rb#489 + # : String + # + # source://rbi//lib/rbi/model.rb#395 sig { returns(::String) } def name; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#489 + # source://rbi//lib/rbi/model.rb#395 + # @return [String] def name=(_arg0); end - # source://rbi//lib/rbi/model.rb#492 + # : Array[Param] + # + # source://rbi//lib/rbi/model.rb#398 sig { returns(T::Array[::RBI::Param]) } def params; end - # source://rbi//lib/rbi/model.rb#501 - sig { returns(T::Array[::RBI::Sig]) } + # : Array[Sig] + # + # source://rbi//lib/rbi/model.rb#407 + sig { returns(T::Array[::RBI::Sig]) } def sigs; end - # @return [Array] + # : Array[Sig] # - # source://rbi//lib/rbi/model.rb#501 + # source://rbi//lib/rbi/model.rb#407 + # @return [Array] def sigs=(_arg0); end - # source://rbi//lib/rbi/model.rb#622 + # : -> String + # + # source://rbi//lib/rbi/model.rb#506 sig { override.returns(::String) } def to_s; end - # source://rbi//lib/rbi/model.rb#498 + # : Visibility + # + # source://rbi//lib/rbi/model.rb#404 sig { returns(::RBI::Visibility) } def visibility; end - # @return [Visibility] + # : Visibility # - # source://rbi//lib/rbi/model.rb#498 + # source://rbi//lib/rbi/model.rb#404 + # @return [Visibility] def visibility=(_arg0); end end -# source://rbi//lib/rbi/model.rb#1438 +# source://rbi//lib/rbi/model.rb#1086 class RBI::MixesInClassMethods < ::RBI::Mixin include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1450 + # : (String name, *String names, ?loc: Loc?, ?comments: Array[Comment]) ?{ (MixesInClassMethods node) -> void } -> void + # + # @return [MixesInClassMethods] a new instance of MixesInClassMethods + # + # source://rbi//lib/rbi/model.rb#1088 sig do params( name: ::String, @@ -1002,15 +1376,23 @@ class RBI::MixesInClassMethods < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#519 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#487 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/index.rb#153 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#149 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1456 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1095 sig { override.returns(::String) } def to_s; end end @@ -1019,11 +1401,15 @@ end # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#845 +# source://rbi//lib/rbi/model.rb#663 class RBI::Mixin < ::RBI::NodeWithComments abstract! - # source://rbi//lib/rbi/model.rb#862 + # : (String name, Array[String] names, ?loc: Loc?, ?comments: Array[Comment]) -> void + # + # @return [Mixin] a new instance of Mixin + # + # source://rbi//lib/rbi/model.rb#672 sig do params( name: ::String, @@ -1034,18 +1420,28 @@ class RBI::Mixin < ::RBI::NodeWithComments end def initialize(name, names, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#492 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#463 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#852 + # : Array[String] + # + # source://rbi//lib/rbi/model.rb#669 sig { returns(T::Array[::String]) } def names; end end -# source://rbi//lib/rbi/model.rb#192 +# source://rbi//lib/rbi/model.rb#182 class RBI::Module < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#206 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Module node) -> void } -> void + # + # @return [Module] a new instance of Module + # + # source://rbi//lib/rbi/model.rb#187 sig do params( name: ::String, @@ -1056,21 +1452,30 @@ class RBI::Module < ::RBI::Scope end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#393 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#370 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#213 + # : -> String + # + # source://rbi//lib/rbi/model.rb#195 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/model.rb#196 + # : String + # + # source://rbi//lib/rbi/model.rb#184 sig { returns(::String) } def name; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#196 + # source://rbi//lib/rbi/model.rb#184 + # @return [String] def name=(_arg0); end end @@ -1080,53 +1485,77 @@ end class RBI::Node abstract! - # source://rbi//lib/rbi/model.rb#20 + # : (?loc: Loc?) -> void + # + # @return [Node] a new instance of Node + # + # source://rbi//lib/rbi/model.rb#19 sig { params(loc: T.nilable(::RBI::Loc)).void } def initialize(loc: T.unsafe(nil)); end # Can `self` and `_other` be merged into a single definition? + # : (Node _other) -> bool # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#287 + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#280 + # Can `self` and `_other` be merged into a single definition? sig { params(_other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(_other); end - # source://rbi//lib/rbi/model.rb#26 + # : -> void + # + # source://rbi//lib/rbi/model.rb#25 sig { void } def detach; end - # source://rbi//lib/rbi/model.rb#17 + # : Loc? + # + # source://rbi//lib/rbi/model.rb#16 sig { returns(T.nilable(::RBI::Loc)) } def loc; end - # @return [Loc, nil] + # : Loc? # - # source://rbi//lib/rbi/model.rb#17 + # source://rbi//lib/rbi/model.rb#16 + # @return [Loc, nil] def loc=(_arg0); end # Merge `self` and `other` into a single definition + # : (Node other) -> void # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#293 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#286 + # Merge `self` and `other` into a single definition sig { params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#296 + # : -> ConflictTree? + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#289 sig { returns(T.nilable(::RBI::ConflictTree)) } def parent_conflict_tree; end - # source://rbi//lib/rbi/model.rb#48 + # : -> Scope? + # + # source://rbi//lib/rbi/model.rb#47 sig { returns(T.nilable(::RBI::Scope)) } def parent_scope; end - # source://rbi//lib/rbi/model.rb#14 + # : Tree? + # + # source://rbi//lib/rbi/model.rb#13 sig { returns(T.nilable(::RBI::Tree)) } def parent_tree; end - # @return [Tree, nil] + # : Tree? # - # source://rbi//lib/rbi/model.rb#14 + # source://rbi//lib/rbi/model.rb#13 + # @return [Tree, nil] def parent_tree=(_arg0); end - # source://rbi//lib/rbi/printer.rb#775 + # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void + # + # source://rbi//lib/rbi/printer.rb#809 sig do params( out: T.any(::IO, ::StringIO), @@ -1137,64 +1566,100 @@ class RBI::Node end def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # source://rbi//lib/rbi/rbs_printer.rb#1057 - sig { params(out: T.any(::IO, ::StringIO), indent: ::Integer, print_locs: T::Boolean).void } - def rbs_print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end + # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?positional_names: bool) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1121 + sig do + params( + out: T.any(::IO, ::StringIO), + indent: ::Integer, + print_locs: T::Boolean, + positional_names: T::Boolean + ).void + end + def rbs_print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end - # source://rbi//lib/rbi/rbs_printer.rb#1063 - sig { params(indent: ::Integer, print_locs: T::Boolean).returns(::String) } - def rbs_string(indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end + # : (?indent: Integer, ?print_locs: bool, ?positional_names: bool) -> String + # + # source://rbi//lib/rbi/rbs_printer.rb#1127 + sig { params(indent: ::Integer, print_locs: T::Boolean, positional_names: T::Boolean).returns(::String) } + def rbs_string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end + # : (Node node) -> void + # # @raise [ReplaceNodeError] # - # source://rbi//lib/rbi/model.rb#35 + # source://rbi//lib/rbi/model.rb#34 sig { params(node: ::RBI::Node).void } def replace(node); end - # source://rbi//lib/rbi/rewriters/filter_versions.rb#94 + # : (Gem::Version version) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/filter_versions.rb#91 sig { params(version: ::Gem::Version).returns(T::Boolean) } def satisfies_version?(version); end - # source://rbi//lib/rbi/printer.rb#781 + # : (?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> String + # + # source://rbi//lib/rbi/printer.rb#815 sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#85 +# source://rbi//lib/rbi/model.rb#90 class RBI::NodeWithComments < ::RBI::Node abstract! - # source://rbi//lib/rbi/model.rb#95 + # : (?loc: Loc?, ?comments: Array[Comment]) -> void + # + # @return [NodeWithComments] a new instance of NodeWithComments + # + # source://rbi//lib/rbi/model.rb#99 sig { params(loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#101 + # : -> Array[String] + # + # source://rbi//lib/rbi/model.rb#105 sig { returns(T::Array[::String]) } def annotations; end - # source://rbi//lib/rbi/model.rb#92 + # : Array[Comment] + # + # source://rbi//lib/rbi/model.rb#96 sig { returns(T::Array[::RBI::Comment]) } def comments; end - # @return [Array] + # : Array[Comment] # - # source://rbi//lib/rbi/model.rb#92 + # source://rbi//lib/rbi/model.rb#96 + # @return [Array] def comments=(_arg0); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#311 + # : (Node other) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#303 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi//lib/rbi/rewriters/filter_versions.rb#104 + # : -> Array[Gem::Requirement] + # + # source://rbi//lib/rbi/rewriters/filter_versions.rb#101 sig { returns(T::Array[::Gem::Requirement]) } def version_requirements; end end -# source://rbi//lib/rbi/model.rb#676 +# source://rbi//lib/rbi/model.rb#545 class RBI::OptParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#691 + # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (OptParam node) -> void } -> void + # + # @return [OptParam] a new instance of OptParam + # + # source://rbi//lib/rbi/model.rb#550 sig do params( name: ::String, @@ -1206,196 +1671,286 @@ class RBI::OptParam < ::RBI::Param end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#698 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#557 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#680 + # : String + # + # source://rbi//lib/rbi/model.rb#547 sig { returns(::String) } def value; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#627 +# source://rbi//lib/rbi/model.rb#511 class RBI::Param < ::RBI::NodeWithComments abstract! - # source://rbi//lib/rbi/model.rb#643 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) -> void + # + # @return [Param] a new instance of Param + # + # source://rbi//lib/rbi/model.rb#520 sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#634 + # : String + # + # source://rbi//lib/rbi/model.rb#517 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#649 + # : -> String + # + # source://rbi//lib/rbi/model.rb#527 sig { override.returns(::String) } def to_s; end end # source://rbi//lib/rbi/parser.rb#7 class RBI::ParseError < ::RBI::Error - # source://rbi//lib/rbi/parser.rb#14 + # : (String message, Loc location) -> void + # + # @return [ParseError] a new instance of ParseError + # + # source://rbi//lib/rbi/parser.rb#12 sig { params(message: ::String, location: ::RBI::Loc).void } def initialize(message, location); end - # source://rbi//lib/rbi/parser.rb#11 + # : Loc + # + # source://rbi//lib/rbi/parser.rb#9 sig { returns(::RBI::Loc) } def location; end end -# source://rbi//lib/rbi/parser.rb#53 +# source://rbi//lib/rbi/parser.rb#49 class RBI::Parser - # source://rbi//lib/rbi/parser.rb#88 + # : (String path) -> Tree + # + # source://rbi//lib/rbi/parser.rb#80 sig { params(path: ::String).returns(::RBI::Tree) } def parse_file(path); end - # source://rbi//lib/rbi/parser.rb#83 + # : (String string) -> Tree + # + # source://rbi//lib/rbi/parser.rb#75 sig { params(string: ::String).returns(::RBI::Tree) } def parse_string(string); end private - # source://rbi//lib/rbi/parser.rb#95 + # : (String source, file: String) -> Tree + # + # source://rbi//lib/rbi/parser.rb#87 sig { params(source: ::String, file: ::String).returns(::RBI::Tree) } def parse(source, file:); end class << self - # source://rbi//lib/rbi/parser.rb#65 + # : (String path) -> Tree + # + # source://rbi//lib/rbi/parser.rb#57 sig { params(path: ::String).returns(::RBI::Tree) } def parse_file(path); end - # source://rbi//lib/rbi/parser.rb#70 + # : (Array[String] paths) -> Array[Tree] + # + # source://rbi//lib/rbi/parser.rb#62 sig { params(paths: T::Array[::String]).returns(T::Array[::RBI::Tree]) } def parse_files(paths); end - # source://rbi//lib/rbi/parser.rb#60 + # : (String string) -> Tree + # + # source://rbi//lib/rbi/parser.rb#52 sig { params(string: ::String).returns(::RBI::Tree) } def parse_string(string); end - # source://rbi//lib/rbi/parser.rb#76 + # : (Array[String] strings) -> Array[Tree] + # + # source://rbi//lib/rbi/parser.rb#68 sig { params(strings: T::Array[::String]).returns(T::Array[::RBI::Tree]) } def parse_strings(strings); end end end -# source://rbi//lib/rbi/parser.rb#821 +# source://rbi//lib/rbi/parser.rb#822 class RBI::Parser::SigBuilder < ::RBI::Parser::Visitor - # source://rbi//lib/rbi/parser.rb#828 + # : (String content, file: String) -> void + # + # @return [SigBuilder] a new instance of SigBuilder + # + # source://rbi//lib/rbi/parser.rb#827 sig { params(content: ::String, file: ::String).void } def initialize(content, file:); end - # source://rbi//lib/rbi/parser.rb#825 + # : Sig + # + # source://rbi//lib/rbi/parser.rb#824 sig { returns(::RBI::Sig) } def current; end - # source://rbi//lib/rbi/parser.rb#896 + # : (Prism::AssocNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#897 sig { override.params(node: ::Prism::AssocNode).void } def visit_assoc_node(node); end + # : (Prism::CallNode node) -> void + # # source://rbi//lib/rbi/parser.rb#835 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end end -# source://rbi//lib/rbi/parser.rb#153 +# source://rbi//lib/rbi/parser.rb#143 class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor - # source://rbi//lib/rbi/parser.rb#163 + # : (String source, comments: Array[Prism::Comment], file: String) -> void + # + # @return [TreeBuilder] a new instance of TreeBuilder + # + # source://rbi//lib/rbi/parser.rb#151 sig { params(source: ::String, comments: T::Array[::Prism::Comment], file: ::String).void } def initialize(source, comments:, file:); end - # source://rbi//lib/rbi/parser.rb#160 + # : Prism::Node? + # + # source://rbi//lib/rbi/parser.rb#148 sig { returns(T.nilable(::Prism::Node)) } def last_node; end - # source://rbi//lib/rbi/parser.rb#157 + # : Tree + # + # source://rbi//lib/rbi/parser.rb#145 sig { returns(::RBI::Tree) } def tree; end - # source://rbi//lib/rbi/parser.rb#324 + # : (Prism::CallNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#319 sig { params(node: ::Prism::CallNode).void } def visit_call_node(node); end - # source://rbi//lib/rbi/parser.rb#175 + # : (Prism::ClassNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#164 sig { override.params(node: ::Prism::ClassNode).void } def visit_class_node(node); end - # source://rbi//lib/rbi/parser.rb#224 + # : ((Prism::ConstantWriteNode | Prism::ConstantPathWriteNode) node) -> void + # + # source://rbi//lib/rbi/parser.rb#215 sig { params(node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode)).void } def visit_constant_assign(node); end - # source://rbi//lib/rbi/parser.rb#217 + # : (Prism::ConstantPathWriteNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#208 sig { override.params(node: ::Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end - # source://rbi//lib/rbi/parser.rb#210 + # : (Prism::ConstantWriteNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#200 sig { override.params(node: ::Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end - # source://rbi//lib/rbi/parser.rb#257 + # : (Prism::DefNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#249 sig { override.params(node: ::Prism::DefNode).void } def visit_def_node(node); end - # source://rbi//lib/rbi/parser.rb#278 + # : (Prism::ModuleNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#271 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # source://rbi//lib/rbi/parser.rb#296 + # : (Prism::ProgramNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#290 sig { override.params(node: ::Prism::ProgramNode).void } def visit_program_node(node); end - # source://rbi//lib/rbi/parser.rb#307 + # : (Prism::SingletonClassNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#302 sig { override.params(node: ::Prism::SingletonClassNode).void } def visit_singleton_class_node(node); end private # Collect all the remaining comments within a node + # : (Prism::Node node) -> void # - # source://rbi//lib/rbi/parser.rb#498 + # source://rbi//lib/rbi/parser.rb#493 + # Collect all the remaining comments within a node sig { params(node: ::Prism::Node).void } def collect_dangling_comments(node); end # Collect all the remaining comments after visiting the tree + # : -> void # - # source://rbi//lib/rbi/parser.rb#516 + # source://rbi//lib/rbi/parser.rb#511 + # Collect all the remaining comments after visiting the tree sig { void } def collect_orphan_comments; end - # source://rbi//lib/rbi/parser.rb#539 + # : -> Tree + # + # source://rbi//lib/rbi/parser.rb#534 sig { returns(::RBI::Tree) } def current_scope; end - # source://rbi//lib/rbi/parser.rb#544 + # : -> Array[Sig] + # + # source://rbi//lib/rbi/parser.rb#539 sig { returns(T::Array[::RBI::Sig]) } def current_sigs; end - # source://rbi//lib/rbi/parser.rb#551 + # : (Array[Sig] sigs) -> Array[Comment] + # + # source://rbi//lib/rbi/parser.rb#546 sig { params(sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) } def detach_comments_from_sigs(sigs); end - # source://rbi//lib/rbi/parser.rb#563 + # : (Prism::Node node) -> Array[Comment] + # + # source://rbi//lib/rbi/parser.rb#558 sig { params(node: ::Prism::Node).returns(T::Array[::RBI::Comment]) } def node_comments(node); end - # source://rbi//lib/rbi/parser.rb#581 + # : (Prism::Comment node) -> Comment + # + # source://rbi//lib/rbi/parser.rb#576 sig { params(node: ::Prism::Comment).returns(::RBI::Comment) } def parse_comment(node); end - # source://rbi//lib/rbi/parser.rb#610 + # : (Prism::Node? node) -> Array[Param] + # + # source://rbi//lib/rbi/parser.rb#611 sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Param]) } def parse_params(node); end - # source://rbi//lib/rbi/parser.rb#586 + # : (Prism::Node? node) -> Array[Arg] + # + # source://rbi//lib/rbi/parser.rb#587 sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Arg]) } def parse_send_args(node); end - # source://rbi//lib/rbi/parser.rb#684 + # : (Prism::CallNode node) -> Sig + # + # source://rbi//lib/rbi/parser.rb#685 sig { params(node: ::Prism::CallNode).returns(::RBI::Sig) } def parse_sig(node); end - # source://rbi//lib/rbi/parser.rb#693 + # : ((Prism::ConstantWriteNode | Prism::ConstantPathWriteNode) node) -> Struct? + # + # source://rbi//lib/rbi/parser.rb#694 sig do params( node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode) @@ -1403,51 +1958,77 @@ class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor end def parse_struct(node); end - # source://rbi//lib/rbi/parser.rb#741 + # : (Prism::CallNode send) -> void + # + # source://rbi//lib/rbi/parser.rb#742 sig { params(send: ::Prism::CallNode).void } def parse_tstruct_field(send); end - # source://rbi//lib/rbi/parser.rb#778 + # : (String name, Prism::Node node) -> Visibility + # + # source://rbi//lib/rbi/parser.rb#779 sig { params(name: ::String, node: ::Prism::Node).returns(::RBI::Visibility) } def parse_visibility(name, node); end - # source://rbi//lib/rbi/parser.rb#792 + # : -> void + # + # source://rbi//lib/rbi/parser.rb#793 sig { void } def separate_header_comments; end - # source://rbi//lib/rbi/parser.rb#802 + # : -> void + # + # source://rbi//lib/rbi/parser.rb#803 sig { void } def set_root_tree_loc; end - # source://rbi//lib/rbi/parser.rb#816 + # : (Prism::Node? node) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/parser.rb#817 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def type_variable_definition?(node); end end -# source://rbi//lib/rbi/parser.rb#122 +# source://rbi//lib/rbi/parser.rb#114 class RBI::Parser::Visitor < ::Prism::Visitor - # source://rbi//lib/rbi/parser.rb#126 + # : (String source, file: String) -> void + # + # @return [Visitor] a new instance of Visitor + # + # source://rbi//lib/rbi/parser.rb#116 sig { params(source: ::String, file: ::String).void } def initialize(source, file:); end private - # source://rbi//lib/rbi/parser.rb#136 + # : (Prism::Node node) -> Loc + # + # source://rbi//lib/rbi/parser.rb#126 sig { params(node: ::Prism::Node).returns(::RBI::Loc) } def node_loc(node); end - # source://rbi//lib/rbi/parser.rb#141 + # : (Prism::Node? node) -> String? + # + # source://rbi//lib/rbi/parser.rb#131 sig { params(node: T.nilable(::Prism::Node)).returns(T.nilable(::String)) } def node_string(node); end - # source://rbi//lib/rbi/parser.rb#148 + # : (Prism::Node node) -> String + # + # source://rbi//lib/rbi/parser.rb#138 sig { params(node: ::Prism::Node).returns(::String) } def node_string!(node); end end # source://rbi//lib/rbi/printer.rb#7 class RBI::Printer < ::RBI::Visitor - # source://rbi//lib/rbi/printer.rb#30 + # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void + # + # @return [Printer] a new instance of Printer + # + # source://rbi//lib/rbi/printer.rb#21 sig do params( out: T.any(::IO, ::StringIO), @@ -1458,306 +2039,454 @@ class RBI::Printer < ::RBI::Visitor end def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # source://rbi//lib/rbi/printer.rb#17 + # : Integer + # + # source://rbi//lib/rbi/printer.rb#15 sig { returns(::Integer) } def current_indent; end - # source://rbi//lib/rbi/printer.rb#48 + # : -> void + # + # source://rbi//lib/rbi/printer.rb#39 sig { void } def dedent; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/printer.rb#11 + # source://rbi//lib/rbi/printer.rb#9 + # @return [Boolean] def in_visibility_group; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/printer.rb#11 + # source://rbi//lib/rbi/printer.rb#9 + # @return [Boolean] def in_visibility_group=(_arg0); end - # Printing + # : -> void # - # source://rbi//lib/rbi/printer.rb#43 + # source://rbi//lib/rbi/printer.rb#34 + # Printing sig { void } def indent; end - # source://rbi//lib/rbi/printer.rb#20 + # : Integer? + # + # source://rbi//lib/rbi/printer.rb#18 sig { returns(T.nilable(::Integer)) } def max_line_length; end - # source://rbi//lib/rbi/printer.rb#14 + # : Node? + # + # source://rbi//lib/rbi/printer.rb#12 sig { returns(T.nilable(::RBI::Node)) } def previous_node; end # Print a string without indentation nor `\n` at the end. + # : (String string) -> void # - # source://rbi//lib/rbi/printer.rb#54 + # source://rbi//lib/rbi/printer.rb#45 + # Print a string without indentation nor `\n` at the end. sig { params(string: ::String).void } def print(string); end - # source://rbi//lib/rbi/printer.rb#11 + # : bool + # + # source://rbi//lib/rbi/printer.rb#9 sig { returns(T::Boolean) } def print_locs; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/printer.rb#11 + # source://rbi//lib/rbi/printer.rb#9 + # @return [Boolean] def print_locs=(_arg0); end # Print a string with indentation and `\n` at the end. + # : (String string) -> void # - # source://rbi//lib/rbi/printer.rb#74 + # source://rbi//lib/rbi/printer.rb#65 + # Print a string with indentation and `\n` at the end. sig { params(string: ::String).void } def printl(string); end # Print a string without indentation but with a `\n` at the end. + # : (?String? string) -> void # - # source://rbi//lib/rbi/printer.rb#60 + # source://rbi//lib/rbi/printer.rb#51 + # Print a string without indentation but with a `\n` at the end. sig { params(string: T.nilable(::String)).void } def printn(string = T.unsafe(nil)); end # Print a string with indentation but without a `\n` at the end. + # : (?String? string) -> void # - # source://rbi//lib/rbi/printer.rb#67 + # source://rbi//lib/rbi/printer.rb#58 + # Print a string with indentation but without a `\n` at the end. sig { params(string: T.nilable(::String)).void } def printt(string = T.unsafe(nil)); end - # source://rbi//lib/rbi/printer.rb#80 + # : (Array[Node] nodes) -> void + # + # source://rbi//lib/rbi/printer.rb#72 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end - # source://rbi//lib/rbi/printer.rb#91 + # : (File file) -> void + # + # source://rbi//lib/rbi/printer.rb#84 sig { override.params(file: ::RBI::File).void } def visit_file(file); end private - # source://rbi//lib/rbi/printer.rb#618 + # : (Node node) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/printer.rb#670 sig { params(node: ::RBI::Node).returns(T::Boolean) } def oneline?(node); end - # source://rbi//lib/rbi/printer.rb#576 + # : (Node node) -> void + # + # source://rbi//lib/rbi/printer.rb#628 sig { params(node: ::RBI::Node).void } def print_blank_line_before(node); end - # source://rbi//lib/rbi/printer.rb#586 + # : (Node node) -> void + # + # source://rbi//lib/rbi/printer.rb#638 sig { params(node: ::RBI::Node).void } def print_loc(node); end - # source://rbi//lib/rbi/printer.rb#592 + # : (Param node, last: bool) -> void + # + # source://rbi//lib/rbi/printer.rb#644 sig { params(node: ::RBI::Param, last: T::Boolean).void } def print_param_comment_leading_space(node, last:); end - # source://rbi//lib/rbi/printer.rb#665 + # : (Sig node) -> void + # + # source://rbi//lib/rbi/printer.rb#717 sig { params(node: ::RBI::Sig).void } def print_sig_as_block(node); end - # source://rbi//lib/rbi/printer.rb#640 + # : (Sig node) -> void + # + # source://rbi//lib/rbi/printer.rb#692 sig { params(node: ::RBI::Sig).void } def print_sig_as_line(node); end - # source://rbi//lib/rbi/printer.rb#610 + # : (SigParam node, last: bool) -> void + # + # source://rbi//lib/rbi/printer.rb#662 sig { params(node: ::RBI::SigParam, last: T::Boolean).void } def print_sig_param_comment_leading_space(node, last:); end - # source://rbi//lib/rbi/printer.rb#721 + # : (Sig node) -> Array[String] + # + # source://rbi//lib/rbi/printer.rb#773 sig { params(node: ::RBI::Sig).returns(T::Array[::String]) } def sig_modifiers(node); end - # source://rbi//lib/rbi/printer.rb#417 + # : (Arg node) -> void + # + # source://rbi//lib/rbi/printer.rb#453 sig { override.params(node: ::RBI::Arg).void } def visit_arg(node); end - # source://rbi//lib/rbi/printer.rb#237 + # : (Attr node) -> void + # + # source://rbi//lib/rbi/printer.rb#258 sig { params(node: ::RBI::Attr).void } def visit_attr(node); end - # source://rbi//lib/rbi/printer.rb#222 + # : (AttrAccessor node) -> void + # + # source://rbi//lib/rbi/printer.rb#241 sig { override.params(node: ::RBI::AttrAccessor).void } def visit_attr_accessor(node); end - # source://rbi//lib/rbi/printer.rb#227 + # : (AttrReader node) -> void + # + # source://rbi//lib/rbi/printer.rb#247 sig { override.params(node: ::RBI::AttrReader).void } def visit_attr_reader(node); end - # source://rbi//lib/rbi/printer.rb#232 + # : (AttrWriter node) -> void + # + # source://rbi//lib/rbi/printer.rb#253 sig { override.params(node: ::RBI::AttrWriter).void } def visit_attr_writer(node); end - # source://rbi//lib/rbi/printer.rb#126 + # : (BlankLine node) -> void + # + # source://rbi//lib/rbi/printer.rb#138 sig { override.params(node: ::RBI::BlankLine).void } def visit_blank_line(node); end - # source://rbi//lib/rbi/printer.rb#344 + # : (BlockParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#373 sig { override.params(node: ::RBI::BlockParam).void } def visit_block_param(node); end - # source://rbi//lib/rbi/printer.rb#143 + # : (Class node) -> void + # + # source://rbi//lib/rbi/printer.rb#158 sig { override.params(node: ::RBI::Class).void } def visit_class(node); end - # source://rbi//lib/rbi/printer.rb#110 + # : (Comment node) -> void + # + # source://rbi//lib/rbi/printer.rb#121 sig { override.params(node: ::RBI::Comment).void } def visit_comment(node); end - # source://rbi//lib/rbi/printer.rb#553 + # : (ConflictTree node) -> void + # + # source://rbi//lib/rbi/printer.rb#604 sig { override.params(node: ::RBI::ConflictTree).void } def visit_conflict_tree(node); end - # source://rbi//lib/rbi/printer.rb#213 + # : (Const node) -> void + # + # source://rbi//lib/rbi/printer.rb#231 sig { override.params(node: ::RBI::Const).void } def visit_const(node); end - # source://rbi//lib/rbi/printer.rb#354 + # : (Extend node) -> void + # + # source://rbi//lib/rbi/printer.rb#385 sig { override.params(node: ::RBI::Extend).void } def visit_extend(node); end - # source://rbi//lib/rbi/printer.rb#525 + # : (Group node) -> void + # + # source://rbi//lib/rbi/printer.rb#573 sig { override.params(node: ::RBI::Group).void } def visit_group(node); end - # source://rbi//lib/rbi/printer.rb#511 + # : (Helper node) -> void + # + # source://rbi//lib/rbi/printer.rb#557 sig { override.params(node: ::RBI::Helper).void } def visit_helper(node); end - # source://rbi//lib/rbi/printer.rb#349 + # : (Include node) -> void + # + # source://rbi//lib/rbi/printer.rb#379 sig { override.params(node: ::RBI::Include).void } def visit_include(node); end - # source://rbi//lib/rbi/printer.rb#422 + # : (KwArg node) -> void + # + # source://rbi//lib/rbi/printer.rb#459 sig { override.params(node: ::RBI::KwArg).void } def visit_kw_arg(node); end - # source://rbi//lib/rbi/printer.rb#334 + # : (KwOptParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#361 sig { override.params(node: ::RBI::KwOptParam).void } def visit_kw_opt_param(node); end - # source://rbi//lib/rbi/printer.rb#329 + # : (KwParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#355 sig { override.params(node: ::RBI::KwParam).void } def visit_kw_param(node); end - # source://rbi//lib/rbi/printer.rb#339 + # : (KwRestParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#367 sig { override.params(node: ::RBI::KwRestParam).void } def visit_kw_rest_param(node); end - # source://rbi//lib/rbi/printer.rb#265 + # : (Method node) -> void + # + # source://rbi//lib/rbi/printer.rb#287 sig { override.params(node: ::RBI::Method).void } def visit_method(node); end - # source://rbi//lib/rbi/printer.rb#520 + # : (MixesInClassMethods node) -> void + # + # source://rbi//lib/rbi/printer.rb#567 sig { override.params(node: ::RBI::MixesInClassMethods).void } def visit_mixes_in_class_methods(node); end - # source://rbi//lib/rbi/printer.rb#359 + # : (Mixin node) -> void + # + # source://rbi//lib/rbi/printer.rb#390 sig { params(node: ::RBI::Mixin).void } def visit_mixin(node); end - # source://rbi//lib/rbi/printer.rb#138 + # : (Module node) -> void + # + # source://rbi//lib/rbi/printer.rb#152 sig { override.params(node: ::RBI::Module).void } def visit_module(node); end - # source://rbi//lib/rbi/printer.rb#319 + # : (OptParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#343 sig { override.params(node: ::RBI::OptParam).void } def visit_opt_param(node); end - # source://rbi//lib/rbi/printer.rb#386 + # : (Private node) -> void + # + # source://rbi//lib/rbi/printer.rb#420 sig { override.params(node: ::RBI::Private).void } def visit_private(node); end - # source://rbi//lib/rbi/printer.rb#381 + # : (Protected node) -> void + # + # source://rbi//lib/rbi/printer.rb#414 sig { override.params(node: ::RBI::Protected).void } def visit_protected(node); end - # source://rbi//lib/rbi/printer.rb#376 + # : (Public node) -> void + # + # source://rbi//lib/rbi/printer.rb#408 sig { override.params(node: ::RBI::Public).void } def visit_public(node); end - # source://rbi//lib/rbi/printer.rb#314 + # : (RBSComment node) -> void + # + # source://rbi//lib/rbi/printer.rb#104 + sig { override.params(node: ::RBI::RBSComment).void } + def visit_rbs_comment(node); end + + # : (ReqParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#337 sig { override.params(node: ::RBI::ReqParam).void } def visit_req_param(node); end - # source://rbi//lib/rbi/printer.rb#544 + # : (RequiresAncestor node) -> void + # + # source://rbi//lib/rbi/printer.rb#594 sig { override.params(node: ::RBI::RequiresAncestor).void } def visit_requires_ancestor(node); end - # source://rbi//lib/rbi/printer.rb#324 + # : (RestParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#349 sig { override.params(node: ::RBI::RestParam).void } def visit_rest_param(node); end - # source://rbi//lib/rbi/printer.rb#158 + # : (Scope node) -> void + # + # source://rbi//lib/rbi/printer.rb#175 sig { params(node: ::RBI::Scope).void } def visit_scope(node); end - # source://rbi//lib/rbi/printer.rb#203 + # : (Scope node) -> void + # + # source://rbi//lib/rbi/printer.rb#220 sig { params(node: ::RBI::Scope).void } def visit_scope_body(node); end - # source://rbi//lib/rbi/printer.rb#562 + # : (ScopeConflict node) -> void + # + # source://rbi//lib/rbi/printer.rb#614 sig { override.params(node: ::RBI::ScopeConflict).void } def visit_scope_conflict(node); end - # source://rbi//lib/rbi/printer.rb#168 + # : (Scope node) -> void + # + # source://rbi//lib/rbi/printer.rb#185 sig { params(node: ::RBI::Scope).void } def visit_scope_header(node); end - # source://rbi//lib/rbi/printer.rb#400 + # : (Send node) -> void + # + # source://rbi//lib/rbi/printer.rb#435 sig { override.params(node: ::RBI::Send).void } def visit_send(node); end - # source://rbi//lib/rbi/printer.rb#427 + # : (Sig node) -> void + # + # source://rbi//lib/rbi/printer.rb#465 sig { override.params(node: ::RBI::Sig).void } def visit_sig(node); end - # source://rbi//lib/rbi/printer.rb#447 + # : (SigParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#486 sig { override.params(node: ::RBI::SigParam).void } def visit_sig_param(node); end - # source://rbi//lib/rbi/printer.rb#153 + # : (SingletonClass node) -> void + # + # source://rbi//lib/rbi/printer.rb#170 sig { override.params(node: ::RBI::SingletonClass).void } def visit_singleton_class(node); end - # source://rbi//lib/rbi/printer.rb#148 + # : (Struct node) -> void + # + # source://rbi//lib/rbi/printer.rb#164 sig { override.params(node: ::RBI::Struct).void } def visit_struct(node); end - # source://rbi//lib/rbi/printer.rb#467 + # : (TStructField node) -> void + # + # source://rbi//lib/rbi/printer.rb#509 sig { params(node: ::RBI::TStructField).void } def visit_t_struct_field(node); end - # source://rbi//lib/rbi/printer.rb#485 + # : (TEnum node) -> void + # + # source://rbi//lib/rbi/printer.rb#528 sig { override.params(node: ::RBI::TEnum).void } def visit_tenum(node); end - # source://rbi//lib/rbi/printer.rb#490 + # : (TEnumBlock node) -> void + # + # source://rbi//lib/rbi/printer.rb#534 sig { override.params(node: ::RBI::TEnumBlock).void } def visit_tenum_block(node); end - # source://rbi//lib/rbi/printer.rb#131 + # : (Tree node) -> void + # + # source://rbi//lib/rbi/printer.rb#144 sig { override.params(node: ::RBI::Tree).void } def visit_tree(node); end - # source://rbi//lib/rbi/printer.rb#452 + # : (TStruct node) -> void + # + # source://rbi//lib/rbi/printer.rb#492 sig { override.params(node: ::RBI::TStruct).void } def visit_tstruct(node); end - # source://rbi//lib/rbi/printer.rb#457 + # : (TStructConst node) -> void + # + # source://rbi//lib/rbi/printer.rb#498 sig { override.params(node: ::RBI::TStructConst).void } def visit_tstruct_const(node); end - # source://rbi//lib/rbi/printer.rb#462 + # : (TStructProp node) -> void + # + # source://rbi//lib/rbi/printer.rb#504 sig { override.params(node: ::RBI::TStructProp).void } def visit_tstruct_prop(node); end - # source://rbi//lib/rbi/printer.rb#502 + # : (TypeMember node) -> void + # + # source://rbi//lib/rbi/printer.rb#547 sig { override.params(node: ::RBI::TypeMember).void } def visit_type_member(node); end - # source://rbi//lib/rbi/printer.rb#391 + # : (Visibility node) -> void + # + # source://rbi//lib/rbi/printer.rb#425 sig { params(node: ::RBI::Visibility).void } def visit_visibility(node); end - # source://rbi//lib/rbi/printer.rb#531 + # : (VisibilityGroup node) -> void + # + # source://rbi//lib/rbi/printer.rb#580 sig { override.params(node: ::RBI::VisibilityGroup).void } def visit_visibility_group(node); end end @@ -1765,9 +2494,13 @@ end # source://rbi//lib/rbi/printer.rb#5 class RBI::PrinterError < ::RBI::Error; end -# source://rbi//lib/rbi/model.rb#986 +# source://rbi//lib/rbi/model.rb#761 class RBI::Private < ::RBI::Visibility - # source://rbi//lib/rbi/model.rb#996 + # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Private node) -> void } -> void + # + # @return [Private] a new instance of Private + # + # source://rbi//lib/rbi/model.rb#763 sig do params( loc: T.nilable(::RBI::Loc), @@ -1778,9 +2511,13 @@ class RBI::Private < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#970 +# source://rbi//lib/rbi/model.rb#753 class RBI::Protected < ::RBI::Visibility - # source://rbi//lib/rbi/model.rb#980 + # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Protected node) -> void } -> void + # + # @return [Protected] a new instance of Protected + # + # source://rbi//lib/rbi/model.rb#755 sig do params( loc: T.nilable(::RBI::Loc), @@ -1791,9 +2528,13 @@ class RBI::Protected < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#954 +# source://rbi//lib/rbi/model.rb#745 class RBI::Public < ::RBI::Visibility - # source://rbi//lib/rbi/model.rb#964 + # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Public node) -> void } -> void + # + # @return [Public] a new instance of Public + # + # source://rbi//lib/rbi/model.rb#747 sig do params( loc: T.nilable(::RBI::Loc), @@ -1804,316 +2545,593 @@ class RBI::Public < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end +# source://rbi//lib/rbi/rbs/method_type_translator.rb#5 +module RBI::RBS; end + +# source://rbi//lib/rbi/rbs/method_type_translator.rb#6 +class RBI::RBS::MethodTypeTranslator + # : (Method) -> void + # + # @return [MethodTypeTranslator] a new instance of MethodTypeTranslator + # + # source://rbi//lib/rbi/rbs/method_type_translator.rb#22 + sig { params(method: ::RBI::Method).void } + def initialize(method); end + + # : Sig + # + # source://rbi//lib/rbi/rbs/method_type_translator.rb#19 + sig { returns(::RBI::Sig) } + def result; end + + # : (::RBS::MethodType) -> void + # + # source://rbi//lib/rbi/rbs/method_type_translator.rb#28 + sig { params(type: ::RBS::MethodType).void } + def visit(type); end + + private + + # : (::RBS::Types::Function::Param, Integer) -> SigParam + # + # source://rbi//lib/rbi/rbs/method_type_translator.rb#100 + sig { params(param: ::RBS::Types::Function::Param, index: ::Integer).returns(::RBI::SigParam) } + def translate_function_param(param, index); end + + # : (untyped) -> Type + # + # source://rbi//lib/rbi/rbs/method_type_translator.rb#115 + sig { params(type: T.untyped).returns(::RBI::Type) } + def translate_type(type); end + + # : (::RBS::Types::Block) -> void + # + # @raise [Error] + # + # source://rbi//lib/rbi/rbs/method_type_translator.rb#42 + sig { params(type: ::RBS::Types::Block).void } + def visit_block_type(type); end + + # : (::RBS::Types::Function) -> void + # + # source://rbi//lib/rbi/rbs/method_type_translator.rb#57 + sig { params(type: ::RBS::Types::Function).void } + def visit_function_type(type); end + + class << self + # : (Method, ::RBS::MethodType) -> Sig + # + # source://rbi//lib/rbi/rbs/method_type_translator.rb#11 + sig { params(method: ::RBI::Method, type: ::RBS::MethodType).returns(::RBI::Sig) } + def translate(method, type); end + end +end + +# source://rbi//lib/rbi/rbs/method_type_translator.rb#7 +class RBI::RBS::MethodTypeTranslator::Error < ::RBI::Error; end + +# source://rbi//lib/rbi/rbs/type_translator.rb#6 +class RBI::RBS::TypeTranslator + class << self + # : (NodeType) -> Type + # + # source://rbi//lib/rbi/rbs/type_translator.rb#37 + sig do + params( + type: T.any(::RBS::Types::Alias, ::RBS::Types::Bases::Any, ::RBS::Types::Bases::Bool, ::RBS::Types::Bases::Bottom, ::RBS::Types::Bases::Class, ::RBS::Types::Bases::Instance, ::RBS::Types::Bases::Nil, ::RBS::Types::Bases::Self, ::RBS::Types::Bases::Top, ::RBS::Types::Bases::Void, ::RBS::Types::ClassInstance, ::RBS::Types::ClassSingleton, ::RBS::Types::Function, ::RBS::Types::Interface, ::RBS::Types::Intersection, ::RBS::Types::Literal, ::RBS::Types::Optional, ::RBS::Types::Proc, ::RBS::Types::Record, ::RBS::Types::Tuple, ::RBS::Types::Union, ::RBS::Types::UntypedFunction, ::RBS::Types::Variable) + ).returns(::RBI::Type) + end + def translate(type); end + + private + + # : (::RBS::Types::ClassInstance) -> Type + # + # source://rbi//lib/rbi/rbs/type_translator.rb#99 + sig { params(type: ::RBS::Types::ClassInstance).returns(::RBI::Type) } + def translate_class_instance(type); end + + # : (::RBS::Types::Function) -> Type + # + # source://rbi//lib/rbi/rbs/type_translator.rb#107 + sig { params(type: ::RBS::Types::Function).returns(::RBI::Type) } + def translate_function(type); end + + # : (String type_name) -> String + # + # source://rbi//lib/rbi/rbs/type_translator.rb#154 + sig { params(type_name: ::String).returns(::String) } + def translate_t_generic_type(type_name); end + end +end + +# A comment representing a RBS type prefixed with `#:` +# +# source://rbi//lib/rbi/model.rb#81 +class RBI::RBSComment < ::RBI::Comment + # : (Object other) -> bool + # + # source://rbi//lib/rbi/model.rb#83 + sig { params(other: ::Object).returns(T::Boolean) } + def ==(other); end +end + # source://rbi//lib/rbi/rbs_printer.rb#5 class RBI::RBSPrinter < ::RBI::Visitor - # source://rbi//lib/rbi/rbs_printer.rb#18 - sig { params(out: T.any(::IO, ::StringIO), indent: ::Integer, print_locs: T::Boolean).void } - def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end + # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?positional_names: bool) -> void + # + # @return [RBSPrinter] a new instance of RBSPrinter + # + # source://rbi//lib/rbi/rbs_printer.rb#21 + sig do + params( + out: T.any(::IO, ::StringIO), + indent: ::Integer, + print_locs: T::Boolean, + positional_names: T::Boolean + ).void + end + def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end + # : Integer + # # source://rbi//lib/rbi/rbs_printer.rb#15 sig { returns(::Integer) } def current_indent; end - # source://rbi//lib/rbi/rbs_printer.rb#35 + # : -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#39 sig { void } def dedent; end - # @return [Boolean] + # : bool # # source://rbi//lib/rbi/rbs_printer.rb#9 + # @return [Boolean] def in_visibility_group; end - # @return [Boolean] + # : bool # # source://rbi//lib/rbi/rbs_printer.rb#9 + # @return [Boolean] def in_visibility_group=(_arg0); end - # Printing + # : -> void # - # source://rbi//lib/rbi/rbs_printer.rb#30 + # source://rbi//lib/rbi/rbs_printer.rb#34 + # Printing sig { void } def indent; end + # : bool + # + # source://rbi//lib/rbi/rbs_printer.rb#18 + sig { returns(T::Boolean) } + def positional_names; end + + # : bool + # + # source://rbi//lib/rbi/rbs_printer.rb#18 + # @return [Boolean] + def positional_names=(_arg0); end + + # : Node? + # # source://rbi//lib/rbi/rbs_printer.rb#12 sig { returns(T.nilable(::RBI::Node)) } def previous_node; end # Print a string without indentation nor `\n` at the end. + # : (String string) -> void # - # source://rbi//lib/rbi/rbs_printer.rb#41 + # source://rbi//lib/rbi/rbs_printer.rb#45 + # Print a string without indentation nor `\n` at the end. sig { params(string: ::String).void } def print(string); end - # source://rbi//lib/rbi/rbs_printer.rb#275 + # : (RBI::Attr node, Sig sig) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#292 sig { params(node: ::RBI::Attr, sig: ::RBI::Sig).void } def print_attr_sig(node, sig); end + # : bool + # # source://rbi//lib/rbi/rbs_printer.rb#9 sig { returns(T::Boolean) } def print_locs; end - # @return [Boolean] + # : bool # # source://rbi//lib/rbi/rbs_printer.rb#9 + # @return [Boolean] def print_locs=(_arg0); end - # source://rbi//lib/rbi/rbs_printer.rb#363 + # : (RBI::Method node, Sig sig) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#381 sig { params(node: ::RBI::Method, sig: ::RBI::Sig).void } def print_method_sig(node, sig); end # Print a string with indentation and `\n` at the end. + # : (String string) -> void # - # source://rbi//lib/rbi/rbs_printer.rb#61 + # source://rbi//lib/rbi/rbs_printer.rb#65 + # Print a string with indentation and `\n` at the end. sig { params(string: ::String).void } def printl(string); end # Print a string without indentation but with a `\n` at the end. + # : (?String? string) -> void # - # source://rbi//lib/rbi/rbs_printer.rb#47 + # source://rbi//lib/rbi/rbs_printer.rb#51 + # Print a string without indentation but with a `\n` at the end. sig { params(string: T.nilable(::String)).void } def printn(string = T.unsafe(nil)); end # Print a string with indentation but without a `\n` at the end. + # : (?String? string) -> void # - # source://rbi//lib/rbi/rbs_printer.rb#54 + # source://rbi//lib/rbi/rbs_printer.rb#58 + # Print a string with indentation but without a `\n` at the end. sig { params(string: T.nilable(::String)).void } def printt(string = T.unsafe(nil)); end - # source://rbi//lib/rbi/rbs_printer.rb#67 + # : (Array[Node] nodes) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#72 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end - # source://rbi//lib/rbi/rbs_printer.rb#534 + # : (Arg node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#578 sig { override.params(node: ::RBI::Arg).void } def visit_arg(node); end - # source://rbi//lib/rbi/rbs_printer.rb#243 + # : (Attr node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#260 sig { params(node: ::RBI::Attr).void } def visit_attr(node); end - # source://rbi//lib/rbi/rbs_printer.rb#228 + # : (AttrAccessor node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#243 sig { override.params(node: ::RBI::AttrAccessor).void } def visit_attr_accessor(node); end - # source://rbi//lib/rbi/rbs_printer.rb#233 + # : (AttrReader node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#249 sig { override.params(node: ::RBI::AttrReader).void } def visit_attr_reader(node); end - # source://rbi//lib/rbi/rbs_printer.rb#238 + # : (AttrWriter node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#255 sig { override.params(node: ::RBI::AttrWriter).void } def visit_attr_writer(node); end - # source://rbi//lib/rbi/rbs_printer.rb#106 + # : (BlankLine node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#114 sig { override.params(node: ::RBI::BlankLine).void } def visit_blank_line(node); end - # source://rbi//lib/rbi/rbs_printer.rb#473 + # : (BlockParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#510 sig { override.params(node: ::RBI::BlockParam).void } def visit_block_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#123 + # : (Class node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#134 sig { override.params(node: ::RBI::Class).void } def visit_class(node); end - # source://rbi//lib/rbi/rbs_printer.rb#90 + # : (Comment node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#97 sig { override.params(node: ::RBI::Comment).void } def visit_comment(node); end - # source://rbi//lib/rbi/rbs_printer.rb#654 + # : (ConflictTree node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#711 sig { override.params(node: ::RBI::ConflictTree).void } def visit_conflict_tree(node); end - # source://rbi//lib/rbi/rbs_printer.rb#213 + # : (Const node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#227 sig { override.params(node: ::RBI::Const).void } def visit_const(node); end - # source://rbi//lib/rbi/rbs_printer.rb#483 + # : (Extend node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#522 sig { override.params(node: ::RBI::Extend).void } def visit_extend(node); end - # source://rbi//lib/rbi/rbs_printer.rb#78 + # : (File file) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#84 sig { override.params(file: ::RBI::File).void } def visit_file(file); end - # source://rbi//lib/rbi/rbs_printer.rb#630 + # : (Group node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#684 sig { override.params(node: ::RBI::Group).void } def visit_group(node); end - # source://rbi//lib/rbi/rbs_printer.rb#620 + # : (Helper node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#672 sig { override.params(node: ::RBI::Helper).void } def visit_helper(node); end - # source://rbi//lib/rbi/rbs_printer.rb#478 + # : (Include node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#516 sig { override.params(node: ::RBI::Include).void } def visit_include(node); end - # source://rbi//lib/rbi/rbs_printer.rb#539 + # : (KwArg node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#584 sig { override.params(node: ::RBI::KwArg).void } def visit_kw_arg(node); end - # source://rbi//lib/rbi/rbs_printer.rb#463 + # : (KwOptParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#498 sig { override.params(node: ::RBI::KwOptParam).void } def visit_kw_opt_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#458 + # : (KwParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#492 sig { override.params(node: ::RBI::KwParam).void } def visit_kw_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#468 + # : (KwRestParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#504 sig { override.params(node: ::RBI::KwRestParam).void } def visit_kw_rest_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#297 + # : (Method node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#315 sig { override.params(node: ::RBI::Method).void } def visit_method(node); end - # source://rbi//lib/rbi/rbs_printer.rb#625 + # : (MixesInClassMethods node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#678 sig { override.params(node: ::RBI::MixesInClassMethods).void } def visit_mixes_in_class_methods(node); end - # source://rbi//lib/rbi/rbs_printer.rb#488 + # : (Mixin node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#527 sig { params(node: ::RBI::Mixin).void } def visit_mixin(node); end - # source://rbi//lib/rbi/rbs_printer.rb#118 + # : (Module node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#128 sig { override.params(node: ::RBI::Module).void } def visit_module(node); end - # source://rbi//lib/rbi/rbs_printer.rb#448 + # : (OptParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#472 sig { override.params(node: ::RBI::OptParam).void } def visit_opt_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#515 + # : (Private node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#557 sig { override.params(node: ::RBI::Private).void } def visit_private(node); end - # source://rbi//lib/rbi/rbs_printer.rb#510 + # : (Protected node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#551 sig { override.params(node: ::RBI::Protected).void } def visit_protected(node); end - # source://rbi//lib/rbi/rbs_printer.rb#505 + # : (Public node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#545 sig { override.params(node: ::RBI::Public).void } def visit_public(node); end - # source://rbi//lib/rbi/rbs_printer.rb#443 + # : (ReqParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#462 sig { override.params(node: ::RBI::ReqParam).void } def visit_req_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#649 + # : (RequiresAncestor node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#705 sig { override.params(node: ::RBI::RequiresAncestor).void } def visit_requires_ancestor(node); end - # source://rbi//lib/rbi/rbs_printer.rb#453 + # : (RestParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#482 sig { override.params(node: ::RBI::RestParam).void } def visit_rest_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#138 + # : (Scope node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#151 sig { params(node: ::RBI::Scope).void } def visit_scope(node); end - # source://rbi//lib/rbi/rbs_printer.rb#201 + # : (Scope node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#214 sig { params(node: ::RBI::Scope).void } def visit_scope_body(node); end - # source://rbi//lib/rbi/rbs_printer.rb#663 + # : (ScopeConflict node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#721 sig { override.params(node: ::RBI::ScopeConflict).void } def visit_scope_conflict(node); end - # source://rbi//lib/rbi/rbs_printer.rb#148 + # : (Scope node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#161 sig { params(node: ::RBI::Scope).void } def visit_scope_header(node); end - # source://rbi//lib/rbi/rbs_printer.rb#529 + # : (Send node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#572 sig { override.params(node: ::RBI::Send).void } def visit_send(node); end - # source://rbi//lib/rbi/rbs_printer.rb#425 + # : (Sig node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#443 sig { params(node: ::RBI::Sig).void } def visit_sig(node); end - # source://rbi//lib/rbi/rbs_printer.rb#438 + # : (SigParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#456 sig { params(node: ::RBI::SigParam).void } def visit_sig_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#133 + # : (SingletonClass node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#146 sig { override.params(node: ::RBI::SingletonClass).void } def visit_singleton_class(node); end - # source://rbi//lib/rbi/rbs_printer.rb#128 + # : (Struct node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#140 sig { override.params(node: ::RBI::Struct).void } def visit_struct(node); end - # source://rbi//lib/rbi/rbs_printer.rb#592 + # : (TEnum node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#641 sig { override.params(node: ::RBI::TEnum).void } def visit_tenum(node); end - # source://rbi//lib/rbi/rbs_printer.rb#597 + # : (TEnumBlock node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#647 sig { override.params(node: ::RBI::TEnumBlock).void } def visit_tenum_block(node); end - # source://rbi//lib/rbi/rbs_printer.rb#111 + # : (Tree node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#120 sig { override.params(node: ::RBI::Tree).void } def visit_tree(node); end - # source://rbi//lib/rbi/rbs_printer.rb#544 + # : (TStruct node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#590 sig { override.params(node: ::RBI::TStruct).void } def visit_tstruct(node); end - # source://rbi//lib/rbi/rbs_printer.rb#578 + # : (TStructConst node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#625 sig { override.params(node: ::RBI::TStructConst).void } def visit_tstruct_const(node); end - # source://rbi//lib/rbi/rbs_printer.rb#585 + # : (TStructProp node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#633 sig { override.params(node: ::RBI::TStructProp).void } def visit_tstruct_prop(node); end - # source://rbi//lib/rbi/rbs_printer.rb#615 + # : (TypeMember node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#666 sig { override.params(node: ::RBI::TypeMember).void } def visit_type_member(node); end - # source://rbi//lib/rbi/rbs_printer.rb#520 + # : (Visibility node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#562 sig { params(node: ::RBI::Visibility).void } def visit_visibility(node); end - # source://rbi//lib/rbi/rbs_printer.rb#636 + # : (VisibilityGroup node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#691 sig { override.params(node: ::RBI::VisibilityGroup).void } def visit_visibility_group(node); end private - # source://rbi//lib/rbi/rbs_printer.rb#754 + # : (Node node) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rbs_printer.rb#824 sig { params(node: ::RBI::Node).returns(T::Boolean) } def oneline?(node); end # Parse a string containing a `T.let(x, X)` and extract the type # # Returns `nil` is the string is not a `T.let`. + # : (String? code) -> String? # - # source://rbi//lib/rbi/rbs_printer.rb#788 + # source://rbi//lib/rbi/rbs_printer.rb#858 + # Parse a string containing a `T.let(x, X)` and extract the type + # Returns `nil` is the string is not a `T.let`. sig { params(code: T.nilable(::String)).returns(T.nilable(::String)) } def parse_t_let(code); end - # source://rbi//lib/rbi/rbs_printer.rb#776 + # : ((Type | String) type) -> Type + # + # source://rbi//lib/rbi/rbs_printer.rb#846 sig { params(type: T.any(::RBI::Type, ::String)).returns(::RBI::Type) } def parse_type(type); end - # source://rbi//lib/rbi/rbs_printer.rb#679 + # : (Node node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#737 sig { params(node: ::RBI::Node).void } def print_blank_line_before(node); end - # source://rbi//lib/rbi/rbs_printer.rb#698 + # : (Node node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#756 sig { params(node: ::RBI::Node).void } def print_loc(node); end - # source://rbi//lib/rbi/rbs_printer.rb#728 + # : (Param node, last: bool) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#798 sig { params(node: ::RBI::Param, last: T::Boolean).void } def print_param_comment_leading_space(node, last:); end - # source://rbi//lib/rbi/rbs_printer.rb#704 + # : (Method node, SigParam param) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#762 sig { params(node: ::RBI::Method, param: ::RBI::SigParam).void } def print_sig_param(node, param); end - # source://rbi//lib/rbi/rbs_printer.rb#746 + # : (SigParam node, last: bool) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#816 sig { params(node: ::RBI::SigParam, last: T::Boolean).void } def print_sig_param_comment_leading_space(node, last:); end end @@ -2124,9 +3142,13 @@ class RBI::RBSPrinter::Error < ::RBI::Error; end # source://rbi//lib/rbi/model.rb#5 class RBI::ReplaceNodeError < ::RBI::Error; end -# source://rbi//lib/rbi/model.rb#654 +# source://rbi//lib/rbi/model.rb#532 class RBI::ReqParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#665 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (ReqParam node) -> void } -> void + # + # @return [ReqParam] a new instance of ReqParam + # + # source://rbi//lib/rbi/model.rb#534 sig do params( name: ::String, @@ -2137,35 +3159,51 @@ class RBI::ReqParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#671 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#540 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end end -# source://rbi//lib/rbi/model.rb#1461 +# source://rbi//lib/rbi/model.rb#1100 class RBI::RequiresAncestor < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1474 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) -> void + # + # @return [RequiresAncestor] a new instance of RequiresAncestor + # + # source://rbi//lib/rbi/model.rb#1105 sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/index.rb#163 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#159 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1465 + # : String + # + # source://rbi//lib/rbi/model.rb#1102 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#1480 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1112 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#703 +# source://rbi//lib/rbi/model.rb#562 class RBI::RestParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#714 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (RestParam node) -> void } -> void + # + # @return [RestParam] a new instance of RestParam + # + # source://rbi//lib/rbi/model.rb#564 sig do params( name: ::String, @@ -2176,11 +3214,15 @@ class RBI::RestParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#725 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#576 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#720 + # : -> String + # + # source://rbi//lib/rbi/model.rb#571 sig { override.returns(::String) } def to_s; end end @@ -2190,78 +3232,114 @@ module RBI::Rewriters; end # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#6 class RBI::Rewriters::AddSigTemplates < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#10 + # : (?with_todo_comment: bool) -> void + # + # @return [AddSigTemplates] a new instance of AddSigTemplates + # + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#8 sig { params(with_todo_comment: T::Boolean).void } def initialize(with_todo_comment: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#16 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#15 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#30 + # : (Attr attr) -> void + # + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#29 sig { params(attr: ::RBI::Attr).void } def add_attr_sig(attr); end - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#45 + # : (Method method) -> void + # + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#44 sig { params(method: ::RBI::Method).void } def add_method_sig(method); end - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#56 + # : (NodeWithComments node) -> void + # + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#55 sig { params(node: ::RBI::NodeWithComments).void } def add_todo_comment(node); end end # source://rbi//lib/rbi/rewriters/annotate.rb#6 class RBI::Rewriters::Annotate < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/annotate.rb#10 + # : (String annotation, ?annotate_scopes: bool, ?annotate_properties: bool) -> void + # + # @return [Annotate] a new instance of Annotate + # + # source://rbi//lib/rbi/rewriters/annotate.rb#8 sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } def initialize(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/annotate.rb#18 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/annotate.rb#17 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi//lib/rbi/rewriters/annotate.rb#31 + # : (NodeWithComments node) -> void + # + # source://rbi//lib/rbi/rewriters/annotate.rb#30 sig { params(node: ::RBI::NodeWithComments).void } def annotate_node(node); end - # source://rbi//lib/rbi/rewriters/annotate.rb#38 + # : (Node node) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/annotate.rb#37 sig { params(node: ::RBI::Node).returns(T::Boolean) } def root?(node); end end # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#22 class RBI::Rewriters::AttrToMethods < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#26 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#25 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private + # : (Node node, with: Array[Node]) -> void + # # @raise [ReplaceNodeError] # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#39 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#38 sig { params(node: ::RBI::Node, with: T::Array[::RBI::Node]).void } def replace(node, with:); end end # source://rbi//lib/rbi/rewriters/deannotate.rb#6 class RBI::Rewriters::Deannotate < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/deannotate.rb#10 + # : (String annotation) -> void + # + # @return [Deannotate] a new instance of Deannotate + # + # source://rbi//lib/rbi/rewriters/deannotate.rb#8 sig { params(annotation: ::String).void } def initialize(annotation); end - # source://rbi//lib/rbi/rewriters/deannotate.rb#16 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/deannotate.rb#15 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi//lib/rbi/rewriters/deannotate.rb#27 + # : (NodeWithComments node) -> void + # + # source://rbi//lib/rbi/rewriters/deannotate.rb#26 sig { params(node: ::RBI::NodeWithComments).void } def deannotate_node(node); end end @@ -2319,23 +3397,66 @@ end # - RBI with no version annotations are automatically counted towards ALL versions # # source://rbi//lib/rbi/rewriters/filter_versions.rb#57 +# Take a gem version and filter out all RBI that is not relevant to that version based on @version annotations +# in comments. As an example: +# ~~~rb +# tree = Parser.parse_string(<<~RBI) +# class Foo +# # @version > 0.3.0 +# def bar +# end +# # @version <= 0.3.0 +# def bar(arg1) +# end +# RBI +# Rewriters::FilterVersions.filter(tree, Gem::Version.new("0.3.1")) +# assert_equal(<<~RBI, tree.string) +# ~~~ +# Supported operators: +# - equals `=` +# - not equals `!=` +# - greater than `>` +# - greater than or equal to `>=` +# - less than `<` +# - less than or equal to `<=` +# - pessimistic or twiddle-wakka`~>` +# And/or logic: +# - "And" logic: put multiple versions on the same line +# - e.g. `@version > 0.3.0, <1.0.0` means version must be greater than 0.3.0 AND less than 1.0.0 +# - "Or" logic: put multiple versions on subsequent lines +# - e.g. the following means version must be less than 0.3.0 OR greater than 1.0.0 +# ``` +# # @version < 0.3.0 +# # @version > 1.0.0 +# Prerelease versions: +# - Prerelease versions are considered less than their non-prerelease counterparts +# - e.g. `0.4.0-prerelease` is less than `0.4.0` +# RBI with no versions: class RBI::Rewriters::FilterVersions < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/filter_versions.rb#73 + # : (Gem::Version version) -> void + # + # @return [FilterVersions] a new instance of FilterVersions + # + # source://rbi//lib/rbi/rewriters/filter_versions.rb#69 sig { params(version: ::Gem::Version).void } def initialize(version); end - # source://rbi//lib/rbi/rewriters/filter_versions.rb#79 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/filter_versions.rb#76 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end class << self - # source://rbi//lib/rbi/rewriters/filter_versions.rb#66 + # : (Tree tree, Gem::Version version) -> void + # + # source://rbi//lib/rbi/rewriters/filter_versions.rb#62 sig { params(tree: ::RBI::Tree, version: ::Gem::Version).void } def filter(tree, version); end end end -# source://rbi//lib/rbi/rewriters/filter_versions.rb#60 +# source://rbi//lib/rbi/rewriters/filter_versions.rb#58 RBI::Rewriters::FilterVersions::VERSION_PREFIX = T.let(T.unsafe(nil), String) # Rewrite non-singleton methods inside singleton classes to singleton methods @@ -2364,8 +3485,24 @@ RBI::Rewriters::FilterVersions::VERSION_PREFIX = T.let(T.unsafe(nil), String) # ~~~ # # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#30 +# Rewrite non-singleton methods inside singleton classes to singleton methods +# Example: +# ~~~rb +# class << self +# def m1; end +# def self.m2; end +# class << self +# def m3; end +# end +# end +# will be rewritten to: +# def self.m1; end +# def self.m2; end +# def self.m3; end class RBI::Rewriters::FlattenSingletonMethods < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#34 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#33 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end end @@ -2393,25 +3530,47 @@ end # ~~~ # # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#27 +# Flattens visibility nodes into method nodes +# Example: +# ~~~rb +# class A +# def m1; end +# private +# def m2; end +# def m3; end +# end +# will be transformed into: +# private def m2; end +# private def m3; end class RBI::Rewriters::FlattenVisibilities < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#31 + # : -> void + # + # @return [FlattenVisibilities] a new instance of FlattenVisibilities + # + # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#29 sig { void } def initialize; end - # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#38 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#37 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end end # source://rbi//lib/rbi/rewriters/group_nodes.rb#8 class RBI::Rewriters::GroupNodes < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/group_nodes.rb#12 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/group_nodes.rb#11 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi//lib/rbi/rewriters/group_nodes.rb#36 + # : (Node node) -> Group::Kind + # + # source://rbi//lib/rbi/rewriters/group_nodes.rb#35 sig { params(node: ::RBI::Node).returns(::RBI::Group::Kind) } def group_kind(node); end end @@ -2451,21 +3610,46 @@ end # ~~~ # # source://rbi//lib/rbi/rewriters/merge_trees.rb#39 +# Merge two RBI trees together +# Be this `Tree`: +# ~~~rb +# class Foo +# attr_accessor :a +# def m; end +# C = 10 +# end +# Merged with this one: +# attr_reader :a +# def m(x); end +# Compatible definitions are merged together while incompatible definitions are moved into a `ConflictTree`: +# <<<<<<< left +# ======= +# >>>>>>> right class RBI::Rewriters::Merge - # source://rbi//lib/rbi/rewriters/merge_trees.rb#70 + # : (?left_name: String, ?right_name: String, ?keep: Keep) -> void + # + # @return [Merge] a new instance of Merge + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#66 sig { params(left_name: ::String, right_name: ::String, keep: ::RBI::Rewriters::Merge::Keep).void } def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#79 + # : (Tree tree) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#75 sig { params(tree: ::RBI::Tree).void } def merge(tree); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#67 + # : MergeTree + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#63 sig { returns(::RBI::MergeTree) } def tree; end class << self - # source://rbi//lib/rbi/rewriters/merge_trees.rb#54 + # : (Tree left, Tree right, ?left_name: String, ?right_name: String, ?keep: Keep) -> MergeTree + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#50 sig do params( left: ::RBI::Tree, @@ -2481,19 +3665,22 @@ end # Used for logging / error displaying purpose # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#86 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#82 class RBI::Rewriters::Merge::Conflict < ::T::Struct const :left, ::RBI::Node const :right, ::RBI::Node const :left_name, ::String const :right_name, ::String - # source://rbi//lib/rbi/rewriters/merge_trees.rb#95 + # : -> String + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#89 sig { returns(::String) } def to_s; end class << self - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11915/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11911/lib/types/struct.rb#13 def inherited(s); end end end @@ -2529,24 +3716,43 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#245 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#238 +# Merge adjacent conflict trees +# Transform this: +# ~~~rb +# class Foo +# <<<<<<< left +# def m1; end +# ======= +# def m1(a); end +# >>>>>>> right +# def m2(a); end +# def m2; end +# end +# Into this: class RBI::Rewriters::Merge::ConflictTreeMerger < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/merge_trees.rb#247 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#241 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#252 + # : (Array[Node] nodes) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#247 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end private - # source://rbi//lib/rbi/rewriters/merge_trees.rb#273 + # : (Tree left, Tree right) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#268 sig { params(left: ::RBI::Tree, right: ::RBI::Tree).void } def merge_conflict_trees(left, right); end end -# source://rbi//lib/rbi/rewriters/merge_trees.rb#42 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#40 class RBI::Rewriters::Merge::Keep < ::T::Enum enums do LEFT = new @@ -2555,9 +3761,13 @@ class RBI::Rewriters::Merge::Keep < ::T::Enum end end -# source://rbi//lib/rbi/rewriters/merge_trees.rb#100 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#94 class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/merge_trees.rb#107 + # : (Tree output, ?left_name: String, ?right_name: String, ?keep: Keep) -> void + # + # @return [TreeMerger] a new instance of TreeMerger + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#99 sig do params( output: ::RBI::Tree, @@ -2568,47 +3778,65 @@ class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor end def initialize(output, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#104 + # : Array[Conflict] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#96 sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } def conflicts; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#119 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#112 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi//lib/rbi/rewriters/merge_trees.rb#168 + # : -> Tree + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#161 sig { returns(::RBI::Tree) } def current_scope; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#185 + # : (Scope left, Scope right) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#178 sig { params(left: ::RBI::Scope, right: ::RBI::Scope).void } def make_conflict_scope(left, right); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#192 + # : (Node left, Node right) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#185 sig { params(left: ::RBI::Node, right: ::RBI::Node).void } def make_conflict_tree(left, right); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#173 + # : (Node node) -> Node? + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#166 sig { params(node: ::RBI::Node).returns(T.nilable(::RBI::Node)) } def previous_definition(node); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#204 + # : (Scope left, Scope right) -> Scope + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#197 sig { params(left: ::RBI::Scope, right: ::RBI::Scope).returns(::RBI::Scope) } def replace_scope_header(left, right); end end # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#6 class RBI::Rewriters::NestNonPublicMembers < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#10 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#9 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end end # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#6 class RBI::Rewriters::NestSingletonMethods < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#10 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#9 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end end @@ -2631,12 +3859,28 @@ end # ~~~ # # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#22 +# This rewriter moves top-level members into a top-level Object class +# Example: +# ~~~rb +# def foo; end +# attr_reader :bar +# will be rewritten to: +# class Object +# def foo; end +# attr_reader :bar +# end class RBI::Rewriters::NestTopLevelMembers < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#26 + # : -> void + # + # @return [NestTopLevelMembers] a new instance of NestTopLevelMembers + # + # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#24 sig { void } def initialize; end - # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#33 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#32 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end end @@ -2685,39 +3929,80 @@ end # ~~~ # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#48 +# Remove all definitions existing in the index from the current tree +# Let's create an `Index` from two different `Tree`s: +# ~~~rb +# tree1 = Parse.parse_string(<<~RBI) +# class Foo +# def foo; end +# end +# RBI +# tree2 = Parse.parse_string(<<~RBI) +# FOO = 10 +# index = Index.index(tree1, tree2) +# We can use `RemoveKnownDefinitions` to remove the definitions found in the `index` from the `Tree` to clean: +# tree_to_clean = Parser.parse_string(<<~RBI) +# def bar; end +# BAR = 42 +# cleaned_tree, operations = RemoveKnownDefinitions.remove(tree_to_clean, index) +# assert_equal(<<~RBI, cleaned_tree) +# assert_equal(<<~OPERATIONS, operations.join("\n")) +# Deleted ::Foo#foo at -:2:2-2-16 (duplicate from -:2:2-2:16) +# Deleted ::FOO at -:5:0-5:8 (duplicate from -:1:0-1:8) +# OPERATIONS class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#55 + # : (Index index) -> void + # + # @return [RemoveKnownDefinitions] a new instance of RemoveKnownDefinitions + # + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#53 sig { params(index: ::RBI::Index).void } def initialize(index); end - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#52 + # : Array[Operation] + # + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#50 sig { returns(T::Array[::RBI::Rewriters::RemoveKnownDefinitions::Operation]) } def operations; end - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#83 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#75 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#78 + # : (Array[Node] nodes) -> void + # + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#69 sig { params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end private - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#111 + # : (Node node, Node previous) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#103 sig { params(node: ::RBI::Node, previous: ::RBI::Node).returns(T::Boolean) } def can_delete_node?(node, previous); end - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#129 + # : (Node node, Node previous) -> void + # + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#121 sig { params(node: ::RBI::Node, previous: ::RBI::Node).void } def delete_node(node, previous); end - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#102 + # : (Indexable node) -> Node? + # + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#94 sig { params(node: ::RBI::Indexable).returns(T.nilable(::RBI::Node)) } def previous_definition_for(node); end class << self - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#70 + # : (Tree tree, Index index) -> [Tree, Array[Operation]] + # + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#61 sig do params( tree: ::RBI::Tree, @@ -2728,73 +4013,126 @@ class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor end end -# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#134 +# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#126 class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct const :deleted_node, ::RBI::Node const :duplicate_of, ::RBI::Node - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#141 + # : -> String + # + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#131 sig { returns(::String) } def to_s; end class << self - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11915/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11911/lib/types/struct.rb#13 def inherited(s); end end end # source://rbi//lib/rbi/rewriters/sort_nodes.rb#6 class RBI::Rewriters::SortNodes < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#10 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#9 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#73 + # : (Group::Kind kind) -> Integer + # + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#72 sig { params(kind: ::RBI::Group::Kind).returns(::Integer) } def group_rank(kind); end - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#94 + # : (Node node) -> String? + # + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#93 sig { params(node: ::RBI::Node).returns(T.nilable(::String)) } def node_name(node); end - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#45 + # : (Node node) -> Integer + # + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#44 sig { params(node: ::RBI::Node).returns(::Integer) } def node_rank(node); end - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#106 + # : (Node node) -> void + # + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#105 sig { params(node: ::RBI::Node).void } def sort_node_names!(node); end end +# Translate all RBS signature comments to Sorbet RBI signatures +# +# source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#7 +class RBI::Rewriters::TranslateRBSSigs < ::RBI::Visitor + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#12 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end + + private + + # : (Method | Attr) -> Array[RBSComment] + # + # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#34 + sig { params(node: T.any(::RBI::Attr, ::RBI::Method)).returns(T::Array[::RBI::RBSComment]) } + def extract_rbs_comments(node); end + + # : (Attr, RBSComment) -> Sig + # + # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#61 + sig { params(node: ::RBI::Attr, comment: ::RBI::RBSComment).returns(::RBI::Sig) } + def translate_rbs_attr_type(node, comment); end + + # : (Method, RBSComment) -> Sig + # + # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#53 + sig { params(node: ::RBI::Method, comment: ::RBI::RBSComment).returns(::RBI::Sig) } + def translate_rbs_method_type(node, comment); end +end + +# source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#8 +class RBI::Rewriters::TranslateRBSSigs::Error < ::RBI::Error; end + # Scopes # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#178 +# source://rbi//lib/rbi/model.rb#166 class RBI::Scope < ::RBI::Tree include ::RBI::Indexable abstract! # Duplicate `self` scope without its body + # : -> self # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#358 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#337 + # Duplicate `self` scope without its body sig { returns(T.self_type) } def dup_empty; end # @abstract # - # source://rbi//lib/rbi/model.rb#184 + # source://rbi//lib/rbi/model.rb#173 sig { abstract.returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/index.rb#93 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#89 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#187 + # : -> String + # + # source://rbi//lib/rbi/model.rb#177 sig { override.returns(::String) } def to_s; end end @@ -2812,38 +4150,62 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#616 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#577 +# A conflict between two scope headers +# Is rendered as a merge conflict between `left` and` right` for scope definitions: +# ~~~rb +# <<<<<<< left +# class Foo +# ======= +# module Foo +# >>>>>>> right +# def m1; end +# end class RBI::ScopeConflict < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/merge_trees.rb#633 + # : (left: Scope, right: Scope, ?left_name: String, ?right_name: String) -> void + # + # @return [ScopeConflict] a new instance of ScopeConflict + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#585 sig { params(left: ::RBI::Scope, right: ::RBI::Scope, left_name: ::String, right_name: ::String).void } def initialize(left:, right:, left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#620 + # : Scope + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#579 sig { returns(::RBI::Scope) } def left; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#623 + # : String + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#582 sig { returns(::String) } def left_name; end - # @return [Scope] + # : Scope # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#620 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#579 + # @return [Scope] def right; end - # @return [String] + # : String # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#623 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#582 + # @return [String] def right_name; end end # Sends # -# source://rbi//lib/rbi/model.rb#1004 +# source://rbi//lib/rbi/model.rb#771 class RBI::Send < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1022 + # : (String method, ?Array[Arg] args, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Send node) -> void } -> void + # + # @return [Send] a new instance of Send + # + # source://rbi//lib/rbi/model.rb#779 sig do params( method: ::String, @@ -2855,40 +4217,60 @@ class RBI::Send < ::RBI::NodeWithComments end def initialize(method, args = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1030 + # : (Arg arg) -> void + # + # source://rbi//lib/rbi/model.rb#787 sig { params(arg: ::RBI::Arg).void } def <<(arg); end - # source://rbi//lib/rbi/model.rb#1035 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#792 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#1011 + # : Array[Arg] + # + # source://rbi//lib/rbi/model.rb#776 sig { returns(T::Array[::RBI::Arg]) } def args; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#537 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#503 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/index.rb#193 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#189 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1008 + # : String + # + # source://rbi//lib/rbi/model.rb#773 sig { returns(::String) } def method; end - # source://rbi//lib/rbi/model.rb#1040 + # : -> String + # + # source://rbi//lib/rbi/model.rb#797 sig { returns(::String) } def to_s; end end # Sorbet's sigs # -# source://rbi//lib/rbi/model.rb#1104 +# source://rbi//lib/rbi/model.rb#846 class RBI::Sig < ::RBI::NodeWithComments - # source://rbi//lib/rbi/model.rb#1138 + # : (?params: Array[SigParam], ?return_type: (Type | String), ?is_abstract: bool, ?is_override: bool, ?is_overridable: bool, ?is_final: bool, ?allow_incompatible_override: bool, ?type_params: Array[String], ?checked: Symbol?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Sig node) -> void } -> void + # + # @return [Sig] a new instance of Sig + # + # source://rbi//lib/rbi/model.rb#863 sig do params( params: T::Array[::RBI::SigParam], @@ -2907,97 +4289,128 @@ class RBI::Sig < ::RBI::NodeWithComments end def initialize(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), allow_incompatible_override: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1166 + # : (SigParam param) -> void + # + # source://rbi//lib/rbi/model.rb#891 sig { params(param: ::RBI::SigParam).void } def <<(param); end - # source://rbi//lib/rbi/model.rb#1176 + # : (Object other) -> bool + # + # source://rbi//lib/rbi/model.rb#901 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#1171 + # : (String name, (Type | String) type) -> void + # + # source://rbi//lib/rbi/model.rb#896 sig { params(name: ::String, type: T.any(::RBI::Type, ::String)).void } def add_param(name, type); end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def allow_incompatible_override; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def allow_incompatible_override=(_arg0); end - # source://rbi//lib/rbi/model.rb#1120 + # : Symbol? + # + # source://rbi//lib/rbi/model.rb#860 sig { returns(T.nilable(::Symbol)) } def checked; end - # @return [Symbol, nil] + # : Symbol? # - # source://rbi//lib/rbi/model.rb#1120 + # source://rbi//lib/rbi/model.rb#860 + # @return [Symbol, nil] def checked=(_arg0); end - # source://rbi//lib/rbi/model.rb#1114 + # : bool + # + # source://rbi//lib/rbi/model.rb#854 sig { returns(T::Boolean) } def is_abstract; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_abstract=(_arg0); end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_final; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_final=(_arg0); end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_overridable; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_overridable=(_arg0); end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_override; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_override=(_arg0); end - # source://rbi//lib/rbi/model.rb#1108 + # : Array[SigParam] + # + # source://rbi//lib/rbi/model.rb#848 sig { returns(T::Array[::RBI::SigParam]) } def params; end - # source://rbi//lib/rbi/model.rb#1111 + # : (Type | String) + # + # source://rbi//lib/rbi/model.rb#851 sig { returns(T.any(::RBI::Type, ::String)) } def return_type; end - # @return [Type, String] + # : (Type | String) # - # source://rbi//lib/rbi/model.rb#1111 + # source://rbi//lib/rbi/model.rb#851 + # @return [Type, String] def return_type=(_arg0); end - # source://rbi//lib/rbi/model.rb#1117 + # : Array[String] + # + # source://rbi//lib/rbi/model.rb#857 sig { returns(T::Array[::String]) } def type_params; end end -# source://rbi//lib/rbi/model.rb#1185 +# source://rbi//lib/rbi/model.rb#910 class RBI::SigParam < ::RBI::NodeWithComments - # source://rbi//lib/rbi/model.rb#1203 + # : (String name, (Type | String) type, ?loc: Loc?, ?comments: Array[Comment]) ?{ (SigParam node) -> void } -> void + # + # @return [SigParam] a new instance of SigParam + # + # source://rbi//lib/rbi/model.rb#918 sig do params( name: ::String, @@ -3009,22 +4422,32 @@ class RBI::SigParam < ::RBI::NodeWithComments end def initialize(name, type, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1211 + # : (Object other) -> bool + # + # source://rbi//lib/rbi/model.rb#926 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#1189 + # : String + # + # source://rbi//lib/rbi/model.rb#912 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#1192 + # : (Type | String) + # + # source://rbi//lib/rbi/model.rb#915 sig { returns(T.any(::RBI::Type, ::String)) } def type; end end -# source://rbi//lib/rbi/model.rb#253 +# source://rbi//lib/rbi/model.rb#226 class RBI::SingletonClass < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#263 + # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (SingletonClass node) -> void } -> void + # + # @return [SingletonClass] a new instance of SingletonClass + # + # source://rbi//lib/rbi/model.rb#228 sig do params( loc: T.nilable(::RBI::Loc), @@ -3034,14 +4457,20 @@ class RBI::SingletonClass < ::RBI::Scope end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#269 + # : -> String + # + # source://rbi//lib/rbi/model.rb#235 sig { override.returns(::String) } def fully_qualified_name; end end -# source://rbi//lib/rbi/model.rb#274 +# source://rbi//lib/rbi/model.rb#240 class RBI::Struct < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#296 + # : (String name, ?members: Array[Symbol], ?keyword_init: bool, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Struct struct) -> void } -> void + # + # @return [Struct] a new instance of Struct + # + # source://rbi//lib/rbi/model.rb#251 sig do params( name: ::String, @@ -3054,47 +4483,66 @@ class RBI::Struct < ::RBI::Scope end def initialize(name, members: T.unsafe(nil), keyword_init: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#402 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#378 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#305 + # : -> String + # + # source://rbi//lib/rbi/model.rb#261 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/model.rb#284 + # : bool + # + # source://rbi//lib/rbi/model.rb#248 sig { returns(T::Boolean) } def keyword_init; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#284 + # source://rbi//lib/rbi/model.rb#248 + # @return [Boolean] def keyword_init=(_arg0); end - # source://rbi//lib/rbi/model.rb#281 + # : Array[Symbol] + # + # source://rbi//lib/rbi/model.rb#245 sig { returns(T::Array[::Symbol]) } def members; end - # @return [Array] + # : Array[Symbol] # - # source://rbi//lib/rbi/model.rb#281 + # source://rbi//lib/rbi/model.rb#245 + # @return [Array] def members=(_arg0); end - # source://rbi//lib/rbi/model.rb#278 + # : String + # + # source://rbi//lib/rbi/model.rb#242 sig { returns(::String) } def name; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#278 + # source://rbi//lib/rbi/model.rb#242 + # @return [String] def name=(_arg0); end end # Sorbet's T::Enum # -# source://rbi//lib/rbi/model.rb#1332 +# source://rbi//lib/rbi/model.rb#1012 class RBI::TEnum < ::RBI::Class - # source://rbi//lib/rbi/model.rb#1343 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TEnum klass) -> void } -> void + # + # @return [TEnum] a new instance of TEnum + # + # source://rbi//lib/rbi/model.rb#1014 sig do params( name: ::String, @@ -3106,9 +4554,13 @@ class RBI::TEnum < ::RBI::Class def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#1349 +# source://rbi//lib/rbi/model.rb#1020 class RBI::TEnumBlock < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#1359 + # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (TEnumBlock node) -> void } -> void + # + # @return [TEnumBlock] a new instance of TEnumBlock + # + # source://rbi//lib/rbi/model.rb#1022 sig do params( loc: T.nilable(::RBI::Loc), @@ -3118,24 +4570,34 @@ class RBI::TEnumBlock < ::RBI::Scope end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1365 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1029 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/index.rb#223 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#219 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1370 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1035 sig { override.returns(::String) } def to_s; end end # Sorbet's T::Struct # -# source://rbi//lib/rbi/model.rb#1218 +# source://rbi//lib/rbi/model.rb#933 class RBI::TStruct < ::RBI::Class - # source://rbi//lib/rbi/model.rb#1229 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TStruct klass) -> void } -> void + # + # @return [TStruct] a new instance of TStruct + # + # source://rbi//lib/rbi/model.rb#935 sig do params( name: ::String, @@ -3147,11 +4609,15 @@ class RBI::TStruct < ::RBI::Class def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#1270 +# source://rbi//lib/rbi/model.rb#968 class RBI::TStructConst < ::RBI::TStructField include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1283 + # : (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TStructConst node) -> void } -> void + # + # @return [TStructConst] a new instance of TStructConst + # + # source://rbi//lib/rbi/model.rb#970 sig do params( name: ::String, @@ -3164,30 +4630,44 @@ class RBI::TStructConst < ::RBI::TStructField end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#555 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#519 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#1289 + # : -> Array[String] + # + # source://rbi//lib/rbi/model.rb#977 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/index.rb#203 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#199 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1295 + # : -> String + # + # source://rbi//lib/rbi/model.rb#984 sig { override.returns(::String) } def to_s; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#1235 +# source://rbi//lib/rbi/model.rb#941 class RBI::TStructField < ::RBI::NodeWithComments abstract! - # source://rbi//lib/rbi/model.rb#1259 + # : (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array[Comment]) -> void + # + # @return [TStructField] a new instance of TStructField + # + # source://rbi//lib/rbi/model.rb#957 sig do params( name: ::String, @@ -3199,49 +4679,66 @@ class RBI::TStructField < ::RBI::NodeWithComments end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#546 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#511 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#1248 + # : String? + # + # source://rbi//lib/rbi/model.rb#954 sig { returns(T.nilable(::String)) } def default; end - # @return [String, nil] + # : String? # - # source://rbi//lib/rbi/model.rb#1248 + # source://rbi//lib/rbi/model.rb#954 + # @return [String, nil] def default=(_arg0); end # @abstract # - # source://rbi//lib/rbi/model.rb#1267 + # source://rbi//lib/rbi/model.rb#965 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/model.rb#1242 + # : String + # + # source://rbi//lib/rbi/model.rb#948 sig { returns(::String) } def name; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#1242 + # source://rbi//lib/rbi/model.rb#948 + # @return [String] def name=(_arg0); end - # source://rbi//lib/rbi/model.rb#1245 + # : (Type | String) + # + # source://rbi//lib/rbi/model.rb#951 sig { returns(T.any(::RBI::Type, ::String)) } def type; end - # @return [Type, String] + # : (Type | String) # - # source://rbi//lib/rbi/model.rb#1245 + # source://rbi//lib/rbi/model.rb#951 + # @return [Type, String] def type=(_arg0); end end -# source://rbi//lib/rbi/model.rb#1300 +# source://rbi//lib/rbi/model.rb#989 class RBI::TStructProp < ::RBI::TStructField include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1313 + # : (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TStructProp node) -> void } -> void + # + # @return [TStructProp] a new instance of TStructProp + # + # source://rbi//lib/rbi/model.rb#991 sig do params( name: ::String, @@ -3254,26 +4751,40 @@ class RBI::TStructProp < ::RBI::TStructField end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#564 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#527 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#1319 + # : -> Array[String] + # + # source://rbi//lib/rbi/model.rb#998 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/index.rb#213 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#209 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1325 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1005 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#108 +# source://rbi//lib/rbi/model.rb#112 class RBI::Tree < ::RBI::NodeWithComments - # source://rbi//lib/rbi/model.rb#121 + # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Tree node) -> void } -> void + # + # @return [Tree] a new instance of Tree + # + # source://rbi//lib/rbi/model.rb#117 sig do params( loc: T.nilable(::RBI::Loc), @@ -3283,15 +4794,21 @@ class RBI::Tree < ::RBI::NodeWithComments end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#128 + # : (Node node) -> void + # + # source://rbi//lib/rbi/model.rb#124 sig { params(node: ::RBI::Node).void } def <<(node); end - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#66 + # : (?with_todo_comment: bool) -> void + # + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#63 sig { params(with_todo_comment: T::Boolean).void } def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/annotate.rb#49 + # : (String annotation, ?annotate_scopes: bool, ?annotate_properties: bool) -> void + # + # source://rbi//lib/rbi/rewriters/annotate.rb#46 sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end @@ -3356,35 +4873,53 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/deannotate.rb#41 + # : (String annotation) -> void + # + # source://rbi//lib/rbi/rewriters/deannotate.rb#38 sig { params(annotation: ::String).void } def deannotate!(annotation); end - # source://rbi//lib/rbi/model.rb#134 + # : -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#130 sig { returns(T::Boolean) } def empty?; end - # source://rbi//lib/rbi/rewriters/filter_versions.rb#118 + # : (Gem::Version version) -> void + # + # source://rbi//lib/rbi/rewriters/filter_versions.rb#113 sig { params(version: ::Gem::Version).void } def filter_versions!(version); end - # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#60 + # : -> void + # + # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#57 sig { void } def flatten_singleton_methods!; end - # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#60 + # : -> void + # + # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#57 sig { void } def flatten_visibilities!; end - # source://rbi//lib/rbi/rewriters/group_nodes.rb#81 + # : -> void + # + # source://rbi//lib/rbi/rewriters/group_nodes.rb#78 sig { void } def group_nodes!; end - # source://rbi//lib/rbi/index.rb#68 + # : -> Index + # + # source://rbi//lib/rbi/index.rb#64 sig { returns(::RBI::Index) } def index; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#324 + # : (Tree other, ?left_name: String, ?right_name: String, ?keep: Rewriters::Merge::Keep) -> MergeTree + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#314 sig do params( other: ::RBI::Tree, @@ -3395,30 +4930,48 @@ class RBI::Tree < ::RBI::NodeWithComments end def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#46 + # : -> void + # + # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#43 sig { void } def nest_non_public_members!; end - # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#36 + # : -> void + # + # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#33 sig { void } def nest_singleton_methods!; end - # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#63 + # : -> void + # + # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#60 sig { void } def nest_top_level_members!; end - # source://rbi//lib/rbi/model.rb#112 + # : Array[Node] + # + # source://rbi//lib/rbi/model.rb#114 sig { returns(T::Array[::RBI::Node]) } def nodes; end - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#53 + # : -> void + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#50 sig { void } def replace_attributes_with_methods!; end - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#119 + # : -> void + # + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#116 sig { void } def sort_nodes!; end + # : -> void + # + # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#82 + sig { void } + def translate_rbs_sigs!; end + private # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#123 @@ -3438,21 +4991,31 @@ end class RBI::Type abstract! - # source://rbi//lib/rbi/type.rb#699 + # : -> void + # + # @return [Type] a new instance of Type + # + # source://rbi//lib/rbi/type.rb#695 sig { void } def initialize; end # @abstract # - # source://rbi//lib/rbi/type.rb#745 + # source://rbi//lib/rbi/type.rb#741 sig { abstract.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#748 + # : (BasicObject other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/type.rb#744 sig { params(other: ::BasicObject).returns(T::Boolean) } def eql?(other); end - # source://rbi//lib/rbi/type.rb#753 + # : -> Integer + # + # source://rbi//lib/rbi/type.rb#750 sig { override.returns(::Integer) } def hash; end @@ -3465,43 +5028,70 @@ class RBI::Type # type.nilable.to_rbi # => "T.nilable(String)" # type.nilable.nilable.to_rbi # => "T.nilable(String)" # ``` + # : -> Type # - # source://rbi//lib/rbi/type.rb#713 + # source://rbi//lib/rbi/type.rb#709 + # Returns a new type that is `nilable` if it is not already. + # If the type is already nilable, it returns itself. + # ```ruby + # type = RBI::Type.simple("String") + # type.to_rbi # => "String" + # type.nilable.to_rbi # => "T.nilable(String)" + # type.nilable.nilable.to_rbi # => "T.nilable(String)" + # ``` sig { returns(::RBI::Type) } def nilable; end # Returns whether the type is nilable. + # : -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/type.rb#736 + # Returns whether the type is nilable. + sig { returns(T::Boolean) } + def nilable?; end + + # Returns the non-nilable version of the type. + # If the type is already non-nilable, it returns itself. + # If the type is nilable, it returns the inner type. + # + # ```ruby + # type = RBI::Type.nilable(RBI::Type.simple("String")) + # type.to_rbi # => "T.nilable(String)" + # type.non_nilable.to_rbi # => "String" + # type.non_nilable.non_nilable.to_rbi # => "String" + # ``` + # : -> Type # - # source://rbi//lib/rbi/type.rb#740 - sig { returns(T::Boolean) } - def nilable?; end - + # source://rbi//lib/rbi/type.rb#724 # Returns the non-nilable version of the type. # If the type is already non-nilable, it returns itself. # If the type is nilable, it returns the inner type. - # # ```ruby # type = RBI::Type.nilable(RBI::Type.simple("String")) # type.to_rbi # => "T.nilable(String)" # type.non_nilable.to_rbi # => "String" # type.non_nilable.non_nilable.to_rbi # => "String" # ``` - # - # source://rbi//lib/rbi/type.rb#728 sig { returns(::RBI::Type) } def non_nilable; end - # source://rbi//lib/rbi/rbs_printer.rb#1074 + # : -> String + # + # source://rbi//lib/rbi/rbs_printer.rb#1136 sig { returns(::String) } def rbs_string; end # @abstract # - # source://rbi//lib/rbi/type.rb#758 + # source://rbi//lib/rbi/type.rb#755 sig { abstract.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#761 + # : -> String + # + # source://rbi//lib/rbi/type.rb#759 sig { override.returns(::String) } def to_s; end @@ -3510,8 +5100,12 @@ class RBI::Type # # Note that this method transforms types such as `T.all(String, String)` into `String`, so # it may return something other than a `All`. + # : (Type type1, Type type2, *Type types) -> Type # - # source://rbi//lib/rbi/type.rb#563 + # source://rbi//lib/rbi/type.rb#559 + # Builds a type that represents an intersection of multiple types like `T.all(String, Integer)`. + # Note that this method transforms types such as `T.all(String, String)` into `String`, so + # it may return something other than a `All`. sig { params(type1: ::RBI::Type, type2: ::RBI::Type, types: ::RBI::Type).returns(::RBI::Type) } def all(type1, type2, *types); end @@ -3519,38 +5113,52 @@ class RBI::Type # # Note that this method transforms types such as `T.any(String, NilClass)` into `T.nilable(String)`, so # it may return something other than a `Any`. + # : (Type type1, Type type2, *Type types) -> Type # - # source://rbi//lib/rbi/type.rb#590 + # source://rbi//lib/rbi/type.rb#586 + # Builds a type that represents a union of multiple types like `T.any(String, Integer)`. + # Note that this method transforms types such as `T.any(String, NilClass)` into `T.nilable(String)`, so + # it may return something other than a `Any`. sig { params(type1: ::RBI::Type, type2: ::RBI::Type, types: ::RBI::Type).returns(::RBI::Type) } def any(type1, type2, *types); end # Builds a type that represents `T.anything`. + # : -> Anything # - # source://rbi//lib/rbi/type.rb#488 + # source://rbi//lib/rbi/type.rb#484 + # Builds a type that represents `T.anything`. sig { returns(::RBI::Type::Anything) } def anything; end # Builds a type that represents `T.attached_class`. + # : -> AttachedClass # - # source://rbi//lib/rbi/type.rb#494 + # source://rbi//lib/rbi/type.rb#490 + # Builds a type that represents `T.attached_class`. sig { returns(::RBI::Type::AttachedClass) } def attached_class; end # Builds a type that represents `T::Boolean`. + # : -> Boolean # - # source://rbi//lib/rbi/type.rb#500 + # source://rbi//lib/rbi/type.rb#496 + # Builds a type that represents `T::Boolean`. sig { returns(::RBI::Type::Boolean) } def boolean; end # Builds a type that represents the singleton class of another type like `T.class_of(Foo)`. + # : (Simple type, ?Type? type_parameter) -> ClassOf # - # source://rbi//lib/rbi/type.rb#538 + # source://rbi//lib/rbi/type.rb#534 + # Builds a type that represents the singleton class of another type like `T.class_of(Foo)`. sig { params(type: ::RBI::Type::Simple, type_parameter: T.nilable(::RBI::Type)).returns(::RBI::Type::ClassOf) } def class_of(type, type_parameter = T.unsafe(nil)); end # Builds a type that represents a generic type like `T::Array[String]` or `T::Hash[Symbol, Integer]`. + # : (String name, *(Type | Array[Type]) params) -> Generic # - # source://rbi//lib/rbi/type.rb#655 + # source://rbi//lib/rbi/type.rb#651 + # Builds a type that represents a generic type like `T::Array[String]` or `T::Hash[Symbol, Integer]`. sig { params(name: ::String, params: T.any(::RBI::Type, T::Array[::RBI::Type])).returns(::RBI::Type::Generic) } def generic(name, *params); end @@ -3558,21 +5166,31 @@ class RBI::Type # # Note that this method transforms types such as `T.nilable(T.untyped)` into `T.untyped`, so # it may return something other than a `RBI::Type::Nilable`. + # : (Type type) -> Type # - # source://rbi//lib/rbi/type.rb#547 + # source://rbi//lib/rbi/type.rb#543 + # Builds a type that represents a nilable of another type like `T.nilable(String)`. + # Note that this method transforms types such as `T.nilable(T.untyped)` into `T.untyped`, so + # it may return something other than a `RBI::Type::Nilable`. sig { params(type: ::RBI::Type).returns(::RBI::Type) } def nilable(type); end # Builds a type that represents `T.noreturn`. + # : -> NoReturn # - # source://rbi//lib/rbi/type.rb#506 + # source://rbi//lib/rbi/type.rb#502 + # Builds a type that represents `T.noreturn`. sig { returns(::RBI::Type::NoReturn) } def noreturn; end + # : (Prism::Node node) -> Type + # # source://rbi//lib/rbi/type_parser.rb#26 sig { params(node: ::Prism::Node).returns(::RBI::Type) } def parse_node(node); end + # : (String string) -> Type + # # @raise [Error] # # source://rbi//lib/rbi/type_parser.rb#10 @@ -3580,122 +5198,181 @@ class RBI::Type def parse_string(string); end # Builds a type that represents a proc type like `T.proc.void`. + # : -> Proc # - # source://rbi//lib/rbi/type.rb#683 + # source://rbi//lib/rbi/type.rb#679 + # Builds a type that represents a proc type like `T.proc.void`. sig { returns(::RBI::Type::Proc) } def proc; end # Builds a type that represents `T.self_type`. + # : -> SelfType # - # source://rbi//lib/rbi/type.rb#512 + # source://rbi//lib/rbi/type.rb#508 + # Builds a type that represents `T.self_type`. sig { returns(::RBI::Type::SelfType) } def self_type; end # Builds a type that represents a shape type like `{name: String, age: Integer}`. + # : (?Hash[(String | Symbol), Type] types) -> Shape # - # source://rbi//lib/rbi/type.rb#675 + # source://rbi//lib/rbi/type.rb#671 + # Builds a type that represents a shape type like `{name: String, age: Integer}`. sig { params(types: T::Hash[T.any(::String, ::Symbol), ::RBI::Type]).returns(::RBI::Type::Shape) } def shape(types = T.unsafe(nil)); end # Builds a simple type like `String` or `::Foo::Bar`. # # It raises a `NameError` if the name is not a valid Ruby class identifier. + # : (String name) -> Simple # # @raise [NameError] # - # source://rbi//lib/rbi/type.rb#477 + # source://rbi//lib/rbi/type.rb#473 + # Builds a simple type like `String` or `::Foo::Bar`. + # It raises a `NameError` if the name is not a valid Ruby class identifier. sig { params(name: ::String).returns(::RBI::Type::Simple) } def simple(name); end # Builds a type that represents the class of another type like `T::Class[Foo]`. + # : (Type type) -> Class # - # source://rbi//lib/rbi/type.rb#532 + # source://rbi//lib/rbi/type.rb#528 + # Builds a type that represents the class of another type like `T::Class[Foo]`. sig { params(type: ::RBI::Type).returns(::RBI::Type::Class) } def t_class(type); end # Builds a type that represents a tuple type like `[String, Integer]`. + # : (*(Type | Array[Type]) types) -> Tuple # - # source://rbi//lib/rbi/type.rb#669 + # source://rbi//lib/rbi/type.rb#665 + # Builds a type that represents a tuple type like `[String, Integer]`. sig { params(types: T.any(::RBI::Type, T::Array[::RBI::Type])).returns(::RBI::Type::Tuple) } def tuple(*types); end # Builds a type that represents a type parameter like `T.type_parameter(:U)`. + # : (Symbol name) -> TypeParameter # - # source://rbi//lib/rbi/type.rb#661 + # source://rbi//lib/rbi/type.rb#657 + # Builds a type that represents a type parameter like `T.type_parameter(:U)`. sig { params(name: ::Symbol).returns(::RBI::Type::TypeParameter) } def type_parameter(name); end # Builds a type that represents `T.untyped`. + # : -> Untyped # - # source://rbi//lib/rbi/type.rb#518 + # source://rbi//lib/rbi/type.rb#514 + # Builds a type that represents `T.untyped`. sig { returns(::RBI::Type::Untyped) } def untyped; end # Builds a type that represents `void`. + # : -> Void # - # source://rbi//lib/rbi/type.rb#524 + # source://rbi//lib/rbi/type.rb#520 + # Builds a type that represents `void`. sig { returns(::RBI::Type::Void) } def void; end private + # : (Prism::CallNode node) -> Array[Prism::Node] + # # source://rbi//lib/rbi/type_parser.rb#263 sig { params(node: ::Prism::CallNode).returns(T::Array[::Prism::Node]) } def call_chain(node); end + # : (Prism::CallNode node, Integer count) -> Array[Prism::Node] + # # source://rbi//lib/rbi/type_parser.rb#250 sig { params(node: ::Prism::CallNode, count: ::Integer).returns(T::Array[::Prism::Node]) } def check_arguments_at_least!(node, count); end + # : (Prism::CallNode node, Integer count) -> Array[Prism::Node] + # # source://rbi//lib/rbi/type_parser.rb#235 sig { params(node: ::Prism::CallNode, count: ::Integer).returns(T::Array[::Prism::Node]) } def check_arguments_exactly!(node, count); end + # : (Prism::CallNode node) -> Type + # # @raise [Error] # # source://rbi//lib/rbi/type_parser.rb#69 sig { params(node: ::Prism::CallNode).returns(::RBI::Type) } def parse_call(node); end + # : ((Prism::ConstantReadNode | Prism::ConstantPathNode) node) -> Type + # # source://rbi//lib/rbi/type_parser.rb#52 sig { params(node: T.any(::Prism::ConstantPathNode, ::Prism::ConstantReadNode)).returns(::RBI::Type) } def parse_constant(node); end + # : (Prism::CallNode node) -> Type + # # @raise [Error] # # source://rbi//lib/rbi/type_parser.rb#195 sig { params(node: ::Prism::CallNode).returns(::RBI::Type) } def parse_proc(node); end + # : ((Prism::HashNode | Prism::KeywordHashNode) node) -> Type + # # source://rbi//lib/rbi/type_parser.rb#176 sig { params(node: T.any(::Prism::HashNode, ::Prism::KeywordHashNode)).returns(::RBI::Type) } def parse_shape(node); end + # : (Prism::ArrayNode node) -> Type + # # source://rbi//lib/rbi/type_parser.rb#171 sig { params(node: ::Prism::ArrayNode).returns(::RBI::Type) } def parse_tuple(node); end + # : (Prism::Node? node) -> bool + # + # @return [Boolean] + # # source://rbi//lib/rbi/type_parser.rb#276 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def t?(node); end + # : (Prism::Node? node) -> bool + # + # @return [Boolean] + # # source://rbi//lib/rbi/type_parser.rb#288 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def t_boolean?(node); end + # : (Prism::ConstantPathNode node) -> bool + # + # @return [Boolean] + # # source://rbi//lib/rbi/type_parser.rb#295 sig { params(node: ::Prism::ConstantPathNode).returns(T::Boolean) } def t_class?(node); end + # : (Prism::Node? node) -> bool + # + # @return [Boolean] + # # source://rbi//lib/rbi/type_parser.rb#300 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def t_class_of?(node); end + # : (Prism::CallNode node) -> bool + # + # @return [Boolean] + # # source://rbi//lib/rbi/type_parser.rb#307 sig { params(node: ::Prism::CallNode).returns(T::Boolean) } def t_proc?(node); end - # source://rbi//lib/rbi/type.rb#693 + # : (String name) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/type.rb#689 sig { params(name: ::String).returns(T::Boolean) } def valid_identifier?(name); end end @@ -3705,20 +5382,28 @@ end # # source://rbi//lib/rbi/type.rb#252 class RBI::Type::All < ::RBI::Type::Composite - # source://rbi//lib/rbi/type.rb#256 + # : -> String + # + # source://rbi//lib/rbi/type.rb#255 sig { override.returns(::String) } def to_rbi; end end # A type that is union of multiple types like `T.any(String, Integer)`. # -# source://rbi//lib/rbi/type.rb#262 +# source://rbi//lib/rbi/type.rb#261 class RBI::Type::Any < ::RBI::Type::Composite - # source://rbi//lib/rbi/type.rb#271 + # : -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/type.rb#269 sig { returns(T::Boolean) } def nilable?; end - # source://rbi//lib/rbi/type.rb#266 + # : -> String + # + # source://rbi//lib/rbi/type.rb#264 sig { override.returns(::String) } def to_rbi; end end @@ -3727,10 +5412,14 @@ end # # source://rbi//lib/rbi/type.rb#43 class RBI::Type::Anything < ::RBI::Type - # source://rbi//lib/rbi/type.rb#47 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#46 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#52 sig { override.returns(::String) } def to_rbi; end @@ -3740,10 +5429,14 @@ end # # source://rbi//lib/rbi/type.rb#58 class RBI::Type::AttachedClass < ::RBI::Type - # source://rbi//lib/rbi/type.rb#62 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#61 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#67 sig { override.returns(::String) } def to_rbi; end @@ -3753,10 +5446,14 @@ end # # source://rbi//lib/rbi/type.rb#73 class RBI::Type::Boolean < ::RBI::Type - # source://rbi//lib/rbi/type.rb#77 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#76 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#82 sig { override.returns(::String) } def to_rbi; end @@ -3766,19 +5463,29 @@ end # # source://rbi//lib/rbi/type.rb#150 class RBI::Type::Class < ::RBI::Type - # source://rbi//lib/rbi/type.rb#157 + # : (Type type) -> void + # + # @return [Class] a new instance of Class + # + # source://rbi//lib/rbi/type.rb#155 sig { params(type: ::RBI::Type).void } def initialize(type); end - # source://rbi//lib/rbi/type.rb#163 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#162 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#168 sig { override.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#154 + # : Type + # + # source://rbi//lib/rbi/type.rb#152 sig { returns(::RBI::Type) } def type; end end @@ -3787,23 +5494,35 @@ end # # source://rbi//lib/rbi/type.rb#174 class RBI::Type::ClassOf < ::RBI::Type - # source://rbi//lib/rbi/type.rb#184 + # : (Simple type, ?Type? type_parameter) -> void + # + # @return [ClassOf] a new instance of ClassOf + # + # source://rbi//lib/rbi/type.rb#182 sig { params(type: ::RBI::Type::Simple, type_parameter: T.nilable(::RBI::Type)).void } def initialize(type, type_parameter = T.unsafe(nil)); end - # source://rbi//lib/rbi/type.rb#191 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#190 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#196 sig { override.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#178 + # : Simple + # + # source://rbi//lib/rbi/type.rb#176 sig { returns(::RBI::Type::Simple) } def type; end - # source://rbi//lib/rbi/type.rb#181 + # : Type? + # + # source://rbi//lib/rbi/type.rb#179 sig { returns(T.nilable(::RBI::Type)) } def type_parameter; end end @@ -3816,15 +5535,23 @@ end class RBI::Type::Composite < ::RBI::Type abstract! - # source://rbi//lib/rbi/type.rb#240 + # : (Array[Type] types) -> void + # + # @return [Composite] a new instance of Composite + # + # source://rbi//lib/rbi/type.rb#239 sig { params(types: T::Array[::RBI::Type]).void } def initialize(types); end + # : (BasicObject other) -> bool + # # source://rbi//lib/rbi/type.rb#246 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#237 + # : Array[Type] + # + # source://rbi//lib/rbi/type.rb#236 sig { returns(T::Array[::RBI::Type]) } def types; end end @@ -3834,25 +5561,37 @@ class RBI::Type::Error < ::RBI::Error; end # A generic type like `T::Array[String]` or `T::Hash[Symbol, Integer]`. # -# source://rbi//lib/rbi/type.rb#279 +# source://rbi//lib/rbi/type.rb#277 class RBI::Type::Generic < ::RBI::Type - # source://rbi//lib/rbi/type.rb#289 + # : (String name, *Type params) -> void + # + # @return [Generic] a new instance of Generic + # + # source://rbi//lib/rbi/type.rb#285 sig { params(name: ::String, params: ::RBI::Type).void } def initialize(name, *params); end - # source://rbi//lib/rbi/type.rb#296 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#293 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#283 + # : String + # + # source://rbi//lib/rbi/type.rb#279 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/type.rb#286 + # : Array[Type] + # + # source://rbi//lib/rbi/type.rb#282 sig { returns(T::Array[::RBI::Type]) } def params; end - # source://rbi//lib/rbi/type.rb#301 + # : -> String + # + # source://rbi//lib/rbi/type.rb#299 sig { override.returns(::String) } def to_rbi; end end @@ -3861,19 +5600,29 @@ end # # source://rbi//lib/rbi/type.rb#206 class RBI::Type::Nilable < ::RBI::Type - # source://rbi//lib/rbi/type.rb#213 + # : (Type type) -> void + # + # @return [Nilable] a new instance of Nilable + # + # source://rbi//lib/rbi/type.rb#211 sig { params(type: ::RBI::Type).void } def initialize(type); end - # source://rbi//lib/rbi/type.rb#219 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#218 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#224 sig { override.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#210 + # : Type + # + # source://rbi//lib/rbi/type.rb#208 sig { returns(::RBI::Type) } def type; end end @@ -3882,10 +5631,14 @@ end # # source://rbi//lib/rbi/type.rb#88 class RBI::Type::NoReturn < ::RBI::Type - # source://rbi//lib/rbi/type.rb#92 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#91 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#97 sig { override.returns(::String) } def to_rbi; end @@ -3893,45 +5646,67 @@ end # A proc type like `T.proc.void`. # -# source://rbi//lib/rbi/type.rb#387 +# source://rbi//lib/rbi/type.rb#385 class RBI::Type::Proc < ::RBI::Type - # source://rbi//lib/rbi/type.rb#400 + # : -> void + # + # @return [Proc] a new instance of Proc + # + # source://rbi//lib/rbi/type.rb#396 sig { void } def initialize; end - # source://rbi//lib/rbi/type.rb#408 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#405 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#436 + # : (untyped type) -> self + # + # source://rbi//lib/rbi/type.rb#433 sig { params(type: T.untyped).returns(T.self_type) } def bind(type); end - # source://rbi//lib/rbi/type.rb#418 + # : (**Type params) -> self + # + # source://rbi//lib/rbi/type.rb#415 sig { params(params: ::RBI::Type).returns(T.self_type) } def params(**params); end - # source://rbi//lib/rbi/type.rb#397 + # : Type? + # + # source://rbi//lib/rbi/type.rb#393 sig { returns(T.nilable(::RBI::Type)) } def proc_bind; end - # source://rbi//lib/rbi/type.rb#391 + # : Hash[Symbol, Type] + # + # source://rbi//lib/rbi/type.rb#387 sig { returns(T::Hash[::Symbol, ::RBI::Type]) } def proc_params; end - # source://rbi//lib/rbi/type.rb#394 + # : Type + # + # source://rbi//lib/rbi/type.rb#390 sig { returns(::RBI::Type) } def proc_returns; end - # source://rbi//lib/rbi/type.rb#424 + # : (untyped type) -> self + # + # source://rbi//lib/rbi/type.rb#421 sig { params(type: T.untyped).returns(T.self_type) } def returns(type); end - # source://rbi//lib/rbi/type.rb#442 + # : -> String + # + # source://rbi//lib/rbi/type.rb#440 sig { override.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#430 + # : -> self + # + # source://rbi//lib/rbi/type.rb#427 sig { returns(T.self_type) } def void; end end @@ -3940,10 +5715,14 @@ end # # source://rbi//lib/rbi/type.rb#103 class RBI::Type::SelfType < ::RBI::Type - # source://rbi//lib/rbi/type.rb#107 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#106 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#112 sig { override.returns(::String) } def to_rbi; end @@ -3951,21 +5730,31 @@ end # A shape type like `{name: String, age: Integer}`. # -# source://rbi//lib/rbi/type.rb#357 +# source://rbi//lib/rbi/type.rb#355 class RBI::Type::Shape < ::RBI::Type - # source://rbi//lib/rbi/type.rb#364 + # : (Hash[(String | Symbol), Type] types) -> void + # + # @return [Shape] a new instance of Shape + # + # source://rbi//lib/rbi/type.rb#360 sig { params(types: T::Hash[T.any(::String, ::Symbol), ::RBI::Type]).void } def initialize(types); end - # source://rbi//lib/rbi/type.rb#370 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#367 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#375 + # : -> String + # + # source://rbi//lib/rbi/type.rb#373 sig { override.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#361 + # : Hash[(String | Symbol), Type] + # + # source://rbi//lib/rbi/type.rb#357 sig { returns(T::Hash[T.any(::String, ::Symbol), ::RBI::Type]) } def types; end end @@ -3975,19 +5764,30 @@ end # It can also be a qualified name like `::Foo` or `Foo::Bar`. # # source://rbi//lib/rbi/type.rb#17 +# A type that represents a simple class name like `String` or `Foo`. class RBI::Type::Simple < ::RBI::Type - # source://rbi//lib/rbi/type.rb#24 + # : (String name) -> void + # + # @return [Simple] a new instance of Simple + # + # source://rbi//lib/rbi/type.rb#22 sig { params(name: ::String).void } def initialize(name); end - # source://rbi//lib/rbi/type.rb#30 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#29 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#21 + # : String + # + # source://rbi//lib/rbi/type.rb#19 sig { returns(::String) } def name; end + # : -> String + # # source://rbi//lib/rbi/type.rb#35 sig { override.returns(::String) } def to_rbi; end @@ -3995,42 +5795,62 @@ end # A tuple type like `[String, Integer]`. # -# source://rbi//lib/rbi/type.rb#333 +# source://rbi//lib/rbi/type.rb#331 class RBI::Type::Tuple < ::RBI::Type - # source://rbi//lib/rbi/type.rb#340 + # : (Array[Type] types) -> void + # + # @return [Tuple] a new instance of Tuple + # + # source://rbi//lib/rbi/type.rb#336 sig { params(types: T::Array[::RBI::Type]).void } def initialize(types); end - # source://rbi//lib/rbi/type.rb#346 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#343 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#351 + # : -> String + # + # source://rbi//lib/rbi/type.rb#349 sig { override.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#337 + # : Array[Type] + # + # source://rbi//lib/rbi/type.rb#333 sig { returns(T::Array[::RBI::Type]) } def types; end end # A type parameter like `T.type_parameter(:U)`. # -# source://rbi//lib/rbi/type.rb#307 +# source://rbi//lib/rbi/type.rb#305 class RBI::Type::TypeParameter < ::RBI::Type - # source://rbi//lib/rbi/type.rb#314 + # : (Symbol name) -> void + # + # @return [TypeParameter] a new instance of TypeParameter + # + # source://rbi//lib/rbi/type.rb#310 sig { params(name: ::Symbol).void } def initialize(name); end - # source://rbi//lib/rbi/type.rb#320 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#317 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#311 + # : Symbol + # + # source://rbi//lib/rbi/type.rb#307 sig { returns(::Symbol) } def name; end - # source://rbi//lib/rbi/type.rb#325 + # : -> String + # + # source://rbi//lib/rbi/type.rb#323 sig { override.returns(::String) } def to_rbi; end end @@ -4039,10 +5859,14 @@ end # # source://rbi//lib/rbi/type.rb#118 class RBI::Type::Untyped < ::RBI::Type - # source://rbi//lib/rbi/type.rb#122 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#121 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#127 sig { override.returns(::String) } def to_rbi; end @@ -4050,106 +5874,152 @@ end # source://rbi//lib/rbi/type_visitor.rb#6 class RBI::Type::Visitor - # source://rbi//lib/rbi/type_visitor.rb#12 + # : (Type node) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#10 sig { params(node: ::RBI::Type).void } def visit(node); end private - # source://rbi//lib/rbi/type_visitor.rb#58 + # : (Type::All type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#56 sig { params(type: ::RBI::Type::All).void } def visit_all(type); end - # source://rbi//lib/rbi/type_visitor.rb#61 + # : (Type::Any type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#59 sig { params(type: ::RBI::Type::Any).void } def visit_any(type); end - # source://rbi//lib/rbi/type_visitor.rb#64 + # : (Type::Anything type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#62 sig { params(type: ::RBI::Type::Anything).void } def visit_anything(type); end - # source://rbi//lib/rbi/type_visitor.rb#67 + # : (Type::AttachedClass type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#65 sig { params(type: ::RBI::Type::AttachedClass).void } def visit_attached_class(type); end - # source://rbi//lib/rbi/type_visitor.rb#70 + # : (Type::Boolean type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#68 sig { params(type: ::RBI::Type::Boolean).void } def visit_boolean(type); end - # source://rbi//lib/rbi/type_visitor.rb#73 + # : (Type::Class type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#71 sig { params(type: ::RBI::Type::Class).void } def visit_class(type); end - # source://rbi//lib/rbi/type_visitor.rb#76 + # : (Type::ClassOf type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#74 sig { params(type: ::RBI::Type::ClassOf).void } def visit_class_of(type); end - # source://rbi//lib/rbi/type_visitor.rb#79 + # : (Type::Generic type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#77 sig { params(type: ::RBI::Type::Generic).void } def visit_generic(type); end - # source://rbi//lib/rbi/type_visitor.rb#82 + # : (Type::Nilable type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#80 sig { params(type: ::RBI::Type::Nilable).void } def visit_nilable(type); end - # source://rbi//lib/rbi/type_visitor.rb#88 + # : (Type::NoReturn type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#86 sig { params(type: ::RBI::Type::NoReturn).void } def visit_no_return(type); end - # source://rbi//lib/rbi/type_visitor.rb#91 + # : (Type::Proc type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#89 sig { params(type: ::RBI::Type::Proc).void } def visit_proc(type); end - # source://rbi//lib/rbi/type_visitor.rb#94 + # : (Type::SelfType type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#92 sig { params(type: ::RBI::Type::SelfType).void } def visit_self_type(type); end - # source://rbi//lib/rbi/type_visitor.rb#100 + # : (Type::Shape type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#98 sig { params(type: ::RBI::Type::Shape).void } def visit_shape(type); end - # source://rbi//lib/rbi/type_visitor.rb#85 + # : (Type::Simple type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#83 sig { params(type: ::RBI::Type::Simple).void } def visit_simple(type); end - # source://rbi//lib/rbi/type_visitor.rb#103 + # : (Type::Tuple type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#101 sig { params(type: ::RBI::Type::Tuple).void } def visit_tuple(type); end - # source://rbi//lib/rbi/type_visitor.rb#106 + # : (Type::TypeParameter type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#104 sig { params(type: ::RBI::Type::TypeParameter).void } def visit_type_parameter(type); end - # source://rbi//lib/rbi/type_visitor.rb#109 + # : (Type::Untyped type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#107 sig { params(type: ::RBI::Type::Untyped).void } def visit_untyped(type); end - # source://rbi//lib/rbi/type_visitor.rb#97 + # : (Type::Void type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#95 sig { params(type: ::RBI::Type::Void).void } def visit_void(type); end end -# source://rbi//lib/rbi/type_visitor.rb#9 +# source://rbi//lib/rbi/type_visitor.rb#7 class RBI::Type::Visitor::Error < ::RBI::Error; end # `void`. # # source://rbi//lib/rbi/type.rb#133 class RBI::Type::Void < ::RBI::Type - # source://rbi//lib/rbi/type.rb#137 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#136 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#142 sig { override.returns(::String) } def to_rbi; end end -# source://rbi//lib/rbi/model.rb#1403 +# source://rbi//lib/rbi/model.rb#1060 class RBI::TypeMember < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1418 + # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TypeMember node) -> void } -> void + # + # @return [TypeMember] a new instance of TypeMember + # + # source://rbi//lib/rbi/model.rb#1065 sig do params( name: ::String, @@ -4161,143 +6031,212 @@ class RBI::TypeMember < ::RBI::NodeWithComments end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1426 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1073 sig { returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/index.rb#183 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#179 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1407 + # : String + # + # source://rbi//lib/rbi/model.rb#1062 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#1433 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1081 sig { override.returns(::String) } def to_s; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#1407 + # source://rbi//lib/rbi/model.rb#1062 + # @return [String] def value; end end -# source://rbi//lib/rbi/rbs_printer.rb#809 +# source://rbi//lib/rbi/rbs_printer.rb#879 class RBI::TypePrinter - # source://rbi//lib/rbi/rbs_printer.rb#816 + # : -> void + # + # @return [TypePrinter] a new instance of TypePrinter + # + # source://rbi//lib/rbi/rbs_printer.rb#884 sig { void } def initialize; end - # source://rbi//lib/rbi/rbs_printer.rb#813 + # : String + # + # source://rbi//lib/rbi/rbs_printer.rb#881 sig { returns(::String) } def string; end - # source://rbi//lib/rbi/rbs_printer.rb#821 + # : (Type node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#889 sig { params(node: ::RBI::Type).void } def visit(node); end - # source://rbi//lib/rbi/rbs_printer.rb#936 + # : (Type::All type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1004 sig { params(type: ::RBI::Type::All).void } def visit_all(type); end - # source://rbi//lib/rbi/rbs_printer.rb#946 + # : (Type::Any type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1014 sig { params(type: ::RBI::Type::Any).void } def visit_any(type); end - # source://rbi//lib/rbi/rbs_printer.rb#886 + # : (Type::Anything type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#954 sig { params(type: ::RBI::Type::Anything).void } def visit_anything(type); end - # source://rbi//lib/rbi/rbs_printer.rb#911 + # : (Type::AttachedClass type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#979 sig { params(type: ::RBI::Type::AttachedClass).void } def visit_attached_class(type); end - # source://rbi//lib/rbi/rbs_printer.rb#870 + # : (Type::Boolean type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#938 sig { params(type: ::RBI::Type::Boolean).void } def visit_boolean(type); end - # source://rbi//lib/rbi/rbs_printer.rb#1013 + # : (Type::Class type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1081 sig { params(type: ::RBI::Type::Class).void } def visit_class(type); end - # source://rbi//lib/rbi/rbs_printer.rb#929 + # : (Type::ClassOf type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#997 sig { params(type: ::RBI::Type::ClassOf).void } def visit_class_of(type); end - # source://rbi//lib/rbi/rbs_printer.rb#875 + # : (Type::Generic type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#943 sig { params(type: ::RBI::Type::Generic).void } def visit_generic(type); end - # source://rbi//lib/rbi/rbs_printer.rb#916 + # : (Type::Nilable type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#984 sig { params(type: ::RBI::Type::Nilable).void } def visit_nilable(type); end - # source://rbi//lib/rbi/rbs_printer.rb#896 + # : (Type::NoReturn type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#964 sig { params(type: ::RBI::Type::NoReturn).void } def visit_no_return(type); end - # source://rbi//lib/rbi/rbs_printer.rb#986 + # : (Type::Proc type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1054 sig { params(type: ::RBI::Type::Proc).void } def visit_proc(type); end - # source://rbi//lib/rbi/rbs_printer.rb#906 + # : (Type::SelfType type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#974 sig { params(type: ::RBI::Type::SelfType).void } def visit_self_type(type); end - # source://rbi//lib/rbi/rbs_printer.rb#966 + # : (Type::Shape type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1034 sig { params(type: ::RBI::Type::Shape).void } def visit_shape(type); end - # source://rbi//lib/rbi/rbs_printer.rb#865 + # : (Type::Simple type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#933 sig { params(type: ::RBI::Type::Simple).void } def visit_simple(type); end - # source://rbi//lib/rbi/rbs_printer.rb#956 + # : (Type::Tuple type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1024 sig { params(type: ::RBI::Type::Tuple).void } def visit_tuple(type); end - # source://rbi//lib/rbi/rbs_printer.rb#1008 + # : (Type::TypeParameter type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1076 sig { params(type: ::RBI::Type::TypeParameter).void } def visit_type_parameter(type); end - # source://rbi//lib/rbi/rbs_printer.rb#901 + # : (Type::Untyped type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#969 sig { params(type: ::RBI::Type::Untyped).void } def visit_untyped(type); end - # source://rbi//lib/rbi/rbs_printer.rb#891 + # : (Type::Void type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#959 sig { params(type: ::RBI::Type::Void).void } def visit_void(type); end private - # source://rbi//lib/rbi/rbs_printer.rb#1022 + # : (String type_name) -> String + # + # source://rbi//lib/rbi/rbs_printer.rb#1090 sig { params(type_name: ::String).returns(::String) } def translate_t_type(type_name); end end # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#5 class RBI::UnexpectedMultipleSigsError < ::RBI::Error + # : (Node node) -> void + # + # @return [UnexpectedMultipleSigsError] a new instance of UnexpectedMultipleSigsError + # # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#10 sig { params(node: ::RBI::Node).void } def initialize(node); end + # : Node + # # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#7 sig { returns(::RBI::Node) } def node; end end -# source://rbi//lib/rbi/parser.rb#20 +# source://rbi//lib/rbi/parser.rb#18 class RBI::UnexpectedParserError < ::RBI::Error - # source://rbi//lib/rbi/parser.rb#27 + # : (Exception parent_exception, Loc last_location) -> void + # + # @return [UnexpectedParserError] a new instance of UnexpectedParserError + # + # source://rbi//lib/rbi/parser.rb#23 sig { params(parent_exception: ::Exception, last_location: ::RBI::Loc).void } def initialize(parent_exception, last_location); end - # source://rbi//lib/rbi/parser.rb#24 + # : Loc + # + # source://rbi//lib/rbi/parser.rb#20 sig { returns(::RBI::Loc) } def last_location; end - # source://rbi//lib/rbi/parser.rb#34 + # : (?io: (IO | StringIO)) -> void + # + # source://rbi//lib/rbi/parser.rb#30 sig { params(io: T.any(::IO, ::StringIO)).void } def print_debug(io: T.unsafe(nil)); end end @@ -4309,42 +6248,68 @@ RBI::VERSION = T.let(T.unsafe(nil), String) # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#916 +# source://rbi//lib/rbi/model.rb#708 class RBI::Visibility < ::RBI::NodeWithComments abstract! - # source://rbi//lib/rbi/model.rb#926 + # : (Symbol visibility, ?loc: Loc?, ?comments: Array[Comment]) -> void + # + # @return [Visibility] a new instance of Visibility + # + # source://rbi//lib/rbi/model.rb#717 sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(visibility, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#932 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#723 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#949 + # : -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#740 sig { returns(T::Boolean) } def private?; end - # source://rbi//lib/rbi/model.rb#944 + # : -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#735 sig { returns(T::Boolean) } def protected?; end - # source://rbi//lib/rbi/model.rb#939 + # : -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#730 sig { returns(T::Boolean) } def public?; end - # source://rbi//lib/rbi/model.rb#923 + # : Symbol + # + # source://rbi//lib/rbi/model.rb#714 sig { returns(::Symbol) } def visibility; end end -# source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#52 +# source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#49 class RBI::VisibilityGroup < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#59 + # : (Visibility visibility) -> void + # + # @return [VisibilityGroup] a new instance of VisibilityGroup + # + # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#54 sig { params(visibility: ::RBI::Visibility).void } def initialize(visibility); end - # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#56 + # : Visibility + # + # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#51 sig { returns(::RBI::Visibility) } def visibility; end end @@ -4355,185 +6320,281 @@ end class RBI::Visitor abstract! - # source://rbi//lib/rbi/visitor.rb#14 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/visitor.rb#13 sig { params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # source://rbi//lib/rbi/visitor.rb#108 + # : (Array[Node] nodes) -> void + # + # source://rbi//lib/rbi/visitor.rb#109 sig { params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end - # source://rbi//lib/rbi/visitor.rb#113 + # : (File file) -> void + # + # source://rbi//lib/rbi/visitor.rb#114 sig { params(file: ::RBI::File).void } def visit_file(file); end private - # source://rbi//lib/rbi/visitor.rb#195 + # : (Arg node) -> void + # + # source://rbi//lib/rbi/visitor.rb#199 sig { params(node: ::RBI::Arg).void } def visit_arg(node); end - # source://rbi//lib/rbi/visitor.rb#144 + # : (AttrAccessor node) -> void + # + # source://rbi//lib/rbi/visitor.rb#148 sig { params(node: ::RBI::AttrAccessor).void } def visit_attr_accessor(node); end - # source://rbi//lib/rbi/visitor.rb#147 + # : (AttrReader node) -> void + # + # source://rbi//lib/rbi/visitor.rb#151 sig { params(node: ::RBI::AttrReader).void } def visit_attr_reader(node); end - # source://rbi//lib/rbi/visitor.rb#150 + # : (AttrWriter node) -> void + # + # source://rbi//lib/rbi/visitor.rb#154 sig { params(node: ::RBI::AttrWriter).void } def visit_attr_writer(node); end - # source://rbi//lib/rbi/visitor.rb#123 + # : (BlankLine node) -> void + # + # source://rbi//lib/rbi/visitor.rb#127 sig { params(node: ::RBI::BlankLine).void } def visit_blank_line(node); end - # source://rbi//lib/rbi/visitor.rb#174 + # : (BlockParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#178 sig { params(node: ::RBI::BlockParam).void } def visit_block_param(node); end - # source://rbi//lib/rbi/visitor.rb#129 + # : (Class node) -> void + # + # source://rbi//lib/rbi/visitor.rb#133 sig { params(node: ::RBI::Class).void } def visit_class(node); end - # source://rbi//lib/rbi/visitor.rb#120 + # : (Comment node) -> void + # + # source://rbi//lib/rbi/visitor.rb#121 sig { params(node: ::RBI::Comment).void } def visit_comment(node); end - # source://rbi//lib/rbi/visitor.rb#240 + # : (ConflictTree node) -> void + # + # source://rbi//lib/rbi/visitor.rb#244 sig { params(node: ::RBI::ConflictTree).void } def visit_conflict_tree(node); end - # source://rbi//lib/rbi/visitor.rb#141 + # : (Const node) -> void + # + # source://rbi//lib/rbi/visitor.rb#145 sig { params(node: ::RBI::Const).void } def visit_const(node); end - # source://rbi//lib/rbi/visitor.rb#180 + # : (Extend node) -> void + # + # source://rbi//lib/rbi/visitor.rb#184 sig { params(node: ::RBI::Extend).void } def visit_extend(node); end - # source://rbi//lib/rbi/visitor.rb#234 + # : (Group node) -> void + # + # source://rbi//lib/rbi/visitor.rb#238 sig { params(node: ::RBI::Group).void } def visit_group(node); end - # source://rbi//lib/rbi/visitor.rb#222 + # : (Helper node) -> void + # + # source://rbi//lib/rbi/visitor.rb#226 sig { params(node: ::RBI::Helper).void } def visit_helper(node); end - # source://rbi//lib/rbi/visitor.rb#177 + # : (Include node) -> void + # + # source://rbi//lib/rbi/visitor.rb#181 sig { params(node: ::RBI::Include).void } def visit_include(node); end - # source://rbi//lib/rbi/visitor.rb#198 + # : (KwArg node) -> void + # + # source://rbi//lib/rbi/visitor.rb#202 sig { params(node: ::RBI::KwArg).void } def visit_kw_arg(node); end - # source://rbi//lib/rbi/visitor.rb#168 + # : (KwOptParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#172 sig { params(node: ::RBI::KwOptParam).void } def visit_kw_opt_param(node); end - # source://rbi//lib/rbi/visitor.rb#165 + # : (KwParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#169 sig { params(node: ::RBI::KwParam).void } def visit_kw_param(node); end - # source://rbi//lib/rbi/visitor.rb#171 + # : (KwRestParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#175 sig { params(node: ::RBI::KwRestParam).void } def visit_kw_rest_param(node); end - # source://rbi//lib/rbi/visitor.rb#153 + # : (Method node) -> void + # + # source://rbi//lib/rbi/visitor.rb#157 sig { params(node: ::RBI::Method).void } def visit_method(node); end - # source://rbi//lib/rbi/visitor.rb#228 + # : (MixesInClassMethods node) -> void + # + # source://rbi//lib/rbi/visitor.rb#232 sig { params(node: ::RBI::MixesInClassMethods).void } def visit_mixes_in_class_methods(node); end - # source://rbi//lib/rbi/visitor.rb#126 + # : (Module node) -> void + # + # source://rbi//lib/rbi/visitor.rb#130 sig { params(node: ::RBI::Module).void } def visit_module(node); end - # source://rbi//lib/rbi/visitor.rb#159 + # : (OptParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#163 sig { params(node: ::RBI::OptParam).void } def visit_opt_param(node); end - # source://rbi//lib/rbi/visitor.rb#189 + # : (Private node) -> void + # + # source://rbi//lib/rbi/visitor.rb#193 sig { params(node: ::RBI::Private).void } def visit_private(node); end - # source://rbi//lib/rbi/visitor.rb#186 + # : (Protected node) -> void + # + # source://rbi//lib/rbi/visitor.rb#190 sig { params(node: ::RBI::Protected).void } def visit_protected(node); end - # source://rbi//lib/rbi/visitor.rb#183 + # : (Public node) -> void + # + # source://rbi//lib/rbi/visitor.rb#187 sig { params(node: ::RBI::Public).void } def visit_public(node); end - # source://rbi//lib/rbi/visitor.rb#156 + # : (RBSComment node) -> void + # + # source://rbi//lib/rbi/visitor.rb#124 + sig { params(node: ::RBI::RBSComment).void } + def visit_rbs_comment(node); end + + # : (ReqParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#160 sig { params(node: ::RBI::ReqParam).void } def visit_req_param(node); end - # source://rbi//lib/rbi/visitor.rb#231 + # : (RequiresAncestor node) -> void + # + # source://rbi//lib/rbi/visitor.rb#235 sig { params(node: ::RBI::RequiresAncestor).void } def visit_requires_ancestor(node); end - # source://rbi//lib/rbi/visitor.rb#162 + # : (RestParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#166 sig { params(node: ::RBI::RestParam).void } def visit_rest_param(node); end - # source://rbi//lib/rbi/visitor.rb#243 + # : (ScopeConflict node) -> void + # + # source://rbi//lib/rbi/visitor.rb#247 sig { params(node: ::RBI::ScopeConflict).void } def visit_scope_conflict(node); end - # source://rbi//lib/rbi/visitor.rb#192 + # : (Send node) -> void + # + # source://rbi//lib/rbi/visitor.rb#196 sig { params(node: ::RBI::Send).void } def visit_send(node); end - # source://rbi//lib/rbi/visitor.rb#201 + # : (Sig node) -> void + # + # source://rbi//lib/rbi/visitor.rb#205 sig { params(node: ::RBI::Sig).void } def visit_sig(node); end - # source://rbi//lib/rbi/visitor.rb#204 + # : (SigParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#208 sig { params(node: ::RBI::SigParam).void } def visit_sig_param(node); end - # source://rbi//lib/rbi/visitor.rb#132 + # : (SingletonClass node) -> void + # + # source://rbi//lib/rbi/visitor.rb#136 sig { params(node: ::RBI::SingletonClass).void } def visit_singleton_class(node); end - # source://rbi//lib/rbi/visitor.rb#135 + # : (Struct node) -> void + # + # source://rbi//lib/rbi/visitor.rb#139 sig { params(node: ::RBI::Struct).void } def visit_struct(node); end - # source://rbi//lib/rbi/visitor.rb#216 + # : (TEnum node) -> void + # + # source://rbi//lib/rbi/visitor.rb#220 sig { params(node: ::RBI::TEnum).void } def visit_tenum(node); end - # source://rbi//lib/rbi/visitor.rb#219 + # : (TEnumBlock node) -> void + # + # source://rbi//lib/rbi/visitor.rb#223 sig { params(node: ::RBI::TEnumBlock).void } def visit_tenum_block(node); end - # source://rbi//lib/rbi/visitor.rb#138 + # : (Tree node) -> void + # + # source://rbi//lib/rbi/visitor.rb#142 sig { params(node: ::RBI::Tree).void } def visit_tree(node); end - # source://rbi//lib/rbi/visitor.rb#207 + # : (TStruct node) -> void + # + # source://rbi//lib/rbi/visitor.rb#211 sig { params(node: ::RBI::TStruct).void } def visit_tstruct(node); end - # source://rbi//lib/rbi/visitor.rb#210 + # : (TStructConst node) -> void + # + # source://rbi//lib/rbi/visitor.rb#214 sig { params(node: ::RBI::TStructConst).void } def visit_tstruct_const(node); end - # source://rbi//lib/rbi/visitor.rb#213 + # : (TStructProp node) -> void + # + # source://rbi//lib/rbi/visitor.rb#217 sig { params(node: ::RBI::TStructProp).void } def visit_tstruct_prop(node); end - # source://rbi//lib/rbi/visitor.rb#225 + # : (TypeMember node) -> void + # + # source://rbi//lib/rbi/visitor.rb#229 sig { params(node: ::RBI::TypeMember).void } def visit_type_member(node); end - # source://rbi//lib/rbi/visitor.rb#237 + # : (VisibilityGroup node) -> void + # + # source://rbi//lib/rbi/visitor.rb#241 sig { params(node: ::RBI::VisibilityGroup).void } def visit_visibility_group(node); end end diff --git a/sorbet/rbi/gems/rbs@3.8.1.rbi b/sorbet/rbi/gems/rbs@3.8.1.rbi new file mode 100644 index 00000000..d8f59a86 --- /dev/null +++ b/sorbet/rbi/gems/rbs@3.8.1.rbi @@ -0,0 +1,6882 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rbs` gem. +# Please instead update this file by running `bin/tapioca gem rbs`. + + +# source://rbs//lib/rbs/namespace.rb#120 +module Kernel + # source://rbs//lib/rbs/namespace.rb#121 + def Namespace(name); end + + # source://rbs//lib/rbs/type_name.rb#105 + def TypeName(string); end +end + +# source://rbs//lib/rbs/version.rb#3 +module RBS + class << self + # source://rbs//lib/rbs.rb#68 + def logger; end + + # Returns the value of attribute logger_level. + # + # source://rbs//lib/rbs.rb#65 + def logger_level; end + + # source://rbs//lib/rbs.rb#77 + def logger_level=(level); end + + # Returns the value of attribute logger_output. + # + # source://rbs//lib/rbs.rb#66 + def logger_output; end + + # source://rbs//lib/rbs.rb#72 + def logger_output=(val); end + + # source://rbs//lib/rbs.rb#82 + def print_warning; end + end +end + +# source://rbs//lib/rbs/ast/type_param.rb#4 +module RBS::AST; end + +# source://rbs//lib/rbs/ast/annotation.rb#5 +class RBS::AST::Annotation + # @return [Annotation] a new instance of Annotation + # + # source://rbs//lib/rbs/ast/annotation.rb#9 + def initialize(string:, location:); end + + # source://rbs//lib/rbs/ast/annotation.rb#14 + def ==(other); end + + # source://rbs//lib/rbs/ast/annotation.rb#14 + def eql?(other); end + + # source://rbs//lib/rbs/ast/annotation.rb#20 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/annotation.rb#7 + def location; end + + # Returns the value of attribute string. + # + # source://rbs//lib/rbs/ast/annotation.rb#6 + def string; end + + # source://rbs//lib/rbs/ast/annotation.rb#24 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/comment.rb#5 +class RBS::AST::Comment + # @return [Comment] a new instance of Comment + # + # source://rbs//lib/rbs/ast/comment.rb#9 + def initialize(string:, location:); end + + # source://rbs//lib/rbs/ast/comment.rb#14 + def ==(other); end + + # source://rbs//lib/rbs/ast/comment.rb#14 + def eql?(other); end + + # source://rbs//lib/rbs/ast/comment.rb#20 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/comment.rb#7 + def location; end + + # Returns the value of attribute string. + # + # source://rbs//lib/rbs/ast/comment.rb#6 + def string; end + + # source://rbs//lib/rbs/ast/comment.rb#24 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#5 +module RBS::AST::Declarations; end + +# source://rbs//lib/rbs/ast/declarations.rb#419 +class RBS::AST::Declarations::AliasDecl < ::RBS::AST::Declarations::Base + # @return [AliasDecl] a new instance of AliasDecl + # + # source://rbs//lib/rbs/ast/declarations.rb#422 + def initialize(new_name:, old_name:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#429 + def ==(other); end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#420 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#429 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#437 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#420 + def location; end + + # Returns the value of attribute new_name. + # + # source://rbs//lib/rbs/ast/declarations.rb#420 + def new_name; end + + # Returns the value of attribute old_name. + # + # source://rbs//lib/rbs/ast/declarations.rb#420 + def old_name; end +end + +# source://rbs//lib/rbs/ast/declarations.rb#6 +class RBS::AST::Declarations::Base; end + +# source://rbs//lib/rbs/ast/declarations.rb#55 +class RBS::AST::Declarations::Class < ::RBS::AST::Declarations::Base + include ::RBS::AST::Declarations::NestedDeclarationHelper + include ::RBS::AST::Declarations::MixinHelper + + # @return [Class] a new instance of Class + # + # source://rbs//lib/rbs/ast/declarations.rb#97 + def initialize(name:, type_params:, super_class:, members:, annotations:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#119 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/declarations.rb#93 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#95 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#119 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#129 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#94 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/ast/declarations.rb#91 + def members; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#89 + def name; end + + # Returns the value of attribute super_class. + # + # source://rbs//lib/rbs/ast/declarations.rb#92 + def super_class; end + + # source://rbs//lib/rbs/ast/declarations.rb#133 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type_params. + # + # source://rbs//lib/rbs/ast/declarations.rb#90 + def type_params; end + + # source://rbs//lib/rbs/ast/declarations.rb#107 + def update(name: T.unsafe(nil), type_params: T.unsafe(nil), super_class: T.unsafe(nil), members: T.unsafe(nil), annotations: T.unsafe(nil), location: T.unsafe(nil), comment: T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#56 +class RBS::AST::Declarations::Class::Super + # @return [Super] a new instance of Super + # + # source://rbs//lib/rbs/ast/declarations.rb#61 + def initialize(name:, args:, location:); end + + # source://rbs//lib/rbs/ast/declarations.rb#67 + def ==(other); end + + # Returns the value of attribute args. + # + # source://rbs//lib/rbs/ast/declarations.rb#58 + def args; end + + # source://rbs//lib/rbs/ast/declarations.rb#67 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#73 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#59 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#57 + def name; end + + # source://rbs//lib/rbs/ast/declarations.rb#77 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#442 +class RBS::AST::Declarations::ClassAlias < ::RBS::AST::Declarations::AliasDecl + # source://rbs//lib/rbs/ast/declarations.rb#443 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#347 +class RBS::AST::Declarations::Constant < ::RBS::AST::Declarations::Base + # @return [Constant] a new instance of Constant + # + # source://rbs//lib/rbs/ast/declarations.rb#353 + def initialize(name:, type:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#360 + def ==(other); end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#351 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#360 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#368 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#350 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#348 + def name; end + + # source://rbs//lib/rbs/ast/declarations.rb#372 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/ast/declarations.rb#349 + def type; end +end + +# source://rbs//lib/rbs/ast/declarations.rb#383 +class RBS::AST::Declarations::Global < ::RBS::AST::Declarations::Base + # @return [Global] a new instance of Global + # + # source://rbs//lib/rbs/ast/declarations.rb#389 + def initialize(name:, type:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#396 + def ==(other); end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#387 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#396 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#404 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#386 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#384 + def name; end + + # source://rbs//lib/rbs/ast/declarations.rb#408 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/ast/declarations.rb#385 + def type; end +end + +# source://rbs//lib/rbs/ast/declarations.rb#248 +class RBS::AST::Declarations::Interface < ::RBS::AST::Declarations::Base + include ::RBS::AST::Declarations::MixinHelper + + # @return [Interface] a new instance of Interface + # + # source://rbs//lib/rbs/ast/declarations.rb#258 + def initialize(name:, type_params:, members:, annotations:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#278 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/declarations.rb#252 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#254 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#278 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#287 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#253 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/ast/declarations.rb#251 + def members; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#249 + def name; end + + # source://rbs//lib/rbs/ast/declarations.rb#291 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type_params. + # + # source://rbs//lib/rbs/ast/declarations.rb#250 + def type_params; end + + # source://rbs//lib/rbs/ast/declarations.rb#267 + def update(name: T.unsafe(nil), type_params: T.unsafe(nil), members: T.unsafe(nil), annotations: T.unsafe(nil), location: T.unsafe(nil), comment: T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#35 +module RBS::AST::Declarations::MixinHelper + # source://rbs//lib/rbs/ast/declarations.rb#36 + def each_mixin(&block); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#147 +class RBS::AST::Declarations::Module < ::RBS::AST::Declarations::Base + include ::RBS::AST::Declarations::NestedDeclarationHelper + include ::RBS::AST::Declarations::MixinHelper + + # @return [Module] a new instance of Module + # + # source://rbs//lib/rbs/ast/declarations.rb#197 + def initialize(name:, type_params:, members:, self_types:, annotations:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#220 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/declarations.rb#193 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#195 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#220 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#230 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#192 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/ast/declarations.rb#191 + def members; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#189 + def name; end + + # Returns the value of attribute self_types. + # + # source://rbs//lib/rbs/ast/declarations.rb#194 + def self_types; end + + # source://rbs//lib/rbs/ast/declarations.rb#234 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type_params. + # + # source://rbs//lib/rbs/ast/declarations.rb#190 + def type_params; end + + # source://rbs//lib/rbs/ast/declarations.rb#207 + def update(name: T.unsafe(nil), type_params: T.unsafe(nil), members: T.unsafe(nil), self_types: T.unsafe(nil), annotations: T.unsafe(nil), location: T.unsafe(nil), comment: T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#148 +class RBS::AST::Declarations::Module::Self + # @return [Self] a new instance of Self + # + # source://rbs//lib/rbs/ast/declarations.rb#153 + def initialize(name:, args:, location:); end + + # source://rbs//lib/rbs/ast/declarations.rb#159 + def ==(other); end + + # Returns the value of attribute args. + # + # source://rbs//lib/rbs/ast/declarations.rb#150 + def args; end + + # source://rbs//lib/rbs/ast/declarations.rb#159 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#165 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#151 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#149 + def name; end + + # source://rbs//lib/rbs/ast/declarations.rb#169 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/ast/declarations.rb#177 + def to_s; end +end + +# source://rbs//lib/rbs/ast/declarations.rb#454 +class RBS::AST::Declarations::ModuleAlias < ::RBS::AST::Declarations::AliasDecl + # source://rbs//lib/rbs/ast/declarations.rb#455 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#9 +module RBS::AST::Declarations::NestedDeclarationHelper + # source://rbs//lib/rbs/ast/declarations.rb#22 + def each_decl; end + + # source://rbs//lib/rbs/ast/declarations.rb#10 + def each_member; end +end + +# source://rbs//lib/rbs/ast/declarations.rb#304 +class RBS::AST::Declarations::TypeAlias < ::RBS::AST::Declarations::Base + # @return [TypeAlias] a new instance of TypeAlias + # + # source://rbs//lib/rbs/ast/declarations.rb#312 + def initialize(name:, type_params:, type:, annotations:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#321 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/declarations.rb#308 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#310 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#321 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#330 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#309 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#305 + def name; end + + # source://rbs//lib/rbs/ast/declarations.rb#334 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/ast/declarations.rb#307 + def type; end + + # Returns the value of attribute type_params. + # + # source://rbs//lib/rbs/ast/declarations.rb#306 + def type_params; end +end + +# source://rbs//lib/rbs/ast/directives.rb#5 +module RBS::AST::Directives; end + +# source://rbs//lib/rbs/ast/directives.rb#6 +class RBS::AST::Directives::Base; end + +# source://rbs//lib/rbs/ast/directives.rb#9 +class RBS::AST::Directives::Use < ::RBS::AST::Directives::Base + # @return [Use] a new instance of Use + # + # source://rbs//lib/rbs/ast/directives.rb#31 + def initialize(clauses:, location:); end + + # Returns the value of attribute clauses. + # + # source://rbs//lib/rbs/ast/directives.rb#29 + def clauses; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/directives.rb#29 + def location; end +end + +# source://rbs//lib/rbs/ast/directives.rb#10 +class RBS::AST::Directives::Use::SingleClause + # @return [SingleClause] a new instance of SingleClause + # + # source://rbs//lib/rbs/ast/directives.rb#13 + def initialize(type_name:, new_name:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/directives.rb#11 + def location; end + + # Returns the value of attribute new_name. + # + # source://rbs//lib/rbs/ast/directives.rb#11 + def new_name; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/ast/directives.rb#11 + def type_name; end +end + +# source://rbs//lib/rbs/ast/directives.rb#20 +class RBS::AST::Directives::Use::WildcardClause + # @return [WildcardClause] a new instance of WildcardClause + # + # source://rbs//lib/rbs/ast/directives.rb#23 + def initialize(namespace:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/directives.rb#21 + def location; end + + # Returns the value of attribute namespace. + # + # source://rbs//lib/rbs/ast/directives.rb#21 + def namespace; end +end + +# source://rbs//lib/rbs/ast/members.rb#5 +module RBS::AST::Members; end + +# source://rbs//lib/rbs/ast/members.rb#397 +class RBS::AST::Members::Alias < ::RBS::AST::Members::Base + # @return [Alias] a new instance of Alias + # + # source://rbs//lib/rbs/ast/members.rb#405 + def initialize(new_name:, old_name:, kind:, annotations:, location:, comment:); end + + # source://rbs//lib/rbs/ast/members.rb#414 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/members.rb#401 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/members.rb#403 + def comment; end + + # source://rbs//lib/rbs/ast/members.rb#414 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#423 + def hash; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/members.rb#439 + def instance?; end + + # Returns the value of attribute kind. + # + # source://rbs//lib/rbs/ast/members.rb#400 + def kind; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/members.rb#402 + def location; end + + # Returns the value of attribute new_name. + # + # source://rbs//lib/rbs/ast/members.rb#398 + def new_name; end + + # Returns the value of attribute old_name. + # + # source://rbs//lib/rbs/ast/members.rb#399 + def old_name; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/members.rb#443 + def singleton?; end + + # source://rbs//lib/rbs/ast/members.rb#427 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#327 +class RBS::AST::Members::AttrAccessor < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Attribute + + # source://rbs//lib/rbs/ast/members.rb#330 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#309 +class RBS::AST::Members::AttrReader < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Attribute + + # source://rbs//lib/rbs/ast/members.rb#312 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#345 +class RBS::AST::Members::AttrWriter < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Attribute + + # source://rbs//lib/rbs/ast/members.rb#348 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#258 +module RBS::AST::Members::Attribute + # source://rbs//lib/rbs/ast/members.rb#268 + def initialize(name:, type:, ivar_name:, kind:, annotations:, location:, comment:, visibility: T.unsafe(nil)); end + + # source://rbs//lib/rbs/ast/members.rb#279 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/members.rb#263 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/members.rb#265 + def comment; end + + # source://rbs//lib/rbs/ast/members.rb#279 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#290 + def hash; end + + # Returns the value of attribute ivar_name. + # + # source://rbs//lib/rbs/ast/members.rb#262 + def ivar_name; end + + # Returns the value of attribute kind. + # + # source://rbs//lib/rbs/ast/members.rb#261 + def kind; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/members.rb#264 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/members.rb#259 + def name; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/ast/members.rb#260 + def type; end + + # source://rbs//lib/rbs/ast/members.rb#294 + def update(name: T.unsafe(nil), type: T.unsafe(nil), ivar_name: T.unsafe(nil), kind: T.unsafe(nil), annotations: T.unsafe(nil), location: T.unsafe(nil), comment: T.unsafe(nil), visibility: T.unsafe(nil)); end + + # Returns the value of attribute visibility. + # + # source://rbs//lib/rbs/ast/members.rb#266 + def visibility; end +end + +# source://rbs//lib/rbs/ast/members.rb#6 +class RBS::AST::Members::Base; end + +# source://rbs//lib/rbs/ast/members.rb#157 +class RBS::AST::Members::ClassInstanceVariable < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Var + + # source://rbs//lib/rbs/ast/members.rb#160 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#171 +class RBS::AST::Members::ClassVariable < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Var + + # source://rbs//lib/rbs/ast/members.rb#174 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#228 +class RBS::AST::Members::Extend < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Mixin + + # source://rbs//lib/rbs/ast/members.rb#231 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#213 +class RBS::AST::Members::Include < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Mixin + + # source://rbs//lib/rbs/ast/members.rb#216 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#143 +class RBS::AST::Members::InstanceVariable < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Var + + # source://rbs//lib/rbs/ast/members.rb#146 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#363 +module RBS::AST::Members::LocationOnly + # source://rbs//lib/rbs/ast/members.rb#366 + def initialize(location:); end + + # source://rbs//lib/rbs/ast/members.rb#370 + def ==(other); end + + # source://rbs//lib/rbs/ast/members.rb#370 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#376 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/members.rb#364 + def location; end +end + +# source://rbs//lib/rbs/ast/members.rb#9 +class RBS::AST::Members::MethodDefinition < ::RBS::AST::Members::Base + # @return [MethodDefinition] a new instance of MethodDefinition + # + # source://rbs//lib/rbs/ast/members.rb#53 + def initialize(name:, kind:, overloads:, annotations:, location:, comment:, overloading:, visibility:); end + + # source://rbs//lib/rbs/ast/members.rb#64 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/members.rb#47 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/members.rb#49 + def comment; end + + # source://rbs//lib/rbs/ast/members.rb#64 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#75 + def hash; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/members.rb#79 + def instance?; end + + # Returns the value of attribute kind. + # + # source://rbs//lib/rbs/ast/members.rb#45 + def kind; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/members.rb#48 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/members.rb#44 + def name; end + + # Returns the value of attribute overloading. + # + # source://rbs//lib/rbs/ast/members.rb#50 + def overloading; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/members.rb#87 + def overloading?; end + + # Returns the value of attribute overloads. + # + # source://rbs//lib/rbs/ast/members.rb#46 + def overloads; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/members.rb#83 + def singleton?; end + + # source://rbs//lib/rbs/ast/members.rb#104 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/ast/members.rb#91 + def update(name: T.unsafe(nil), kind: T.unsafe(nil), overloads: T.unsafe(nil), annotations: T.unsafe(nil), location: T.unsafe(nil), comment: T.unsafe(nil), overloading: T.unsafe(nil), visibility: T.unsafe(nil)); end + + # Returns the value of attribute visibility. + # + # source://rbs//lib/rbs/ast/members.rb#51 + def visibility; end +end + +# source://rbs//lib/rbs/ast/members.rb#10 +class RBS::AST::Members::MethodDefinition::Overload + # @return [Overload] a new instance of Overload + # + # source://rbs//lib/rbs/ast/members.rb#13 + def initialize(method_type:, annotations:); end + + # source://rbs//lib/rbs/ast/members.rb#18 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/members.rb#11 + def annotations; end + + # source://rbs//lib/rbs/ast/members.rb#18 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#22 + def hash; end + + # Returns the value of attribute method_type. + # + # source://rbs//lib/rbs/ast/members.rb#11 + def method_type; end + + # source://rbs//lib/rbs/ast/members.rb#32 + def sub(subst); end + + # source://rbs//lib/rbs/ast/members.rb#36 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/ast/members.rb#28 + def update(annotations: T.unsafe(nil), method_type: T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#185 +module RBS::AST::Members::Mixin + # source://rbs//lib/rbs/ast/members.rb#192 + def initialize(name:, args:, annotations:, location:, comment:); end + + # source://rbs//lib/rbs/ast/members.rb#200 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/members.rb#188 + def annotations; end + + # Returns the value of attribute args. + # + # source://rbs//lib/rbs/ast/members.rb#187 + def args; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/members.rb#190 + def comment; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/members.rb#204 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#208 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/members.rb#189 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/members.rb#186 + def name; end +end + +# source://rbs//lib/rbs/ast/members.rb#243 +class RBS::AST::Members::Prepend < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Mixin + + # source://rbs//lib/rbs/ast/members.rb#246 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#389 +class RBS::AST::Members::Private < ::RBS::AST::Members::Base + include ::RBS::AST::Members::LocationOnly + + # source://rbs//lib/rbs/ast/members.rb#392 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#381 +class RBS::AST::Members::Public < ::RBS::AST::Members::Base + include ::RBS::AST::Members::LocationOnly + + # source://rbs//lib/rbs/ast/members.rb#384 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#119 +module RBS::AST::Members::Var + # source://rbs//lib/rbs/ast/members.rb#125 + def initialize(name:, type:, location:, comment:); end + + # source://rbs//lib/rbs/ast/members.rb#132 + def ==(other); end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/members.rb#123 + def comment; end + + # source://rbs//lib/rbs/ast/members.rb#132 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#138 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/members.rb#122 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/members.rb#120 + def name; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/ast/members.rb#121 + def type; end +end + +# source://rbs//lib/rbs/ast/type_param.rb#5 +class RBS::AST::TypeParam + # @return [TypeParam] a new instance of TypeParam + # + # source://rbs//lib/rbs/ast/type_param.rb#8 + def initialize(name:, variance:, upper_bound:, location:, default_type: T.unsafe(nil)); end + + # source://rbs//lib/rbs/ast/type_param.rb#33 + def ==(other); end + + # Returns the value of attribute default_type. + # + # source://rbs//lib/rbs/ast/type_param.rb#6 + def default_type; end + + # source://rbs//lib/rbs/ast/type_param.rb#33 + def eql?(other); end + + # source://rbs//lib/rbs/ast/type_param.rb#44 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/type_param.rb#6 + def location; end + + # source://rbs//lib/rbs/ast/type_param.rb#69 + def map_type(&block); end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/type_param.rb#6 + def name; end + + # source://rbs//lib/rbs/ast/type_param.rb#59 + def rename(name); end + + # source://rbs//lib/rbs/ast/type_param.rb#48 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/ast/type_param.rb#127 + def to_s; end + + # source://rbs//lib/rbs/ast/type_param.rb#24 + def unchecked!(value = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/type_param.rb#29 + def unchecked?; end + + # source://rbs//lib/rbs/ast/type_param.rb#17 + def upper_bound; end + + # Returns the value of attribute upper_bound_type. + # + # source://rbs//lib/rbs/ast/type_param.rb#6 + def upper_bound_type; end + + # Returns the value of attribute variance. + # + # source://rbs//lib/rbs/ast/type_param.rb#6 + def variance; end + + class << self + # source://rbs//lib/rbs/ast/type_param.rb#156 + def application(params, args); end + + # source://rbs//lib/rbs/ast/type_param.rb#188 + def normalize_args(params, args); end + + # source://rbs//lib/rbs/ast/type_param.rb#109 + def rename(params, new_names:); end + + # source://rbs//lib/rbs/ast/type_param.rb#87 + def resolve_variables(params); end + + # source://rbs//lib/rbs/ast/type_param.rb#97 + def subst_var(vars, type); end + + # source://rbs//lib/rbs/ast/type_param.rb#209 + def validate(type_params); end + end +end + +# The Visitor class implements the Visitor pattern for traversing the RBS Abstract Syntax Tree (AST). +# +# It provides methods to visit each type of node in the AST, allowing for custom processing of each node type. +# +# This class is designed to be subclassed, with specific visit methods overridden to implement custom behavior for +# different node types. +# +# Example usage: +# +# ~~~rb +# class MyVisitor < RBS::AST::Visitor +# def visit_declaration_class(node) +# puts "Visiting class: #{node.name}" +# +# super # call `super` to run the default visiting behavior +# end +# end +# +# visitor = MyVisitor.new +# visitor.visit(ast_node) +# ~~~ +# +# source://rbs//lib/rbs/ast/visitor.rb#26 +class RBS::AST::Visitor + # source://rbs//lib/rbs/ast/visitor.rb#27 + def visit(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#70 + def visit_all(nodes); end + + # source://rbs//lib/rbs/ast/visitor.rb#79 + def visit_declaration_class(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#87 + def visit_declaration_constant(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#76 + def visit_declaration_global(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#93 + def visit_declaration_interface(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#83 + def visit_declaration_module(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#90 + def visit_declaration_type_alias(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#97 + def visit_member_alias(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#124 + def visit_member_attr_accessor(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#118 + def visit_member_attr_reader(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#121 + def visit_member_attr_writer(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#100 + def visit_member_class_instance_variable(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#103 + def visit_member_class_variable(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#133 + def visit_member_extend(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#127 + def visit_member_include(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#106 + def visit_member_instance_variable(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#115 + def visit_member_method_definition(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#130 + def visit_member_prepend(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#109 + def visit_member_private(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#112 + def visit_member_public(node); end +end + +# source://rbs//lib/rbs/ancestor_graph.rb#4 +class RBS::AncestorGraph + # @return [AncestorGraph] a new instance of AncestorGraph + # + # source://rbs//lib/rbs/ancestor_graph.rb#13 + def initialize(env:, ancestor_builder: T.unsafe(nil)); end + + # Returns the value of attribute ancestor_builder. + # + # source://rbs//lib/rbs/ancestor_graph.rb#9 + def ancestor_builder; end + + # source://rbs//lib/rbs/ancestor_graph.rb#19 + def build; end + + # source://rbs//lib/rbs/ancestor_graph.rb#32 + def build_ancestors(node, ancestors); end + + # Returns the value of attribute children. + # + # source://rbs//lib/rbs/ancestor_graph.rb#11 + def children; end + + # source://rbs//lib/rbs/ancestor_graph.rb#64 + def each_ancestor(node, yielded: T.unsafe(nil), &block); end + + # source://rbs//lib/rbs/ancestor_graph.rb#56 + def each_child(node, &block); end + + # source://rbs//lib/rbs/ancestor_graph.rb#78 + def each_descendant(node, yielded: T.unsafe(nil), &block); end + + # source://rbs//lib/rbs/ancestor_graph.rb#48 + def each_parent(node, &block); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/ancestor_graph.rb#8 + def env; end + + # Returns the value of attribute parents. + # + # source://rbs//lib/rbs/ancestor_graph.rb#10 + def parents; end + + # source://rbs//lib/rbs/ancestor_graph.rb#43 + def register(parent:, child:); end +end + +# source://rbs//lib/rbs/ancestor_graph.rb#5 +class RBS::AncestorGraph::InstanceNode < ::Struct + def type_name; end + def type_name=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/ancestor_graph.rb#6 +class RBS::AncestorGraph::SingletonNode < ::Struct + def type_name; end + def type_name=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/errors.rb#19 +class RBS::BaseError < ::StandardError; end + +# source://rbs//lib/rbs/buffer.rb#4 +class RBS::Buffer + # @return [Buffer] a new instance of Buffer + # + # source://rbs//lib/rbs/buffer.rb#8 + def initialize(name:, content:); end + + # Returns the value of attribute content. + # + # source://rbs//lib/rbs/buffer.rb#6 + def content; end + + # source://rbs//lib/rbs/buffer.rb#63 + def inspect; end + + # source://rbs//lib/rbs/buffer.rb#59 + def last_position; end + + # source://rbs//lib/rbs/buffer.rb#13 + def lines; end + + # source://rbs//lib/rbs/buffer.rb#49 + def loc_to_pos(loc); end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/buffer.rb#5 + def name; end + + # source://rbs//lib/rbs/buffer.rb#37 + def pos_to_loc(pos); end + + # source://rbs//lib/rbs/buffer.rb#17 + def ranges; end +end + +# source://rbs//lib/rbs/builtin_names.rb#4 +module RBS::BuiltinNames; end + +# source://rbs//lib/rbs/builtin_names.rb#45 +RBS::BuiltinNames::Array = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#37 +RBS::BuiltinNames::BasicObject = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#43 +RBS::BuiltinNames::Class = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#41 +RBS::BuiltinNames::Comparable = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#42 +RBS::BuiltinNames::Enumerable = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#48 +RBS::BuiltinNames::Enumerator = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#55 +RBS::BuiltinNames::FalseClass = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#52 +RBS::BuiltinNames::Float = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#46 +RBS::BuiltinNames::Hash = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#51 +RBS::BuiltinNames::Integer = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#39 +RBS::BuiltinNames::Kernel = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#44 +RBS::BuiltinNames::Module = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#5 +class RBS::BuiltinNames::Name + # @return [Name] a new instance of Name + # + # source://rbs//lib/rbs/builtin_names.rb#8 + def initialize(name:); end + + # source://rbs//lib/rbs/builtin_names.rb#16 + def instance_type(*args); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/builtin_names.rb#20 + def instance_type?(type); end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/builtin_names.rb#6 + def name; end + + # source://rbs//lib/rbs/builtin_names.rb#24 + def singleton_type; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/builtin_names.rb#28 + def singleton_type?(type); end + + # source://rbs//lib/rbs/builtin_names.rb#12 + def to_s; end + + class << self + # source://rbs//lib/rbs/builtin_names.rb#32 + def define(name, namespace: T.unsafe(nil)); end + end +end + +# source://rbs//lib/rbs/builtin_names.rb#56 +RBS::BuiltinNames::Numeric = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#38 +RBS::BuiltinNames::Object = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#47 +RBS::BuiltinNames::Range = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#53 +RBS::BuiltinNames::Regexp = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#49 +RBS::BuiltinNames::Set = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#40 +RBS::BuiltinNames::String = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#50 +RBS::BuiltinNames::Symbol = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#54 +RBS::BuiltinNames::TrueClass = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/cli/colored_io.rb#4 +class RBS::CLI; end + +# source://rbs//lib/rbs/cli/colored_io.rb#5 +class RBS::CLI::ColoredIO + # @return [ColoredIO] a new instance of ColoredIO + # + # source://rbs//lib/rbs/cli/colored_io.rb#8 + def initialize(stdout:); end + + # source://rbs//lib/rbs/cli/colored_io.rb#28 + def puts(*_arg0, **_arg1, &_arg2); end + + # source://rbs//lib/rbs/cli/colored_io.rb#20 + def puts_green(string); end + + # source://rbs//lib/rbs/cli/colored_io.rb#12 + def puts_red(string); end + + # Returns the value of attribute stdout. + # + # source://rbs//lib/rbs/cli/colored_io.rb#6 + def stdout; end + + private + + # @return [Boolean] + # + # source://rbs//lib/rbs/cli/colored_io.rb#43 + def are_colors_disabled?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/cli/colored_io.rb#39 + def are_colors_supported?; end + + # https://github.com/rubygems/rubygems/blob/ed65279100234a17d65d71fe26de5083984ac5b8/bundler/lib/bundler/vendor/thor/lib/thor/shell/color.rb#L99-L109 + # + # @return [Boolean] + # + # source://rbs//lib/rbs/cli/colored_io.rb#35 + def can_display_colors?; end +end + +# source://rbs//lib/rbs/collection/sources/base.rb#4 +module RBS::Collection; end + +# source://rbs//lib/rbs/collection/cleaner.rb#5 +class RBS::Collection::Cleaner + # @return [Cleaner] a new instance of Cleaner + # + # source://rbs//lib/rbs/collection/cleaner.rb#8 + def initialize(lockfile_path:); end + + # source://rbs//lib/rbs/collection/cleaner.rb#12 + def clean; end + + # Returns the value of attribute lock. + # + # source://rbs//lib/rbs/collection/cleaner.rb#6 + def lock; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/cleaner.rb#30 + def needed?(gem_name, version); end +end + +# This class represent the configuration file. +# +# source://rbs//lib/rbs/collection/config.rb#7 +class RBS::Collection::Config + # @return [Config] a new instance of Config + # + # source://rbs//lib/rbs/collection/config.rb#49 + def initialize(data, config_path:); end + + # Returns the value of attribute config_path. + # + # source://rbs//lib/rbs/collection/config.rb#19 + def config_path; end + + # Returns the value of attribute data. + # + # source://rbs//lib/rbs/collection/config.rb#19 + def data; end + + # source://rbs//lib/rbs/collection/config.rb#54 + def gem(gem_name); end + + # source://rbs//lib/rbs/collection/config.rb#74 + def gems; end + + # source://rbs//lib/rbs/collection/config.rb#58 + def repo_path; end + + # source://rbs//lib/rbs/collection/config.rb#62 + def repo_path_data; end + + # source://rbs//lib/rbs/collection/config.rb#66 + def sources; end + + class << self + # source://rbs//lib/rbs/collection/config.rb#21 + def find_config_path; end + + # source://rbs//lib/rbs/collection/config.rb#41 + def from_path(path); end + + # Generate a rbs lockfile from Gemfile.lock to `config_path`. + # If `with_lockfile` is true, it respects existing rbs lockfile. + # + # source://rbs//lib/rbs/collection/config.rb#34 + def generate_lockfile(config_path:, definition:, with_lockfile: T.unsafe(nil)); end + + # source://rbs//lib/rbs/collection/config.rb#45 + def to_lockfile_path(config_path); end + end +end + +# source://rbs//lib/rbs/collection/config.rb#8 +class RBS::Collection::Config::CollectionNotAvailable < ::StandardError + # @return [CollectionNotAvailable] a new instance of CollectionNotAvailable + # + # source://rbs//lib/rbs/collection/config.rb#9 + def initialize; end +end + +# source://rbs//lib/rbs/collection/config/lockfile.rb#6 +class RBS::Collection::Config::Lockfile + # @return [Lockfile] a new instance of Lockfile + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#9 + def initialize(lockfile_path:, path:, gemfile_lock_path:); end + + # @raise [CollectionNotAvailable] + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#73 + def check_rbs_availability!; end + + # source://rbs//lib/rbs/collection/config/lockfile.rb#18 + def fullpath; end + + # source://rbs//lib/rbs/collection/config/lockfile.rb#22 + def gemfile_lock_fullpath; end + + # Returns the value of attribute gemfile_lock_path. + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#7 + def gemfile_lock_path; end + + # Returns the value of attribute gems. + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#7 + def gems; end + + # source://rbs//lib/rbs/collection/config/lockfile.rb#65 + def library_data(lib); end + + # Returns the value of attribute lockfile_dir. + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#7 + def lockfile_dir; end + + # Returns the value of attribute lockfile_path. + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#7 + def lockfile_path; end + + # Returns the value of attribute path. + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#7 + def path; end + + # Returns the value of attribute sources. + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#7 + def sources; end + + # source://rbs//lib/rbs/collection/config/lockfile.rb#28 + def to_lockfile; end + + class << self + # source://rbs//lib/rbs/collection/config/lockfile.rb#42 + def from_lockfile(lockfile_path:, data:); end + end +end + +# source://rbs//lib/rbs/collection/config/lockfile_generator.rb#6 +class RBS::Collection::Config::LockfileGenerator + # @return [LockfileGenerator] a new instance of LockfileGenerator + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#33 + def initialize(config:, definition:, with_lockfile:); end + + # Returns the value of attribute config. + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#25 + def config; end + + # Returns the value of attribute definition. + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#25 + def definition; end + + # Returns the value of attribute existing_lockfile. + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#25 + def existing_lockfile; end + + # Returns the value of attribute gem_entries. + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#25 + def gem_entries; end + + # Returns the value of attribute gem_hash. + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#25 + def gem_hash; end + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#61 + def generate; end + + # Returns the value of attribute lockfile. + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#25 + def lockfile; end + + private + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#94 + def assign_gem(name:, version:, skip: T.unsafe(nil)); end + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#160 + def assign_stdlib(name:, from_gem: T.unsafe(nil)); end + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#213 + def find_best_version(version:, versions:); end + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#207 + def find_source(name:); end + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#86 + def validate_gemfile_lock_path!(lock:, gemfile_lock_path:); end + + class << self + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#27 + def generate(config:, definition:, with_lockfile: T.unsafe(nil)); end + end +end + +# source://rbs//lib/rbs/collection/config/lockfile_generator.rb#7 +RBS::Collection::Config::LockfileGenerator::ALUMNI_STDLIBS = T.let(T.unsafe(nil), Hash) + +# source://rbs//lib/rbs/collection/config/lockfile_generator.rb#9 +class RBS::Collection::Config::LockfileGenerator::GemfileLockMismatchError < ::StandardError + # @return [GemfileLockMismatchError] a new instance of GemfileLockMismatchError + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#10 + def initialize(expected:, actual:); end + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#15 + def message; end +end + +# source://rbs//lib/rbs/collection/config.rb#17 +RBS::Collection::Config::PATH = T.let(T.unsafe(nil), Pathname) + +# source://rbs//lib/rbs/collection/installer.rb#5 +class RBS::Collection::Installer + # @return [Installer] a new instance of Installer + # + # source://rbs//lib/rbs/collection/installer.rb#9 + def initialize(lockfile_path:, stdout: T.unsafe(nil)); end + + # source://rbs//lib/rbs/collection/installer.rb#14 + def install_from_lockfile; end + + # Returns the value of attribute lockfile. + # + # source://rbs//lib/rbs/collection/installer.rb#6 + def lockfile; end + + # Returns the value of attribute stdout. + # + # source://rbs//lib/rbs/collection/installer.rb#7 + def stdout; end +end + +# source://rbs//lib/rbs/collection/sources/base.rb#5 +module RBS::Collection::Sources + class << self + # source://rbs//lib/rbs/collection/sources.rb#12 + def from_config_entry(source_entry, base_directory:); end + end +end + +# source://rbs//lib/rbs/collection/sources/base.rb#6 +module RBS::Collection::Sources::Base + # source://rbs//lib/rbs/collection/sources/base.rb#7 + def dependencies_of(name, version); end +end + +# source://rbs//lib/rbs/collection/sources/git.rb#10 +class RBS::Collection::Sources::Git + include ::RBS::Collection::Sources::Base + + # @return [Git] a new instance of Git + # + # source://rbs//lib/rbs/collection/sources/git.rb#18 + def initialize(name:, revision:, remote:, repo_dir:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/git.rb#26 + def has?(name, version); end + + # source://rbs//lib/rbs/collection/sources/git.rb#43 + def install(dest:, name:, version:, stdout:); end + + # source://rbs//lib/rbs/collection/sources/git.rb#223 + def load_metadata(dir:); end + + # source://rbs//lib/rbs/collection/sources/git.rb#73 + def manifest_of(name, version); end + + # source://rbs//lib/rbs/collection/sources/git.rb#207 + def metadata_content(name:, version:); end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/collection/sources/git.rb#16 + def name; end + + # Returns the value of attribute remote. + # + # source://rbs//lib/rbs/collection/sources/git.rb#16 + def remote; end + + # Returns the value of attribute repo_dir. + # + # source://rbs//lib/rbs/collection/sources/git.rb#16 + def repo_dir; end + + # source://rbs//lib/rbs/collection/sources/git.rb#172 + def resolved_revision; end + + # Returns the value of attribute revision. + # + # source://rbs//lib/rbs/collection/sources/git.rb#16 + def revision; end + + # source://rbs//lib/rbs/collection/sources/git.rb#113 + def to_lockfile; end + + # source://rbs//lib/rbs/collection/sources/git.rb#36 + def versions(name); end + + # source://rbs//lib/rbs/collection/sources/git.rb#215 + def write_metadata(dir:, name:, version:); end + + private + + # source://rbs//lib/rbs/collection/sources/git.rb#87 + def _install(dest:, name:, version:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/git.rb#183 + def commit_hash?; end + + # source://rbs//lib/rbs/collection/sources/git.rb#99 + def cp_r(src, dest); end + + # source://rbs//lib/rbs/collection/sources/git.rb#123 + def format_config_entry(name, version); end + + # source://rbs//lib/rbs/collection/sources/git.rb#168 + def gem_repo_dir; end + + # source://rbs//lib/rbs/collection/sources/git.rb#229 + def gems_versions; end + + # source://rbs//lib/rbs/collection/sources/git.rb#187 + def git(*cmd, **opt); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/git.rb#191 + def git?(*cmd, **opt); end + + # source://rbs//lib/rbs/collection/sources/git.rb#158 + def git_dir; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/git.rb#152 + def need_to_fetch?(revision); end + + # source://rbs//lib/rbs/collection/sources/git.rb#130 + def setup!; end + + # source://rbs//lib/rbs/collection/sources/git.rb#197 + def sh!(*cmd, **opt); end +end + +# source://rbs//lib/rbs/collection/sources/git.rb#14 +class RBS::Collection::Sources::Git::CommandError < ::StandardError; end + +# source://rbs//lib/rbs/collection/sources/git.rb#12 +RBS::Collection::Sources::Git::METADATA_FILENAME = T.let(T.unsafe(nil), String) + +# source://rbs//lib/rbs/collection/sources/local.rb#6 +class RBS::Collection::Sources::Local + include ::RBS::Collection::Sources::Base + + # @return [Local] a new instance of Local + # + # source://rbs//lib/rbs/collection/sources/local.rb#11 + def initialize(path:, base_directory:); end + + # Returns the value of attribute full_path. + # + # source://rbs//lib/rbs/collection/sources/local.rb#9 + def full_path; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/local.rb#17 + def has?(name, version); end + + # Create a symlink instead of copying file to refer files in @path. + # By avoiding copying RBS files, the users do not need re-run `rbs collection install` + # when the RBS files are updated. + # + # source://rbs//lib/rbs/collection/sources/local.rb#32 + def install(dest:, name:, version:, stdout:); end + + # source://rbs//lib/rbs/collection/sources/local.rb#64 + def manifest_of(name, version); end + + # Returns the value of attribute path. + # + # source://rbs//lib/rbs/collection/sources/local.rb#9 + def path; end + + # source://rbs//lib/rbs/collection/sources/local.rb#72 + def to_lockfile; end + + # source://rbs//lib/rbs/collection/sources/local.rb#25 + def versions(name); end + + private + + # source://rbs//lib/rbs/collection/sources/local.rb#59 + def _install(src, dst); end +end + +# Signatures that are inclduded in gem package as sig/ directory. +# +# source://rbs//lib/rbs/collection/sources/rubygems.rb#9 +class RBS::Collection::Sources::Rubygems + include ::RBS::Collection::Sources::Base + include ::Singleton::SingletonInstanceMethods + include ::Singleton + extend ::Singleton::SingletonClassMethods + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/rubygems.rb#13 + def has?(name, version); end + + # source://rbs//lib/rbs/collection/sources/rubygems.rb#23 + def install(dest:, name:, version:, stdout:); end + + # source://rbs//lib/rbs/collection/sources/rubygems.rb#29 + def manifest_of(name, version); end + + # source://rbs//lib/rbs/collection/sources/rubygems.rb#36 + def to_lockfile; end + + # source://rbs//lib/rbs/collection/sources/rubygems.rb#17 + def versions(name); end + + private + + # source://rbs//lib/rbs/collection/sources/rubygems.rb#42 + def gem_sig_path(name, version); end + + class << self + private + + def allocate; end + def new(*_arg0); end + end +end + +# signatures that are bundled in rbs gem under the stdlib/ directory +# +# source://rbs//lib/rbs/collection/sources/stdlib.rb#9 +class RBS::Collection::Sources::Stdlib + include ::RBS::Collection::Sources::Base + include ::Singleton::SingletonInstanceMethods + include ::Singleton + extend ::Singleton::SingletonClassMethods + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/stdlib.rb#15 + def has?(name, version); end + + # source://rbs//lib/rbs/collection/sources/stdlib.rb#23 + def install(dest:, name:, version:, stdout:); end + + # source://rbs//lib/rbs/collection/sources/stdlib.rb#29 + def manifest_of(name, version); end + + # source://rbs//lib/rbs/collection/sources/stdlib.rb#38 + def to_lockfile; end + + # source://rbs//lib/rbs/collection/sources/stdlib.rb#19 + def versions(name); end + + private + + # source://rbs//lib/rbs/collection/sources/stdlib.rb#44 + def lookup(name, version); end + + class << self + private + + def allocate; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/collection/sources/stdlib.rb#13 +RBS::Collection::Sources::Stdlib::REPO = T.let(T.unsafe(nil), RBS::Repository) + +# source://rbs//lib/rbs/constant.rb#4 +class RBS::Constant + # @return [Constant] a new instance of Constant + # + # source://rbs//lib/rbs/constant.rb#9 + def initialize(name:, type:, entry:); end + + # source://rbs//lib/rbs/constant.rb#15 + def ==(other); end + + # Returns the value of attribute entry. + # + # source://rbs//lib/rbs/constant.rb#7 + def entry; end + + # source://rbs//lib/rbs/constant.rb#15 + def eql?(other); end + + # source://rbs//lib/rbs/constant.rb#24 + def hash; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/constant.rb#5 + def name; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/constant.rb#6 + def type; end +end + +# source://rbs//lib/rbs/errors.rb#553 +class RBS::CyclicClassAliasDefinitionError < ::RBS::BaseError + include ::RBS::DetailedMessageable + + # @return [CyclicClassAliasDefinitionError] a new instance of CyclicClassAliasDefinitionError + # + # source://rbs//lib/rbs/errors.rb#558 + def initialize(entry); end + + # Returns the value of attribute alias_entry. + # + # source://rbs//lib/rbs/errors.rb#556 + def alias_entry; end + + # source://rbs//lib/rbs/errors.rb#564 + def location; end +end + +# source://rbs//lib/rbs/errors.rb#514 +class RBS::CyclicTypeParameterBound < ::RBS::BaseError + include ::RBS::DetailedMessageable + + # @return [CyclicTypeParameterBound] a new instance of CyclicTypeParameterBound + # + # source://rbs//lib/rbs/errors.rb#519 + def initialize(type_name:, method_name:, params:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#517 + def location; end + + # Returns the value of attribute method_name. + # + # source://rbs//lib/rbs/errors.rb#517 + def method_name; end + + # Returns the value of attribute params. + # + # source://rbs//lib/rbs/errors.rb#517 + def params; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#517 + def type_name; end +end + +# source://rbs//lib/rbs/definition.rb#4 +class RBS::Definition + # @return [Definition] a new instance of Definition + # + # source://rbs//lib/rbs/definition.rb#284 + def initialize(type_name:, entry:, self_type:, ancestors:); end + + # Returns the value of attribute ancestors. + # + # source://rbs//lib/rbs/definition.rb#278 + def ancestors; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#307 + def class?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#324 + def class_type?; end + + # Returns the value of attribute class_variables. + # + # source://rbs//lib/rbs/definition.rb#282 + def class_variables; end + + # source://rbs//lib/rbs/definition.rb#369 + def each_type(&block); end + + # Returns the value of attribute entry. + # + # source://rbs//lib/rbs/definition.rb#277 + def entry; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#328 + def instance_type?; end + + # Returns the value of attribute instance_variables. + # + # source://rbs//lib/rbs/definition.rb#281 + def instance_variables; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#315 + def interface?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#332 + def interface_type?; end + + # source://rbs//lib/rbs/definition.rb#359 + def map_method_type(&block); end + + # Returns the value of attribute methods. + # + # source://rbs//lib/rbs/definition.rb#280 + def methods; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#311 + def module?; end + + # Returns the value of attribute self_type. + # + # source://rbs//lib/rbs/definition.rb#279 + def self_type; end + + # source://rbs//lib/rbs/definition.rb#349 + def sub(s); end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/definition.rb#276 + def type_name; end + + # source://rbs//lib/rbs/definition.rb#336 + def type_params; end + + # source://rbs//lib/rbs/definition.rb#340 + def type_params_decl; end +end + +# source://rbs//lib/rbs/definition.rb#191 +module RBS::Definition::Ancestor; end + +# source://rbs//lib/rbs/definition.rb#192 +class RBS::Definition::Ancestor::Instance + # @return [Instance] a new instance of Instance + # + # source://rbs//lib/rbs/definition.rb#195 + def initialize(name:, args:, source:); end + + # source://rbs//lib/rbs/definition.rb#201 + def ==(other); end + + # Returns the value of attribute args. + # + # source://rbs//lib/rbs/definition.rb#193 + def args; end + + # source://rbs//lib/rbs/definition.rb#201 + def eql?(other); end + + # source://rbs//lib/rbs/definition.rb#207 + def hash; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/definition.rb#193 + def name; end + + # Returns the value of attribute source. + # + # source://rbs//lib/rbs/definition.rb#193 + def source; end +end + +# source://rbs//lib/rbs/definition.rb#212 +class RBS::Definition::Ancestor::Singleton + # @return [Singleton] a new instance of Singleton + # + # source://rbs//lib/rbs/definition.rb#215 + def initialize(name:); end + + # source://rbs//lib/rbs/definition.rb#219 + def ==(other); end + + # source://rbs//lib/rbs/definition.rb#219 + def eql?(other); end + + # source://rbs//lib/rbs/definition.rb#225 + def hash; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/definition.rb#213 + def name; end +end + +# source://rbs//lib/rbs/definition.rb#231 +class RBS::Definition::InstanceAncestors + # @return [InstanceAncestors] a new instance of InstanceAncestors + # + # source://rbs//lib/rbs/definition.rb#236 + def initialize(type_name:, params:, ancestors:); end + + # Returns the value of attribute ancestors. + # + # source://rbs//lib/rbs/definition.rb#234 + def ancestors; end + + # source://rbs//lib/rbs/definition.rb#242 + def apply(args, env:, location:); end + + # Returns the value of attribute params. + # + # source://rbs//lib/rbs/definition.rb#233 + def params; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/definition.rb#232 + def type_name; end +end + +# source://rbs//lib/rbs/definition.rb#25 +class RBS::Definition::Method + # @return [Method] a new instance of Method + # + # source://rbs//lib/rbs/definition.rb#83 + def initialize(super_method:, defs:, accessibility:, alias_of:, annotations: T.unsafe(nil)); end + + # source://rbs//lib/rbs/definition.rb#91 + def ==(other); end + + # Returns the value of attribute accessibility. + # + # source://rbs//lib/rbs/definition.rb#79 + def accessibility; end + + # Returns the value of attribute alias_of. + # + # source://rbs//lib/rbs/definition.rb#81 + def alias_of; end + + # source://rbs//lib/rbs/definition.rb#128 + def annotations; end + + # source://rbs//lib/rbs/definition.rb#124 + def comments; end + + # source://rbs//lib/rbs/definition.rb#106 + def defined_in; end + + # Returns the value of attribute defs. + # + # source://rbs//lib/rbs/definition.rb#78 + def defs; end + + # source://rbs//lib/rbs/definition.rb#91 + def eql?(other); end + + # Returns the value of attribute extra_annotations. + # + # source://rbs//lib/rbs/definition.rb#80 + def extra_annotations; end + + # source://rbs//lib/rbs/definition.rb#102 + def hash; end + + # source://rbs//lib/rbs/definition.rb#113 + def implemented_in; end + + # source://rbs//lib/rbs/definition.rb#171 + def map_method_type(&block); end + + # source://rbs//lib/rbs/definition.rb#153 + def map_type(&block); end + + # source://rbs//lib/rbs/definition.rb#162 + def map_type_bound(&block); end + + # source://rbs//lib/rbs/definition.rb#132 + def members; end + + # source://rbs//lib/rbs/definition.rb#120 + def method_types; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#140 + def private?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#136 + def public?; end + + # source://rbs//lib/rbs/definition.rb#144 + def sub(s); end + + # Returns the value of attribute super_method. + # + # source://rbs//lib/rbs/definition.rb#77 + def super_method; end + + # source://rbs//lib/rbs/definition.rb#180 + def update(super_method: T.unsafe(nil), defs: T.unsafe(nil), accessibility: T.unsafe(nil), alias_of: T.unsafe(nil), annotations: T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/definition.rb#26 +class RBS::Definition::Method::TypeDef + # @return [TypeDef] a new instance of TypeDef + # + # source://rbs//lib/rbs/definition.rb#35 + def initialize(type:, member:, defined_in:, implemented_in:, overload_annotations: T.unsafe(nil)); end + + # source://rbs//lib/rbs/definition.rb#45 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/definition.rb#33 + def annotations; end + + # source://rbs//lib/rbs/definition.rb#59 + def comment; end + + # Returns the value of attribute defined_in. + # + # source://rbs//lib/rbs/definition.rb#29 + def defined_in; end + + # source://rbs//lib/rbs/definition.rb#45 + def eql?(other); end + + # source://rbs//lib/rbs/definition.rb#55 + def hash; end + + # Returns the value of attribute implemented_in. + # + # source://rbs//lib/rbs/definition.rb#30 + def implemented_in; end + + # Returns the value of attribute member. + # + # source://rbs//lib/rbs/definition.rb#28 + def member; end + + # Returns the value of attribute member_annotations. + # + # source://rbs//lib/rbs/definition.rb#31 + def member_annotations; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#67 + def overload?; end + + # Returns the value of attribute overload_annotations. + # + # source://rbs//lib/rbs/definition.rb#32 + def overload_annotations; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/definition.rb#27 + def type; end + + # source://rbs//lib/rbs/definition.rb#63 + def update(type: T.unsafe(nil), member: T.unsafe(nil), defined_in: T.unsafe(nil), implemented_in: T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/definition.rb#266 +class RBS::Definition::SingletonAncestors + # @return [SingletonAncestors] a new instance of SingletonAncestors + # + # source://rbs//lib/rbs/definition.rb#270 + def initialize(type_name:, ancestors:); end + + # Returns the value of attribute ancestors. + # + # source://rbs//lib/rbs/definition.rb#268 + def ancestors; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/definition.rb#267 + def type_name; end +end + +# source://rbs//lib/rbs/definition.rb#5 +class RBS::Definition::Variable + # @return [Variable] a new instance of Variable + # + # source://rbs//lib/rbs/definition.rb#10 + def initialize(parent_variable:, type:, declared_in:); end + + # Returns the value of attribute declared_in. + # + # source://rbs//lib/rbs/definition.rb#8 + def declared_in; end + + # Returns the value of attribute parent_variable. + # + # source://rbs//lib/rbs/definition.rb#6 + def parent_variable; end + + # source://rbs//lib/rbs/definition.rb#16 + def sub(s); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/definition.rb#7 + def type; end +end + +# source://rbs//lib/rbs/definition_builder.rb#4 +class RBS::DefinitionBuilder + # @return [DefinitionBuilder] a new instance of DefinitionBuilder + # + # source://rbs//lib/rbs/definition_builder.rb#14 + def initialize(env:, ancestor_builder: T.unsafe(nil), method_builder: T.unsafe(nil)); end + + # Returns the value of attribute ancestor_builder. + # + # source://rbs//lib/rbs/definition_builder.rb#6 + def ancestor_builder; end + + # source://rbs//lib/rbs/definition_builder.rb#168 + def build_instance(type_name); end + + # source://rbs//lib/rbs/definition_builder.rb#43 + def build_interface(type_name); end + + # source://rbs//lib/rbs/definition_builder.rb#301 + def build_singleton(type_name); end + + # Builds a definition for singleton without .new method. + # + # source://rbs//lib/rbs/definition_builder.rb#230 + def build_singleton0(type_name); end + + # source://rbs//lib/rbs/definition_builder.rb#85 + def define_instance(definition, type_name, subst); end + + # source://rbs//lib/rbs/definition_builder.rb#33 + def define_interface(definition, type_name, subst); end + + # source://rbs//lib/rbs/definition_builder.rb#607 + def define_method(methods, definition, method, subst, self_type_methods, defined_in:, implemented_in: T.unsafe(nil)); end + + # source://rbs//lib/rbs/definition_builder.rb#25 + def ensure_namespace!(namespace, location:); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/definition_builder.rb#5 + def env; end + + # source://rbs//lib/rbs/definition_builder.rb#770 + def expand_alias(type_name); end + + # source://rbs//lib/rbs/definition_builder.rb#774 + def expand_alias1(type_name); end + + # source://rbs//lib/rbs/definition_builder.rb#781 + def expand_alias2(type_name, args); end + + # source://rbs//lib/rbs/definition_builder.rb#546 + def import_methods(definition, module_name, module_methods, interfaces_methods, subst, self_type_methods); end + + # source://rbs//lib/rbs/definition_builder.rb#538 + def insert_variable(type_name, variables, name:, type:); end + + # Returns the value of attribute instance_cache. + # + # source://rbs//lib/rbs/definition_builder.rb#9 + def instance_cache; end + + # Returns the value of attribute interface_cache. + # + # source://rbs//lib/rbs/definition_builder.rb#12 + def interface_cache; end + + # source://rbs//lib/rbs/definition_builder.rb#412 + def interface_methods(interface_ancestors); end + + # Returns the value of attribute method_builder. + # + # source://rbs//lib/rbs/definition_builder.rb#7 + def method_builder; end + + # Returns the value of attribute singleton0_cache. + # + # source://rbs//lib/rbs/definition_builder.rb#11 + def singleton0_cache; end + + # Returns the value of attribute singleton_cache. + # + # source://rbs//lib/rbs/definition_builder.rb#10 + def singleton_cache; end + + # source://rbs//lib/rbs/definition_builder.rb#442 + def source_location(source, decl); end + + # source://rbs//lib/rbs/definition_builder.rb#66 + def tapp_subst(name, args); end + + # source://rbs//lib/rbs/definition_builder.rb#766 + def try_cache(type_name, cache:); end + + # source://rbs//lib/rbs/definition_builder.rb#805 + def update(env:, except:, ancestor_builder:); end + + # source://rbs//lib/rbs/definition_builder.rb#432 + def validate_params_with(type_params, result:); end + + # @raise [NoTypeFoundError] + # + # source://rbs//lib/rbs/definition_builder.rb#834 + def validate_type_name(name, location); end + + # source://rbs//lib/rbs/definition_builder.rb#456 + def validate_type_params(definition, ancestors:, methods:); end + + # source://rbs//lib/rbs/definition_builder.rb#823 + def validate_type_presence(type); end +end + +# source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#5 +class RBS::DefinitionBuilder::AncestorBuilder + # @return [AncestorBuilder] a new instance of AncestorBuilder + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#162 + def initialize(env:); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#151 + def env; end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#606 + def fill_ancestor_source(ancestor, name:, source:, &block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#434 + def instance_ancestors(type_name, building_ancestors: T.unsafe(nil)); end + + # Returns the value of attribute instance_ancestors_cache. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#154 + def instance_ancestors_cache; end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#570 + def interface_ancestors(type_name, building_ancestors: T.unsafe(nil)); end + + # Returns the value of attribute interface_ancestors_cache. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#160 + def interface_ancestors_cache; end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#414 + def mixin_ancestors(entry, type_name, included_modules:, included_interfaces:, extended_modules:, prepended_modules:, extended_interfaces:); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#348 + def mixin_ancestors0(decl, type_name, align_params:, included_modules:, included_interfaces:, extended_modules:, prepended_modules:, extended_interfaces:); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#192 + def one_instance_ancestors(type_name); end + + # Returns the value of attribute one_instance_ancestors_cache. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#153 + def one_instance_ancestors_cache; end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#329 + def one_interface_ancestors(type_name); end + + # Returns the value of attribute one_interface_ancestors_cache. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#159 + def one_interface_ancestors_cache; end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#275 + def one_singleton_ancestors(type_name); end + + # Returns the value of attribute one_singleton_ancestors_cache. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#156 + def one_singleton_ancestors_cache; end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#515 + def singleton_ancestors(type_name, building_ancestors: T.unsafe(nil)); end + + # Returns the value of attribute singleton_ancestors_cache. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#157 + def singleton_ancestors_cache; end + + # @raise [SuperclassMismatchError] + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#175 + def validate_super_class!(type_name, entry); end +end + +# source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#6 +class RBS::DefinitionBuilder::AncestorBuilder::OneAncestors + # @return [OneAncestors] a new instance of OneAncestors + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#17 + def initialize(type_name:, params:, super_class:, self_types:, included_modules:, included_interfaces:, prepended_modules:, extended_modules:, extended_interfaces:); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#29 + def each_ancestor(&block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#86 + def each_extended_interface(&block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#78 + def each_extended_module(&block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#62 + def each_included_interface(&block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#54 + def each_included_module(&block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#70 + def each_prepended_module(&block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#46 + def each_self_type(&block); end + + # Returns the value of attribute extended_interfaces. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#15 + def extended_interfaces; end + + # Returns the value of attribute extended_modules. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#14 + def extended_modules; end + + # Returns the value of attribute included_interfaces. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#12 + def included_interfaces; end + + # Returns the value of attribute included_modules. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#11 + def included_modules; end + + # Returns the value of attribute params. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#8 + def params; end + + # Returns the value of attribute prepended_modules. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#13 + def prepended_modules; end + + # Returns the value of attribute self_types. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#10 + def self_types; end + + # Returns the value of attribute super_class. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#9 + def super_class; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#7 + def type_name; end + + class << self + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#94 + def class_instance(type_name:, params:, super_class:); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#136 + def interface(type_name:, params:); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#122 + def module_instance(type_name:, params:); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#108 + def singleton(type_name:, super_class:); end + end +end + +# source://rbs//lib/rbs/definition_builder/method_builder.rb#5 +class RBS::DefinitionBuilder::MethodBuilder + # @return [MethodBuilder] a new instance of MethodBuilder + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#91 + def initialize(env:); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#194 + def build_alias(methods, type, member:); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#199 + def build_attribute(methods, type, member:, accessibility:); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#99 + def build_instance(type_name); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#174 + def build_interface(type_name); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#215 + def build_method(methods, type, member:, accessibility:); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#145 + def build_singleton(type_name); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#226 + def each_member_with_accessibility(members, accessibility: T.unsafe(nil)); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#86 + def env; end + + # Returns the value of attribute instance_methods. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#87 + def instance_methods; end + + # Returns the value of attribute interface_methods. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#89 + def interface_methods; end + + # Returns the value of attribute singleton_methods. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#88 + def singleton_methods; end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#239 + def update(env:, except:); end +end + +# source://rbs//lib/rbs/definition_builder/method_builder.rb#6 +class RBS::DefinitionBuilder::MethodBuilder::Methods + # @return [Methods] a new instance of Methods + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#30 + def initialize(type:); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#49 + def each; end + + # Returns the value of attribute methods. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#28 + def methods; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#27 + def type; end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#35 + def validate!; end +end + +# source://rbs//lib/rbs/definition_builder/method_builder.rb#7 +class RBS::DefinitionBuilder::MethodBuilder::Methods::Definition < ::Struct + # source://rbs//lib/rbs/definition_builder/method_builder.rb#14 + def accessibility; end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#10 + def original; end + + class << self + # source://rbs//lib/rbs/definition_builder/method_builder.rb#22 + def empty(name:, type:); end + end +end + +# source://rbs//lib/rbs/definition_builder/method_builder.rb#63 +class RBS::DefinitionBuilder::MethodBuilder::Methods::Sorter + include ::TSort + + # @return [Sorter] a new instance of Sorter + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#68 + def initialize(methods); end + + # Returns the value of attribute methods. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#66 + def methods; end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#76 + def tsort_each_child(defn); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#72 + def tsort_each_node(&block); end +end + +# source://rbs//lib/rbs/errors.rb#21 +class RBS::DefinitionError < ::RBS::BaseError; end + +# source://rbs//lib/rbs/errors.rb#23 +module RBS::DetailedMessageable + # source://rbs//lib/rbs/errors.rb#24 + def detailed_message(highlight: T.unsafe(nil), **_arg1); end +end + +# source://rbs//lib/rbs/diff.rb#4 +class RBS::Diff + # @return [Diff] a new instance of Diff + # + # source://rbs//lib/rbs/diff.rb#5 + def initialize(type_name:, library_options:, after_path: T.unsafe(nil), before_path: T.unsafe(nil), detail: T.unsafe(nil)); end + + # source://rbs//lib/rbs/diff.rb#13 + def each_diff(&block); end + + private + + # source://rbs//lib/rbs/diff.rb#96 + def build_builder(env); end + + # source://rbs//lib/rbs/diff.rb#77 + def build_env(path); end + + # source://rbs//lib/rbs/diff.rb#49 + def build_methods(path); end + + # source://rbs//lib/rbs/diff.rb#116 + def constant_to_s(constant); end + + # source://rbs//lib/rbs/diff.rb#100 + def definition_method_to_s(key, kind, definition_method); end + + # source://rbs//lib/rbs/diff.rb#38 + def each_diff_constants(before_constant_children, after_constant_children); end + + # source://rbs//lib/rbs/diff.rb#27 + def each_diff_methods(kind, before_methods, after_methods); end +end + +# source://rbs//lib/rbs/errors.rb#394 +class RBS::DuplicatedDeclarationError < ::RBS::LoadingError + # @return [DuplicatedDeclarationError] a new instance of DuplicatedDeclarationError + # + # source://rbs//lib/rbs/errors.rb#398 + def initialize(name, *decls); end + + # Returns the value of attribute decls. + # + # source://rbs//lib/rbs/errors.rb#396 + def decls; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/errors.rb#395 + def name; end +end + +# source://rbs//lib/rbs/errors.rb#292 +class RBS::DuplicatedInterfaceMethodDefinitionError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [DuplicatedInterfaceMethodDefinitionError] a new instance of DuplicatedInterfaceMethodDefinitionError + # + # source://rbs//lib/rbs/errors.rb#299 + def initialize(type:, method_name:, member:); end + + # source://rbs//lib/rbs/errors.rb#307 + def location; end + + # Returns the value of attribute member. + # + # source://rbs//lib/rbs/errors.rb#297 + def member; end + + # Returns the value of attribute method_name. + # + # source://rbs//lib/rbs/errors.rb#296 + def method_name; end + + # source://rbs//lib/rbs/errors.rb#311 + def qualified_method_name; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/errors.rb#295 + def type; end + + # source://rbs//lib/rbs/errors.rb#320 + def type_name; end +end + +# source://rbs//lib/rbs/errors.rb#251 +class RBS::DuplicatedMethodDefinitionError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [DuplicatedMethodDefinitionError] a new instance of DuplicatedMethodDefinitionError + # + # source://rbs//lib/rbs/errors.rb#258 + def initialize(type:, method_name:, members:); end + + # source://rbs//lib/rbs/errors.rb#283 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/errors.rb#256 + def members; end + + # Returns the value of attribute method_name. + # + # source://rbs//lib/rbs/errors.rb#255 + def method_name; end + + # source://rbs//lib/rbs/errors.rb#287 + def other_locations; end + + # source://rbs//lib/rbs/errors.rb#270 + def qualified_method_name; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/errors.rb#254 + def type; end + + # source://rbs//lib/rbs/errors.rb#279 + def type_name; end +end + +# source://rbs//lib/rbs/environment.rb#4 +class RBS::Environment + # @return [Environment] a new instance of Environment + # + # source://rbs//lib/rbs/environment.rb#145 + def initialize; end + + # source://rbs//lib/rbs/environment.rb#470 + def <<(decl); end + + # source://rbs//lib/rbs/environment.rb#792 + def absolute_type(resolver, map, type, context:); end + + # source://rbs//lib/rbs/environment.rb#787 + def absolute_type_name(resolver, map, type_name, context:); end + + # source://rbs//lib/rbs/environment.rb#476 + def add_signature(buffer:, directives:, decls:); end + + # source://rbs//lib/rbs/environment.rb#528 + def append_context(context, decl); end + + # source://rbs//lib/rbs/environment.rb#803 + def buffers; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#218 + def class_alias?(name); end + + # Returns the value of attribute class_alias_decls. + # + # source://rbs//lib/rbs/environment.rb#12 + def class_alias_decls; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#202 + def class_decl?(name); end + + # Returns the value of attribute class_decls. + # + # source://rbs//lib/rbs/environment.rb#7 + def class_decls; end + + # source://rbs//lib/rbs/environment.rb#226 + def class_entry(type_name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#198 + def constant_decl?(name); end + + # Returns the value of attribute constant_decls. + # + # source://rbs//lib/rbs/environment.rb#10 + def constant_decls; end + + # source://rbs//lib/rbs/environment.rb#274 + def constant_entry(type_name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#194 + def constant_name?(name); end + + # Returns the value of attribute declarations. + # + # source://rbs//lib/rbs/environment.rb#5 + def declarations; end + + # Returns the value of attribute global_decls. + # + # source://rbs//lib/rbs/environment.rb#11 + def global_decls; end + + # source://rbs//lib/rbs/environment.rb#373 + def insert_decl(decl, outer:, namespace:); end + + # source://rbs//lib/rbs/environment.rb#798 + def inspect; end + + # Returns the value of attribute interface_decls. + # + # source://rbs//lib/rbs/environment.rb#8 + def interface_decls; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#176 + def interface_name?(name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#210 + def module_alias?(name); end + + # source://rbs//lib/rbs/environment.rb#266 + def module_class_entry(type_name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#206 + def module_decl?(name); end + + # source://rbs//lib/rbs/environment.rb#235 + def module_entry(type_name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#184 + def module_name?(name); end + + # source://rbs//lib/rbs/environment.rb#332 + def normalize_module_name(name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#336 + def normalize_module_name?(name); end + + # source://rbs//lib/rbs/environment.rb#328 + def normalize_type_name(name); end + + # source://rbs//lib/rbs/environment.rb#297 + def normalize_type_name!(name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#278 + def normalize_type_name?(name); end + + # source://rbs//lib/rbs/environment.rb#244 + def normalized_class_entry(type_name); end + + # source://rbs//lib/rbs/environment.rb#270 + def normalized_module_class_entry(type_name); end + + # source://rbs//lib/rbs/environment.rb#255 + def normalized_module_entry(type_name); end + + # source://rbs//lib/rbs/environment.rb#323 + def normalized_type_name!(name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#310 + def normalized_type_name?(type_name); end + + # source://rbs//lib/rbs/environment.rb#537 + def resolve_declaration(resolver, map, decl, outer:, prefix:); end + + # source://rbs//lib/rbs/environment.rb#673 + def resolve_member(resolver, map, member, context:); end + + # source://rbs//lib/rbs/environment.rb#773 + def resolve_method_type(resolver, map, type, context:); end + + # source://rbs//lib/rbs/environment.rb#489 + def resolve_type_names(only: T.unsafe(nil)); end + + # source://rbs//lib/rbs/environment.rb#781 + def resolve_type_params(resolver, map, params, context:); end + + # source://rbs//lib/rbs/environment.rb#522 + def resolver_context(*nesting); end + + # Returns the value of attribute signatures. + # + # source://rbs//lib/rbs/environment.rb#14 + def signatures; end + + # Returns the value of attribute type_alias_decls. + # + # source://rbs//lib/rbs/environment.rb#9 + def type_alias_decls; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#180 + def type_alias_name?(name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#188 + def type_name?(name); end + + # source://rbs//lib/rbs/environment.rb#807 + def unload(buffers); end + + # source://rbs//lib/rbs/environment.rb#483 + def validate_type_params; end + + private + + # source://rbs//lib/rbs/environment.rb#158 + def initialize_copy(other); end + + class << self + # source://rbs//lib/rbs/environment.rb#170 + def from_loader(loader); end + end +end + +# source://rbs//lib/rbs/environment.rb#130 +class RBS::Environment::ClassAliasEntry < ::RBS::Environment::SingleEntry; end + +# source://rbs//lib/rbs/environment.rb#100 +class RBS::Environment::ClassEntry < ::RBS::Environment::MultiEntry + # source://rbs//lib/rbs/environment.rb#101 + def primary; end +end + +# source://rbs//lib/rbs/environment.rb#139 +class RBS::Environment::ConstantEntry < ::RBS::Environment::SingleEntry; end + +# source://rbs//lib/rbs/environment.rb#16 +module RBS::Environment::ContextUtil + # source://rbs//lib/rbs/environment.rb#17 + def calculate_context(decls); end +end + +# source://rbs//lib/rbs/environment.rb#142 +class RBS::Environment::GlobalEntry < ::RBS::Environment::SingleEntry; end + +# source://rbs//lib/rbs/environment.rb#133 +class RBS::Environment::InterfaceEntry < ::RBS::Environment::SingleEntry; end + +# source://rbs//lib/rbs/environment.rb#127 +class RBS::Environment::ModuleAliasEntry < ::RBS::Environment::SingleEntry; end + +# source://rbs//lib/rbs/environment.rb#85 +class RBS::Environment::ModuleEntry < ::RBS::Environment::MultiEntry + # source://rbs//lib/rbs/environment.rb#92 + def primary; end + + # source://rbs//lib/rbs/environment.rb#86 + def self_types; end +end + +# source://rbs//lib/rbs/environment.rb#29 +class RBS::Environment::MultiEntry + # @return [MultiEntry] a new instance of MultiEntry + # + # source://rbs//lib/rbs/environment.rb#43 + def initialize(name:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#70 + def compatible_params?(ps1, ps2); end + + # Returns the value of attribute decls. + # + # source://rbs//lib/rbs/environment.rb#41 + def decls; end + + # source://rbs//lib/rbs/environment.rb#48 + def insert(decl:, outer:); end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/environment.rb#40 + def name; end + + # source://rbs//lib/rbs/environment.rb#80 + def primary; end + + # source://rbs//lib/rbs/environment.rb#76 + def type_params; end + + # source://rbs//lib/rbs/environment.rb#53 + def validate_type_params; end +end + +# source://rbs//lib/rbs/environment.rb#30 +class RBS::Environment::MultiEntry::D < ::Struct + include ::RBS::Environment::ContextUtil + + # source://rbs//lib/rbs/environment.rb#35 + def context; end + + def decl; end + def decl=(_); end + def outer; end + def outer=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/environment.rb#109 +class RBS::Environment::SingleEntry + include ::RBS::Environment::ContextUtil + + # @return [SingleEntry] a new instance of SingleEntry + # + # source://rbs//lib/rbs/environment.rb#114 + def initialize(name:, decl:, outer:); end + + # source://rbs//lib/rbs/environment.rb#122 + def context; end + + # Returns the value of attribute decl. + # + # source://rbs//lib/rbs/environment.rb#112 + def decl; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/environment.rb#110 + def name; end + + # Returns the value of attribute outer. + # + # source://rbs//lib/rbs/environment.rb#111 + def outer; end +end + +# source://rbs//lib/rbs/environment.rb#136 +class RBS::Environment::TypeAliasEntry < ::RBS::Environment::SingleEntry; end + +# source://rbs//lib/rbs/environment/use_map.rb#5 +class RBS::Environment::UseMap + # @return [UseMap] a new instance of UseMap + # + # source://rbs//lib/rbs/environment/use_map.rb#30 + def initialize(table:); end + + # source://rbs//lib/rbs/environment/use_map.rb#36 + def build_map(clause); end + + # source://rbs//lib/rbs/environment/use_map.rb#72 + def resolve(type_name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment/use_map.rb#53 + def resolve?(type_name); end + + # Returns the value of attribute use_dirs. + # + # source://rbs//lib/rbs/environment/use_map.rb#28 + def use_dirs; end +end + +# source://rbs//lib/rbs/environment/use_map.rb#6 +class RBS::Environment::UseMap::Table + # @return [Table] a new instance of Table + # + # source://rbs//lib/rbs/environment/use_map.rb#9 + def initialize; end + + # Returns the value of attribute children. + # + # source://rbs//lib/rbs/environment/use_map.rb#7 + def children; end + + # source://rbs//lib/rbs/environment/use_map.rb#14 + def compute_children; end + + # Returns the value of attribute known_types. + # + # source://rbs//lib/rbs/environment/use_map.rb#7 + def known_types; end +end + +# source://rbs//lib/rbs/environment_loader.rb#4 +class RBS::EnvironmentLoader + include ::RBS::FileFinder + + # @return [EnvironmentLoader] a new instance of EnvironmentLoader + # + # source://rbs//lib/rbs/environment_loader.rb#40 + def initialize(core_root: T.unsafe(nil), repository: T.unsafe(nil)); end + + # source://rbs//lib/rbs/environment_loader.rb#48 + def add(path: T.unsafe(nil), library: T.unsafe(nil), version: T.unsafe(nil), resolve_dependencies: T.unsafe(nil)); end + + # source://rbs//lib/rbs/environment_loader.rb#80 + def add_collection(lockfile); end + + # Returns the value of attribute core_root. + # + # source://rbs//lib/rbs/environment_loader.rb#20 + def core_root; end + + # Returns the value of attribute dirs. + # + # source://rbs//lib/rbs/environment_loader.rb#24 + def dirs; end + + # source://rbs//lib/rbs/environment_loader.rb#131 + def each_dir; end + + # source://rbs//lib/rbs/environment_loader.rb#154 + def each_signature; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment_loader.rb#104 + def has_library?(library:, version:); end + + # Returns the value of attribute libs. + # + # source://rbs//lib/rbs/environment_loader.rb#23 + def libs; end + + # source://rbs//lib/rbs/environment_loader.rb#112 + def load(env:); end + + # Returns the value of attribute repository. + # + # source://rbs//lib/rbs/environment_loader.rb#21 + def repository; end + + # source://rbs//lib/rbs/environment_loader.rb#65 + def resolve_dependencies(library:, version:); end + + class << self + # source://rbs//lib/rbs/environment_loader.rb#28 + def gem_sig_path(name, version); end + end +end + +# source://rbs//lib/rbs/environment_loader.rb#26 +RBS::EnvironmentLoader::DEFAULT_CORE_ROOT = T.let(T.unsafe(nil), Pathname) + +# source://rbs//lib/rbs/environment_loader.rb#17 +class RBS::EnvironmentLoader::Library < ::Struct; end + +# source://rbs//lib/rbs/environment_loader.rb#5 +class RBS::EnvironmentLoader::UnknownLibraryError < ::StandardError + # @return [UnknownLibraryError] a new instance of UnknownLibraryError + # + # source://rbs//lib/rbs/environment_loader.rb#8 + def initialize(lib:); end + + # Returns the value of attribute library. + # + # source://rbs//lib/rbs/environment_loader.rb#6 + def library; end +end + +# source://rbs//lib/rbs/environment_walker.rb#4 +class RBS::EnvironmentWalker + include ::TSort + + # @return [EnvironmentWalker] a new instance of EnvironmentWalker + # + # source://rbs//lib/rbs/environment_walker.rb#11 + def initialize(env:); end + + # source://rbs//lib/rbs/environment_walker.rb#16 + def builder; end + + # source://rbs//lib/rbs/environment_walker.rb#99 + def each_type_name(type, &block); end + + # source://rbs//lib/rbs/environment_walker.rb#105 + def each_type_node(type, &block); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/environment_walker.rb#9 + def env; end + + # source://rbs//lib/rbs/environment_walker.rb#20 + def only_ancestors!(only = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment_walker.rb#25 + def only_ancestors?; end + + # source://rbs//lib/rbs/environment_walker.rb#44 + def tsort_each_child(node, &block); end + + # source://rbs//lib/rbs/environment_walker.rb#31 + def tsort_each_node(&block); end +end + +# source://rbs//lib/rbs/environment_walker.rb#5 +class RBS::EnvironmentWalker::InstanceNode < ::Struct + def type_name; end + def type_name=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/environment_walker.rb#6 +class RBS::EnvironmentWalker::SingletonNode < ::Struct + def type_name; end + def type_name=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/environment_walker.rb#7 +class RBS::EnvironmentWalker::TypeNameNode < ::Struct + def type_name; end + def type_name=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/factory.rb#4 +class RBS::Factory + # source://rbs//lib/rbs/factory.rb#5 + def type_name(string); end +end + +# source://rbs//lib/rbs/file_finder.rb#4 +module RBS::FileFinder + class << self + # source://rbs//lib/rbs/file_finder.rb#7 + def each_file(path, skip_hidden:, immediate: T.unsafe(nil), &block); end + end +end + +# source://rbs//lib/rbs/errors.rb#383 +class RBS::GenericParameterMismatchError < ::RBS::LoadingError + # @return [GenericParameterMismatchError] a new instance of GenericParameterMismatchError + # + # source://rbs//lib/rbs/errors.rb#387 + def initialize(name:, decl:); end + + # Returns the value of attribute decl. + # + # source://rbs//lib/rbs/errors.rb#385 + def decl; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/errors.rb#384 + def name; end +end + +# source://rbs//lib/rbs/errors.rb#529 +class RBS::InconsistentClassModuleAliasError < ::RBS::BaseError + include ::RBS::DetailedMessageable + + # @return [InconsistentClassModuleAliasError] a new instance of InconsistentClassModuleAliasError + # + # source://rbs//lib/rbs/errors.rb#534 + def initialize(entry); end + + # Returns the value of attribute alias_entry. + # + # source://rbs//lib/rbs/errors.rb#532 + def alias_entry; end + + # source://rbs//lib/rbs/errors.rb#548 + def location; end +end + +# source://rbs//lib/rbs/errors.rb#187 +class RBS::InheritModuleError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [InheritModuleError] a new instance of InheritModuleError + # + # source://rbs//lib/rbs/errors.rb#192 + def initialize(super_decl); end + + # source://rbs//lib/rbs/errors.rb#198 + def location; end + + # Returns the value of attribute super_decl. + # + # source://rbs//lib/rbs/errors.rb#190 + def super_decl; end + + class << self + # source://rbs//lib/rbs/errors.rb#202 + def check!(super_decl, env:); end + end +end + +# source://rbs//lib/rbs/errors.rb#354 +class RBS::InvalidOverloadMethodError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [InvalidOverloadMethodError] a new instance of InvalidOverloadMethodError + # + # source://rbs//lib/rbs/errors.rb#362 + def initialize(type_name:, method_name:, kind:, members:); end + + # Returns the value of attribute kind. + # + # source://rbs//lib/rbs/errors.rb#359 + def kind; end + + # source://rbs//lib/rbs/errors.rb#378 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/errors.rb#360 + def members; end + + # Returns the value of attribute method_name. + # + # source://rbs//lib/rbs/errors.rb#358 + def method_name; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#357 + def type_name; end +end + +# source://rbs//lib/rbs/errors.rb#67 +class RBS::InvalidTypeApplicationError < ::RBS::DefinitionError + # @return [InvalidTypeApplicationError] a new instance of InvalidTypeApplicationError + # + # source://rbs//lib/rbs/errors.rb#74 + def initialize(type_name:, args:, params:, location:); end + + # Returns the value of attribute args. + # + # source://rbs//lib/rbs/errors.rb#69 + def args; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#72 + def location; end + + # Returns the value of attribute params. + # + # source://rbs//lib/rbs/errors.rb#70 + def params; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#68 + def type_name; end + + # Returns the value of attribute type_params. + # + # source://rbs//lib/rbs/errors.rb#71 + def type_params; end + + class << self + # source://rbs//lib/rbs/errors.rb#83 + def check!(type_name:, args:, params:, location:); end + + # source://rbs//lib/rbs/errors.rb#92 + def check2!(env:, type_name:, args:, location:); end + end +end + +# source://rbs//lib/rbs/errors.rb#407 +class RBS::InvalidVarianceAnnotationError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [InvalidVarianceAnnotationError] a new instance of InvalidVarianceAnnotationError + # + # source://rbs//lib/rbs/errors.rb#414 + def initialize(type_name:, param:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#412 + def location; end + + # Returns the value of attribute param. + # + # source://rbs//lib/rbs/errors.rb#411 + def param; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#410 + def type_name; end +end + +# source://rbs//lib/rbs/errors.rb#20 +class RBS::LoadingError < ::RBS::BaseError; end + +# source://rbs//lib/rbs/location_aux.rb#4 +class RBS::Location + def initialize(_arg0, _arg1, _arg2); end + + # source://rbs//lib/rbs/location_aux.rb#71 + def ==(other); end + + def [](_arg0); end + def _add_optional_child(_arg0, _arg1, _arg2); end + def _add_optional_no_child(_arg0); end + def _add_required_child(_arg0, _arg1, _arg2); end + def _optional_keys; end + def _required_keys; end + + # source://rbs//lib/rbs/location_aux.rb#102 + def add_optional_child(name, range); end + + # source://rbs//lib/rbs/location_aux.rb#98 + def add_required_child(name, range); end + + def aref(_arg0); end + def buffer; end + + # source://rbs//lib/rbs/location_aux.rb#110 + def each_optional_key(&block); end + + # source://rbs//lib/rbs/location_aux.rb#118 + def each_required_key(&block); end + + # source://rbs//lib/rbs/location_aux.rb#47 + def end_column; end + + # source://rbs//lib/rbs/location_aux.rb#43 + def end_line; end + + # source://rbs//lib/rbs/location_aux.rb#55 + def end_loc; end + + def end_pos; end + + # source://rbs//lib/rbs/location_aux.rb#5 + def inspect; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/location_aux.rb#126 + def key?(name); end + + # source://rbs//lib/rbs/location_aux.rb#31 + def name; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/location_aux.rb#130 + def optional_key?(name); end + + # source://rbs//lib/rbs/location_aux.rb#59 + def range; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/location_aux.rb#134 + def required_key?(name); end + + # source://rbs//lib/rbs/location_aux.rb#63 + def source; end + + # source://rbs//lib/rbs/location_aux.rb#39 + def start_column; end + + # source://rbs//lib/rbs/location_aux.rb#35 + def start_line; end + + # source://rbs//lib/rbs/location_aux.rb#51 + def start_loc; end + + def start_pos; end + + # source://rbs//lib/rbs/location_aux.rb#78 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/location_aux.rb#67 + def to_s; end + + private + + def initialize_copy(_arg0); end + + class << self + # source://rbs//lib/rbs/location_aux.rb#16 + def new(buffer_ = T.unsafe(nil), start_pos_ = T.unsafe(nil), end_pos_ = T.unsafe(nil), buffer: T.unsafe(nil), start_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end + + # source://rbs//lib/rbs/location_aux.rb#94 + def to_string(location, default: T.unsafe(nil)); end + end +end + +# source://rbs//lib/rbs/location_aux.rb#29 +RBS::Location::WithChildren = RBS::Location + +# source://rbs//lib/rbs/locator.rb#4 +class RBS::Locator + # @return [Locator] a new instance of Locator + # + # source://rbs//lib/rbs/locator.rb#7 + def initialize(buffer:, dirs:, decls:); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/locator.rb#5 + def buffer; end + + # Returns the value of attribute decls. + # + # source://rbs//lib/rbs/locator.rb#5 + def decls; end + + # Returns the value of attribute dirs. + # + # source://rbs//lib/rbs/locator.rb#5 + def dirs; end + + # source://rbs//lib/rbs/locator.rb#13 + def find(line:, column:); end + + # source://rbs//lib/rbs/locator.rb#29 + def find2(line:, column:); end + + # source://rbs//lib/rbs/locator.rb#58 + def find_in_decl(pos, decl:, array:); end + + # source://rbs//lib/rbs/locator.rb#42 + def find_in_directive(pos, dir, array); end + + # source://rbs//lib/rbs/locator.rb#206 + def find_in_loc(pos, location:, array:); end + + # source://rbs//lib/rbs/locator.rb#129 + def find_in_member(pos, member:, array:); end + + # source://rbs//lib/rbs/locator.rb#152 + def find_in_method_type(pos, method_type:, array:); end + + # source://rbs//lib/rbs/locator.rb#190 + def find_in_type(pos, type:, array:); end + + # source://rbs//lib/rbs/locator.rb#170 + def find_in_type_param(pos, type_param:, array:); end + + # source://rbs//lib/rbs/locator.rb#233 + def test_loc(pos, location:); end +end + +# source://rbs//lib/rbs/errors.rb#4 +module RBS::MethodNameHelper + # source://rbs//lib/rbs/errors.rb#5 + def method_name_string; end +end + +# source://rbs//lib/rbs/method_type.rb#4 +class RBS::MethodType + # @return [MethodType] a new instance of MethodType + # + # source://rbs//lib/rbs/method_type.rb#10 + def initialize(type_params:, type:, block:, location:); end + + # source://rbs//lib/rbs/method_type.rb#17 + def ==(other); end + + # Returns the value of attribute block. + # + # source://rbs//lib/rbs/method_type.rb#7 + def block; end + + # source://rbs//lib/rbs/method_type.rb#84 + def each_type(&block); end + + # source://rbs//lib/rbs/method_type.rb#57 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/method_type.rb#125 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/method_type.rb#121 + def has_self_type?; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/method_type.rb#8 + def location; end + + # source://rbs//lib/rbs/method_type.rb#63 + def map_type(&block); end + + # source://rbs//lib/rbs/method_type.rb#72 + def map_type_bound(&block); end + + # source://rbs//lib/rbs/method_type.rb#33 + def sub(s); end + + # source://rbs//lib/rbs/method_type.rb#24 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/method_type.rb#98 + def to_s; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/method_type.rb#6 + def type; end + + # source://rbs//lib/rbs/method_type.rb#117 + def type_param_names; end + + # Returns the value of attribute type_params. + # + # source://rbs//lib/rbs/method_type.rb#5 + def type_params; end + + # source://rbs//lib/rbs/method_type.rb#48 + def update(type_params: T.unsafe(nil), type: T.unsafe(nil), block: T.unsafe(nil), location: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/method_type.rb#129 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/errors.rb#443 +class RBS::MixinClassError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [MixinClassError] a new instance of MixinClassError + # + # source://rbs//lib/rbs/errors.rb#449 + def initialize(type_name:, member:); end + + # source://rbs//lib/rbs/errors.rb#456 + def location; end + + # Returns the value of attribute member. + # + # source://rbs//lib/rbs/errors.rb#447 + def member; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#446 + def type_name; end + + private + + # source://rbs//lib/rbs/errors.rb#468 + def mixin_name; end + + class << self + # source://rbs//lib/rbs/errors.rb#460 + def check!(type_name:, env:, member:); end + end +end + +# source://rbs//lib/rbs/namespace.rb#4 +class RBS::Namespace + # @return [Namespace] a new instance of Namespace + # + # source://rbs//lib/rbs/namespace.rb#7 + def initialize(path:, absolute:); end + + # source://rbs//lib/rbs/namespace.rb#20 + def +(other); end + + # source://rbs//lib/rbs/namespace.rb#59 + def ==(other); end + + # source://rbs//lib/rbs/namespace.rb#47 + def absolute!; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/namespace.rb#39 + def absolute?; end + + # source://rbs//lib/rbs/namespace.rb#28 + def append(component); end + + # source://rbs//lib/rbs/namespace.rb#101 + def ascend; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/namespace.rb#55 + def empty?; end + + # source://rbs//lib/rbs/namespace.rb#59 + def eql?(other); end + + # source://rbs//lib/rbs/namespace.rb#65 + def hash; end + + # source://rbs//lib/rbs/namespace.rb#32 + def parent; end + + # Returns the value of attribute path. + # + # source://rbs//lib/rbs/namespace.rb#5 + def path; end + + # source://rbs//lib/rbs/namespace.rb#51 + def relative!; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/namespace.rb#43 + def relative?; end + + # source://rbs//lib/rbs/namespace.rb#69 + def split; end + + # source://rbs//lib/rbs/namespace.rb#75 + def to_s; end + + # source://rbs//lib/rbs/namespace.rb#84 + def to_type_name; end + + class << self + # source://rbs//lib/rbs/namespace.rb#12 + def empty; end + + # source://rbs//lib/rbs/namespace.rb#93 + def parse(string); end + + # source://rbs//lib/rbs/namespace.rb#16 + def root; end + end +end + +# source://rbs//lib/rbs/errors.rb#229 +class RBS::NoMixinFoundError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [NoMixinFoundError] a new instance of NoMixinFoundError + # + # source://rbs//lib/rbs/errors.rb#235 + def initialize(type_name:, member:); end + + # source://rbs//lib/rbs/errors.rb#242 + def location; end + + # Returns the value of attribute member. + # + # source://rbs//lib/rbs/errors.rb#233 + def member; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#232 + def type_name; end + + class << self + # source://rbs//lib/rbs/errors.rb#246 + def check!(type_name, env:, member:); end + end +end + +# source://rbs//lib/rbs/errors.rb#210 +class RBS::NoSelfTypeFoundError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [NoSelfTypeFoundError] a new instance of NoSelfTypeFoundError + # + # source://rbs//lib/rbs/errors.rb#216 + def initialize(type_name:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#214 + def location; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#213 + def type_name; end + + class << self + # source://rbs//lib/rbs/errors.rb#223 + def check!(self_type, env:); end + end +end + +# source://rbs//lib/rbs/errors.rb#167 +class RBS::NoSuperclassFoundError < ::RBS::DefinitionError + # @return [NoSuperclassFoundError] a new instance of NoSuperclassFoundError + # + # source://rbs//lib/rbs/errors.rb#171 + def initialize(type_name:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#169 + def location; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#168 + def type_name; end + + class << self + # source://rbs//lib/rbs/errors.rb#178 + def check!(type_name, env:, location:); end + end +end + +# source://rbs//lib/rbs/errors.rb#148 +class RBS::NoTypeFoundError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [NoTypeFoundError] a new instance of NoTypeFoundError + # + # source://rbs//lib/rbs/errors.rb#154 + def initialize(type_name:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#152 + def location; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#151 + def type_name; end + + class << self + # source://rbs//lib/rbs/errors.rb#161 + def check!(type_name, env:, location:); end + end +end + +# source://rbs//lib/rbs/errors.rb#500 +class RBS::NonregularTypeAliasError < ::RBS::BaseError + include ::RBS::DetailedMessageable + + # @return [NonregularTypeAliasError] a new instance of NonregularTypeAliasError + # + # source://rbs//lib/rbs/errors.rb#506 + def initialize(diagnostic:, location:); end + + # Returns the value of attribute diagnostic. + # + # source://rbs//lib/rbs/errors.rb#503 + def diagnostic; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#504 + def location; end +end + +# source://rbs//lib/rbs/parser/lex_result.rb#4 +class RBS::Parser + class << self + def _lex(_arg0, _arg1); end + def _parse_method_type(_arg0, _arg1, _arg2, _arg3, _arg4); end + def _parse_signature(_arg0, _arg1); end + def _parse_type(_arg0, _arg1, _arg2, _arg3, _arg4); end + + # source://rbs//lib/rbs/parser_aux.rb#34 + def buffer(source); end + + # source://rbs//lib/rbs/parser_aux.rb#25 + def lex(source); end + + # source://rbs//lib/rbs/parser_aux.rb#13 + def parse_method_type(source, range: T.unsafe(nil), variables: T.unsafe(nil), require_eof: T.unsafe(nil)); end + + # source://rbs//lib/rbs/parser_aux.rb#18 + def parse_signature(source); end + + # source://rbs//lib/rbs/parser_aux.rb#8 + def parse_type(source, range: T.unsafe(nil), variables: T.unsafe(nil), require_eof: T.unsafe(nil)); end + end +end + +# source://rbs//lib/rbs/parser_aux.rb#43 +RBS::Parser::KEYWORDS = T.let(T.unsafe(nil), Hash) + +# source://rbs//lib/rbs/parser/lex_result.rb#5 +class RBS::Parser::LexResult + # @return [LexResult] a new instance of LexResult + # + # source://rbs//lib/rbs/parser/lex_result.rb#9 + def initialize(buffer:, value:); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/parser/lex_result.rb#6 + def buffer; end + + # Returns the value of attribute value. + # + # source://rbs//lib/rbs/parser/lex_result.rb#7 + def value; end +end + +# source://rbs//lib/rbs/parser/token.rb#5 +class RBS::Parser::Token + # @return [Token] a new instance of Token + # + # source://rbs//lib/rbs/parser/token.rb#9 + def initialize(type:, location:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/parser/token.rb#18 + def comment?; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/parser/token.rb#7 + def location; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/parser/token.rb#6 + def type; end + + # source://rbs//lib/rbs/parser/token.rb#14 + def value; end +end + +# source://rbs//lib/rbs/errors.rb#51 +class RBS::ParsingError < ::RBS::BaseError + include ::RBS::DetailedMessageable + + # @return [ParsingError] a new instance of ParsingError + # + # source://rbs//lib/rbs/errors.rb#58 + def initialize(location, error_message, token_type); end + + # Returns the value of attribute error_message. + # + # source://rbs//lib/rbs/errors.rb#55 + def error_message; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#54 + def location; end + + # Returns the value of attribute token_type. + # + # source://rbs//lib/rbs/errors.rb#56 + def token_type; end +end + +# source://rbs//lib/rbs/prototype/helpers.rb#4 +module RBS::Prototype; end + +# source://rbs//lib/rbs/prototype/helpers.rb#5 +module RBS::Prototype::Helpers + private + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/helpers.rb#96 + def any_node?(node, nodes: T.unsafe(nil), &block); end + + # NOTE: args_node may be a nil by a bug + # https://bugs.ruby-lang.org/issues/17495 + # + # source://rbs//lib/rbs/prototype/helpers.rb#120 + def args_from_node(args_node); end + + # source://rbs//lib/rbs/prototype/helpers.rb#8 + def block_from_body(node); end + + # source://rbs//lib/rbs/prototype/helpers.rb#84 + def each_child(node, &block); end + + # source://rbs//lib/rbs/prototype/helpers.rb#88 + def each_node(nodes); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/helpers.rb#108 + def keyword_hash?(node); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/helpers.rb#124 + def symbol_literal_node?(node); end + + # source://rbs//lib/rbs/prototype/helpers.rb#135 + def untyped; end +end + +# source://rbs//lib/rbs/prototype/node_usage.rb#5 +class RBS::Prototype::NodeUsage + include ::RBS::Prototype::Helpers + + # @return [NodeUsage] a new instance of NodeUsage + # + # source://rbs//lib/rbs/prototype/node_usage.rb#10 + def initialize(node); end + + # source://rbs//lib/rbs/prototype/node_usage.rb#25 + def calculate(node, conditional:); end + + # Returns the value of attribute conditional_nodes. + # + # source://rbs//lib/rbs/prototype/node_usage.rb#8 + def conditional_nodes; end + + # source://rbs//lib/rbs/prototype/node_usage.rb#17 + def each_conditional_node(&block); end +end + +# source://rbs//lib/rbs/prototype/rb.rb#5 +class RBS::Prototype::RB + include ::RBS::Prototype::Helpers + + # @return [RB] a new instance of RB + # + # source://rbs//lib/rbs/prototype/rb.rb#45 + def initialize; end + + # source://rbs//lib/rbs/prototype/rb.rb#560 + def block_type(node); end + + # source://rbs//lib/rbs/prototype/rb.rb#540 + def body_type(node); end + + # source://rbs//lib/rbs/prototype/rb.rb#455 + def const_to_name(node, context:); end + + # source://rbs//lib/rbs/prototype/rb.rb#432 + def const_to_name!(node, context: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/rb.rb#771 + def current_accessibility(decls, index = T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/rb.rb#49 + def decls; end + + # source://rbs//lib/rbs/prototype/rb.rb#811 + def find_def_index_by_name(decls, name); end + + # source://rbs//lib/rbs/prototype/rb.rb#535 + def function_return_type_from_body(node); end + + # source://rbs//lib/rbs/prototype/rb.rb#477 + def function_type_from_body(node, def_name); end + + # source://rbs//lib/rbs/prototype/rb.rb#553 + def if_unless_type(node); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/rb.rb#807 + def is_accessibility?(decl); end + + # source://rbs//lib/rbs/prototype/rb.rb#466 + def literal_to_symbol(node); end + + # source://rbs//lib/rbs/prototype/rb.rb#574 + def literal_to_type(node); end + + # backward compatible + # + # source://rbs//lib/rbs/prototype/rb.rb#718 + def node_type(node, default: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/rb.rb#718 + def param_type(node, default: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/rb.rb#75 + def parse(string); end + + # source://rbs//lib/rbs/prototype/rb.rb#763 + def private; end + + # source://rbs//lib/rbs/prototype/rb.rb#107 + def process(node, decls:, comments:, context:); end + + # source://rbs//lib/rbs/prototype/rb.rb#426 + def process_children(node, decls:, comments:, context:); end + + # source://rbs//lib/rbs/prototype/rb.rb#767 + def public; end + + # source://rbs//lib/rbs/prototype/rb.rb#698 + def range_element_type(types); end + + # source://rbs//lib/rbs/prototype/rb.rb#781 + def remove_unnecessary_accessibility_methods!(decls); end + + # source://rbs//lib/rbs/prototype/rb.rb#829 + def sort_members!(decls); end + + # Returns the value of attribute source_decls. + # + # source://rbs//lib/rbs/prototype/rb.rb#42 + def source_decls; end + + # Returns the value of attribute toplevel_members. + # + # source://rbs//lib/rbs/prototype/rb.rb#43 + def toplevel_members; end + + # source://rbs//lib/rbs/prototype/rb.rb#687 + def types_to_union_type(types); end +end + +# source://rbs//lib/rbs/prototype/rb.rb#8 +class RBS::Prototype::RB::Context < ::Struct + # source://rbs//lib/rbs/prototype/rb.rb#25 + def attribute_kind; end + + # source://rbs//lib/rbs/prototype/rb.rb#33 + def enter_namespace(namespace); end + + # source://rbs//lib/rbs/prototype/rb.rb#15 + def method_kind; end + + # source://rbs//lib/rbs/prototype/rb.rb#37 + def update(module_function: T.unsafe(nil), singleton: T.unsafe(nil), in_def: T.unsafe(nil)); end + + class << self + # source://rbs//lib/rbs/prototype/rb.rb#11 + def initial(namespace: T.unsafe(nil)); end + end +end + +# source://rbs//lib/rbs/prototype/rbi.rb#5 +class RBS::Prototype::RBI + include ::RBS::Prototype::Helpers + + # @return [RBI] a new instance of RBI + # + # source://rbs//lib/rbs/prototype/rbi.rb#12 + def initialize; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/rbi.rb#561 + def call_node?(node, name:, receiver: T.unsafe(nil), args: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/rbi.rb#565 + def const_to_name(node); end + + # source://rbs//lib/rbs/prototype/rbi.rb#90 + def current_module; end + + # source://rbs//lib/rbs/prototype/rbi.rb#94 + def current_module!; end + + # source://rbs//lib/rbs/prototype/rbi.rb#46 + def current_namespace; end + + # Returns the value of attribute decls. + # + # source://rbs//lib/rbs/prototype/rbi.rb#8 + def decls; end + + # source://rbs//lib/rbs/prototype/rbi.rb#601 + def each_arg(array, &block); end + + # source://rbs//lib/rbs/prototype/rbi.rb#615 + def each_child(node); end + + # source://rbs//lib/rbs/prototype/rbi.rb#112 + def join_comments(nodes, comments); end + + # Returns the value of attribute last_sig. + # + # source://rbs//lib/rbs/prototype/rbi.rb#10 + def last_sig; end + + # source://rbs//lib/rbs/prototype/rbi.rb#279 + def method_type(args_node, type_node, variables:, overloads:); end + + # Returns the value of attribute modules. + # + # source://rbs//lib/rbs/prototype/rbi.rb#9 + def modules; end + + # source://rbs//lib/rbs/prototype/rbi.rb#42 + def nested_name(name); end + + # source://rbs//lib/rbs/prototype/rbi.rb#623 + def node_to_hash(node); end + + # source://rbs//lib/rbs/prototype/rbi.rb#18 + def parse(string); end + + # source://rbs//lib/rbs/prototype/rbi.rb#351 + def parse_params(args_node, args, method_type, variables:, overloads:); end + + # source://rbs//lib/rbs/prototype/rbi.rb#106 + def pop_sig; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/rbi.rb#553 + def proc_type?(type_node); end + + # source://rbs//lib/rbs/prototype/rbi.rb#117 + def process(node, comments:, outer: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/rbi.rb#52 + def push_class(name, super_class, comment:); end + + # source://rbs//lib/rbs/prototype/rbi.rb#71 + def push_module(name, comment:); end + + # source://rbs//lib/rbs/prototype/rbi.rb#98 + def push_sig(node); end + + # source://rbs//lib/rbs/prototype/rbi.rb#476 + def type_of(type_node, variables:); end + + # source://rbs//lib/rbs/prototype/rbi.rb#489 + def type_of0(type_node, variables:); end +end + +# source://rbs//lib/rbs/prototype/runtime/helpers.rb#5 +class RBS::Prototype::Runtime + include ::RBS::Prototype::Helpers + include ::RBS::Prototype::Runtime::Helpers + + # @return [Runtime] a new instance of Runtime + # + # source://rbs//lib/rbs/prototype/runtime.rb#71 + def initialize(patterns:, env:, merge:, todo: T.unsafe(nil), owners_included: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/runtime.rb#651 + def block_from_ast_of(method); end + + # source://rbs//lib/rbs/prototype/runtime.rb#101 + def builder; end + + # source://rbs//lib/rbs/prototype/runtime.rb#109 + def decls; end + + # Generate/find outer module declarations + # This is broken down into another method to comply with `DRY` + # This generates/finds declarations in nested form & returns the last array of declarations + # + # source://rbs//lib/rbs/prototype/runtime.rb#580 + def ensure_outer_module_declarations(mod); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/prototype/runtime.rb#65 + def env; end + + # source://rbs//lib/rbs/prototype/runtime.rb#485 + def generate_class(mod); end + + # source://rbs//lib/rbs/prototype/runtime.rb#423 + def generate_constants(mod, decls); end + + # source://rbs//lib/rbs/prototype/runtime.rb#299 + def generate_methods(mod, module_name, members); end + + # source://rbs//lib/rbs/prototype/runtime.rb#562 + def generate_mixin(mod, decl, type_name, type_name_absolute); end + + # source://rbs//lib/rbs/prototype/runtime.rb#524 + def generate_module(mod); end + + # source://rbs//lib/rbs/prototype/runtime.rb#470 + def generate_super_class(mod); end + + # Returns the value of attribute merge. + # + # source://rbs//lib/rbs/prototype/runtime.rb#66 + def merge; end + + # source://rbs//lib/rbs/prototype/runtime.rb#240 + def merge_rbs(module_name, members, instance: T.unsafe(nil), singleton: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/runtime.rb#171 + def method_type(method); end + + # Returns the value of attribute outline. + # + # source://rbs//lib/rbs/prototype/runtime.rb#69 + def outline; end + + # Sets the attribute outline + # + # @param value the value to set the attribute outline to. + # + # source://rbs//lib/rbs/prototype/runtime.rb#69 + def outline=(_arg0); end + + # Returns the value of attribute owners_included. + # + # source://rbs//lib/rbs/prototype/runtime.rb#68 + def owners_included; end + + # source://rbs//lib/rbs/prototype/runtime.rb#105 + def parse(file); end + + # Returns the value of attribute patterns. + # + # source://rbs//lib/rbs/prototype/runtime.rb#64 + def patterns; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#84 + def target?(const); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#286 + def target_method?(mod, instance: T.unsafe(nil), singleton: T.unsafe(nil)); end + + # Returns the value of attribute todo. + # + # source://rbs//lib/rbs/prototype/runtime.rb#67 + def todo; end + + # source://rbs//lib/rbs/prototype/runtime.rb#97 + def todo_object; end + + # source://rbs//lib/rbs/prototype/runtime.rb#634 + def type_args(type_name); end + + # source://rbs//lib/rbs/prototype/runtime.rb#642 + def type_params(mod); end + + private + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#413 + def can_alias?(mod, method); end + + # source://rbs//lib/rbs/prototype/runtime.rb#129 + def each_mixined_module(type_name, mod); end + + # source://rbs//lib/rbs/prototype/runtime.rb#138 + def each_mixined_module_one(type_name, mod); end +end + +# source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#213 +class RBS::Prototype::Runtime::DataGenerator < ::RBS::Prototype::Runtime::ValueObjectBase + private + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#229 + def add_decl_members(decl); end + + # def self.new: (untyped foo, untyped bar) -> instance + # | (foo: untyped, bar: untyped) -> instance + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#237 + def build_s_new; end + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#225 + def build_super_class; end + + class << self + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#214 + def generatable?(target); end + end +end + +# source://rbs//lib/rbs/prototype/runtime/helpers.rb#6 +module RBS::Prototype::Runtime::Helpers + private + + # source://rbs//lib/rbs/prototype/runtime/helpers.rb#19 + def const_name(const); end + + # source://rbs//lib/rbs/prototype/runtime/helpers.rb#15 + def const_name!(const); end + + # Returns the exact name & not compactly declared name + # + # source://rbs//lib/rbs/prototype/runtime/helpers.rb#10 + def only_name(mod); end + + # source://rbs//lib/rbs/prototype/runtime/helpers.rb#37 + def to_type_name(name, full_name: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/runtime/helpers.rb#53 + def untyped; end +end + +# source://rbs//lib/rbs/prototype/runtime/reflection.rb#6 +module RBS::Prototype::Runtime::Reflection + class << self + # source://rbs//lib/rbs/prototype/runtime/reflection.rb#12 + def constants_of(mod, inherit = T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/runtime/reflection.rb#7 + def object_class(value); end + end +end + +# source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#91 +class RBS::Prototype::Runtime::StructGenerator < ::RBS::Prototype::Runtime::ValueObjectBase + private + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#108 + def add_decl_members(decl); end + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#165 + def build_overload_for_keyword_arguments; end + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#151 + def build_overload_for_positional_arguments; end + + # def self.keyword_init?: () -> bool? + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#180 + def build_s_keyword_init_p; end + + # def self.new: (?untyped foo, ?untyped bar) -> instance + # | (?foo: untyped, ?bar: untyped) -> instance + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#117 + def build_s_new; end + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#104 + def build_super_class; end + + class << self + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#92 + def generatable?(target); end + end +end + +# source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#102 +RBS::Prototype::Runtime::StructGenerator::CAN_CALL_KEYWORD_INIT_P = T.let(T.unsafe(nil), TrueClass) + +# source://rbs//lib/rbs/prototype/runtime.rb#10 +class RBS::Prototype::Runtime::Todo + # @return [Todo] a new instance of Todo + # + # source://rbs//lib/rbs/prototype/runtime.rb#11 + def initialize(builder:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#42 + def skip_constant?(module_name:, name:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#33 + def skip_instance_method?(module_name:, method:, accessibility:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#15 + def skip_mixin?(type_name:, module_name:, mixin_class:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#24 + def skip_singleton_method?(module_name:, method:, accessibility:); end + + private + + # source://rbs//lib/rbs/prototype/runtime.rb#49 + def mixin_decls(type_name); end +end + +# source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#8 +class RBS::Prototype::Runtime::ValueObjectBase + include ::RBS::Prototype::Runtime::Helpers + + # @return [ValueObjectBase] a new instance of ValueObjectBase + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#11 + def initialize(target_class); end + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#15 + def build_decl; end + + private + + # attr_accessor foo: untyped + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#74 + def build_member_accessors(ast_members_class); end + + # def self.members: () -> [ :foo, :bar ] + # def members: () -> [ :foo, :bar ] + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#35 + def build_s_members; end +end + +# source://rbs//lib/rdoc_plugin/parser.rb#6 +module RBS::RDocPlugin; end + +# source://rbs//lib/rdoc_plugin/parser.rb#7 +class RBS::RDocPlugin::Parser + # @return [Parser] a new instance of Parser + # + # source://rbs//lib/rdoc_plugin/parser.rb#11 + def initialize(top_level, content); end + + # Returns the value of attribute content. + # + # source://rbs//lib/rdoc_plugin/parser.rb#9 + def content; end + + # Sets the attribute content + # + # @param value the value to set the attribute content to. + # + # source://rbs//lib/rdoc_plugin/parser.rb#9 + def content=(_arg0); end + + # source://rbs//lib/rdoc_plugin/parser.rb#94 + def parse_attr_decl(decl:, context:, outer_name: T.unsafe(nil)); end + + # source://rbs//lib/rdoc_plugin/parser.rb#53 + def parse_class_decl(decl:, context:, outer_name: T.unsafe(nil)); end + + # source://rbs//lib/rdoc_plugin/parser.rb#67 + def parse_constant_decl(decl:, context:, outer_name: T.unsafe(nil)); end + + # source://rbs//lib/rdoc_plugin/parser.rb#125 + def parse_extend_decl(decl:, context:, outer_name: T.unsafe(nil)); end + + # source://rbs//lib/rdoc_plugin/parser.rb#109 + def parse_include_decl(decl:, context:, outer_name: T.unsafe(nil)); end + + # source://rbs//lib/rdoc_plugin/parser.rb#24 + def parse_member(decl:, context:, outer_name: T.unsafe(nil)); end + + # source://rbs//lib/rdoc_plugin/parser.rb#88 + def parse_method_alias_decl(decl:, context:, outer_name: T.unsafe(nil)); end + + # source://rbs//lib/rdoc_plugin/parser.rb#73 + def parse_method_decl(decl:, context:, outer_name: T.unsafe(nil)); end + + # source://rbs//lib/rdoc_plugin/parser.rb#60 + def parse_module_decl(decl:, context:, outer_name: T.unsafe(nil)); end + + # source://rbs//lib/rdoc_plugin/parser.rb#16 + def scan; end + + # Returns the value of attribute top_level. + # + # source://rbs//lib/rdoc_plugin/parser.rb#9 + def top_level; end + + # Sets the attribute top_level + # + # @param value the value to set the attribute top_level to. + # + # source://rbs//lib/rdoc_plugin/parser.rb#9 + def top_level=(_arg0); end + + private + + # source://rbs//lib/rdoc_plugin/parser.rb#149 + def comment_string(with_comment); end + + # source://rbs//lib/rdoc_plugin/parser.rb#143 + def construct_comment(context:, comment:); end + + # source://rbs//lib/rdoc_plugin/parser.rb#154 + def fully_qualified_name(outer_name:, decl:); end +end + +# source://rbs//lib/rbs/errors.rb#423 +class RBS::RecursiveAliasDefinitionError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [RecursiveAliasDefinitionError] a new instance of RecursiveAliasDefinitionError + # + # source://rbs//lib/rbs/errors.rb#429 + def initialize(type:, defs:); end + + # Returns the value of attribute defs. + # + # source://rbs//lib/rbs/errors.rb#427 + def defs; end + + # source://rbs//lib/rbs/errors.rb#436 + def location; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/errors.rb#426 + def type; end +end + +# source://rbs//lib/rbs/errors.rb#110 +class RBS::RecursiveAncestorError < ::RBS::DefinitionError + # @return [RecursiveAncestorError] a new instance of RecursiveAncestorError + # + # source://rbs//lib/rbs/errors.rb#114 + def initialize(ancestors:, location:); end + + # Returns the value of attribute ancestors. + # + # source://rbs//lib/rbs/errors.rb#111 + def ancestors; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#112 + def location; end + + class << self + # source://rbs//lib/rbs/errors.rb#134 + def check!(self_ancestor, ancestors:, location:); end + end +end + +# source://rbs//lib/rbs/errors.rb#482 +class RBS::RecursiveTypeAliasError < ::RBS::BaseError + include ::RBS::DetailedMessageable + + # @return [RecursiveTypeAliasError] a new instance of RecursiveTypeAliasError + # + # source://rbs//lib/rbs/errors.rb#488 + def initialize(alias_names:, location:); end + + # Returns the value of attribute alias_names. + # + # source://rbs//lib/rbs/errors.rb#485 + def alias_names; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#486 + def location; end + + # source://rbs//lib/rbs/errors.rb#495 + def name; end +end + +# source://rbs//lib/rbs/repository.rb#4 +class RBS::Repository + # @return [Repository] a new instance of Repository + # + # source://rbs//lib/rbs/repository.rb#74 + def initialize(no_stdlib: T.unsafe(nil)); end + + # source://rbs//lib/rbs/repository.rb#98 + def add(dir); end + + # Returns the value of attribute dirs. + # + # source://rbs//lib/rbs/repository.rb#71 + def dirs; end + + # Returns the value of attribute gems. + # + # source://rbs//lib/rbs/repository.rb#72 + def gems; end + + # source://rbs//lib/rbs/repository.rb#108 + def lookup(gem, version); end + + # source://rbs//lib/rbs/repository.rb#113 + def lookup_path(gem, version); end + + class << self + # source://rbs//lib/rbs/repository.rb#83 + def default; end + + # source://rbs//lib/rbs/repository.rb#87 + def find_best_version(version, candidates); end + end +end + +# source://rbs//lib/rbs/repository.rb#5 +RBS::Repository::DEFAULT_STDLIB_ROOT = T.let(T.unsafe(nil), Pathname) + +# source://rbs//lib/rbs/repository.rb#7 +class RBS::Repository::GemRBS + # @return [GemRBS] a new instance of GemRBS + # + # source://rbs//lib/rbs/repository.rb#11 + def initialize(name:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/repository.rb#64 + def empty?; end + + # source://rbs//lib/rbs/repository.rb#59 + def find_best_version(version); end + + # source://rbs//lib/rbs/repository.rb#54 + def latest_version; end + + # source://rbs//lib/rbs/repository.rb#22 + def load!; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/repository.rb#8 + def name; end + + # source://rbs//lib/rbs/repository.rb#49 + def oldest_version; end + + # Returns the value of attribute paths. + # + # source://rbs//lib/rbs/repository.rb#9 + def paths; end + + # source://rbs//lib/rbs/repository.rb#45 + def version_names; end + + # source://rbs//lib/rbs/repository.rb#17 + def versions; end +end + +# source://rbs//lib/rbs/repository.rb#69 +class RBS::Repository::VersionPath < ::Struct + def gem; end + def gem=(_); end + def path; end + def path=(_); end + def version; end + def version=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/resolver/constant_resolver.rb#4 +module RBS::Resolver; end + +# source://rbs//lib/rbs/resolver/constant_resolver.rb#5 +class RBS::Resolver::ConstantResolver + # @return [ConstantResolver] a new instance of ConstantResolver + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#88 + def initialize(builder:); end + + # Returns the value of attribute builder. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#85 + def builder; end + + # Returns the value of attribute child_constants_cache. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#86 + def child_constants_cache; end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#112 + def children(module_name); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#100 + def constants(context); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#178 + def constants_from_ancestors(module_name, constants:); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#163 + def constants_from_context(context, constants:); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#201 + def constants_itself(context, constants:); end + + # Returns the value of attribute context_constants_cache. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#86 + def context_constants_cache; end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#138 + def load_child_constants(name); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#122 + def load_context_constants(context); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#95 + def resolve(name, context:); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#108 + def resolve_child(module_name, name); end + + # Returns the value of attribute table. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#85 + def table; end +end + +# source://rbs//lib/rbs/resolver/constant_resolver.rb#6 +class RBS::Resolver::ConstantResolver::Table + # @return [Table] a new instance of Table + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#10 + def initialize(environment); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#63 + def children(name); end + + # Returns the value of attribute children_table. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#7 + def children_table; end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#67 + def constant(name); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#80 + def constant_of_constant(name, entry); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#71 + def constant_of_module(name, entry); end + + # Returns the value of attribute constants_table. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#8 + def constants_table; end + + # Returns the value of attribute toplevel. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#7 + def toplevel; end +end + +# source://rbs//lib/rbs/resolver/type_name_resolver.rb#5 +class RBS::Resolver::TypeNameResolver + # @return [TypeNameResolver] a new instance of TypeNameResolver + # + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#10 + def initialize(env); end + + # Returns the value of attribute all_names. + # + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#6 + def all_names; end + + # Returns the value of attribute cache. + # + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#7 + def cache; end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#8 + def env; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#84 + def has_name?(full_name); end + + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#51 + def partition(type_name); end + + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#28 + def resolve(type_name, context:); end + + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#69 + def resolve_in(head, context); end + + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#21 + def try_cache(query); end +end + +# source://rbs//lib/rbs/substitution.rb#4 +class RBS::Substitution + # @return [Substitution] a new instance of Substitution + # + # source://rbs//lib/rbs/substitution.rb#12 + def initialize; end + + # source://rbs//lib/rbs/substitution.rb#66 + def +(other); end + + # source://rbs//lib/rbs/substitution.rb#37 + def [](ty); end + + # source://rbs//lib/rbs/substitution.rb#16 + def add(from:, to:); end + + # source://rbs//lib/rbs/substitution.rb#37 + def apply(ty); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/substitution.rb#8 + def empty?; end + + # Returns the value of attribute instance_type. + # + # source://rbs//lib/rbs/substitution.rb#6 + def instance_type; end + + # Sets the attribute instance_type + # + # @param value the value to set the attribute instance_type to. + # + # source://rbs//lib/rbs/substitution.rb#6 + def instance_type=(_arg0); end + + # Returns the value of attribute mapping. + # + # source://rbs//lib/rbs/substitution.rb#5 + def mapping; end + + # source://rbs//lib/rbs/substitution.rb#55 + def without(*vars); end + + class << self + # source://rbs//lib/rbs/substitution.rb#20 + def build(variables, types, instance_type: T.unsafe(nil), &block); end + end +end + +# source://rbs//lib/rbs/subtractor.rb#4 +class RBS::Subtractor + # @return [Subtractor] a new instance of Subtractor + # + # source://rbs//lib/rbs/subtractor.rb#5 + def initialize(minuend, subtrahend); end + + # source://rbs//lib/rbs/subtractor.rb#10 + def call(minuend = T.unsafe(nil), context: T.unsafe(nil)); end + + private + + # source://rbs//lib/rbs/subtractor.rb#177 + def absolute_typename(name, context:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/subtractor.rb#160 + def access_modifier?(decl); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/subtractor.rb#118 + def cvar_exist?(owner, name); end + + # source://rbs//lib/rbs/subtractor.rb#127 + def each_member(owner, &block); end + + # source://rbs//lib/rbs/subtractor.rb#48 + def filter_members(decl, context:); end + + # source://rbs//lib/rbs/subtractor.rb#148 + def filter_redundunt_access_modifiers(decls); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/subtractor.rb#106 + def ivar_exist?(owner, name, kind); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/subtractor.rb#60 + def member_exist?(owner, member, context:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/subtractor.rb#89 + def method_exist?(owner, method_name, kind); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/subtractor.rb#137 + def mixin_exist?(owner, mixin, context:); end + + # source://rbs//lib/rbs/subtractor.rb#186 + def typename_candidates(name, context:); end + + # source://rbs//lib/rbs/subtractor.rb#164 + def update_decl(decl, members:); end +end + +# source://rbs//lib/rbs/errors.rb#343 +class RBS::SuperclassMismatchError < ::RBS::DefinitionError + # @return [SuperclassMismatchError] a new instance of SuperclassMismatchError + # + # source://rbs//lib/rbs/errors.rb#347 + def initialize(name:, entry:); end + + # Returns the value of attribute entry. + # + # source://rbs//lib/rbs/errors.rb#345 + def entry; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/errors.rb#344 + def name; end +end + +# source://rbs//lib/rbs/type_alias_dependency.rb#4 +class RBS::TypeAliasDependency + # @return [TypeAliasDependency] a new instance of TypeAliasDependency + # + # source://rbs//lib/rbs/type_alias_dependency.rb#14 + def initialize(env:); end + + # source://rbs//lib/rbs/type_alias_dependency.rb#27 + def build_dependencies; end + + # Check if an alias type definition is circular & prohibited + # + # @return [Boolean] + # + # source://rbs//lib/rbs/type_alias_dependency.rb#19 + def circular_definition?(alias_name); end + + # A hash which stores the transitive closure + # of the directed graph + # + # source://rbs//lib/rbs/type_alias_dependency.rb#12 + def dependencies; end + + # source://rbs//lib/rbs/type_alias_dependency.rb#57 + def dependencies_of(name); end + + # Direct dependencies corresponds to a directed graph + # with vertices as types and directions based on assignment of types + # + # source://rbs//lib/rbs/type_alias_dependency.rb#9 + def direct_dependencies; end + + # source://rbs//lib/rbs/type_alias_dependency.rb#52 + def direct_dependencies_of(name); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/type_alias_dependency.rb#5 + def env; end + + # source://rbs//lib/rbs/type_alias_dependency.rb#43 + def transitive_closure; end + + private + + # Recursive function to construct transitive closure + # + # source://rbs//lib/rbs/type_alias_dependency.rb#81 + def dependency(start, vertex, nested = T.unsafe(nil)); end + + # Constructs directed graph recursively + # + # source://rbs//lib/rbs/type_alias_dependency.rb#65 + def direct_dependency(type, result = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/type_alias_regularity.rb#4 +class RBS::TypeAliasRegularity + # @return [TypeAliasRegularity] a new instance of TypeAliasRegularity + # + # source://rbs//lib/rbs/type_alias_regularity.rb#16 + def initialize(env:); end + + # source://rbs//lib/rbs/type_alias_regularity.rb#61 + def build_alias_type(name); end + + # Returns the value of attribute builder. + # + # source://rbs//lib/rbs/type_alias_regularity.rb#14 + def builder; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/type_alias_regularity.rb#69 + def compatible_args?(args1, args2); end + + # Returns the value of attribute diagnostics. + # + # source://rbs//lib/rbs/type_alias_regularity.rb#14 + def diagnostics; end + + # source://rbs//lib/rbs/type_alias_regularity.rb#110 + def each_alias_type(type, &block); end + + # source://rbs//lib/rbs/type_alias_regularity.rb#83 + def each_mutual_alias_defs(&block); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/type_alias_regularity.rb#14 + def env; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/type_alias_regularity.rb#79 + def nonregular?(type_name); end + + # source://rbs//lib/rbs/type_alias_regularity.rb#22 + def validate; end + + # source://rbs//lib/rbs/type_alias_regularity.rb#39 + def validate_alias_type(alias_type, names, types); end + + class << self + # source://rbs//lib/rbs/type_alias_regularity.rb#120 + def validate(env:); end + end +end + +# source://rbs//lib/rbs/type_alias_regularity.rb#5 +class RBS::TypeAliasRegularity::Diagnostic + # @return [Diagnostic] a new instance of Diagnostic + # + # source://rbs//lib/rbs/type_alias_regularity.rb#8 + def initialize(type_name:, nonregular_type:); end + + # Returns the value of attribute nonregular_type. + # + # source://rbs//lib/rbs/type_alias_regularity.rb#6 + def nonregular_type; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/type_alias_regularity.rb#6 + def type_name; end +end + +# source://rbs//lib/rbs/type_name.rb#4 +class RBS::TypeName + # @return [TypeName] a new instance of TypeName + # + # source://rbs//lib/rbs/type_name.rb#9 + def initialize(namespace:, name:); end + + # source://rbs//lib/rbs/type_name.rb#79 + def +(other); end + + # source://rbs//lib/rbs/type_name.rb#25 + def ==(other); end + + # source://rbs//lib/rbs/type_name.rb#55 + def absolute!; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/type_name.rb#59 + def absolute?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/type_name.rb#51 + def alias?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/type_name.rb#47 + def class?; end + + # source://rbs//lib/rbs/type_name.rb#25 + def eql?(other); end + + # source://rbs//lib/rbs/type_name.rb#31 + def hash; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/type_name.rb#67 + def interface?; end + + # Returns the value of attribute kind. + # + # source://rbs//lib/rbs/type_name.rb#7 + def kind; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/type_name.rb#6 + def name; end + + # Returns the value of attribute namespace. + # + # source://rbs//lib/rbs/type_name.rb#5 + def namespace; end + + # source://rbs//lib/rbs/type_name.rb#63 + def relative!; end + + # source://rbs//lib/rbs/type_name.rb#75 + def split; end + + # source://rbs//lib/rbs/type_name.rb#39 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/type_name.rb#43 + def to_namespace; end + + # source://rbs//lib/rbs/type_name.rb#35 + def to_s; end + + # source://rbs//lib/rbs/type_name.rb#71 + def with_prefix(namespace); end + + class << self + # source://rbs//lib/rbs/type_name.rb#90 + def parse(string); end + end +end + +# source://rbs//lib/rbs/errors.rb#580 +class RBS::TypeParamDefaultReferenceError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [TypeParamDefaultReferenceError] a new instance of TypeParamDefaultReferenceError + # + # source://rbs//lib/rbs/errors.rb#586 + def initialize(type_param, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#584 + def location; end + + # Returns the value of attribute type_param. + # + # source://rbs//lib/rbs/errors.rb#583 + def type_param; end + + class << self + # source://rbs//lib/rbs/errors.rb#592 + def check!(type_params); end + end +end + +# source://rbs//lib/rbs/types.rb#4 +module RBS::Types; end + +# source://rbs//lib/rbs/types.rb#394 +class RBS::Types::Alias + include ::RBS::Types::Application + + # @return [Alias] a new instance of Alias + # + # source://rbs//lib/rbs/types.rb#399 + def initialize(name:, args:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#395 + def location; end + + # source://rbs//lib/rbs/types.rb#421 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#413 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#409 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#405 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/types.rb#252 +module RBS::Types::Application + # source://rbs//lib/rbs/types.rb#256 + def ==(other); end + + # Returns the value of attribute args. + # + # source://rbs//lib/rbs/types.rb#254 + def args; end + + # source://rbs//lib/rbs/types.rb#282 + def each_type(&block); end + + # source://rbs//lib/rbs/types.rb#256 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#266 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#294 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#290 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#262 + def hash; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/types.rb#253 + def name; end + + # source://rbs//lib/rbs/types.rb#274 + def to_s(level = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#298 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#41 +module RBS::Types::Bases; end + +# source://rbs//lib/rbs/types.rb#109 +class RBS::Types::Bases::Any < ::RBS::Types::Bases::Base + # source://rbs//lib/rbs/types.rb#110 + def to_s(level = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#114 + def todo!; end +end + +# source://rbs//lib/rbs/types.rb#42 +class RBS::Types::Bases::Base + include ::RBS::Types::NoFreeVariables + include ::RBS::Types::NoSubst + include ::RBS::Types::EmptyEachType + include ::RBS::Types::NoTypeName + + # @return [Base] a new instance of Base + # + # source://rbs//lib/rbs/types.rb#45 + def initialize(location:); end + + # source://rbs//lib/rbs/types.rb#49 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#49 + def eql?(other); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#98 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#94 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#53 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#43 + def location; end + + # source://rbs//lib/rbs/types.rb#64 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#69 + def to_s(level = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#102 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#107 +class RBS::Types::Bases::Bool < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#121 +class RBS::Types::Bases::Bottom < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#128 +class RBS::Types::Bases::Class < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#123 +class RBS::Types::Bases::Instance < ::RBS::Types::Bases::Base + # source://rbs//lib/rbs/types.rb#124 + def sub(s); end +end + +# source://rbs//lib/rbs/types.rb#119 +class RBS::Types::Bases::Nil < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#122 +class RBS::Types::Bases::Self < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#120 +class RBS::Types::Bases::Top < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#108 +class RBS::Types::Bases::Void < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#1307 +class RBS::Types::Block + # @return [Block] a new instance of Block + # + # source://rbs//lib/rbs/types.rb#1312 + def initialize(type:, required:, self_type: T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#1318 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#1341 + def map_type(&block); end + + # Returns the value of attribute required. + # + # source://rbs//lib/rbs/types.rb#1309 + def required; end + + # Returns the value of attribute self_type. + # + # source://rbs//lib/rbs/types.rb#1310 + def self_type; end + + # source://rbs//lib/rbs/types.rb#1333 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#1325 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/types.rb#1308 + def type; end +end + +# source://rbs//lib/rbs/types.rb#352 +class RBS::Types::ClassInstance + include ::RBS::Types::Application + + # @return [ClassInstance] a new instance of ClassInstance + # + # source://rbs//lib/rbs/types.rb#357 + def initialize(name:, args:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#353 + def location; end + + # source://rbs//lib/rbs/types.rb#381 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#373 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#367 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#363 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/types.rb#200 +class RBS::Types::ClassSingleton + include ::RBS::Types::NoFreeVariables + include ::RBS::Types::NoSubst + include ::RBS::Types::EmptyEachType + + # @return [ClassSingleton] a new instance of ClassSingleton + # + # source://rbs//lib/rbs/types.rb#204 + def initialize(name:, location:); end + + # source://rbs//lib/rbs/types.rb#209 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#209 + def eql?(other); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#243 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#239 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#215 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#202 + def location; end + + # source://rbs//lib/rbs/types.rb#232 + def map_type_name; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/types.rb#201 + def name; end + + # source://rbs//lib/rbs/types.rb#222 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#226 + def to_s(level = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#247 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#23 +module RBS::Types::EmptyEachType + # source://rbs//lib/rbs/types.rb#24 + def each_type; end + + # source://rbs//lib/rbs/types.rb#32 + def map_type(&block); end +end + +# source://rbs//lib/rbs/types.rb#878 +class RBS::Types::Function + # @return [Function] a new instance of Function + # + # source://rbs//lib/rbs/types.rb#934 + def initialize(required_positionals:, optional_positionals:, rest_positionals:, trailing_positionals:, required_keywords:, optional_keywords:, rest_keywords:, return_type:); end + + # source://rbs//lib/rbs/types.rb#945 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#1016 + def amap(array, &block); end + + # source://rbs//lib/rbs/types.rb#1153 + def drop_head; end + + # source://rbs//lib/rbs/types.rb#1170 + def drop_tail; end + + # source://rbs//lib/rbs/types.rb#1053 + def each_param(&block); end + + # source://rbs//lib/rbs/types.rb#1038 + def each_type; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1124 + def empty?; end + + # source://rbs//lib/rbs/types.rb#945 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#971 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1195 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1183 + def has_keyword?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1191 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#959 + def hash; end + + # source://rbs//lib/rbs/types.rb#1024 + def hmapv(hash, &block); end + + # source://rbs//lib/rbs/types.rb#999 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#1032 + def map_type_name(&block); end + + # Returns the value of attribute optional_keywords. + # + # source://rbs//lib/rbs/types.rb#930 + def optional_keywords; end + + # Returns the value of attribute optional_positionals. + # + # source://rbs//lib/rbs/types.rb#926 + def optional_positionals; end + + # source://rbs//lib/rbs/types.rb#1134 + def param_to_s; end + + # Returns the value of attribute required_keywords. + # + # source://rbs//lib/rbs/types.rb#929 + def required_keywords; end + + # Returns the value of attribute required_positionals. + # + # source://rbs//lib/rbs/types.rb#925 + def required_positionals; end + + # Returns the value of attribute rest_keywords. + # + # source://rbs//lib/rbs/types.rb#931 + def rest_keywords; end + + # Returns the value of attribute rest_positionals. + # + # source://rbs//lib/rbs/types.rb#927 + def rest_positionals; end + + # source://rbs//lib/rbs/types.rb#1149 + def return_to_s; end + + # Returns the value of attribute return_type. + # + # source://rbs//lib/rbs/types.rb#932 + def return_type; end + + # source://rbs//lib/rbs/types.rb#1080 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#1067 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute trailing_positionals. + # + # source://rbs//lib/rbs/types.rb#928 + def trailing_positionals; end + + # source://rbs//lib/rbs/types.rb#1110 + def update(required_positionals: T.unsafe(nil), optional_positionals: T.unsafe(nil), rest_positionals: T.unsafe(nil), trailing_positionals: T.unsafe(nil), required_keywords: T.unsafe(nil), optional_keywords: T.unsafe(nil), rest_keywords: T.unsafe(nil), return_type: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1199 + def with_nonreturn_void?; end + + # source://rbs//lib/rbs/types.rb#1097 + def with_return_type(type); end + + class << self + # source://rbs//lib/rbs/types.rb#1084 + def empty(return_type); end + end +end + +# source://rbs//lib/rbs/types.rb#879 +class RBS::Types::Function::Param + # @return [Param] a new instance of Param + # + # source://rbs//lib/rbs/types.rb#884 + def initialize(type:, name:, location: T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#890 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#890 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#896 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#882 + def location; end + + # source://rbs//lib/rbs/types.rb#900 + def map_type(&block); end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/types.rb#881 + def name; end + + # source://rbs//lib/rbs/types.rb#908 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#912 + def to_s; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/types.rb#880 + def type; end +end + +# source://rbs//lib/rbs/types.rb#310 +class RBS::Types::Interface + include ::RBS::Types::Application + + # @return [Interface] a new instance of Interface + # + # source://rbs//lib/rbs/types.rb#315 + def initialize(name:, args:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#311 + def location; end + + # source://rbs//lib/rbs/types.rb#339 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#331 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#325 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#321 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/types.rb#797 +class RBS::Types::Intersection + # @return [Intersection] a new instance of Intersection + # + # source://rbs//lib/rbs/types.rb#801 + def initialize(types:, location:); end + + # source://rbs//lib/rbs/types.rb#806 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#842 + def each_type(&block); end + + # source://rbs//lib/rbs/types.rb#806 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#816 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#869 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#865 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#812 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#799 + def location; end + + # source://rbs//lib/rbs/types.rb#850 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#858 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#828 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#824 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#833 + def to_s(level = T.unsafe(nil)); end + + # Returns the value of attribute types. + # + # source://rbs//lib/rbs/types.rb#798 + def types; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#873 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#1483 +class RBS::Types::Literal + include ::RBS::Types::NoFreeVariables + include ::RBS::Types::NoSubst + include ::RBS::Types::EmptyEachType + include ::RBS::Types::NoTypeName + + # @return [Literal] a new instance of Literal + # + # source://rbs//lib/rbs/types.rb#1487 + def initialize(literal:, location:); end + + # source://rbs//lib/rbs/types.rb#1492 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#1492 + def eql?(other); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1519 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1515 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#1498 + def hash; end + + # Returns the value of attribute literal. + # + # source://rbs//lib/rbs/types.rb#1484 + def literal; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#1485 + def location; end + + # source://rbs//lib/rbs/types.rb#1507 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#1511 + def to_s(level = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1523 + def with_nonreturn_void?; end + + class << self + # source://rbs//lib/rbs/types.rb#1543 + def unescape_string(string, is_double_quote); end + end +end + +# source://rbs//lib/rbs/types.rb#1527 +RBS::Types::Literal::TABLE = T.let(T.unsafe(nil), Hash) + +# source://rbs//lib/rbs/types.rb#5 +module RBS::Types::NoFreeVariables + # source://rbs//lib/rbs/types.rb#6 + def free_variables(set = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/types.rb#11 +module RBS::Types::NoSubst + # source://rbs//lib/rbs/types.rb#12 + def sub(s); end +end + +# source://rbs//lib/rbs/types.rb#17 +module RBS::Types::NoTypeName + # source://rbs//lib/rbs/types.rb#18 + def map_type_name; end +end + +# source://rbs//lib/rbs/types.rb#633 +class RBS::Types::Optional + # @return [Optional] a new instance of Optional + # + # source://rbs//lib/rbs/types.rb#637 + def initialize(type:, location:); end + + # source://rbs//lib/rbs/types.rb#642 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#678 + def each_type; end + + # source://rbs//lib/rbs/types.rb#642 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#652 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#708 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#704 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#648 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#635 + def location; end + + # source://rbs//lib/rbs/types.rb#693 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#686 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#660 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#656 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#664 + def to_s(level = T.unsafe(nil)); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/types.rb#634 + def type; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#712 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#1362 +class RBS::Types::Proc + # @return [Proc] a new instance of Proc + # + # source://rbs//lib/rbs/types.rb#1368 + def initialize(location:, type:, block:, self_type: T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#1375 + def ==(other); end + + # Returns the value of attribute block. + # + # source://rbs//lib/rbs/types.rb#1364 + def block; end + + # source://rbs//lib/rbs/types.rb#1427 + def each_type(&block); end + + # source://rbs//lib/rbs/types.rb#1375 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#1385 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1466 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1462 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#1381 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#1366 + def location; end + + # source://rbs//lib/rbs/types.rb#1449 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#1440 + def map_type_name(&block); end + + # Returns the value of attribute self_type. + # + # source://rbs//lib/rbs/types.rb#1365 + def self_type; end + + # source://rbs//lib/rbs/types.rb#1402 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#1392 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#1411 + def to_s(level = T.unsafe(nil)); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/types.rb#1363 + def type; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1470 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#517 +class RBS::Types::Record + # @return [Record] a new instance of Record + # + # source://rbs//lib/rbs/types.rb#521 + def initialize(location:, all_fields: T.unsafe(nil), fields: T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#545 + def ==(other); end + + # Returns the value of attribute all_fields. + # + # source://rbs//lib/rbs/types.rb#518 + def all_fields; end + + # source://rbs//lib/rbs/types.rb#593 + def each_type(&block); end + + # source://rbs//lib/rbs/types.rb#545 + def eql?(other); end + + # Returns the value of attribute fields. + # + # source://rbs//lib/rbs/types.rb#518 + def fields; end + + # source://rbs//lib/rbs/types.rb#555 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#624 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#620 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#551 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#519 + def location; end + + # source://rbs//lib/rbs/types.rb#609 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#602 + def map_type_name(&block); end + + # Returns the value of attribute optional_fields. + # + # source://rbs//lib/rbs/types.rb#518 + def optional_fields; end + + # source://rbs//lib/rbs/types.rb#570 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#566 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#577 + def to_s(level = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#628 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#1350 +module RBS::Types::SelfTypeBindingHelper + private + + # source://rbs//lib/rbs/types.rb#1353 + def self_type_binding_to_s(t); end + + class << self + # source://rbs//lib/rbs/types.rb#1353 + def self_type_binding_to_s(t); end + end +end + +# source://rbs//lib/rbs/types.rb#434 +class RBS::Types::Tuple + # @return [Tuple] a new instance of Tuple + # + # source://rbs//lib/rbs/types.rb#438 + def initialize(types:, location:); end + + # source://rbs//lib/rbs/types.rb#443 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#478 + def each_type(&block); end + + # source://rbs//lib/rbs/types.rb#443 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#453 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#508 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#504 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#449 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#436 + def location; end + + # source://rbs//lib/rbs/types.rb#493 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#486 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#465 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#461 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#470 + def to_s(level = T.unsafe(nil)); end + + # Returns the value of attribute types. + # + # source://rbs//lib/rbs/types.rb#435 + def types; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#512 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#717 +class RBS::Types::Union + # @return [Union] a new instance of Union + # + # source://rbs//lib/rbs/types.rb#721 + def initialize(types:, location:); end + + # source://rbs//lib/rbs/types.rb#726 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#761 + def each_type(&block); end + + # source://rbs//lib/rbs/types.rb#726 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#736 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#788 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#784 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#732 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#719 + def location; end + + # source://rbs//lib/rbs/types.rb#769 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#777 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#748 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#744 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#753 + def to_s(level = T.unsafe(nil)); end + + # Returns the value of attribute types. + # + # source://rbs//lib/rbs/types.rb#718 + def types; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#792 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#1212 +class RBS::Types::UntypedFunction + # @return [UntypedFunction] a new instance of UntypedFunction + # + # source://rbs//lib/rbs/types.rb#1215 + def initialize(return_type:); end + + # source://rbs//lib/rbs/types.rb#1295 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#1245 + def each_param(&block); end + + # source://rbs//lib/rbs/types.rb#1237 + def each_type(&block); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1271 + def empty?; end + + # source://rbs//lib/rbs/types.rb#1295 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#1219 + def free_variables(acc = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1279 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1275 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#1301 + def hash; end + + # source://rbs//lib/rbs/types.rb#1223 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#1231 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#1287 + def param_to_s; end + + # source://rbs//lib/rbs/types.rb#1291 + def return_to_s; end + + # Returns the value of attribute return_type. + # + # source://rbs//lib/rbs/types.rb#1213 + def return_type; end + + # source://rbs//lib/rbs/types.rb#1259 + def sub(subst); end + + # source://rbs//lib/rbs/types.rb#1253 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#1267 + def update(return_type: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1283 + def with_nonreturn_void?; end + + # source://rbs//lib/rbs/types.rb#1263 + def with_return_type(ty); end +end + +# source://rbs//lib/rbs/types.rb#131 +class RBS::Types::Variable + include ::RBS::Types::NoTypeName + include ::RBS::Types::EmptyEachType + + # @return [Variable] a new instance of Variable + # + # source://rbs//lib/rbs/types.rb#137 + def initialize(name:, location:); end + + # source://rbs//lib/rbs/types.rb#142 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#142 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#152 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#191 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#187 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#148 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#133 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/types.rb#132 + def name; end + + # source://rbs//lib/rbs/types.rb#162 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#158 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#181 + def to_s(level = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#195 + def with_nonreturn_void?; end + + class << self + # source://rbs//lib/rbs/types.rb#166 + def build(v); end + + # source://rbs//lib/rbs/types.rb#176 + def fresh(v = T.unsafe(nil)); end + end +end + +# source://rbs//lib/rbs/errors.rb#325 +class RBS::UnknownMethodAliasError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [UnknownMethodAliasError] a new instance of UnknownMethodAliasError + # + # source://rbs//lib/rbs/errors.rb#333 + def initialize(type_name:, original_name:, aliased_name:, location:); end + + # Returns the value of attribute aliased_name. + # + # source://rbs//lib/rbs/errors.rb#330 + def aliased_name; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#331 + def location; end + + # Returns the value of attribute original_name. + # + # source://rbs//lib/rbs/errors.rb#329 + def original_name; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#328 + def type_name; end +end + +# source://rbs//lib/rbs/version.rb#4 +RBS::VERSION = T.let(T.unsafe(nil), String) + +# source://rbs//lib/rbs/validator.rb#4 +class RBS::Validator + # @return [Validator] a new instance of Validator + # + # source://rbs//lib/rbs/validator.rb#9 + def initialize(env:, resolver: T.unsafe(nil)); end + + # source://rbs//lib/rbs/validator.rb#15 + def absolute_type(type, context:, &block); end + + # Returns the value of attribute definition_builder. + # + # source://rbs//lib/rbs/validator.rb#7 + def definition_builder; end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/validator.rb#5 + def env; end + + # Returns the value of attribute resolver. + # + # source://rbs//lib/rbs/validator.rb#6 + def resolver; end + + # source://rbs//lib/rbs/validator.rb#174 + def type_alias_dependency; end + + # source://rbs//lib/rbs/validator.rb#178 + def type_alias_regularity; end + + # source://rbs//lib/rbs/validator.rb#154 + def validate_class_alias(entry:); end + + # source://rbs//lib/rbs/validator.rb#104 + def validate_method_definition(method_def, type_name:); end + + # Validates presence of the relative type, and application arity match. + # + # source://rbs//lib/rbs/validator.rb#24 + def validate_type(type, context:); end + + # source://rbs//lib/rbs/validator.rb#63 + def validate_type_alias(entry:); end + + # source://rbs//lib/rbs/validator.rb#120 + def validate_type_params(params, type_name:, location:, method_name: T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/variance_calculator.rb#4 +class RBS::VarianceCalculator + # @return [VarianceCalculator] a new instance of VarianceCalculator + # + # source://rbs//lib/rbs/variance_calculator.rb#78 + def initialize(builder:); end + + # Returns the value of attribute builder. + # + # source://rbs//lib/rbs/variance_calculator.rb#76 + def builder; end + + # source://rbs//lib/rbs/variance_calculator.rb#82 + def env; end + + # source://rbs//lib/rbs/variance_calculator.rb#169 + def function(type, result:, context:); end + + # source://rbs//lib/rbs/variance_calculator.rb#98 + def in_inherit(name:, args:, variables:); end + + # source://rbs//lib/rbs/variance_calculator.rb#86 + def in_method_type(method_type:, variables:); end + + # source://rbs//lib/rbs/variance_calculator.rb#110 + def in_type_alias(name:); end + + # source://rbs//lib/rbs/variance_calculator.rb#176 + def negate(variance); end + + # source://rbs//lib/rbs/variance_calculator.rb#121 + def type(type, result:, context:); end +end + +# source://rbs//lib/rbs/variance_calculator.rb#5 +class RBS::VarianceCalculator::Result + # @return [Result] a new instance of Result + # + # source://rbs//lib/rbs/variance_calculator.rb#8 + def initialize(variables:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/variance_calculator.rb#45 + def compatible?(var, with_annotation:); end + + # source://rbs//lib/rbs/variance_calculator.rb#24 + def contravariant(x); end + + # source://rbs//lib/rbs/variance_calculator.rb#15 + def covariant(x); end + + # source://rbs//lib/rbs/variance_calculator.rb#37 + def each(&block); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/variance_calculator.rb#41 + def include?(name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/variance_calculator.rb#60 + def incompatible?(params); end + + # source://rbs//lib/rbs/variance_calculator.rb#33 + def invariant(x); end + + # Returns the value of attribute result. + # + # source://rbs//lib/rbs/variance_calculator.rb#6 + def result; end +end + +# source://rbs//lib/rbs/vendorer.rb#4 +class RBS::Vendorer + # @return [Vendorer] a new instance of Vendorer + # + # source://rbs//lib/rbs/vendorer.rb#8 + def initialize(vendor_dir:, loader:); end + + # source://rbs//lib/rbs/vendorer.rb#21 + def clean!; end + + # source://rbs//lib/rbs/vendorer.rb#28 + def copy!; end + + # source://rbs//lib/rbs/vendorer.rb#13 + def ensure_dir; end + + # Returns the value of attribute loader. + # + # source://rbs//lib/rbs/vendorer.rb#6 + def loader; end + + # Returns the value of attribute vendor_dir. + # + # source://rbs//lib/rbs/vendorer.rb#5 + def vendor_dir; end +end + +# source://rbs//lib/rbs/errors.rb#569 +class RBS::WillSyntaxError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [WillSyntaxError] a new instance of WillSyntaxError + # + # source://rbs//lib/rbs/errors.rb#574 + def initialize(message, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#572 + def location; end +end + +# source://rbs//lib/rbs/writer.rb#4 +class RBS::Writer + # @return [Writer] a new instance of Writer + # + # source://rbs//lib/rbs/writer.rb#8 + def initialize(out:); end + + # source://rbs//lib/rbs/writer.rb#361 + def attribute(kind, attr); end + + # source://rbs//lib/rbs/writer.rb#42 + def format_annotation(annotation); end + + # source://rbs//lib/rbs/writer.rb#23 + def indent(size = T.unsafe(nil)); end + + # Returns the value of attribute indentation. + # + # source://rbs//lib/rbs/writer.rb#6 + def indentation; end + + # source://rbs//lib/rbs/writer.rb#288 + def method_name(name); end + + # source://rbs//lib/rbs/writer.rb#214 + def name_and_args(name, args); end + + # source://rbs//lib/rbs/writer.rb#202 + def name_and_params(name, params); end + + # Returns the value of attribute out. + # + # source://rbs//lib/rbs/writer.rb#5 + def out; end + + # source://rbs//lib/rbs/writer.rb#30 + def prefix; end + + # source://rbs//lib/rbs/writer.rb#18 + def preserve!(preserve: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/writer.rb#14 + def preserve?; end + + # source://rbs//lib/rbs/writer.rb#391 + def preserve_empty_line(prev, decl); end + + # source://rbs//lib/rbs/writer.rb#224 + def put_lines(lines, leading_spaces:); end + + # source://rbs//lib/rbs/writer.rb#34 + def puts(string = T.unsafe(nil)); end + + # source://rbs//lib/rbs/writer.rb#79 + def write(contents); end + + # source://rbs//lib/rbs/writer.rb#60 + def write_annotation(annotations); end + + # source://rbs//lib/rbs/writer.rb#66 + def write_comment(comment); end + + # source://rbs//lib/rbs/writer.rb#114 + def write_decl(decl); end + + # source://rbs//lib/rbs/writer.rb#309 + def write_def(member); end + + # source://rbs//lib/rbs/writer.rb#97 + def write_directive(dir); end + + # source://rbs//lib/rbs/writer.rb#301 + def write_loc_source(located); end + + # source://rbs//lib/rbs/writer.rb#234 + def write_member(member); end +end + +# source://rbs//lib/rdoc/discover.rb#8 +class RDoc::Parser::RBS < ::RDoc::Parser + # source://rbs//lib/rdoc/discover.rb#10 + def scan; end +end diff --git a/sorbet/rbi/gems/rubocop-shopify@2.15.1.rbi b/sorbet/rbi/gems/rubocop-shopify@2.16.0.rbi similarity index 100% rename from sorbet/rbi/gems/rubocop-shopify@2.15.1.rbi rename to sorbet/rbi/gems/rubocop-shopify@2.16.0.rbi diff --git a/sorbet/rbi/gems/rubocop@1.71.2.rbi b/sorbet/rbi/gems/rubocop@1.71.2.rbi index 1477d1b5..f327c413 100644 --- a/sorbet/rbi/gems/rubocop@1.71.2.rbi +++ b/sorbet/rbi/gems/rubocop@1.71.2.rbi @@ -840,7 +840,7 @@ class RuboCop::CommentConfig # source://rubocop//lib/rubocop/comment_config.rb#63 def comment_only_line?(line_number); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def config(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/comment_config.rb#51 @@ -864,7 +864,7 @@ class RuboCop::CommentConfig # source://rubocop//lib/rubocop/comment_config.rb#30 def processed_source; end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def registry(*_arg0, **_arg1, &_arg2); end private @@ -1043,10 +1043,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#31 def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def [](*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def []=(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -1090,13 +1090,13 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#167 def cop_enabled?(name); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def delete(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#106 def deprecation_check; end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def dig(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -1104,10 +1104,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#171 def disabled_new_cops?; end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def each(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def each_key(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -1115,7 +1115,7 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#175 def enabled_new_cops?; end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def fetch(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -1177,10 +1177,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#77 def internal?; end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def key?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def keys(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#48 @@ -1194,10 +1194,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#82 def make_excludes_absolute; end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def merge(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#260 @@ -1223,7 +1223,7 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#220 def possibly_include_hidden?; end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def replace(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#72 @@ -1240,22 +1240,22 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#264 def target_rails_version; end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def target_ruby_version(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def to_h(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def to_hash(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#68 def to_s; end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def transform_values(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def validate(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#59 @@ -2362,10 +2362,10 @@ class RuboCop::ConfigValidator # source://rubocop//lib/rubocop/config_validator.rb#28 def initialize(config); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def for_all_cops(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def smart_loaded_path(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config_validator.rb#65 @@ -41722,10 +41722,10 @@ class RuboCop::Cop::Style::MagicCommentFormat::CommentRange # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#125 def directives; end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def loc(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def text(*_arg0, **_arg1, &_arg2); end # A magic comment can contain one value (normal style) or @@ -58103,10 +58103,10 @@ RuboCop::Formatter::PacmanFormatter::FALLBACK_TERMINAL_WIDTH = T.let(T.unsafe(ni RuboCop::Formatter::PacmanFormatter::GHOST = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#17 -RuboCop::Formatter::PacmanFormatter::PACDOT = T.let(T.unsafe(nil), Rainbow::Presenter) +RuboCop::Formatter::PacmanFormatter::PACDOT = T.let(T.unsafe(nil), Rainbow::NullPresenter) # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#16 -RuboCop::Formatter::PacmanFormatter::PACMAN = T.let(T.unsafe(nil), Rainbow::Presenter) +RuboCop::Formatter::PacmanFormatter::PACMAN = T.let(T.unsafe(nil), Rainbow::NullPresenter) # This formatter display dots for files with no offenses and # letters for files with problems in the them. In the end it From e03664e569406c8e3d4de4016d2bc274505375a1 Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Wed, 12 Mar 2025 12:15:34 -0400 Subject: [PATCH 06/41] padawan - unknown route redirect to home --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 8a6c1d82..f810754f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -101,5 +101,5 @@ resources :details, only: %i[create], controller: :user_details end - get "*", to: redirect("https://example.com") + get "*", to: redirect("https://sway.vote") end From dcceddc40b4b54c2d52a75685da05ba75b1a490a Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Wed, 12 Mar 2025 12:36:38 -0400 Subject: [PATCH 07/41] padawan - upgrade deps --- Gemfile.lock | 178 +-- package-lock.json | 357 ++--- package.json | 32 +- ...ncable@8.0.1.rbi => actioncable@8.0.2.rbi} | 169 +-- ...lbox@8.0.1.rbi => actionmailbox@8.0.2.rbi} | 0 ...ailer@8.0.1.rbi => actionmailer@8.0.2.rbi} | 369 +++-- ...iontext@8.0.1.rbi => actiontext@8.0.2.rbi} | 0 ...ionview@8.0.1.rbi => actionview@8.0.2.rbi} | 694 ++++----- ...ctivejob@8.0.1.rbi => activejob@8.0.2.rbi} | 120 +- ...emodel@8.0.1.rbi => activemodel@8.0.2.rbi} | 24 +- ...rage@8.0.1.rbi => activestorage@8.0.2.rbi} | 1334 +++++++++-------- .../gems/{json@2.10.1.rbi => json@2.10.2.rbi} | 116 +- sorbet/rbi/gems/lint_roller@1.1.0.rbi | 2 +- .../gems/{rails@8.0.1.rbi => rails@8.0.2.rbi} | 0 ...{railties@8.0.1.rbi => railties@8.0.2.rbi} | 297 ++-- ...6.1.rbi => rubocop-factory_bot@2.27.0.rbi} | 20 + ...3.1.rbi => rubocop-performance@1.24.0.rbi} | 170 ++- ....0.rbi => rubocop-thread_safety@0.7.1.rbi} | 76 +- ...ils@5.22.4.rbi => sentry-rails@5.23.0.rbi} | 388 ++--- 19 files changed, 2229 insertions(+), 2117 deletions(-) rename sorbet/rbi/gems/{actioncable@8.0.1.rbi => actioncable@8.0.2.rbi} (95%) rename sorbet/rbi/gems/{actionmailbox@8.0.1.rbi => actionmailbox@8.0.2.rbi} (100%) rename sorbet/rbi/gems/{actionmailer@8.0.1.rbi => actionmailer@8.0.2.rbi} (88%) rename sorbet/rbi/gems/{actiontext@8.0.1.rbi => actiontext@8.0.2.rbi} (100%) rename sorbet/rbi/gems/{actionview@8.0.1.rbi => actionview@8.0.2.rbi} (96%) rename sorbet/rbi/gems/{activejob@8.0.1.rbi => activejob@8.0.2.rbi} (96%) rename sorbet/rbi/gems/{activemodel@8.0.1.rbi => activemodel@8.0.2.rbi} (99%) rename sorbet/rbi/gems/{activestorage@8.0.1.rbi => activestorage@8.0.2.rbi} (70%) rename sorbet/rbi/gems/{json@2.10.1.rbi => json@2.10.2.rbi} (96%) rename sorbet/rbi/gems/{rails@8.0.1.rbi => rails@8.0.2.rbi} (100%) rename sorbet/rbi/gems/{railties@8.0.1.rbi => railties@8.0.2.rbi} (94%) rename sorbet/rbi/gems/{rubocop-factory_bot@2.26.1.rbi => rubocop-factory_bot@2.27.0.rbi} (98%) rename sorbet/rbi/gems/{rubocop-performance@1.23.1.rbi => rubocop-performance@1.24.0.rbi} (97%) rename sorbet/rbi/gems/{rubocop-thread_safety@0.6.0.rbi => rubocop-thread_safety@0.7.1.rbi} (91%) rename sorbet/rbi/gems/{sentry-rails@5.22.4.rbi => sentry-rails@5.23.0.rbi} (68%) diff --git a/Gemfile.lock b/Gemfile.lock index 5480ea1d..e4af5ee2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,29 +1,29 @@ GEM remote: https://rubygems.org/ specs: - actioncable (8.0.1) - actionpack (= 8.0.1) - activesupport (= 8.0.1) + actioncable (8.0.2) + actionpack (= 8.0.2) + activesupport (= 8.0.2) nio4r (~> 2.0) websocket-driver (>= 0.6.1) zeitwerk (~> 2.6) - actionmailbox (8.0.1) - actionpack (= 8.0.1) - activejob (= 8.0.1) - activerecord (= 8.0.1) - activestorage (= 8.0.1) - activesupport (= 8.0.1) + actionmailbox (8.0.2) + actionpack (= 8.0.2) + activejob (= 8.0.2) + activerecord (= 8.0.2) + activestorage (= 8.0.2) + activesupport (= 8.0.2) mail (>= 2.8.0) - actionmailer (8.0.1) - actionpack (= 8.0.1) - actionview (= 8.0.1) - activejob (= 8.0.1) - activesupport (= 8.0.1) + actionmailer (8.0.2) + actionpack (= 8.0.2) + actionview (= 8.0.2) + activejob (= 8.0.2) + activesupport (= 8.0.2) mail (>= 2.8.0) rails-dom-testing (~> 2.2) - actionpack (8.0.1) - actionview (= 8.0.1) - activesupport (= 8.0.1) + actionpack (8.0.2) + actionview (= 8.0.2) + activesupport (= 8.0.2) nokogiri (>= 1.8.5) rack (>= 2.2.4) rack-session (>= 1.0.1) @@ -31,35 +31,35 @@ GEM rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) useragent (~> 0.16) - actiontext (8.0.1) - actionpack (= 8.0.1) - activerecord (= 8.0.1) - activestorage (= 8.0.1) - activesupport (= 8.0.1) + actiontext (8.0.2) + actionpack (= 8.0.2) + activerecord (= 8.0.2) + activestorage (= 8.0.2) + activesupport (= 8.0.2) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (8.0.1) - activesupport (= 8.0.1) + actionview (8.0.2) + activesupport (= 8.0.2) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - activejob (8.0.1) - activesupport (= 8.0.1) + activejob (8.0.2) + activesupport (= 8.0.2) globalid (>= 0.3.6) - activemodel (8.0.1) - activesupport (= 8.0.1) - activerecord (8.0.1) - activemodel (= 8.0.1) - activesupport (= 8.0.1) + activemodel (8.0.2) + activesupport (= 8.0.2) + activerecord (8.0.2) + activemodel (= 8.0.2) + activesupport (= 8.0.2) timeout (>= 0.4.0) - activestorage (8.0.1) - actionpack (= 8.0.1) - activejob (= 8.0.1) - activerecord (= 8.0.1) - activesupport (= 8.0.1) + activestorage (8.0.2) + actionpack (= 8.0.2) + activejob (= 8.0.2) + activerecord (= 8.0.2) + activesupport (= 8.0.2) marcel (~> 1.0) - activesupport (8.0.1) + activesupport (8.0.2) base64 benchmark (>= 0.3) bigdecimal @@ -195,7 +195,7 @@ GEM jbuilder (2.13.0) actionview (>= 5.0.0) activesupport (>= 5.0.0) - json (2.10.1) + json (2.10.2) jwt (2.10.1) base64 language_server-protocol (3.17.0.4) @@ -277,20 +277,20 @@ GEM rack (>= 1.3) rackup (2.2.1) rack (>= 3) - rails (8.0.1) - actioncable (= 8.0.1) - actionmailbox (= 8.0.1) - actionmailer (= 8.0.1) - actionpack (= 8.0.1) - actiontext (= 8.0.1) - actionview (= 8.0.1) - activejob (= 8.0.1) - activemodel (= 8.0.1) - activerecord (= 8.0.1) - activestorage (= 8.0.1) - activesupport (= 8.0.1) + rails (8.0.2) + actioncable (= 8.0.2) + actionmailbox (= 8.0.2) + actionmailer (= 8.0.2) + actionpack (= 8.0.2) + actiontext (= 8.0.2) + actionview (= 8.0.2) + activejob (= 8.0.2) + activemodel (= 8.0.2) + activerecord (= 8.0.2) + activestorage (= 8.0.2) + activesupport (= 8.0.2) bundler (>= 1.15.0) - railties (= 8.0.1) + railties (= 8.0.2) rails-controller-testing (1.0.5) actionpack (>= 5.0.1.rc1) actionview (>= 5.0.1.rc1) @@ -302,9 +302,9 @@ GEM rails-html-sanitizer (1.6.2) loofah (~> 2.21) 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.1) - actionpack (= 8.0.1) - activesupport (= 8.0.1) + railties (8.0.2) + actionpack (= 8.0.2) + activesupport (= 8.0.2) irb (~> 1.13) rackup (>= 1.0.0) rake (>= 12.2) @@ -355,9 +355,10 @@ GEM rspec-sorbet (1.9.2) sorbet-runtime rspec-support (3.13.2) - rubocop (1.71.2) + rubocop (1.73.2) json (~> 2.3) - language_server-protocol (>= 3.17.0) + 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) @@ -367,22 +368,27 @@ GEM unicode-display_width (>= 2.4.0, < 4.0) rubocop-ast (1.38.1) parser (>= 3.3.1.0) - rubocop-factory_bot (2.26.1) - rubocop (~> 1.61) - rubocop-performance (1.23.1) - rubocop (>= 1.48.1, < 2.0) - rubocop-ast (>= 1.31.1, < 2.0) - rubocop-rails (2.29.1) + rubocop-factory_bot (2.27.0) + lint_roller (~> 1.1) + rubocop (~> 1.72, >= 1.72.1) + rubocop-performance (1.24.0) + lint_roller (~> 1.1) + rubocop (>= 1.72.1, < 2.0) + rubocop-ast (>= 1.38.0, < 2.0) + rubocop-rails (2.30.3) activesupport (>= 4.2.0) + lint_roller (~> 1.1) rack (>= 1.1) - rubocop (>= 1.52.0, < 2.0) - rubocop-ast (>= 1.31.1, < 2.0) - rubocop-rspec (3.4.0) - rubocop (~> 1.61) + rubocop (>= 1.72.1, < 2.0) + rubocop-ast (>= 1.38.0, < 2.0) + rubocop-rspec (3.5.0) + lint_roller (~> 1.1) + rubocop (~> 1.72, >= 1.72.1) rubocop-shopify (2.16.0) rubocop (~> 1.62) - rubocop-thread_safety (0.6.0) - rubocop (>= 1.48.1) + rubocop-thread_safety (0.7.1) + lint_roller (~> 1.1) + rubocop (~> 1.72, >= 1.72.1) ruby-progressbar (1.13.0) rubyzip (2.4.1) safety_net_attestation (0.4.0) @@ -394,10 +400,10 @@ GEM rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) - sentry-rails (5.22.4) + sentry-rails (5.23.0) railties (>= 5.0) - sentry-ruby (~> 5.22.4) - sentry-ruby (5.22.4) + sentry-ruby (~> 5.23.0) + sentry-ruby (5.23.0) bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) shortener (1.0.1) @@ -414,15 +420,15 @@ GEM fugit (~> 1.11.0) railties (>= 7.1) thor (~> 1.3.1) - sorbet (0.5.11915) - sorbet-static (= 0.5.11915) - sorbet-runtime (0.5.11915) - sorbet-static (0.5.11915-universal-darwin) - sorbet-static (0.5.11915-x86_64-linux) - sorbet-static-and-runtime (0.5.11915) - sorbet (= 0.5.11915) - sorbet-runtime (= 0.5.11915) - spoom (1.5.4) + sorbet (0.5.11919) + sorbet-static (= 0.5.11919) + sorbet-runtime (0.5.11919) + sorbet-static (0.5.11919-universal-darwin) + sorbet-static (0.5.11919-x86_64-linux) + sorbet-static-and-runtime (0.5.11919) + sorbet (= 0.5.11919) + sorbet-runtime (= 0.5.11919) + spoom (1.6.0) erubi (>= 1.10.0) prism (>= 0.28.0) rbi (>= 0.2.3) @@ -438,18 +444,18 @@ GEM sqlite3 (2.6.0) mini_portile2 (~> 2.8.0) stackprof (0.2.27) - standard (1.45.0) + standard (1.47.0) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.71.0) + rubocop (~> 1.73.0) standard-custom (~> 1.0.0) - standard-performance (~> 1.6) + standard-performance (~> 1.7) standard-custom (1.0.2) lint_roller (~> 1.0) rubocop (~> 1.50) - standard-performance (1.6.0) + standard-performance (1.7.0) lint_roller (~> 1.1) - rubocop-performance (~> 1.23.0) + rubocop-performance (~> 1.24.0) stringio (3.1.5) tapioca (0.16.11) benchmark @@ -468,7 +474,7 @@ GEM openssl (> 2.0) openssl-signature_algorithm (~> 1.0) trailblazer-option (0.1.2) - twilio-ruby (7.4.5) + twilio-ruby (7.5.0) benchmark faraday (>= 0.9, < 3.0) jwt (>= 1.5, < 3.0) diff --git a/package-lock.json b/package-lock.json index c25331de..4ebd848c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,14 +13,14 @@ "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.0", "@github/webauthn-json": "^2.1.1", - "@inertiajs/react": "^2.0.3", - "@mui/material": "^6.4.6", - "@mui/x-date-pickers": "^7.27.1", + "@inertiajs/react": "^2.0.5", + "@mui/material": "^6.4.7", + "@mui/x-date-pickers": "^7.27.3", "@react-google-maps/api": "^2.20.6", - "@sentry/react": "^9.3.0", + "@sentry/react": "^9.5.0", "@sentry/tracing": "^7.120.3", - "@sentry/vite-plugin": "^3.2.1", - "axios": "^1.8.1", + "@sentry/vite-plugin": "^3.2.2", + "axios": "^1.8.3", "bootstrap": "^5.3.3", "chart.js": "^4.4.8", "copy-to-clipboard": "^3.3.3", @@ -32,9 +32,9 @@ "react-chartjs-2": "^5.3.0", "react-hot-toast": "^2.5.2", "react-icons": "^5.5.0", - "react-intersection-observer": "^9.15.1", - "react-markdown": "^10.0.0", - "react-select": "^5.10.0", + "react-intersection-observer": "^9.16.0", + "react-markdown": "^10.1.0", + "react-select": "^5.10.1", "react-social-icons": "^6.22.0", "react-textarea-autosize": "^8.5.7", "remark-gfm": "^4.0.1", @@ -43,15 +43,15 @@ "yup": "^1.6.1" }, "devDependencies": { - "@eslint/js": "^9.21.0", + "@eslint/js": "^9.22.0", "@types/eslint__js": "^9.14.0", "@types/lodash": "^4.17.16", "@types/node": "^22.13.8", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", "@vitejs/plugin-react": "^4.3.4", - "eslint": "^9.21.0", - "eslint-import-resolver-typescript": "^3.8.3", + "eslint": "^9.22.0", + "eslint-import-resolver-typescript": "^3.8.5", "eslint-plugin-import": "^2.31.0", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-promise": "^7.2.1", @@ -61,16 +61,16 @@ "eslint-plugin-unused-imports": "^4.1.4", "globals": "^16.0.0", "husky": "^9.1.7", - "prettier": "^3.5.2", + "prettier": "^3.5.3", "react": "^19.0.0", "react-dom": "^19.0.0", "rollup-plugin-visualizer": "^5.14.0", "sass": "^1.85.1", "serve": "^14.2.4", "source-map-explorer": "^2.5.3", - "typescript": "5.7", - "typescript-eslint": "^8.25.0", - "vite": "^6.2.0", + "typescript": "5.8", + "typescript-eslint": "^8.26.1", + "vite": "^6.2.1", "vite-plugin-full-reload": "^1.2.0", "vite-plugin-rails": "^0.5.0", "vite-plugin-ruby": "^5.1.1", @@ -1018,6 +1018,16 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, + "node_modules/@eslint/config-helpers": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.1.0.tgz", + "integrity": "sha512-kLrdPDJE1ckPo94kmPPf9Hfd0DU0Jw6oKYrhe+pwSC0iTUInmTa+w6fw8sGgcfkFJGNdWOUeOaDM4quW4a7OkA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, "node_modules/@eslint/core": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", @@ -1069,9 +1079,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.21.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.21.0.tgz", - "integrity": "sha512-BqStZ3HX8Yz6LvsF5ByXYrtigrV5AXADWLAGc7PH/1SxOb7/FIYYMszZZWiUou/GB9P2lXWk2SV4d+Z8h0nknw==", + "version": "9.22.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.22.0.tgz", + "integrity": "sha512-vLFajx9o8d1/oL2ZkpMYbkLv8nDB6yaIwFNt7nI4+I80U/z03SxmfOMsLbvWr3p7C+Wnoh//aOu2pQW8cS0HCQ==", "dev": true, "license": "MIT", "engines": { @@ -1219,23 +1229,23 @@ } }, "node_modules/@inertiajs/core": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@inertiajs/core/-/core-2.0.3.tgz", - "integrity": "sha512-JvXzqc2XAt3WgEDMyxCyXO6bDLMCsBjFsYREU1/+3wtNTib7QKwK71+aF+MrhILpz+kRTi29TsLqnbkPHBAZjw==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@inertiajs/core/-/core-2.0.5.tgz", + "integrity": "sha512-AEhWsfkn+rHCO35mArmLQVVkbzETJby8QZ9iwRxTz891kbWS+ZAiEPa7ROJkDg3iaPYKVGBnI126xCUVxxesJg==", "license": "MIT", "dependencies": { - "axios": "^1.6.0", + "axios": "^1.8.2", "deepmerge": "^4.0.0", "qs": "^6.9.0" } }, "node_modules/@inertiajs/react": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@inertiajs/react/-/react-2.0.3.tgz", - "integrity": "sha512-eUMywEY+w4jcROiNjD7Vm+2GFapqOQmMh3OGlSat9XJB5+H7vtsQI+cvDa7oQXvt3CCv9Y/+HrKDHC/m969peA==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@inertiajs/react/-/react-2.0.5.tgz", + "integrity": "sha512-ber7MU+COXz/md/Nl2Z2V/uglsWIZjZEPulgSg6Qvr3/MuitIzmZX6FsZr4Muer+wI+Zzbj5vmoDKA2B/J7LzQ==", "license": "MIT", "dependencies": { - "@inertiajs/core": "2.0.3", + "@inertiajs/core": "2.0.5", "lodash.isequal": "^4.5.0" }, "peerDependencies": { @@ -1297,9 +1307,9 @@ "license": "MIT" }, "node_modules/@mui/core-downloads-tracker": { - "version": "6.4.6", - "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-6.4.6.tgz", - "integrity": "sha512-rho5Q4IscbrVmK9rCrLTJmjLjfH6m/NcqKr/mchvck0EIXlyYUB9+Z0oVmkt/+Mben43LMRYBH8q/Uzxj/c4Vw==", + "version": "6.4.7", + "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-6.4.7.tgz", + "integrity": "sha512-XjJrKFNt9zAKvcnoIIBquXyFyhfrHYuttqMsoDS7lM7VwufYG4fAPw4kINjBFg++fqXM2BNAuWR9J7XVIuKIKg==", "license": "MIT", "funding": { "type": "opencollective", @@ -1307,14 +1317,14 @@ } }, "node_modules/@mui/material": { - "version": "6.4.6", - "resolved": "https://registry.npmjs.org/@mui/material/-/material-6.4.6.tgz", - "integrity": "sha512-6UyAju+DBOdMogfYmLiT3Nu7RgliorimNBny1pN/acOjc+THNFVE7hlxLyn3RDONoZJNDi/8vO4AQQr6dLAXqA==", + "version": "6.4.7", + "resolved": "https://registry.npmjs.org/@mui/material/-/material-6.4.7.tgz", + "integrity": "sha512-K65StXUeGAtFJ4ikvHKtmDCO5Ab7g0FZUu2J5VpoKD+O6Y3CjLYzRi+TMlI3kaL4CL158+FccMoOd/eaddmeRQ==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.26.0", - "@mui/core-downloads-tracker": "^6.4.6", - "@mui/system": "^6.4.6", + "@mui/core-downloads-tracker": "^6.4.7", + "@mui/system": "^6.4.7", "@mui/types": "^7.2.21", "@mui/utils": "^6.4.6", "@popperjs/core": "^2.11.8", @@ -1335,7 +1345,7 @@ "peerDependencies": { "@emotion/react": "^11.5.0", "@emotion/styled": "^11.3.0", - "@mui/material-pigment-css": "^6.4.6", + "@mui/material-pigment-css": "^6.4.7", "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" @@ -1417,9 +1427,9 @@ } }, "node_modules/@mui/system": { - "version": "6.4.6", - "resolved": "https://registry.npmjs.org/@mui/system/-/system-6.4.6.tgz", - "integrity": "sha512-FQjWwPec7pMTtB/jw5f9eyLynKFZ6/Ej9vhm5kGdtmts1z5b7Vyn3Rz6kasfYm1j2TfrfGnSXRvvtwVWxjpz6g==", + "version": "6.4.7", + "resolved": "https://registry.npmjs.org/@mui/system/-/system-6.4.7.tgz", + "integrity": "sha512-7wwc4++Ak6tGIooEVA9AY7FhH2p9fvBMORT4vNLMAysH3Yus/9B9RYMbrn3ANgsOyvT3Z7nE+SP8/+3FimQmcg==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.26.0", @@ -1501,9 +1511,9 @@ } }, "node_modules/@mui/x-date-pickers": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@mui/x-date-pickers/-/x-date-pickers-7.27.1.tgz", - "integrity": "sha512-2YPhTM9TM39dmIkEQdSB6P6NASePB9LuhXXKQqq0PX4FXGymYEPz/acQXkk617zwfxJJaDhJZ6g8SAv5pklTJQ==", + "version": "7.27.3", + "resolved": "https://registry.npmjs.org/@mui/x-date-pickers/-/x-date-pickers-7.27.3.tgz", + "integrity": "sha512-igfKTPC4ZVCmS5j/NXcXBtj/hHseQHzRpCpIB1PMnJGhMdRYXnz8qZz5XhlNBKlzJVXkGu6Uil+obZpCLNj1xg==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.25.7", @@ -2327,50 +2337,50 @@ "license": "MIT" }, "node_modules/@sentry-internal/browser-utils": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-9.3.0.tgz", - "integrity": "sha512-G3z4HCUyb5nJe03EPUhWjnaHqMDt4mOTFJDNha3DGoB51lMYojpQI1Qo1u6bY4qkWVSO1c+HqOU0RVsXoAchtQ==", + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-9.5.0.tgz", + "integrity": "sha512-AE9jgeI5+KyGvLR0vf1I6sesi0NZXZe6pDlZNXyg+pWZB2vkE9dksE8ZsoU+YiD9zjUqazgPcVyb3O0VvmaCGw==", "license": "MIT", "dependencies": { - "@sentry/core": "9.3.0" + "@sentry/core": "9.5.0" }, "engines": { "node": ">=18" } }, "node_modules/@sentry-internal/feedback": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-9.3.0.tgz", - "integrity": "sha512-LQmIbQaATlN5QEwCD2Xt+7VKfwfR5W3dbn0jdF1x4hQFE/srdnOj60xMz/mj3tP5BxV552xJniGsyZ8lXHDb2A==", + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-9.5.0.tgz", + "integrity": "sha512-p+yOTufEYHP1RLwkD+aZwpCNS4/2l6t4uHgphjYrEC2U/U2mtZQh+EvlBAt0wY/eiKC4/acPNrF5yFD/4A7a0A==", "license": "MIT", "dependencies": { - "@sentry/core": "9.3.0" + "@sentry/core": "9.5.0" }, "engines": { "node": ">=18" } }, "node_modules/@sentry-internal/replay": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/replay/-/replay-9.3.0.tgz", - "integrity": "sha512-ZkH+Gahn89JygpuiFn26ZgAqJXHtnr+HjfQ2ONOFoWQHNH6X5wk75UTma55aYk1d8VcBPFoU6WjFhZoQ55SV1g==", + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/replay/-/replay-9.5.0.tgz", + "integrity": "sha512-fBBNimElAnu865HT3MJ6xH2P26KvkZvAYt+yRrWr+x5zS5KvjBYUPsSI+F0FTE14XmLW9q7DlNUl5iAZhXSy3g==", "license": "MIT", "dependencies": { - "@sentry-internal/browser-utils": "9.3.0", - "@sentry/core": "9.3.0" + "@sentry-internal/browser-utils": "9.5.0", + "@sentry/core": "9.5.0" }, "engines": { "node": ">=18" } }, "node_modules/@sentry-internal/replay-canvas": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-9.3.0.tgz", - "integrity": "sha512-MhDMJeRGa55a0D541+OzTFMWwbabthhDGbAL90/NpappfyeBbAiktmCNl0BFTZuRbCGrC2m1LLCqHegCVKW4fQ==", + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-9.5.0.tgz", + "integrity": "sha512-W7MS7/9Z8uP2i0pbndxqz2VcGlFPc7Bv6gCoxRdGIWUWSBS9rsRbryO0sM0PwwuHt2mQtWMqwjYykcR441RBRA==", "license": "MIT", "dependencies": { - "@sentry-internal/replay": "9.3.0", - "@sentry/core": "9.3.0" + "@sentry-internal/replay": "9.5.0", + "@sentry/core": "9.5.0" }, "engines": { "node": ">=18" @@ -2404,38 +2414,38 @@ } }, "node_modules/@sentry/babel-plugin-component-annotate": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@sentry/babel-plugin-component-annotate/-/babel-plugin-component-annotate-3.2.1.tgz", - "integrity": "sha512-tUp2e+CERpRFzTftjPxt7lg4BF0R3K+wGfeJyIqrc0tbJ2y6duT8OD0ArWoOi1g8xQ73NDn1/mEeS8pC+sbjTQ==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@sentry/babel-plugin-component-annotate/-/babel-plugin-component-annotate-3.2.2.tgz", + "integrity": "sha512-D+SKQ266ra/wo87s9+UI/rKQi3qhGPCR8eSCDe0VJudhjHsqyNU+JJ5lnIGCgmZaWFTXgdBP/gdr1Iz1zqGs4Q==", "license": "MIT", "engines": { "node": ">= 14" } }, "node_modules/@sentry/browser": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-9.3.0.tgz", - "integrity": "sha512-yPwWWQo/hpN63p0NGmk/Dd1Fx5CQRWNMfuV7dtfPBtg3vRjDecA9OLyK29AqK5h3Fl8FuJOyOqB87CvtXUqh5g==", + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-9.5.0.tgz", + "integrity": "sha512-HYSPW8GjknuYykJgOialKFyWg7ldmrbD1AKTIhksqdsNXLER07YeVWFAbe+xSYa1ZwwC8/s6vQJP9ZOoH1BaVg==", "license": "MIT", "dependencies": { - "@sentry-internal/browser-utils": "9.3.0", - "@sentry-internal/feedback": "9.3.0", - "@sentry-internal/replay": "9.3.0", - "@sentry-internal/replay-canvas": "9.3.0", - "@sentry/core": "9.3.0" + "@sentry-internal/browser-utils": "9.5.0", + "@sentry-internal/feedback": "9.5.0", + "@sentry-internal/replay": "9.5.0", + "@sentry-internal/replay-canvas": "9.5.0", + "@sentry/core": "9.5.0" }, "engines": { "node": ">=18" } }, "node_modules/@sentry/bundler-plugin-core": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@sentry/bundler-plugin-core/-/bundler-plugin-core-3.2.1.tgz", - "integrity": "sha512-1wId05LXf6LyTeNwqyhSDSWYbYtFT/NQRqq3sW7hcL4nZuAgzT82PSvxeeCgR/D2qXOj7RCYXXZtyWzzo3wtXA==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@sentry/bundler-plugin-core/-/bundler-plugin-core-3.2.2.tgz", + "integrity": "sha512-YGrtmqQ2jMixccX2slVG/Lw7pCGJL3DGB3clmY9mO8QBEBIN3/gEANiHJVWwRidpUOS/0b7yVVGAdwZ87oPwTg==", "license": "MIT", "dependencies": { "@babel/core": "^7.18.5", - "@sentry/babel-plugin-component-annotate": "3.2.1", + "@sentry/babel-plugin-component-annotate": "3.2.2", "@sentry/cli": "2.42.2", "dotenv": "^16.3.1", "find-up": "^5.0.0", @@ -2592,22 +2602,22 @@ } }, "node_modules/@sentry/core": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-9.3.0.tgz", - "integrity": "sha512-SxQ4z7wTkfguvYb2ctNEMU9kVAbhl9ymfjhLnrvtygTwL5soLqAKdco/lX/4P9K9Osgb2Dl6urQWRl+AhzKVbQ==", + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-9.5.0.tgz", + "integrity": "sha512-NMqyFdyg26ECAfnibAPKT8vvAt4zXp4R7dYtQnwJKhEJEVkgAshcNYeJ2D95ZLMVOqlqhTtTPnw1vqf+v9ePZg==", "license": "MIT", "engines": { "node": ">=18" } }, "node_modules/@sentry/react": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@sentry/react/-/react-9.3.0.tgz", - "integrity": "sha512-/ruDHBHLDXmZoEHNCSjdekZr9+0pbOC5+BY1oABGoDXRISGyoenOBtAsX8TsaC9oJYhr16yKDFlYxzzQRhxDyg==", + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/@sentry/react/-/react-9.5.0.tgz", + "integrity": "sha512-ixOlKuMxWKSK73u41vY2wQNkQpZJo4fwRkA6r4oy745ldcwhGlOy/TMACdotbHCn4ULC86rVZN5r49mH6SV5+w==", "license": "MIT", "dependencies": { - "@sentry/browser": "9.3.0", - "@sentry/core": "9.3.0", + "@sentry/browser": "9.5.0", + "@sentry/core": "9.5.0", "hoist-non-react-statics": "^3.3.2" }, "engines": { @@ -2651,12 +2661,12 @@ } }, "node_modules/@sentry/vite-plugin": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@sentry/vite-plugin/-/vite-plugin-3.2.1.tgz", - "integrity": "sha512-A/R9PAWPkWR6iqbJJ4C9BygcET0HAq5irEKy7xPmzB0mjW5XbDwbhQtHHnb6C1q/JrfzufB3TZWrG2XfrBRazg==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@sentry/vite-plugin/-/vite-plugin-3.2.2.tgz", + "integrity": "sha512-WSkHOhZszMrIE9zmx2l4JhMnMlZmN/yAoHyf59pwFLIMctuZak6lNPbTbIFkFHDzIJ9Nut5RAVsw1qjmWc1PTA==", "license": "MIT", "dependencies": { - "@sentry/bundler-plugin-core": "3.2.1", + "@sentry/bundler-plugin-core": "3.2.2", "unplugin": "1.0.1" }, "engines": { @@ -2866,17 +2876,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.25.0.tgz", - "integrity": "sha512-VM7bpzAe7JO/BFf40pIT1lJqS/z1F8OaSsUB3rpFJucQA4cOSuH2RVVVkFULN+En0Djgr29/jb4EQnedUo95KA==", + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.26.1.tgz", + "integrity": "sha512-2X3mwqsj9Bd3Ciz508ZUtoQQYpOhU/kWoUqIf49H8Z0+Vbh6UF/y0OEYp0Q0axOGzaBGs7QxRwq0knSQ8khQNA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.25.0", - "@typescript-eslint/type-utils": "8.25.0", - "@typescript-eslint/utils": "8.25.0", - "@typescript-eslint/visitor-keys": "8.25.0", + "@typescript-eslint/scope-manager": "8.26.1", + "@typescript-eslint/type-utils": "8.26.1", + "@typescript-eslint/utils": "8.26.1", + "@typescript-eslint/visitor-keys": "8.26.1", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", @@ -2892,20 +2902,20 @@ "peerDependencies": { "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.8.0" + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.25.0.tgz", - "integrity": "sha512-4gbs64bnbSzu4FpgMiQ1A+D+urxkoJk/kqlDJ2W//5SygaEiAP2B4GoS7TEdxgwol2el03gckFV9lJ4QOMiiHg==", + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.26.1.tgz", + "integrity": "sha512-w6HZUV4NWxqd8BdeFf81t07d7/YV9s7TCWrQQbG5uhuvGUAW+fq1usZ1Hmz9UPNLniFnD8GLSsDpjP0hm1S4lQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.25.0", - "@typescript-eslint/types": "8.25.0", - "@typescript-eslint/typescript-estree": "8.25.0", - "@typescript-eslint/visitor-keys": "8.25.0", + "@typescript-eslint/scope-manager": "8.26.1", + "@typescript-eslint/types": "8.26.1", + "@typescript-eslint/typescript-estree": "8.26.1", + "@typescript-eslint/visitor-keys": "8.26.1", "debug": "^4.3.4" }, "engines": { @@ -2917,18 +2927,18 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.8.0" + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.25.0.tgz", - "integrity": "sha512-6PPeiKIGbgStEyt4NNXa2ru5pMzQ8OYKO1hX1z53HMomrmiSB+R5FmChgQAP1ro8jMtNawz+TRQo/cSXrauTpg==", + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.26.1.tgz", + "integrity": "sha512-6EIvbE5cNER8sqBu6V7+KeMZIC1664d2Yjt+B9EWUXrsyWpxx4lEZrmvxgSKRC6gX+efDL/UY9OpPZ267io3mg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.25.0", - "@typescript-eslint/visitor-keys": "8.25.0" + "@typescript-eslint/types": "8.26.1", + "@typescript-eslint/visitor-keys": "8.26.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2939,14 +2949,14 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.25.0.tgz", - "integrity": "sha512-d77dHgHWnxmXOPJuDWO4FDWADmGQkN5+tt6SFRZz/RtCWl4pHgFl3+WdYCn16+3teG09DY6XtEpf3gGD0a186g==", + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.26.1.tgz", + "integrity": "sha512-Kcj/TagJLwoY/5w9JGEFV0dclQdyqw9+VMndxOJKtoFSjfZhLXhYjzsQEeyza03rwHx2vFEGvrJWJBXKleRvZg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "8.25.0", - "@typescript-eslint/utils": "8.25.0", + "@typescript-eslint/typescript-estree": "8.26.1", + "@typescript-eslint/utils": "8.26.1", "debug": "^4.3.4", "ts-api-utils": "^2.0.1" }, @@ -2959,13 +2969,13 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.8.0" + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/types": { - "version": "8.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.25.0.tgz", - "integrity": "sha512-+vUe0Zb4tkNgznQwicsvLUJgZIRs6ITeWSCclX1q85pR1iOiaj+4uZJIUp//Z27QWu5Cseiw3O3AR8hVpax7Aw==", + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.26.1.tgz", + "integrity": "sha512-n4THUQW27VmQMx+3P+B0Yptl7ydfceUj4ON/AQILAASwgYdZ/2dhfymRMh5egRUrvK5lSmaOm77Ry+lmXPOgBQ==", "dev": true, "license": "MIT", "engines": { @@ -2977,14 +2987,14 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.25.0.tgz", - "integrity": "sha512-ZPaiAKEZ6Blt/TPAx5Ot0EIB/yGtLI2EsGoY6F7XKklfMxYQyvtL+gT/UCqkMzO0BVFHLDlzvFqQzurYahxv9Q==", + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.26.1.tgz", + "integrity": "sha512-yUwPpUHDgdrv1QJ7YQal3cMVBGWfnuCdKbXw1yyjArax3353rEJP1ZA+4F8nOlQ3RfS2hUN/wze3nlY+ZOhvoA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.25.0", - "@typescript-eslint/visitor-keys": "8.25.0", + "@typescript-eslint/types": "8.26.1", + "@typescript-eslint/visitor-keys": "8.26.1", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -3000,7 +3010,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <5.8.0" + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { @@ -3043,16 +3053,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.25.0.tgz", - "integrity": "sha512-syqRbrEv0J1wywiLsK60XzHnQe/kRViI3zwFALrNEgnntn1l24Ra2KvOAWwWbWZ1lBZxZljPDGOq967dsl6fkA==", + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.26.1.tgz", + "integrity": "sha512-V4Urxa/XtSUroUrnI7q6yUTD3hDtfJ2jzVfeT3VK0ciizfK2q/zGC0iDh1lFMUZR8cImRrep6/q0xd/1ZGPQpg==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.25.0", - "@typescript-eslint/types": "8.25.0", - "@typescript-eslint/typescript-estree": "8.25.0" + "@typescript-eslint/scope-manager": "8.26.1", + "@typescript-eslint/types": "8.26.1", + "@typescript-eslint/typescript-estree": "8.26.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3063,17 +3073,17 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.8.0" + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.25.0.tgz", - "integrity": "sha512-kCYXKAum9CecGVHGij7muybDfTS2sD3t0L4bJsEZLkyrXUImiCTq1M3LG2SRtOhiHFwMR9wAFplpT6XHYjTkwQ==", + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.26.1.tgz", + "integrity": "sha512-AjOC3zfnxd6S4Eiy3jwktJPclqhFHNyd8L6Gycf9WUPoKZpgM5PjkxY1X7uSy61xVpiJDhhk7XT2NVsN3ALTWg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.25.0", + "@typescript-eslint/types": "8.26.1", "eslint-visitor-keys": "^4.2.0" }, "engines": { @@ -3594,9 +3604,9 @@ } }, "node_modules/axios": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.1.tgz", - "integrity": "sha512-NN+fvwH/kV01dYUQ3PTOZns4LWtWhOFCAhQ/pHb88WQ1hNe5V/dvFwc4VJcDL11LT9xSX0QtsR8sWUuyOuOq7g==", + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.3.tgz", + "integrity": "sha512-iP4DebzoNlP/YN2dpwCgb8zoCmhtkajzS48JvwmkSkXvPI3DHc7m+XYL5tGnSlJtR6nImXZmdCuN5aP8dh1d8A==", "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", @@ -4863,18 +4873,19 @@ } }, "node_modules/eslint": { - "version": "9.21.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.21.0.tgz", - "integrity": "sha512-KjeihdFqTPhOMXTt7StsDxriV4n66ueuF/jfPNC3j/lduHwr/ijDwJMsF+wyMJethgiKi5wniIE243vi07d3pg==", + "version": "9.22.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.22.0.tgz", + "integrity": "sha512-9V/QURhsRN40xuHXWjV64yvrzMjcz7ZyNoF2jJFmy9j/SLk0u1OLSZgXi28MrXjymnjEGSR80WCdab3RGMDveQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.19.2", + "@eslint/config-helpers": "^0.1.0", "@eslint/core": "^0.12.0", "@eslint/eslintrc": "^3.3.0", - "@eslint/js": "9.21.0", + "@eslint/js": "9.22.0", "@eslint/plugin-kit": "^0.2.7", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", @@ -4886,7 +4897,7 @@ "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.2.0", + "eslint-scope": "^8.3.0", "eslint-visitor-keys": "^4.2.0", "espree": "^10.3.0", "esquery": "^1.5.0", @@ -4945,9 +4956,9 @@ } }, "node_modules/eslint-import-resolver-typescript": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.8.3.tgz", - "integrity": "sha512-A0bu4Ks2QqDWNpeEgTQMPTngaMhuDu4yv6xpftBMAf+1ziXnpx+eSR1WRfoPTe2BAiAjHFZ7kSNx1fvr5g5pmQ==", + "version": "3.8.5", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.8.5.tgz", + "integrity": "sha512-0ZRnzOqKc7TRm85w6REOUkVLHevN6nWd/xZsmKhSD/dcDktoxQaQAg59e5EK/QEsGFf7o5JSpE6qTwCEz0WjTw==", "dev": true, "license": "ISC", "dependencies": { @@ -5191,9 +5202,9 @@ } }, "node_modules/eslint-scope": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.2.0.tgz", - "integrity": "sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A==", + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", + "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", "dev": true, "license": "BSD-2-Clause", "dependencies": { @@ -8511,9 +8522,9 @@ } }, "node_modules/prettier": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.2.tgz", - "integrity": "sha512-lc6npv5PH7hVqozBR7lkBNOGXV9vMwROAPlumdBkX0wTbbzPu/U1hk5yL8p2pt4Xoc+2mkT8t/sow2YrV/M5qg==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", + "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", "dev": true, "license": "MIT", "bin": { @@ -8764,9 +8775,9 @@ } }, "node_modules/react-intersection-observer": { - "version": "9.15.1", - "resolved": "https://registry.npmjs.org/react-intersection-observer/-/react-intersection-observer-9.15.1.tgz", - "integrity": "sha512-vGrqYEVWXfH+AGu241uzfUpNK4HAdhCkSAyFdkMb9VWWXs6mxzBLpWCxEy9YcnDNY2g9eO6z7qUtTBdA9hc8pA==", + "version": "9.16.0", + "resolved": "https://registry.npmjs.org/react-intersection-observer/-/react-intersection-observer-9.16.0.tgz", + "integrity": "sha512-w9nJSEp+DrW9KmQmeWHQyfaP6b03v+TdXynaoA964Wxt7mdR3An11z4NNCQgL4gKSK7y1ver2Fq+JKH6CWEzUA==", "license": "MIT", "peerDependencies": { "react": "^17.0.0 || ^18.0.0 || ^19.0.0", @@ -8791,9 +8802,9 @@ "license": "MIT" }, "node_modules/react-markdown": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.0.0.tgz", - "integrity": "sha512-4mTz7Sya/YQ1jYOrkwO73VcFdkFJ8L8I9ehCxdcV0XrClHyOJGKbBk5FR4OOOG+HnyKw5u+C/Aby9TwinCteYA==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz", + "integrity": "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==", "license": "MIT", "dependencies": { "@types/hast": "^3.0.0", @@ -8828,9 +8839,9 @@ } }, "node_modules/react-select": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/react-select/-/react-select-5.10.0.tgz", - "integrity": "sha512-k96gw+i6N3ExgDwPIg0lUPmexl1ygPe6u5BdQFNBhkpbwroIgCNXdubtIzHfThYXYYTubwOBafoMnn7ruEP1xA==", + "version": "5.10.1", + "resolved": "https://registry.npmjs.org/react-select/-/react-select-5.10.1.tgz", + "integrity": "sha512-roPEZUL4aRZDx6DcsD+ZNreVl+fM8VsKn0Wtex1v4IazH60ILp5xhdlp464IsEAlJdXeD+BhDAFsBVMfvLQueA==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.12.0", @@ -10371,9 +10382,9 @@ } }, "node_modules/typescript": { - "version": "5.7.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", - "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", + "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", "dev": true, "license": "Apache-2.0", "bin": { @@ -10385,15 +10396,15 @@ } }, "node_modules/typescript-eslint": { - "version": "8.25.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.25.0.tgz", - "integrity": "sha512-TxRdQQLH4g7JkoFlYG3caW5v1S6kEkz8rqt80iQJZUYPq1zD1Ra7HfQBJJ88ABRaMvHAXnwRvRB4V+6sQ9xN5Q==", + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.26.1.tgz", + "integrity": "sha512-t/oIs9mYyrwZGRpDv3g+3K6nZ5uhKEMt2oNmAPwaY4/ye0+EH4nXIPYNtkYFS6QHm+1DFg34DbglYBz5P9Xysg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.25.0", - "@typescript-eslint/parser": "8.25.0", - "@typescript-eslint/utils": "8.25.0" + "@typescript-eslint/eslint-plugin": "8.26.1", + "@typescript-eslint/parser": "8.26.1", + "@typescript-eslint/utils": "8.26.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -10404,7 +10415,7 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.8.0" + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/unbox-primitive": { @@ -10764,9 +10775,9 @@ } }, "node_modules/vite": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.0.tgz", - "integrity": "sha512-7dPxoo+WsT/64rDcwoOjk76XHj+TqNTIvHKcuMQ1k4/SeHDaQt5GFAeLYzrimZrMpn/O6DtdI03WUjdxuPM0oQ==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.1.tgz", + "integrity": "sha512-n2GnqDb6XPhlt9B8olZPrgMD/es/Nd1RdChF6CBD/fHW6pUyUTt2sQW2fPRX5GiD9XEa6+8A6A4f2vT6pSsE7Q==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 81bb0a37..d51dfe9c 100644 --- a/package.json +++ b/package.json @@ -13,14 +13,14 @@ "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.0", "@github/webauthn-json": "^2.1.1", - "@inertiajs/react": "^2.0.3", - "@mui/material": "^6.4.6", - "@mui/x-date-pickers": "^7.27.1", + "@inertiajs/react": "^2.0.5", + "@mui/material": "^6.4.7", + "@mui/x-date-pickers": "^7.27.3", "@react-google-maps/api": "^2.20.6", - "@sentry/react": "^9.3.0", + "@sentry/react": "^9.5.0", "@sentry/tracing": "^7.120.3", - "@sentry/vite-plugin": "^3.2.1", - "axios": "^1.8.1", + "@sentry/vite-plugin": "^3.2.2", + "axios": "^1.8.3", "bootstrap": "^5.3.3", "chart.js": "^4.4.8", "copy-to-clipboard": "^3.3.3", @@ -32,9 +32,9 @@ "react-chartjs-2": "^5.3.0", "react-hot-toast": "^2.5.2", "react-icons": "^5.5.0", - "react-intersection-observer": "^9.15.1", - "react-markdown": "^10.0.0", - "react-select": "^5.10.0", + "react-intersection-observer": "^9.16.0", + "react-markdown": "^10.1.0", + "react-select": "^5.10.1", "react-social-icons": "^6.22.0", "react-textarea-autosize": "^8.5.7", "remark-gfm": "^4.0.1", @@ -43,15 +43,15 @@ "yup": "^1.6.1" }, "devDependencies": { - "@eslint/js": "^9.21.0", + "@eslint/js": "^9.22.0", "@types/eslint__js": "^9.14.0", "@types/lodash": "^4.17.16", "@types/node": "^22.13.8", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", "@vitejs/plugin-react": "^4.3.4", - "eslint": "^9.21.0", - "eslint-import-resolver-typescript": "^3.8.3", + "eslint": "^9.22.0", + "eslint-import-resolver-typescript": "^3.8.5", "eslint-plugin-import": "^2.31.0", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-promise": "^7.2.1", @@ -61,16 +61,16 @@ "eslint-plugin-unused-imports": "^4.1.4", "globals": "^16.0.0", "husky": "^9.1.7", - "prettier": "^3.5.2", + "prettier": "^3.5.3", "react": "^19.0.0", "react-dom": "^19.0.0", "rollup-plugin-visualizer": "^5.14.0", "sass": "^1.85.1", "serve": "^14.2.4", "source-map-explorer": "^2.5.3", - "typescript": "5.7", - "typescript-eslint": "^8.25.0", - "vite": "^6.2.0", + "typescript": "5.8", + "typescript-eslint": "^8.26.1", + "vite": "^6.2.1", "vite-plugin-full-reload": "^1.2.0", "vite-plugin-rails": "^0.5.0", "vite-plugin-ruby": "^5.1.1", diff --git a/sorbet/rbi/gems/actioncable@8.0.1.rbi b/sorbet/rbi/gems/actioncable@8.0.2.rbi similarity index 95% rename from sorbet/rbi/gems/actioncable@8.0.1.rbi rename to sorbet/rbi/gems/actioncable@8.0.2.rbi index 70c52976..ceaf457c 100644 --- a/sorbet/rbi/gems/actioncable@8.0.1.rbi +++ b/sorbet/rbi/gems/actioncable@8.0.2.rbi @@ -163,19 +163,19 @@ class ActionCable::Channel::Base # source://actioncable//lib/action_cable/channel/base.rb#155 def initialize(connection, identifier, params = T.unsafe(nil)); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_subscribe_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_unsubscribe_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _subscribe_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _unsubscribe_callbacks; end # Returns the value of attribute connection. @@ -206,13 +206,13 @@ class ActionCable::Channel::Base # source://actioncable//lib/action_cable/channel/periodic_timers.rb#11 def periodic_timers=(_arg0); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # This method is called after subscription has been added to the connection and @@ -304,22 +304,22 @@ class ActionCable::Channel::Base def unsubscribed; end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _subscribe_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _subscribe_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _unsubscribe_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _unsubscribe_callbacks=(value); end # A list of method names that should be considered actions. This includes all @@ -342,33 +342,33 @@ class ActionCable::Channel::Base # source://actioncable//lib/action_cable/channel/periodic_timers.rb#11 def periodic_timers?; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_periodic_timers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_periodic_timers=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end # action_methods are cached and there is sometimes need to refresh them. @@ -978,10 +978,10 @@ class ActionCable::Channel::TestCase < ::ActiveSupport::TestCase private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__channel_class; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__channel_class=(new_value); end end end @@ -1223,13 +1223,13 @@ class ActionCable::Connection::Base # source://actioncable//lib/action_cable/connection/base.rb#67 def initialize(server, env, coder: T.unsafe(nil)); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _command_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_command_callbacks(&block); end # source://actioncable//lib/action_cable/connection/base.rb#147 @@ -1308,13 +1308,13 @@ class ActionCable::Connection::Base # source://actioncable//lib/action_cable/connection/base.rb#97 def receive(websocket_message); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # Invoke a method on the connection asynchronously through the pool of thread @@ -1417,16 +1417,16 @@ class ActionCable::Connection::Base def websocket; end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _command_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _command_callbacks=(value); end # source://actioncable//lib/action_cable/connection/identification.rb#11 @@ -1438,33 +1438,33 @@ class ActionCable::Connection::Base # source://actioncable//lib/action_cable/connection/identification.rb#11 def identifiers?; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_identifiers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_identifiers=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -1920,11 +1920,8 @@ end # # ## Basic example # -# Unit tests are written as follows: -# -# 1. Simulate a connection attempt by calling `connect`. -# 2. Assert state, e.g. identifiers, has been assigned. -# +# Unit tests are written by first simulating a connection attempt by calling +# `connect` and then asserting state, e.g. identifiers, have been assigned. # # class ApplicationCable::ConnectionTest < ActionCable::Connection::TestCase # def test_connects_with_proper_cookie @@ -1983,7 +1980,7 @@ end # tests ApplicationCable::Connection # end # -# source://actioncable//lib/action_cable/connection/test_case.rb#141 +# source://actioncable//lib/action_cable/connection/test_case.rb#138 class ActionCable::Connection::TestCase < ::ActiveSupport::TestCase include ::ActiveSupport::Testing::ConstantLookup include ::ActionCable::Connection::Assertions @@ -1991,39 +1988,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#151 + # source://actioncable//lib/action_cable/connection/test_case.rb#148 def _connection_class; end - # source://actioncable//lib/action_cable/connection/test_case.rb#151 + # source://actioncable//lib/action_cable/connection/test_case.rb#148 def _connection_class=(_arg0); end - # source://actioncable//lib/action_cable/connection/test_case.rb#151 + # source://actioncable//lib/action_cable/connection/test_case.rb#148 def _connection_class?; end - # source://actioncable//lib/action_cable/connection/test_case.rb#153 + # source://actioncable//lib/action_cable/connection/test_case.rb#150 def connection; end class << self - # source://actioncable//lib/action_cable/connection/test_case.rb#151 + # source://actioncable//lib/action_cable/connection/test_case.rb#148 def _connection_class; end - # source://actioncable//lib/action_cable/connection/test_case.rb#151 + # source://actioncable//lib/action_cable/connection/test_case.rb#148 def _connection_class=(value); end - # source://actioncable//lib/action_cable/connection/test_case.rb#151 + # source://actioncable//lib/action_cable/connection/test_case.rb#148 def _connection_class?; end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__connection_class; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__connection_class=(new_value); end end end -# source://actioncable//lib/action_cable/connection/test_case.rb#142 +# source://actioncable//lib/action_cable/connection/test_case.rb#139 module ActionCable::Connection::TestCase::Behavior include ::ActionCable::Connection::Assertions extend ::ActiveSupport::Concern @@ -2043,20 +2040,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#195 + # source://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#215 + # source://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#208 + # source://actioncable//lib/action_cable/connection/test_case.rb#205 def disconnect; end private - # source://actioncable//lib/action_cable/connection/test_case.rb#220 + # source://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 @@ -2072,21 +2069,21 @@ module ActionCable::Connection::TestCase::Behavior end end -# source://actioncable//lib/action_cable/connection/test_case.rb#158 +# source://actioncable//lib/action_cable/connection/test_case.rb#155 module ActionCable::Connection::TestCase::Behavior::ClassMethods - # source://actioncable//lib/action_cable/connection/test_case.rb#170 + # source://actioncable//lib/action_cable/connection/test_case.rb#167 def connection_class; end # @raise [NonInferrableConnectionError] # - # source://actioncable//lib/action_cable/connection/test_case.rb#178 + # source://actioncable//lib/action_cable/connection/test_case.rb#175 def determine_default_connection(name); end - # source://actioncable//lib/action_cable/connection/test_case.rb#159 + # source://actioncable//lib/action_cable/connection/test_case.rb#156 def tests(connection); end end -# source://actioncable//lib/action_cable/connection/test_case.rb#145 +# source://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 @@ -2197,10 +2194,10 @@ class ActionCable::Engine < ::Rails::Engine class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end end end @@ -2347,10 +2344,10 @@ class ActionCable::RemoteConnections::RemoteConnection private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_identifiers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_identifiers=(new_value); end end end @@ -2760,13 +2757,13 @@ class ActionCable::Server::Worker # source://actioncable//lib/action_cable/server/worker.rb#21 def initialize(max_size: T.unsafe(nil)); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_work_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _work_callbacks; end # source://actioncable//lib/action_cable/server/worker.rb#48 @@ -2775,10 +2772,10 @@ class ActionCable::Server::Worker # source://actioncable//lib/action_cable/server/worker.rb#52 def async_invoke(receiver, method, *args, connection: T.unsafe(nil), &block); end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 def connection; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 def connection=(obj); end # Returns the value of attribute executor. @@ -2809,30 +2806,30 @@ class ActionCable::Server::Worker def logger; end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _work_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _work_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def connection; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 def connection=(obj); end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end end end diff --git a/sorbet/rbi/gems/actionmailbox@8.0.1.rbi b/sorbet/rbi/gems/actionmailbox@8.0.2.rbi similarity index 100% rename from sorbet/rbi/gems/actionmailbox@8.0.1.rbi rename to sorbet/rbi/gems/actionmailbox@8.0.2.rbi diff --git a/sorbet/rbi/gems/actionmailer@8.0.1.rbi b/sorbet/rbi/gems/actionmailer@8.0.2.rbi similarity index 88% rename from sorbet/rbi/gems/actionmailer@8.0.1.rbi rename to sorbet/rbi/gems/actionmailer@8.0.2.rbi index 843ceb34..18be4ef0 100644 --- a/sorbet/rbi/gems/actionmailer@8.0.1.rbi +++ b/sorbet/rbi/gems/actionmailer@8.0.2.rbi @@ -540,58 +540,58 @@ class ActionMailer::Base < ::AbstractController::Base # @return [Base] a new instance of Base # - # source://actionmailer//lib/action_mailer/base.rb#643 + # source://actionmailer//lib/action_mailer/base.rb#638 def initialize; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _deliver_callbacks; end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods; end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods=(_arg0); end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods?; end - # source://actionview/8.0.1/lib/action_view/layouts.rb#212 + # source://actionview/8.0.2/lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionview/8.0.1/lib/action_view/layouts.rb#212 + # source://actionview/8.0.2/lib/action_view/layouts.rb#212 def _layout_conditions?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _process_action_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_deliver_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_process_action_callbacks(&block); end - # source://actionpack/8.0.1/lib/abstract_controller/caching.rb#44 + # source://actionpack/8.0.2/lib/abstract_controller/caching.rb#44 def _view_cache_dependencies; end - # source://actionpack/8.0.1/lib/abstract_controller/caching.rb#44 + # source://actionpack/8.0.2/lib/abstract_controller/caching.rb#44 def _view_cache_dependencies=(_arg0); end - # source://actionpack/8.0.1/lib/abstract_controller/caching.rb#44 + # source://actionpack/8.0.2/lib/abstract_controller/caching.rb#44 def _view_cache_dependencies?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def assets_dir=(value); end # Allows you to add attachments to an email, like so: @@ -623,13 +623,13 @@ class ActionMailer::Base < ::AbstractController::Base # # or by index # mail.attachments[0] # => Mail::Part (first attachment) # - # source://actionmailer//lib/action_mailer/base.rb#760 + # source://actionmailer//lib/action_mailer/base.rb#755 def attachments; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end # source://actionmailer//lib/action_mailer/base.rb#502 @@ -641,10 +641,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#502 def default_params?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_static_extension=(value); end # source://actionmailer//lib/action_mailer/queued_delivery.rb#9 @@ -687,13 +687,13 @@ class ActionMailer::Base < ::AbstractController::Base # # If the name is a blank string, it returns just the address. # - # source://actionmailer//lib/action_mailer/base.rb#684 + # source://actionmailer//lib/action_mailer/base.rb#679 def email_address_with_name(address, name); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 @@ -705,13 +705,13 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 def file_settings?; end - # source://actionpack/8.0.1/lib/abstract_controller/caching/fragments.rb#26 + # source://actionpack/8.0.2/lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys; end - # source://actionpack/8.0.1/lib/abstract_controller/caching/fragments.rb#26 + # source://actionpack/8.0.2/lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys=(_arg0); end - # source://actionpack/8.0.1/lib/abstract_controller/caching/fragments.rb#26 + # source://actionpack/8.0.2/lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys?; end # Allows you to pass random and unusual headers to the new +Mail::Message+ @@ -749,19 +749,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#722 + # source://actionmailer//lib/action_mailer/base.rb#717 def headers(args = T.unsafe(nil)); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def logger=(value); end # The main method that creates the message and renders the email templates. There are @@ -853,18 +853,18 @@ class ActionMailer::Base < ::AbstractController::Base # format.html # end # - # source://actionmailer//lib/action_mailer/base.rb#869 + # source://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#677 + # source://actionmailer//lib/action_mailer/base.rb#672 def mailer_name; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def message; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def message=(_arg0); end # source://actionmailer//lib/action_mailer/parameterized.rb#95 @@ -873,10 +873,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/parameterized.rb#93 def params=(_arg0); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def perform_caching=(value); end # source://actionmailer//lib/action_mailer/delivery_methods.rb#16 @@ -891,7 +891,7 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/preview.rb#14 def preview_paths; end - # source://actionmailer//lib/action_mailer/base.rb#649 + # source://actionmailer//lib/action_mailer/base.rb#644 def process(method_name, *args, **_arg2); end # source://actionmailer//lib/action_mailer/delivery_methods.rb#15 @@ -900,25 +900,25 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/delivery_methods.rb#15 def raise_delivery_errors=(val); end - # source://actionpack/8.0.1/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/8.0.2/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions; end - # source://actionpack/8.0.1/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/8.0.2/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions=(val); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 @@ -942,10 +942,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 def smtp_settings?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 @@ -959,36 +959,36 @@ class ActionMailer::Base < ::AbstractController::Base private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end - # source://actionmailer//lib/action_mailer/base.rb#1070 + # source://actionmailer//lib/action_mailer/base.rb#1065 def _protected_ivars; end - # source://actionmailer//lib/action_mailer/base.rb#946 + # source://actionmailer//lib/action_mailer/base.rb#941 def apply_defaults(headers); end - # source://actionmailer//lib/action_mailer/base.rb#966 + # source://actionmailer//lib/action_mailer/base.rb#961 def assign_headers_to_message(message, headers); end - # source://actionmailer//lib/action_mailer/base.rb#972 + # source://actionmailer//lib/action_mailer/base.rb#967 def collect_responses(headers, &block); end # @yield [collector] # - # source://actionmailer//lib/action_mailer/base.rb#982 + # source://actionmailer//lib/action_mailer/base.rb#977 def collect_responses_from_block(headers); end - # source://actionmailer//lib/action_mailer/base.rb#996 + # source://actionmailer//lib/action_mailer/base.rb#991 def collect_responses_from_templates(headers); end - # source://actionmailer//lib/action_mailer/base.rb#989 + # source://actionmailer//lib/action_mailer/base.rb#984 def collect_responses_from_text(headers); end - # source://actionmailer//lib/action_mailer/base.rb#956 + # source://actionmailer//lib/action_mailer/base.rb#951 def compute_default(value); end - # source://actionmailer//lib/action_mailer/base.rb#1039 + # source://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 +996,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#936 + # source://actionmailer//lib/action_mailer/base.rb#931 def default_i18n_subject(interpolations = T.unsafe(nil)); end - # source://actionmailer//lib/action_mailer/base.rb#1009 + # source://actionmailer//lib/action_mailer/base.rb#1004 def each_template(paths, name, &block); end - # source://actionmailer//lib/action_mailer/base.rb#1052 + # source://actionmailer//lib/action_mailer/base.rb#1047 def insert_part(container, response, charset); end - # source://actionmailer//lib/action_mailer/base.rb#1066 + # source://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#1059 + # source://actionmailer//lib/action_mailer/base.rb#1054 def instrument_payload(key); end # Used by #mail to set the content type of the message. @@ -1023,17 +1023,17 @@ 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#914 + # source://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#1018 + # source://actionmailer//lib/action_mailer/base.rb#1013 def wrap_inline_attachments(message); end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end # source://actionmailer//lib/action_mailer/form_builder.rb#18 @@ -1045,67 +1045,67 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/form_builder.rb#18 def _default_form_builder?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _deliver_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _deliver_callbacks=(value); end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods; end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods=(value); end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods?; end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#17 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#17 def _helpers; end - # source://actionview/8.0.1/lib/action_view/layouts.rb#211 + # source://actionview/8.0.2/lib/action_view/layouts.rb#211 def _layout; end - # source://actionview/8.0.1/lib/action_view/layouts.rb#211 + # source://actionview/8.0.2/lib/action_view/layouts.rb#211 def _layout=(value); end - # source://actionview/8.0.1/lib/action_view/layouts.rb#211 + # source://actionview/8.0.2/lib/action_view/layouts.rb#211 def _layout?; end - # source://actionview/8.0.1/lib/action_view/layouts.rb#212 + # source://actionview/8.0.2/lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionview/8.0.1/lib/action_view/layouts.rb#212 + # source://actionview/8.0.2/lib/action_view/layouts.rb#212 def _layout_conditions=(value); end - # source://actionview/8.0.1/lib/action_view/layouts.rb#212 + # source://actionview/8.0.2/lib/action_view/layouts.rb#212 def _layout_conditions?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _process_action_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _process_action_callbacks=(value); end - # source://actionpack/8.0.1/lib/abstract_controller/caching.rb#44 + # source://actionpack/8.0.2/lib/abstract_controller/caching.rb#44 def _view_cache_dependencies; end - # source://actionpack/8.0.1/lib/abstract_controller/caching.rb#44 + # source://actionpack/8.0.2/lib/abstract_controller/caching.rb#44 def _view_cache_dependencies=(value); end - # source://actionpack/8.0.1/lib/abstract_controller/caching.rb#44 + # source://actionpack/8.0.2/lib/abstract_controller/caching.rb#44 def _view_cache_dependencies?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 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. @@ -1114,31 +1114,24 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#570 def controller_path; end - # Sets the defaults through app configuration: - # - # config.action_mailer.default(from: "no-reply@example.org") + # Allows to set defaults through app configuration: # - # Aliased by ::default_options= + # config.action_mailer.default_options = { from: "no-reply@example.org" } # - # source://actionmailer//lib/action_mailer/base.rb#582 + # source://actionmailer//lib/action_mailer/base.rb#580 def default(value = T.unsafe(nil)); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end - # Sets the defaults through app configuration: - # - # config.action_mailer.default(from: "no-reply@example.org") - # - # Aliased by ::default_options= # Allows to set defaults through app configuration: # # config.action_mailer.default_options = { from: "no-reply@example.org" } # - # source://actionmailer//lib/action_mailer/base.rb#582 + # source://actionmailer//lib/action_mailer/base.rb#580 def default_options=(value = T.unsafe(nil)); end # source://actionmailer//lib/action_mailer/base.rb#502 @@ -1150,10 +1143,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#502 def default_params?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_static_extension=(value); end # source://actionmailer//lib/action_mailer/queued_delivery.rb#9 @@ -1172,7 +1165,7 @@ 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#597 + # source://actionmailer//lib/action_mailer/base.rb#592 def deliver_mail(mail); end # source://actionmailer//lib/action_mailer/queued_delivery.rb#8 @@ -1206,13 +1199,13 @@ class ActionMailer::Base < ::AbstractController::Base # # If the name is a blank string, it returns just the address. # - # source://actionmailer//lib/action_mailer/base.rb#607 + # source://actionmailer//lib/action_mailer/base.rb#602 def email_address_with_name(address, name); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 @@ -1224,25 +1217,25 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 def file_settings?; end - # source://actionpack/8.0.1/lib/abstract_controller/caching/fragments.rb#26 + # source://actionpack/8.0.2/lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys; end - # source://actionpack/8.0.1/lib/abstract_controller/caching/fragments.rb#26 + # source://actionpack/8.0.2/lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys=(value); end - # source://actionpack/8.0.1/lib/abstract_controller/caching/fragments.rb#26 + # source://actionpack/8.0.2/lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def logger=(value); end # Returns the name of the current mailer. This method is also being used as a path for a view lookup. @@ -1256,10 +1249,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#574 def mailer_name=(_arg0); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def perform_caching=(value); end # source://actionmailer//lib/action_mailer/delivery_methods.rb#16 @@ -1286,10 +1279,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/delivery_methods.rb#15 def raise_delivery_errors=(val); end - # source://actionpack/8.0.1/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/8.0.2/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions; end - # source://actionpack/8.0.1/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/8.0.2/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions=(val); end # Register an Interceptor which will be called before mail is sent. @@ -1316,19 +1309,19 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/base.rb#511 def register_observers(*observers); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 @@ -1355,17 +1348,17 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 def smtp_settings?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end # Emails do not support relative path links. # # @return [Boolean] # - # source://actionmailer//lib/action_mailer/base.rb#942 + # source://actionmailer//lib/action_mailer/base.rb#937 def supports_path?; end # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 @@ -1403,109 +1396,109 @@ class ActionMailer::Base < ::AbstractController::Base private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__default_form_builder; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__default_form_builder=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__helper_methods; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__helper_methods=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__layout; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__layout=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__layout_conditions; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__layout_conditions=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__view_cache_dependencies; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__view_cache_dependencies=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_params; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_params=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_deliver_later_queue_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_deliver_later_queue_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_delivery_job; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_delivery_job=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_delivery_method; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_delivery_method=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_delivery_methods; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_delivery_methods=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_file_settings; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_file_settings=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_fragment_cache_keys; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_fragment_cache_keys=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_sendmail_settings; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_sendmail_settings=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_smtp_settings; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_smtp_settings=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_test_settings; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_test_settings=(new_value); end - # source://actionmailer//lib/action_mailer/base.rb#628 + # source://actionmailer//lib/action_mailer/base.rb#623 def method_missing(method_name, *_arg1, **_arg2, &_arg3); end # source://actionmailer//lib/action_mailer/base.rb#558 @@ -1513,10 +1506,10 @@ class ActionMailer::Base < ::AbstractController::Base # @return [Boolean] # - # source://actionmailer//lib/action_mailer/base.rb#636 + # source://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#615 + # source://actionmailer//lib/action_mailer/base.rb#610 def set_payload_for_mail(payload, mail); end end end @@ -1525,43 +1518,43 @@ end module ActionMailer::Base::HelperMethods include ::ActionMailer::MailHelper - # source://actionpack/8.0.1/lib/abstract_controller/caching/fragments.rb#34 + # source://actionpack/8.0.2/lib/abstract_controller/caching/fragments.rb#34 def combined_fragment_cache_key(*_arg0, **_arg1, &_arg2); end - # source://actionpack/8.0.1/lib/abstract_controller/caching.rb#45 + # source://actionpack/8.0.2/lib/abstract_controller/caching.rb#45 def view_cache_dependencies(*_arg0, **_arg1, &_arg2); end end -# source://actionmailer//lib/action_mailer/base.rb#768 +# source://actionmailer//lib/action_mailer/base.rb#763 class ActionMailer::Base::LateAttachmentsProxy < ::SimpleDelegator - # source://actionmailer//lib/action_mailer/base.rb#770 + # source://actionmailer//lib/action_mailer/base.rb#765 def []=(_name, _content); end - # source://actionmailer//lib/action_mailer/base.rb#769 + # source://actionmailer//lib/action_mailer/base.rb#764 def inline; end private # @raise [RuntimeError] # - # source://actionmailer//lib/action_mailer/base.rb#773 + # source://actionmailer//lib/action_mailer/base.rb#768 def _raise_error; end end -# source://actionmailer//lib/action_mailer/base.rb#663 +# source://actionmailer//lib/action_mailer/base.rb#658 class ActionMailer::Base::NullMail - # source://actionmailer//lib/action_mailer/base.rb#664 + # source://actionmailer//lib/action_mailer/base.rb#659 def body; end - # source://actionmailer//lib/action_mailer/base.rb#665 + # source://actionmailer//lib/action_mailer/base.rb#660 def header; end - # source://actionmailer//lib/action_mailer/base.rb#671 + # source://actionmailer//lib/action_mailer/base.rb#666 def method_missing(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://actionmailer//lib/action_mailer/base.rb#667 + # source://actionmailer//lib/action_mailer/base.rb#662 def respond_to?(string, include_all = T.unsafe(nil)); end end @@ -1768,7 +1761,7 @@ end # = Action Mailer \InlinePreviewInterceptor # # Implements a mailer preview interceptor that converts image tag src attributes -# that use inline cid: style URLs to data: style URLs so that they are visible +# that use inline +cid:+ style URLs to +data:+ style URLs so that they are visible # when previewing an HTML email in a web browser. # # This interceptor is enabled by default. To disable it, delete it from the @@ -1838,10 +1831,10 @@ class ActionMailer::LogSubscriber < ::ActiveSupport::LogSubscriber class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_log_levels; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_log_levels=(new_value); end end end @@ -1873,16 +1866,16 @@ class ActionMailer::MailDeliveryJob < ::ActiveJob::Base class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -2428,16 +2421,16 @@ class ActionMailer::TestCase < ::ActiveSupport::TestCase private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__mailer_class; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__mailer_class=(new_value); end end end diff --git a/sorbet/rbi/gems/actiontext@8.0.1.rbi b/sorbet/rbi/gems/actiontext@8.0.2.rbi similarity index 100% rename from sorbet/rbi/gems/actiontext@8.0.1.rbi rename to sorbet/rbi/gems/actiontext@8.0.2.rbi diff --git a/sorbet/rbi/gems/actionview@8.0.1.rbi b/sorbet/rbi/gems/actionview@8.0.2.rbi similarity index 96% rename from sorbet/rbi/gems/actionview@8.0.1.rbi rename to sorbet/rbi/gems/actionview@8.0.2.rbi index 6e0be771..506cd63c 100644 --- a/sorbet/rbi/gems/actionview@8.0.1.rbi +++ b/sorbet/rbi/gems/actionview@8.0.2.rbi @@ -12,16 +12,16 @@ class ActionController::Base < ::ActionController::Metal include ::ActionController::BasicImplicitRender extend ::AbstractController::Helpers::Resolution - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods; end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods=(_arg0); end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods?; end # source://actionview//lib/action_view/layouts.rb#212 @@ -30,268 +30,268 @@ class ActionController::Base < ::ActionController::Metal # source://actionview//lib/action_view/layouts.rb#212 def _layout_conditions?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _process_action_callbacks; end - # source://actionpack/8.0.1/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/8.0.2/lib/action_controller/metal/renderers.rb#31 def _renderers; end - # source://actionpack/8.0.1/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/8.0.2/lib/action_controller/metal/renderers.rb#31 def _renderers=(_arg0); end - # source://actionpack/8.0.1/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/8.0.2/lib/action_controller/metal/renderers.rb#31 def _renderers?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_process_action_callbacks(&block); end - # source://actionpack/8.0.1/lib/abstract_controller/caching.rb#44 + # source://actionpack/8.0.2/lib/abstract_controller/caching.rb#44 def _view_cache_dependencies; end - # source://actionpack/8.0.1/lib/abstract_controller/caching.rb#44 + # source://actionpack/8.0.2/lib/abstract_controller/caching.rb#44 def _view_cache_dependencies=(_arg0); end - # source://actionpack/8.0.1/lib/abstract_controller/caching.rb#44 + # source://actionpack/8.0.2/lib/abstract_controller/caching.rb#44 def _view_cache_dependencies?; end - # source://actionpack/8.0.1/lib/action_controller/metal/params_wrapper.rb#185 + # source://actionpack/8.0.2/lib/action_controller/metal/params_wrapper.rb#185 def _wrapper_options; end - # source://actionpack/8.0.1/lib/action_controller/metal/params_wrapper.rb#185 + # source://actionpack/8.0.2/lib/action_controller/metal/params_wrapper.rb#185 def _wrapper_options=(_arg0); end - # source://actionpack/8.0.1/lib/action_controller/metal/params_wrapper.rb#185 + # source://actionpack/8.0.2/lib/action_controller/metal/params_wrapper.rb#185 def _wrapper_options?; end - # source://actionpack/8.0.1/lib/action_controller/metal/flash.rb#38 + # source://actionpack/8.0.2/lib/action_controller/metal/flash.rb#38 def alert; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def allow_forgery_protection; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def allow_forgery_protection=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def assets_dir=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def csrf_token_storage_strategy; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def csrf_token_storage_strategy=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_static_extension=(value); end - # source://actionpack/8.0.1/lib/action_dispatch/routing/url_for.rb#100 + # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#100 def default_url_options; end - # source://actionpack/8.0.1/lib/action_dispatch/routing/url_for.rb#100 + # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#100 def default_url_options=(_arg0); end - # source://actionpack/8.0.1/lib/action_dispatch/routing/url_for.rb#100 + # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#100 def default_url_options?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end - # source://actionpack/8.0.1/lib/action_controller/metal/etag_with_template_digest.rb#31 + # source://actionpack/8.0.2/lib/action_controller/metal/etag_with_template_digest.rb#31 def etag_with_template_digest; end - # source://actionpack/8.0.1/lib/action_controller/metal/etag_with_template_digest.rb#31 + # source://actionpack/8.0.2/lib/action_controller/metal/etag_with_template_digest.rb#31 def etag_with_template_digest=(_arg0); end - # source://actionpack/8.0.1/lib/action_controller/metal/etag_with_template_digest.rb#31 + # source://actionpack/8.0.2/lib/action_controller/metal/etag_with_template_digest.rb#31 def etag_with_template_digest?; end - # source://actionpack/8.0.1/lib/action_controller/metal/conditional_get.rb#15 + # source://actionpack/8.0.2/lib/action_controller/metal/conditional_get.rb#15 def etaggers; end - # source://actionpack/8.0.1/lib/action_controller/metal/conditional_get.rb#15 + # source://actionpack/8.0.2/lib/action_controller/metal/conditional_get.rb#15 def etaggers=(_arg0); end - # source://actionpack/8.0.1/lib/action_controller/metal/conditional_get.rb#15 + # source://actionpack/8.0.2/lib/action_controller/metal/conditional_get.rb#15 def etaggers?; end - # source://actionpack/8.0.1/lib/action_controller/metal/flash.rb#12 + # source://actionpack/8.0.2/lib/action_controller/metal/flash.rb#12 def flash(*_arg0, **_arg1, &_arg2); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def forgery_protection_origin_check; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def forgery_protection_origin_check=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def forgery_protection_strategy; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def forgery_protection_strategy=(value); end - # source://actionpack/8.0.1/lib/abstract_controller/caching/fragments.rb#26 + # source://actionpack/8.0.2/lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys; end - # source://actionpack/8.0.1/lib/abstract_controller/caching/fragments.rb#26 + # source://actionpack/8.0.2/lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys=(_arg0); end - # source://actionpack/8.0.1/lib/abstract_controller/caching/fragments.rb#26 + # source://actionpack/8.0.2/lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys?; end - # source://actionpack/8.0.1/lib/action_controller/metal/helpers.rb#70 + # source://actionpack/8.0.2/lib/action_controller/metal/helpers.rb#70 def helpers_path; end - # source://actionpack/8.0.1/lib/action_controller/metal/helpers.rb#70 + # source://actionpack/8.0.2/lib/action_controller/metal/helpers.rb#70 def helpers_path=(_arg0); end - # source://actionpack/8.0.1/lib/action_controller/metal/helpers.rb#70 + # source://actionpack/8.0.2/lib/action_controller/metal/helpers.rb#70 def helpers_path?; end - # source://actionpack/8.0.1/lib/action_controller/metal/helpers.rb#71 + # source://actionpack/8.0.2/lib/action_controller/metal/helpers.rb#71 def include_all_helpers; end - # source://actionpack/8.0.1/lib/action_controller/metal/helpers.rb#71 + # source://actionpack/8.0.2/lib/action_controller/metal/helpers.rb#71 def include_all_helpers=(_arg0); end - # source://actionpack/8.0.1/lib/action_controller/metal/helpers.rb#71 + # source://actionpack/8.0.2/lib/action_controller/metal/helpers.rb#71 def include_all_helpers?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def log_warning_on_csrf_failure; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def log_warning_on_csrf_failure=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def logger=(value); end - # source://actionpack/8.0.1/lib/action_controller/metal/flash.rb#38 + # source://actionpack/8.0.2/lib/action_controller/metal/flash.rb#38 def notice; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def per_form_csrf_tokens; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def per_form_csrf_tokens=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def perform_caching=(value); end - # source://actionpack/8.0.1/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/8.0.2/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions; end - # source://actionpack/8.0.1/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/8.0.2/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions=(val); end - # source://actionpack/8.0.1/lib/action_controller/metal/redirecting.rb#17 + # source://actionpack/8.0.2/lib/action_controller/metal/redirecting.rb#17 def raise_on_open_redirects; end - # source://actionpack/8.0.1/lib/action_controller/metal/redirecting.rb#17 + # source://actionpack/8.0.2/lib/action_controller/metal/redirecting.rb#17 def raise_on_open_redirects=(val); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def request_forgery_protection_token; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def request_forgery_protection_token=(value); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/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); end + def _layout(lookup_context, formats, keys); end - # source://actionpack/8.0.1/lib/action_controller/base.rb#324 + # source://actionpack/8.0.2/lib/action_controller/base.rb#324 def _protected_ivars; end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://actionpack/8.0.1/lib/action_controller/form_builder.rb#35 + # source://actionpack/8.0.2/lib/action_controller/form_builder.rb#35 def _default_form_builder; end - # source://actionpack/8.0.1/lib/action_controller/form_builder.rb#35 + # source://actionpack/8.0.2/lib/action_controller/form_builder.rb#35 def _default_form_builder=(value); end - # source://actionpack/8.0.1/lib/action_controller/form_builder.rb#35 + # source://actionpack/8.0.2/lib/action_controller/form_builder.rb#35 def _default_form_builder?; end - # source://actionpack/8.0.1/lib/action_controller/metal/flash.rb#10 + # source://actionpack/8.0.2/lib/action_controller/metal/flash.rb#10 def _flash_types; end - # source://actionpack/8.0.1/lib/action_controller/metal/flash.rb#10 + # source://actionpack/8.0.2/lib/action_controller/metal/flash.rb#10 def _flash_types=(value); end - # source://actionpack/8.0.1/lib/action_controller/metal/flash.rb#10 + # source://actionpack/8.0.2/lib/action_controller/metal/flash.rb#10 def _flash_types?; end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods; end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods=(value); end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods?; end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#17 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#17 def _helpers; end # source://actionview//lib/action_view/layouts.rb#211 @@ -312,321 +312,321 @@ class ActionController::Base < ::ActionController::Metal # source://actionview//lib/action_view/layouts.rb#212 def _layout_conditions?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _process_action_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _process_action_callbacks=(value); end - # source://actionpack/8.0.1/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/8.0.2/lib/action_controller/metal/renderers.rb#31 def _renderers; end - # source://actionpack/8.0.1/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/8.0.2/lib/action_controller/metal/renderers.rb#31 def _renderers=(value); end - # source://actionpack/8.0.1/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/8.0.2/lib/action_controller/metal/renderers.rb#31 def _renderers?; end - # source://actionpack/8.0.1/lib/abstract_controller/caching.rb#44 + # source://actionpack/8.0.2/lib/abstract_controller/caching.rb#44 def _view_cache_dependencies; end - # source://actionpack/8.0.1/lib/abstract_controller/caching.rb#44 + # source://actionpack/8.0.2/lib/abstract_controller/caching.rb#44 def _view_cache_dependencies=(value); end - # source://actionpack/8.0.1/lib/abstract_controller/caching.rb#44 + # source://actionpack/8.0.2/lib/abstract_controller/caching.rb#44 def _view_cache_dependencies?; end - # source://actionpack/8.0.1/lib/action_controller/metal/params_wrapper.rb#185 + # source://actionpack/8.0.2/lib/action_controller/metal/params_wrapper.rb#185 def _wrapper_options; end - # source://actionpack/8.0.1/lib/action_controller/metal/params_wrapper.rb#185 + # source://actionpack/8.0.2/lib/action_controller/metal/params_wrapper.rb#185 def _wrapper_options=(value); end - # source://actionpack/8.0.1/lib/action_controller/metal/params_wrapper.rb#185 + # source://actionpack/8.0.2/lib/action_controller/metal/params_wrapper.rb#185 def _wrapper_options?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def allow_forgery_protection; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def allow_forgery_protection=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def assets_dir=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def csrf_token_storage_strategy; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def csrf_token_storage_strategy=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_static_extension=(value); end - # source://actionpack/8.0.1/lib/action_dispatch/routing/url_for.rb#100 + # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#100 def default_url_options; end - # source://actionpack/8.0.1/lib/action_dispatch/routing/url_for.rb#100 + # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#100 def default_url_options=(value); end - # source://actionpack/8.0.1/lib/action_dispatch/routing/url_for.rb#100 + # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#100 def default_url_options?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end - # source://actionpack/8.0.1/lib/action_controller/metal/etag_with_template_digest.rb#31 + # source://actionpack/8.0.2/lib/action_controller/metal/etag_with_template_digest.rb#31 def etag_with_template_digest; end - # source://actionpack/8.0.1/lib/action_controller/metal/etag_with_template_digest.rb#31 + # source://actionpack/8.0.2/lib/action_controller/metal/etag_with_template_digest.rb#31 def etag_with_template_digest=(value); end - # source://actionpack/8.0.1/lib/action_controller/metal/etag_with_template_digest.rb#31 + # source://actionpack/8.0.2/lib/action_controller/metal/etag_with_template_digest.rb#31 def etag_with_template_digest?; end - # source://actionpack/8.0.1/lib/action_controller/metal/conditional_get.rb#15 + # source://actionpack/8.0.2/lib/action_controller/metal/conditional_get.rb#15 def etaggers; end - # source://actionpack/8.0.1/lib/action_controller/metal/conditional_get.rb#15 + # source://actionpack/8.0.2/lib/action_controller/metal/conditional_get.rb#15 def etaggers=(value); end - # source://actionpack/8.0.1/lib/action_controller/metal/conditional_get.rb#15 + # source://actionpack/8.0.2/lib/action_controller/metal/conditional_get.rb#15 def etaggers?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def forgery_protection_origin_check; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def forgery_protection_origin_check=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def forgery_protection_strategy; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def forgery_protection_strategy=(value); end - # source://actionpack/8.0.1/lib/abstract_controller/caching/fragments.rb#26 + # source://actionpack/8.0.2/lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys; end - # source://actionpack/8.0.1/lib/abstract_controller/caching/fragments.rb#26 + # source://actionpack/8.0.2/lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys=(value); end - # source://actionpack/8.0.1/lib/abstract_controller/caching/fragments.rb#26 + # source://actionpack/8.0.2/lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys?; end - # source://actionpack/8.0.1/lib/action_controller/metal/helpers.rb#70 + # source://actionpack/8.0.2/lib/action_controller/metal/helpers.rb#70 def helpers_path; end - # source://actionpack/8.0.1/lib/action_controller/metal/helpers.rb#70 + # source://actionpack/8.0.2/lib/action_controller/metal/helpers.rb#70 def helpers_path=(value); end - # source://actionpack/8.0.1/lib/action_controller/metal/helpers.rb#70 + # source://actionpack/8.0.2/lib/action_controller/metal/helpers.rb#70 def helpers_path?; end - # source://actionpack/8.0.1/lib/action_controller/metal/helpers.rb#71 + # source://actionpack/8.0.2/lib/action_controller/metal/helpers.rb#71 def include_all_helpers; end - # source://actionpack/8.0.1/lib/action_controller/metal/helpers.rb#71 + # source://actionpack/8.0.2/lib/action_controller/metal/helpers.rb#71 def include_all_helpers=(value); end - # source://actionpack/8.0.1/lib/action_controller/metal/helpers.rb#71 + # source://actionpack/8.0.2/lib/action_controller/metal/helpers.rb#71 def include_all_helpers?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def log_warning_on_csrf_failure; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def log_warning_on_csrf_failure=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def logger=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def per_form_csrf_tokens; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def per_form_csrf_tokens=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def perform_caching=(value); end - # source://actionpack/8.0.1/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/8.0.2/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions; end - # source://actionpack/8.0.1/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/8.0.2/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions=(val); end - # source://actionpack/8.0.1/lib/action_controller/metal/redirecting.rb#17 + # source://actionpack/8.0.2/lib/action_controller/metal/redirecting.rb#17 def raise_on_open_redirects; end - # source://actionpack/8.0.1/lib/action_controller/metal/redirecting.rb#17 + # source://actionpack/8.0.2/lib/action_controller/metal/redirecting.rb#17 def raise_on_open_redirects=(val); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def request_forgery_protection_token; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def request_forgery_protection_token=(value); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end - # source://actionpack/8.0.1/lib/action_controller/base.rb#222 + # source://actionpack/8.0.2/lib/action_controller/base.rb#222 def without_modules(*modules); end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__default_form_builder; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__default_form_builder=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__flash_types; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__flash_types=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__helper_methods; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__helper_methods=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__layout; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__layout=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__layout_conditions; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__layout_conditions=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__renderers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__renderers=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__view_cache_dependencies; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__view_cache_dependencies=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__wrapper_options; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__wrapper_options=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_url_options; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_url_options=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_etag_with_template_digest; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_etag_with_template_digest=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_etaggers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_etaggers=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_fragment_cache_keys; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_fragment_cache_keys=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_helpers_path; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_helpers_path=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_include_all_helpers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_include_all_helpers=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -1037,10 +1037,10 @@ class ActionView::Base # source://actionview//lib/action_view/base.rb#223 def assign(new_assigns); end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def assigns; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def assigns=(_arg0); end # source://actionview//lib/action_view/base.rb#176 @@ -1051,13 +1051,13 @@ class ActionView::Base # @raise [NotImplementedError] # - # source://actionview//lib/action_view/base.rb#287 + # source://actionview//lib/action_view/base.rb#284 def compiled_method_container; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def config; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def config=(_arg0); end # source://actionview//lib/action_view/helpers/translation_helper.rb#18 @@ -1084,7 +1084,7 @@ class ActionView::Base # source://actionview//lib/action_view/base.rb#221 def formats=(arg); end - # source://actionview//lib/action_view/base.rb#295 + # source://actionview//lib/action_view/base.rb#292 def in_rendering_context(options); end # source://actionview//lib/action_view/base.rb#221 @@ -1238,22 +1238,22 @@ class ActionView::Base private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__routes; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__routes=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_logger; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_logger=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_prefix_partial_path_with_controller_namespace; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_prefix_partial_path_with_controller_namespace=(new_value); end end end @@ -1698,15 +1698,15 @@ class ActionView::Digestor end end -# source://actionview//lib/action_view/digestor.rb#121 +# source://actionview//lib/action_view/digestor.rb#125 class ActionView::Digestor::Injected < ::ActionView::Digestor::Node - # source://actionview//lib/action_view/digestor.rb#122 + # source://actionview//lib/action_view/digestor.rb#126 def digest(finder, _ = T.unsafe(nil)); end end -# source://actionview//lib/action_view/digestor.rb#117 +# source://actionview//lib/action_view/digestor.rb#121 class ActionView::Digestor::Missing < ::ActionView::Digestor::Node - # source://actionview//lib/action_view/digestor.rb#118 + # source://actionview//lib/action_view/digestor.rb#122 def digest(finder, _ = T.unsafe(nil)); end end @@ -1744,7 +1744,7 @@ class ActionView::Digestor::Node def template; end # source://actionview//lib/action_view/digestor.rb#110 - def to_dep_map; end + def to_dep_map(seen = T.unsafe(nil)); end class << self # source://actionview//lib/action_view/digestor.rb#81 @@ -1752,18 +1752,18 @@ class ActionView::Digestor::Node end end -# source://actionview//lib/action_view/digestor.rb#125 +# source://actionview//lib/action_view/digestor.rb#129 class ActionView::Digestor::NullLogger class << self - # source://actionview//lib/action_view/digestor.rb#126 + # source://actionview//lib/action_view/digestor.rb#130 def debug(_); end - # source://actionview//lib/action_view/digestor.rb#127 + # source://actionview//lib/action_view/digestor.rb#131 def error(_); end end end -# source://actionview//lib/action_view/digestor.rb#115 +# source://actionview//lib/action_view/digestor.rb#119 class ActionView::Digestor::Partial < ::ActionView::Digestor::Node; end # source://actionview//lib/action_view.rb#35 @@ -3423,7 +3423,7 @@ module ActionView::Helpers::CacheHelper # source://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. + # Raises UncacheableFragmentError when called from within a +cache+ block. # # Useful to denote helper methods that can't participate in fragment caching: # @@ -3432,7 +3432,7 @@ module ActionView::Helpers::CacheHelper # "#{project.name} - #{Time.now}" # end # - # # Which will then raise if used within a +cache+ block: + # # Which will then raise if used within a `cache` block: # <% cache project do %> # <%= project_name_with_time(project) %> # <% end %> @@ -4821,7 +4821,7 @@ end # # A +FormBuilder+ object is associated with a particular model object and # allows you to generate fields associated with the model object. The -# +FormBuilder+ object is yielded when using +form_with+ or +fields_for+. +# +FormBuilder+ object is yielded when using #form_with or #fields_for. # For example: # # <%= form_with model: @person do |person_form| %> @@ -4980,7 +4980,7 @@ class ActionView::Helpers::FormBuilder # the elements of the array. For each item with a checked check box you # get an extra ghost item with only that attribute, assigned to "0". # - # In that case it is preferable to either use +checkbox_tag+ or to use + # In that case it is preferable to either use FormTagHelper#checkbox_tag or to use # hashes instead of arrays. # # ==== Examples @@ -5049,7 +5049,7 @@ class ActionView::Helpers::FormBuilder # the elements of the array. For each item with a checked check box you # get an extra ghost item with only that attribute, assigned to "0". # - # In that case it is preferable to either use +checkbox_tag+ or to use + # In that case it is preferable to either use FormTagHelper#checkbox_tag or to use # hashes instead of arrays. # # ==== Examples @@ -5185,7 +5185,7 @@ class ActionView::Helpers::FormBuilder # <% end %> # # In the example above, the element built by - # the call to FormBuilder#text_field declares an + # the call to #text_field declares an # aria-describedby attribute referencing the # element, sharing a common id root (article_title, in this # case). @@ -5217,12 +5217,12 @@ class ActionView::Helpers::FormBuilder # source://actionview//lib/action_view/helpers/form_helper.rb#2327 def fields(scope = T.unsafe(nil), model: T.unsafe(nil), **options, &block); end - # Creates a scope around a specific model object like +form_with+, but + # Creates a scope around a specific model object like #form_with, but # doesn't create the form tags themselves. This makes +fields_for+ # suitable for specifying additional model objects in the same form. # - # Although the usage and purpose of +fields_for+ is similar to +form_with+'s, - # its method signature is slightly different. Like +form_with+, it yields + # Although the usage and purpose of +fields_for+ is similar to #form_with's, + # its method signature is slightly different. Like #form_with, it yields # a FormBuilder object associated with a particular model object to a block, # and within the block allows methods to be called on the builder to # generate fields associated with the model object. Fields may reflect @@ -5293,7 +5293,7 @@ class ActionView::Helpers::FormBuilder # === Nested Attributes Examples # # When the object belonging to the current scope has a nested attribute - # writer for a certain attribute, fields_for will yield a new scope + # writer for a certain attribute, +fields_for+ will yield a new scope # for that attribute. This allows you to create forms that set or change # the attributes of a parent object and its associations in one go. # @@ -5324,7 +5324,7 @@ class ActionView::Helpers::FormBuilder # end # end # - # This model can now be used with a nested fields_for, like so: + # This model can now be used with a nested +fields_for+, like so: # # <%= form_with model: @person do |person_form| %> # ... @@ -5382,7 +5382,7 @@ class ActionView::Helpers::FormBuilder # end # # Note that the projects_attributes= writer method is in fact - # required for fields_for to correctly identify :projects as a + # required for +fields_for+ to correctly identify :projects as a # collection, and the correct indices to be set in the form markup. # # When projects is already an association on Person you can use @@ -5393,8 +5393,8 @@ class ActionView::Helpers::FormBuilder # accepts_nested_attributes_for :projects # end # - # This model can now be used with a nested fields_for. The block given to - # the nested fields_for call will be repeated for each instance in the + # This model can now be used with a nested +fields_for+. The block given to + # the nested +fields_for+ call will be repeated for each instance in the # collection: # # <%= form_with model: @person do |person_form| %> @@ -5466,10 +5466,10 @@ class ActionView::Helpers::FormBuilder # ... # <% end %> # - # Note that fields_for will automatically generate a hidden field + # Note that +fields_for+ will automatically generate a hidden field # to store the ID of the record. There are circumstances where this # hidden field is not needed and you can pass include_id: false - # to prevent fields_for from rendering it automatically. + # to prevent +fields_for+ from rendering it automatically. # # source://actionview//lib/action_view/helpers/form_helper.rb#2289 def fields_for(record_name, record_object = T.unsafe(nil), fields_options = T.unsafe(nil), &block); end @@ -5479,7 +5479,7 @@ class ActionView::Helpers::FormBuilder # hash with +options+. These options will be tagged onto the HTML as an HTML element attribute as in the example # shown. # - # Using this method inside a +form_with+ block will set the enclosing form's encoding to multipart/form-data. + # Using this method inside a #form_with block will set the enclosing form's encoding to multipart/form-data. # # ==== Options # * Creates standard HTML attributes for the tag. @@ -5877,10 +5877,10 @@ class ActionView::Helpers::FormBuilder private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_field_helpers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_field_helpers=(new_value); end end end @@ -5901,7 +5901,7 @@ end # of the resource should show the current values of those attributes. # # In \Rails, this is usually achieved by creating the form using either -# +form_with+ or +form_for+ and a number of related helper methods. These +# #form_with or #form_for and a number of related helper methods. These # methods generate an appropriate form tag and yield a form # builder object that knows the model the form is about. Input fields are # created by calling methods defined on the form builder, which means they @@ -5912,7 +5912,7 @@ end # # For example, to create a new person you typically set up a new instance of # +Person+ in the PeopleController#new action, @person, and -# in the view template pass that object to +form_with+ or +form_for+: +# in the view template pass that object to #form_with or #form_for: # # <%= form_with model: @person do |f| %> # <%= f.label :first_name %>: @@ -6044,7 +6044,7 @@ module ActionView::Helpers::FormHelper # the elements of the array. For each item with a checked check box you # get an extra ghost item with only that attribute, assigned to "0". # - # In that case it is preferable to either use +checkbox_tag+ or to use + # In that case it is preferable to either use FormTagHelper#checkbox_tag or to use # hashes instead of arrays. # # ==== Examples @@ -6112,7 +6112,7 @@ module ActionView::Helpers::FormHelper # the elements of the array. For each item with a checked check box you # get an extra ghost item with only that attribute, assigned to "0". # - # In that case it is preferable to either use +checkbox_tag+ or to use + # In that case it is preferable to either use FormTagHelper#checkbox_tag or to use # hashes instead of arrays. # # ==== Examples @@ -6253,7 +6253,7 @@ module ActionView::Helpers::FormHelper def email_field(object_name, method, options = T.unsafe(nil)); end # Scopes input fields with either an explicit scope or model. - # Like +form_with+ does with :scope or :model, + # Like #form_with does with :scope or :model, # except it doesn't output the form tags. # # # Using a scope prefixes the input field names: @@ -6268,7 +6268,7 @@ module ActionView::Helpers::FormHelper # <% end %> # # => # - # # Using +fields+ with +form_with+: + # # Using `fields` with `form_with`: # <%= form_with model: @article do |form| %> # <%= form.text_field :title %> # @@ -6277,13 +6277,13 @@ module ActionView::Helpers::FormHelper # <% end %> # <% end %> # - # Much like +form_with+ a FormBuilder instance associated with the scope + # Much like #form_with a FormBuilder instance associated with the scope # or model is yielded, so any generated field names are prefixed with # either the passed scope or the scope inferred from the :model. # # === Mixing with other form helpers # - # While +form_with+ uses a FormBuilder object it's possible to mix and + # While #form_with uses a FormBuilder object it's possible to mix and # match the stand-alone FormHelper methods and methods # from FormTagHelper: # @@ -6301,12 +6301,12 @@ module ActionView::Helpers::FormHelper # source://actionview//lib/action_view/helpers/form_helper.rb#1080 def fields(scope = T.unsafe(nil), model: T.unsafe(nil), **options, &block); end - # Creates a scope around a specific model object like +form_with+, but + # Creates a scope around a specific model object like #form_with, but # doesn't create the form tags themselves. This makes +fields_for+ # suitable for specifying additional model objects in the same form. # - # Although the usage and purpose of +fields_for+ is similar to +form_with+'s, - # its method signature is slightly different. Like +form_with+, it yields + # Although the usage and purpose of +fields_for+ is similar to #form_with's, + # its method signature is slightly different. Like #form_with, it yields # a FormBuilder object associated with a particular model object to a block, # and within the block allows methods to be called on the builder to # generate fields associated with the model object. Fields may reflect @@ -6365,7 +6365,7 @@ module ActionView::Helpers::FormHelper # === Nested Attributes Examples # # When the object belonging to the current scope has a nested attribute - # writer for a certain attribute, fields_for will yield a new scope + # writer for a certain attribute, +fields_for+ will yield a new scope # for that attribute. This allows you to create forms that set or change # the attributes of a parent object and its associations in one go. # @@ -6454,7 +6454,7 @@ module ActionView::Helpers::FormHelper # end # # Note that the projects_attributes= writer method is in fact - # required for fields_for to correctly identify :projects as a + # required for +fields_for+ to correctly identify :projects as a # collection, and the correct indices to be set in the form markup. # # When projects is already an association on Person you can use @@ -6466,7 +6466,7 @@ module ActionView::Helpers::FormHelper # end # # This model can now be used with a nested fields_for. The block given to - # the nested fields_for call will be repeated for each instance in the + # the nested +fields_for+ call will be repeated for each instance in the # collection: # # <%= form_with model: @person do |person_form| %> @@ -6538,10 +6538,10 @@ module ActionView::Helpers::FormHelper # ... # <% end %> # - # Note that fields_for will automatically generate a hidden field + # Note that +fields_for+ will automatically generate a hidden field # to store the ID of the record if it responds to persisted?. # There are circumstances where this hidden field is not needed and you - # can pass include_id: false to prevent fields_for from + # can pass include_id: false to prevent +fields_for+ from # rendering it automatically. # # source://actionview//lib/action_view/helpers/form_helper.rb#1029 @@ -6552,7 +6552,7 @@ module ActionView::Helpers::FormHelper # hash with +options+. These options will be tagged onto the HTML as an HTML element attribute as in the example # shown. # - # Using this method inside a +form_with+ block will set the enclosing form's encoding to multipart/form-data. + # Using this method inside a #form_with block will set the enclosing form's encoding to multipart/form-data. # # ==== Options # * Creates standard HTML attributes for the tag. @@ -6668,7 +6668,7 @@ module ActionView::Helpers::FormHelper # are designed to work with an object as base, like # FormOptionsHelper#collection_select and DateHelper#datetime_select. # - # === #form_for with a model object + # === +form_for+ with a model object # # In the examples above, the object to be created or edited was # represented by a symbol passed to +form_for+, and we noted that @@ -6823,7 +6823,7 @@ module ActionView::Helpers::FormHelper # # === Removing hidden model id's # - # The form_for method automatically includes the model id as a hidden field in the form. + # The +form_for+ method automatically includes the model id as a hidden field in the form. # This is used to maintain the correlation between the form data and its associated model. # Some ORM systems do not use IDs on nested models so in this case you want to be able # to disable the hidden id. @@ -9670,9 +9670,9 @@ module ActionView::Helpers::OutputSafetyHelper # 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}[https://api.rubyonrails.org/classes/Array.html#method-i-to_sentence]. + # ActiveSupport's Array#to_sentence. # - # source://actionview//lib/action_view/helpers/output_safety_helper.rb#43 + # source://actionview//lib/action_view/helpers/output_safety_helper.rb#42 def to_sentence(array, options = T.unsafe(nil)); end end @@ -9889,6 +9889,12 @@ module ActionView::Helpers::SanitizeHelper # # Custom sanitization rules can also be provided. # + # Warning: Adding disallowed tags or attributes to the allowlists may introduce + # vulnerabilities into your application. Please rely on the default allowlists whenever + # possible, because they are curated to maintain security and safety. If you think that the + # default allowlists should be expanded, please {open an issue on the rails-html-sanitizer + # project}[https://github.com/rails/rails-html-sanitizer/issues]. + # # Please note that sanitizing user-provided text does not guarantee that the # resulting markup is valid or even well-formed. # @@ -9974,12 +9980,12 @@ 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#111 + # source://actionview//lib/action_view/helpers/sanitize_helper.rb#117 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#116 + # source://actionview//lib/action_view/helpers/sanitize_helper.rb#122 def sanitize_css(style); end # source://actionview//lib/action_view/helpers/sanitize_helper.rb#12 @@ -10002,7 +10008,7 @@ module ActionView::Helpers::SanitizeHelper # strip_links('<malformed & link') # # => <malformed & link # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#150 + # source://actionview//lib/action_view/helpers/sanitize_helper.rb#156 def strip_links(html); end # Strips all HTML tags from +html+, including comments and special characters. @@ -10019,7 +10025,7 @@ 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#133 + # source://actionview//lib/action_view/helpers/sanitize_helper.rb#139 def strip_tags(html); end class << self @@ -10031,7 +10037,7 @@ module ActionView::Helpers::SanitizeHelper end end -# source://actionview//lib/action_view/helpers/sanitize_helper.rb#154 +# source://actionview//lib/action_view/helpers/sanitize_helper.rb#160 module ActionView::Helpers::SanitizeHelper::ClassMethods # Gets the Rails::HTML::FullSanitizer instance used by +strip_tags+. Replace with # any object that responds to +sanitize+. @@ -10040,14 +10046,14 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # config.action_view.full_sanitizer = MySpecialSanitizer.new # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#175 + # source://actionview//lib/action_view/helpers/sanitize_helper.rb#181 def full_sanitizer; end # Sets the attribute full_sanitizer # # @param value the value to set the attribute full_sanitizer to. # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#155 + # source://actionview//lib/action_view/helpers/sanitize_helper.rb#161 def full_sanitizer=(_arg0); end # Gets the Rails::HTML::LinkSanitizer instance used by +strip_links+. @@ -10057,14 +10063,14 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # config.action_view.link_sanitizer = MySpecialSanitizer.new # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#185 + # source://actionview//lib/action_view/helpers/sanitize_helper.rb#191 def link_sanitizer; end # Sets the attribute link_sanitizer # # @param value the value to set the attribute link_sanitizer to. # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#155 + # source://actionview//lib/action_view/helpers/sanitize_helper.rb#161 def link_sanitizer=(_arg0); end # Gets the Rails::HTML::SafeListSanitizer instance used by sanitize and +sanitize_css+. @@ -10074,17 +10080,17 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # config.action_view.safe_list_sanitizer = MySpecialSanitizer.new # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#195 + # source://actionview//lib/action_view/helpers/sanitize_helper.rb#201 def safe_list_sanitizer; end # Sets the attribute safe_list_sanitizer # # @param value the value to set the attribute safe_list_sanitizer to. # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#155 + # source://actionview//lib/action_view/helpers/sanitize_helper.rb#161 def safe_list_sanitizer=(_arg0); end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#165 + # source://actionview//lib/action_view/helpers/sanitize_helper.rb#171 def sanitized_allowed_attributes; end # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#34 @@ -10108,7 +10114,7 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#48 def sanitized_allowed_protocols=(_); end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#161 + # source://actionview//lib/action_view/helpers/sanitize_helper.rb#167 def sanitized_allowed_tags; end # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#24 @@ -10138,7 +10144,7 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#48 def sanitized_uri_attributes=(_); end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#157 + # source://actionview//lib/action_view/helpers/sanitize_helper.rb#163 def sanitizer_vendor; end private @@ -11037,7 +11043,7 @@ module ActionView::Helpers::Tags::CollectionHelpers # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#107 def hidden_field; end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#112 + # source://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 @@ -12954,7 +12960,7 @@ module ActionView::Layouts # * template - The template object for the default layout (or +nil+) # # source://actionview//lib/action_view/layouts.rb#415 - def _default_layout(lookup_context, formats, require_layout = T.unsafe(nil)); end + def _default_layout(lookup_context, formats, keys, require_layout = T.unsafe(nil)); end # @return [Boolean] # @@ -13101,10 +13107,10 @@ class ActionView::LogSubscriber < ::ActiveSupport::LogSubscriber private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_log_levels; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_log_levels=(new_value); end end end @@ -13378,13 +13384,13 @@ module ActionView::LookupContext::ViewPaths def normalize_name(name, prefixes); end end -# source://actionview//lib/action_view/template/error.rb#30 +# source://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#33 + # source://actionview//lib/action_view/template/error.rb#44 def initialize(paths, path, prefixes, partial, details, *_arg5); end # Apps may have thousands of candidate templates so we attempt to @@ -13392,50 +13398,50 @@ class ActionView::MissingTemplate < ::ActionView::ActionViewError # First we split templates into prefixes and basenames, so that those can # be matched separately. # - # source://actionview//lib/action_view/template/error.rb#93 + # source://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#31 + # source://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#31 + # source://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#31 + # source://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#31 + # source://actionview//lib/action_view/template/error.rb#42 def prefixes; end end -# source://actionview//lib/action_view/template/error.rb#60 +# source://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#63 + # source://actionview//lib/action_view/template/error.rb#74 def initialize(size); end - # source://actionview//lib/action_view/template/error.rb#80 + # source://actionview//lib/action_view/template/error.rb#91 def add(path, score); end # @return [Boolean] # - # source://actionview//lib/action_view/template/error.rb#72 + # source://actionview//lib/action_view/template/error.rb#83 def should_record?(score); end - # source://actionview//lib/action_view/template/error.rb#68 + # source://actionview//lib/action_view/template/error.rb#79 def to_a; end end -# source://actionview//lib/action_view/template/error.rb#61 +# source://actionview//lib/action_view/template/error.rb#72 class ActionView::MissingTemplate::Results::Result < ::Struct # Returns the value of attribute path # @@ -13754,7 +13760,7 @@ end # # <%= render partial: "accounts/account", locals: { account: @account} %> # <%= render partial: @account %> # -# # @posts is an array of Post instances, so every post record returns 'posts/post' on +to_partial_path+, +# # @posts is an array of Post instances, so every post record returns 'posts/post' on #to_partial_path, # # that's why we can replace: # # <%= render partial: "posts/post", collection: @posts %> # <%= render partial: @posts %> @@ -13774,7 +13780,7 @@ end # # <%= render partial: "accounts/account", locals: { account: @account} %> # <%= render @account %> # -# # @posts is an array of Post instances, so every post record returns 'posts/post' on +to_partial_path+, +# # @posts is an array of Post instances, so every post record returns 'posts/post' on #to_partial_path, # # that's why we can replace: # # <%= render partial: "posts/post", collection: @posts %> # <%= render @posts %> @@ -14014,10 +14020,10 @@ class ActionView::Railtie < ::Rails::Engine class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end end end @@ -14467,7 +14473,7 @@ end module ActionView::RoutingUrlFor include ::ActionDispatch::Routing::PolymorphicRoutes - # source://actionpack/8.0.1/lib/action_dispatch/routing/url_for.rb#102 + # source://actionpack/8.0.2/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 @@ -14569,7 +14575,7 @@ module ActionView::RoutingUrlFor def optimize_routes_generation?; end class << self - # source://actionpack/8.0.1/lib/action_dispatch/routing/url_for.rb#102 + # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#102 def default_url_options=(val); end end end @@ -14687,17 +14693,25 @@ class ActionView::StreamingTemplateRenderer::Body def log_error(exception); end end -# source://actionview//lib/action_view/template/error.rb#245 +# source://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 + def initialize(argument_error, template); end +end + +# source://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#246 + # source://actionview//lib/action_view/template/error.rb#257 def initialize(template, offending_code_string); end - # source://actionview//lib/action_view/template/error.rb#257 + # source://actionview//lib/action_view/template/error.rb#268 def annotated_source_code; end - # source://actionview//lib/action_view/template/error.rb#251 + # source://actionview//lib/action_view/template/error.rb#262 def message; end end @@ -14904,57 +14918,57 @@ 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#154 +# source://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#162 + # source://actionview//lib/action_view/template/error.rb#173 def initialize(template); end - # source://actionview//lib/action_view/template/error.rb#220 + # source://actionview//lib/action_view/template/error.rb#231 def annotated_source_code; end - # source://actionview//lib/action_view/template/error.rb#171 + # source://actionview//lib/action_view/template/error.rb#182 def backtrace; end - # source://actionview//lib/action_view/template/error.rb#175 + # source://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#158 + # source://actionview//lib/action_view/template/error.rb#169 def cause; end - # source://actionview//lib/action_view/template/error.rb#179 + # source://actionview//lib/action_view/template/error.rb#190 def file_name; end - # source://actionview//lib/action_view/template/error.rb#212 + # source://actionview//lib/action_view/template/error.rb#223 def line_number; end - # source://actionview//lib/action_view/template/error.rb#192 + # source://actionview//lib/action_view/template/error.rb#203 def source_extract(indentation = T.unsafe(nil)); end - # source://actionview//lib/action_view/template/error.rb#183 + # source://actionview//lib/action_view/template/error.rb#194 def sub_template_message; end - # source://actionview//lib/action_view/template/error.rb#207 + # source://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#160 + # source://actionview//lib/action_view/template/error.rb#171 def template; end private - # source://actionview//lib/action_view/template/error.rb#233 + # source://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#225 + # source://actionview//lib/action_view/template/error.rb#236 def source_location; end end -# source://actionview//lib/action_view/template/error.rb#155 +# source://actionview//lib/action_view/template/error.rb#166 ActionView::Template::Error::SOURCE_CODE_RADIUS = T.let(T.unsafe(nil), Integer) # = Action View HTML Template @@ -15058,10 +15072,10 @@ class ActionView::Template::Handlers::Builder private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_format; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_format=(new_value); end end end @@ -15199,28 +15213,28 @@ class ActionView::Template::Handlers::ERB private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_erb_implementation; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_erb_implementation=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_erb_trim_mode; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_erb_trim_mode=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_escape_ignore_list; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_escape_ignore_list=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_strip_trailing_newlines; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_strip_trailing_newlines=(new_value); end end end @@ -15538,7 +15552,7 @@ end # source://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#243 +# source://actionview//lib/action_view/template/error.rb#254 ActionView::TemplateError = ActionView::Template::Error # = Action View \TemplatePath @@ -15718,13 +15732,13 @@ class ActionView::TestCase < ::ActiveSupport::TestCase extend ::ActiveSupport::Testing::ConstantLookup::ClassMethods extend ::ActionView::TestCase::Behavior::ClassMethods - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods; end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods=(_arg0); end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods?; end # source://actionview//lib/action_view/helpers/translation_helper.rb#18 @@ -15734,16 +15748,16 @@ class ActionView::TestCase < ::ActiveSupport::TestCase def debug_missing_translation=(val); end class << self - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods; end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods=(value); end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#13 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 def _helper_methods?; end - # source://actionpack/8.0.1/lib/abstract_controller/helpers.rb#17 + # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#17 def _helpers; end # source://actionview//lib/action_view/test_case.rb#200 @@ -15763,22 +15777,22 @@ class ActionView::TestCase < ::ActiveSupport::TestCase private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__helper_methods; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__helper_methods=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_content_class; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_content_class=(new_value); end end end @@ -16208,7 +16222,7 @@ class ActionView::TestCase::TestController < ::ActionController::Base private # source://actionview//lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + def _layout(lookup_context, formats, keys); end class << self # source://actionview//lib/action_view/test_case.rb#30 @@ -16226,10 +16240,10 @@ class ActionView::TestCase::TestController < ::ActionController::Base private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end diff --git a/sorbet/rbi/gems/activejob@8.0.1.rbi b/sorbet/rbi/gems/activejob@8.0.2.rbi similarity index 96% rename from sorbet/rbi/gems/activejob@8.0.1.rbi rename to sorbet/rbi/gems/activejob@8.0.2.rbi index 618bb85f..6fc67298 100644 --- a/sorbet/rbi/gems/activejob@8.0.1.rbi +++ b/sorbet/rbi/gems/activejob@8.0.2.rbi @@ -205,19 +205,19 @@ class ActiveJob::Base extend ::ActiveJob::ConcurrencyControls::ClassMethods extend ::ActiveJob::TestHelper::TestQueueAdapter::ClassMethods - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _enqueue_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _perform_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_enqueue_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_perform_callbacks(&block); end # source://activejob//lib/active_job/exceptions.rb#12 @@ -265,32 +265,32 @@ class ActiveJob::Base # source://activejob//lib/active_job/queue_name.rb#57 def queue_name_prefix?; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _enqueue_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _enqueue_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _perform_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _perform_callbacks=(value); end # source://activejob//lib/active_job/queue_adapter.rb#25 @@ -413,13 +413,13 @@ class ActiveJob::Base # source://activejob//lib/active_job/queue_name.rb#57 def queue_name_prefix?; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://activejob//lib/active_job/exceptions.rb#11 @@ -430,106 +430,106 @@ class ActiveJob::Base private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__queue_adapter; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__queue_adapter=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__queue_adapter_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__queue_adapter_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__test_adapter; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__test_adapter=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_after_discard_procs; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_after_discard_procs=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_concurrency_duration; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_concurrency_duration=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_concurrency_group; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_concurrency_group=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_concurrency_key; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_concurrency_key=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_concurrency_limit; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_concurrency_limit=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_enqueue_after_transaction_commit; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_enqueue_after_transaction_commit=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_log_arguments; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_log_arguments=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_priority; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_priority=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name_delimiter; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name_delimiter=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name_prefix; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name_prefix=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_retry_jitter; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_retry_jitter=(new_value); end end end @@ -559,21 +559,21 @@ module ActiveJob::Callbacks mixes_in_class_methods ::ActiveJob::Callbacks::ClassMethods class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _execute_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_execute_callbacks(&block); end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#9 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#9 def __class_attr___callbacks; end end @@ -1412,16 +1412,16 @@ class ActiveJob::LogSubscriber < ::ActiveSupport::LogSubscriber private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_backtrace_cleaner; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_backtrace_cleaner=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_log_levels; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_log_levels=(new_value); end end end diff --git a/sorbet/rbi/gems/activemodel@8.0.1.rbi b/sorbet/rbi/gems/activemodel@8.0.2.rbi similarity index 99% rename from sorbet/rbi/gems/activemodel@8.0.1.rbi rename to sorbet/rbi/gems/activemodel@8.0.2.rbi index c5a1bb80..32ca27f6 100644 --- a/sorbet/rbi/gems/activemodel@8.0.1.rbi +++ b/sorbet/rbi/gems/activemodel@8.0.2.rbi @@ -243,7 +243,7 @@ class ActiveModel::Attribute def type_cast(*_arg0); end # source://activemodel//lib/active_model/attribute.rb#41 - def value; end + def value(&_); end # Returns the value of attribute value_before_type_cast. # @@ -2307,10 +2307,10 @@ class ActiveModel::Error private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_i18n_customize_full_message; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_i18n_customize_full_message=(new_value); end end end @@ -4417,14 +4417,6 @@ ActiveModel::Type::Decimal::BIGDECIMAL_PRECISION = T.let(T.unsafe(nil), Integer) # attribute :weight, :float # end # -# Values are cast using their +to_f+ method, except for the following -# strings: -# -# - Blank strings are cast to +nil+. -# - "Infinity" is cast to +Float::INFINITY+. -# - "-Infinity" is cast to -Float::INFINITY. -# - "NaN" is cast to +Float::NAN+. -# # bag = BagOfCoffee.new # # bag.weight = "0.25" @@ -4436,6 +4428,14 @@ ActiveModel::Type::Decimal::BIGDECIMAL_PRECISION = T.let(T.unsafe(nil), Integer) # bag.weight = "NaN" # bag.weight # => Float::NAN # +# Values are cast using their +to_f+ method, except for the following +# strings: +# +# - Blank strings are cast to +nil+. +# - "Infinity" is cast to +Float::INFINITY+. +# - "-Infinity" is cast to -Float::INFINITY. +# - "NaN" is cast to +Float::NAN+. +# # source://activemodel//lib/active_model/type/float.rb#36 class ActiveModel::Type::Float < ::ActiveModel::Type::Value include ::ActiveModel::Type::Helpers::Numeric @@ -5013,7 +5013,7 @@ class ActiveModel::Type::Value # @return [Boolean] # # source://activemodel//lib/active_model/type/value.rb#28 - def serializable?(value); end + def serializable?(value, &_); end # Casts a value from the ruby type to a type that the database knows how # to understand. The returned value from this method should be a diff --git a/sorbet/rbi/gems/activestorage@8.0.1.rbi b/sorbet/rbi/gems/activestorage@8.0.2.rbi similarity index 70% rename from sorbet/rbi/gems/activestorage@8.0.1.rbi rename to sorbet/rbi/gems/activestorage@8.0.2.rbi index 8022fedd..8b2f0851 100644 --- a/sorbet/rbi/gems/activestorage@8.0.1.rbi +++ b/sorbet/rbi/gems/activestorage@8.0.2.rbi @@ -11,97 +11,97 @@ class ActiveRecord::Base include ::ActiveModel::Access include ::ActiveModel::Serialization - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _before_commit_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _commit_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _create_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _destroy_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _find_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _initialize_callbacks; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#11 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#11 def _reflections; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#11 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _rollback_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_before_commit_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_commit_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_create_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_destroy_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_find_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_initialize_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_rollback_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_save_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_touch_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_update_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_validate_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_validation_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _save_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _touch_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _update_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _validate_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _validation_callbacks; end - # source://activemodel/8.0.1/lib/active_model/validations.rb#50 + # source://activemodel/8.0.2/lib/active_model/validations.rb#50 def _validators; end - # source://activemodel/8.0.1/lib/active_model/validations.rb#50 + # source://activemodel/8.0.2/lib/active_model/validations.rb#50 def _validators?; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#12 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#12 def aggregate_reflections; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#12 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#12 def aggregate_reflections?; end # source://activestorage//lib/active_storage/reflection.rb#53 @@ -110,398 +110,398 @@ class ActiveRecord::Base # source://activestorage//lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#71 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 def attribute_aliases; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#71 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 def attribute_aliases?; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#72 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 def attribute_method_patterns; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#72 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 def attribute_method_patterns?; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#13 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#13 def automatic_scope_inversing; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#13 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#13 def automatic_scope_inversing?; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#14 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#14 def automatically_invert_plural_associations; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#14 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#14 def automatically_invert_plural_associations?; end - # source://activerecord/8.0.1/lib/active_record/integration.rb#16 + # source://activerecord/8.0.2/lib/active_record/integration.rb#16 def cache_timestamp_format; end - # source://activerecord/8.0.1/lib/active_record/integration.rb#16 + # source://activerecord/8.0.2/lib/active_record/integration.rb#16 def cache_timestamp_format?; end - # source://activerecord/8.0.1/lib/active_record/integration.rb#24 + # source://activerecord/8.0.2/lib/active_record/integration.rb#24 def cache_versioning; end - # source://activerecord/8.0.1/lib/active_record/integration.rb#24 + # source://activerecord/8.0.2/lib/active_record/integration.rb#24 def cache_versioning?; end - # source://activerecord/8.0.1/lib/active_record/integration.rb#32 + # source://activerecord/8.0.2/lib/active_record/integration.rb#32 def collection_cache_versioning; end - # source://activerecord/8.0.1/lib/active_record/integration.rb#32 + # source://activerecord/8.0.2/lib/active_record/integration.rb#32 def collection_cache_versioning?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#183 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#183 def column_for_attribute(name, &_arg1); end - # source://activerecord/8.0.1/lib/active_record/counter_cache.rb#10 + # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#10 def counter_cached_association_names; end - # source://activerecord/8.0.1/lib/active_record/counter_cache.rb#10 + # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#10 def counter_cached_association_names?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#98 + # source://activerecord/8.0.2/lib/active_record/core.rb#98 def default_connection_handler; end - # source://activerecord/8.0.1/lib/active_record/core.rb#98 + # source://activerecord/8.0.2/lib/active_record/core.rb#98 def default_connection_handler?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#100 + # source://activerecord/8.0.2/lib/active_record/core.rb#100 def default_role; end - # source://activerecord/8.0.1/lib/active_record/core.rb#100 + # source://activerecord/8.0.2/lib/active_record/core.rb#100 def default_role?; end - # source://activerecord/8.0.1/lib/active_record/scoping/default.rb#20 + # source://activerecord/8.0.2/lib/active_record/scoping/default.rb#20 def default_scope_override; end - # source://activerecord/8.0.1/lib/active_record/scoping/default.rb#19 + # source://activerecord/8.0.2/lib/active_record/scoping/default.rb#19 def default_scopes; end - # source://activerecord/8.0.1/lib/active_record/core.rb#102 + # source://activerecord/8.0.2/lib/active_record/core.rb#102 def default_shard; end - # source://activerecord/8.0.1/lib/active_record/core.rb#102 + # source://activerecord/8.0.2/lib/active_record/core.rb#102 def default_shard?; end - # source://activerecord/8.0.1/lib/active_record/enum.rb#167 + # source://activerecord/8.0.2/lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/8.0.1/lib/active_record/enum.rb#167 + # source://activerecord/8.0.2/lib/active_record/enum.rb#167 def defined_enums?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#47 + # source://activerecord/8.0.2/lib/active_record/core.rb#47 def destroy_association_async_batch_size; end - # source://activerecord/8.0.1/lib/active_record/core.rb#37 + # source://activerecord/8.0.2/lib/active_record/core.rb#37 def destroy_association_async_job(&_arg0); end - # source://activerecord/8.0.1/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/8.0.2/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes; end - # source://activerecord/8.0.1/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/8.0.2/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes=(_arg0); end - # source://activerecord/8.0.1/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/8.0.2/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes?; end - # source://activemodel/8.0.1/lib/active_model/serializers/json.rb#15 + # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/8.0.1/lib/active_model/serializers/json.rb#15 + # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end - # source://activerecord/8.0.1/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/8.0.2/lib/active_record/locking/optimistic.rb#56 def lock_optimistically; end - # source://activerecord/8.0.1/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/8.0.2/lib/active_record/locking/optimistic.rb#56 def lock_optimistically?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#22 + # source://activerecord/8.0.2/lib/active_record/core.rb#22 def logger; end - # source://activerecord/8.0.1/lib/active_record/core.rb#22 + # source://activerecord/8.0.2/lib/active_record/core.rb#22 def logger?; end - # source://activemodel/8.0.1/lib/active_model/naming.rb#255 + # source://activemodel/8.0.2/lib/active_model/naming.rb#255 def model_name(&_arg0); end - # source://activerecord/8.0.1/lib/active_record/nested_attributes.rb#15 + # source://activerecord/8.0.2/lib/active_record/nested_attributes.rb#15 def nested_attributes_options; end - # source://activerecord/8.0.1/lib/active_record/nested_attributes.rb#15 + # source://activerecord/8.0.2/lib/active_record/nested_attributes.rb#15 def nested_attributes_options?; end - # source://activerecord/8.0.1/lib/active_record/normalization.rb#8 + # source://activerecord/8.0.2/lib/active_record/normalization.rb#8 def normalized_attributes; end - # source://activerecord/8.0.1/lib/active_record/normalization.rb#8 + # source://activerecord/8.0.2/lib/active_record/normalization.rb#8 def normalized_attributes=(_arg0); end - # source://activerecord/8.0.1/lib/active_record/normalization.rb#8 + # source://activerecord/8.0.2/lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/8.0.1/lib/active_model/conversion.rb#32 + # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 def param_delimiter=(_arg0); end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts?; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#168 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#168 def pluralize_table_names; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#168 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#168 def pluralize_table_names?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#163 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#163 def primary_key_prefix_type; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#163 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#163 def primary_key_prefix_type?; end - # source://activerecord/8.0.1/lib/active_record/timestamp.rb#47 + # source://activerecord/8.0.2/lib/active_record/timestamp.rb#47 def record_timestamps; end - # source://activerecord/8.0.1/lib/active_record/timestamp.rb#47 + # source://activerecord/8.0.2/lib/active_record/timestamp.rb#47 def record_timestamps=(_arg0); end - # source://activerecord/8.0.1/lib/active_record/timestamp.rb#47 + # source://activerecord/8.0.2/lib/active_record/timestamp.rb#47 def record_timestamps?; end - # source://activerecord/8.0.1/lib/active_record/signed_id.rb#13 + # source://activerecord/8.0.2/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret; end - # source://activerecord/8.0.1/lib/active_record/signed_id.rb#13 + # source://activerecord/8.0.2/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret?; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#61 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#61 def skip_time_zone_conversion_for_attributes; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#61 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#61 def skip_time_zone_conversion_for_attributes?; end - # source://activerecord/8.0.1/lib/active_record/inheritance.rb#43 + # source://activerecord/8.0.2/lib/active_record/inheritance.rb#43 def store_full_class_name; end - # source://activerecord/8.0.1/lib/active_record/inheritance.rb#43 + # source://activerecord/8.0.2/lib/active_record/inheritance.rb#43 def store_full_class_name?; end - # source://activerecord/8.0.1/lib/active_record/inheritance.rb#47 + # source://activerecord/8.0.2/lib/active_record/inheritance.rb#47 def store_full_sti_class; end - # source://activerecord/8.0.1/lib/active_record/inheritance.rb#47 + # source://activerecord/8.0.2/lib/active_record/inheritance.rb#47 def store_full_sti_class?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#164 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#164 def table_name_prefix; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#164 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#164 def table_name_prefix?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#165 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#165 def table_name_suffix; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#165 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#165 def table_name_suffix?; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#60 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#60 def time_zone_aware_attributes; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#60 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#60 def time_zone_aware_attributes?; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#62 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#62 def time_zone_aware_types; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#62 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#62 def time_zone_aware_types?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#183 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#183 def type_for_attribute(*_arg0, **_arg1, &_arg2); end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://activerecord/8.0.1/lib/active_record/readonly_attributes.rb#11 + # source://activerecord/8.0.2/lib/active_record/readonly_attributes.rb#11 def _attr_readonly; end - # source://activerecord/8.0.1/lib/active_record/readonly_attributes.rb#11 + # source://activerecord/8.0.2/lib/active_record/readonly_attributes.rb#11 def _attr_readonly=(value); end - # source://activerecord/8.0.1/lib/active_record/readonly_attributes.rb#11 + # source://activerecord/8.0.2/lib/active_record/readonly_attributes.rb#11 def _attr_readonly?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _before_commit_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _before_commit_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _commit_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _commit_callbacks=(value); end - # source://activerecord/8.0.1/lib/active_record/counter_cache.rb#9 + # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#9 def _counter_cache_columns; end - # source://activerecord/8.0.1/lib/active_record/counter_cache.rb#9 + # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#9 def _counter_cache_columns=(value); end - # source://activerecord/8.0.1/lib/active_record/counter_cache.rb#9 + # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#9 def _counter_cache_columns?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _create_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _create_callbacks=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#24 + # source://activerecord/8.0.2/lib/active_record/core.rb#24 def _destroy_association_async_job; end - # source://activerecord/8.0.1/lib/active_record/core.rb#24 + # source://activerecord/8.0.2/lib/active_record/core.rb#24 def _destroy_association_async_job=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#24 + # source://activerecord/8.0.2/lib/active_record/core.rb#24 def _destroy_association_async_job?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _destroy_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _destroy_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _find_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _find_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _initialize_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _initialize_callbacks=(value); end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#11 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#11 def _reflections; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#11 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#11 def _reflections=(value); end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#11 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _rollback_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _rollback_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _save_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _save_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _touch_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _touch_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _update_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _update_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _validate_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _validate_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _validation_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _validation_callbacks=(value); end - # source://activemodel/8.0.1/lib/active_model/validations.rb#50 + # source://activemodel/8.0.2/lib/active_model/validations.rb#50 def _validators; end - # source://activemodel/8.0.1/lib/active_model/validations.rb#50 + # source://activemodel/8.0.2/lib/active_model/validations.rb#50 def _validators=(value); end - # source://activemodel/8.0.1/lib/active_model/validations.rb#50 + # source://activemodel/8.0.2/lib/active_model/validations.rb#50 def _validators?; end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_create(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_destroy(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_find(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_initialize(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_save(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_touch(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_update(*args, **options, &block); end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#12 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#12 def aggregate_reflections; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#12 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#12 def aggregate_reflections=(value); end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#12 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#12 def aggregate_reflections?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#121 + # source://activerecord/8.0.2/lib/active_record/core.rb#121 def application_record_class?; end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#137 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 def around_create(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#137 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 def around_destroy(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#137 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 def around_save(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#137 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 def around_update(*args, **options, &block); end - # source://activerecord/8.0.1/lib/active_record/core.rb#141 + # source://activerecord/8.0.2/lib/active_record/core.rb#141 def asynchronous_queries_session; end - # source://activerecord/8.0.1/lib/active_record/core.rb#145 + # source://activerecord/8.0.2/lib/active_record/core.rb#145 def asynchronous_queries_tracker; end # source://activestorage//lib/active_storage/reflection.rb#53 @@ -513,870 +513,873 @@ class ActiveRecord::Base # source://activestorage//lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#71 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 def attribute_aliases; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#71 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 def attribute_aliases=(value); end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#71 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 def attribute_aliases?; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#72 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 def attribute_method_patterns; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#72 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 def attribute_method_patterns=(value); end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#72 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 def attribute_method_patterns?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#119 + # source://activerecord/8.0.2/lib/active_record/core.rb#119 def attributes_for_inspect; end - # source://activerecord/8.0.1/lib/active_record/core.rb#119 + # source://activerecord/8.0.2/lib/active_record/core.rb#119 def attributes_for_inspect=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#119 + # source://activerecord/8.0.2/lib/active_record/core.rb#119 def attributes_for_inspect?; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#13 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#13 def automatic_scope_inversing; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#13 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#13 def automatic_scope_inversing=(value); end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#13 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#13 def automatic_scope_inversing?; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#14 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#14 def automatically_invert_plural_associations; end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#14 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#14 def automatically_invert_plural_associations=(value); end - # source://activerecord/8.0.1/lib/active_record/reflection.rb#14 + # source://activerecord/8.0.2/lib/active_record/reflection.rb#14 def automatically_invert_plural_associations?; end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#130 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 def before_create(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#130 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 def before_destroy(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#130 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 def before_save(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#130 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 def before_update(*args, **options, &block); end - # source://activerecord/8.0.1/lib/active_record/core.rb#89 + # source://activerecord/8.0.2/lib/active_record/core.rb#89 def belongs_to_required_by_default; end - # source://activerecord/8.0.1/lib/active_record/core.rb#89 + # source://activerecord/8.0.2/lib/active_record/core.rb#89 def belongs_to_required_by_default=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#89 + # source://activerecord/8.0.2/lib/active_record/core.rb#89 def belongs_to_required_by_default?; end - # source://activerecord/8.0.1/lib/active_record/integration.rb#16 + # source://activerecord/8.0.2/lib/active_record/integration.rb#16 def cache_timestamp_format; end - # source://activerecord/8.0.1/lib/active_record/integration.rb#16 + # source://activerecord/8.0.2/lib/active_record/integration.rb#16 def cache_timestamp_format=(value); end - # source://activerecord/8.0.1/lib/active_record/integration.rb#16 + # source://activerecord/8.0.2/lib/active_record/integration.rb#16 def cache_timestamp_format?; end - # source://activerecord/8.0.1/lib/active_record/integration.rb#24 + # source://activerecord/8.0.2/lib/active_record/integration.rb#24 def cache_versioning; end - # source://activerecord/8.0.1/lib/active_record/integration.rb#24 + # source://activerecord/8.0.2/lib/active_record/integration.rb#24 def cache_versioning=(value); end - # source://activerecord/8.0.1/lib/active_record/integration.rb#24 + # source://activerecord/8.0.2/lib/active_record/integration.rb#24 def cache_versioning?; end - # source://activerecord/8.0.1/lib/active_record/integration.rb#32 + # source://activerecord/8.0.2/lib/active_record/integration.rb#32 def collection_cache_versioning; end - # source://activerecord/8.0.1/lib/active_record/integration.rb#32 + # source://activerecord/8.0.2/lib/active_record/integration.rb#32 def collection_cache_versioning=(value); end - # source://activerecord/8.0.1/lib/active_record/integration.rb#32 + # source://activerecord/8.0.2/lib/active_record/integration.rb#32 def collection_cache_versioning?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#77 + # source://activerecord/8.0.2/lib/active_record/core.rb#77 def configurations; end - # source://activerecord/8.0.1/lib/active_record/core.rb#71 + # source://activerecord/8.0.2/lib/active_record/core.rb#71 def configurations=(config); end - # source://activerecord/8.0.1/lib/active_record/core.rb#205 + # source://activerecord/8.0.2/lib/active_record/core.rb#216 def connected_to_stack; end - # source://activerecord/8.0.1/lib/active_record/core.rb#219 + # source://activerecord/8.0.2/lib/active_record/core.rb#230 def connection_class; end - # source://activerecord/8.0.1/lib/active_record/core.rb#215 + # source://activerecord/8.0.2/lib/active_record/core.rb#226 def connection_class=(b); end - # source://activerecord/8.0.1/lib/active_record/core.rb#223 + # source://activerecord/8.0.2/lib/active_record/core.rb#234 def connection_class?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#227 + # source://activerecord/8.0.2/lib/active_record/core.rb#238 def connection_class_for_self; end - # source://activerecord/8.0.1/lib/active_record/core.rb#133 + # source://activerecord/8.0.2/lib/active_record/core.rb#133 def connection_handler; end - # source://activerecord/8.0.1/lib/active_record/core.rb#137 + # source://activerecord/8.0.2/lib/active_record/core.rb#137 def connection_handler=(handler); end - # source://activerecord/8.0.1/lib/active_record/counter_cache.rb#10 + # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#10 def counter_cached_association_names; end - # source://activerecord/8.0.1/lib/active_record/counter_cache.rb#10 + # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#10 def counter_cached_association_names=(value); end - # source://activerecord/8.0.1/lib/active_record/counter_cache.rb#10 + # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#10 def counter_cached_association_names?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#196 + # source://activerecord/8.0.2/lib/active_record/core.rb#196 def current_preventing_writes; end - # source://activerecord/8.0.1/lib/active_record/core.rb#159 + # source://activerecord/8.0.2/lib/active_record/core.rb#159 def current_role; end - # source://activerecord/8.0.1/lib/active_record/core.rb#177 + # source://activerecord/8.0.2/lib/active_record/core.rb#177 def current_shard; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/serialization.rb#20 def default_column_serializer; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/serialization.rb#20 def default_column_serializer=(value); end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/serialization.rb#20 def default_column_serializer?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#98 + # source://activerecord/8.0.2/lib/active_record/core.rb#98 def default_connection_handler; end - # source://activerecord/8.0.1/lib/active_record/core.rb#98 + # source://activerecord/8.0.2/lib/active_record/core.rb#98 def default_connection_handler=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#98 + # source://activerecord/8.0.2/lib/active_record/core.rb#98 def default_connection_handler?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#100 + # source://activerecord/8.0.2/lib/active_record/core.rb#100 def default_role; end - # source://activerecord/8.0.1/lib/active_record/core.rb#100 + # source://activerecord/8.0.2/lib/active_record/core.rb#100 def default_role=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#100 + # source://activerecord/8.0.2/lib/active_record/core.rb#100 def default_role?; end - # source://activerecord/8.0.1/lib/active_record/scoping/default.rb#20 + # source://activerecord/8.0.2/lib/active_record/scoping/default.rb#20 def default_scope_override; end - # source://activerecord/8.0.1/lib/active_record/scoping/default.rb#20 + # source://activerecord/8.0.2/lib/active_record/scoping/default.rb#20 def default_scope_override=(value); end - # source://activerecord/8.0.1/lib/active_record/scoping/default.rb#19 + # source://activerecord/8.0.2/lib/active_record/scoping/default.rb#19 def default_scopes; end - # source://activerecord/8.0.1/lib/active_record/scoping/default.rb#19 + # source://activerecord/8.0.2/lib/active_record/scoping/default.rb#19 def default_scopes=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#102 + # source://activerecord/8.0.2/lib/active_record/core.rb#102 def default_shard; end - # source://activerecord/8.0.1/lib/active_record/core.rb#102 + # source://activerecord/8.0.2/lib/active_record/core.rb#102 def default_shard=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#102 + # source://activerecord/8.0.2/lib/active_record/core.rb#102 def default_shard?; end - # source://activerecord/8.0.1/lib/active_record/enum.rb#167 + # source://activerecord/8.0.2/lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/8.0.1/lib/active_record/enum.rb#167 + # source://activerecord/8.0.2/lib/active_record/enum.rb#167 def defined_enums=(value); end - # source://activerecord/8.0.1/lib/active_record/enum.rb#167 + # source://activerecord/8.0.2/lib/active_record/enum.rb#167 def defined_enums?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#47 + # source://activerecord/8.0.2/lib/active_record/core.rb#47 def destroy_association_async_batch_size; end - # source://activerecord/8.0.1/lib/active_record/core.rb#47 + # source://activerecord/8.0.2/lib/active_record/core.rb#47 def destroy_association_async_batch_size=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#27 + # source://activerecord/8.0.2/lib/active_record/core.rb#27 def destroy_association_async_job; end - # source://activerecord/8.0.1/lib/active_record/core.rb#24 + # source://activerecord/8.0.2/lib/active_record/core.rb#24 def destroy_association_async_job=(value); end - # source://activerecord/8.0.1/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/8.0.2/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes; end - # source://activerecord/8.0.1/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/8.0.2/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes=(value); end - # source://activerecord/8.0.1/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/8.0.2/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#87 + # source://activerecord/8.0.2/lib/active_record/core.rb#87 def enumerate_columns_in_select_statements; end - # source://activerecord/8.0.1/lib/active_record/core.rb#87 + # source://activerecord/8.0.2/lib/active_record/core.rb#87 def enumerate_columns_in_select_statements=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#87 + # source://activerecord/8.0.2/lib/active_record/core.rb#87 def enumerate_columns_in_select_statements?; end - # source://activerecord/8.0.1/lib/active_record/token_for.rb#11 + # source://activerecord/8.0.2/lib/active_record/token_for.rb#11 def generated_token_verifier; end - # source://activerecord/8.0.1/lib/active_record/token_for.rb#11 + # source://activerecord/8.0.2/lib/active_record/token_for.rb#11 def generated_token_verifier=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#94 + # source://activerecord/8.0.2/lib/active_record/core.rb#94 def has_many_inversing; end - # source://activerecord/8.0.1/lib/active_record/core.rb#94 + # source://activerecord/8.0.2/lib/active_record/core.rb#94 def has_many_inversing=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#94 + # source://activerecord/8.0.2/lib/active_record/core.rb#94 def has_many_inversing?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#170 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#170 def immutable_strings_by_default; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#170 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#170 def immutable_strings_by_default=(value); end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#170 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#170 def immutable_strings_by_default?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#169 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#169 def implicit_order_column; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#169 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#169 def implicit_order_column=(value); end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#169 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#169 def implicit_order_column?; end - # source://activemodel/8.0.1/lib/active_model/serializers/json.rb#15 + # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/8.0.1/lib/active_model/serializers/json.rb#15 + # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 def include_root_in_json=(value); end - # source://activemodel/8.0.1/lib/active_model/serializers/json.rb#15 + # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#172 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#172 def inheritance_column; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#325 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#325 def inheritance_column=(value); end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#172 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#172 def inheritance_column?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#167 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#167 def internal_metadata_table_name; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#167 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#167 def internal_metadata_table_name=(value); end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#167 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#167 def internal_metadata_table_name?; end - # source://activerecord/8.0.1/lib/active_record/store.rb#101 + # source://activerecord/8.0.2/lib/active_record/store.rb#101 def local_stored_attributes; end - # source://activerecord/8.0.1/lib/active_record/store.rb#101 + # source://activerecord/8.0.2/lib/active_record/store.rb#101 def local_stored_attributes=(_arg0); end - # source://activerecord/8.0.1/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/8.0.2/lib/active_record/locking/optimistic.rb#56 def lock_optimistically; end - # source://activerecord/8.0.1/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/8.0.2/lib/active_record/locking/optimistic.rb#56 def lock_optimistically=(value); end - # source://activerecord/8.0.1/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/8.0.2/lib/active_record/locking/optimistic.rb#56 def lock_optimistically?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#22 + # source://activerecord/8.0.2/lib/active_record/core.rb#22 def logger; end - # source://activerecord/8.0.1/lib/active_record/core.rb#22 + # source://activerecord/8.0.2/lib/active_record/core.rb#22 def logger=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#22 + # source://activerecord/8.0.2/lib/active_record/core.rb#22 def logger?; end - # source://activerecord/8.0.1/lib/active_record/nested_attributes.rb#15 + # source://activerecord/8.0.2/lib/active_record/nested_attributes.rb#15 def nested_attributes_options; end - # source://activerecord/8.0.1/lib/active_record/nested_attributes.rb#15 + # source://activerecord/8.0.2/lib/active_record/nested_attributes.rb#15 def nested_attributes_options=(value); end - # source://activerecord/8.0.1/lib/active_record/nested_attributes.rb#15 + # source://activerecord/8.0.2/lib/active_record/nested_attributes.rb#15 def nested_attributes_options?; end - # source://activerecord/8.0.1/lib/active_record/normalization.rb#8 + # source://activerecord/8.0.2/lib/active_record/normalization.rb#8 def normalized_attributes; end - # source://activerecord/8.0.1/lib/active_record/normalization.rb#8 + # source://activerecord/8.0.2/lib/active_record/normalization.rb#8 def normalized_attributes=(value); end - # source://activerecord/8.0.1/lib/active_record/normalization.rb#8 + # source://activerecord/8.0.2/lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/8.0.1/lib/active_model/conversion.rb#32 + # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 def param_delimiter; end - # source://activemodel/8.0.1/lib/active_model/conversion.rb#32 + # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 def param_delimiter=(value); end - # source://activemodel/8.0.1/lib/active_model/conversion.rb#32 + # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 def param_delimiter?; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts=(value); end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts?; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates=(value); end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#168 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#168 def pluralize_table_names; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#168 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#168 def pluralize_table_names=(value); end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#168 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#168 def pluralize_table_names?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#163 + # source://activerecord/8.0.2/lib/active_record/core.rb#207 + def preventing_writes?(class_name); end + + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#163 def primary_key_prefix_type; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#163 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#163 def primary_key_prefix_type=(value); end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#163 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#163 def primary_key_prefix_type?; end - # source://activerecord/8.0.1/lib/active_record/timestamp.rb#47 + # source://activerecord/8.0.2/lib/active_record/timestamp.rb#47 def record_timestamps; end - # source://activerecord/8.0.1/lib/active_record/timestamp.rb#47 + # source://activerecord/8.0.2/lib/active_record/timestamp.rb#47 def record_timestamps=(value); end - # source://activerecord/8.0.1/lib/active_record/timestamp.rb#47 + # source://activerecord/8.0.2/lib/active_record/timestamp.rb#47 def record_timestamps?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#96 + # source://activerecord/8.0.2/lib/active_record/core.rb#96 def run_commit_callbacks_on_first_saved_instances_in_transaction; end - # source://activerecord/8.0.1/lib/active_record/core.rb#96 + # source://activerecord/8.0.2/lib/active_record/core.rb#96 def run_commit_callbacks_on_first_saved_instances_in_transaction=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#96 + # source://activerecord/8.0.2/lib/active_record/core.rb#96 def run_commit_callbacks_on_first_saved_instances_in_transaction?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#166 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#166 def schema_migrations_table_name; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#166 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#166 def schema_migrations_table_name=(value); end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#166 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#166 def schema_migrations_table_name?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#104 + # source://activerecord/8.0.2/lib/active_record/core.rb#104 def shard_selector; end - # source://activerecord/8.0.1/lib/active_record/core.rb#104 + # source://activerecord/8.0.2/lib/active_record/core.rb#104 def shard_selector=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#104 + # source://activerecord/8.0.2/lib/active_record/core.rb#104 def shard_selector?; end - # source://activerecord/8.0.1/lib/active_record/signed_id.rb#13 + # source://activerecord/8.0.2/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret; end - # source://activerecord/8.0.1/lib/active_record/signed_id.rb#13 + # source://activerecord/8.0.2/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret=(value); end - # source://activerecord/8.0.1/lib/active_record/signed_id.rb#13 + # source://activerecord/8.0.2/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret?; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#61 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#61 def skip_time_zone_conversion_for_attributes; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#61 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#61 def skip_time_zone_conversion_for_attributes=(value); end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#61 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#61 def skip_time_zone_conversion_for_attributes?; end - # source://activerecord/8.0.1/lib/active_record/inheritance.rb#43 + # source://activerecord/8.0.2/lib/active_record/inheritance.rb#43 def store_full_class_name; end - # source://activerecord/8.0.1/lib/active_record/inheritance.rb#43 + # source://activerecord/8.0.2/lib/active_record/inheritance.rb#43 def store_full_class_name=(value); end - # source://activerecord/8.0.1/lib/active_record/inheritance.rb#43 + # source://activerecord/8.0.2/lib/active_record/inheritance.rb#43 def store_full_class_name?; end - # source://activerecord/8.0.1/lib/active_record/inheritance.rb#47 + # source://activerecord/8.0.2/lib/active_record/inheritance.rb#47 def store_full_sti_class; end - # source://activerecord/8.0.1/lib/active_record/inheritance.rb#47 + # source://activerecord/8.0.2/lib/active_record/inheritance.rb#47 def store_full_sti_class=(value); end - # source://activerecord/8.0.1/lib/active_record/inheritance.rb#47 + # source://activerecord/8.0.2/lib/active_record/inheritance.rb#47 def store_full_sti_class?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#91 + # source://activerecord/8.0.2/lib/active_record/core.rb#91 def strict_loading_by_default; end - # source://activerecord/8.0.1/lib/active_record/core.rb#91 + # source://activerecord/8.0.2/lib/active_record/core.rb#91 def strict_loading_by_default=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#91 + # source://activerecord/8.0.2/lib/active_record/core.rb#91 def strict_loading_by_default?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#92 + # source://activerecord/8.0.2/lib/active_record/core.rb#92 def strict_loading_mode; end - # source://activerecord/8.0.1/lib/active_record/core.rb#92 + # source://activerecord/8.0.2/lib/active_record/core.rb#92 def strict_loading_mode=(value); end - # source://activerecord/8.0.1/lib/active_record/core.rb#92 + # source://activerecord/8.0.2/lib/active_record/core.rb#92 def strict_loading_mode?; end - # source://activerecord/8.0.1/lib/active_record/core.rb#242 + # source://activerecord/8.0.2/lib/active_record/core.rb#253 def strict_loading_violation!(owner:, reflection:); end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#164 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#164 def table_name_prefix; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#164 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#164 def table_name_prefix=(value); end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#164 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#164 def table_name_prefix?; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#165 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#165 def table_name_suffix; end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#165 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#165 def table_name_suffix=(value); end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#165 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#165 def table_name_suffix?; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#60 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#60 def time_zone_aware_attributes; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#60 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#60 def time_zone_aware_attributes=(value); end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#60 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#60 def time_zone_aware_attributes?; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#62 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#62 def time_zone_aware_types; end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#62 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#62 def time_zone_aware_types=(value); end - # source://activerecord/8.0.1/lib/active_record/attribute_methods/time_zone_conversion.rb#62 + # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#62 def time_zone_aware_types?; end - # source://activerecord/8.0.1/lib/active_record/token_for.rb#10 + # source://activerecord/8.0.2/lib/active_record/token_for.rb#10 def token_definitions; end - # source://activerecord/8.0.1/lib/active_record/token_for.rb#10 + # source://activerecord/8.0.2/lib/active_record/token_for.rb#10 def token_definitions=(value); end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__attr_readonly; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__attr_readonly=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__counter_cache_columns; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__counter_cache_columns=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__destroy_association_async_job; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__destroy_association_async_job=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_aggregate_reflections; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_aggregate_reflections=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_attachment_reflections; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_attachment_reflections=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_attribute_aliases; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_attribute_aliases=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_attribute_method_patterns; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_attribute_method_patterns=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_attributes_for_inspect; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_attributes_for_inspect=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_automatic_scope_inversing; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_automatic_scope_inversing=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_automatically_invert_plural_associations; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_automatically_invert_plural_associations=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_belongs_to_required_by_default; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_belongs_to_required_by_default=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_cache_timestamp_format; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_cache_timestamp_format=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_cache_versioning; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_cache_versioning=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_collection_cache_versioning; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_collection_cache_versioning=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_counter_cached_association_names; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_counter_cached_association_names=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_column_serializer; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_column_serializer=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_connection_handler; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_connection_handler=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_role; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_role=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_scope_override; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_scope_override=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_scopes; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_scopes=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_shard; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_shard=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_destroy_association_async_batch_size; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_destroy_association_async_batch_size=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_encrypted_attributes; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_encrypted_attributes=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_enumerate_columns_in_select_statements; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_enumerate_columns_in_select_statements=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_generated_token_verifier; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_generated_token_verifier=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_has_many_inversing; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_has_many_inversing=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_immutable_strings_by_default; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_immutable_strings_by_default=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_implicit_order_column; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_implicit_order_column=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_include_root_in_json; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_include_root_in_json=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_inheritance_column; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_inheritance_column=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_internal_metadata_table_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_internal_metadata_table_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_lock_optimistically; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_lock_optimistically=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_logger; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_logger=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_nested_attributes_options; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_nested_attributes_options=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_normalized_attributes; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_normalized_attributes=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_param_delimiter; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_param_delimiter=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_partial_inserts; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_partial_inserts=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_partial_updates; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_partial_updates=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_pluralize_table_names; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_pluralize_table_names=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_primary_key_prefix_type; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_primary_key_prefix_type=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_record_timestamps; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_record_timestamps=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_run_commit_callbacks_on_first_saved_instances_in_transaction; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/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.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_schema_migrations_table_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_schema_migrations_table_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_shard_selector; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_shard_selector=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_signed_id_verifier_secret; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_signed_id_verifier_secret=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_skip_time_zone_conversion_for_attributes; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_skip_time_zone_conversion_for_attributes=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_store_full_class_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_store_full_class_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_store_full_sti_class; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_store_full_sti_class=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_strict_loading_by_default; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_strict_loading_by_default=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_strict_loading_mode; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_strict_loading_mode=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_table_name_prefix; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_table_name_prefix=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_table_name_suffix; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_table_name_suffix=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_time_zone_aware_attributes; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_time_zone_aware_attributes=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_time_zone_aware_types; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_time_zone_aware_types=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_token_definitions; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_token_definitions=(new_value); end - # source://activerecord/8.0.1/lib/active_record/model_schema.rb#172 + # source://activerecord/8.0.2/lib/active_record/model_schema.rb#172 def _inheritance_column=(value); end end end @@ -1583,13 +1586,13 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#52 def queues=(val); end - # source://railties/8.0.1/lib/rails/engine.rb#413 + # source://railties/8.0.2/lib/rails/engine.rb#413 def railtie_helpers_paths; end - # source://railties/8.0.1/lib/rails/engine.rb#396 + # source://railties/8.0.2/lib/rails/engine.rb#396 def railtie_namespace; end - # source://railties/8.0.1/lib/rails/engine.rb#417 + # source://railties/8.0.2/lib/rails/engine.rb#417 def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end # source://activestorage//lib/active_storage.rb#362 @@ -1616,7 +1619,7 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#65 def supported_image_processing_methods=(val); end - # source://railties/8.0.1/lib/rails/engine.rb#402 + # source://railties/8.0.2/lib/rails/engine.rb#402 def table_name_prefix; end # source://activestorage//lib/active_storage.rb#357 @@ -1643,7 +1646,7 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#358 def urls_expire_in=(val); end - # source://railties/8.0.1/lib/rails/engine.rb#409 + # source://railties/8.0.2/lib/rails/engine.rb#409 def use_relative_model_naming?; end # source://activestorage//lib/active_storage.rb#59 @@ -1689,16 +1692,16 @@ class ActiveStorage::AnalyzeJob < ::ActiveStorage::BaseJob class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -2228,7 +2231,7 @@ class ActiveStorage::Attached::Many < ::ActiveStorage::Attached # source://activestorage//lib/active_storage/attached/many.rb#25 def detach(*_arg0, **_arg1, &_arg2); end - # source://activesupport/8.0.1/lib/active_support/delegation.rb#185 + # source://activesupport/8.0.2/lib/active_support/delegation.rb#185 def method_missing(method, *_arg1, **_arg2, &_arg3); end # source://activestorage//lib/active_storage/attached/many.rb#13 @@ -2245,7 +2248,7 @@ class ActiveStorage::Attached::Many < ::ActiveStorage::Attached # source://activestorage//lib/active_storage/attached/many.rb#71 def purge_many; end - # source://activesupport/8.0.1/lib/active_support/delegation.rb#177 + # source://activesupport/8.0.2/lib/active_support/delegation.rb#177 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -2255,19 +2258,29 @@ module ActiveStorage::Attached::Model mixes_in_class_methods ::ActiveStorage::Attached::Model::ClassMethods - # source://activestorage//lib/active_storage/attached/model.rb#262 + # source://activestorage//lib/active_storage/attached/model.rb#281 def attachment_changes; end - # source://activestorage//lib/active_storage/attached/model.rb#266 + # source://activestorage//lib/active_storage/attached/model.rb#285 def changed_for_autosave?; end - # source://activestorage//lib/active_storage/attached/model.rb#276 + # source://activestorage//lib/active_storage/attached/model.rb#295 def reload(*_arg0); end private - # source://activestorage//lib/active_storage/attached/model.rb#270 + # 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 @@ -2296,7 +2309,7 @@ class ActiveStorage::Attached::One < ::ActiveStorage::Attached # source://activestorage//lib/active_storage/attached/one.rb#25 def detach(*_arg0, **_arg1, &_arg2); end - # source://activesupport/8.0.1/lib/active_support/delegation.rb#164 + # source://activesupport/8.0.2/lib/active_support/delegation.rb#164 def method_missing(method, *_arg1, **_arg2, &_arg3); end # source://activestorage//lib/active_storage/attached/one.rb#13 @@ -2313,7 +2326,7 @@ class ActiveStorage::Attached::One < ::ActiveStorage::Attached # source://activestorage//lib/active_storage/attached/one.rb#78 def purge_one; end - # source://activesupport/8.0.1/lib/active_support/delegation.rb#156 + # source://activesupport/8.0.2/lib/active_support/delegation.rb#156 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -2321,13 +2334,13 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record include ::ActiveStorage::Attachment::GeneratedAttributeMethods include ::ActiveStorage::Attachment::GeneratedAssociationMethods - # source://activerecord/8.0.1/lib/active_record/autosave_association.rb#162 + # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_blob(*args); end - # source://activerecord/8.0.1/lib/active_record/autosave_association.rb#162 + # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_record(*args); end - # source://activesupport/8.0.1/lib/active_support/delegation.rb#185 + # source://activesupport/8.0.2/lib/active_support/delegation.rb#185 def method_missing(method, *_arg1, **_arg2, &_arg3); end def preview(transformations); end @@ -2336,7 +2349,7 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record def representation(transformations); end def signed_id(*_arg0, **_arg1, &_arg2); end - # source://activerecord/8.0.1/lib/active_record/autosave_association.rb#162 + # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def validate_associated_records_for_blob(*args); end def variant(transformations); end @@ -2349,88 +2362,88 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record def named_variants; end def purge_dependent_blob_later; end - # source://activesupport/8.0.1/lib/active_support/delegation.rb#177 + # source://activesupport/8.0.2/lib/active_support/delegation.rb#177 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.1/lib/active_record/scoping/named.rb#174 + # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def with_all_variant_records(*args, **_arg1); end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/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.1/lib/active_record/associations/builder/association.rb#104 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def blob; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#112 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def blob=(value); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/belongs_to.rb#146 + # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#146 def blob_changed?; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/belongs_to.rb#150 + # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#150 def blob_previously_changed?; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_blob(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_blob(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_blob!(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#104 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def record; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#112 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def record=(value); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/belongs_to.rb#146 + # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#146 def record_changed?; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/belongs_to.rb#150 + # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#150 def record_previously_changed?; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_blob; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_record; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_blob; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_record; end end @@ -2441,28 +2454,28 @@ class ActiveStorage::BaseController < ::ActionController::Base private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_etag_with_template_digest; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_etag_with_template_digest=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -2479,16 +2492,16 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def audio?; end - # source://activerecord/8.0.1/lib/active_record/autosave_association.rb#162 + # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_attachments(*args); end - # source://activerecord/8.0.1/lib/active_record/autosave_association.rb#162 + # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_preview_image_attachment(*args); end - # source://activerecord/8.0.1/lib/active_record/autosave_association.rb#162 + # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_preview_image_blob(*args); end - # source://activerecord/8.0.1/lib/active_record/autosave_association.rb#162 + # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_variant_records(*args); end def compose(keys); end @@ -2505,7 +2518,7 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def purge; end def purge_later; end - # source://activerecord/8.0.1/lib/active_record/secure_token.rb#53 + # source://activerecord/8.0.2/lib/active_record/secure_token.rb#53 def regenerate_key; end def service; end @@ -2521,10 +2534,10 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def upload_without_unfurling(io); end def url(expires_in: T.unsafe(nil), disposition: T.unsafe(nil), filename: T.unsafe(nil), **options); end - # source://activerecord/8.0.1/lib/active_record/autosave_association.rb#162 + # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def validate_associated_records_for_attachments(*args); end - # source://activerecord/8.0.1/lib/active_record/autosave_association.rb#162 + # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def validate_associated_records_for_variant_records(*args); end def video?; end @@ -2557,57 +2570,54 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def services?; end def signed_id_verifier; end - # source://activerecord/8.0.1/lib/active_record/scoping/named.rb#174 + # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def unattached(*args, **_arg1); end - def validate_global_service_configuration; end - def validate_service_configuration(service_name, model_class, association_name); end - - # source://activerecord/8.0.1/lib/active_record/scoping/named.rb#174 + # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def with_attached_preview_image(*args, **_arg1); end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_attachment_reflections; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_attachment_reflections=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_service; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_service=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_services; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_services=(new_value); end end end @@ -2625,34 +2635,34 @@ module ActiveStorage::Blob::Analyzable end module ActiveStorage::Blob::GeneratedAssociationMethods - # source://activerecord/8.0.1/lib/active_record/associations/builder/collection_association.rb#62 + # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#62 def attachment_ids; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/collection_association.rb#72 + # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#72 def attachment_ids=(ids); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#104 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def attachments; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#112 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def attachments=(value); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_preview_image_attachment(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_preview_image_blob(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_preview_image_attachment(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_preview_image_attachment!(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_preview_image_blob(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_preview_image_blob!(*args, &block); end # source://activestorage//lib/active_storage/attached/model.rb#113 @@ -2661,40 +2671,40 @@ module ActiveStorage::Blob::GeneratedAssociationMethods # source://activestorage//lib/active_storage/attached/model.rb#118 def preview_image=(attachable); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#104 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def preview_image_attachment; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#112 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def preview_image_attachment=(value); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#104 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def preview_image_blob; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#112 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def preview_image_blob=(value); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_preview_image_attachment; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_preview_image_blob; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_preview_image_attachment; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_preview_image_blob; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/collection_association.rb#62 + # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#62 def variant_record_ids; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/collection_association.rb#72 + # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#72 def variant_record_ids=(ids); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#104 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def variant_records; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#112 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def variant_records=(value); end end @@ -2757,22 +2767,22 @@ class ActiveStorage::Blobs::ProxyController < ::ActiveStorage::BaseController private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -2784,40 +2794,40 @@ class ActiveStorage::Blobs::RedirectController < ::ActiveStorage::BaseController private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/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.1/lib/active_support/current_attributes.rb#137 + # source://activesupport/8.0.2/lib/active_support/current_attributes.rb#137 def url_options; end - # source://activesupport/8.0.1/lib/active_support/current_attributes.rb#138 + # source://activesupport/8.0.2/lib/active_support/current_attributes.rb#138 def url_options=(value); end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defaults; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defaults=(new_value); end end end @@ -2827,8 +2837,8 @@ class ActiveStorage::DirectUploadsController < ::ActiveStorage::BaseController private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end def blob_args; end def direct_upload_json(blob); end @@ -2836,10 +2846,10 @@ class ActiveStorage::DirectUploadsController < ::ActiveStorage::BaseController class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -2856,8 +2866,8 @@ class ActiveStorage::DiskController < ::ActiveStorage::BaseController private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end def acceptable_content?(token); end def decode_verified_key; end @@ -2867,16 +2877,16 @@ class ActiveStorage::DiskController < ::ActiveStorage::BaseController class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -2913,10 +2923,10 @@ class ActiveStorage::Engine < ::Rails::Engine class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end end end @@ -3001,10 +3011,10 @@ class ActiveStorage::FixtureSet include ::ActiveRecord::SecureToken extend ::ActiveRecord::SecureToken::ClassMethods - # source://activesupport/8.0.1/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/8.0.2/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path; end - # source://activesupport/8.0.1/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/8.0.2/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path?; end # source://activestorage//lib/active_storage/fixture_set.rb#70 @@ -3032,21 +3042,21 @@ class ActiveStorage::FixtureSet # source://activestorage//lib/active_storage/fixture_set.rb#66 def blob(filename:, **attributes); end - # source://activesupport/8.0.1/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/8.0.2/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path; end - # source://activesupport/8.0.1/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/8.0.2/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path=(value); end - # source://activesupport/8.0.1/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/8.0.2/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path?; end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_file_fixture_path; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_file_fixture_path=(new_value); end end end @@ -3112,10 +3122,10 @@ class ActiveStorage::LogSubscriber < ::ActiveSupport::LogSubscriber class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_log_levels; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_log_levels=(new_value); end end end @@ -3126,16 +3136,16 @@ class ActiveStorage::MirrorJob < ::ActiveStorage::BaseJob class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -3187,16 +3197,16 @@ class ActiveStorage::PreviewImageJob < ::ActiveStorage::BaseJob class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -3360,16 +3370,16 @@ class ActiveStorage::PurgeJob < ::ActiveStorage::BaseJob class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -3381,16 +3391,16 @@ class ActiveStorage::Record < ::ActiveRecord::Base class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end end end @@ -3483,8 +3493,8 @@ class ActiveStorage::Representations::BaseController < ::ActiveStorage::BaseCont private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end def blob_scope; end def set_representation; end @@ -3492,16 +3502,16 @@ class ActiveStorage::Representations::BaseController < ::ActiveStorage::BaseCont class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -3516,22 +3526,22 @@ class ActiveStorage::Representations::ProxyController < ::ActiveStorage::Represe private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -3541,16 +3551,16 @@ class ActiveStorage::Representations::RedirectController < ::ActiveStorage::Repr private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -3822,16 +3832,16 @@ class ActiveStorage::TransformJob < ::ActiveStorage::BaseJob class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -3937,91 +3947,91 @@ class ActiveStorage::VariantRecord < ::ActiveStorage::Record include ::ActiveStorage::VariantRecord::GeneratedAttributeMethods include ::ActiveStorage::VariantRecord::GeneratedAssociationMethods - # source://activerecord/8.0.1/lib/active_record/autosave_association.rb#162 + # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_blob(*args); end - # source://activerecord/8.0.1/lib/active_record/autosave_association.rb#162 + # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_image_attachment(*args); end - # source://activerecord/8.0.1/lib/active_record/autosave_association.rb#162 + # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_image_blob(*args); end class << self - # source://activerecord/8.0.1/lib/active_record/scoping/named.rb#174 + # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def with_attached_image(*args, **_arg1); end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_attachment_reflections; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_attachment_reflections=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/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.1/lib/active_record/associations/builder/association.rb#104 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def blob; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#112 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def blob=(value); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/belongs_to.rb#146 + # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#146 def blob_changed?; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/belongs_to.rb#150 + # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#150 def blob_previously_changed?; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_blob(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_image_attachment(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_image_blob(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_blob(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_blob!(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_image_attachment(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_image_attachment!(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_image_blob(*args, &block); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/8.0.2/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 @@ -4030,34 +4040,34 @@ module ActiveStorage::VariantRecord::GeneratedAssociationMethods # source://activestorage//lib/active_storage/attached/model.rb#118 def image=(attachable); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#104 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def image_attachment; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#112 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def image_attachment=(value); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#104 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def image_blob; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/association.rb#112 + # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def image_blob=(value); end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_blob; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_image_attachment; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_image_blob; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_blob; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_image_attachment; end - # source://activerecord/8.0.1/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_image_blob; end end diff --git a/sorbet/rbi/gems/json@2.10.1.rbi b/sorbet/rbi/gems/json@2.10.2.rbi similarity index 96% rename from sorbet/rbi/gems/json@2.10.1.rbi rename to sorbet/rbi/gems/json@2.10.2.rbi index 485a4971..c1df0fc1 100644 --- a/sorbet/rbi/gems/json@2.10.1.rbi +++ b/sorbet/rbi/gems/json@2.10.2.rbi @@ -1,4 +1,4 @@ -# typed: false +# typed: true # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `json` gem. @@ -12,7 +12,7 @@ end # Extends any Class to include _json_creatable?_ method. # -# source://json//lib/json/common.rb#985 +# source://json//lib/json/common.rb#979 class Class < ::Module # Returns true if this class can be used to create an instance # from a serialised JSON string. The class has to implement a class @@ -21,7 +21,7 @@ class Class < ::Module # # @return [Boolean] # - # source://json//lib/json/common.rb#990 + # source://json//lib/json/common.rb#984 def json_creatable?; end end @@ -655,7 +655,7 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json//lib/json/common.rb#820 + # source://json//lib/json/common.rb#823 def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end # :call-seq: @@ -672,13 +672,13 @@ module JSON # # Raises SystemStackError (stack level too deep): # JSON.fast_generate(a) # - # source://json//lib/json/common.rb#354 + # source://json//lib/json/common.rb#357 def fast_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#354 + # source://json//lib/json/common.rb#357 def fast_unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -717,7 +717,7 @@ module JSON # # Raises JSON::NestingError (nesting of 100 is too deep): # JSON.generate(a) # - # source://json//lib/json/common.rb#326 + # source://json//lib/json/common.rb#329 def generate(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -855,7 +855,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#739 + # source://json//lib/json/common.rb#742 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # :call-seq: @@ -866,7 +866,7 @@ module JSON # # See method #parse. # - # source://json//lib/json/common.rb#275 + # source://json//lib/json/common.rb#278 def load_file(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -877,12 +877,9 @@ module JSON # # See method #parse! # - # source://json//lib/json/common.rb#286 + # source://json//lib/json/common.rb#289 def load_file!(filespec, opts = T.unsafe(nil)); end - # source://json//lib/json/common.rb#857 - def merge_dump_options(opts, strict: T.unsafe(nil)); end - # :call-seq: # JSON.parse(source, opts) -> object # @@ -931,7 +928,7 @@ module JSON # # Raises JSON::ParserError (783: unexpected token at ''): # JSON.parse('') # - # source://json//lib/json/common.rb#244 + # source://json//lib/json/common.rb#247 def parse(source, opts = T.unsafe(nil)); end # :call-seq: @@ -946,7 +943,7 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json//lib/json/common.rb#259 + # source://json//lib/json/common.rb#262 def parse!(source, opts = T.unsafe(nil)); end # :call-seq: @@ -979,28 +976,28 @@ module JSON # } # } # - # source://json//lib/json/common.rb#399 + # source://json//lib/json/common.rb#402 def pretty_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#399 + # source://json//lib/json/common.rb#402 def pretty_unparse(obj, opts = T.unsafe(nil)); end # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ # - # source://json//lib/json/common.rb#765 + # source://json//lib/json/common.rb#768 def recurse_proc(result, &proc); end - # source://json//lib/json/common.rb#739 + # source://json//lib/json/common.rb#742 def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and # later delete them. # - # source://json//lib/json/common.rb#326 + # source://json//lib/json/common.rb#329 def unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -1132,7 +1129,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#579 + # source://json//lib/json/common.rb#582 def unsafe_load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end class << self @@ -1206,7 +1203,7 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json//lib/json/common.rb#820 + # source://json//lib/json/common.rb#823 def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end # Sets or returns the default options for the JSON.dump method. @@ -1214,7 +1211,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true} # - # source://json//lib/json/common.rb#786 + # source://json//lib/json/common.rb#789 def dump_default_options; end # Sets or returns the default options for the JSON.dump method. @@ -1222,7 +1219,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true} # - # source://json//lib/json/common.rb#786 + # source://json//lib/json/common.rb#789 def dump_default_options=(_arg0); end # :call-seq: @@ -1239,13 +1236,13 @@ module JSON # # Raises SystemStackError (stack level too deep): # JSON.fast_generate(a) # - # source://json//lib/json/common.rb#354 + # source://json//lib/json/common.rb#357 def fast_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#354 + # source://json//lib/json/common.rb#357 def fast_unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -1284,7 +1281,7 @@ module JSON # # Raises JSON::NestingError (nesting of 100 is too deep): # JSON.generate(a) # - # source://json//lib/json/common.rb#326 + # source://json//lib/json/common.rb#329 def generate(obj, opts = T.unsafe(nil)); end # Returns the JSON generator module that is used by JSON. @@ -1299,7 +1296,7 @@ module JSON # Encodes string using String.encode. # - # source://json//lib/json/common.rb#853 + # source://json//lib/json/common.rb#856 def iconv(to, from, string); end # :call-seq: @@ -1437,7 +1434,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#739 + # source://json//lib/json/common.rb#742 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # Sets or returns default options for the JSON.load method. @@ -1445,7 +1442,7 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json//lib/json/common.rb#443 + # source://json//lib/json/common.rb#446 def load_default_options; end # Sets or returns default options for the JSON.load method. @@ -1453,7 +1450,7 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json//lib/json/common.rb#443 + # source://json//lib/json/common.rb#446 def load_default_options=(_arg0); end # :call-seq: @@ -1464,7 +1461,7 @@ module JSON # # See method #parse! # - # source://json//lib/json/common.rb#286 + # source://json//lib/json/common.rb#289 def load_file!(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -1515,7 +1512,7 @@ module JSON # # Raises JSON::ParserError (783: unexpected token at ''): # JSON.parse('') # - # source://json//lib/json/common.rb#244 + # source://json//lib/json/common.rb#247 def parse(source, opts = T.unsafe(nil)); end # :call-seq: @@ -1530,7 +1527,7 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json//lib/json/common.rb#259 + # source://json//lib/json/common.rb#262 def parse!(source, opts = T.unsafe(nil)); end # Returns the JSON parser class that is used by JSON. @@ -1573,21 +1570,21 @@ module JSON # } # } # - # source://json//lib/json/common.rb#399 + # source://json//lib/json/common.rb#402 def pretty_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#399 + # source://json//lib/json/common.rb#402 def pretty_unparse(obj, opts = T.unsafe(nil)); end # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ # - # source://json//lib/json/common.rb#765 + # source://json//lib/json/common.rb#768 def recurse_proc(result, &proc); end - # source://json//lib/json/common.rb#739 + # source://json//lib/json/common.rb#742 def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # Sets or Returns the JSON generator state class that is used by JSON. @@ -1604,7 +1601,7 @@ module JSON # I want to deprecate these later, so I'll first be silent about them, and # later delete them. # - # source://json//lib/json/common.rb#326 + # source://json//lib/json/common.rb#329 def unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -1736,7 +1733,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#579 + # source://json//lib/json/common.rb#582 def unsafe_load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # Sets or returns default options for the JSON.unsafe_load method. @@ -1744,7 +1741,7 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json//lib/json/common.rb#429 + # source://json//lib/json/common.rb#432 def unsafe_load_default_options; end # Sets or returns default options for the JSON.unsafe_load method. @@ -1752,13 +1749,8 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json//lib/json/common.rb#429 + # source://json//lib/json/common.rb#432 def unsafe_load_default_options=(_arg0); end - - private - - # source://json//lib/json/common.rb#857 - def merge_dump_options(opts, strict: T.unsafe(nil)); end end end @@ -1772,7 +1764,7 @@ end # # MyApp::JSONC_CODER.load(document) # -# source://json//lib/json/common.rb#876 +# source://json//lib/json/common.rb#870 class JSON::Coder # :call-seq: # JSON.new(options = nil, &block) @@ -1799,7 +1791,7 @@ class JSON::Coder # # @return [Coder] a new instance of Coder # - # source://json//lib/json/common.rb#900 + # source://json//lib/json/common.rb#894 def initialize(options = T.unsafe(nil), &as_json); end # call-seq: @@ -1808,7 +1800,7 @@ class JSON::Coder # # Serialize the given object into a \JSON document. # - # source://json//lib/json/common.rb#919 + # source://json//lib/json/common.rb#913 def dump(object, io = T.unsafe(nil)); end # call-seq: @@ -1817,7 +1809,7 @@ class JSON::Coder # # Serialize the given object into a \JSON document. # - # source://json//lib/json/common.rb#919 + # source://json//lib/json/common.rb#913 def generate(object, io = T.unsafe(nil)); end # call-seq: @@ -1825,7 +1817,7 @@ class JSON::Coder # # Parse the given \JSON document and return an equivalent Ruby object. # - # source://json//lib/json/common.rb#928 + # source://json//lib/json/common.rb#922 def load(source); end # call-seq: @@ -1833,7 +1825,7 @@ class JSON::Coder # # Parse the given \JSON document and return an equivalent Ruby object. # - # source://json//lib/json/common.rb#937 + # source://json//lib/json/common.rb#931 def load_file(path); end # call-seq: @@ -1841,7 +1833,7 @@ class JSON::Coder # # Parse the given \JSON document and return an equivalent Ruby object. # - # source://json//lib/json/common.rb#928 + # source://json//lib/json/common.rb#922 def parse(source); end end @@ -1950,11 +1942,11 @@ JSON::Ext::Parser::Config = JSON::Ext::ParserConfig # Note: no validation is performed on the provided string. It is the # responsability of the caller to ensure the string contains valid JSON. # -# source://json//lib/json/common.rb#180 +# source://json//lib/json/common.rb#183 class JSON::Fragment < ::Struct # @return [Fragment] a new instance of Fragment # - # source://json//lib/json/common.rb#181 + # source://json//lib/json/common.rb#184 def initialize(json); end # Returns the value of attribute json @@ -1968,7 +1960,7 @@ class JSON::Fragment < ::Struct # @return [Object] the newly set value def json=(_); end - # source://json//lib/json/common.rb#189 + # source://json//lib/json/common.rb#192 def to_json(state = T.unsafe(nil), *_arg1); end class << self @@ -2060,10 +2052,10 @@ JSON::State = JSON::Ext::Generator::State # For backwards compatibility # -# source://json//lib/json/common.rb#164 +# source://json//lib/json/common.rb#167 JSON::UnparserError = JSON::GeneratorError -# source://json//lib/json/common.rb#943 +# source://json//lib/json/common.rb#937 module Kernel private @@ -2074,19 +2066,19 @@ module Kernel # The _opts_ argument is passed through to generate/parse respectively. See # generate and parse for their documentation. # - # source://json//lib/json/common.rb#970 + # source://json//lib/json/common.rb#964 def JSON(object, *args); end # Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in # one line. # - # source://json//lib/json/common.rb#948 + # source://json//lib/json/common.rb#942 def j(*objs); end # Outputs _objs_ to STDOUT as JSON strings in a pretty format, with # indentation and over many lines. # - # source://json//lib/json/common.rb#957 + # source://json//lib/json/common.rb#951 def jj(*objs); end end diff --git a/sorbet/rbi/gems/lint_roller@1.1.0.rbi b/sorbet/rbi/gems/lint_roller@1.1.0.rbi index 0e21c6f2..ef073b8c 100644 --- a/sorbet/rbi/gems/lint_roller@1.1.0.rbi +++ b/sorbet/rbi/gems/lint_roller@1.1.0.rbi @@ -5,7 +5,7 @@ # Please instead update this file by running `bin/tapioca gem lint_roller`. -# source://lint_roller//lib/lint_roller/version.rb#1 +# source://lint_roller//lib/lint_roller/context.rb#1 module LintRoller; end # source://lint_roller//lib/lint_roller/about.rb#2 diff --git a/sorbet/rbi/gems/rails@8.0.1.rbi b/sorbet/rbi/gems/rails@8.0.2.rbi similarity index 100% rename from sorbet/rbi/gems/rails@8.0.1.rbi rename to sorbet/rbi/gems/rails@8.0.2.rbi diff --git a/sorbet/rbi/gems/railties@8.0.1.rbi b/sorbet/rbi/gems/railties@8.0.2.rbi similarity index 94% rename from sorbet/rbi/gems/railties@8.0.1.rbi rename to sorbet/rbi/gems/railties@8.0.2.rbi index 6cd6f29d..16b1537a 100644 --- a/sorbet/rbi/gems/railties@8.0.1.rbi +++ b/sorbet/rbi/gems/railties@8.0.2.rbi @@ -305,7 +305,7 @@ class Rails::Application < ::Rails::Engine # config/credentials/#{environment}.key for the current # environment, or +config/master.key+ if that file does not exist. # - # source://railties//lib/rails/application.rb#492 + # source://railties//lib/rails/application.rb#495 def credentials; end # Sets the attribute credentials @@ -331,7 +331,7 @@ class Rails::Application < ::Rails::Engine # Eager loads the application code. # - # source://railties//lib/rails/application.rb#550 + # source://railties//lib/rails/application.rb#553 def eager_load!; end # Returns an ActiveSupport::EncryptedConfiguration instance for an encrypted @@ -350,7 +350,7 @@ class Rails::Application < ::Rails::Engine # command. (See the output of bin/rails encrypted:edit --help for # more information.) # - # source://railties//lib/rails/application.rb#511 + # source://railties//lib/rails/application.rb#514 def encrypted(path, key_path: T.unsafe(nil), env_key: T.unsafe(nil)); end # Stores some of the \Rails initial environment parameters which @@ -370,7 +370,7 @@ class Rails::Application < ::Rails::Engine # source://railties//lib/rails/application.rb#377 def generators(&blk); end - # source://railties//lib/rails/application.rb#524 + # source://railties//lib/rails/application.rb#527 def helpers_paths; end # Initialize the application passing the given group. By default, the @@ -409,7 +409,7 @@ class Rails::Application < ::Rails::Engine # source://railties//lib/rails/application.rb#172 def key_generator(secret_key_base = T.unsafe(nil)); end - # source://railties//lib/rails/application.rb#544 + # source://railties//lib/rails/application.rb#547 def load_generators(app = T.unsafe(nil)); end # Returns a message verifier object. @@ -475,7 +475,7 @@ class Rails::Application < ::Rails::Engine # copying migrations from railties ; we need them in the order given by # +railties_order+. # - # source://railties//lib/rails/application.rb#540 + # source://railties//lib/rails/application.rb#543 def migration_railties; end # Returns the dasherized application name. @@ -548,20 +548,23 @@ class Rails::Application < ::Rails::Engine # is used to create all ActiveSupport::MessageVerifier and ActiveSupport::MessageEncryptor instances, # including the ones that sign and encrypt cookies. # - # In development and test, this is randomly generated and stored in a - # temporary file in tmp/local_secret.txt. + # We look for it first in ENV["SECRET_KEY_BASE"], then in + # +credentials.secret_key_base+. For most applications, the correct place + # to store it is in the encrypted credentials file. # - # You can also set ENV["SECRET_KEY_BASE_DUMMY"] to trigger the use of a randomly generated - # secret_key_base that's stored in a temporary file. This is useful when precompiling assets for - # production as part of a build step that otherwise does not need access to the production secrets. + # In development and test, if the secret_key_base is still empty, it is + # randomly generated and stored in a temporary file in + # tmp/local_secret.txt. # - # Dockerfile example: RUN SECRET_KEY_BASE_DUMMY=1 bundle exec rails assets:precompile. + # Generating a random secret_key_base and storing it in + # tmp/local_secret.txt can also be triggered by setting + # ENV["SECRET_KEY_BASE_DUMMY"]. This is useful when precompiling + # assets for production as part of a build step that otherwise does not + # need access to the production secrets. # - # In all other environments, we look for it first in ENV["SECRET_KEY_BASE"], - # then +credentials.secret_key_base+. For most applications, the correct place to store it is in the - # encrypted credentials file. + # Dockerfile example: RUN SECRET_KEY_BASE_DUMMY=1 bundle exec rails assets:precompile. # - # source://railties//lib/rails/application.rb#474 + # source://railties//lib/rails/application.rb#477 def secret_key_base; end # Sends any server called in the instance of a new application up @@ -570,7 +573,7 @@ class Rails::Application < ::Rails::Engine # source://railties//lib/rails/application.rb#383 def server(&blk); end - # source://railties//lib/rails/application.rb#520 + # source://railties//lib/rails/application.rb#523 def to_app; end # Returns an array of file paths appended with a hash of @@ -582,47 +585,47 @@ class Rails::Application < ::Rails::Engine protected - # source://railties//lib/rails/application.rb#623 + # source://railties//lib/rails/application.rb#626 def default_middleware_stack; end - # source://railties//lib/rails/application.rb#628 + # source://railties//lib/rails/application.rb#631 def ensure_generator_templates_added; end # Returns the ordered railties for this application considering railties_order. # - # source://railties//lib/rails/application.rb#589 + # source://railties//lib/rails/application.rb#592 def ordered_railties; end - # source://railties//lib/rails/application.rb#611 + # source://railties//lib/rails/application.rb#614 def railties_initializers(current); end - # source://railties//lib/rails/application.rb#578 + # source://railties//lib/rails/application.rb#581 def run_console_blocks(app); end - # source://railties//lib/rails/application.rb#568 + # source://railties//lib/rails/application.rb#571 def run_generators_blocks(app); end - # source://railties//lib/rails/application.rb#573 + # source://railties//lib/rails/application.rb#576 def run_runner_blocks(app); end - # source://railties//lib/rails/application.rb#583 + # source://railties//lib/rails/application.rb#586 def run_server_blocks(app); end - # source://railties//lib/rails/application.rb#557 + # source://railties//lib/rails/application.rb#560 def run_tasks_blocks(app); end private - # source://railties//lib/rails/application.rb#641 + # source://railties//lib/rails/application.rb#644 def build_middleware; end - # source://railties//lib/rails/application.rb#634 + # source://railties//lib/rails/application.rb#637 def build_request(env); end - # source://railties//lib/rails/application.rb#645 + # source://railties//lib/rails/application.rb#648 def coerce_same_site_protection(protection); end - # source://railties//lib/rails/application.rb#649 + # source://railties//lib/rails/application.rb#652 def filter_parameters; end class << self @@ -698,7 +701,7 @@ class Rails::Application::Configuration < ::Rails::Engine::Configuration # source://railties//lib/rails/application/configuration.rb#14 def allow_concurrency=(_arg0); end - # source://railties//lib/rails/application/configuration.rb#561 + # source://railties//lib/rails/application/configuration.rb#563 def annotations; end # Returns the value of attribute api_only. @@ -822,7 +825,7 @@ class Rails::Application::Configuration < ::Rails::Engine::Configuration # Configures the ActionDispatch::ContentSecurityPolicy. # - # source://railties//lib/rails/application/configuration.rb#566 + # source://railties//lib/rails/application/configuration.rb#568 def content_security_policy(&block); end # Returns the value of attribute content_security_policy_nonce_directives. @@ -889,7 +892,7 @@ class Rails::Application::Configuration < ::Rails::Engine::Configuration # source://railties//lib/rails/application/configuration.rb#394 def debug_exception_response_format=(_arg0); end - # source://railties//lib/rails/application/configuration.rb#583 + # source://railties//lib/rails/application/configuration.rb#585 def default_log_file; end # Returns the value of attribute disable_sandbox. @@ -1038,7 +1041,7 @@ class Rails::Application::Configuration < ::Rails::Engine::Configuration # source://railties//lib/rails/application/configuration.rb#14 def hosts=(_arg0); end - # source://railties//lib/rails/application/configuration.rb#595 + # source://railties//lib/rails/application/configuration.rb#597 def inspect; end # Load the config/database.yml to create the Rake tasks for @@ -1124,7 +1127,7 @@ class Rails::Application::Configuration < ::Rails::Engine::Configuration # Configures the ActionDispatch::PermissionsPolicy. # - # source://railties//lib/rails/application/configuration.rb#575 + # source://railties//lib/rails/application/configuration.rb#577 def permissions_policy(&block); end # Returns the value of attribute precompile_filter_parameters. @@ -1231,7 +1234,7 @@ class Rails::Application::Configuration < ::Rails::Engine::Configuration # source://railties//lib/rails/application/configuration.rb#504 def secret_key_base; end - # source://railties//lib/rails/application/configuration.rb#514 + # source://railties//lib/rails/application/configuration.rb#516 def secret_key_base=(new_secret_key_base); end # Returns the value of attribute server_timing. @@ -1274,12 +1277,12 @@ class Rails::Application::Configuration < ::Rails::Engine::Configuration # # use ActionDispatch::Session::MyCustomStore as the session store # config.session_store :my_custom_store # - # source://railties//lib/rails/application/configuration.rb#541 + # source://railties//lib/rails/application/configuration.rb#543 def session_store(new_session_store = T.unsafe(nil), **options); end # @return [Boolean] # - # source://railties//lib/rails/application/configuration.rb#557 + # source://railties//lib/rails/application/configuration.rb#559 def session_store?; end # Returns the value of attribute silence_healthcheck_path. @@ -1344,33 +1347,28 @@ class Rails::Application::Configuration < ::Rails::Engine::Configuration private - # source://railties//lib/rails/application/configuration.rb#622 + # source://railties//lib/rails/application/configuration.rb#624 def credentials_defaults; end - # source://railties//lib/rails/application/configuration.rb#632 + # source://railties//lib/rails/application/configuration.rb#634 def generate_local_secret; end - - # @return [Boolean] - # - # source://railties//lib/rails/application/configuration.rb#644 - def generate_local_secret?; end end -# source://railties//lib/rails/application/configuration.rb#599 +# source://railties//lib/rails/application/configuration.rb#601 class Rails::Application::Configuration::Custom # @return [Custom] a new instance of Custom # - # source://railties//lib/rails/application/configuration.rb#600 + # source://railties//lib/rails/application/configuration.rb#602 def initialize; end - # source://railties//lib/rails/application/configuration.rb#604 + # source://railties//lib/rails/application/configuration.rb#606 def method_missing(method, *args); end private # @return [Boolean] # - # source://railties//lib/rails/application/configuration.rb#616 + # source://railties//lib/rails/application/configuration.rb#618 def respond_to_missing?(symbol, _); end end @@ -1453,7 +1451,7 @@ class Rails::Application::RoutesReloader # source://railties//lib/rails/application/routes_reloader.rb#15 def initialize; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end # Returns the value of attribute eager_load. @@ -1527,18 +1525,18 @@ class Rails::Application::RoutesReloader def updater; end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end end end @@ -1547,8 +1545,8 @@ end class Rails::ApplicationController < ::ActionController::Base private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end # source://railties//lib/rails/application_controller.rb#25 def disable_content_security_policy_nonce!; end @@ -1564,28 +1562,28 @@ class Rails::ApplicationController < ::ActionController::Base class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__layout; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__layout=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__layout_conditions; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__layout_conditions=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -1730,11 +1728,11 @@ class Rails::CodeStatistics # source://railties//lib/rails/code_statistics.rb#45 def directories?; end - # Add directories to the output of the `bin/rails stats` command. + # Add directories to the output of the bin/rails stats command. # # Rails::CodeStatistics.register_directory("My Directory", "path/to/dir") # - # For directories that contain test code, set the `test_directory` argument to true. + # For directories that contain test code, set the test_directory argument to true. # # Rails::CodeStatistics.register_directory("Model specs", "spec/models", test_directory: true) # @@ -1752,16 +1750,16 @@ class Rails::CodeStatistics private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_directories; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_directories=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_test_types; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_test_types=(new_value); end end end @@ -2371,13 +2369,13 @@ class Rails::Engine < ::Rails::Railtie # source://railties//lib/rails/engine.rb#440 def initialize; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _load_seed_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_load_seed_callbacks(&block); end # Returns the underlying Rack application for this engine. @@ -2525,16 +2523,16 @@ class Rails::Engine < ::Rails::Railtie def load_config_initializer(initializer); end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _load_seed_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _load_seed_callbacks=(value); end # Returns the value of attribute called_from. @@ -2596,10 +2594,10 @@ class Rails::Engine < ::Rails::Railtie private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end end end @@ -2887,8 +2885,8 @@ class Rails::HealthController < ::ActionController::Base private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end # source://railties//lib/rails/health_controller.rb#51 def html_status(color:); end @@ -2902,16 +2900,16 @@ class Rails::HealthController < ::ActionController::Base class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -2965,8 +2963,8 @@ class Rails::InfoController < ::Rails::ApplicationController private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end # source://railties//lib/rails/info_controller.rb#8 def _layout_from_proc; end @@ -2977,28 +2975,28 @@ class Rails::InfoController < ::Rails::ApplicationController class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__layout; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__layout=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__layout_conditions; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__layout_conditions=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -3106,8 +3104,8 @@ class Rails::MailersController < ::Rails::ApplicationController private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end # source://railties//lib/rails/mailers_controller.rb#107 def attachment_url(attachment); end @@ -3141,22 +3139,22 @@ class Rails::MailersController < ::Rails::ApplicationController class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__helper_methods; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__helper_methods=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -3410,22 +3408,22 @@ class Rails::PwaController < ::Rails::ApplicationController private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -3992,116 +3990,119 @@ end # source://railties//lib/rails/test_unit/test_parser.rb#12 module Rails::TestUnit; end -# source://railties//lib/rails/test_unit/runner.rb#147 +# source://railties//lib/rails/test_unit/runner.rb#151 class Rails::TestUnit::CompositeFilter # @return [CompositeFilter] a new instance of CompositeFilter # - # source://railties//lib/rails/test_unit/runner.rb#150 + # source://railties//lib/rails/test_unit/runner.rb#154 def initialize(runnable, filter, patterns); end # minitest uses === to find matching filters. # - # source://railties//lib/rails/test_unit/runner.rb#157 + # source://railties//lib/rails/test_unit/runner.rb#161 def ===(method); end # Returns the value of attribute named_filter. # - # source://railties//lib/rails/test_unit/runner.rb#148 + # source://railties//lib/rails/test_unit/runner.rb#152 def named_filter; end private - # source://railties//lib/rails/test_unit/runner.rb#172 + # source://railties//lib/rails/test_unit/runner.rb#176 def derive_line_filters(patterns); end - # source://railties//lib/rails/test_unit/runner.rb#162 + # source://railties//lib/rails/test_unit/runner.rb#166 def derive_named_filter(filter); end end -# source://railties//lib/rails/test_unit/runner.rb#183 +# source://railties//lib/rails/test_unit/runner.rb#187 class Rails::TestUnit::Filter # @return [Filter] a new instance of Filter # - # source://railties//lib/rails/test_unit/runner.rb#184 + # source://railties//lib/rails/test_unit/runner.rb#188 def initialize(runnable, file, line_or_range); end - # source://railties//lib/rails/test_unit/runner.rb#193 + # source://railties//lib/rails/test_unit/runner.rb#197 def ===(method); end private - # source://railties//lib/rails/test_unit/runner.rb#205 + # source://railties//lib/rails/test_unit/runner.rb#209 def definition_for(method); end end # source://railties//lib/rails/test_unit/runner.rb#12 -class Rails::TestUnit::InvalidTestError < ::StandardError +class Rails::TestUnit::InvalidTestError < ::ArgumentError # @return [InvalidTestError] a new instance of InvalidTestError # # source://railties//lib/rails/test_unit/runner.rb#13 def initialize(path, suggestion); end + + # source://railties//lib/rails/test_unit/runner.rb#20 + def backtrace(*args); end end -# source://railties//lib/rails/test_unit/runner.rb#21 +# source://railties//lib/rails/test_unit/runner.rb#25 class Rails::TestUnit::Runner - # source://railties//lib/rails/test_unit/runner.rb#24 + # source://railties//lib/rails/test_unit/runner.rb#28 def filters; end class << self - # source://railties//lib/rails/test_unit/runner.rb#27 + # source://railties//lib/rails/test_unit/runner.rb#31 def attach_before_load_options(opts); end - # source://railties//lib/rails/test_unit/runner.rb#78 + # source://railties//lib/rails/test_unit/runner.rb#82 def compose_filter(runnable, filter); end - # source://railties//lib/rails/test_unit/runner.rb#24 + # source://railties//lib/rails/test_unit/runner.rb#28 def filters; end - # source://railties//lib/rails/test_unit/runner.rb#57 + # source://railties//lib/rails/test_unit/runner.rb#61 def load_tests(argv); end - # source://railties//lib/rails/test_unit/runner.rb#32 + # source://railties//lib/rails/test_unit/runner.rb#36 def parse_options(argv); end - # source://railties//lib/rails/test_unit/runner.rb#51 + # source://railties//lib/rails/test_unit/runner.rb#55 def run(argv = T.unsafe(nil)); end - # source://railties//lib/rails/test_unit/runner.rb#45 + # source://railties//lib/rails/test_unit/runner.rb#49 def run_from_rake(test_command, argv = T.unsafe(nil)); end private - # source://railties//lib/rails/test_unit/runner.rb#113 + # source://railties//lib/rails/test_unit/runner.rb#117 def default_test_exclude_glob; end - # source://railties//lib/rails/test_unit/runner.rb#109 + # source://railties//lib/rails/test_unit/runner.rb#113 def default_test_glob; end - # source://railties//lib/rails/test_unit/runner.rb#89 + # source://railties//lib/rails/test_unit/runner.rb#93 def extract_filters(argv); end - # source://railties//lib/rails/test_unit/runner.rb#125 + # source://railties//lib/rails/test_unit/runner.rb#129 def list_tests(patterns); end - # source://railties//lib/rails/test_unit/runner.rb#132 + # source://railties//lib/rails/test_unit/runner.rb#136 def normalize_declarative_test_filter(filter); end # @return [Boolean] # - # source://railties//lib/rails/test_unit/runner.rb#121 + # source://railties//lib/rails/test_unit/runner.rb#125 def path_argument?(arg); end # @return [Boolean] # - # source://railties//lib/rails/test_unit/runner.rb#117 + # source://railties//lib/rails/test_unit/runner.rb#121 def regexp_filter?(arg); end end end -# source://railties//lib/rails/test_unit/runner.rb#23 +# source://railties//lib/rails/test_unit/runner.rb#27 Rails::TestUnit::Runner::PATH_ARGUMENT_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://railties//lib/rails/test_unit/runner.rb#22 +# source://railties//lib/rails/test_unit/runner.rb#26 Rails::TestUnit::Runner::TEST_FOLDERS = T.let(T.unsafe(nil), Array) # Parse a test file to extract the line ranges of all tests in both @@ -4149,34 +4150,34 @@ class Rails::WelcomeController < ::Rails::ApplicationController private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__layout; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__layout=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__layout_conditions; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__layout_conditions=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end diff --git a/sorbet/rbi/gems/rubocop-factory_bot@2.26.1.rbi b/sorbet/rbi/gems/rubocop-factory_bot@2.27.0.rbi similarity index 98% rename from sorbet/rbi/gems/rubocop-factory_bot@2.26.1.rbi rename to sorbet/rbi/gems/rubocop-factory_bot@2.27.0.rbi index beb850ff..47b9e76c 100644 --- a/sorbet/rbi/gems/rubocop-factory_bot@2.26.1.rbi +++ b/sorbet/rbi/gems/rubocop-factory_bot@2.27.0.rbi @@ -921,6 +921,26 @@ end # source://rubocop-factory_bot//lib/rubocop/factory_bot/language.rb#9 RuboCop::FactoryBot::Language::METHODS = T.let(T.unsafe(nil), Set) +# A plugin that integrates RuboCop FactoryBot with RuboCop's plugin system. +# +# source://rubocop-factory_bot//lib/rubocop/factory_bot/plugin.rb#8 +class RuboCop::FactoryBot::Plugin < ::LintRoller::Plugin + # :nocov: + # + # source://rubocop-factory_bot//lib/rubocop/factory_bot/plugin.rb#10 + def about; end + + # source://rubocop-factory_bot//lib/rubocop/factory_bot/plugin.rb#24 + def rules(_context); end + + # :nocov: + # + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/factory_bot/plugin.rb#20 + def supported?(context); end +end + # source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#42 RuboCop::FactoryBot::RESERVED_METHODS = T.let(T.unsafe(nil), Array) diff --git a/sorbet/rbi/gems/rubocop-performance@1.23.1.rbi b/sorbet/rbi/gems/rubocop-performance@1.24.0.rbi similarity index 97% rename from sorbet/rbi/gems/rubocop-performance@1.23.1.rbi rename to sorbet/rbi/gems/rubocop-performance@1.24.0.rbi index 54157607..f6f92a62 100644 --- a/sorbet/rbi/gems/rubocop-performance@1.23.1.rbi +++ b/sorbet/rbi/gems/rubocop-performance@1.24.0.rbi @@ -14,31 +14,31 @@ module RuboCop::Cop; end module RuboCop::Cop::Lint; end class RuboCop::Cop::Lint::UnusedMethodArgument < ::RuboCop::Cop::Base - # source://rubocop/1.71.2/lib/rubocop/cop/lint/unused_method_argument.rb#75 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/unused_method_argument.rb#75 def not_implemented?(param0 = T.unsafe(nil)); end private - # source://rubocop/1.71.2/lib/rubocop/cop/lint/unused_method_argument.rb#128 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/unused_method_argument.rb#128 def allowed_exception_class?(node); end - # source://rubocop/1.71.2/lib/rubocop/cop/lint/unused_method_argument.rb#90 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/unused_method_argument.rb#90 def autocorrect(corrector, node); end - # source://rubocop/1.71.2/lib/rubocop/cop/lint/unused_method_argument.rb#94 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/unused_method_argument.rb#94 def check_argument(variable); end - # source://rubocop/1.71.2/lib/rubocop/cop/lint/unused_method_argument.rb#102 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/unused_method_argument.rb#102 def ignored_method?(body); end - # source://rubocop/1.71.2/lib/rubocop/cop/lint/unused_method_argument.rb#107 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/unused_method_argument.rb#107 def message(variable); end class << self - # source://rubocop-performance//lib/rubocop-performance.rb#15 + # source://rubocop-performance//lib/rubocop-performance.rb#12 def autocorrect_incompatible_with; end - # source://rubocop/1.71.2/lib/rubocop/cop/lint/unused_method_argument.rb#84 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/unused_method_argument.rb#84 def joining_forces; end end end @@ -359,61 +359,62 @@ RuboCop::Cop::Performance::Caller::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array class RuboCop::Cop::Performance::CaseWhenSplat < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::CommentsHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#66 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#67 def on_case(case_node); end private - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#83 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#84 def autocorrect(corrector, when_node); end - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#140 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#154 def indent_for(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#100 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#101 def inline_fix_branch(corrector, when_node); end # @return [Boolean] # - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#164 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#178 def needs_reorder?(when_node); end - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#136 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#144 def new_branch_without_then(node, new_condition); end - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#132 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#140 def new_condition_with_then(node, new_condition); end # @return [Boolean] # - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#158 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#172 def non_splat?(condition); end - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#91 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#92 def range(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#107 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#108 def reorder_condition(corrector, when_node); end - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#116 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#117 def reordering_correction(when_node); end - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#95 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#96 def replacement(conditions); end - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#144 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#158 def splat_offenses(when_conditions); end - # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#126 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#134 def when_branch_range(when_node); end end -# source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#64 +# source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#65 RuboCop::Cop::Performance::CaseWhenSplat::ARRAY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#63 +# source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#64 RuboCop::Cop::Performance::CaseWhenSplat::MSG = T.let(T.unsafe(nil), String) # Identifies places where a case-insensitive string comparison @@ -492,17 +493,17 @@ RuboCop::Cop::Performance::Casecmp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#21 class RuboCop::Cop::Performance::ChainArrayAllocation < ::RuboCop::Cop::Base - # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#52 + # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#54 def chain_array_allocation?(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#60 + # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#62 def on_send(node); end private # @return [Boolean] # - # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#73 + # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#75 def enumerable_select_method?(node); end end @@ -518,9 +519,12 @@ RuboCop::Cop::Performance::ChainArrayAllocation::ALWAYS_RETURNS_NEW_ARRAY = T.le # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#43 RuboCop::Cop::Performance::ChainArrayAllocation::HAS_MUTATION_ALTERNATIVE = T.let(T.unsafe(nil), Set) -# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#48 +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#50 RuboCop::Cop::Performance::ChainArrayAllocation::MSG = T.let(T.unsafe(nil), String) +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#48 +RuboCop::Cop::Performance::ChainArrayAllocation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#46 RuboCop::Cop::Performance::ChainArrayAllocation::RETURNS_NEW_ARRAY = T.let(T.unsafe(nil), Set) @@ -566,56 +570,56 @@ RuboCop::Cop::Performance::ChainArrayAllocation::RETURN_NEW_ARRAY_WHEN_ARGS = T. # # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#34 class RuboCop::Cop::Performance::CollectionLiteralInLoop < ::RuboCop::Cop::Base - # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#74 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#76 def enumerable_loop?(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#68 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#70 def kernel_loop?(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#80 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#82 def on_send(node); end private # @return [Boolean] # - # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#90 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#92 def check_literal?(node, method); end # @return [Boolean] # - # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#128 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#130 def enumerable_method?(method_name); end # @return [Boolean] # - # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#110 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#112 def keyword_loop?(type); end - # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#120 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#122 def literal_class(node); end # @return [Boolean] # - # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#106 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#108 def loop?(ancestor, node); end - # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#132 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#134 def min_size; end # @return [Boolean] # - # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#114 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#116 def node_within_enumerable_loop?(node, ancestor); end # @return [Boolean] # - # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#97 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#99 def nonmutable_method_of_array_or_hash?(node, method); end # @return [Boolean] # - # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#102 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#104 def parent_is_loop?(node); end end @@ -643,6 +647,9 @@ RuboCop::Cop::Performance::CollectionLiteralInLoop::NONMUTATING_HASH_METHODS = T # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#38 RuboCop::Cop::Performance::CollectionLiteralInLoop::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Array) +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#68 +RuboCop::Cop::Performance::CollectionLiteralInLoop::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + # Identifies places where `sort { |a, b| a.foo <=> b.foo }` # can be replaced by `sort_by(&:foo)`. # This cop also checks `sort!`, `min`, `max` and `minmax` methods. @@ -3104,32 +3111,32 @@ RuboCop::Cop::Performance::Sum::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) class RuboCop::Cop::Performance::TimesMap < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#44 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#51 def on_block(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#39 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#46 def on_csend(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#44 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#51 def on_numblock(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#39 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#46 def on_send(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#79 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#39 def times_map_call(param0 = T.unsafe(nil)); end private - # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#51 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#58 def check(node); end # @return [Boolean] # - # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#63 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#70 def handleable_receiver?(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#70 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#77 def message(map_or_collect, count); end end @@ -3210,6 +3217,43 @@ RuboCop::Cop::Performance::UriDefaultParser::MSG = T.let(T.unsafe(nil), String) # source://rubocop-performance//lib/rubocop/cop/performance/uri_default_parser.rb#19 RuboCop::Cop::Performance::UriDefaultParser::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Checks for `map { |id| [id] }` and suggests replacing it with `zip`. +# +# @example +# # bad +# [1, 2, 3].map { |id| [id] } +# +# # good +# [1, 2, 3].zip +# +# source://rubocop-performance//lib/rubocop/cop/performance/zip_without_block.rb#20 +class RuboCop::Cop::Performance::ZipWithoutBlock < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/zip_without_block.rb#27 + def map_with_array?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/zip_without_block.rb#34 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/zip_without_block.rb#34 + def on_send(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/zip_without_block.rb#50 + def offense_range(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/zip_without_block.rb#43 + def register_offense(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/zip_without_block.rb#23 +RuboCop::Cop::Performance::ZipWithoutBlock::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/zip_without_block.rb#24 +RuboCop::Cop::Performance::ZipWithoutBlock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + # Common functionality for handling regexp metacharacters. # # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#6 @@ -3280,31 +3324,27 @@ module RuboCop::Cop::SortBlock def sort_range(send, node); end end -# RuboCop Performance project namespace +# RuboCop Performance project namespace. # # source://rubocop-performance//lib/rubocop/performance.rb#5 module RuboCop::Performance; end -# source://rubocop-performance//lib/rubocop/performance.rb#8 -RuboCop::Performance::CONFIG = T.let(T.unsafe(nil), Hash) +# A plugin that integrates RuboCop Performance with RuboCop's plugin system. +# +# source://rubocop-performance//lib/rubocop/performance/plugin.rb#8 +class RuboCop::Performance::Plugin < ::LintRoller::Plugin + # source://rubocop-performance//lib/rubocop/performance/plugin.rb#9 + def about; end -# source://rubocop-performance//lib/rubocop/performance.rb#7 -RuboCop::Performance::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname) + # source://rubocop-performance//lib/rubocop/performance/plugin.rb#22 + def rules(_context); end -# Because RuboCop doesn't yet support plugins, we have to monkey patch in a -# bit of our configuration. -# -# source://rubocop-performance//lib/rubocop/performance/inject.rb#7 -module RuboCop::Performance::Inject - class << self - # source://rubocop-performance//lib/rubocop/performance/inject.rb#8 - def defaults!; end - end + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/performance/plugin.rb#18 + def supported?(context); end end -# source://rubocop-performance//lib/rubocop/performance.rb#6 -RuboCop::Performance::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname) - # This module holds the RuboCop Performance version information. # # source://rubocop-performance//lib/rubocop/performance/version.rb#6 diff --git a/sorbet/rbi/gems/rubocop-thread_safety@0.6.0.rbi b/sorbet/rbi/gems/rubocop-thread_safety@0.7.1.rbi similarity index 91% rename from sorbet/rbi/gems/rubocop-thread_safety@0.6.0.rbi rename to sorbet/rbi/gems/rubocop-thread_safety@0.7.1.rbi index 18bbbd0c..eeaabcd2 100644 --- a/sorbet/rbi/gems/rubocop-thread_safety@0.6.0.rbi +++ b/sorbet/rbi/gems/rubocop-thread_safety@0.7.1.rbi @@ -244,6 +244,8 @@ RuboCop::Cop::ThreadSafety::ClassInstanceVariable::MSG = T.let(T.unsafe(nil), St RuboCop::Cop::ThreadSafety::ClassInstanceVariable::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Avoid using `Dir.chdir` due to its process-wide effect. +# If `AllowCallWithBlock` (disabled by default) option is enabled, +# calling `Dir.chdir` with block will be allowed. # # @example # # bad @@ -251,20 +253,40 @@ RuboCop::Cop::ThreadSafety::ClassInstanceVariable::RESTRICT_ON_SEND = T.let(T.un # # # bad # FileUtils.chdir("/var/run") +# @example AllowCallWithBlock: false (default) +# # good +# Dir.chdir("/var/run") do +# puts Dir.pwd +# end +# @example AllowCallWithBlock: true +# # bad +# Dir.chdir("/var/run") do +# puts Dir.pwd +# end # -# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#14 +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#29 class RuboCop::Cop::ThreadSafety::DirChdir < ::RuboCop::Cop::Base - # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#19 + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#34 def chdir?(param0 = T.unsafe(nil)); end - # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#26 + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#41 + def on_csend(node); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#41 def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#59 + def allow_call_with_block?; end end -# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#15 +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#30 RuboCop::Cop::ThreadSafety::DirChdir::MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#16 +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#31 RuboCop::Cop::ThreadSafety::DirChdir::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks whether some class instance variable isn't a @@ -445,6 +467,9 @@ class RuboCop::Cop::ThreadSafety::NewThread < ::RuboCop::Cop::Base # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/new_thread.rb#18 def new_thread?(param0 = T.unsafe(nil)); end + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/new_thread.rb#22 + def on_csend(node); end + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/new_thread.rb#22 def on_send(node); end end @@ -511,6 +536,9 @@ class RuboCop::Cop::ThreadSafety::RackMiddlewareInstanceVariable < ::RuboCop::Co # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb#68 def on_class(node); end + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb#88 + def on_csend(node); end + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb#88 def on_send(node); end @@ -519,13 +547,13 @@ class RuboCop::Cop::ThreadSafety::RackMiddlewareInstanceVariable < ::RuboCop::Co private - # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb#105 + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb#106 def extract_application_variable_from_contructor_method(constructor_method); end - # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb#111 + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb#112 def extract_safe_variables_from_constructor_method(constructor_method); end - # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb#99 + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb#100 def find_constructor_method(class_node); end end @@ -540,25 +568,25 @@ RuboCop::Cop::ThreadSafety::RackMiddlewareInstanceVariable::RESTRICT_ON_SEND = T # source://rubocop-thread_safety//lib/rubocop/thread_safety.rb#5 module RuboCop::ThreadSafety; end -# source://rubocop-thread_safety//lib/rubocop/thread_safety.rb#8 -RuboCop::ThreadSafety::CONFIG = T.let(T.unsafe(nil), Hash) +# A plugin that integrates RuboCop ThreadSafety with RuboCop's plugin system. +# +# source://rubocop-thread_safety//lib/rubocop/thread_safety/plugin.rb#8 +class RuboCop::ThreadSafety::Plugin < ::LintRoller::Plugin + # :nocov: + # + # source://rubocop-thread_safety//lib/rubocop/thread_safety/plugin.rb#10 + def about; end -# source://rubocop-thread_safety//lib/rubocop/thread_safety.rb#7 -RuboCop::ThreadSafety::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname) + # source://rubocop-thread_safety//lib/rubocop/thread_safety/plugin.rb#24 + def rules(_context); end -# Because RuboCop doesn't yet support plugins, we have to monkey patch in a -# bit of our configuration. -# -# source://rubocop-thread_safety//lib/rubocop/thread_safety/inject.rb#9 -module RuboCop::ThreadSafety::Inject - class << self - # source://rubocop-thread_safety//lib/rubocop/thread_safety/inject.rb#10 - def defaults!; end - end + # :nocov: + # + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/thread_safety/plugin.rb#20 + def supported?(context); end end -# source://rubocop-thread_safety//lib/rubocop/thread_safety.rb#6 -RuboCop::ThreadSafety::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname) - # source://rubocop-thread_safety//lib/rubocop/thread_safety/version.rb#5 RuboCop::ThreadSafety::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/sentry-rails@5.22.4.rbi b/sorbet/rbi/gems/sentry-rails@5.23.0.rbi similarity index 68% rename from sorbet/rbi/gems/sentry-rails@5.22.4.rbi rename to sorbet/rbi/gems/sentry-rails@5.23.0.rbi index d54097ed..3d97c829 100644 --- a/sorbet/rbi/gems/sentry-rails@5.22.4.rbi +++ b/sorbet/rbi/gems/sentry-rails@5.23.0.rbi @@ -8,404 +8,404 @@ # source://sentry-rails//lib/sentry/rails/version.rb#3 module Sentry class << self - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#219 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#227 def add_attachment(**opts); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#320 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#328 def add_breadcrumb(breadcrumb, **options); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#539 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#547 def add_global_event_processor(&block); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#107 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#115 def apply_patches(config); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#75 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#83 def background_worker; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#75 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#83 def background_worker=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#83 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#91 def backpressure_monitor; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#479 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#487 def capture_check_in(slug, status, **options); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#463 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#471 def capture_event(event); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#427 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#435 def capture_exception(exception, **options, &block); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#455 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#463 def capture_message(message, **options, &block); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#357 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#365 def clone_hub_to_current_thread; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#253 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#261 def close; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#159 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#167 def configuration; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#373 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#381 def configure_scope(&block); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#583 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#591 def continue_trace(env, **options); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#302 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#310 def csp_report_uri; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#614 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#622 def dependency_installed?(name); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#521 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#529 def exception_captured?(exc); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#57 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#65 def exception_locals_tp; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#556 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#564 def get_baggage; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#341 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#349 def get_current_client; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#330 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#338 def get_current_hub; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#349 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#357 def get_current_scope; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#310 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#318 def get_main_hub; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#565 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#573 def get_trace_propagation_headers; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#574 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#582 def get_trace_propagation_meta; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#547 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#555 def get_traceparent; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#230 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#238 def init(&block); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#290 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#298 def initialized?; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#123 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#131 def integrations; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#513 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#521 def last_event_id; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#599 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#607 def logger; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#87 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#95 def metrics_aggregator; end - # source://railties/8.0.1/lib/rails/engine.rb#413 + # source://railties/8.0.2/lib/rails/engine.rb#413 def railtie_helpers_paths; end - # source://railties/8.0.1/lib/rails/engine.rb#396 + # source://railties/8.0.2/lib/rails/engine.rb#396 def railtie_namespace; end - # source://railties/8.0.1/lib/rails/engine.rb#417 + # source://railties/8.0.2/lib/rails/engine.rb#417 def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#131 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#139 def register_integration(name, version); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#92 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#100 def register_patch(key, patch = T.unsafe(nil), target = T.unsafe(nil), &block); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#114 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#122 def registered_patches; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#604 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#612 def sdk_meta; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#166 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#174 def send_event(*args); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#79 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#87 def session_flusher; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#212 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#220 def set_context(*args); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#198 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#206 def set_extras(*args); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#191 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#199 def set_tags(*args); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#205 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#213 def set_user(*args); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#487 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#495 def start_transaction(**options); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#591 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#599 def sys_command(command); end - # source://railties/8.0.1/lib/rails/engine.rb#402 + # source://railties/8.0.2/lib/rails/engine.rb#402 def table_name_prefix; end - # source://railties/8.0.1/lib/rails/engine.rb#409 + # source://railties/8.0.2/lib/rails/engine.rb#409 def use_relative_model_naming?; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#609 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#617 def utc_now; end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#505 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#513 def with_child_span(**attributes, &block); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#444 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#452 def with_exception_captured(**options, &block); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#398 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#406 def with_scope(&block); end - # source://sentry-ruby/5.22.4/lib/sentry-ruby.rb#418 + # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#426 def with_session_tracking(&block); end end end # source://sentry-rails//lib/sentry/rails/configuration.rb#10 class Sentry::Configuration - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#404 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#405 def initialize; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#29 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#29 def app_dirs_pattern; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#29 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#29 def app_dirs_pattern=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#36 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#36 def async; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#489 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#490 def async=(value); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#277 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#278 def auto_session_tracking; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#277 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#278 def auto_session_tracking=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#53 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#53 def background_worker_max_queue; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#53 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#53 def background_worker_max_queue=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#46 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#46 def background_worker_threads; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#46 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#46 def background_worker_threads=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#64 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#64 def backtrace_cleanup_callback; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#64 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#64 def backtrace_cleanup_callback=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#73 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#73 def before_breadcrumb; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#530 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#531 def before_breadcrumb=(value); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#87 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#87 def before_send; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#518 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#519 def before_send=(value); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#100 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#100 def before_send_transaction; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#524 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#525 def before_send_transaction=(value); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#112 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#112 def breadcrumbs_logger; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#505 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#506 def breadcrumbs_logger=(logger); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#155 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#155 def capture_exception_frame_locals; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#169 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#169 def capture_exception_frame_locals=(value); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#120 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#120 def context_lines; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#120 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#120 def context_lines=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#245 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#245 def cron; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#623 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#630 def csp_report_uri; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#129 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#129 def debug; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#129 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#129 def debug=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#645 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#652 def detect_release; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#133 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#133 def dsn; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#477 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#478 def dsn=(value); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#283 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#284 def enable_backpressure_handling; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#283 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#284 def enable_backpressure_handling=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#268 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#269 def enable_tracing; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#544 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#545 def enable_tracing=(enable_tracing); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#137 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#137 def enabled_environments; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#137 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#137 def enabled_environments=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#601 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#608 def enabled_in_current_env?; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#307 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#308 def enabled_patches; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#307 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#308 def enabled_patches=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#124 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#124 def environment; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#536 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#537 def environment=(environment); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#658 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#665 def error_messages; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#311 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#312 def errors; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#588 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#595 def exception_class_allowed?(exc); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#141 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#141 def exclude_loggers; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#141 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#141 def exclude_loggers=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#146 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#146 def excluded_exceptions; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#146 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#146 def excluded_exceptions=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#311 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#312 def gem_specs; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#155 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#155 def include_local_variables; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#155 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#155 def include_local_variables=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#150 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#150 def inspect_exception_causes_for_exclusion; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#150 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#150 def inspect_exception_causes_for_exclusion=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#150 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#150 def inspect_exception_causes_for_exclusion?; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#292 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#293 def instrumenter; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#540 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#541 def instrumenter=(instrumenter); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#181 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#181 def linecache; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#181 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#181 def linecache=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#186 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#186 def logger; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#186 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#186 def logger=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#116 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#116 def max_breadcrumbs; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#116 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#116 def max_breadcrumbs=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#249 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#249 def metrics; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#296 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#297 def profiler_class; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#557 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#564 def profiler_class=(profiler_class); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#302 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#303 def profiles_sample_rate; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#553 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#560 def profiles_sample_rate=(profiles_sample_rate); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#616 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#623 def profiling_enabled?; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#191 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#191 def project_root; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#191 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#191 def project_root=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#200 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#200 def propagate_traces; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#200 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#200 def propagate_traces=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#204 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#204 def rack_env_whitelist; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#204 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#204 def rack_env_whitelist=(_arg0); end # Returns the value of attribute rails. @@ -413,171 +413,171 @@ class Sentry::Configuration # source://sentry-rails//lib/sentry/rails/configuration.rb#11 def rails; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#209 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#209 def release; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#483 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#484 def release=(value); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#578 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#585 def sample_allowed?; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#214 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#214 def sample_rate; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#214 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#214 def sample_rate=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#273 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#274 def send_client_reports; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#273 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#274 def send_client_reports=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#227 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#227 def send_default_pii; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#227 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#227 def send_default_pii=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#218 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#218 def send_modules; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#218 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#218 def send_modules=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#568 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#575 def sending_allowed?; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#572 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#579 def sending_to_dsn_allowed?; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#477 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#478 def server=(value); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#237 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#237 def server_name; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#237 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#237 def server_name=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#584 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#591 def session_tracking?; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#231 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#231 def skip_rake_integration; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#231 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#231 def skip_rake_integration=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#163 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#163 def spotlight; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#163 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#163 def spotlight=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#633 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#640 def stacktrace_builder; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#196 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#196 def strip_backtrace_load_path; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#196 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#196 def strip_backtrace_load_path=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#288 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#289 def trace_propagation_targets; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#288 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#289 def trace_propagation_targets=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#253 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#253 def traces_sample_rate; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#549 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#556 def traces_sample_rate=(traces_sample_rate); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#263 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#263 def traces_sampler; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#263 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#263 def traces_sampler=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#610 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#617 def tracing_enabled?; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#241 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#241 def transport; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#234 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#234 def trusted_proxies; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#234 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#234 def trusted_proxies=(_arg0); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#605 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#612 def valid_sample_rate?(sample_rate); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#459 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#460 def validate; end private - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#700 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#707 def capture_in_environment?; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#716 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#723 def environment_from_env; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#671 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#678 def excluded_exception?(incoming_exception); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#677 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#684 def excluded_exception_classes; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#681 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#688 def get_exception_class(x); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#665 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#672 def init_dsn(dsn_string); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#685 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#692 def matches_exception?(excluded_exception_class, incoming_exception); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#740 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#747 def processor_count; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#734 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#741 def run_post_initialization_callbacks; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#730 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#737 def running_on_heroku?; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#693 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#700 def safe_const_get(x); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#720 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#727 def server_name_from_env; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#707 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#714 def valid?; end class << self - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#360 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#361 def add_post_initialization_callback(&block); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#355 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#356 def post_initialization_callbacks; end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#368 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#369 def validate(attribute, optional: T.unsafe(nil), type: T.unsafe(nil)); end - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#364 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#365 def validations; end private - # source://sentry-ruby/5.22.4/lib/sentry/configuration.rb#378 + # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#379 def build_validation_proc(optional, type); end end end @@ -587,10 +587,10 @@ class Sentry::Engine < ::Rails::Engine class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end end end @@ -930,10 +930,10 @@ class Sentry::Rails::Tracing::ActiveRecordSubscriber < ::Sentry::Rails::Tracing: private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_backtrace_cleaner; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_backtrace_cleaner=(new_value); end end end @@ -1046,16 +1046,16 @@ class Sentry::SendEventJob < ::ActiveJob::Base class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_log_arguments; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_log_arguments=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end From 238244a4b3db0f812bd8705638b38e634a5f1e07 Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Wed, 12 Mar 2025 16:51:02 -0400 Subject: [PATCH 08/41] padawan - updated dependencies --- ...ionpack@8.0.1.rbi => actionpack@8.0.2.rbi} | 1109 ++--- ...ecord@8.0.1.rbi => activerecord@8.0.2.rbi} | 1367 +++--- ...port@8.0.1.rbi => activesupport@8.0.2.rbi} | 432 +- sorbet/rbi/gems/json@2.10.2.rbi | 2 +- sorbet/rbi/gems/rubocop-ast@1.38.1.rbi | 180 +- ...ls@2.29.1.rbi => rubocop-rails@2.30.3.rbi} | 291 +- ...spec@3.4.0.rbi => rubocop-rspec@3.5.0.rbi} | 221 +- ...{rubocop@1.71.2.rbi => rubocop@1.73.2.rbi} | 2651 ++++++++--- ...ruby@5.22.4.rbi => sentry-ruby@5.23.0.rbi} | 448 +- .../gems/{spoom@1.5.4.rbi => spoom@1.6.0.rbi} | 4222 +++++++++++++---- ...6.0.rbi => standard-performance@1.7.0.rbi} | 0 ...tandard@1.45.0.rbi => standard@1.47.0.rbi} | 123 +- ...o-ruby@7.4.5.rbi => twilio-ruby@7.5.0.rbi} | 165 +- 13 files changed, 7391 insertions(+), 3820 deletions(-) rename sorbet/rbi/gems/{actionpack@8.0.1.rbi => actionpack@8.0.2.rbi} (97%) rename sorbet/rbi/gems/{activerecord@8.0.1.rbi => activerecord@8.0.2.rbi} (98%) rename sorbet/rbi/gems/{activesupport@8.0.1.rbi => activesupport@8.0.2.rbi} (98%) rename sorbet/rbi/gems/{rubocop-rails@2.29.1.rbi => rubocop-rails@2.30.3.rbi} (98%) rename sorbet/rbi/gems/{rubocop-rspec@3.4.0.rbi => rubocop-rspec@3.5.0.rbi} (98%) rename sorbet/rbi/gems/{rubocop@1.71.2.rbi => rubocop@1.73.2.rbi} (96%) rename sorbet/rbi/gems/{sentry-ruby@5.22.4.rbi => sentry-ruby@5.23.0.rbi} (94%) rename sorbet/rbi/gems/{spoom@1.5.4.rbi => spoom@1.6.0.rbi} (54%) rename sorbet/rbi/gems/{standard-performance@1.6.0.rbi => standard-performance@1.7.0.rbi} (100%) rename sorbet/rbi/gems/{standard@1.45.0.rbi => standard@1.47.0.rbi} (87%) rename sorbet/rbi/gems/{twilio-ruby@7.4.5.rbi => twilio-ruby@7.5.0.rbi} (99%) diff --git a/sorbet/rbi/gems/actionpack@8.0.1.rbi b/sorbet/rbi/gems/actionpack@8.0.2.rbi similarity index 97% rename from sorbet/rbi/gems/actionpack@8.0.1.rbi rename to sorbet/rbi/gems/actionpack@8.0.2.rbi index 03341fe2..8ec78f95 100644 --- a/sorbet/rbi/gems/actionpack@8.0.1.rbi +++ b/sorbet/rbi/gems/actionpack@8.0.2.rbi @@ -68,10 +68,10 @@ class AbstractController::Base # Returns the name of the action this controller is processing. # - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def action_name; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def action_name=(_arg0); end # Returns true if a method for the action is available and can be dispatched, @@ -97,10 +97,10 @@ class AbstractController::Base # Returns the formats that can be processed by the controller. # - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def formats; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def formats=(_arg0); end # source://actionpack//lib/abstract_controller/base.rb#204 @@ -128,10 +128,10 @@ class AbstractController::Base # Returns the body of the HTTP response sent by the controller. # - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def response_body; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def response_body=(_arg0); end # Actually call the method associated with the action. Override this method if @@ -1274,10 +1274,10 @@ class ActionController::API < ::ActionController::Metal extend ::ActionController::Instrumentation::ClassMethods extend ::ActionController::ParamsWrapper::ClassMethods - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _process_action_callbacks; end # source://actionpack//lib/action_controller/metal/renderers.rb#31 @@ -1289,7 +1289,7 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/renderers.rb#31 def _renderers?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_process_action_callbacks(&block); end # source://actionpack//lib/abstract_controller/caching.rb#44 @@ -1310,10 +1310,10 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 def _wrapper_options?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_static_extension=(value); end # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 @@ -1325,10 +1325,10 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 def default_url_options?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 @@ -1349,16 +1349,16 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def logger=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def perform_caching=(value); end # source://actionpack//lib/abstract_controller/callbacks.rb#36 @@ -1373,26 +1373,26 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/redirecting.rb#17 def raise_on_open_redirects=(val); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _process_action_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _process_action_callbacks=(value); end # source://actionpack//lib/action_controller/metal/renderers.rb#31 @@ -1422,10 +1422,10 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 def _wrapper_options?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_static_extension=(value); end # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 @@ -1437,10 +1437,10 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 def default_url_options?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 @@ -1461,16 +1461,16 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 def fragment_cache_keys?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def logger=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def perform_caching=(value); end # source://actionpack//lib/abstract_controller/callbacks.rb#36 @@ -1485,13 +1485,13 @@ class ActionController::API < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/redirecting.rb#17 def raise_on_open_redirects=(val); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # Shortcut helper that returns all the ActionController::API modules except the @@ -1512,58 +1512,58 @@ class ActionController::API < ::ActionController::Metal private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__renderers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__renderers=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__view_cache_dependencies; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__view_cache_dependencies=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__wrapper_options; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__wrapper_options=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_url_options; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_url_options=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_etaggers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_etaggers=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_fragment_cache_keys; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_fragment_cache_keys=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -2009,7 +2009,7 @@ class ActionController::Base < ::ActionController::Metal extend ::ActionController::ParamsWrapper::ClassMethods extend ::InertiaRails::Controller::ClassMethods - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end # source://actionpack//lib/abstract_controller/helpers.rb#13 @@ -2021,13 +2021,13 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/abstract_controller/helpers.rb#13 def _helper_methods?; end - # source://actionview/8.0.1/lib/action_view/layouts.rb#212 + # source://actionview/8.0.2/lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionview/8.0.1/lib/action_view/layouts.rb#212 + # source://actionview/8.0.2/lib/action_view/layouts.rb#212 def _layout_conditions?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _process_action_callbacks; end # source://actionpack//lib/action_controller/metal/renderers.rb#31 @@ -2039,7 +2039,7 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/renderers.rb#31 def _renderers?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_process_action_callbacks(&block); end # source://actionpack//lib/abstract_controller/caching.rb#44 @@ -2063,40 +2063,40 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/flash.rb#38 def alert; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def allow_forgery_protection; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def allow_forgery_protection=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def assets_dir=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def csrf_token_storage_strategy; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def csrf_token_storage_strategy=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_static_extension=(value); end # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 @@ -2108,10 +2108,10 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 def default_url_options?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#31 @@ -2135,16 +2135,16 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/flash.rb#12 def flash(*_arg0, **_arg1, &_arg2); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def forgery_protection_origin_check; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def forgery_protection_origin_check=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def forgery_protection_strategy; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def forgery_protection_strategy=(value); end # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 @@ -2174,37 +2174,37 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/helpers.rb#71 def include_all_helpers?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def log_warning_on_csrf_failure; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def log_warning_on_csrf_failure=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def logger=(value); end # source://actionpack//lib/action_controller/metal/flash.rb#38 def notice; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def per_form_csrf_tokens; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def per_form_csrf_tokens=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def perform_caching=(value); end # source://actionpack//lib/abstract_controller/callbacks.rb#36 @@ -2219,46 +2219,46 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/redirecting.rb#17 def raise_on_open_redirects=(val); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def request_forgery_protection_token; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def request_forgery_protection_token=(value); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end private - # source://actionview/8.0.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats); end + # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + def _layout(lookup_context, formats, keys); end # source://actionpack//lib/action_controller/base.rb#324 def _protected_ivars; end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end # source://actionpack//lib/action_controller/form_builder.rb#35 @@ -2291,28 +2291,28 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/abstract_controller/helpers.rb#17 def _helpers; end - # source://actionview/8.0.1/lib/action_view/layouts.rb#211 + # source://actionview/8.0.2/lib/action_view/layouts.rb#211 def _layout; end - # source://actionview/8.0.1/lib/action_view/layouts.rb#211 + # source://actionview/8.0.2/lib/action_view/layouts.rb#211 def _layout=(value); end - # source://actionview/8.0.1/lib/action_view/layouts.rb#211 + # source://actionview/8.0.2/lib/action_view/layouts.rb#211 def _layout?; end - # source://actionview/8.0.1/lib/action_view/layouts.rb#212 + # source://actionview/8.0.2/lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionview/8.0.1/lib/action_view/layouts.rb#212 + # source://actionview/8.0.2/lib/action_view/layouts.rb#212 def _layout_conditions=(value); end - # source://actionview/8.0.1/lib/action_view/layouts.rb#212 + # source://actionview/8.0.2/lib/action_view/layouts.rb#212 def _layout_conditions?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _process_action_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _process_action_callbacks=(value); end # source://actionpack//lib/action_controller/metal/renderers.rb#31 @@ -2342,40 +2342,40 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 def _wrapper_options?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def allow_forgery_protection; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def allow_forgery_protection=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def assets_dir=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def csrf_token_storage_strategy; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def csrf_token_storage_strategy=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def default_static_extension=(value); end # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 @@ -2387,10 +2387,10 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 def default_url_options?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#31 @@ -2411,16 +2411,16 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 def etaggers?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def forgery_protection_origin_check; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def forgery_protection_origin_check=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def forgery_protection_strategy; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def forgery_protection_strategy=(value); end # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 @@ -2450,34 +2450,34 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/helpers.rb#71 def include_all_helpers?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def log_warning_on_csrf_failure; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def log_warning_on_csrf_failure=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def logger=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def per_form_csrf_tokens; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def per_form_csrf_tokens=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def perform_caching=(value); end # source://actionpack//lib/abstract_controller/callbacks.rb#36 @@ -2492,31 +2492,31 @@ class ActionController::Base < ::ActionController::Metal # source://actionpack//lib/action_controller/metal/redirecting.rb#17 def raise_on_open_redirects=(val); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def request_forgery_protection_token; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def request_forgery_protection_token=(value); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/8.0.1/lib/active_support/rescuable.rb#15 + # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#115 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/8.0.1/lib/active_support/configurable.rb#116 + # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end # Shortcut helper that returns all the modules included in @@ -2537,106 +2537,106 @@ class ActionController::Base < ::ActionController::Metal private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__default_form_builder; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__default_form_builder=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__flash_types; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__flash_types=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__helper_methods; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__helper_methods=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__layout; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__layout=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__layout_conditions; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__layout_conditions=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__renderers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__renderers=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__view_cache_dependencies; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__view_cache_dependencies=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__wrapper_options; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__wrapper_options=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_url_options; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_url_options=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_etag_with_template_digest; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_etag_with_template_digest=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_etaggers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_etaggers=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_fragment_cache_keys; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_fragment_cache_keys=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_helpers_path; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_helpers_path=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_include_all_helpers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_include_all_helpers=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -4378,13 +4378,16 @@ module ActionController::Live mixes_in_class_methods ::ActionController::Live::ClassMethods + # source://actionpack//lib/action_controller/test_case.rb#37 + def clean_up_thread_locals(*args); end + # source://actionpack//lib/action_controller/test_case.rb#28 def new_controller_thread; end # source://actionpack//lib/action_controller/metal/live.rb#276 def process(name); end - # source://actionpack//lib/action_controller/metal/live.rb#326 + # source://actionpack//lib/action_controller/metal/live.rb#325 def response_body=(body); end # Sends a stream to the browser, which is helpful when you're generating exports @@ -4413,14 +4416,21 @@ module ActionController::Live # end # end # - # source://actionpack//lib/action_controller/metal/live.rb#356 + # source://actionpack//lib/action_controller/metal/live.rb#355 def send_stream(filename:, disposition: T.unsafe(nil), type: T.unsafe(nil)); end private - # source://actionpack//lib/action_controller/metal/live.rb#390 + # source://actionpack//lib/action_controller/metal/live.rb#394 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#386 + 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 @@ -4430,11 +4440,11 @@ module ActionController::Live # 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#378 + # source://actionpack//lib/action_controller/metal/live.rb#377 def original_new_controller_thread; end class << self - # source://actionpack//lib/action_controller/metal/live.rb#386 + # source://actionpack//lib/action_controller/metal/live.rb#390 def live_thread_pool_executor; end end end @@ -4613,21 +4623,21 @@ end # source://actionpack//lib/action_controller/metal/live.rb#113 ActionController::Live::SSE::PERMITTED_OPTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/test_case.rb#176 +# source://actionpack//lib/action_controller/test_case.rb#184 class ActionController::LiveTestResponse < ::ActionController::Live::Response # Was there a server-side error? # - # source://rack/3.1.10/lib/rack/response.rb#187 + # source://rack/3.1.12/lib/rack/response.rb#187 def error?; end # Was the URL not found? # - # source://rack/3.1.10/lib/rack/response.rb#197 + # source://rack/3.1.12/lib/rack/response.rb#197 def missing?; end # Was the response successful? # - # source://rack/3.1.10/lib/rack/response.rb#184 + # source://rack/3.1.12/lib/rack/response.rb#184 def success?; end end @@ -4672,10 +4682,10 @@ class ActionController::LogSubscriber < ::ActiveSupport::LogSubscriber class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_log_levels; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_log_levels=(new_value); end end end @@ -4835,10 +4845,10 @@ class ActionController::Metal < ::AbstractController::Base # # The ActionDispatch::Request instance for the current request. # - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def request; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def request=(_arg0); end # source://actionpack//lib/action_controller/metal.rb#284 @@ -4848,7 +4858,7 @@ class ActionController::Metal < ::AbstractController::Base # # The ActionDispatch::Response instance for the current response. # - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attr_internal.rb#43 def response; end # Assign the response and mark it as committed. No further processing will @@ -4957,10 +4967,10 @@ class ActionController::Metal < ::AbstractController::Base private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end # @private @@ -5817,7 +5827,7 @@ class ActionController::Parameters # # params = ActionController::Parameters.new(tags: ["rails", "parameters"]) # permitted = params.expect(tags: []) - # permitted.permitted? # => true + # permitted # => ["rails", "parameters"] # permitted.is_a?(Array) # => true # permitted.size # => 2 # @@ -6520,10 +6530,10 @@ class ActionController::Parameters # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1261 def each_array_element(object, filter, &block); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1352 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1349 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#1437 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1434 def initialize_copy(source); end # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1150 @@ -6531,33 +6541,33 @@ class ActionController::Parameters # @return [Boolean] # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1346 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1343 def non_scalar?(value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1420 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1417 def permit_any_in_array(array); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1403 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1400 def permit_any_in_parameters(params); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1382 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1379 def permit_array_of_hashes(value, filter, on_unpermitted:, explicit_arrays:); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1378 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1375 def permit_array_of_scalars(value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1388 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1385 def permit_hash(value, filter, on_unpermitted:, explicit_arrays:); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1398 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1395 def permit_hash_or_array(value, filter, on_unpermitted:, explicit_arrays:); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1364 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1361 def permit_value(value, filter, on_unpermitted:, explicit_arrays:); end # @return [Boolean] # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1317 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1314 def permitted_scalar?(value); end # Adds existing keys to the params if their values are scalar. @@ -6571,7 +6581,7 @@ class ActionController::Parameters # # puts params.keys # => ["zipcode"] # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1331 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1328 def permitted_scalar_filter(params, permitted_key); end # @return [Boolean] @@ -6614,14 +6624,12 @@ class ActionController::Parameters end end -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1350 +# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1347 ActionController::Parameters::EMPTY_ARRAY = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1351 +# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1348 ActionController::Parameters::EMPTY_HASH = T.let(T.unsafe(nil), Hash) -# --- Filtering ---------------------------------------------------------- -# # This is a list of permitted scalar types that includes the ones supported in # XML and JSON requests. # @@ -6631,7 +6639,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#1301 +# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1298 ActionController::Parameters::PERMITTED_SCALAR_TYPES = T.let(T.unsafe(nil), Array) # # Action Controller Params Wrapper @@ -6783,14 +6791,14 @@ module ActionController::ParamsWrapper::ClassMethods # # enables the parameter wrapper for XML format # # wrap_parameters :person - # # wraps parameters into +params[:person]+ hash + # # wraps parameters into params[:person] hash # # wrap_parameters Person # # wraps parameters by determining the wrapper key from Person class - # # (+person+, in this case) and the list of attribute names + # # (:person, in this case) and the list of attribute names # # wrap_parameters include: [:username, :title] - # # wraps only +:username+ and +:title+ attributes from parameters. + # # wraps only :username and :title attributes from parameters. # # wrap_parameters false # # disables parameters wrapping for this controller altogether. @@ -7773,13 +7781,13 @@ 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#364 + # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#366 def initialize(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#374 + # source://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#369 + # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#371 def reset_csrf_token(request); end private @@ -7788,46 +7796,46 @@ module ActionController::RequestForgeryProtection # # @return [Boolean] # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#467 + # source://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#548 + # source://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#544 + # source://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#585 + # source://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#663 + # source://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#659 + # source://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#605 + # source://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#479 + # source://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#655 + # source://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#581 + # source://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#399 + # source://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#437 + # source://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 @@ -7835,53 +7843,53 @@ module ActionController::RequestForgeryProtection # # @return [Boolean] # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#443 + # source://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#537 + # source://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#485 + # source://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#448 + # source://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#635 + # source://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#645 + # source://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#574 + # source://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#610 + # source://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#566 + # source://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#474 + # source://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#530 + # source://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#409 + # source://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. @@ -7889,12 +7897,12 @@ module ActionController::RequestForgeryProtection # # @return [Boolean] # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#500 + # source://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#552 + # source://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 @@ -7902,7 +7910,7 @@ module ActionController::RequestForgeryProtection # # @return [Boolean] # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#625 + # source://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: @@ -7914,7 +7922,7 @@ module ActionController::RequestForgeryProtection # # @return [Boolean] # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#461 + # source://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 @@ -7927,17 +7935,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#389 + # source://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#427 + # source://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#593 + # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#595 def xor_byte_strings(s1, s2); end module GeneratedClassMethods @@ -7956,10 +7964,10 @@ module ActionController::RequestForgeryProtection end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#452 +# source://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#417 +# source://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 @@ -8005,6 +8013,7 @@ module ActionController::RequestForgeryProtection::ClassMethods # # # Built-in unverified request handling methods are: + # # * `:exception` - Raises ActionController::InvalidAuthenticityToken # exception. # * `:reset_session` - Resets the session. @@ -8033,6 +8042,7 @@ module ActionController::RequestForgeryProtection::ClassMethods # # # Built-in session token strategies are: + # # * `:session` - Store the CSRF token in the session. Used as default if # `:store` option is not specified. # * `:cookie` - Store the CSRF token in an encrypted cookie. @@ -8058,7 +8068,7 @@ module ActionController::RequestForgeryProtection::ClassMethods # protect_from_forgery store: CustomStore.new # end # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#197 + # source://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: @@ -8067,137 +8077,137 @@ module ActionController::RequestForgeryProtection::ClassMethods # # See `skip_before_action` for allowed options. # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#214 + # source://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#246 + # source://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#219 + # source://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#234 + # source://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#331 +# source://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#332 + # source://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#336 + # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#338 def fetch(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#359 + # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#361 def reset(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#348 + # source://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#578 +# source://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#614 +# source://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#251 +# source://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#304 +# source://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#307 + # source://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#311 + # source://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#305 + # source://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#305 + # source://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#252 +# source://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#253 + # source://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#259 + # source://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#287 +# source://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#288 + # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#290 def write(*_arg0); end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#268 +# source://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#269 + # source://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#276 + # source://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#282 + # source://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#278 + # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#280 def exists?; end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#294 +# source://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#295 + # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#297 def initialize(controller); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#299 + # source://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#317 +# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#319 class ActionController::RequestForgeryProtection::SessionStore - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#318 + # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#320 def fetch(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#326 + # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#328 def reset(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#322 + # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#324 def store(request, csrf_token); end end @@ -8535,19 +8545,19 @@ end # See ActionController::Parameters.require, and # ActionController::Parameters.permit for more information. # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1511 +# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1508 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#1514 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1511 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#1529 + # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1526 def params=(value); end end @@ -8678,7 +8688,7 @@ end # # assert_redirected_to page_url(title: 'foo') # -# source://actionpack//lib/action_controller/test_case.rb#360 +# source://actionpack//lib/action_controller/test_case.rb#368 class ActionController::TestCase < ::ActiveSupport::TestCase include ::ActiveSupport::Testing::ConstantLookup include ::ActionDispatch::TestProcess::FixtureFile @@ -8695,48 +8705,48 @@ class ActionController::TestCase < ::ActiveSupport::TestCase extend ::ActionController::TestCase::Behavior::ClassMethods extend ::ActionDispatch::Assertions::RoutingAssertions::ClassMethods - # source://actionpack//lib/action_controller/test_case.rb#591 + # source://actionpack//lib/action_controller/test_case.rb#599 def _controller_class; end - # source://actionpack//lib/action_controller/test_case.rb#591 + # source://actionpack//lib/action_controller/test_case.rb#599 def _controller_class=(_arg0); end - # source://actionpack//lib/action_controller/test_case.rb#591 + # source://actionpack//lib/action_controller/test_case.rb#599 def _controller_class?; end class << self - # source://actionpack//lib/action_controller/test_case.rb#591 + # source://actionpack//lib/action_controller/test_case.rb#599 def _controller_class; end - # source://actionpack//lib/action_controller/test_case.rb#591 + # source://actionpack//lib/action_controller/test_case.rb#599 def _controller_class=(value); end - # source://actionpack//lib/action_controller/test_case.rb#591 + # source://actionpack//lib/action_controller/test_case.rb#599 def _controller_class?; end - # source://actionpack//lib/action_controller/test_case.rb#361 + # source://actionpack//lib/action_controller/test_case.rb#369 def executor_around_each_request; end - # source://actionpack//lib/action_controller/test_case.rb#361 + # source://actionpack//lib/action_controller/test_case.rb#369 def executor_around_each_request=(_arg0); end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__controller_class; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__controller_class=(new_value); end end end -# source://actionpack//lib/action_controller/test_case.rb#363 +# source://actionpack//lib/action_controller/test_case.rb#371 module ActionController::TestCase::Behavior include ::ActionDispatch::TestProcess::FixtureFile include ::ActionDispatch::TestProcess @@ -8755,19 +8765,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#584 + # source://actionpack//lib/action_controller/test_case.rb#592 def build_response(klass); end - # source://actionpack//lib/action_controller/test_case.rb#544 + # source://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#455 + # source://actionpack//lib/action_controller/test_case.rb#463 def delete(action, **args); end - # source://actionpack//lib/action_controller/test_case.rb#548 + # source://actionpack//lib/action_controller/test_case.rb#556 def generated_path(generated_extras); end # Simulate a GET request with the given parameters. @@ -8794,25 +8804,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#431 + # source://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#461 + # source://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#443 + # source://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#437 + # source://actionpack//lib/action_controller/test_case.rb#445 def post(action, **args); end # Simulate an HTTP request to `action` by specifying request method, parameters @@ -8855,49 +8865,49 @@ module ActionController::TestCase::Behavior # # Note that the request method is not verified. # - # source://actionpack//lib/action_controller/test_case.rb#504 + # source://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#449 + # source://actionpack//lib/action_controller/test_case.rb#457 def put(action, **args); end - # source://actionpack//lib/action_controller/test_case.rb#552 + # source://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#369 + # source://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#369 + # source://actionpack//lib/action_controller/test_case.rb#377 def response; end - # source://actionpack//lib/action_controller/test_case.rb#556 + # source://actionpack//lib/action_controller/test_case.rb#564 def setup_controller_request_and_response; end private - # source://actionpack//lib/action_controller/test_case.rb#677 + # source://actionpack//lib/action_controller/test_case.rb#685 def check_required_ivars; end - # source://actionpack//lib/action_controller/test_case.rb#673 + # source://actionpack//lib/action_controller/test_case.rb#681 def document_root_element; end - # source://actionpack//lib/action_controller/test_case.rb#627 + # source://actionpack//lib/action_controller/test_case.rb#635 def process_controller_response(action, cookies, xhr); end - # source://actionpack//lib/action_controller/test_case.rb#663 + # source://actionpack//lib/action_controller/test_case.rb#671 def scrub_env!(env); end - # source://actionpack//lib/action_controller/test_case.rb#597 + # source://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#619 + # source://actionpack//lib/action_controller/test_case.rb#627 def wrap_execution(&block); end module GeneratedClassMethods @@ -8913,15 +8923,15 @@ module ActionController::TestCase::Behavior end end -# source://actionpack//lib/action_controller/test_case.rb#371 +# source://actionpack//lib/action_controller/test_case.rb#379 module ActionController::TestCase::Behavior::ClassMethods - # source://actionpack//lib/action_controller/test_case.rb#393 + # source://actionpack//lib/action_controller/test_case.rb#401 def controller_class; end - # source://actionpack//lib/action_controller/test_case.rb#389 + # source://actionpack//lib/action_controller/test_case.rb#397 def controller_class=(new_class); end - # source://actionpack//lib/action_controller/test_case.rb#401 + # source://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 @@ -8931,105 +8941,105 @@ module ActionController::TestCase::Behavior::ClassMethods # tests :widget # tests 'widget' # - # source://actionpack//lib/action_controller/test_case.rb#378 + # source://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#38 +# source://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#61 + # source://actionpack//lib/action_controller/test_case.rb#69 def initialize(env, session, controller_class); end - # source://actionpack//lib/action_controller/test_case.rb#80 + # source://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#76 + # source://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#46 + # source://actionpack//lib/action_controller/test_case.rb#54 def controller_class; end - # source://actionpack//lib/action_controller/test_case.rb#72 + # source://actionpack//lib/action_controller/test_case.rb#80 def query_string=(string); end private - # source://actionpack//lib/action_controller/test_case.rb#171 + # source://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#49 + # source://actionpack//lib/action_controller/test_case.rb#57 def create(controller_class); end - # source://actionpack//lib/action_controller/test_case.rb#42 + # source://actionpack//lib/action_controller/test_case.rb#50 def new_session; end private - # source://actionpack//lib/action_controller/test_case.rb#56 + # source://actionpack//lib/action_controller/test_case.rb#64 def default_env; end end end -# source://actionpack//lib/action_controller/test_case.rb#39 +# source://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#143 +# source://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 # -# source://actionpack//lib/action_controller/test_case.rb#189 +# source://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#192 + # source://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#212 + # source://actionpack//lib/action_controller/test_case.rb#220 def destroy; end - # source://actionpack//lib/action_controller/test_case.rb#216 + # source://actionpack//lib/action_controller/test_case.rb#224 def dig(*keys); end # @return [Boolean] # - # source://actionpack//lib/action_controller/test_case.rb#225 + # source://actionpack//lib/action_controller/test_case.rb#233 def enabled?; end # @return [Boolean] # - # source://actionpack//lib/action_controller/test_case.rb#200 + # source://actionpack//lib/action_controller/test_case.rb#208 def exists?; end - # source://actionpack//lib/action_controller/test_case.rb#221 + # source://actionpack//lib/action_controller/test_case.rb#229 def fetch(key, *args, &block); end - # source://actionpack//lib/action_controller/test_case.rb#229 + # source://actionpack//lib/action_controller/test_case.rb#237 def id_was; end - # source://actionpack//lib/action_controller/test_case.rb#204 + # source://actionpack//lib/action_controller/test_case.rb#212 def keys; end - # source://actionpack//lib/action_controller/test_case.rb#208 + # source://actionpack//lib/action_controller/test_case.rb#216 def values; end private - # source://actionpack//lib/action_controller/test_case.rb#234 + # source://actionpack//lib/action_controller/test_case.rb#242 def load!; end end -# source://actionpack//lib/action_controller/test_case.rb#190 +# source://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 @@ -9368,7 +9378,7 @@ ActionDispatch::Assertions::ResponseAssertions::RESPONSE_PREDICATES = T.let(T.un # 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#14 +# source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#15 module ActionDispatch::Assertions::RoutingAssertions extend ::ActiveSupport::Concern @@ -9394,7 +9404,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#204 + # source://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 @@ -9434,7 +9444,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#164 + # source://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 @@ -9460,15 +9470,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#248 + # source://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#261 + # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#265 def method_missing(selector, *_arg1, **_arg2, &_arg3); end - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#103 + # source://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 @@ -9484,29 +9494,29 @@ module ActionDispatch::Assertions::RoutingAssertions # assert_equal "/users", users_path # end # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#121 + # source://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#270 + # source://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#336 + # source://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#302 + # source://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#294 + # source://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#76 +# source://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. @@ -9520,33 +9530,33 @@ module ActionDispatch::Assertions::RoutingAssertions::ClassMethods # end # end # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#89 + # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#93 def with_routing(&block); end end -# source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#17 +# source://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#37 + # source://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#46 + # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#50 def create_routes; end - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#66 - def reset_routes(old_routes, old_integration_session); end + # source://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#20 +# source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#21 module ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting::ClassMethods - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#21 + # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#22 def with_routing(&block); end end @@ -9584,29 +9594,29 @@ class ActionDispatch::Callbacks # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#24 def initialize(app); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _call_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_call_callbacks(&block); end # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#28 def call(env); end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _call_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _call_callbacks=(value); end # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#19 @@ -9617,10 +9627,10 @@ class ActionDispatch::Callbacks private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end end end @@ -12636,10 +12646,10 @@ class ActionDispatch::Integration::Session private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_url_options; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_url_options=(new_value); end end end @@ -12745,7 +12755,7 @@ ActionDispatch::Integration::Session::DEFAULT_HOST = T.let(T.unsafe(nil), String # https!(false) # get "/articles/all" # assert_response :success -# assert_select 'h1', 'Articles' +# assert_dom 'h1', 'Articles' # end # end # @@ -12784,7 +12794,7 @@ ActionDispatch::Integration::Session::DEFAULT_HOST = T.let(T.unsafe(nil), String # def browses_site # get "/products/all" # assert_response :success -# assert_select 'h1', 'Products' +# assert_dom 'h1', 'Products' # end # end # @@ -13053,10 +13063,10 @@ class ActionDispatch::Journey::Formatter # source://actionpack//lib/action_dispatch/journey/formatter.rb#15 def initialize(routes); end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#105 + # source://actionpack//lib/action_dispatch/journey/formatter.rb#110 def clear; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#109 + # source://actionpack//lib/action_dispatch/journey/formatter.rb#114 def eager_load!; end # source://actionpack//lib/action_dispatch/journey/formatter.rb#61 @@ -13069,30 +13079,30 @@ class ActionDispatch::Journey::Formatter private - # source://actionpack//lib/action_dispatch/journey/formatter.rb#209 + # source://actionpack//lib/action_dispatch/journey/formatter.rb#214 def build_cache; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#220 + # source://actionpack//lib/action_dispatch/journey/formatter.rb#225 def cache; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#115 + # source://actionpack//lib/action_dispatch/journey/formatter.rb#120 def extract_parameterized_parts(route, options, recall); end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#142 + # source://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#181 + # source://actionpack//lib/action_dispatch/journey/formatter.rb#186 def missing_keys(route, parts); end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#138 + # source://actionpack//lib/action_dispatch/journey/formatter.rb#143 def named_routes; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#164 + # source://actionpack//lib/action_dispatch/journey/formatter.rb#169 def non_recursive(cache, options); end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#201 + # source://actionpack//lib/action_dispatch/journey/formatter.rb#206 def possibles(cache, options, depth = T.unsafe(nil)); end end @@ -14543,10 +14553,10 @@ class ActionDispatch::LogSubscriber < ::ActiveSupport::LogSubscriber class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_log_levels; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_log_levels=(new_value); end end end @@ -15235,12 +15245,12 @@ class ActionDispatch::Request # Override Rack's GET method to support indifferent access. # - # source://actionpack//lib/action_dispatch/http/request.rb#394 + # source://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#407 + # source://actionpack//lib/action_dispatch/http/request.rb#408 def POST; end # source://actionpack//lib/action_dispatch/http/request.rb#52 @@ -15261,16 +15271,16 @@ class ActionDispatch::Request # 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#459 + # source://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#356 + # source://actionpack//lib/action_dispatch/http/request.rb#357 def body; end - # source://actionpack//lib/action_dispatch/http/request.rb#376 + # source://actionpack//lib/action_dispatch/http/request.rb#377 def body_stream; end # source://actionpack//lib/action_dispatch/http/request.rb#52 @@ -15282,7 +15292,7 @@ class ActionDispatch::Request # source://actionpack//lib/action_dispatch/http/request.rb#79 def commit_cookie_jar!; end - # source://actionpack//lib/action_dispatch/http/request.rb#491 + # source://actionpack//lib/action_dispatch/http/request.rb#492 def commit_csrf_token; end # source://actionpack//lib/action_dispatch/middleware/flash.rb#71 @@ -15290,7 +15300,7 @@ class ActionDispatch::Request # Returns the content length of the request as an integer. # - # source://actionpack//lib/action_dispatch/http/request.rb#291 + # source://actionpack//lib/action_dispatch/http/request.rb#292 def content_length; end # source://actionpack//lib/action_dispatch/http/request.rb#88 @@ -15321,7 +15331,7 @@ class ActionDispatch::Request # # @return [Boolean] # - # source://actionpack//lib/action_dispatch/http/request.rb#372 + # source://actionpack//lib/action_dispatch/http/request.rb#373 def form_data?; end # source://actionpack//lib/action_dispatch/http/request.rb#52 @@ -15335,7 +15345,7 @@ class ActionDispatch::Request # # get "/articles?page=2" # request.fullpath # => "/articles?page=2" # - # source://actionpack//lib/action_dispatch/http/request.rb#270 + # source://actionpack//lib/action_dispatch/http/request.rb#271 def fullpath; end # source://actionpack//lib/action_dispatch/http/request.rb#52 @@ -15357,12 +15367,12 @@ class ActionDispatch::Request # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#20 def ignore_accept_header=(val); end - # source://actionpack//lib/action_dispatch/http/request.rb#483 + # source://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#305 + # source://actionpack//lib/action_dispatch/http/request.rb#306 def ip; end # Returns true if the request has a header matching the given key parameter. @@ -15378,10 +15388,10 @@ class ActionDispatch::Request # # @return [Boolean] # - # source://actionpack//lib/action_dispatch/http/request.rb#467 + # source://actionpack//lib/action_dispatch/http/request.rb#468 def local?; end - # source://actionpack//lib/action_dispatch/http/request.rb#476 + # source://actionpack//lib/action_dispatch/http/request.rb#477 def logger; end # The `String` MIME type of the request. @@ -15389,7 +15399,7 @@ class ActionDispatch::Request # # get "/articles" # request.media_type # => "application/x-www-form-urlencoded" # - # source://actionpack//lib/action_dispatch/http/request.rb#286 + # source://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 @@ -15420,7 +15430,7 @@ class ActionDispatch::Request # # get '/foo?bar' # request.original_fullpath # => '/foo?bar' # - # source://actionpack//lib/action_dispatch/http/request.rb#259 + # source://actionpack//lib/action_dispatch/http/request.rb#260 def original_fullpath; end # source://actionpack//lib/action_dispatch/http/request.rb#52 @@ -15431,7 +15441,7 @@ 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#278 + # source://actionpack//lib/action_dispatch/http/request.rb#279 def original_url; end # source://actionpack//lib/action_dispatch/http/request.rb#52 @@ -15442,7 +15452,7 @@ class ActionDispatch::Request # Override Rack's GET method to support indifferent access. # - # source://actionpack//lib/action_dispatch/http/request.rb#394 + # source://actionpack//lib/action_dispatch/http/request.rb#395 def query_parameters; end # Returns the value of attribute rack_request. @@ -15453,10 +15463,10 @@ class ActionDispatch::Request # 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#347 + # source://actionpack//lib/action_dispatch/http/request.rb#348 def raw_post; end - # source://rack/3.1.10/lib/rack/request.rb#197 + # source://rack/3.1.12/lib/rack/request.rb#197 def raw_request_method; end # source://actionpack//lib/action_dispatch/http/request.rb#52 @@ -15471,10 +15481,10 @@ class ActionDispatch::Request # Returns the IP address of client as a `String`, usually set by the RemoteIp # middleware. # - # source://actionpack//lib/action_dispatch/http/request.rb#311 + # source://actionpack//lib/action_dispatch/http/request.rb#312 def remote_ip; end - # source://actionpack//lib/action_dispatch/http/request.rb#315 + # source://actionpack//lib/action_dispatch/http/request.rb#316 def remote_ip=(remote_ip); end # source://actionpack//lib/action_dispatch/http/request.rb#52 @@ -15489,10 +15499,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#330 + # source://actionpack//lib/action_dispatch/http/request.rb#331 def request_id; end - # source://actionpack//lib/action_dispatch/http/request.rb#334 + # source://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 @@ -15514,16 +15524,16 @@ class ActionDispatch::Request # Override Rack's POST method to support indifferent access. # - # source://actionpack//lib/action_dispatch/http/request.rb#407 + # source://actionpack//lib/action_dispatch/http/request.rb#408 def request_parameters; end - # source://actionpack//lib/action_dispatch/http/request.rb#471 + # source://actionpack//lib/action_dispatch/http/request.rb#472 def request_parameters=(params); end - # source://actionpack//lib/action_dispatch/http/request.rb#436 + # source://actionpack//lib/action_dispatch/http/request.rb#437 def request_parameters_list; end - # source://actionpack//lib/action_dispatch/http/request.rb#487 + # source://actionpack//lib/action_dispatch/http/request.rb#488 def reset_csrf_token; end # source://actionpack//lib/action_dispatch/middleware/flash.rb#84 @@ -15556,10 +15566,11 @@ class ActionDispatch::Request # # send_early_hints("link" => "; rel=preload; as=style,; rel=preload") # - # If you are using `javascript_include_tag` or `stylesheet_link_tag` the Early - # Hints headers are included by default if supported. + # If you are using {javascript_include_tag}[rdoc-ref:ActionView::Helpers::AssetTagHelper#javascript_include_tag] + # 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#248 + # source://actionpack//lib/action_dispatch/http/request.rb#249 def send_early_hints(links); end # source://actionpack//lib/action_dispatch/http/request.rb#52 @@ -15570,13 +15581,13 @@ class ActionDispatch::Request # Returns the lowercase name of the HTTP server software. # - # source://actionpack//lib/action_dispatch/http/request.rb#341 + # source://actionpack//lib/action_dispatch/http/request.rb#342 def server_software; end - # source://actionpack//lib/action_dispatch/http/request.rb#385 + # source://actionpack//lib/action_dispatch/http/request.rb#386 def session=(session); end - # source://actionpack//lib/action_dispatch/http/request.rb#389 + # source://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` @@ -15588,7 +15599,7 @@ 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#330 + # source://actionpack//lib/action_dispatch/http/request.rb#331 def uuid; end # source://actionpack//lib/action_dispatch/http/request.rb#52 @@ -15612,7 +15623,7 @@ class ActionDispatch::Request # # @return [Boolean] # - # source://actionpack//lib/action_dispatch/http/request.rb#299 + # source://actionpack//lib/action_dispatch/http/request.rb#300 def xhr?; end # Returns true if the `X-Requested-With` header contains "XMLHttpRequest" @@ -15621,24 +15632,24 @@ class ActionDispatch::Request # # @return [Boolean] # - # source://actionpack//lib/action_dispatch/http/request.rb#299 + # source://actionpack//lib/action_dispatch/http/request.rb#300 def xml_http_request?; end private - # source://actionpack//lib/action_dispatch/http/request.rb#496 + # source://actionpack//lib/action_dispatch/http/request.rb#497 def check_method(name); end - # source://actionpack//lib/action_dispatch/http/request.rb#504 + # source://actionpack//lib/action_dispatch/http/request.rb#505 def default_session; end - # source://actionpack//lib/action_dispatch/http/request.rb#534 + # source://actionpack//lib/action_dispatch/http/request.rb#535 def fallback_request_parameters; end - # source://actionpack//lib/action_dispatch/http/request.rb#508 + # source://actionpack//lib/action_dispatch/http/request.rb#509 def read_body_stream; end - # source://actionpack//lib/action_dispatch/http/request.rb#520 + # source://actionpack//lib/action_dispatch/http/request.rb#521 def reset_stream(body_stream); end class << self @@ -15656,7 +15667,7 @@ class ActionDispatch::Request end end -# source://actionpack//lib/action_dispatch/http/request.rb#320 +# source://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 @@ -16228,10 +16239,10 @@ class ActionDispatch::Response # Aliasing these off because AD::Http::Cache::Response defines them. # - # source://rack/3.1.10/lib/rack/response.rb#290 + # source://rack/3.1.12/lib/rack/response.rb#290 def _cache_control; end - # source://rack/3.1.10/lib/rack/response.rb#294 + # source://rack/3.1.12/lib/rack/response.rb#294 def _cache_control=(value); end # source://actionpack//lib/action_dispatch/http/response.rb#396 @@ -16398,7 +16409,7 @@ class ActionDispatch::Response # The location header we'll be responding with. # - # source://rack/3.1.10/lib/rack/response.rb#262 + # source://rack/3.1.12/lib/rack/response.rb#262 def redirect_url; end # The request that the response is responding to. @@ -17092,7 +17103,7 @@ class ActionDispatch::Routing::Mapper # @return [Mapper] a new instance of Mapper # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2377 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2378 def initialize(set); end class << self @@ -17380,7 +17391,7 @@ end # concerns :commentable # end # -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2090 +# source://actionpack//lib/action_dispatch/routing/mapper.rb#2091 module ActionDispatch::Routing::Mapper::Concerns # Define a routing concern using a name. # @@ -17437,7 +17448,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#2145 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2146 def concern(name, callable = T.unsafe(nil), &block); end # Use the named concerns @@ -17452,7 +17463,7 @@ module ActionDispatch::Routing::Mapper::Concerns # concerns :commentable # end # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2161 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2162 def concerns(*args); end end @@ -17498,7 +17509,7 @@ ActionDispatch::Routing::Mapper::Constraints::CALL = T.let(T.unsafe(nil), Proc) # source://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#2173 +# source://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, @@ -17550,7 +17561,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#2223 + # source://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 @@ -17598,7 +17609,7 @@ 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#2275 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2276 def resolve(*args, &block); end end @@ -17860,7 +17871,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#1558 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1559 def collection(&block); end # Loads another routes file with the given `name` located inside the @@ -17886,7 +17897,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#1667 + # source://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 @@ -17895,7 +17906,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#1688 + # source://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: @@ -17910,18 +17921,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#1579 + # source://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#1626 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1627 def namespace(path, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1605 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1606 def nested(&block); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1595 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1596 def new(&block); end # Sometimes, you have a resource that clients always look up without referencing @@ -17954,7 +17965,7 @@ module ActionDispatch::Routing::Mapper::Resources # ### Options # Takes same options as [resources](rdoc-ref:#resources) # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1347 + # source://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 @@ -18093,16 +18104,16 @@ module ActionDispatch::Routing::Mapper::Resources # # ### Examples # - # # routes call +Admin::PostsController+ + # # routes call Admin::PostsController # resources :posts, module: "admin" # # # resource actions are at /admin/posts. # resources :posts, path: "admin/posts" # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1517 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1518 def resources(*resources, &block); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1314 + # source://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: @@ -18119,125 +18130,125 @@ 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#1735 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1736 def root(path, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1634 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1635 def shallow; end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1641 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1642 def shallow?; end private # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1799 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1800 def action_options?(options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1896 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1897 def action_path(name); end # @raise [ArgumentError] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2037 + # source://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#1950 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1951 def api_only?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1813 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1814 def applicable_actions_for(method); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1794 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1795 def apply_action_options(method, options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1760 + # source://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#1872 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1873 def canonical_action?(action); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2022 + # source://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#2007 + # source://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#1961 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1962 def map_match(paths, options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2064 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2065 def match_root_route(options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1912 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1913 def name_for_action(as, action); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1849 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1850 def nested_options; end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1830 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1831 def nested_scope?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1868 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1869 def param_constraint; end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1864 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1865 def param_constraint?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1756 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1757 def parent_resource; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1886 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1887 def path_for_action(action, path); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1954 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1955 def path_scope(path); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1900 + # source://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#1826 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1827 def resource_method_scope?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1841 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1842 def resource_scope(resource, &block); end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1822 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1823 def resource_scope?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1803 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1804 def scope_action_options(method); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1938 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1939 def set_member_mappings_for_resource; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1858 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1859 def shallow_nesting_depth; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1876 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1877 def shallow_scope; end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2018 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2019 def using_match_shorthand?(path); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1834 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1835 def with_scope_level(kind); end end @@ -18254,16 +18265,16 @@ class ActionDispatch::Routing::Mapper::Resources::Resource # source://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#1203 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1204 def actions; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1211 + # source://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#1235 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1236 def collection_name; end # Returns the value of attribute path. @@ -18276,25 +18287,25 @@ class ActionDispatch::Routing::Mapper::Resources::Resource # source://actionpack//lib/action_dispatch/routing/mapper.rb#1175 def controller; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1199 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1200 def default_actions; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1227 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1228 def member_name; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1245 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1246 def member_scope; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1219 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1220 def name; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1255 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1256 def nested_param; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1259 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1260 def nested_scope; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1251 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1252 def new_scope(new_path); end # Returns the value of attribute param. @@ -18307,31 +18318,31 @@ class ActionDispatch::Routing::Mapper::Resources::Resource # source://actionpack//lib/action_dispatch/routing/mapper.rb#1175 def path; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1223 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1224 def plural; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1239 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1240 def resource_scope; end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1263 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1264 def shallow?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1245 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1246 def shallow_scope; end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1267 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1268 def singleton?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1227 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1228 def singular; end private - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1270 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1271 def invalid_only_except_options(options, valid_actions); end class << self @@ -18340,20 +18351,20 @@ class ActionDispatch::Routing::Mapper::Resources::Resource end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1275 +# source://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#1286 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1287 def initialize(entities, api_only, shallow, options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1301 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1302 def collection_name; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1293 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1294 def default_actions; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1301 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1302 def member_name; end # source://actionpack//lib/action_dispatch/routing/mapper.rb#1175 @@ -18362,19 +18373,19 @@ class ActionDispatch::Routing::Mapper::Resources::SingletonResource < ::ActionDi # source://actionpack//lib/action_dispatch/routing/mapper.rb#1175 def nested_scope; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1297 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1298 def plural; end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1311 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1312 def singleton?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1301 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1302 def singular; end class << self - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1277 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#1278 def default_actions(api_only); end end end @@ -18385,87 +18396,87 @@ end # source://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#2289 +# source://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#2299 + # source://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#2358 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2359 def [](key); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2325 + # source://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#2366 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2367 def each; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2362 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2363 def frame; end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2305 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2306 def nested?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2350 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2351 def new(hash); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2354 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2355 def new_level(level); end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2309 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2310 def null?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2346 + # source://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#2297 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2298 def parent; end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2321 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2322 def resource_method_scope?; end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2342 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2343 def resource_scope?; end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2317 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2318 def resources?; end # @return [Boolean] # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2313 + # source://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#2297 + # source://actionpack//lib/action_dispatch/routing/mapper.rb#2298 def scope_level; end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2290 +# source://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#2295 +# source://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#2294 +# source://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#2374 +# source://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 @@ -18635,12 +18646,12 @@ module ActionDispatch::Routing::Mapper::Scoping # resources :posts # end # - # # maps to +Sekret::PostsController+ rather than +Admin::PostsController+ + # # maps to Sekret::PostsController rather than Admin::PostsController # namespace :admin, module: "sekret" do # resources :posts # end # - # # generates +sekret_posts_path+ rather than +admin_posts_path+ + # # generates sekret_posts_path rather than admin_posts_path # namespace :admin, as: "sekret" do # resources :posts # end @@ -18664,7 +18675,7 @@ module ActionDispatch::Routing::Mapper::Scoping # # Takes same options as `Base#match` and `Resources#resources`. # - # # route /posts (without the prefix /admin) to +Admin::PostsController+ + # # route /posts (without the prefix /admin) to Admin::PostsController # scope module: "admin" do # resources :posts # end @@ -18674,7 +18685,7 @@ module ActionDispatch::Routing::Mapper::Scoping # resources :posts # end # - # # prefix the routing helper name: +sekret_posts_path+ instead of +posts_path+ + # # prefix the routing helper name: sekret_posts_path instead of posts_path # scope as: "sekret" do # resources :posts # end @@ -19899,10 +19910,10 @@ class ActionDispatch::Routing::RoutesProxy private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_url_options; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_url_options=(new_value); end end end @@ -20741,10 +20752,10 @@ class ActionDispatch::SystemTestCase < ::ActiveSupport::TestCase private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_driver; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_driver=(new_value); end end end @@ -21572,7 +21583,7 @@ Mime::Type::MIME_REGEXP = T.let(T.unsafe(nil), Regexp) # source://actionpack//lib/action_dispatch.rb#35 module Rack class << self - # source://rack/3.1.10/lib/rack/version.rb#18 + # source://rack/3.1.12/lib/rack/version.rb#18 def release; end end end diff --git a/sorbet/rbi/gems/activerecord@8.0.1.rbi b/sorbet/rbi/gems/activerecord@8.0.2.rbi similarity index 98% rename from sorbet/rbi/gems/activerecord@8.0.1.rbi rename to sorbet/rbi/gems/activerecord@8.0.2.rbi index 7a179cd3..04089182 100644 --- a/sorbet/rbi/gems/activerecord@8.0.1.rbi +++ b/sorbet/rbi/gems/activerecord@8.0.2.rbi @@ -713,23 +713,23 @@ class ActiveRecord::Associations::AliasTracker # # @return [AliasTracker] a new instance of AliasTracker # - # source://activerecord//lib/active_record/associations/alias_tracker.rb#51 + # source://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#56 + # source://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#78 + # source://activerecord//lib/active_record/associations/alias_tracker.rb#80 def aliases; end private - # source://activerecord//lib/active_record/associations/alias_tracker.rb#81 + # source://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#85 + # source://activerecord//lib/active_record/associations/alias_tracker.rb#87 def truncate(name); end class << self @@ -5357,7 +5357,7 @@ class ActiveRecord::Associations::JoinDependency::JoinAssociation < ::ActiveReco # @return [Boolean] # - # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#81 + # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#79 def readonly?; end # Returns the value of attribute reflection. @@ -5367,7 +5367,7 @@ class ActiveRecord::Associations::JoinDependency::JoinAssociation < ::ActiveReco # @return [Boolean] # - # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#87 + # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#85 def strict_loading?; end # Returns the value of attribute table. @@ -5389,8 +5389,8 @@ class ActiveRecord::Associations::JoinDependency::JoinAssociation < ::ActiveReco private - # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#94 - def append_constraints(connection, join, constraints); end + # source://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 @@ -7796,20 +7796,20 @@ module ActiveRecord::AutosaveAssociation private - # source://activerecord//lib/active_record/autosave_association.rb#582 + # source://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#500 + # source://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#392 + # source://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 @@ -7821,7 +7821,7 @@ module ActiveRecord::AutosaveAssociation # @return [Boolean] # - # source://activerecord//lib/active_record/autosave_association.rb#507 + # source://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 @@ -7833,7 +7833,7 @@ module ActiveRecord::AutosaveAssociation # source://activerecord//lib/active_record/autosave_association.rb#371 def association_valid?(association, record); end - # source://activerecord//lib/active_record/autosave_association.rb#566 + # source://activerecord//lib/active_record/autosave_association.rb#576 def compute_primary_key(reflection, record); end # source://activerecord//lib/active_record/autosave_association.rb#290 @@ -7841,7 +7841,7 @@ module ActiveRecord::AutosaveAssociation # @return [Boolean] # - # source://activerecord//lib/active_record/autosave_association.rb#516 + # source://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 @@ -7857,7 +7857,7 @@ module ActiveRecord::AutosaveAssociation # # In addition, it will destroy the association if it was marked for destruction. # - # source://activerecord//lib/active_record/autosave_association.rb#526 + # source://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 @@ -7869,7 +7869,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#409 + # source://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 @@ -7881,7 +7881,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#463 + # source://activerecord//lib/active_record/autosave_association.rb#473 def save_has_one_association(reflection); end # Validate the association if :validate or :autosave is @@ -8335,25 +8335,25 @@ class ActiveRecord::Base extend ::ActiveStorage::Attached::Model::ClassMethods extend ::ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _before_commit_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _commit_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _create_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _destroy_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _find_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _initialize_callbacks; end # source://activerecord//lib/active_record/reflection.rb#11 @@ -8362,64 +8362,64 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _rollback_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_before_commit_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_commit_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_create_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_destroy_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_find_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_initialize_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_rollback_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_save_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_touch_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_update_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_validate_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_validation_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _save_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _touch_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _update_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _validate_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _validation_callbacks; end - # source://activemodel/8.0.1/lib/active_model/validations.rb#50 + # source://activemodel/8.0.2/lib/active_model/validations.rb#50 def _validators; end - # source://activemodel/8.0.1/lib/active_model/validations.rb#50 + # source://activemodel/8.0.2/lib/active_model/validations.rb#50 def _validators?; end # source://activerecord//lib/active_record/reflection.rb#12 @@ -8428,22 +8428,22 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/reflection.rb#12 def aggregate_reflections?; end - # source://activestorage/8.0.1/lib/active_storage/reflection.rb#53 + # source://activestorage/8.0.2/lib/active_storage/reflection.rb#53 def attachment_reflections; end - # source://activestorage/8.0.1/lib/active_storage/reflection.rb#53 + # source://activestorage/8.0.2/lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#71 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 def attribute_aliases; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#71 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 def attribute_aliases?; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#72 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 def attribute_method_patterns; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#72 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 def attribute_method_patterns?; end # source://activerecord//lib/active_record/reflection.rb#13 @@ -8530,10 +8530,10 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes?; end - # source://activemodel/8.0.1/lib/active_model/serializers/json.rb#15 + # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/8.0.1/lib/active_model/serializers/json.rb#15 + # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end # source://activerecord//lib/active_record/locking/optimistic.rb#56 @@ -8548,7 +8548,7 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#22 def logger?; end - # source://activemodel/8.0.1/lib/active_model/naming.rb#255 + # source://activemodel/8.0.2/lib/active_model/naming.rb#255 def model_name(&_arg0); end # source://activerecord//lib/active_record/nested_attributes.rb#15 @@ -8566,7 +8566,7 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/8.0.1/lib/active_model/conversion.rb#32 + # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 def param_delimiter=(_arg0); end # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 @@ -8654,10 +8654,10 @@ class ActiveRecord::Base def type_for_attribute(*_arg0, **_arg1, &_arg2); end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end # source://activerecord//lib/active_record/readonly_attributes.rb#11 @@ -8669,16 +8669,16 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/readonly_attributes.rb#11 def _attr_readonly?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _before_commit_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _before_commit_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _commit_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _commit_callbacks=(value); end # source://activerecord//lib/active_record/counter_cache.rb#9 @@ -8690,10 +8690,10 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/counter_cache.rb#9 def _counter_cache_columns?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _create_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _create_callbacks=(value); end # source://activerecord//lib/active_record/core.rb#24 @@ -8705,22 +8705,22 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#24 def _destroy_association_async_job?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _destroy_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _destroy_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _find_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _find_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _initialize_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _initialize_callbacks=(value); end # source://activerecord//lib/active_record/reflection.rb#11 @@ -8732,70 +8732,70 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _rollback_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _rollback_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _save_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _save_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _touch_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _touch_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _update_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _update_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _validate_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _validate_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _validation_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _validation_callbacks=(value); end - # source://activemodel/8.0.1/lib/active_model/validations.rb#50 + # source://activemodel/8.0.2/lib/active_model/validations.rb#50 def _validators; end - # source://activemodel/8.0.1/lib/active_model/validations.rb#50 + # source://activemodel/8.0.2/lib/active_model/validations.rb#50 def _validators=(value); end - # source://activemodel/8.0.1/lib/active_model/validations.rb#50 + # source://activemodel/8.0.2/lib/active_model/validations.rb#50 def _validators?; end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_create(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_destroy(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_find(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_initialize(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_save(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_touch(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#144 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 def after_update(*args, **options, &block); end # source://activerecord//lib/active_record/reflection.rb#12 @@ -8810,16 +8810,16 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#121 def application_record_class?; end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#137 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 def around_create(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#137 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 def around_destroy(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#137 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 def around_save(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#137 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 def around_update(*args, **options, &block); end # source://activerecord//lib/active_record/core.rb#141 @@ -8828,31 +8828,31 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#145 def asynchronous_queries_tracker; end - # source://activestorage/8.0.1/lib/active_storage/reflection.rb#53 + # source://activestorage/8.0.2/lib/active_storage/reflection.rb#53 def attachment_reflections; end - # source://activestorage/8.0.1/lib/active_storage/reflection.rb#53 + # source://activestorage/8.0.2/lib/active_storage/reflection.rb#53 def attachment_reflections=(value); end - # source://activestorage/8.0.1/lib/active_storage/reflection.rb#53 + # source://activestorage/8.0.2/lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#71 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 def attribute_aliases; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#71 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 def attribute_aliases=(value); end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#71 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 def attribute_aliases?; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#72 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 def attribute_method_patterns; end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#72 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 def attribute_method_patterns=(value); end - # source://activemodel/8.0.1/lib/active_model/attribute_methods.rb#72 + # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 def attribute_method_patterns?; end # source://activerecord//lib/active_record/core.rb#119 @@ -8882,16 +8882,16 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/reflection.rb#14 def automatically_invert_plural_associations?; end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#130 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 def before_create(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#130 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 def before_destroy(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#130 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 def before_save(*args, **options, &block); end - # source://activemodel/8.0.1/lib/active_model/callbacks.rb#130 + # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 def before_update(*args, **options, &block); end # source://activerecord//lib/active_record/core.rb#89 @@ -8936,19 +8936,19 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#71 def configurations=(config); end - # source://activerecord//lib/active_record/core.rb#205 + # source://activerecord//lib/active_record/core.rb#216 def connected_to_stack; end - # source://activerecord//lib/active_record/core.rb#219 + # source://activerecord//lib/active_record/core.rb#230 def connection_class; end - # source://activerecord//lib/active_record/core.rb#215 + # source://activerecord//lib/active_record/core.rb#226 def connection_class=(b); end - # source://activerecord//lib/active_record/core.rb#223 + # source://activerecord//lib/active_record/core.rb#234 def connection_class?; end - # source://activerecord//lib/active_record/core.rb#227 + # source://activerecord//lib/active_record/core.rb#238 def connection_class_for_self; end # source://activerecord//lib/active_record/core.rb#133 @@ -9095,13 +9095,13 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/model_schema.rb#169 def implicit_order_column?; end - # source://activemodel/8.0.1/lib/active_model/serializers/json.rb#15 + # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/8.0.1/lib/active_model/serializers/json.rb#15 + # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 def include_root_in_json=(value); end - # source://activemodel/8.0.1/lib/active_model/serializers/json.rb#15 + # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end # source://activerecord//lib/active_record/model_schema.rb#172 @@ -9164,13 +9164,13 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/8.0.1/lib/active_model/conversion.rb#32 + # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 def param_delimiter; end - # source://activemodel/8.0.1/lib/active_model/conversion.rb#32 + # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 def param_delimiter=(value); end - # source://activemodel/8.0.1/lib/active_model/conversion.rb#32 + # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 def param_delimiter?; end # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 @@ -9200,6 +9200,9 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/model_schema.rb#168 def pluralize_table_names?; end + # source://activerecord//lib/active_record/core.rb#207 + def preventing_writes?(class_name); end + # source://activerecord//lib/active_record/model_schema.rb#163 def primary_key_prefix_type; end @@ -9299,7 +9302,7 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#92 def strict_loading_mode?; end - # source://activerecord//lib/active_record/core.rb#242 + # source://activerecord//lib/active_record/core.rb#253 def strict_loading_violation!(owner:, reflection:); end # source://activerecord//lib/active_record/model_schema.rb#164 @@ -9346,358 +9349,358 @@ class ActiveRecord::Base private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__attr_readonly; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__attr_readonly=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__counter_cache_columns; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__counter_cache_columns=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__destroy_association_async_job; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__destroy_association_async_job=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_aggregate_reflections; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_aggregate_reflections=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_attachment_reflections; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_attachment_reflections=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_attribute_aliases; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_attribute_aliases=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_attribute_method_patterns; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_attribute_method_patterns=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_attributes_for_inspect; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_attributes_for_inspect=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_automatic_scope_inversing; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_automatic_scope_inversing=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_automatically_invert_plural_associations; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_automatically_invert_plural_associations=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_belongs_to_required_by_default; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_belongs_to_required_by_default=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_cache_timestamp_format; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_cache_timestamp_format=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_cache_versioning; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_cache_versioning=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_collection_cache_versioning; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_collection_cache_versioning=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_counter_cached_association_names; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_counter_cached_association_names=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_column_serializer; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_column_serializer=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_connection_handler; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_connection_handler=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_role; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_role=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_scope_override; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_scope_override=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_scopes; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_scopes=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_shard; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_shard=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_destroy_association_async_batch_size; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_destroy_association_async_batch_size=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_encrypted_attributes; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_encrypted_attributes=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_enumerate_columns_in_select_statements; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_enumerate_columns_in_select_statements=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_generated_token_verifier; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_generated_token_verifier=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_has_many_inversing; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_has_many_inversing=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_immutable_strings_by_default; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_immutable_strings_by_default=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_implicit_order_column; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_implicit_order_column=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_include_root_in_json; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_include_root_in_json=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_inheritance_column; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_inheritance_column=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_internal_metadata_table_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_internal_metadata_table_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_lock_optimistically; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_lock_optimistically=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_logger; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_logger=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_nested_attributes_options; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_nested_attributes_options=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_normalized_attributes; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_normalized_attributes=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_param_delimiter; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_param_delimiter=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_partial_inserts; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_partial_inserts=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_partial_updates; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_partial_updates=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_pluralize_table_names; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_pluralize_table_names=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_primary_key_prefix_type; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_primary_key_prefix_type=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_record_timestamps; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_record_timestamps=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_run_commit_callbacks_on_first_saved_instances_in_transaction; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/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.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_schema_migrations_table_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_schema_migrations_table_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_shard_selector; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_shard_selector=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_signed_id_verifier_secret; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_signed_id_verifier_secret=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_skip_time_zone_conversion_for_attributes; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_skip_time_zone_conversion_for_attributes=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_store_full_class_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_store_full_class_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_store_full_sti_class; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_store_full_sti_class=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_strict_loading_by_default; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_strict_loading_by_default=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_strict_loading_mode; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_strict_loading_mode=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_table_name_prefix; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_table_name_prefix=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_table_name_suffix; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_table_name_suffix=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_time_zone_aware_attributes; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_time_zone_aware_attributes=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_time_zone_aware_types; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_time_zone_aware_types=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_token_definitions; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_token_definitions=(new_value); end # source://activerecord//lib/active_record/model_schema.rb#172 @@ -10345,59 +10348,61 @@ module ActiveRecord::Calculations # source://activerecord//lib/active_record/relation/calculations.rb#172 def sum(initial_value_or_column = T.unsafe(nil), &block); end - private + protected - # source://activerecord//lib/active_record/relation/calculations.rb#453 + # source://activerecord//lib/active_record/relation/calculations.rb#414 def aggregate_column(column_name); end + private + # @return [Boolean] # - # source://activerecord//lib/active_record/relation/calculations.rb#414 + # source://activerecord//lib/active_record/relation/calculations.rb#426 def all_attributes?(column_names); end - # source://activerecord//lib/active_record/relation/calculations.rb#656 + # source://activerecord//lib/active_record/relation/calculations.rb#662 def build_count_subquery(relation, column_name, distinct); end # @return [Boolean] # - # source://activerecord//lib/active_record/relation/calculations.rb#649 + # source://activerecord//lib/active_record/relation/calculations.rb#655 def build_count_subquery?(operation, column_name, distinct); end # @return [Boolean] # - # source://activerecord//lib/active_record/relation/calculations.rb#449 + # source://activerecord//lib/active_record/relation/calculations.rb#461 def distinct_select?(column_name); end - # source://activerecord//lib/active_record/relation/calculations.rb#509 + # source://activerecord//lib/active_record/relation/calculations.rb#514 def execute_grouped_calculation(operation, column_name, distinct); end - # source://activerecord//lib/active_record/relation/calculations.rb#468 + # source://activerecord//lib/active_record/relation/calculations.rb#469 def execute_simple_calculation(operation, column_name, distinct); end # @return [Boolean] # - # source://activerecord//lib/active_record/relation/calculations.rb#418 + # source://activerecord//lib/active_record/relation/calculations.rb#430 def has_include?(column_name); end - # source://activerecord//lib/active_record/relation/calculations.rb#596 + # source://activerecord//lib/active_record/relation/calculations.rb#602 def lookup_cast_type_from_join_dependencies(name, join_dependencies = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/calculations.rb#464 + # source://activerecord//lib/active_record/relation/calculations.rb#465 def operation_over_aggregate_column(column, operation, distinct); end - # source://activerecord//lib/active_record/relation/calculations.rb#422 + # source://activerecord//lib/active_record/relation/calculations.rb#434 def perform_calculation(operation, column_name); end - # source://activerecord//lib/active_record/relation/calculations.rb#639 + # source://activerecord//lib/active_record/relation/calculations.rb#645 def select_for_count; end - # source://activerecord//lib/active_record/relation/calculations.rb#621 + # source://activerecord//lib/active_record/relation/calculations.rb#627 def type_cast_calculated_value(value, operation, type); end - # source://activerecord//lib/active_record/relation/calculations.rb#604 + # source://activerecord//lib/active_record/relation/calculations.rb#610 def type_cast_pluck_values(result, columns); end - # source://activerecord//lib/active_record/relation/calculations.rb#591 + # source://activerecord//lib/active_record/relation/calculations.rb#597 def type_for(field, &block); end end @@ -10931,19 +10936,19 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#125 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.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _checkin_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#923 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 def _checkout_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_checkin_callbacks(&block); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#911 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 def _run_checkout_callbacks(&block); end # Checks whether the connection to the database is still active. This includes @@ -10952,28 +10957,28 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#658 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#656 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#353 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#588 def add_enum_value(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#605 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#603 def advisory_locks_enabled?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#564 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#562 def async_enabled?; end # Called by ActiveRecord::InsertAll, @@ -10982,29 +10987,29 @@ 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#842 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#843 def build_insert_sql(insert); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#813 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#814 def case_insensitive_comparison(attribute, value); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#809 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#810 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#641 def check_all_foreign_keys_valid!; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#206 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#193 def check_if_write_query(sql); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#857 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#858 def check_version; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#782 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#783 def clean!; end # Clear any caching the database adapter may be doing. @@ -11014,10 +11019,10 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # Check the connection back in to the connection pool # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#829 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#830 def close; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#777 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#778 def connect!; end # Checks whether the connection to the database was established. This doesn't @@ -11026,13 +11031,13 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#651 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#649 def connected?; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#291 - def connection_class; end + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#282 + def connection_descriptor; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#216 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#203 def connection_retries; end # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 @@ -11040,31 +11045,31 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#576 def create_enum(*_arg0, **_arg1, &_arg2); 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#596 def create_virtual_table(*_arg0); end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#364 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#362 def database_exists?; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#853 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#854 def database_version; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#833 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#834 def default_index_type?(index); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#228 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#219 def default_timezone; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#805 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#806 def default_uniqueness_comparison(attribute, value); end # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 @@ -11072,12 +11077,12 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # This is meant to be implemented by the adapters that support extensions # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#570 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#568 def disable_extension(name, **_arg1); end # Override to turn off referential integrity while executing &block. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#636 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#634 def disable_referential_integrity; end # Immediately forget this connection ever existed. Unlike disconnect!, @@ -11098,17 +11103,17 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#580 def drop_enum(*_arg0, **_arg1, &_arg2); 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#600 def drop_virtual_table(*_arg0); end # This is meant to be implemented by the adapters that support extensions # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#574 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#572 def enable_extension(name, **_arg1); end # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 @@ -11122,12 +11127,12 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # this method must only be called while holding connection pool's mutex # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#312 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#303 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#622 def extensions; end # This is meant to be implemented by the adapters that support advisory @@ -11135,10 +11140,10 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # Return true if we got the lock, otherwise false # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#613 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#611 def get_advisory_lock(lock_id); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#850 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#851 def get_database_version; end # Returns the value of attribute owner. @@ -11148,7 +11153,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # A list of index algorithms, to be filled by adapters that support them. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#629 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#627 def index_algorithms; end # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 @@ -11159,7 +11164,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # this method must only be called while holding connection pool's mutex # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#276 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#267 def lease; end # Returns the value of attribute lock. @@ -11194,20 +11199,20 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#404 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#402 def prefetch_primary_key?(table_name = T.unsafe(nil)); end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#243 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#234 def prepared_statements; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#243 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#234 def prepared_statements?; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#248 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#239 def prepared_statements_disabled_cache; end # Determines whether writes are currently being prevented. @@ -11217,7 +11222,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#236 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#227 def preventing_writes?; end # Provides access to the underlying database driver for this adapter. For @@ -11231,14 +11236,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#797 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#798 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#662 def reconnect!(restore_transactions: T.unsafe(nil)); end # This is meant to be implemented by the adapters that support advisory @@ -11246,22 +11251,22 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # Return true if we released the lock, otherwise false # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#620 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#618 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#584 def rename_enum(*_arg0, **_arg1, &_arg2); 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#592 def rename_enum_value(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#212 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#199 def replica?; end # Returns true if its required to reload the connection between requests for development mode. @@ -11286,18 +11291,18 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 def restart_db_transaction(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#220 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#211 def retry_deadline; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#560 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#558 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#297 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#288 def role; end # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 @@ -11311,10 +11316,10 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#388 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#386 def savepoint_errors_invalidate_transactions?; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#307 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#298 def schema_cache; end # Returns the version identifier of the schema currently available in @@ -11322,73 +11327,78 @@ 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#864 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#865 def schema_version; end # Seconds since this connection was returned to the pool # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#341 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#332 def seconds_idle; end + # Seconds since this connection last communicated with the server + # + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#338 + 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#303 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#294 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#328 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#319 def steal!; end # Does this adapter support application-enforced advisory locking? # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#397 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#395 def supports_advisory_locks?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#377 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#375 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#467 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#502 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#507 def supports_comments_in_create?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#528 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#526 def supports_common_table_expressions?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#552 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#550 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#492 def supports_datetime_with_precision?; end # Does this adapter support DDL rollbacks in transactions? That is, would @@ -11396,70 +11406,70 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#373 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#371 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#462 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#472 def supports_exclusion_constraints?; end # Does this adapter support explain? # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#433 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#431 def supports_explain?; end # Does this adapter support expression indices? # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#428 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#426 def supports_expression_index?; end # Does this adapter support database extensions? # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#443 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#441 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#452 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#517 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#421 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#411 def supports_index_sort_order?; end # Does this adapter support creating indexes in the same statement as @@ -11467,117 +11477,117 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#449 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#447 def supports_indexes_in_create?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#548 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#546 def supports_insert_conflict_target?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#540 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#538 def supports_insert_on_duplicate_skip?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#544 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#542 def supports_insert_on_duplicate_update?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#536 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#534 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#497 def supports_json?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#532 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#530 def supports_lazy_transactions?; end # Does this adapter support materialized views? # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#489 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#487 def supports_materialized_views?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#556 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#554 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#522 def supports_optimizer_hints?; end # Does this adapter support partial indices? # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#418 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#416 def supports_partial_index?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#408 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#406 def supports_partitioned_indexes?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#392 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#390 def supports_restart_db_transaction?; end # Does this adapter support savepoints? # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#382 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#380 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#436 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#477 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 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#457 def supports_validate_constraints?; end # Does this adapter support views? # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#484 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#482 def supports_views?; end # Does this adapter support virtual columns? # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#514 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#512 def supports_virtual_columns?; end # Removes the connection from the pool and disconnect it. @@ -11591,7 +11601,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 def truncate_tables(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#346 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#344 def unprepared_statement; end # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 @@ -11599,7 +11609,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#271 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#262 def valid_type?(type); end # Checks whether the connection to the database is still active (i.e. not stale). @@ -11609,27 +11619,30 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#759 def verify!; end + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#207 + def verify_timeout; end + # Returns the value of attribute visitor. # # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#44 def visitor; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#196 - def with_instrumenter(instrumenter, &block); end - private # Returns a raw connection for internal use with methods that are known # 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#1083 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1089 def any_raw_connection; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1180 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1190 def arel_visitor; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1072 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1216 + def attempt_configure_connection; end + + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1078 def backoff(counter); end # Builds the result object. @@ -11637,24 +11650,24 @@ 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#1191 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1201 def build_result(columns:, rows:, column_types: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1184 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1194 def build_statement_pool; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#823 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#824 def can_perform_case_insensitive_comparison_for?(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1166 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1176 def collector; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1155 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1165 def column_for(table_name, column_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1161 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1171 def column_for_attribute(attribute); end # Perform any necessary initialization upon the newly-established @@ -11664,48 +11677,51 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # 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#1202 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1212 def configure_connection; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1206 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1223 def default_prepared_statements; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1100 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1106 def extended_type_map_key; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1058 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1151 + def instrumenter; end + + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1064 def invalidate_transaction(exception); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1128 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1134 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#1076 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1082 def reconnect; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#945 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#946 def reconnect_can_restore_state?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1053 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1059 def retryable_connection_error?(exception); end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1065 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1071 def retryable_query_error?(exception); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1145 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1155 def translate_exception(exception, message:, sql:, binds:); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1116 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1122 def translate_exception_class(native_error, sql, binds); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1106 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1112 def type_map; end # Similar to any_raw_connection, but ensures it is validated and @@ -11714,19 +11730,19 @@ 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#1092 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1098 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#1049 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1054 def verified!; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1210 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1227 def warning_ignored?(warning); end # Lock the monitor, ensure we're properly connected and @@ -11762,26 +11778,26 @@ 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#982 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#983 def with_raw_connection(allow_retry: T.unsafe(nil), materialize_transactions: T.unsafe(nil)); end class << self - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#69 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _checkin_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _checkin_callbacks=(value); end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#915 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 def _checkout_callbacks; end - # source://activesupport/8.0.1/lib/active_support/callbacks.rb#919 + # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 def _checkout_callbacks=(value); end # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#86 @@ -11791,7 +11807,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#360 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#358 def database_exists?(config); end # Opens a database console session. @@ -11801,13 +11817,13 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#121 def dbconsole(config, options = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#876 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#877 def extended_type_map(default_timezone:); end # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#92 def find_cmd_and_exec(commands, *args); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#869 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#870 def register_class_with_precision(mapping, key, klass, **kwargs); end # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#65 @@ -11821,25 +11837,25 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#936 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#937 def extract_limit(sql_type); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#932 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#933 def extract_precision(sql_type); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#925 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#926 def extract_scale(sql_type); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#885 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#886 def initialize_type_map(m); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#918 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#919 def register_class_with_limit(mapping, key, klass); end end end @@ -11853,39 +11869,33 @@ ActiveRecord::ConnectionAdapters::AbstractAdapter::COMMENT_REGEX = T.let(T.unsaf # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#83 ActiveRecord::ConnectionAdapters::AbstractAdapter::DEFAULT_READ_QUERY = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#194 -ActiveRecord::ConnectionAdapters::AbstractAdapter::EXCEPTION_IMMEDIATE = T.let(T.unsafe(nil), Hash) - -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#193 -ActiveRecord::ConnectionAdapters::AbstractAdapter::EXCEPTION_NEVER = T.let(T.unsafe(nil), Hash) - -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#942 +# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#943 ActiveRecord::ConnectionAdapters::AbstractAdapter::EXTENDED_TYPE_MAPS = T.let(T.unsafe(nil), Concurrent::Map) # source://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#941 +# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#942 ActiveRecord::ConnectionAdapters::AbstractAdapter::TYPE_MAP = T.let(T.unsafe(nil), ActiveRecord::Type::TypeMap) -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#252 +# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#243 class ActiveRecord::ConnectionAdapters::AbstractAdapter::Version include ::Comparable # @return [Version] a new instance of Version # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#257 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#248 def initialize(version_string, full_version_string = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#262 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#253 def <=>(version_string); end # Returns the value of attribute full_version_string. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#255 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#246 def full_version_string; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#266 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#257 def to_s; end end @@ -12510,7 +12520,7 @@ end class ActiveRecord::ConnectionAdapters::ConnectionHandler # @return [ConnectionHandler] a new instance of ConnectionHandler # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#73 + # source://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 @@ -12518,24 +12528,24 @@ class ActiveRecord::ConnectionAdapters::ConnectionHandler # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#154 + # source://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#161 + # source://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#175 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#178 def clear_all_connections!(role = T.unsafe(nil)); end # Clears the cache which maps classes. # # See ConnectionPool#clear_reloadable_connections! for details. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#171 + # source://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 @@ -12543,44 +12553,44 @@ class ActiveRecord::ConnectionAdapters::ConnectionHandler # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#197 + # source://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#92 + # source://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#86 + # source://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#92 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#95 def connection_pools(role = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#101 + # source://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#112 + # source://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#182 + # source://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#78 + # source://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#82 + # source://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#202 + # source://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 @@ -12588,35 +12598,35 @@ 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#190 + # source://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#211 + # source://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#237 + # source://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#279 + # source://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#253 + # source://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#240 + # source://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#249 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#252 def pool_managers; end # Returns an instance of PoolConfig for a given adapter. @@ -12631,33 +12641,31 @@ class ActiveRecord::ConnectionAdapters::ConnectionHandler # # @raise [AdapterNotSpecified] # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#272 + # source://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#245 - def set_pool_manager(connection_name); end + # source://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 -class ActiveRecord::ConnectionAdapters::ConnectionHandler::StringConnectionName - # @return [StringConnectionName] a new instance of StringConnectionName +class ActiveRecord::ConnectionAdapters::ConnectionHandler::ConnectionDescriptor + # @return [ConnectionDescriptor] a new instance of ConnectionDescriptor # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#60 - def initialize(name); end + # source://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#68 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#71 def current_preventing_writes; end - # Returns the value of attribute name. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#58 + # source://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#64 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#67 def primary_class?; end end @@ -12791,7 +12799,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#570 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#575 def checkin(conn); end # Check-out a database connection from the pool, indicating that you want @@ -12858,7 +12866,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool def connected?; end # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#367 - def connection_class; end + def connection_descriptor; end # Returns an array containing the connections currently in the pool. # Access to the array does not require synchronization on the pool because @@ -12918,13 +12926,13 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # +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#643 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#648 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#665 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#670 def flush!; end # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#278 @@ -12948,10 +12956,10 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#298 def migrations_paths; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#696 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#701 def new_connection; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#670 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#675 def num_waiting_in_queue; end # @return [Boolean] @@ -12971,7 +12979,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # 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#620 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#625 def reap; end # Returns the value of attribute reaper. @@ -12993,7 +13001,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # 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#588 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#593 def remove(conn); end # Returns the value of attribute role. @@ -13001,7 +13009,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#222 def role; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#691 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#696 def schedule_query(future_result); end # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#285 @@ -13033,7 +13041,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # # 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#677 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#682 def stat; end # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#340 @@ -13066,48 +13074,48 @@ 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#857 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#862 def acquire_connection(checkout_timeout); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#921 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#926 def adopt_connection(conn); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#748 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#753 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#709 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#714 def build_async_executor; end # -- # this is unfortunately not concurrent # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#727 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#732 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#797 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#802 def checkout_for_exclusive_access(checkout_timeout); end # @raise [ConnectionNotEstablished] # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#932 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#937 def checkout_new_connection; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#705 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#710 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#882 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#887 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#882 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#887 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 @@ -13116,7 +13124,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#894 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#899 def try_to_checkout_new_connection; end # Take control of all existing connections so a "group" action such as @@ -13124,10 +13132,10 @@ 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#741 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#746 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#817 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#822 def with_new_connections_blocked; end class << self @@ -14220,7 +14228,7 @@ class ActiveRecord::ConnectionAdapters::NullPool def checkin(_); end # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#39 - def connection_class; end + def connection_descriptor; end # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#44 def db_config; end @@ -14318,23 +14326,16 @@ class ActiveRecord::ConnectionAdapters::PoolConfig # @return [PoolConfig] a new instance of PoolConfig # - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#29 + # source://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_class. - # - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#10 - def connection_class; end - - # Sets the attribute connection_class - # - # @param value the value to set the attribute connection_class to. + # Returns the value of attribute connection_descriptor. # - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#10 - def connection_class=(_arg0); end + # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#8 + def connection_descriptor; end - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#44 - def connection_name; end + # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#43 + def connection_descriptor=(connection_descriptor); end # Returns the value of attribute db_config. # @@ -14355,7 +14356,7 @@ class ActiveRecord::ConnectionAdapters::PoolConfig # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#8 def role; end - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#12 + # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#11 def schema_reflection; end # Sets the attribute schema_reflection @@ -14365,7 +14366,7 @@ class ActiveRecord::ConnectionAdapters::PoolConfig # source://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#40 + # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#39 def server_version(connection); end # Sets the attribute server_version @@ -14381,15 +14382,15 @@ class ActiveRecord::ConnectionAdapters::PoolConfig def shard; end class << self - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#20 + # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#19 def discard_pools!; end - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#24 + # source://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#16 +# source://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 @@ -17300,7 +17301,7 @@ class ActiveRecord::ConnectionAdapters::TableDefinition # # == Examples # - # # Assuming +td+ is an instance of TableDefinition + # # Assuming `td` is an instance of TableDefinition # td.column(:granted, :boolean, index: true) # # == Short-hand examples @@ -18214,12 +18215,12 @@ module ActiveRecord::Core # @yield [_self] # @yieldparam _self [ActiveRecord::Core] the object that the method was called on # - # source://activerecord//lib/active_record/core.rb#460 + # source://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#654 + # source://activerecord//lib/active_record/core.rb#665 def <=>(other_object); end # Returns true if +comparison_object+ is the same exact object, or +comparison_object+ @@ -18232,15 +18233,15 @@ 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#620 + # source://activerecord//lib/active_record/core.rb#631 def ==(comparison_object); end # @return [Boolean] # - # source://activerecord//lib/active_record/core.rb#666 + # source://activerecord//lib/active_record/core.rb#677 def blank?; end - # source://activerecord//lib/active_record/core.rb#739 + # source://activerecord//lib/active_record/core.rb#768 def connection_handler; end # Populate +coder+ with attributes about this record that should be @@ -18256,7 +18257,7 @@ module ActiveRecord::Core # Post.new.encode_with(coder) # coder # => {"attributes" => {"id" => nil, ... }} # - # source://activerecord//lib/active_record/core.rb#576 + # source://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+ @@ -18269,21 +18270,21 @@ 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#620 + # source://activerecord//lib/active_record/core.rb#631 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#643 + # source://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#649 + # source://activerecord//lib/active_record/core.rb#660 def frozen?; end # Returns all attributes of the record as a nicely formatted string, @@ -18292,16 +18293,16 @@ module ActiveRecord::Core # Post.first.full_inspect # #=> "#" # - # source://activerecord//lib/active_record/core.rb#763 + # source://activerecord//lib/active_record/core.rb#792 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#630 + # source://activerecord//lib/active_record/core.rb#641 def hash; end - # source://activerecord//lib/active_record/core.rb#552 + # source://activerecord//lib/active_record/core.rb#563 def init_attributes(_); end # Initialize an empty model object from +coder+. +coder+ should be @@ -18319,7 +18320,7 @@ module ActiveRecord::Core # post.init_with(coder) # post.title # => 'hello world' # - # source://activerecord//lib/active_record/core.rb#487 + # source://activerecord//lib/active_record/core.rb#498 def init_with(coder, &block); end # Initialize an empty model object from +attributes+. @@ -18329,7 +18330,7 @@ module ActiveRecord::Core # @yield [_self] # @yieldparam _self [ActiveRecord::Core] the object that the method was called on # - # source://activerecord//lib/active_record/core.rb#497 + # source://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. @@ -18343,34 +18344,52 @@ module ActiveRecord::Core # Post.first.inspect # #=> "#" # - # source://activerecord//lib/active_record/core.rb#753 + # source://activerecord//lib/active_record/core.rb#782 def inspect; end # @return [Boolean] # - # source://activerecord//lib/active_record/core.rb#662 + # source://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#769 + # source://activerecord//lib/active_record/core.rb#798 def pretty_print(pp); end - # Marks this record as read only. + # Prevents records from being written to the database: + # + # customer = Customer.new + # customer.readonly! + # customer.save # raises ActiveRecord::ReadOnlyRecord + # + # customer = Customer.first + # customer.readonly! + # customer.update(name: 'New Name') # raises ActiveRecord::ReadOnlyRecord + # + # Read-only records cannot be deleted from the database either: # # customer = Customer.first # customer.readonly! - # customer.save # Raises an ActiveRecord::ReadOnlyRecord + # customer.destroy # raises ActiveRecord::ReadOnlyRecord + # + # Please, note that the objects themselves are still mutable in memory: + # + # customer = Customer.new + # customer.readonly! + # customer.name = 'New Name' # OK + # + # but you won't be able to persist the changes. # - # source://activerecord//lib/active_record/core.rb#735 + # source://activerecord//lib/active_record/core.rb#764 def readonly!; end # Returns +true+ if the record is read only. # # @return [Boolean] # - # source://activerecord//lib/active_record/core.rb#671 + # source://activerecord//lib/active_record/core.rb#682 def readonly?; end # Sets the record to strict_loading mode. This will raise an error @@ -18403,61 +18422,61 @@ module ActiveRecord::Core # user.comments.first.ratings.to_a # => ActiveRecord::StrictLoadingViolationError # - # source://activerecord//lib/active_record/core.rb#709 + # source://activerecord//lib/active_record/core.rb#720 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#676 + # source://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#726 + # source://activerecord//lib/active_record/core.rb#737 def strict_loading_all?; end # Returns the value of attribute strict_loading_mode. # - # source://activerecord//lib/active_record/core.rb#718 + # source://activerecord//lib/active_record/core.rb#729 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#721 + # source://activerecord//lib/active_record/core.rb#732 def strict_loading_n_plus_one_only?; end private - # source://activerecord//lib/active_record/core.rb#859 + # source://activerecord//lib/active_record/core.rb#888 def all_attributes_for_inspect; end - # source://activerecord//lib/active_record/core.rb#855 + # source://activerecord//lib/active_record/core.rb#884 def attributes_for_inspect; end # @return [Boolean] # - # source://activerecord//lib/active_record/core.rb#825 + # source://activerecord//lib/active_record/core.rb#854 def custom_inspect_method_defined?; end - # source://activerecord//lib/active_record/core.rb#805 + # source://activerecord//lib/active_record/core.rb#834 def init_internals; end - # source://activerecord//lib/active_record/core.rb#539 + # source://activerecord//lib/active_record/core.rb#550 def initialize_dup(other); end - # source://activerecord//lib/active_record/core.rb#822 + # source://activerecord//lib/active_record/core.rb#851 def initialize_internals_callback; end - # source://activerecord//lib/active_record/core.rb#840 + # source://activerecord//lib/active_record/core.rb#869 def inspect_with_attributes(attributes_to_list); end - # source://activerecord//lib/active_record/core.rb#836 + # source://activerecord//lib/active_record/core.rb#865 def inspection_filter; end # +Array#flatten+ will call +#to_ary+ (recursively) on each of the elements of @@ -18469,7 +18488,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#801 + # source://activerecord//lib/active_record/core.rb#830 def to_ary; end module GeneratedClassMethods @@ -18529,73 +18548,73 @@ module ActiveRecord::Core end end -# source://activerecord//lib/active_record/core.rb#254 +# source://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#380 + # source://activerecord//lib/active_record/core.rb#391 def arel_table; end - # source://activerecord//lib/active_record/core.rb#392 + # source://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#338 + # source://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#347 + # source://activerecord//lib/active_record/core.rb#358 def filter_attributes=(filter_attributes); end - # source://activerecord//lib/active_record/core.rb#259 + # source://activerecord//lib/active_record/core.rb#270 def find(*ids); end - # source://activerecord//lib/active_record/core.rb#272 + # source://activerecord//lib/active_record/core.rb#283 def find_by(*args); end - # source://activerecord//lib/active_record/core.rb#319 + # source://activerecord//lib/active_record/core.rb#330 def find_by!(*args); end - # source://activerecord//lib/active_record/core.rb#327 + # source://activerecord//lib/active_record/core.rb#338 def generated_association_methods; end - # source://activerecord//lib/active_record/core.rb#255 + # source://activerecord//lib/active_record/core.rb#266 def initialize_find_by_cache; end - # source://activerecord//lib/active_record/core.rb#323 + # source://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#364 + # source://activerecord//lib/active_record/core.rb#375 def inspect; end - # source://activerecord//lib/active_record/core.rb#352 + # source://activerecord//lib/active_record/core.rb#363 def inspection_filter; end - # source://activerecord//lib/active_record/core.rb#384 + # source://activerecord//lib/active_record/core.rb#395 def predicate_builder; end - # source://activerecord//lib/active_record/core.rb#388 + # source://activerecord//lib/active_record/core.rb#399 def type_caster; end private - # source://activerecord//lib/active_record/core.rb#430 + # source://activerecord//lib/active_record/core.rb#441 def cached_find_by(keys, values); end - # source://activerecord//lib/active_record/core.rb#398 + # source://activerecord//lib/active_record/core.rb#409 def inherited(subclass); end - # source://activerecord//lib/active_record/core.rb#420 + # source://activerecord//lib/active_record/core.rb#431 def relation; end end -# source://activerecord//lib/active_record/core.rb#829 +# source://activerecord//lib/active_record/core.rb#858 class ActiveRecord::Core::InspectionMask - # source://activerecord//lib/active_record/core.rb#830 + # source://activerecord//lib/active_record/core.rb#859 def pretty_print(pp); end end @@ -18726,7 +18745,7 @@ module ActiveRecord::CounterCache::ClassMethods # # For the Post with id #1, reset the comments_count # Post.reset_counters(1, :comments) # - # # Like above, but also touch the +updated_at+ and/or +updated_on+ + # # Like above, but also touch the updated_at and/or updated_on # # attributes. # Post.reset_counters(1, :comments, touch: true) # @@ -19595,16 +19614,16 @@ module ActiveRecord::DelegatedType # delegated_type :entryable, types: %w[ Message Comment ], dependent: :destroy # end # - # Entry#entryable_class # => +Message+ or +Comment+ - # Entry#entryable_name # => "message" or "comment" - # Entry.messages # => Entry.where(entryable_type: "Message") - # Entry#message? # => true when entryable_type == "Message" - # Entry#message # => returns the message record, when entryable_type == "Message", otherwise nil - # Entry#message_id # => returns entryable_id, when entryable_type == "Message", otherwise nil - # Entry.comments # => Entry.where(entryable_type: "Comment") - # Entry#comment? # => true when entryable_type == "Comment" - # Entry#comment # => returns the comment record, when entryable_type == "Comment", otherwise nil - # Entry#comment_id # => returns entryable_id, when entryable_type == "Comment", otherwise nil + # @entry.entryable_class # => Message or Comment + # @entry.entryable_name # => "message" or "comment" + # Entry.messages # => Entry.where(entryable_type: "Message") + # @entry.message? # => true when entryable_type == "Message" + # @entry.message # => returns the message record, when entryable_type == "Message", otherwise nil + # @entry.message_id # => returns entryable_id, when entryable_type == "Message", otherwise nil + # Entry.comments # => Entry.where(entryable_type: "Comment") + # @entry.comment? # => true when entryable_type == "Comment" + # @entry.comment # => returns the comment record, when entryable_type == "Comment", otherwise nil + # @entry.comment_id # => returns entryable_id, when entryable_type == "Comment", otherwise nil # # You can also declare namespaced types: # @@ -19613,25 +19632,25 @@ module ActiveRecord::DelegatedType # end # # Entry.access_notice_messages - # entry.access_notice_message - # entry.access_notice_message? + # @entry.access_notice_message + # @entry.access_notice_message? # # === Options # # The +options+ are passed directly to the +belongs_to+ call, so this is where you declare +dependent+ etc. # The following options can be included to specialize the behavior of the delegated type convenience methods. # - # [:foreign_key] + # [+:foreign_key+] # Specify the foreign key used for the convenience methods. By default this is guessed to be the passed # +role+ with an "_id" suffix. So a class that defines a # delegated_type :entryable, types: %w[ Message Comment ] association will use "entryable_id" as # the default :foreign_key. - # [:foreign_type] + # [+:foreign_type+] # Specify the column used to store the associated object's type. By default this is inferred to be the passed # +role+ with a "_type" suffix. A class that defines a # delegated_type :entryable, types: %w[ Message Comment ] association will use "entryable_type" as # the default :foreign_type. - # [:primary_key] + # [+:primary_key+] # Specify the method that returns the primary key of associated object used for the convenience methods. # By default this is +id+. # @@ -19640,8 +19659,8 @@ module ActiveRecord::DelegatedType # delegated_type :entryable, types: %w[ Message Comment ], primary_key: :uuid, foreign_key: :entryable_uuid # end # - # Entry#message_uuid # => returns entryable_uuid, when entryable_type == "Message", otherwise nil - # Entry#comment_uuid # => returns entryable_uuid, when entryable_type == "Comment", otherwise nil + # @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 def delegated_type(role, types:, **options); end @@ -19881,16 +19900,16 @@ class ActiveRecord::DestroyAssociationAsyncJob < ::ActiveJob::Base class << self private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -20073,10 +20092,10 @@ module ActiveRecord::Encryption # source://activerecord//lib/active_record/encryption/configurable.rb#10 def config; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 def custom_contexts; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 def custom_contexts=(obj); end # source://activerecord//lib/active_record/encryption/contexts.rb#17 @@ -20095,10 +20114,10 @@ module ActiveRecord::Encryption # source://activerecord//lib/active_record/encryption/configurable.rb#10 def config; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def custom_contexts; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 def custom_contexts=(obj); end # source://activerecord//lib/active_record/encryption/contexts.rb#17 @@ -21544,7 +21563,7 @@ class ActiveRecord::Encryption::Properties # source://activerecord//lib/active_record/encryption/properties.rb#20 def key?(*_arg0, **_arg1, &_arg2); end - # source://activesupport/8.0.1/lib/active_support/delegation.rb#185 + # source://activesupport/8.0.2/lib/active_support/delegation.rb#185 def method_missing(method, *_arg1, **_arg2, &_arg3); end # source://activerecord//lib/active_record/encryption/properties.rb#68 @@ -21560,7 +21579,7 @@ class ActiveRecord::Encryption::Properties # source://activerecord//lib/active_record/encryption/properties.rb#73 def data; end - # source://activesupport/8.0.1/lib/active_support/delegation.rb#177 + # source://activesupport/8.0.2/lib/active_support/delegation.rb#177 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -24887,16 +24906,16 @@ class ActiveRecord::LogSubscriber < ::ActiveSupport::LogSubscriber private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_backtrace_cleaner; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_backtrace_cleaner=(new_value); end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_log_levels; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_log_levels=(new_value); end end end @@ -26139,27 +26158,27 @@ class ActiveRecord::Migration::CommandRecorder private - # source://activerecord//lib/active_record/migration/command_recorder.rb#324 + # source://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#285 + # source://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#346 + # source://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#304 + # source://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#270 + # source://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#280 + # source://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#314 + # source://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 @@ -26167,7 +26186,7 @@ class ActiveRecord::Migration::CommandRecorder # @raise [ActiveRecord::IrreversibleMigration] # - # source://activerecord//lib/active_record/migration/command_recorder.rb#360 + # source://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 @@ -26175,53 +26194,53 @@ class ActiveRecord::Migration::CommandRecorder # @raise [ActiveRecord::IrreversibleMigration] # - # source://activerecord//lib/active_record/migration/command_recorder.rb#386 + # source://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#332 + # source://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#226 + # source://activerecord//lib/active_record/migration/command_recorder.rb#228 def invert_remove_column(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#231 + # source://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#341 + # source://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#290 + # source://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#249 + # source://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#353 + # source://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#244 + # source://activerecord//lib/active_record/migration/command_recorder.rb#246 def invert_rename_column(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#366 + # source://activerecord//lib/active_record/migration/command_recorder.rb#368 def invert_rename_enum(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#376 + # source://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#239 + # source://activerecord//lib/active_record/migration/command_recorder.rb#241 def invert_rename_index(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#219 + # source://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 @@ -26229,12 +26248,12 @@ class ActiveRecord::Migration::CommandRecorder # Forwards any missing method call to the \target. # - # source://activerecord//lib/active_record/migration/command_recorder.rb#397 + # source://activerecord//lib/active_record/migration/command_recorder.rb#400 def method_missing(method, *_arg1, **_arg2, &_arg3); end # @return [Boolean] # - # source://activerecord//lib/active_record/migration/command_recorder.rb#392 + # source://activerecord//lib/active_record/migration/command_recorder.rb#395 def respond_to_missing?(method, _); end end @@ -28052,23 +28071,23 @@ class ActiveRecord::NoDatabaseError < ::ActiveRecord::StatementInvalid # source://activerecord//lib/active_record/errors.rb#335 def initialize(message = T.unsafe(nil), connection_pool: T.unsafe(nil)); end - # source://activesupport/8.0.1/lib/active_support/actionable_error.rb#17 + # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 def _actions; end - # source://activesupport/8.0.1/lib/active_support/actionable_error.rb#17 + # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 def _actions=(_arg0); end - # source://activesupport/8.0.1/lib/active_support/actionable_error.rb#17 + # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 def _actions?; end class << self - # source://activesupport/8.0.1/lib/active_support/actionable_error.rb#17 + # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 def _actions; end - # source://activesupport/8.0.1/lib/active_support/actionable_error.rb#17 + # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 def _actions=(value); end - # source://activesupport/8.0.1/lib/active_support/actionable_error.rb#17 + # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 def _actions?; end # source://activerecord//lib/active_record/errors.rb#340 @@ -28076,10 +28095,10 @@ class ActiveRecord::NoDatabaseError < ::ActiveRecord::StatementInvalid private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__actions; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__actions=(new_value); end end end @@ -28361,13 +28380,13 @@ class ActiveRecord::PendingMigrationError < ::ActiveRecord::MigrationError # source://activerecord//lib/active_record/migration.rb#159 def initialize(message = T.unsafe(nil), pending_migrations: T.unsafe(nil)); end - # source://activesupport/8.0.1/lib/active_support/actionable_error.rb#17 + # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 def _actions; end - # source://activesupport/8.0.1/lib/active_support/actionable_error.rb#17 + # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 def _actions=(_arg0); end - # source://activesupport/8.0.1/lib/active_support/actionable_error.rb#17 + # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 def _actions?; end private @@ -28379,21 +28398,21 @@ class ActiveRecord::PendingMigrationError < ::ActiveRecord::MigrationError def detailed_migration_message(pending_migrations); end class << self - # source://activesupport/8.0.1/lib/active_support/actionable_error.rb#17 + # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 def _actions; end - # source://activesupport/8.0.1/lib/active_support/actionable_error.rb#17 + # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 def _actions=(value); end - # source://activesupport/8.0.1/lib/active_support/actionable_error.rb#17 + # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 def _actions?; end private - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__actions; end - # source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17 + # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__actions=(new_value); end end end @@ -29554,10 +29573,10 @@ module ActiveRecord::QueryLogs # source://activerecord//lib/active_record/query_logs.rb#115 def cache_query_log_tags=(_arg0); end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def cached_comment; end - # source://activesupport/8.0.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 def cached_comment=(obj); end # source://activerecord//lib/active_record/query_logs.rb#139 @@ -31972,7 +31991,7 @@ module ActiveRecord::Reflection private - # source://activestorage/8.0.1/lib/active_storage/reflection.rb#37 + # source://activestorage/8.0.2/lib/active_storage/reflection.rb#37 def reflection_class_for(macro); end end @@ -33888,7 +33907,7 @@ class ActiveRecord::Relation # # [:returning] # (PostgreSQL, SQLite3, and MariaDB only) An array of attributes to return for all successfully - # inserted records, which by default is the primary key. + # upserted records, which by default is the primary key. # Pass returning: %w[ id name ] for both id and name # or returning: false to omit the underlying RETURNING SQL # clause entirely. @@ -35877,7 +35896,7 @@ module ActiveRecord::SignedId # # @raise [ArgumentError] # - # source://activerecord//lib/active_record/signed_id.rb#131 + # source://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 @@ -35894,7 +35913,7 @@ end # source://activerecord//lib/active_record/signed_id.rb#26 module ActiveRecord::SignedId::ClassMethods - # source://activerecord//lib/active_record/signed_id.rb#102 + # source://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. @@ -35945,17 +35964,18 @@ module ActiveRecord::SignedId::ClassMethods 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 - # with the class-level +signed_id_verifier_secret+, which within \Rails comes from the - # Rails.application.key_generator. By default, it's SHA256 for the digest and JSON for the serialization. + # with the class-level +signed_id_verifier_secret+, which within Rails comes from + # {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#81 + # source://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. + # your custom verifier for that in advance. See ActiveSupport::MessageVerifier for details. # - # source://activerecord//lib/active_record/signed_id.rb#97 + # source://activerecord//lib/active_record/signed_id.rb#98 def signed_id_verifier=(verifier); end end @@ -36158,10 +36178,10 @@ class ActiveRecord::StatementCache::PartialQueryCollector def <<(str); end # source://activerecord//lib/active_record/statement_cache.rb#77 - def add_bind(obj); end + def add_bind(obj, &_arg1); end # source://activerecord//lib/active_record/statement_cache.rb#83 - def add_binds(binds, proc_for_binds = T.unsafe(nil)); end + def add_binds(binds, proc_for_binds = T.unsafe(nil), &_arg2); end # Returns the value of attribute preparable. # @@ -37835,7 +37855,7 @@ module ActiveRecord::Transactions # source://activerecord//lib/active_record/transactions.rb#16 def _new_record_before_last_commit=(_arg0); end - # source://activerecord//lib/active_record/transactions.rb#373 + # source://activerecord//lib/active_record/transactions.rb#372 def before_committed!; end # Call the #after_commit callbacks. @@ -37843,35 +37863,35 @@ 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#381 + # source://activerecord//lib/active_record/transactions.rb#380 def committed!(should_run_callbacks: T.unsafe(nil)); end - # source://activerecord//lib/active_record/transactions.rb#357 + # source://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#393 + # source://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#361 + # source://activerecord//lib/active_record/transactions.rb#360 def save(**_arg0); end - # source://activerecord//lib/active_record/transactions.rb#365 + # source://activerecord//lib/active_record/transactions.rb#364 def save!(**_arg0); end - # source://activerecord//lib/active_record/transactions.rb#369 + # source://activerecord//lib/active_record/transactions.rb#368 def touch(*_arg0, **_arg1); end # See ActiveRecord::Transactions::ClassMethods for detailed documentation. # - # source://activerecord//lib/active_record/transactions.rb#353 + # source://activerecord//lib/active_record/transactions.rb#352 def transaction(**options, &block); end # @return [Boolean] # - # source://activerecord//lib/active_record/transactions.rb#425 + # source://activerecord//lib/active_record/transactions.rb#424 def trigger_transactional_callbacks?; end # Executes a block within a transaction and captures its return value as a @@ -37881,60 +37901,60 @@ module ActiveRecord::Transactions # This method is available within the context of an ActiveRecord::Base # instance. # - # source://activerecord//lib/active_record/transactions.rb#409 + # source://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 + # source://activerecord//lib/active_record/transactions.rb#430 def _committed_already_called; end # Returns the value of attribute _trigger_destroy_callback. # - # source://activerecord//lib/active_record/transactions.rb#431 + # source://activerecord//lib/active_record/transactions.rb#430 def _trigger_destroy_callback; end # Returns the value of attribute _trigger_update_callback. # - # source://activerecord//lib/active_record/transactions.rb#431 + # source://activerecord//lib/active_record/transactions.rb#430 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#513 + # source://activerecord//lib/active_record/transactions.rb#512 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#461 + # source://activerecord//lib/active_record/transactions.rb#460 def clear_transaction_record_state; end # @return [Boolean] # - # source://activerecord//lib/active_record/transactions.rb#519 + # source://activerecord//lib/active_record/transactions.rb#518 def has_transactional_callbacks?; end - # source://activerecord//lib/active_record/transactions.rb#433 + # source://activerecord//lib/active_record/transactions.rb#432 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#441 + # source://activerecord//lib/active_record/transactions.rb#440 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#468 + # source://activerecord//lib/active_record/transactions.rb#467 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#498 + # source://activerecord//lib/active_record/transactions.rb#497 def transaction_include_any_action?(actions); end end @@ -38145,16 +38165,15 @@ ActiveRecord::Transactions::ACTIONS = T.let(T.unsafe(nil), Array) # database error will occur because the savepoint has already been # automatically released. The following example demonstrates the problem: # -# Model.lease_connection.transaction do # BEGIN -# Model.lease_connection.transaction(requires_new: true) do # CREATE SAVEPOINT active_record_1 -# Model.lease_connection.create_table(...) # active_record_1 now automatically released -# end # RELEASE SAVEPOINT active_record_1 -# # ^^^^ BOOM! database error! -# end +# Model.transaction do # BEGIN +# Model.transaction(requires_new: true) do # CREATE SAVEPOINT active_record_1 +# Model.lease_connection.create_table(...) # active_record_1 now automatically released +# end # RELEASE SAVEPOINT active_record_1 +# end # ^^^^ BOOM! database error! # # Note that "TRUNCATE" is also a MySQL DDL statement! # -# source://activerecord//lib/active_record/transactions.rb#230 +# source://activerecord//lib/active_record/transactions.rb#229 module ActiveRecord::Transactions::ClassMethods # This callback is called after a record has been created, updated, or destroyed. # @@ -38168,37 +38187,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#266 + # source://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#278 + # source://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#290 + # source://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#298 + # source://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#272 + # source://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#284 + # source://activerecord//lib/active_record/transactions.rb#283 def after_update_commit(*args, &block); end - # source://activerecord//lib/active_record/transactions.rb#249 + # source://activerecord//lib/active_record/transactions.rb#248 def before_commit(*args, &block); end # Returns a representation of the current transaction state, @@ -38209,29 +38228,29 @@ module ActiveRecord::Transactions::ClassMethods # # See the ActiveRecord::Transaction documentation for detailed behavior. # - # source://activerecord//lib/active_record/transactions.rb#245 + # source://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#305 + # source://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#232 + # source://activerecord//lib/active_record/transactions.rb#231 def transaction(**options, &block); end private - # source://activerecord//lib/active_record/transactions.rb#345 + # source://activerecord//lib/active_record/transactions.rb#344 def assert_valid_transaction_action(actions); end - # source://activerecord//lib/active_record/transactions.rb#323 + # source://activerecord//lib/active_record/transactions.rb#322 def prepend_option; end - # source://activerecord//lib/active_record/transactions.rb#331 + # source://activerecord//lib/active_record/transactions.rb#330 def set_options_for_callbacks!(args, enforced_options = T.unsafe(nil)); end end @@ -39343,7 +39362,7 @@ class Arel::Collectors::Bind def add_bind(bind, &_arg1); end # source://activerecord//lib/arel/collectors/bind.rb#21 - def add_binds(binds, proc_for_binds = T.unsafe(nil)); end + def add_binds(binds, proc_for_binds = T.unsafe(nil), &_arg2); end # Returns the value of attribute retryable. # @@ -39435,7 +39454,7 @@ class Arel::Collectors::SQLString < ::Arel::Collectors::PlainString def initialize(*_arg0); end # source://activerecord//lib/arel/collectors/sql_string.rb#15 - def add_bind(bind); end + def add_bind(bind, &_arg1); end # source://activerecord//lib/arel/collectors/sql_string.rb#21 def add_binds(binds, proc_for_binds = T.unsafe(nil), &block); end @@ -39476,10 +39495,10 @@ class Arel::Collectors::SubstituteBinds def <<(str); end # source://activerecord//lib/arel/collectors/substitute_binds.rb#18 - def add_bind(bind); end + def add_bind(bind, &_arg1); end # source://activerecord//lib/arel/collectors/substitute_binds.rb#23 - def add_binds(binds, proc_for_binds = T.unsafe(nil)); end + def add_binds(binds, proc_for_binds = T.unsafe(nil), &_arg2); end # Returns the value of attribute preparable. # @@ -40405,7 +40424,7 @@ end # source://activerecord//lib/arel/nodes/binary.rb#32 module Arel::Nodes::FetchAttribute # source://activerecord//lib/arel/nodes/binary.rb#33 - def fetch_attribute; end + def fetch_attribute(&_arg0); end end # source://activerecord//lib/arel/nodes/filter.rb#5 @@ -41060,7 +41079,7 @@ class Arel::Nodes::Node def equality?; end # source://activerecord//lib/arel/nodes/node.rb#155 - def fetch_attribute; end + def fetch_attribute(&_arg0); end # source://activerecord//lib/arel/nodes/node.rb#139 def invert; end @@ -41500,7 +41519,7 @@ class Arel::Nodes::SqlLiteral < ::String def encode_with(coder); end # source://activerecord//lib/arel/nodes/sql_literal.rb#22 - def fetch_attribute; end + def fetch_attribute(&_arg0); end # Returns the value of attribute retryable. # diff --git a/sorbet/rbi/gems/activesupport@8.0.1.rbi b/sorbet/rbi/gems/activesupport@8.0.2.rbi similarity index 98% rename from sorbet/rbi/gems/activesupport@8.0.1.rbi rename to sorbet/rbi/gems/activesupport@8.0.2.rbi index be1a345d..71f34d8b 100644 --- a/sorbet/rbi/gems/activesupport@8.0.1.rbi +++ b/sorbet/rbi/gems/activesupport@8.0.2.rbi @@ -298,7 +298,7 @@ class ActiveSupport::BacktraceCleaner # # # Will turn "/my/rails/root/app/models/person.rb" into "app/models/person.rb" # root = "#{Rails.root}/" - # backtrace_cleaner.add_filter { |line| line.start_with?(root) ? line.from(root.size) : line } + # backtrace_cleaner.add_filter { |line| line.delete_prefix(root) } # # source://activesupport//lib/active_support/backtrace_cleaner.rb#83 def add_filter(&block); end @@ -543,13 +543,13 @@ class ActiveSupport::BroadcastLogger # source://activesupport//lib/active_support/broadcast_logger.rb#121 def debug(*_arg0, **_arg1, &_arg2); end - # Sets the log level to Logger::DEBUG for the whole broadcast. + # Sets the log level to +Logger::DEBUG+ for the whole broadcast. # # source://activesupport//lib/active_support/broadcast_logger.rb#173 def debug!; end - # +True+ if the log level allows entries with severity Logger::DEBUG to be written - # to at least one broadcast. +False+ otherwise. + # True if the log level allows entries with severity +Logger::DEBUG+ to be written + # to at least one broadcast. False otherwise. # # @return [Boolean] # @@ -559,13 +559,13 @@ class ActiveSupport::BroadcastLogger # source://activesupport//lib/active_support/broadcast_logger.rb#133 def error(*_arg0, **_arg1, &_arg2); end - # Sets the log level to Logger::ERROR for the whole broadcast. + # Sets the log level to +Logger::ERROR+ for the whole broadcast. # # source://activesupport//lib/active_support/broadcast_logger.rb#206 def error!; end - # +True+ if the log level allows entries with severity Logger::ERROR to be written - # to at least one broadcast. +False+ otherwise. + # True if the log level allows entries with severity +Logger::ERROR+ to be written + # to at least one broadcast. False otherwise. # # @return [Boolean] # @@ -575,13 +575,13 @@ class ActiveSupport::BroadcastLogger # source://activesupport//lib/active_support/broadcast_logger.rb#137 def fatal(*_arg0, **_arg1, &_arg2); end - # Sets the log level to Logger::FATAL for the whole broadcast. + # Sets the log level to +Logger::FATAL+ for the whole broadcast. # # source://activesupport//lib/active_support/broadcast_logger.rb#217 def fatal!; end - # +True+ if the log level allows entries with severity Logger::FATAL to be written - # to at least one broadcast. +False+ otherwise. + # True if the log level allows entries with severity +Logger::FATAL+ to be written + # to at least one broadcast. False otherwise. # # @return [Boolean] # @@ -599,13 +599,13 @@ class ActiveSupport::BroadcastLogger # source://activesupport//lib/active_support/broadcast_logger.rb#125 def info(*_arg0, **_arg1, &_arg2); end - # Sets the log level to Logger::INFO for the whole broadcast. + # Sets the log level to +Logger::INFO+ for the whole broadcast. # # source://activesupport//lib/active_support/broadcast_logger.rb#184 def info!; end - # +True+ if the log level allows entries with severity Logger::INFO to be written - # to at least one broadcast. +False+ otherwise. + # True if the log level allows entries with severity +Logger::INFO+ to be written + # to at least one broadcast. False otherwise. # # @return [Boolean] # @@ -662,13 +662,13 @@ class ActiveSupport::BroadcastLogger # source://activesupport//lib/active_support/broadcast_logger.rb#129 def warn(*_arg0, **_arg1, &_arg2); end - # Sets the log level to Logger::WARN for the whole broadcast. + # Sets the log level to +Logger::WARN+ for the whole broadcast. # # source://activesupport//lib/active_support/broadcast_logger.rb#195 def warn!; end - # +True+ if the log level allows entries with severity Logger::WARN to be written - # to at least one broadcast. +False+ otherwise. + # True if the log level allows entries with severity +Logger::WARN+ to be written + # to at least one broadcast. False otherwise. # # @return [Boolean] # @@ -1007,7 +1007,7 @@ class ActiveSupport::Cache::FileStore < ::ActiveSupport::Cache::Store # cache.decrement("baz") # => 4 # # source://activesupport//lib/active_support/cache/file_store.rb#80 - def decrement(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end + def decrement(name, amount = T.unsafe(nil), **options); end # source://activesupport//lib/active_support/cache/file_store.rb#89 def delete_matched(matcher, options = T.unsafe(nil)); end @@ -1025,7 +1025,7 @@ class ActiveSupport::Cache::FileStore < ::ActiveSupport::Cache::Store # cache.increment("baz") # => 6 # # source://activesupport//lib/active_support/cache/file_store.rb#60 - def increment(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end + def increment(name, amount = T.unsafe(nil), **options); end # source://activesupport//lib/active_support/cache/file_store.rb#101 def inspect; end @@ -1158,7 +1158,7 @@ class ActiveSupport::Cache::MemoryStore < ::ActiveSupport::Cache::Store # cache.decrement("baz") # => 4 # # source://activesupport//lib/active_support/cache/memory_store.rb#166 - def decrement(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end + def decrement(name, amount = T.unsafe(nil), **options); end # Deletes cache entries if the cache key matches a given pattern. # @@ -1178,7 +1178,7 @@ class ActiveSupport::Cache::MemoryStore < ::ActiveSupport::Cache::Store # cache.increment("baz") # => 6 # # source://activesupport//lib/active_support/cache/memory_store.rb#149 - def increment(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end + def increment(name, amount = T.unsafe(nil), **options); end # source://activesupport//lib/active_support/cache/memory_store.rb#185 def inspect; end @@ -1214,7 +1214,7 @@ class ActiveSupport::Cache::MemoryStore < ::ActiveSupport::Cache::Store # If the key is not found it is created and set to +amount+. # # source://activesupport//lib/active_support/cache/memory_store.rb#241 - def modify_value(name, amount, options); end + def modify_value(name, amount, **options); end # source://activesupport//lib/active_support/cache/memory_store.rb#202 def read_entry(key, **options); end @@ -1280,33 +1280,33 @@ class ActiveSupport::Cache::NullStore < ::ActiveSupport::Cache::Store # source://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#108 - def decrement(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end + # source://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 def delete_matched(matcher, options = T.unsafe(nil)); end # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#97 - def increment(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end + def increment(name, amount = T.unsafe(nil), **options); end # source://activesupport//lib/active_support/cache/null_store.rb#37 def inspect; end private - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#162 + # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#198 def delete_entry(key, **_arg1); end # source://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#120 + # source://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/null_store.rb#49 def write_entry(key, entry, **_arg2); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#153 + # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#189 def write_serialized_entry(key, payload, **_arg2); end class << self @@ -1688,7 +1688,7 @@ class ActiveSupport::Cache::Store # process can try to generate a new value after the extended time window # has elapsed. # - # # Set all values to expire after one minute. + # # Set all values to expire after one second. # cache = ActiveSupport::Cache::MemoryStore.new(expires_in: 1) # # cache.write("foo", "original value") @@ -1942,7 +1942,7 @@ class ActiveSupport::Cache::Store # source://activesupport//lib/active_support/cache.rb#994 def expanded_version(key); end - # source://activesupport//lib/active_support/cache.rb#1048 + # source://activesupport//lib/active_support/cache.rb#1047 def get_entry_value(entry, name, options); end # source://activesupport//lib/active_support/cache.rb#1031 @@ -2014,7 +2014,7 @@ class ActiveSupport::Cache::Store # source://activesupport//lib/active_support/cache.rb#823 def read_multi_entries(names, **options); end - # source://activesupport//lib/active_support/cache.rb#1053 + # source://activesupport//lib/active_support/cache.rb#1052 def save_block_result_to_cache(name, key, options); end # source://activesupport//lib/active_support/cache.rb#806 @@ -2074,14 +2074,17 @@ module ActiveSupport::Cache::Strategy::LocalCache # source://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#108 - def decrement(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end + # source://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 def delete_matched(matcher, options = T.unsafe(nil)); end + # source://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 - def increment(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end + 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. @@ -2096,31 +2099,31 @@ module ActiveSupport::Cache::Strategy::LocalCache private - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#185 + # source://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#162 + # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#198 def delete_entry(key, **_arg1); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#181 + # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#217 def local_cache; end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#177 + # source://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#134 + # source://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#120 + # source://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#189 + # source://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#167 + # source://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#153 + # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#189 def write_serialized_entry(key, payload, **_arg2); end end @@ -2203,37 +2206,37 @@ 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 +# source://activesupport//lib/active_support/cache.rb#1068 class ActiveSupport::Cache::WriteOptions # @return [WriteOptions] a new instance of WriteOptions # - # source://activesupport//lib/active_support/cache.rb#1070 + # source://activesupport//lib/active_support/cache.rb#1069 def initialize(options); end - # source://activesupport//lib/active_support/cache.rb#1094 + # source://activesupport//lib/active_support/cache.rb#1093 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 + # source://activesupport//lib/active_support/cache.rb#1100 def expires_at=(expires_at); end - # source://activesupport//lib/active_support/cache.rb#1082 + # source://activesupport//lib/active_support/cache.rb#1081 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 + # source://activesupport//lib/active_support/cache.rb#1088 def expires_in=(expires_in); end - # source://activesupport//lib/active_support/cache.rb#1074 + # source://activesupport//lib/active_support/cache.rb#1073 def version; end - # source://activesupport//lib/active_support/cache.rb#1078 + # source://activesupport//lib/active_support/cache.rb#1077 def version=(version); end end @@ -2587,76 +2590,76 @@ end # source://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#566 +# source://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#571 + # source://activesupport//lib/active_support/callbacks.rb#572 def initialize(name, config); end - # source://activesupport//lib/active_support/callbacks.rb#631 + # source://activesupport//lib/active_support/callbacks.rb#632 def append(*callbacks); end - # source://activesupport//lib/active_support/callbacks.rb#599 + # source://activesupport//lib/active_support/callbacks.rb#600 def clear; end - # source://activesupport//lib/active_support/callbacks.rb#613 + # source://activesupport//lib/active_support/callbacks.rb#614 def compile(type); end # Returns the value of attribute config. # - # source://activesupport//lib/active_support/callbacks.rb#569 + # source://activesupport//lib/active_support/callbacks.rb#570 def config; end - # source://activesupport//lib/active_support/callbacks.rb#593 + # source://activesupport//lib/active_support/callbacks.rb#594 def delete(o); end - # source://activesupport//lib/active_support/callbacks.rb#583 + # source://activesupport//lib/active_support/callbacks.rb#584 def each(&block); end # @return [Boolean] # - # source://activesupport//lib/active_support/callbacks.rb#585 + # source://activesupport//lib/active_support/callbacks.rb#586 def empty?; end - # source://activesupport//lib/active_support/callbacks.rb#584 + # source://activesupport//lib/active_support/callbacks.rb#585 def index(o); end - # source://activesupport//lib/active_support/callbacks.rb#587 + # source://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#569 + # source://activesupport//lib/active_support/callbacks.rb#570 def name; end - # source://activesupport//lib/active_support/callbacks.rb#635 + # source://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#640 + # source://activesupport//lib/active_support/callbacks.rb#641 def chain; end private - # source://activesupport//lib/active_support/callbacks.rb#643 + # source://activesupport//lib/active_support/callbacks.rb#644 def append_one(callback); end - # source://activesupport//lib/active_support/callbacks.rb#663 + # source://activesupport//lib/active_support/callbacks.rb#664 def default_terminator; end - # source://activesupport//lib/active_support/callbacks.rb#606 + # source://activesupport//lib/active_support/callbacks.rb#607 def initialize_copy(other); end - # source://activesupport//lib/active_support/callbacks.rb#650 + # source://activesupport//lib/active_support/callbacks.rb#651 def prepend_one(callback); end - # source://activesupport//lib/active_support/callbacks.rb#657 + # source://activesupport//lib/active_support/callbacks.rb#658 def remove_duplicates(callback); end end @@ -2664,53 +2667,53 @@ end # chaining them with nested lambda calls, see: # https://github.com/rails/rails/issues/18011 # -# source://activesupport//lib/active_support/callbacks.rb#517 +# source://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#518 + # source://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#533 + # source://activesupport//lib/active_support/callbacks.rb#534 def after(after); end - # source://activesupport//lib/active_support/callbacks.rb#539 + # source://activesupport//lib/active_support/callbacks.rb#540 def around(call_template, user_conditions); end - # source://activesupport//lib/active_support/callbacks.rb#527 + # source://activesupport//lib/active_support/callbacks.rb#528 def before(before); end - # source://activesupport//lib/active_support/callbacks.rb#553 + # source://activesupport//lib/active_support/callbacks.rb#554 def expand_call_template(arg, block); end # @return [Boolean] # - # source://activesupport//lib/active_support/callbacks.rb#549 + # source://activesupport//lib/active_support/callbacks.rb#550 def final?; end - # source://activesupport//lib/active_support/callbacks.rb#561 + # source://activesupport//lib/active_support/callbacks.rb#562 def invoke_after(arg); end - # source://activesupport//lib/active_support/callbacks.rb#557 + # source://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#547 + # source://activesupport//lib/active_support/callbacks.rb#548 def nested; end # @return [Boolean] # - # source://activesupport//lib/active_support/callbacks.rb#543 + # source://activesupport//lib/active_support/callbacks.rb#544 def skip?(arg); end end -# source://activesupport//lib/active_support/callbacks.rb#675 +# source://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#685 + # source://activesupport//lib/active_support/callbacks.rb#686 def __update_callbacks(name); end # Define sets of events in the object life cycle that support callbacks. @@ -2792,15 +2795,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#900 + # source://activesupport//lib/active_support/callbacks.rb#901 def define_callbacks(*names); end - # source://activesupport//lib/active_support/callbacks.rb#676 + # source://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#810 + # source://activesupport//lib/active_support/callbacks.rb#811 def reset_callbacks(name); end # Install a callback for the given event. @@ -2848,7 +2851,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#736 + # source://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 @@ -2887,15 +2890,15 @@ 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#785 + # source://activesupport//lib/active_support/callbacks.rb#786 def skip_callback(name, *filter_list, &block); end protected - # source://activesupport//lib/active_support/callbacks.rb#931 + # source://activesupport//lib/active_support/callbacks.rb#932 def get_callbacks(name); end - # source://activesupport//lib/active_support/callbacks.rb#935 + # source://activesupport//lib/active_support/callbacks.rb#936 def set_callbacks(name, callbacks); end end @@ -3764,10 +3767,10 @@ class ActiveSupport::CurrentAttributes # source://activesupport//lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#923 + # source://activesupport//lib/active_support/callbacks.rb#924 def _reset_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#911 + # source://activesupport//lib/active_support/callbacks.rb#912 def _run_reset_callbacks(&block); end # Returns the value of attribute attributes. @@ -3819,10 +3822,10 @@ class ActiveSupport::CurrentAttributes # source://activesupport//lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#915 + # source://activesupport//lib/active_support/callbacks.rb#916 def _reset_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#919 + # source://activesupport//lib/active_support/callbacks.rb#920 def _reset_callbacks=(value); end # Calls this callback after #reset is called on the instance. Used for resetting external collaborators, like Time.zone. @@ -3842,6 +3845,12 @@ class ActiveSupport::CurrentAttributes # source://activesupport//lib/active_support/current_attributes.rb#114 def attribute(*names, default: T.unsafe(nil)); end + # source://activesupport//lib/active_support/current_attributes.rb#191 + def attributes(&_arg0); end + + # source://activesupport//lib/active_support/current_attributes.rb#191 + 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 @@ -5836,7 +5845,14 @@ class ActiveSupport::ErrorReporter # # Rails.error.report(error) # - # source://activesupport//lib/active_support/error_reporter.rb#210 + # The +error+ argument must be an instance of Exception. + # + # Rails.error.report(Exception.new("Something went wrong")) + # + # Otherwise you can use #unexpected to report an error which does accept a + # string argument. + # + # source://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 @@ -5897,7 +5913,7 @@ class ActiveSupport::ErrorReporter private - # source://activesupport//lib/active_support/error_reporter.rb#243 + # source://activesupport//lib/active_support/error_reporter.rb#252 def ensure_backtrace(error); end end @@ -5950,16 +5966,16 @@ class ActiveSupport::ExecutionWrapper # source://activesupport//lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#923 + # source://activesupport//lib/active_support/callbacks.rb#924 def _complete_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#923 + # source://activesupport//lib/active_support/callbacks.rb#924 def _run_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#911 + # source://activesupport//lib/active_support/callbacks.rb#912 def _run_complete_callbacks(&block); end - # source://activesupport//lib/active_support/callbacks.rb#911 + # source://activesupport//lib/active_support/callbacks.rb#912 def _run_run_callbacks(&block); end # source://activesupport//lib/active_support/execution_wrapper.rb#141 @@ -5991,16 +6007,16 @@ class ActiveSupport::ExecutionWrapper # source://activesupport//lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#915 + # source://activesupport//lib/active_support/callbacks.rb#916 def _complete_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#919 + # source://activesupport//lib/active_support/callbacks.rb#920 def _complete_callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#915 + # source://activesupport//lib/active_support/callbacks.rb#916 def _run_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#919 + # source://activesupport//lib/active_support/callbacks.rb#920 def _run_callbacks=(value); end # @return [Boolean] @@ -7500,10 +7516,58 @@ module ActiveSupport::JSON # source://activesupport//lib/active_support/json/decoding.rb#22 def decode(json); end - # source://activesupport//lib/active_support/json/encoding.rb#22 + # 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 def dump(value, options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/json/encoding.rb#22 + # 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 def encode(value, options = T.unsafe(nil)); end # Parses a JSON string (JavaScript Object Notation) into a hash. @@ -7544,74 +7608,74 @@ ActiveSupport::JSON::DATETIME_REGEX = T.let(T.unsafe(nil), Regexp) # source://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#28 +# source://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#103 + # source://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#103 + # source://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#111 + # source://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#111 + # source://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#107 + # source://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#107 + # source://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#99 + # source://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#99 + # source://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#29 +# source://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#32 + # source://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#37 + # source://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#30 + # source://activesupport//lib/active_support/json/encoding.rb#48 def options; end private @@ -7630,12 +7694,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#70 + # source://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#91 + # source://activesupport//lib/active_support/json/encoding.rb#109 def stringify(jsonified); end end @@ -8256,7 +8320,7 @@ class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec # source://activesupport//lib/active_support/message_encryptor.rb#264 def inspect; end - # source://activesupport//lib/active_support/messages/rotator.rb#23 + # source://activesupport//lib/active_support/messages/rotator.rb#28 def read_message(message, on_rotation: T.unsafe(nil), **options); end private @@ -8495,6 +8559,8 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # not URL-safe. In other words, they can contain "+" and "/". If you want to # generate URL-safe strings (in compliance with "Base 64 Encoding with URL # and Filename Safe Alphabet" in RFC 4648), you can pass +true+. + # Note that MessageVerifier will always accept both URL-safe and URL-unsafe + # encoded messages, to allow a smooth transition between the two settings. # # [+:force_legacy_metadata_serializer+] # Whether to use the legacy metadata serializer, which serializes the @@ -8510,7 +8576,7 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # source://activesupport//lib/active_support/messages/rotator.rb#6 def initialize(*args, on_rotation: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/message_verifier.rb#308 + # source://activesupport//lib/active_support/message_verifier.rb#310 def create_message(value, **options); end # Generates a signed message for the provided value. @@ -8548,13 +8614,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#304 + # source://activesupport//lib/active_support/message_verifier.rb#306 def generate(value, **options); end - # source://activesupport//lib/active_support/message_verifier.rb#316 + # source://activesupport//lib/active_support/message_verifier.rb#318 def inspect; end - # source://activesupport//lib/active_support/messages/rotator.rb#23 + # source://activesupport//lib/active_support/messages/rotator.rb#28 def read_message(message, on_rotation: T.unsafe(nil), **options); end # Checks if a signed message could have been generated by signing an object @@ -8569,7 +8635,7 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # # @return [Boolean] # - # source://activesupport//lib/active_support/message_verifier.rb#181 + # source://activesupport//lib/active_support/message_verifier.rb#183 def valid_message?(message); end # Decodes the signed message using the +MessageVerifier+'s secret. @@ -8609,7 +8675,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#222 + # source://activesupport//lib/active_support/message_verifier.rb#224 def verified(message, **options); end # Decodes the signed message using the +MessageVerifier+'s secret. @@ -8640,34 +8706,37 @@ 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#260 + # source://activesupport//lib/active_support/message_verifier.rb#262 def verify(message, **options); end private - # source://activesupport//lib/active_support/message_verifier.rb#347 + # source://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 def digest_length_in_hex; end # @return [Boolean] # - # source://activesupport//lib/active_support/message_verifier.rb#364 + # source://activesupport//lib/active_support/message_verifier.rb#373 def digest_matches_data?(digest, data); end - # source://activesupport//lib/active_support/message_verifier.rb#326 + # source://activesupport//lib/active_support/message_verifier.rb#335 def extract_encoded(signed); end - # source://activesupport//lib/active_support/message_verifier.rb#343 + # source://activesupport//lib/active_support/message_verifier.rb#352 def generate_digest(data); end # @return [Boolean] # - # source://activesupport//lib/active_support/message_verifier.rb#355 + # source://activesupport//lib/active_support/message_verifier.rb#364 def separator_at?(signed_message, index); end - # source://activesupport//lib/active_support/message_verifier.rb#359 + # source://activesupport//lib/active_support/message_verifier.rb#368 def separator_index_for(signed_message); end - # source://activesupport//lib/active_support/message_verifier.rb#321 + # source://activesupport//lib/active_support/message_verifier.rb#330 def sign_encoded(encoded); end end @@ -8684,7 +8753,7 @@ ActiveSupport::MessageVerifier::SEPARATOR_LENGTH = T.let(T.unsafe(nil), Integer) class ActiveSupport::MessageVerifiers < ::ActiveSupport::Messages::RotationCoordinator private - # source://activesupport//lib/active_support/message_verifiers.rb#131 + # source://activesupport//lib/active_support/message_verifiers.rb#133 def build(salt, secret_generator:, secret_generator_options:, **options); end end @@ -8897,10 +8966,13 @@ module ActiveSupport::Messages::Rotator # source://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#18 + # source://activesupport//lib/active_support/messages/rotator.rb#23 def fall_back_to(fallback); end - # source://activesupport//lib/active_support/messages/rotator.rb#23 + # source://activesupport//lib/active_support/messages/rotator.rb#18 + def on_rotation(&on_rotation); end + + # source://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 @@ -8908,10 +8980,10 @@ module ActiveSupport::Messages::Rotator private - # source://activesupport//lib/active_support/messages/rotator.rb#44 + # source://activesupport//lib/active_support/messages/rotator.rb#49 def build_rotation(*args, **options); end - # source://activesupport//lib/active_support/messages/rotator.rb#48 + # source://activesupport//lib/active_support/messages/rotator.rb#53 def catch_rotation_error(&block); end end @@ -9130,7 +9202,7 @@ class ActiveSupport::Multibyte::Chars # source://activesupport//lib/active_support/multibyte/chars.rb#53 def acts_like_string?(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/multibyte/chars.rb#161 + # source://activesupport//lib/active_support/multibyte/chars.rb#164 def as_json(options = T.unsafe(nil)); end # Performs composition on all the characters. @@ -9138,7 +9210,7 @@ class ActiveSupport::Multibyte::Chars # 'é'.length # => 1 # 'é'.mb_chars.compose.to_s.length # => 1 # - # source://activesupport//lib/active_support/multibyte/chars.rb#140 + # source://activesupport//lib/active_support/multibyte/chars.rb#143 def compose; end # Performs canonical decomposition on all the characters. @@ -9146,7 +9218,7 @@ class ActiveSupport::Multibyte::Chars # 'é'.length # => 1 # 'é'.mb_chars.decompose.to_s.length # => 2 # - # source://activesupport//lib/active_support/multibyte/chars.rb#132 + # source://activesupport//lib/active_support/multibyte/chars.rb#135 def decompose; end # Returns the number of grapheme clusters in the string. @@ -9154,7 +9226,7 @@ class ActiveSupport::Multibyte::Chars # 'क्षि'.mb_chars.length # => 4 # 'क्षि'.mb_chars.grapheme_length # => 2 # - # source://activesupport//lib/active_support/multibyte/chars.rb#148 + # source://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 @@ -9163,7 +9235,7 @@ class ActiveSupport::Multibyte::Chars # # 'こんにちは'.mb_chars.limit(7).to_s # => "こん" # - # source://activesupport//lib/active_support/multibyte/chars.rb#115 + # source://activesupport//lib/active_support/multibyte/chars.rb#118 def limit(limit); end # source://activesupport//lib/active_support/multibyte/chars.rb#53 @@ -9171,17 +9243,17 @@ class ActiveSupport::Multibyte::Chars # Forward all undefined methods to the wrapped string. # - # source://activesupport//lib/active_support/multibyte/chars.rb#62 + # source://activesupport//lib/active_support/multibyte/chars.rb#65 def method_missing(method, *_arg1, **_arg2, &_arg3); end # Reverses all characters in the string. # # 'Café'.mb_chars.reverse.to_s # => 'éfaC' # - # source://activesupport//lib/active_support/multibyte/chars.rb#106 + # source://activesupport//lib/active_support/multibyte/chars.rb#109 def reverse; end - # source://activesupport//lib/active_support/multibyte/chars.rb#166 + # source://activesupport//lib/active_support/multibyte/chars.rb#169 def reverse!(*args); end # Works like String#slice!, but returns an instance of @@ -9194,7 +9266,7 @@ class ActiveSupport::Multibyte::Chars # string.mb_chars.slice!(0..3) # => # # string # => 'me' # - # source://activesupport//lib/active_support/multibyte/chars.rb#96 + # source://activesupport//lib/active_support/multibyte/chars.rb#99 def slice!(*args); end # Works just like String#split, with the exception that the items @@ -9203,7 +9275,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#83 + # source://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 @@ -9212,10 +9284,10 @@ 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#157 + # source://activesupport//lib/active_support/multibyte/chars.rb#160 def tidy_bytes(force = T.unsafe(nil)); end - # source://activesupport//lib/active_support/multibyte/chars.rb#166 + # source://activesupport//lib/active_support/multibyte/chars.rb#169 def tidy_bytes!(*args); end # Capitalizes the first letter of every word, when possible. @@ -9223,7 +9295,7 @@ 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#123 + # source://activesupport//lib/active_support/multibyte/chars.rb#126 def titlecase; end # Capitalizes the first letter of every word, when possible. @@ -9231,7 +9303,7 @@ 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#123 + # source://activesupport//lib/active_support/multibyte/chars.rb#126 def titleize; end # Returns the value of attribute wrapped_string. @@ -9251,7 +9323,7 @@ class ActiveSupport::Multibyte::Chars private - # source://activesupport//lib/active_support/multibyte/chars.rb#173 + # source://activesupport//lib/active_support/multibyte/chars.rb#176 def chars(string); end # Returns +true+ if _obj_ responds to the given method. Private methods @@ -9260,7 +9332,7 @@ class ActiveSupport::Multibyte::Chars # # @return [Boolean] # - # source://activesupport//lib/active_support/multibyte/chars.rb#74 + # source://activesupport//lib/active_support/multibyte/chars.rb#77 def respond_to_missing?(method, include_private); end end @@ -11389,16 +11461,16 @@ class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper # source://activesupport//lib/active_support/reloader.rb#99 def initialize; end - # source://activesupport//lib/active_support/callbacks.rb#923 + # source://activesupport//lib/active_support/callbacks.rb#924 def _class_unload_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#923 + # source://activesupport//lib/active_support/callbacks.rb#924 def _prepare_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#911 + # source://activesupport//lib/active_support/callbacks.rb#912 def _run_class_unload_callbacks(&block); end - # source://activesupport//lib/active_support/callbacks.rb#911 + # source://activesupport//lib/active_support/callbacks.rb#912 def _run_prepare_callbacks(&block); end # source://activesupport//lib/active_support/reloader.rb#85 @@ -11440,16 +11512,16 @@ class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper def run!; end class << self - # source://activesupport//lib/active_support/callbacks.rb#915 + # source://activesupport//lib/active_support/callbacks.rb#916 def _class_unload_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#919 + # source://activesupport//lib/active_support/callbacks.rb#920 def _class_unload_callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#915 + # source://activesupport//lib/active_support/callbacks.rb#916 def _prepare_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#919 + # source://activesupport//lib/active_support/callbacks.rb#920 def _prepare_callbacks=(value); end # Registers a callback that will run immediately after the classes are unloaded. @@ -12276,16 +12348,16 @@ class ActiveSupport::TestCase < ::Minitest::Test # source://activesupport//lib/active_support/callbacks.rb#69 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#911 + # source://activesupport//lib/active_support/callbacks.rb#912 def _run_setup_callbacks(&block); end - # source://activesupport//lib/active_support/callbacks.rb#911 + # source://activesupport//lib/active_support/callbacks.rb#912 def _run_teardown_callbacks(&block); end - # source://activesupport//lib/active_support/callbacks.rb#923 + # source://activesupport//lib/active_support/callbacks.rb#924 def _setup_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#923 + # source://activesupport//lib/active_support/callbacks.rb#924 def _teardown_callbacks; end # source://minitest/5.25.4/lib/minitest/assertions.rb#731 @@ -12346,16 +12418,16 @@ class ActiveSupport::TestCase < ::Minitest::Test # source://activesupport//lib/active_support/callbacks.rb#69 def __callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#915 + # source://activesupport//lib/active_support/callbacks.rb#916 def _setup_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#919 + # source://activesupport//lib/active_support/callbacks.rb#920 def _setup_callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#915 + # source://activesupport//lib/active_support/callbacks.rb#916 def _teardown_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#919 + # source://activesupport//lib/active_support/callbacks.rb#920 def _teardown_callbacks=(value); end # source://activesupport//lib/active_support/testing/file_fixtures.rb#20 @@ -17112,7 +17184,7 @@ module Enumerable def pluck(*keys); end # Returns the sole item in the enumerable. If there are no items, or more - # than one item, raises +Enumerable::SoleItemExpectedError+. + # than one item, raises Enumerable::SoleItemExpectedError. # # ["x"].sole # => "x" # Set.new.sole # => Enumerable::SoleItemExpectedError: no item found @@ -17261,17 +17333,9 @@ class Hash # source://activesupport//lib/active_support/core_ext/object/deep_dup.rb#43 def deep_dup; end - # :method: deep_merge! - # :call-seq: deep_merge!(other_hash, &block) - # - # Same as #deep_merge, but modifies +self+. - # - # -- - # Implemented by ActiveSupport::DeepMergeable#deep_merge!. - # # @return [Boolean] # - # source://activesupport//lib/active_support/core_ext/hash/deep_merge.rb#39 + # source://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. @@ -18677,7 +18741,7 @@ class Module # M.module_parent # => Object # Module.new.module_parent # => Object # - # source://activesupport//lib/active_support/core_ext/module/introspection.rb#34 + # source://activesupport//lib/active_support/core_ext/module/introspection.rb#37 def module_parent; end # Returns the name of the module containing this one. @@ -18700,7 +18764,7 @@ class Module # M::N.module_parents # => [M, Object] # X.module_parents # => [M, Object] # - # source://activesupport//lib/active_support/core_ext/module/introspection.rb#50 + # 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 diff --git a/sorbet/rbi/gems/json@2.10.2.rbi b/sorbet/rbi/gems/json@2.10.2.rbi index c1df0fc1..f8cd4dc2 100644 --- a/sorbet/rbi/gems/json@2.10.2.rbi +++ b/sorbet/rbi/gems/json@2.10.2.rbi @@ -1,4 +1,4 @@ -# typed: true +# typed: false # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `json` gem. diff --git a/sorbet/rbi/gems/rubocop-ast@1.38.1.rbi b/sorbet/rbi/gems/rubocop-ast@1.38.1.rbi index 2d36ce04..1be27c8b 100644 --- a/sorbet/rbi/gems/rubocop-ast@1.38.1.rbi +++ b/sorbet/rbi/gems/rubocop-ast@1.38.1.rbi @@ -5659,6 +5659,9 @@ RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EVAL_CLASS_EVAL_MODULE_EVAL = T.le # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EXEC_CLASS_EXEC_MODULE_EXEC = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_INTEGER_BIGDECIMAL_COMPLEX_RATIONAL = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_IO_FILE = T.let(T.unsafe(nil), Set) @@ -7659,28 +7662,28 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node end class RuboCop::CommentConfig - # source://standard/1.45.0/lib/standard/rubocop/ext.rb#20 + # source://standard/1.47.0/lib/standard/rubocop/ext.rb#20 def initialize(processed_source); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#63 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#63 def comment_only_line?(line_number); end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 def config(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#51 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#51 def cop_disabled_line_ranges; end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#39 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#39 def cop_enabled_at_line?(cop, line_number); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#47 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#47 def cop_opted_in?(cop); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#55 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#55 def extra_enabled_comments; end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#30 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#30 def processed_source; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -7688,54 +7691,54 @@ class RuboCop::CommentConfig private - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#96 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#96 def analyze; end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#124 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#124 def analyze_cop(analysis, directive); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#144 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#144 def analyze_disabled(analysis, directive); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#155 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#155 def analyze_rest(analysis, directive); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#135 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#135 def analyze_single_line(analysis, directive); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#164 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#164 def cop_line_ranges(analysis); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#170 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#170 def each_directive; end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#69 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#69 def extra_enabled_comments_with_names(extras:, names:); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#190 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#190 def handle_enable_all(directive, names, extras); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#204 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#204 def handle_switch(directive, names, extras); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#115 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#115 def inject_disabled_cops_directives(analyses); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#183 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#183 def non_comment_token_line_numbers; end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#34 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#34 def old_initialize(processed_source); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#83 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#83 def opt_in_cops; end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#179 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#179 def qualified_cop_name(cop_name); end end class RuboCop::Config - # source://rubocop/1.71.2/lib/rubocop/config.rb#31 + # source://rubocop/1.73.2/lib/rubocop/config.rb#31 def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -7744,40 +7747,40 @@ class RuboCop::Config # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 def []=(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#179 + # source://rubocop/1.73.2/lib/rubocop/config.rb#183 def active_support_extensions_enabled?; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#94 + # source://rubocop/1.73.2/lib/rubocop/config.rb#98 def add_excludes_from_higher_level(highest_config); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#206 + # source://rubocop/1.73.2/lib/rubocop/config.rb#210 def allowed_camel_case_file?(file); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#250 + # source://rubocop/1.73.2/lib/rubocop/config.rb#254 def base_dir_for_path_parameters; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#280 + # source://rubocop/1.73.2/lib/rubocop/config.rb#284 def bundler_lock_file_path; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#52 + # source://rubocop/1.73.2/lib/rubocop/config.rb#56 def check; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#147 + # source://rubocop/1.73.2/lib/rubocop/config.rb#151 def clusivity_config_for_badge?(badge); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#167 + # source://rubocop/1.73.2/lib/rubocop/config.rb#171 def cop_enabled?(name); end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 def delete(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#106 + # source://rubocop/1.73.2/lib/rubocop/config.rb#110 def deprecation_check; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 def dig(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#171 + # source://rubocop/1.73.2/lib/rubocop/config.rb#175 def disabled_new_cops?; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -7786,40 +7789,40 @@ class RuboCop::Config # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 def each_key(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#175 + # source://rubocop/1.73.2/lib/rubocop/config.rb#179 def enabled_new_cops?; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 def fetch(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#228 + # source://rubocop/1.73.2/lib/rubocop/config.rb#232 def file_to_exclude?(file); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#187 + # source://rubocop/1.73.2/lib/rubocop/config.rb#191 def file_to_include?(file); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#163 + # source://rubocop/1.73.2/lib/rubocop/config.rb#167 def for_all_cops; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#133 + # source://rubocop/1.73.2/lib/rubocop/config.rb#137 def for_badge(badge); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#120 + # source://rubocop/1.73.2/lib/rubocop/config.rb#124 def for_cop(cop); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#158 + # source://rubocop/1.73.2/lib/rubocop/config.rb#162 def for_department(department_name); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#127 + # source://rubocop/1.73.2/lib/rubocop/config.rb#131 def for_enabled_cop(cop); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#305 + # source://rubocop/1.73.2/lib/rubocop/config.rb#309 def gem_versions_in_target; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#309 + # source://rubocop/1.73.2/lib/rubocop/config.rb#313 def inspect; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#77 + # source://rubocop/1.73.2/lib/rubocop/config.rb#81 def internal?; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -7828,13 +7831,16 @@ class RuboCop::Config # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 def keys(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#48 + # source://rubocop/1.73.2/lib/rubocop/config.rb#52 def loaded_features; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#21 + # source://rubocop/1.73.2/lib/rubocop/config.rb#21 def loaded_path; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#82 + # source://rubocop/1.73.2/lib/rubocop/config.rb#48 + def loaded_plugins; end + + # source://rubocop/1.73.2/lib/rubocop/config.rb#86 def make_excludes_absolute; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -7843,37 +7849,37 @@ class RuboCop::Config # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 def merge(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#260 + # source://rubocop/1.73.2/lib/rubocop/config.rb#264 def parser_engine; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#241 + # source://rubocop/1.73.2/lib/rubocop/config.rb#245 def path_relative_to_config(path); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#237 + # source://rubocop/1.73.2/lib/rubocop/config.rb#241 def patterns_to_exclude; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#233 + # source://rubocop/1.73.2/lib/rubocop/config.rb#237 def patterns_to_include; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#291 + # source://rubocop/1.73.2/lib/rubocop/config.rb#295 def pending_cops; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#220 + # source://rubocop/1.73.2/lib/rubocop/config.rb#224 def possibly_include_hidden?; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 def replace(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#72 + # source://rubocop/1.73.2/lib/rubocop/config.rb#76 def signature; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#275 + # source://rubocop/1.73.2/lib/rubocop/config.rb#279 def smart_loaded_path; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#183 + # source://rubocop/1.73.2/lib/rubocop/config.rb#187 def string_literals_frozen_by_default?; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#264 + # source://rubocop/1.73.2/lib/rubocop/config.rb#268 def target_rails_version; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -7885,7 +7891,7 @@ class RuboCop::Config # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 def to_hash(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#68 + # source://rubocop/1.73.2/lib/rubocop/config.rb#72 def to_s; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -7894,37 +7900,37 @@ class RuboCop::Config # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 def validate(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#59 + # source://rubocop/1.73.2/lib/rubocop/config.rb#63 def validate_after_resolution; end private - # source://rubocop/1.71.2/lib/rubocop/config.rb#359 + # source://rubocop/1.73.2/lib/rubocop/config.rb#363 def department_of(qualified_cop_name); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#347 + # source://rubocop/1.73.2/lib/rubocop/config.rb#351 def enable_cop?(qualified_cop_name, cop_options); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#334 + # source://rubocop/1.73.2/lib/rubocop/config.rb#338 def gem_version_to_major_minor_float(gem_version); end - # source://rubocop/1.71.2/lib/rubocop/config.rb#340 + # source://rubocop/1.73.2/lib/rubocop/config.rb#344 def read_gem_versions_from_target_lockfile; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#321 + # source://rubocop/1.73.2/lib/rubocop/config.rb#325 def read_rails_version_from_bundler_lock_file; end - # source://rubocop/1.71.2/lib/rubocop/config.rb#316 + # source://rubocop/1.73.2/lib/rubocop/config.rb#320 def target_rails_version_from_bundler_lock_file; end class << self - # source://rubocop/1.71.2/lib/rubocop/config.rb#23 + # source://rubocop/1.73.2/lib/rubocop/config.rb#23 def create(hash, path, check: T.unsafe(nil)); end end end class RuboCop::ConfigValidator - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#28 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#28 def initialize(config); end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -7933,66 +7939,66 @@ class RuboCop::ConfigValidator # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 def smart_loaded_path(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#65 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#65 def target_ruby_version; end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#34 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#34 def validate; end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#61 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#61 def validate_after_resolution; end private - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#100 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#100 def alert_about_unrecognized_cops(invalid_cop_names); end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#263 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#263 def check_cop_config_value(hash, parent = T.unsafe(nil)); end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#73 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#73 def check_obsoletions; end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#80 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#80 def check_target_ruby; end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#204 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#204 def each_invalid_parameter(cop_name); end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#116 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#116 def list_unknown_cops(invalid_cop_names); end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#283 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#283 def param_error_message(parent, key, value, supposed_values); end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#251 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#251 def reject_conflicting_safe_settings; end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#242 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#242 def reject_mutually_exclusive_defaults; end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#138 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#138 def suggestion(name); end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#71 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#71 def target_ruby; end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#216 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#216 def validate_enforced_styles(valid_cop_names); end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#165 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#165 def validate_new_cops_parameter; end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#190 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#190 def validate_parameter_names(valid_cop_names); end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#176 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#176 def validate_parameter_shape(valid_cop_names); end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#236 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#236 def validate_support_and_has_list(name, formats, valid); end - # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#154 + # source://rubocop/1.73.2/lib/rubocop/config_validator.rb#154 def validate_syntax_cop; end end diff --git a/sorbet/rbi/gems/rubocop-rails@2.29.1.rbi b/sorbet/rbi/gems/rubocop-rails@2.30.3.rbi similarity index 98% rename from sorbet/rbi/gems/rubocop-rails@2.29.1.rbi rename to sorbet/rbi/gems/rubocop-rails@2.30.3.rbi index 2654c977..201acb4a 100644 --- a/sorbet/rbi/gems/rubocop-rails@2.29.1.rbi +++ b/sorbet/rbi/gems/rubocop-rails@2.30.3.rbi @@ -271,65 +271,65 @@ end # # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#6 module RuboCop::Cop::IndexMethod - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#9 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#74 def on_block(node); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#33 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#98 def on_csend(node); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#9 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#74 def on_numblock(node); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#23 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#88 def on_send(node); end private - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#97 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#162 def execute_correction(corrector, node, correction); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#74 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#139 def extract_captures(match); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#61 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#126 def handle_possible_offense(node, match, match_desc); end # @raise [NotImplementedError] # - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#79 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#144 def new_method_name; end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#42 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#107 def on_bad_each_with_object(_node); end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#57 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#122 def on_bad_hash_brackets_map(_node); end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#52 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#117 def on_bad_map_to_h(_node); end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#47 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#112 def on_bad_to_h(_node); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#83 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#148 def prepare_correction(node); end end # Internal helper class to hold autocorrect data # -# source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#117 +# source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 class RuboCop::Cop::IndexMethod::Autocorrection < ::Struct # Returns the value of attribute block_node # @@ -364,16 +364,16 @@ class RuboCop::Cop::IndexMethod::Autocorrection < ::Struct # @return [Object] the newly set value def match=(_); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#157 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#60 def set_new_arg_name(transformed_argname, corrector); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#163 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#66 def set_new_body_expression(transforming_body_expr, corrector); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#148 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#51 def set_new_method_name(new_method_name, corrector); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#142 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#45 def strip_prefix_and_suffix(node, corrector); end # Returns the value of attribute trailing @@ -390,16 +390,16 @@ class RuboCop::Cop::IndexMethod::Autocorrection < ::Struct class << self def [](*_arg0); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#118 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#21 def from_each_with_object(node, match); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#138 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#41 def from_hash_brackets_map(node, match); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#126 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#29 def from_map_to_h(node, match); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#122 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#25 def from_to_h(node, match); end def inspect; end @@ -411,11 +411,11 @@ end # Internal helper class to hold match data # -# source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#107 +# source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#10 class RuboCop::Cop::IndexMethod::Captures < ::Struct # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#111 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#14 def noop_transformation?; end # Returns the value of attribute transformed_argname @@ -945,6 +945,10 @@ class RuboCop::Cop::Lint::ConstantResolution < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end +class RuboCop::Cop::Lint::CopDirectiveSyntax < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + class RuboCop::Cop::Lint::Debugger < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end @@ -1264,6 +1268,10 @@ class RuboCop::Cop::Lint::RedundantStringCoercion < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end +class RuboCop::Cop::Lint::RedundantTypeConversion < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end @@ -1354,6 +1362,10 @@ class RuboCop::Cop::Lint::SuppressedException < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end +class RuboCop::Cop::Lint::SuppressedExceptionInNumberConversion < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + class RuboCop::Cop::Lint::SymbolConversion < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end @@ -1434,6 +1446,10 @@ class RuboCop::Cop::Lint::UselessAssignment < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end +class RuboCop::Cop::Lint::UselessConstantScoping < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + class RuboCop::Cop::Lint::UselessDefined < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end @@ -1817,6 +1833,10 @@ class RuboCop::Cop::Performance::UriDefaultParser < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end +class RuboCop::Cop::Performance::ZipWithoutBlock < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + # source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#5 module RuboCop::Cop::Rails; end @@ -3488,6 +3508,9 @@ RuboCop::Cop::Rails::DefaultScope::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # without using the `delegate` method will be a violation. # When set to `false`, this case is legal. # +# It is disabled for controllers in order to keep controller actions +# explicitly defined. +# # @example # # bad # def bar @@ -3532,54 +3555,71 @@ RuboCop::Cop::Rails::DefaultScope::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # # good # delegate :bar, to: :foo, prefix: true # -# source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#63 +# source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#66 class RuboCop::Cop::Rails::Delegate < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable include ::RuboCop::Cop::VisibilityHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#69 + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#72 def delegate?(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#74 + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#77 def on_def(node); end private # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#102 + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#131 def arguments_match?(arg_array, body); end + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#110 + def build_delegation(node, receiver); end + + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#155 + def determine_prefixed_method_receiver_name(receiver); end + + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#96 + def determine_register_offense_receiver(receiver); end + + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#116 + def full_const_name(node); end + # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#116 + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#145 def include_prefix_case?; end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#112 + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#141 def method_name_matches?(method_name, body); end - # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#120 + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#170 + def module_function_declared?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#149 def prefixed_method_name(body); end - # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#126 + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#166 def private_or_protected_delegation(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#130 + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#176 def private_or_protected_inline(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#83 + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#87 def register_offense(node); end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#96 + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#125 def trivial_delegate?(def_node); end end -# source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#67 +# source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#70 RuboCop::Cop::Rails::Delegate::MSG = T.let(T.unsafe(nil), String) # Looks for delegations that pass :allow_blank as an option @@ -4568,6 +4608,9 @@ RuboCop::Cop::Rails::ExpandedDateRange::PREFERRED_METHODS = T.let(T.unsafe(nil), # Identifies usages of file path joining process to use `Rails.root.join` clause. # It is used to add uniformity when joining paths. # +# NOTE: This cop ignores leading slashes in string literal arguments for `Rails.root.join` +# and multiple slashes in string literal arguments for `Rails.root.join` and `File.join`. +# # @example EnforcedStyle: slashes (default) # # bad # Rails.root.join('app', 'models', 'goober') @@ -4595,116 +4638,141 @@ RuboCop::Cop::Rails::ExpandedDateRange::PREFERRED_METHODS = T.let(T.unsafe(nil), # # good # Rails.root.join('app', 'models', 'goober').to_s # -# source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#37 +# source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#40 class RuboCop::Cop::Rails::FilePath < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#47 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#50 def file_join_nodes?(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#59 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#62 def on_dstr(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#67 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#70 def on_send(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#55 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#58 def rails_root_join_nodes?(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#51 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#54 def rails_root_nodes?(param0); end private - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#246 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#275 def append_argument(corrector, node, argument_source); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#208 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#237 def append_to_string_conversion(corrector, node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#167 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#196 def autocorrect_extension_after_rails_root_join_in_dstr(corrector, node, rails_root_index, extension_node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#175 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#204 def autocorrect_file_join(corrector, node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#227 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#256 def autocorrect_rails_root_join_with_slash_separated_path(corrector, node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#212 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#241 def autocorrect_rails_root_join_with_string_arguments(corrector, node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#156 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#185 def autocorrect_slash_after_rails_root_in_dstr(corrector, node, rails_root_index); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#143 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#172 def build_message(require_to_s); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#88 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#91 def check_for_extension_after_rails_root_join_in_dstr(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#98 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#101 def check_for_file_join_with_rails_root(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#119 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#121 def check_for_rails_root_join_with_slash_separated_path(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#107 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#110 def check_for_rails_root_join_with_string_arguments(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#77 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#80 def check_for_slash_after_rails_root_in_dstr(node); end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#150 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#179 def dstr_separated_by_colon?(node); end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#258 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#287 def extension_node?(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#254 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#283 def extract_rails_root_join_argument_source(node, rails_root_index); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#242 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#271 def find_rails_root_index(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#238 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#267 def inner_range_of(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#198 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#227 def process_arguments(corrector, arguments); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#134 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#163 def register_offense(node, require_to_s:, &block); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#186 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#215 def remove_first_argument_with_comma(corrector, node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#182 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#211 def replace_receiver_with_rails_root(corrector, node); end - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#250 + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#279 def replace_with_rails_root_join(corrector, node, argument_source); end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#130 - def string_with_slash?(node); end + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#155 + def string_contains_multiple_slashes?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#151 + def string_contains_slash?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#159 + def string_with_leading_slash?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#132 + def valid_arguments_for_file_join_with_rails_root?(arguments); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#145 + def valid_slash_separated_path_for_rails_root_join?(arguments); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#138 + def valid_string_arguments_for_rails_root_join?(arguments); end end -# source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#44 +# source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#47 RuboCop::Cop::Rails::FilePath::MSG_ARGUMENTS = T.let(T.unsafe(nil), String) -# source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#43 +# source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#46 RuboCop::Cop::Rails::FilePath::MSG_SLASHES = T.let(T.unsafe(nil), String) -# source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#45 +# source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#48 RuboCop::Cop::Rails::FilePath::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies usages of `where.take` and change them to use `find_by` instead. @@ -6071,6 +6139,9 @@ class RuboCop::Cop::Rails::LexicallyScopedActionFilter < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#118 + def delegated_methods(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#122 def on_send(node); end # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#107 @@ -6078,26 +6149,29 @@ class RuboCop::Cop::Rails::LexicallyScopedActionFilter < ::RuboCop::Cop::Base private - # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#154 + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#164 def alias_methods(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#145 + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#155 def aliased_action_methods(node, defined_methods); end # @param node [RuboCop::AST::Node] # @return [Array] # - # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#171 + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#181 def array_values(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#138 + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#142 def defined_action_methods(block); end + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#149 + def delegated_action_methods(node); end + # @param methods [Array] # @param parent [RuboCop::AST::Node] # @return [String] # - # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#194 + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#204 def message(methods, parent); end end @@ -9998,36 +10072,21 @@ class RuboCop::Cop::Rails::UniqBeforePluck < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#59 - def aggressive_node_match(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#57 - def conservative_node_match(param0 = T.unsafe(nil)); end - - # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#61 def on_send(node); end - private - - # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#77 - def autocorrect(corrector, node); end + # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#55 + def uniq_before_pluck(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#92 - def dot_method_begin_pos(method, node); end + private - # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#88 - def dot_method_with_whitespace(method, node); end + # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#69 + def autocorrect(corrector, uniq_node, pluck_node); end end # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#52 RuboCop::Cop::Rails::UniqBeforePluck::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#54 -RuboCop::Cop::Rails::UniqBeforePluck::NEWLINE = T.let(T.unsafe(nil), String) - -# source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#55 -RuboCop::Cop::Rails::UniqBeforePluck::PATTERN = T.let(T.unsafe(nil), String) - # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#53 RuboCop::Cop::Rails::UniqBeforePluck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) @@ -11659,6 +11718,10 @@ class RuboCop::Cop::Style::RedundantFilterChain < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end +class RuboCop::Cop::Style::RedundantFormat < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + class RuboCop::Cop::Style::RedundantFreeze < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end @@ -12025,25 +12088,11 @@ RuboCop::Cop::TargetRailsVersion::TARGET_GEM_NAME = T.let(T.unsafe(nil), String) # source://rubocop-rails//lib/rubocop/cop/mixin/target_rails_version.rb#9 RuboCop::Cop::TargetRailsVersion::USES_REQUIRES_GEM_API = T.let(T.unsafe(nil), TrueClass) -# RuboCop Rails project namespace +# RuboCop Rails project namespace. # # source://rubocop-rails//lib/rubocop/rails.rb#5 module RuboCop::Rails; end -# source://rubocop-rails//lib/rubocop/rails.rb#7 -RuboCop::Rails::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname) - -# Because RuboCop doesn't yet support plugins, we have to monkey patch in a -# bit of our configuration. -# -# source://rubocop-rails//lib/rubocop/rails/inject.rb#7 -module RuboCop::Rails::Inject - class << self - # source://rubocop-rails//lib/rubocop/rails/inject.rb#8 - def defaults!; end - end -end - # This module allows cops to detect and ignore files that have already been migrated # by leveraging the `AllCops: MigratedSchemaVersion` configuration. # @@ -12092,8 +12141,26 @@ module RuboCop::Rails::MigrationFileSkippable end end -# source://rubocop-rails//lib/rubocop/rails.rb#6 -RuboCop::Rails::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname) +# A plugin that integrates RuboCop Rails with RuboCop's plugin system. +# +# source://rubocop-rails//lib/rubocop/rails/plugin.rb#8 +class RuboCop::Rails::Plugin < ::LintRoller::Plugin + # source://rubocop-rails//lib/rubocop/rails/plugin.rb#9 + def about; end + + # source://rubocop-rails//lib/rubocop/rails/plugin.rb#22 + def rules(_context); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/rails/plugin.rb#18 + def supported?(context); end + + private + + # source://rubocop-rails//lib/rubocop/rails/plugin.rb#39 + def without_warnings; end +end # It loads db/schema.rb and return Schema object. # Cops refers database schema information with this module. diff --git a/sorbet/rbi/gems/rubocop-rspec@3.4.0.rbi b/sorbet/rbi/gems/rubocop-rspec@3.5.0.rbi similarity index 98% rename from sorbet/rbi/gems/rubocop-rspec@3.4.0.rbi rename to sorbet/rbi/gems/rubocop-rspec@3.5.0.rbi index 03bf8ca6..0d847464 100644 --- a/sorbet/rbi/gems/rubocop-rspec@3.4.0.rbi +++ b/sorbet/rbi/gems/rubocop-rspec@3.5.0.rbi @@ -371,10 +371,10 @@ class RuboCop::Cop::RSpec::BeNil < ::RuboCop::Cop::RSpec::Base private - # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#64 + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#68 def check_be_nil_style(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#56 + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#60 def check_be_style(node); end end @@ -489,39 +489,39 @@ class RuboCop::Cop::RSpec::ChangeByZero < ::RuboCop::Cop::RSpec::Base private - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#134 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#132 def autocorrect(corrector, node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#141 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#139 def autocorrect_compound(corrector, node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#120 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#118 def compound_expectations?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#151 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#149 def insert_operator(corrector, node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#125 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#123 def message(change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#129 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#127 def message_compound(change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#175 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#173 def negated_matcher; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#179 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#177 def preferred_method; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#105 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#104 def register_offense(node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#164 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#162 def remove_by_zero(corrector, node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#160 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#158 def replace_node(node, change_node); end end @@ -1924,41 +1924,41 @@ class RuboCop::Cop::RSpec::ExampleWording < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#63 def it_description(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#71 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#70 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#89 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#87 def add_wording_offense(node, message); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#136 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#134 def custom_transform; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#99 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#97 def docstring(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#140 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#138 def ignored_words; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#144 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#142 def insufficient_docstring?(description_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#148 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#146 def insufficient_examples; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#153 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#151 def preprocess(message); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#109 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#107 def replacement_text(node); end # Recursive processing is required to process nested dstr nodes # that is the case for \-separated multiline strings with interpolation. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#125 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#123 def text(node); end end @@ -2269,65 +2269,65 @@ RuboCop::Cop::RSpec::ExpectOutput::MSG = T.let(T.unsafe(nil), String) # A helper for `explicit` style # -# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#121 +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#129 module RuboCop::Cop::RSpec::ExplicitHelper include ::RuboCop::RSpec::Language extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#182 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#190 def predicate_matcher?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#195 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#203 def predicate_matcher_block?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#135 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#143 def allowed_explicit_matchers; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#139 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#147 def check_explicit(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#219 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#227 def corrector_explicit(corrector, to_node, actual, matcher, block_child); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#175 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#183 def heredoc_argument?(matcher); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#213 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#221 def message_explicit(matcher); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#226 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#234 def move_predicate(corrector, actual, matcher, block_child); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#204 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#212 def predicate_matcher_name?(name); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#162 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#170 def replaceable_matcher?(matcher); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#255 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#261 def replacement_matcher(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#237 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#244 def to_predicate_method(matcher); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#171 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#179 def uncorrectable_matcher?(node, matcher); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#127 +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#135 RuboCop::Cop::RSpec::ExplicitHelper::BUILT_IN_MATCHERS = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#125 +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#133 RuboCop::Cop::RSpec::ExplicitHelper::MSG_EXPLICIT = T.let(T.unsafe(nil), String) # Help methods for file. @@ -2405,15 +2405,16 @@ class RuboCop::Cop::RSpec::Focus < ::RuboCop::Cop::RSpec::Base private - # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#104 + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#108 def correct_send(corrector, focus); end - # @yield [node] - # - # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#91 - def focus_metadata(node, &block); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#89 + def on_focused_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#95 + def on_metadata(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#97 + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#101 def with_surrounding(focus); end end @@ -2673,15 +2674,15 @@ class RuboCop::Cop::RSpec::ImplicitExpect < ::RuboCop::Cop::RSpec::Base private - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#78 - def is_expected_range(source_map); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#69 def offending_expect(node); end # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#86 def offense_message(offending_source); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#78 + def range_for_is_expected(source_map); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#94 def replacement_source(offending_source); end end @@ -2770,45 +2771,45 @@ class RuboCop::Cop::RSpec::ImplicitSubject < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#100 def autocorrect(corrector, node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#159 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#167 def example_of(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#135 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#143 def implicit_subject_in_non_its?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#139 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#147 def implicit_subject_in_non_its_and_non_single_line?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#143 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#151 def implicit_subject_in_non_its_and_non_single_statement?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#122 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#126 def invalid?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#147 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#155 def its?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#113 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#117 def message(_node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#151 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#159 def single_line?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#155 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#163 def single_statement?(node); end end @@ -2872,25 +2873,25 @@ class RuboCop::Cop::RSpec::IndexedLet < ::RuboCop::Cop::RSpec::Base private - # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#105 + # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#107 def allowed_identifiers; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#99 + # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#101 def cop_config_patterns_values; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#79 + # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#81 def filter_indexed_lets(candidates); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#88 + # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#90 def indexed_let?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#95 + # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#97 def let_name_stripped_index(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#77 +# source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#78 RuboCop::Cop::RSpec::IndexedLet::INDEX_REGEX = T.let(T.unsafe(nil), Regexp) # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#51 @@ -2906,45 +2907,50 @@ module RuboCop::Cop::RSpec::InflectedHelper include ::RuboCop::RSpec::Language extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#39 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#45 def be_bool?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#44 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#50 def be_boolthy?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#29 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#31 def predicate_in_actual?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#48 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#54 def boolean_matcher?(node); end + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#40 + def cannot_replace_predicate?(send_node); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#16 def check_inflected(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#60 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#66 def message_inflected(predicate); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#56 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#62 def predicate?(sym); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#85 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#89 def remove_predicate(corrector, predicate); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#96 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#100 def rewrite_matcher(corrector, predicate, matcher); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#67 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#72 def to_predicate_matcher(name); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#107 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#111 def true?(to_symbol, matcher); end end @@ -4010,7 +4016,7 @@ class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#86 def expect?(param0 = T.unsafe(nil)); end - # source://rubocop/1.71.2/lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/1.73.2/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#93 @@ -4125,7 +4131,7 @@ RuboCop::Cop::RSpec::MultipleExpectations::TRUE_NODE = T.let(T.unsafe(nil), Proc class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::Variable - # source://rubocop/1.71.2/lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/1.73.2/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 @@ -4467,7 +4473,7 @@ end class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop/1.71.2/lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/1.73.2/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#107 @@ -4891,21 +4897,21 @@ RuboCop::Cop::RSpec::PendingWithoutReason::MSG = T.let(T.unsafe(nil), String) # # good - the above code is rewritten to it by this cop # expect(foo.something?).to be_truthy # -# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#318 +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#324 class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RSpec::InflectedHelper include ::RuboCop::Cop::RSpec::ExplicitHelper extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#335 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#345 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#326 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#332 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#324 +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#330 RuboCop::Cop::RSpec::PredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check for `once` and `twice` receive counts matchers usage. @@ -7051,9 +7057,6 @@ class RuboCop::RSpec::AlignLetBrace def token; end end -# source://rubocop-rspec//lib/rubocop/rspec.rb#7 -RuboCop::RSpec::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname) - # Wrapper for RSpec DSL methods # # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#6 @@ -7251,17 +7254,6 @@ class RuboCop::RSpec::Hook < ::RuboCop::RSpec::Concept def valid_scope?(node); end end -# Because RuboCop doesn't yet support plugins, we have to monkey patch in a -# bit of our configuration. -# -# source://rubocop-rspec//lib/rubocop/rspec/inject.rb#7 -module RuboCop::RSpec::Inject - class << self - # source://rubocop-rspec//lib/rubocop/rspec/inject.rb#8 - def defaults!; end - end -end - # Contains node matchers for common RSpec DSL. # # RSpec allows for configuring aliases for commonly used DSL elements, e.g. @@ -7466,8 +7458,25 @@ module RuboCop::RSpec::Node def recursive_literal_or_const?; end end -# source://rubocop-rspec//lib/rubocop/rspec.rb#6 -RuboCop::RSpec::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname) +# A plugin that integrates RuboCop RSpec with RuboCop's plugin system. +# +# source://rubocop-rspec//lib/rubocop/rspec/plugin.rb#8 +class RuboCop::RSpec::Plugin < ::LintRoller::Plugin + # :nocov: + # + # source://rubocop-rspec//lib/rubocop/rspec/plugin.rb#10 + def about; end + + # source://rubocop-rspec//lib/rubocop/rspec/plugin.rb#24 + def rules(_context); end + + # :nocov: + # + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/rspec/plugin.rb#20 + def supported?(context); end +end # Version information for the RSpec RuboCop plugin. # @@ -7486,46 +7495,46 @@ class RuboCop::RSpec::Wording # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#14 def initialize(text, ignore:, replace:); end - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#21 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#20 def rewrite; end private - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#80 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#78 def append_suffix(word, suffix); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#65 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#63 def ignored_word?(word); end # Returns the value of attribute ignores. # - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#39 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#37 def ignores; end - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#51 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#49 def remove_should_and_pluralize; end - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#41 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#39 def replace_prefix(pattern, replacement); end # Returns the value of attribute replacements. # - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#39 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#37 def replacements; end - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#69 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#67 def substitute(word); end # Returns the value of attribute text. # - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#39 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#37 def text; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#47 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#45 def uppercase?(word); end end diff --git a/sorbet/rbi/gems/rubocop@1.71.2.rbi b/sorbet/rbi/gems/rubocop@1.73.2.rbi similarity index 96% rename from sorbet/rbi/gems/rubocop@1.71.2.rbi rename to sorbet/rbi/gems/rubocop@1.73.2.rbi index f327c413..77e876c6 100644 --- a/sorbet/rbi/gems/rubocop@1.71.2.rbi +++ b/sorbet/rbi/gems/rubocop@1.73.2.rbi @@ -617,7 +617,7 @@ class RuboCop::CLI::Command::SuggestExtensions < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#111 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#117 def dependent_gems; end # @api private @@ -627,7 +627,7 @@ class RuboCop::CLI::Command::SuggestExtensions < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#103 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#109 def installed_and_not_loaded_extensions; end # @api private @@ -637,7 +637,7 @@ class RuboCop::CLI::Command::SuggestExtensions < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#115 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#121 def installed_gems; end # @api private @@ -647,7 +647,7 @@ class RuboCop::CLI::Command::SuggestExtensions < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#107 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#113 def lockfile; end # @api private @@ -672,7 +672,7 @@ class RuboCop::CLI::Command::SuggestExtensions < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#119 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#125 def puts(*args); end # @api private @@ -832,7 +832,7 @@ class RuboCop::CommentConfig # @return [CommentConfig] a new instance of CommentConfig # - # source://standard/1.45.0/lib/standard/rubocop/ext.rb#20 + # source://standard/1.47.0/lib/standard/rubocop/ext.rb#20 def initialize(processed_source); end # @return [Boolean] @@ -1051,15 +1051,15 @@ class RuboCop::Config # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#179 + # source://rubocop//lib/rubocop/config.rb#183 def active_support_extensions_enabled?; end - # source://rubocop//lib/rubocop/config.rb#94 + # source://rubocop//lib/rubocop/config.rb#98 def add_excludes_from_higher_level(highest_config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#206 + # source://rubocop//lib/rubocop/config.rb#210 def allowed_camel_case_file?(file); end # Paths specified in configuration files starting with .rubocop are @@ -1068,32 +1068,32 @@ class RuboCop::Config # config/default.yml, for example, are not relative to RuboCop's config # directory since that wouldn't work. # - # source://rubocop//lib/rubocop/config.rb#250 + # source://rubocop//lib/rubocop/config.rb#254 def base_dir_for_path_parameters; end # @return [String, nil] # - # source://rubocop//lib/rubocop/config.rb#280 + # source://rubocop//lib/rubocop/config.rb#284 def bundler_lock_file_path; end - # source://rubocop//lib/rubocop/config.rb#52 + # source://rubocop//lib/rubocop/config.rb#56 def check; end # @api private # @return [Boolean] whether config for this badge has 'Include' or 'Exclude' keys # - # source://rubocop//lib/rubocop/config.rb#147 + # source://rubocop//lib/rubocop/config.rb#151 def clusivity_config_for_badge?(badge); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#167 + # source://rubocop//lib/rubocop/config.rb#171 def cop_enabled?(name); end # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def delete(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/config.rb#106 + # source://rubocop//lib/rubocop/config.rb#110 def deprecation_check; end # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -1101,7 +1101,7 @@ class RuboCop::Config # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#171 + # source://rubocop//lib/rubocop/config.rb#175 def disabled_new_cops?; end # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -1112,7 +1112,7 @@ class RuboCop::Config # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#175 + # source://rubocop//lib/rubocop/config.rb#179 def enabled_new_cops?; end # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -1120,22 +1120,22 @@ class RuboCop::Config # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#228 + # source://rubocop//lib/rubocop/config.rb#232 def file_to_exclude?(file); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#187 + # source://rubocop//lib/rubocop/config.rb#191 def file_to_include?(file); end - # source://rubocop//lib/rubocop/config.rb#163 + # source://rubocop//lib/rubocop/config.rb#167 def for_all_cops; end # Note: the 'Enabled' attribute is same as that returned by `for_cop` # # @return [Config] for the given cop merged with that of its department (if any) # - # source://rubocop//lib/rubocop/config.rb#133 + # source://rubocop//lib/rubocop/config.rb#137 def for_badge(badge); end # Note: the 'Enabled' attribute is calculated according to the department's @@ -1143,7 +1143,7 @@ class RuboCop::Config # # @return [Config] for the given cop / cop name. # - # source://rubocop//lib/rubocop/config.rb#120 + # source://rubocop//lib/rubocop/config.rb#124 def for_cop(cop); end # Note: the 'Enabled' attribute will be present only if specified @@ -1151,7 +1151,7 @@ class RuboCop::Config # # @return [Config] for the given department name. # - # source://rubocop//lib/rubocop/config.rb#158 + # source://rubocop//lib/rubocop/config.rb#162 def for_department(department_name); end # If the given cop is enabled, returns its configuration hash. @@ -1159,22 +1159,22 @@ class RuboCop::Config # # @return [Config, Hash] for the given cop / cop name. # - # source://rubocop//lib/rubocop/config.rb#127 + # source://rubocop//lib/rubocop/config.rb#131 def for_enabled_cop(cop); end # Returns target's locked gem versions (i.e. from Gemfile.lock or gems.locked) # - # source://rubocop//lib/rubocop/config.rb#305 + # source://rubocop//lib/rubocop/config.rb#309 def gem_versions_in_target; end - # source://rubocop//lib/rubocop/config.rb#309 + # source://rubocop//lib/rubocop/config.rb#313 def inspect; end # True if this is a config file that is shipped with RuboCop # # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#77 + # source://rubocop//lib/rubocop/config.rb#81 def internal?; end # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -1183,7 +1183,7 @@ class RuboCop::Config # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def keys(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/config.rb#48 + # source://rubocop//lib/rubocop/config.rb#52 def loaded_features; end # Returns the value of attribute loaded_path. @@ -1191,7 +1191,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#21 def loaded_path; end - # source://rubocop//lib/rubocop/config.rb#82 + # source://rubocop//lib/rubocop/config.rb#48 + def loaded_plugins; end + + # source://rubocop//lib/rubocop/config.rb#86 def make_excludes_absolute; end # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -1200,19 +1203,19 @@ class RuboCop::Config # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def merge(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/config.rb#260 + # source://rubocop//lib/rubocop/config.rb#264 def parser_engine; end - # source://rubocop//lib/rubocop/config.rb#241 + # source://rubocop//lib/rubocop/config.rb#245 def path_relative_to_config(path); end - # source://rubocop//lib/rubocop/config.rb#237 + # source://rubocop//lib/rubocop/config.rb#241 def patterns_to_exclude; end - # source://rubocop//lib/rubocop/config.rb#233 + # source://rubocop//lib/rubocop/config.rb#237 def patterns_to_include; end - # source://rubocop//lib/rubocop/config.rb#291 + # source://rubocop//lib/rubocop/config.rb#295 def pending_cops; end # Returns true if there's a chance that an Include pattern matches hidden @@ -1220,24 +1223,24 @@ class RuboCop::Config # # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#220 + # source://rubocop//lib/rubocop/config.rb#224 def possibly_include_hidden?; end # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def replace(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/config.rb#72 + # source://rubocop//lib/rubocop/config.rb#76 def signature; end - # source://rubocop//lib/rubocop/config.rb#275 + # source://rubocop//lib/rubocop/config.rb#279 def smart_loaded_path; end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#183 + # source://rubocop//lib/rubocop/config.rb#187 def string_literals_frozen_by_default?; end - # source://rubocop//lib/rubocop/config.rb#264 + # source://rubocop//lib/rubocop/config.rb#268 def target_rails_version; end # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -1249,7 +1252,7 @@ class RuboCop::Config # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def to_hash(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/config.rb#68 + # source://rubocop//lib/rubocop/config.rb#72 def to_s; end # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 @@ -1258,36 +1261,36 @@ class RuboCop::Config # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def validate(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/config.rb#59 + # source://rubocop//lib/rubocop/config.rb#63 def validate_after_resolution; end private - # source://rubocop//lib/rubocop/config.rb#359 + # source://rubocop//lib/rubocop/config.rb#363 def department_of(qualified_cop_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#347 + # source://rubocop//lib/rubocop/config.rb#351 def enable_cop?(qualified_cop_name, cop_options); end # @param gem_version [Gem::Version] an object like `Gem::Version.new("7.1.2.3")` # @return [Float] The major and minor version, like `7.1` # - # source://rubocop//lib/rubocop/config.rb#334 + # source://rubocop//lib/rubocop/config.rb#338 def gem_version_to_major_minor_float(gem_version); end - # source://rubocop//lib/rubocop/config.rb#340 + # source://rubocop//lib/rubocop/config.rb#344 def read_gem_versions_from_target_lockfile; end # @return [Float, nil] The Rails version as a `major.minor` Float. # - # source://rubocop//lib/rubocop/config.rb#321 + # source://rubocop//lib/rubocop/config.rb#325 def read_rails_version_from_bundler_lock_file; end # @return [Float, nil] The Rails version as a `major.minor` Float. # - # source://rubocop//lib/rubocop/config.rb#316 + # source://rubocop//lib/rubocop/config.rb#320 def target_rails_version_from_bundler_lock_file; end class << self @@ -1427,7 +1430,7 @@ class RuboCop::ConfigLoader extend ::RuboCop::FileFinder class << self - # source://rubocop//lib/rubocop/config_loader.rb#141 + # source://rubocop//lib/rubocop/config_loader.rb#148 def add_excludes_from_files(config, config_file); end # Used to add features that were required inside a config or from @@ -1435,10 +1438,18 @@ class RuboCop::ConfigLoader # # @api private # - # source://rubocop//lib/rubocop/config_loader.rb#202 + # source://rubocop//lib/rubocop/config_loader.rb#237 def add_loaded_features(loaded_features); end - # source://rubocop//lib/rubocop/config_loader.rb#84 + # Used to add plugins that were required inside a config or from + # the CLI using `--plugin`. + # + # @api private + # + # source://rubocop//lib/rubocop/config_loader.rb#230 + def add_loaded_plugins(loaded_plugins); end + + # source://rubocop//lib/rubocop/config_loader.rb#91 def add_missing_namespaces(path, hash); end # source://rubocop//lib/rubocop/config_loader.rb#41 @@ -1450,10 +1461,10 @@ class RuboCop::ConfigLoader # user's home directory is checked. If there's no .rubocop.yml # there either, the path to the default file is returned. # - # source://rubocop//lib/rubocop/config_loader.rb#108 + # source://rubocop//lib/rubocop/config_loader.rb#115 def configuration_file_for(target_dir); end - # source://rubocop//lib/rubocop/config_loader.rb#112 + # source://rubocop//lib/rubocop/config_loader.rb#119 def configuration_from_file(config_file, check: T.unsafe(nil)); end # Returns the value of attribute debug. @@ -1473,7 +1484,7 @@ class RuboCop::ConfigLoader # source://rubocop//lib/rubocop/config_loader.rb#33 def debug?; end - # source://rubocop//lib/rubocop/config_loader.rb#151 + # source://rubocop//lib/rubocop/config_loader.rb#158 def default_configuration; end # Sets the attribute default_configuration @@ -1536,17 +1547,20 @@ class RuboCop::ConfigLoader # source://rubocop//lib/rubocop/config_loader.rb#33 def ignore_unrecognized_cops=(_arg0); end - # @api private + # This API is primarily intended for testing and documenting plugins. + # When testing a plugin using `rubocop/rspec/support`, the plugin is loaded automatically, + # so this API is usually not needed. It is intended to be used only when implementing tests + # that do not use `rubocop/rspec/support`. # - # source://rubocop//lib/rubocop/config_loader.rb#159 - def inject_defaults!(project_root); end + # source://rubocop//lib/rubocop/config_loader.rb#170 + def inject_defaults!(config_yml_path); end - # source://rubocop//lib/rubocop/config_loader.rb#51 + # source://rubocop//lib/rubocop/config_loader.rb#53 def load_file(file, check: T.unsafe(nil)); end # @raise [TypeError] # - # source://rubocop//lib/rubocop/config_loader.rb#71 + # source://rubocop//lib/rubocop/config_loader.rb#78 def load_yaml_configuration(absolute_path); end # Returns the value of attribute loaded_features. @@ -1554,24 +1568,29 @@ class RuboCop::ConfigLoader # source://rubocop//lib/rubocop/config_loader.rb#36 def loaded_features; end + # Returns the value of attribute loaded_plugins. + # + # source://rubocop//lib/rubocop/config_loader.rb#36 + def loaded_plugins; end + # Return a recursive merge of two hashes. That is, a normal hash merge, # with the addition that any value that is a hash, and occurs in both # arguments, will also be merged. And so on. # - # source://rubocop//lib/rubocop/config_loader.rb#99 + # source://rubocop//lib/rubocop/config_loader.rb#106 def merge(base_hash, derived_hash); end # Merges the given configuration with the default one. # - # source://rubocop//lib/rubocop/config_loader.rb#195 + # source://rubocop//lib/rubocop/config_loader.rb#223 def merge_with_default(config, config_file, unset_nil: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/config_loader.rb#132 + # source://rubocop//lib/rubocop/config_loader.rb#139 def pending_cops_only_qualified(pending_cops); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader.rb#136 + # source://rubocop//lib/rubocop/config_loader.rb#143 def possible_new_cops?(config); end # Returns the path RuboCop inferred as the root of the project. No file @@ -1579,37 +1598,37 @@ class RuboCop::ConfigLoader # # @deprecated Use `RuboCop::ConfigFinder.project_root` instead. # - # source://rubocop//lib/rubocop/config_loader.rb#170 + # source://rubocop//lib/rubocop/config_loader.rb#198 def project_root; end - # source://rubocop//lib/rubocop/config_loader.rb#179 + # source://rubocop//lib/rubocop/config_loader.rb#207 def warn_on_pending_cops(pending_cops); end - # source://rubocop//lib/rubocop/config_loader.rb#187 + # source://rubocop//lib/rubocop/config_loader.rb#215 def warn_pending_cop(cop); end private - # source://rubocop//lib/rubocop/config_loader.rb#216 + # source://rubocop//lib/rubocop/config_loader.rb#251 def check_duplication(yaml_code, absolute_path); end - # source://rubocop//lib/rubocop/config_loader.rb#208 + # source://rubocop//lib/rubocop/config_loader.rb#243 def file_path(file); end # Read the specified file, or exit with a friendly, concise message on # stderr. Care is taken to use the standard OS exit code for a "file not # found" error. # - # source://rubocop//lib/rubocop/config_loader.rb#236 + # source://rubocop//lib/rubocop/config_loader.rb#271 def read_file(absolute_path); end - # source://rubocop//lib/rubocop/config_loader.rb#212 + # source://rubocop//lib/rubocop/config_loader.rb#247 def resolver; end - # source://rubocop//lib/rubocop/config_loader.rb#242 + # source://rubocop//lib/rubocop/config_loader.rb#277 def yaml_tree_to_hash(yaml_tree); end - # source://rubocop//lib/rubocop/config_loader.rb#252 + # source://rubocop//lib/rubocop/config_loader.rb#287 def yaml_tree_to_hash!(yaml_tree); end end end @@ -1627,7 +1646,7 @@ RuboCop::ConfigLoader::RUBOCOP_HOME = T.let(T.unsafe(nil), String) # # @api private # -# source://rubocop//lib/rubocop/config_loader_resolver.rb#9 +# source://rubocop//lib/rubocop/config_loader_resolver.rb#10 class RuboCop::ConfigLoaderResolver # When one .rubocop.yml file inherits from another .rubocop.yml file, the Include paths in the # base configuration are relative to the directory where the base configuration file is. For the @@ -1636,7 +1655,7 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#45 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#63 def fix_include_paths(base_config_path, hash, path, key, value); end # Return a recursive merge of two hashes. That is, a normal hash merge, @@ -1646,7 +1665,7 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#99 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#117 def merge(base_hash, derived_hash, **opts); end # Merges the given configuration with the default one. If @@ -1657,7 +1676,7 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#75 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#93 def merge_with_default(config, config_file, unset_nil:); end # An `Enabled: true` setting in user configuration for a cop overrides an @@ -1665,7 +1684,7 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#119 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#137 def override_department_setting_for_cops(base_hash, derived_hash); end # If a cop was previously explicitly enabled, but then superseded by the @@ -1673,112 +1692,111 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#136 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#154 def override_enabled_for_disabled_departments(base_hash, derived_hash); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#19 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#37 def resolve_inheritance(path, hash, file, debug); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#55 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#73 def resolve_inheritance_from_gems(hash); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#10 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#11 + def resolve_plugins(rubocop_config, plugins); end + + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#17 def resolve_requires(path, hash); end private # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#215 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#233 def base_configs(path, inherit_from, file); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#183 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#201 def determine_inherit_mode(hash, key); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#152 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#170 def disabled?(hash, department); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#156 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#174 def duplicate_setting?(base_hash, derived_hash, key, inherited_file); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#177 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#195 def duplicate_setting_warning(opts, key); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#278 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#292 def gem_config_path(gem_name, relative_config_path); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#256 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#270 def handle_disabled_by_default(config, new_default_configuration); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#227 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#245 def inherited_file(path, inherit_from, file); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#211 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#229 def merge_hashes?(base_hash, derived_hash, key); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#252 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#266 def remote_config?(file); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#248 - def remote_file?(uri); end - - # @api private - # @return [Boolean] - # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#203 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#221 def should_merge?(mode, key); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#207 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#225 def should_override?(mode, key); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#189 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#207 def should_union?(derived_hash, base_hash, root_mode, key); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#274 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#288 def transform(config, &block); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#165 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#183 def warn_on_duplicate_setting(base_hash, derived_hash, key, **opts); end end @@ -2531,7 +2549,7 @@ module RuboCop::Cop::Alignment def within?(inner, outer); end end -# source://rubocop//lib/rubocop/cop/mixin/alignment.rb#10 +# source://rubocop//lib/rubocop/cop/mixin/alignment.rb#8 RuboCop::Cop::Alignment::SPACE = T.let(T.unsafe(nil), String) # This class does autocorrection of nodes that should just be moved to @@ -2672,7 +2690,7 @@ module RuboCop::Cop::AllowedPattern # @return [Boolean] # # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#21 - def ignored_line?; end + def ignored_line?(line); end # @return [Boolean] # @@ -2683,7 +2701,7 @@ module RuboCop::Cop::AllowedPattern # @return [Boolean] # # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#34 - def matches_ignored_pattern?; end + def matches_ignored_pattern?(line); end end # This module encapsulates the ability to allow certain receivers in a cop. @@ -5657,24 +5675,24 @@ end module RuboCop::Cop::EnforceSuperclass # @api private # - # source://rubocop-rails/2.29.1/lib/rubocop/cop/mixin/enforce_superclass.rb#19 + # source://rubocop-rails/2.30.3/lib/rubocop/cop/mixin/enforce_superclass.rb#19 def on_class(node); end # @api private # - # source://rubocop-rails/2.29.1/lib/rubocop/cop/mixin/enforce_superclass.rb#25 + # source://rubocop-rails/2.30.3/lib/rubocop/cop/mixin/enforce_superclass.rb#25 def on_send(node); end private - # source://rubocop-rails/2.29.1/lib/rubocop/cop/mixin/enforce_superclass.rb#33 + # source://rubocop-rails/2.30.3/lib/rubocop/cop/mixin/enforce_superclass.rb#33 def register_offense(offense_node); end class << self # @api private # @private # - # source://rubocop-rails/2.29.1/lib/rubocop/cop/mixin/enforce_superclass.rb#7 + # source://rubocop-rails/2.30.3/lib/rubocop/cop/mixin/enforce_superclass.rb#7 def included(base); end end end @@ -6894,99 +6912,99 @@ end # # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#7 module RuboCop::Cop::HashShorthandSyntax - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#32 def on_hash_for_mixed_shorthand(hash_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#26 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#44 def on_pair(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#126 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#144 def brackets?(method_dispatch_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#156 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#174 def breakdown_value_types_of_hash(hash_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#103 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#121 def def_node_that_require_parentheses(node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#185 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#203 def each_omittable_value_pair(hash_value_type_breakdown, &block); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#181 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#199 def each_omitted_value_pair(hash_value_type_breakdown, &block); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#81 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#99 def enforced_shorthand_syntax; end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#118 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#136 def find_ancestor_method_dispatch_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#168 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#186 def hash_with_mixed_shorthand_syntax?(hash_value_type_breakdown); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#172 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#190 def hash_with_values_that_cant_be_omitted?(hash_value_type_breakdown); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#176 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#194 def ignore_explicit_omissible_hash_shorthand_syntax?(hash_value_type_breakdown); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#75 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#93 def ignore_hash_shorthand_syntax?(pair_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#69 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#87 def ignore_mixed_hash_shorthand_syntax?(hash_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#141 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#159 def last_expression?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#149 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#167 def method_dispatch_as_argument?(method_dispatch_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#189 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#207 def mixed_shorthand_syntax_check(hash_value_type_breakdown); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#205 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#223 def no_mixed_shorthand_syntax_check(hash_value_type_breakdown); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#49 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#67 def register_offense(node, message, replacement); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#85 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#103 def require_hash_value?(hash_key_source, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#94 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#112 def require_hash_value_for_around_hash_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#130 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#148 def use_element_of_hash_literal_as_receiver?(ancestor, parent); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#135 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#153 def use_modifier_form_without_parenthesized_method_call?(ancestor); end end @@ -6999,12 +7017,12 @@ RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_MSG_PREFIX = T.let(T.unsafe(nil), # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#11 RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_OMIT_VALUE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#216 +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14 class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#225 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#23 def first_argument; end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#229 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#27 def last_argument; end # Returns the value of attribute node @@ -7018,7 +7036,7 @@ class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct # @return [Object] the newly set value def node=(_); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#217 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#15 def selector; end class << self @@ -7056,16 +7074,16 @@ module RuboCop::Cop::HashSubset private - # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#166 + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#181 def decorate_source(value); end - # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#174 + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#189 def except_key(node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#153 + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#168 def except_key_source(key); end - # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#145 + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#160 def extract_body_if_negated(body); end # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#59 @@ -7078,15 +7096,15 @@ module RuboCop::Cop::HashSubset # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#123 + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#138 def included?(body, negated); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#131 + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#146 def not_included?(body, negated); end - # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#182 + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#197 def offense_range(node); end # @raise [NotImplementedError] @@ -7096,22 +7114,22 @@ module RuboCop::Cop::HashSubset # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#88 + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#95 def range_include?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#135 + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#150 def safe_to_register_offense?(block, except_key); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#108 + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#123 def semantically_except_method?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#119 + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#134 def semantically_slice_method?(node); end # @raise [NotImplementedError] @@ -7122,8 +7140,18 @@ module RuboCop::Cop::HashSubset # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#100 + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#88 + def slices_key?(send_node, method, key_arg, value_arg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#115 def supported_subset_method?(method); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#107 + def using_value_variable?(send_node, value_arg); end end # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#16 @@ -7145,71 +7173,71 @@ RuboCop::Cop::HashSubset::SUBSET_METHODS = T.let(T.unsafe(nil), Array) module RuboCop::Cop::HashTransformMethod extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#87 def array_receiver?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#17 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#91 def on_block(node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#34 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#108 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#27 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#101 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#108 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#182 def execute_correction(corrector, node, correction); end # @abstract # @raise [NotImplementedError] # @return [Captures] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#83 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#157 def extract_captures(_match); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#60 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#134 def handle_possible_offense(node, match, match_desc); end # @abstract # @raise [NotImplementedError] # @return [String] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#90 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#164 def new_method_name; end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#41 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#115 def on_bad_each_with_object(_node); end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#46 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#120 def on_bad_hash_brackets_map(_node); end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#51 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#125 def on_bad_map_to_h(_node); end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#56 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#130 def on_bad_to_h(_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#94 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#168 def prepare_correction(node); end end # Internal helper class to hold autocorrect data # -# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#136 +# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # Returns the value of attribute block_node # @@ -7244,16 +7272,16 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # @return [Object] the newly set value def match=(_); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#177 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#72 def set_new_arg_name(transformed_argname, corrector); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#181 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#76 def set_new_body_expression(transforming_body_expr, corrector); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#167 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#62 def set_new_method_name(new_method_name, corrector); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#161 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#56 def strip_prefix_and_suffix(node, corrector); end # Returns the value of attribute trailing @@ -7270,16 +7298,16 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct class << self def [](*_arg0); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#137 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#32 def from_each_with_object(node, match); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#141 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#36 def from_hash_brackets_map(node, match); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#145 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#40 def from_map_to_h(node, match); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#157 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#52 def from_to_h(node, match); end def inspect; end @@ -7291,16 +7319,16 @@ end # Internal helper class to hold match data # -# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#118 +# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 class RuboCop::Cop::HashTransformMethod::Captures < ::Struct # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#119 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#14 def noop_transformation?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#124 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#19 def transformation_uses_both_args?; end # Returns the value of attribute transformed_argname @@ -7338,7 +7366,7 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#128 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#23 def use_transformed_argname?; end class << self @@ -7988,73 +8016,73 @@ class RuboCop::Cop::Layout::BlockAlignment < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#74 def block_end_align_target?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#83 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#85 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#83 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#85 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#89 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#91 def style_parameter_name; end private - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#245 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#247 def add_space_before(corrector, loc, delta); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#222 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#224 def alt_start_msg(start_loc, source_line_column); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#144 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#146 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#95 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#97 def block_end_align_target(node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#113 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#115 def check_block_alignment(start_node, block_node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#195 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#197 def compute_do_source_line_column(node, end_loc); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#237 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#239 def compute_start_col(ancestor_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#109 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#111 def disqualified_parent?(parent, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#105 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#107 def end_align_target?(node, parent); end # In offense message, we want to show the assignment LHS rather than # the entire assignment. # - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#190 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#192 def find_lhs_node(node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#161 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#163 def format_message(start_loc, end_loc, do_source_line_column, error_source_line_column); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#232 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#234 def format_source_line_column(source_line_column); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#214 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#216 def loc_to_source_line_column(loc); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#126 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#128 def register_offense(block_node, start_loc, end_loc, do_source_line_column); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#249 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#251 def remove_space_before(corrector, end_pos, delta); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#171 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#173 def start_for_block_node(block_node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#178 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#180 def start_for_line_node(block_node); end end @@ -9826,17 +9854,17 @@ class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Bas # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#164 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#166 def block_start?(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#170 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#172 def body_end?(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#158 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#160 def class_def?(line); end # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#124 @@ -9844,7 +9872,7 @@ class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Bas # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#154 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#156 def empty_lines_around?(node); end # @return [Boolean] @@ -9852,30 +9880,50 @@ class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Bas # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#104 def expected_empty_lines?(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#180 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#225 + def inside_block?(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#182 def message(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#189 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#191 def message_for_around_style(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#199 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#201 def message_for_only_before_style(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#176 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#178 def next_empty_line_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#148 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#150 def next_line_empty?(last_send_line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#141 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#229 + def no_empty_lines_around_block_body?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#143 def previous_line_empty?(send_line); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#137 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#139 def previous_line_ignoring_comments(processed_source, send_line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#219 + def should_insert_line_after?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#211 + def should_insert_line_before?(node); end end # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#48 @@ -10444,7 +10492,15 @@ class RuboCop::Cop::Layout::EmptyLinesAroundMethodBody < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#38 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#47 + def offending_endless_method?(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#52 + def register_offense_for_endless_method(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#43 def style; end end @@ -17603,7 +17659,7 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::SafeAssignment extend ::RuboCop::Cop::AutoCorrector - # source://standard/1.45.0/lib/standard/rubocop/ext.rb#4 + # source://standard/1.47.0/lib/standard/rubocop/ext.rb#4 def message(_); end # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 @@ -18122,6 +18178,62 @@ end # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#63 RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String) +# are strictly formatted. +# +# A comment can be added to the directive by prefixing it with `--`. +# +# @example +# # bad +# # rubocop:disable Layout/LineLength Style/Encoding +# # ^ missing comma +# +# # bad +# # rubocop:disable +# +# # bad +# # rubocop:disable Layout/LineLength # rubocop:disable Style/Encoding +# +# # bad +# # rubocop:wrongmode Layout/LineLength +# +# # good +# # rubocop:disable Layout/LineLength +# +# # good +# # rubocop:disable Layout/LineLength, Style/Encoding +# +# # good +# # rubocop:disable all +# +# # good +# # rubocop:disable Layout/LineLength -- This is a good comment. +# +# source://rubocop//lib/rubocop/cop/lint/cop_directive_syntax.rb#39 +class RuboCop::Cop::Lint::CopDirectiveSyntax < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/cop_directive_syntax.rb#48 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/lint/cop_directive_syntax.rb#62 + def offense_message(directive_comment); end +end + +# source://rubocop//lib/rubocop/cop/lint/cop_directive_syntax.rb#40 +RuboCop::Cop::Lint::CopDirectiveSyntax::COMMON_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/cop_directive_syntax.rb#43 +RuboCop::Cop::Lint::CopDirectiveSyntax::INVALID_MODE_NAME_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/cop_directive_syntax.rb#45 +RuboCop::Cop::Lint::CopDirectiveSyntax::MALFORMED_COP_NAMES_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/cop_directive_syntax.rb#44 +RuboCop::Cop::Lint::CopDirectiveSyntax::MISSING_COP_NAME_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/cop_directive_syntax.rb#42 +RuboCop::Cop::Lint::CopDirectiveSyntax::MISSING_MODE_NAME_MSG = T.let(T.unsafe(nil), String) + # Checks for debug calls (such as `debugger` or `binding.pry`) that should # not be kept for production code. # @@ -18914,71 +19026,66 @@ class RuboCop::Cop::Lint::DuplicateMethods < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#47 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#88 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#85 def alias_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#75 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#73 def method_alias?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#79 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#77 def on_alias(node); end # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#53 def on_def(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#62 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#61 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#94 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#91 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#93 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#90 def sym_name(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#107 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#103 def check_const_receiver(node, name, const_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#114 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#110 def check_self_receiver(node, name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#198 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#194 def found_attr(node, args, readable: T.unsafe(nil), writable: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#126 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#122 def found_instance_method(node, name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#149 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#145 def found_method(node, method_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#139 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#135 def found_sclass_method(node, name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#176 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#172 def location(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#208 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#204 def lookup_constant(node, const_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#121 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#117 def message_for_dup(node, method_name, key); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#168 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#164 def method_key(node, method_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#184 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#180 def on_attr(node, attr_name, args); end - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#240 - def possible_dsl?(node); end - - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#226 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#222 def qualified_name(enclosing, namespace, mod_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#250 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#236 def source_location(node); end end @@ -19486,6 +19593,13 @@ RuboCop::Cop::Lint::EmptyClass::METACLASS_MSG = T.let(T.unsafe(nil), String) # if condition # do_something # elsif other_condition +# nil +# end +# +# # good +# if condition +# do_something +# elsif other_condition # do_something_else # end # @example AllowComments: true (default) @@ -19503,10 +19617,9 @@ RuboCop::Cop::Lint::EmptyClass::METACLASS_MSG = T.let(T.unsafe(nil), String) # # noop # end # -# source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#63 +# source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#65 class RuboCop::Cop::Lint::EmptyConditionalBody < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp - include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#71 @@ -19514,54 +19627,38 @@ class RuboCop::Cop::Lint::EmptyConditionalBody < ::RuboCop::Cop::Base private - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#177 - def all_branches_body_missing?(node); end - - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#95 - def autocorrect(corrector, node); end - - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#163 + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#125 def branch_range(node); end - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#125 - def correct_other_branches(corrector, node); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#94 + def can_simplify_conditional?(node); end - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#183 + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#133 def deletion_range(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#158 + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#121 def else_branch?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#152 - def empty_elsif_branch?(node); end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#144 + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#113 def empty_if_branch?(node); end - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#87 - def offense_range(node); end + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#108 + def flip_orphaned_else(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#101 - def remove_comments(corrector, node); end + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#86 + def offense_range(node); end - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#109 + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#98 def remove_empty_branch(corrector, node); end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#137 - def require_other_branches_correction?(node); end end -# source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#68 +# source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#69 RuboCop::Cop::Lint::EmptyConditionalBody::MSG = T.let(T.unsafe(nil), String) # Checks for empty `ensure` blocks. @@ -19914,9 +20011,6 @@ class RuboCop::Cop::Lint::ErbNewArguments < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#160 - def arguments_range(node); end - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#115 def autocorrect(corrector, node); end @@ -20021,10 +20115,10 @@ class RuboCop::Cop::Lint::FloatComparison < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#100 + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#95 def check_numeric_returning_method(node); end - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#85 + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#84 def check_send(node); end # @return [Boolean] @@ -20081,7 +20175,7 @@ RuboCop::Cop::Lint::FloatOutOfRange::MSG = T.let(T.unsafe(nil), String) # expected fields for format/sprintf/#% and what is actually # passed as arguments. # -# In addition it checks whether different formats are used in the same +# In addition, it checks whether different formats are used in the same # format string. Do not mix numbered, unnumbered, and named formats in # the same format string. # @@ -20817,12 +20911,15 @@ RuboCop::Cop::Lint::LambdaWithoutLiteralBlock::RESTRICT_ON_SEND = T.let(T.unsafe # end # # # bad -# if some_var && true +# # We're only interested in the left hand side being a truthy literal, +# # because it affects the evaluation of the &&, whereas the right hand +# # side will be conditionally executed/called and can be a literal. +# if true && some_var # do_something # end # # # good -# if some_var && some_condition +# if some_var # do_something # end # @@ -20832,72 +20929,79 @@ RuboCop::Cop::Lint::LambdaWithoutLiteralBlock::RESTRICT_ON_SEND = T.let(T.unsafe # break if condition # end # -# source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#35 +# source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#38 class RuboCop::Cop::Lint::LiteralAsCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#94 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#160 def message(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#59 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#45 + def on_and(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#125 def on_case(case_node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#74 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#140 def on_case_match(case_match_node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#41 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#53 def on_if(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#88 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#154 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#52 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#95 def on_until(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#52 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#110 def on_until_post(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#45 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#65 def on_while(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#45 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#80 def on_while_post(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#109 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#175 def basic_literal?(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#139 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#207 def check_case(case_node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#100 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#166 def check_for_literal(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#121 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#187 def check_node(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#148 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#216 def condition(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#131 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#232 + def correct_if_node(node, cond, result); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#197 def handle_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#117 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#183 def primitive_array?(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#156 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#224 def when_conditions_range(when_node); end end -# source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#38 +# source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#42 RuboCop::Cop::Lint::LiteralAsCondition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#39 +# source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#43 RuboCop::Cop::Lint::LiteralAsCondition::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for literal assignments in the conditions of `if`, `while`, and `until`. @@ -23032,7 +23136,6 @@ RuboCop::Cop::Lint::RedundantRegexpQuantifiers::MSG_REDUNDANT_QUANTIFIER = T.let # * 2.0+ ... `enumerator` # * 2.1+ ... `thread` # * 2.2+ ... Add `rational` and `complex` above -# * 2.5+ ... Add `pp` above # * 2.7+ ... Add `ruby2_keywords` above # * 3.1+ ... Add `fiber` above # * 3.2+ ... `set` @@ -23047,43 +23150,32 @@ RuboCop::Cop::Lint::RedundantRegexpQuantifiers::MSG_REDUNDANT_QUANTIFIER = T.let # # good # require 'unloaded_feature' # -# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#38 +# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#33 class RuboCop::Cop::Lint::RedundantRequireStatement < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#61 + # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#47 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#57 - def pp_const?(param0 = T.unsafe(nil)); end - - # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#51 + # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#42 def redundant_require_statement?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#91 - def need_to_require_pp?; end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#80 + # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#66 def redundant_feature?(feature_name); end end -# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#42 +# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#37 RuboCop::Cop::Lint::RedundantRequireStatement::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#45 -RuboCop::Cop::Lint::RedundantRequireStatement::PRETTY_PRINT_METHODS = T.let(T.unsafe(nil), Array) - -# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#43 +# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#38 RuboCop::Cop::Lint::RedundantRequireStatement::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#44 +# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#39 RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T.unsafe(nil), Array) # Checks for redundant safe navigation calls. @@ -23398,6 +23490,179 @@ RuboCop::Cop::Lint::RedundantStringCoercion::MSG_SELF = T.let(T.unsafe(nil), Str # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#29 RuboCop::Cop::Lint::RedundantStringCoercion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Checks for redundant uses of `to_s`, `to_sym`, `to_i`, `to_f`, `to_r`, `to_c`, +# `to_a`, `to_h`, and `to_set`. +# +# When one of these methods is called on an object of the same type, that object +# is returned, making the call unnecessary. The cop detects conversion methods called +# on object literals, class constructors, class `[]` methods, and the `Kernel` methods +# `String()`, `Integer()`, `Float()`, `Rational()`, `Complex()` and `Array()`. +# +# Specifically, these cases are detected for each conversion method: +# +# * `to_s` when called on a string literal, interpolated string, heredoc, +# or with `String.new` or `String()`. +# * `to_sym` when called on a symbol literal or interpolated symbol. +# * `to_i` when called on an integer literal or with `Integer()`. +# * `to_f` when called on a float literal of with `Float()`. +# * `to_r` when called on a rational literal or with `Rational()`. +# * `to_c` when called on a complex literal of with `Complex()`. +# * `to_a` when called on an array literal, or with `Array.new`, `Array()` or `Array[]`. +# * `to_h` when called on a hash literal, or with `Hash.new`, `Hash()` or `Hash[]`. +# * `to_set` when called on `Set.new` or `Set[]`. +# +# In all cases, chaining one same `to_*` conversion methods listed above is redundant. +# +# The cop can also register an offense for chaining conversion methods on methods that are +# expected to return a specific type regardless of receiver (eg. `foo.inspect.to_s`). +# +# @example +# # bad +# "text".to_s +# :sym.to_sym +# 42.to_i +# 8.5.to_f +# 12r.to_r +# 1i.to_c +# [].to_a +# {}.to_h +# Set.new.to_set +# +# # good +# "text" +# :sym +# 42 +# 8.5 +# 12r +# 1i +# [] +# {} +# Set.new +# +# # bad +# Integer(var).to_i +# +# # good +# Integer(var) +# +# # good - chaining to a type constructor with exceptions suppressed +# # in this case, `Integer()` could return `nil` +# Integer(var, exception: false).to_i +# +# # bad - chaining the same conversion +# foo.to_s.to_s +# +# # good +# foo.to_s +# +# # bad - chaining a conversion to a method that is expected to return the same type +# inspect.to_s +# +# # good +# inspect +# +# source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#77 +class RuboCop::Cop::Lint::RedundantTypeConversion < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#151 + def array_constructor?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#146 + def complex_constructor?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#175 + def exception_false_keyword_argument?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#136 + def float_constructor?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#159 + def hash_constructor?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#131 + def integer_constructor?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#180 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#180 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#141 + def rational_constructor?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#168 + def set_constructor?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#123 + def string_constructor?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#118 + def type_constructor?(param0 = T.unsafe(nil), param1); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#238 + def chained_conversion?(node, receiver); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#244 + def chained_to_typed_method?(node, receiver); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#225 + def constructor?(node, receiver); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#232 + def constructor_suppresses_exceptions?(receiver); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#206 + def find_receiver(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#200 + def hash_or_set_with_block?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#219 + def literal_receiver?(node, receiver); end +end + +# Maps each conversion method to the pattern matcher for that type's constructors +# Not every type has a constructor, for instance Symbol. +# +# source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#97 +RuboCop::Cop::Lint::RedundantTypeConversion::CONSTRUCTOR_MAPPING = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#112 +RuboCop::Cop::Lint::RedundantTypeConversion::CONVERSION_METHODS = T.let(T.unsafe(nil), Set) + +# Maps conversion methods to the node types for the literals of that type +# +# source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#83 +RuboCop::Cop::Lint::RedundantTypeConversion::LITERAL_NODE_TYPES = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#80 +RuboCop::Cop::Lint::RedundantTypeConversion::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#113 +RuboCop::Cop::Lint::RedundantTypeConversion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# Methods that already are expected to return a given type, which makes a further +# conversion redundant. +# +# source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#110 +RuboCop::Cop::Lint::RedundantTypeConversion::TYPED_METHODS = T.let(T.unsafe(nil), Hash) + # Checks for redundant `with_index`. # # @example @@ -24712,6 +24977,64 @@ end # source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#106 RuboCop::Cop::Lint::SuppressedException::MSG = T.let(T.unsafe(nil), String) +# Checks for cases where exceptions unrelated to the numeric constructors `Integer()`, +# `Float()`, `BigDecimal()`, `Complex()`, and `Rational()` may be unintentionally swallowed. +# +# @example +# +# # bad +# Integer(arg) rescue nil +# +# # bad +# begin +# Integer(arg) +# rescue +# nil +# end +# +# # bad +# begin +# Integer(arg) +# rescue +# end +# +# # good +# Integer(arg, exception: false) +# +# source://rubocop//lib/rubocop/cop/lint/suppressed_exception_in_number_conversion.rb#41 +class RuboCop::Cop::Lint::SuppressedExceptionInNumberConversion < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/lint/suppressed_exception_in_number_conversion.rb#56 + def begin_numeric_constructor_rescue_nil(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/suppressed_exception_in_number_conversion.rb#75 + def constructor_receiver?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/suppressed_exception_in_number_conversion.rb#49 + def numeric_constructor_rescue_nil(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/suppressed_exception_in_number_conversion.rb#65 + def numeric_method?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/suppressed_exception_in_number_conversion.rb#82 + def on_rescue(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/suppressed_exception_in_number_conversion.rb#103 + def expected_exception_classes_only?(exception_classes); end +end + +# source://rubocop//lib/rubocop/cop/lint/suppressed_exception_in_number_conversion.rb#46 +RuboCop::Cop::Lint::SuppressedExceptionInNumberConversion::EXPECTED_EXCEPTION_CLASSES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/suppressed_exception_in_number_conversion.rb#45 +RuboCop::Cop::Lint::SuppressedExceptionInNumberConversion::MSG = T.let(T.unsafe(nil), String) + # Checks for uses of literal strings converted to # a symbol where a literal symbol could be used instead. # @@ -25877,7 +26200,7 @@ class RuboCop::Cop::Lint::UnusedMethodArgument < ::RuboCop::Cop::Base def message(variable); end class << self - # source://rubocop-performance/1.23.1/lib/rubocop-performance.rb#15 + # source://rubocop-performance/1.24.0/lib/rubocop-performance.rb#12 def autocorrect_incompatible_with; end # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#84 @@ -26298,6 +26621,64 @@ end # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#45 RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String) +# Checks for useless constant scoping. Private constants must be defined using +# `private_constant` or `class << self`. Even if `private` access modifier is used, +# it is public scope despite its appearance. +# +# It does not support autocorrection due to behavior change and multiple ways to fix it. +# Or a public constant may be intended. +# +# @example +# +# # bad +# class Foo +# private +# PRIVATE_CONST = 42 +# end +# +# # good +# class Foo +# PRIVATE_CONST = 42 +# private_constant :PRIVATE_CONST +# end +# +# # good +# class Foo +# class << self +# private +# PRIVATE_CONST = 42 +# end +# end +# +# # good +# class Foo +# PUBLIC_CONST = 42 # If private scope is not intended. +# end +# +# source://rubocop//lib/rubocop/cop/lint/useless_constant_scoping.rb#40 +class RuboCop::Cop::Lint::UselessConstantScoping < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/useless_constant_scoping.rb#48 + def on_casgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_constant_scoping.rb#44 + def private_constants(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_constant_scoping.rb#58 + def after_private_modifier?(left_siblings); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_constant_scoping.rb#68 + def private_constantize?(right_siblings, const_value); end +end + +# source://rubocop//lib/rubocop/cop/lint/useless_constant_scoping.rb#41 +RuboCop::Cop::Lint::UselessConstantScoping::MSG = T.let(T.unsafe(nil), String) + # Checks for calls to `defined?` with strings or symbols as the argument. # Such calls will always return `'expression'`, you probably meant to # check for the existence of a constant, method, or variable instead. @@ -26880,58 +27261,58 @@ class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/void.rb#255 + # source://rubocop//lib/rubocop/cop/lint/void.rb#261 def all_keys_entirely_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/void.rb#259 + # source://rubocop//lib/rubocop/cop/lint/void.rb#265 def all_values_entirely_literal?(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#233 + # source://rubocop//lib/rubocop/cop/lint/void.rb#239 def autocorrect_nonmutating_send(corrector, node, suggestion); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#227 + # source://rubocop//lib/rubocop/cop/lint/void.rb#233 def autocorrect_void_expression(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#214 + # source://rubocop//lib/rubocop/cop/lint/void.rb#220 def autocorrect_void_op(corrector, node); end # source://rubocop//lib/rubocop/cop/lint/void.rb#101 def check_begin(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#199 + # source://rubocop//lib/rubocop/cop/lint/void.rb#205 def check_ensure(node); end # source://rubocop//lib/rubocop/cop/lint/void.rb#115 def check_expression(expr); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#157 + # source://rubocop//lib/rubocop/cop/lint/void.rb#163 def check_literal(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#181 + # source://rubocop//lib/rubocop/cop/lint/void.rb#187 def check_nonmutating(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#165 + # source://rubocop//lib/rubocop/cop/lint/void.rb#171 def check_self(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#139 + # source://rubocop//lib/rubocop/cop/lint/void.rb#145 def check_var(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#173 + # source://rubocop//lib/rubocop/cop/lint/void.rb#179 def check_void_expression(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#128 + # source://rubocop//lib/rubocop/cop/lint/void.rb#129 def check_void_op(node, &block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/void.rb#242 + # source://rubocop//lib/rubocop/cop/lint/void.rb#248 def entirely_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/void.rb#207 + # source://rubocop//lib/rubocop/cop/lint/void.rb#213 def in_void_context?(node); end end @@ -27813,13 +28194,13 @@ class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator # @return [AbcSizeCalculator] a new instance of AbcSizeCalculator # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#30 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#37 def initialize(node, discount_repeated_attributes: T.unsafe(nil)); end # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#42 def calculate; end - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#53 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#60 def calculate_node(node); end # @return [Boolean] @@ -27827,7 +28208,7 @@ class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#65 def else_branch?(node); end - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#47 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#54 def evaluate_branch_nodes(node); end # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#60 @@ -28051,29 +28432,29 @@ module RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount # # @api private # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#30 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#37 def initialize(node, discount_repeated_attributes: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#61 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#68 def attribute_call?(param0 = T.unsafe(nil)); end # @api private # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#53 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#60 def calculate_node(node); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#43 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#50 def discount_repeated_attributes?; end # @api private # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#47 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#54 def evaluate_branch_nodes(node); end - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#92 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#99 def root_node?(param0 = T.unsafe(nil)); end private @@ -28081,7 +28462,7 @@ module RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#66 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#73 def discount_repeated_attribute?(send_node); end # Returns the "known_attributes" for the `node` by walking the receiver tree @@ -28092,7 +28473,7 @@ module RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount # # @api private # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#103 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#110 def find_attributes(node, &block); end # or `nil` if it is not a setter. @@ -28104,13 +28485,13 @@ module RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount # @api private # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#80 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#87 def update_repeated_attribute(node); end end # @api private # -# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#117 +# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#29 RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount::VAR_SETTER_TO_GETTER = T.let(T.unsafe(nil), Hash) # Identifies repetitions `&.` on the same variable: @@ -28771,6 +29152,21 @@ RuboCop::Cop::Naming::BinaryOperatorParameterName::MSG = T.let(T.unsafe(nil), St # source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#21 RuboCop::Cop::Naming::BinaryOperatorParameterName::OP_LIKE_METHODS = T.let(T.unsafe(nil), Array) +# In Ruby 3.1, anonymous block forwarding has been added. +# +# This cop identifies places where `do_something(&block)` can be replaced +# by `do_something(&)`. +# +# It also supports the opposite style by alternative `explicit` option. +# You can specify the block variable name for autocorrection with `BlockForwardingName`. +# The default variable name is `block`. If the name is already in use, it will not be +# autocorrected. +# +# [NOTE] +# ==== +# Because of a bug in Ruby 3.3.0, when a block is referenced inside of another block, +# no offense will be registered until Ruby 3.4: +# # [source,ruby] # ---- # def foo(&block) @@ -28778,7 +29174,7 @@ RuboCop::Cop::Naming::BinaryOperatorParameterName::OP_LIKE_METHODS = T.let(T.uns # block_method { bar(&block) } # end # ---- -# -- +# ==== # # @example EnforcedStyle: anonymous (default) # @@ -29750,20 +30146,16 @@ end # they end with a `?`. These methods should be changed to remove the # prefix. # -# @example NamePrefix: ['is_', 'has_', 'have_'] (default) -# # bad -# def is_even(value) -# end +# When `UseSorbetSigs` set to true (optional), the cop will only report +# offenses if the method has a Sorbet `sig` with a return type of +# `T::Boolean`. Dynamic methods are not supported with this configuration. # -# # When ForbiddenPrefixes: ['is_', 'has_', 'have_'] (default) -# # good -# def even?(value) -# end +# @example MethodDefinitionMacros: ['def_node_matcher'] +# # bad +# def_node_matcher(:is_even) { |value| } # -# # When ForbiddenPrefixes: [] # # good -# def is_even?(value) -# end +# def_node_matcher(:even?) { |value| } # @example NamePrefix: ['seems_to_be_'] # # bad # def seems_to_be_even(value) @@ -29787,59 +30179,102 @@ end # # good # def is_even?(value) # end +# @example UseSorbetSigs: false (default) +# # bad +# sig { returns(String) } +# def is_this_thing_on +# "yes" +# end +# +# # good - Sorbet signature is not evaluated +# sig { returns(String) } +# def is_this_thing_on? +# "yes" +# end +# @example UseSorbetSigs: true +# # bad +# sig { returns(T::Boolean) } +# def odd(value) +# end +# +# # good +# sig { returns(T::Boolean) } +# def odd?(value) +# end # @example MethodDefinitionMacros: ['define_method', 'define_singleton_method'] (default) # # bad # define_method(:is_even) { |value| } # # # good # define_method(:even?) { |value| } -# @example MethodDefinitionMacros: ['def_node_matcher'] +# @example NamePrefix: ['is_', 'has_', 'have_'] (default) # # bad -# def_node_matcher(:is_even) { |value| } +# def is_even(value) +# end # +# # When ForbiddenPrefixes: ['is_', 'has_', 'have_'] (default) # # good -# def_node_matcher(:even?) { |value| } +# def even?(value) +# end # -# source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#75 +# # When ForbiddenPrefixes: [] +# # good +# def is_even?(value) +# end +# +# source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#103 class RuboCop::Cop::Naming::PredicateName < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#79 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#107 def dynamic_method_define(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#98 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#126 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#98 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#126 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#85 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#113 def on_send(node); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#112 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#154 + def sorbet_return_type(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#141 def validate_config; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#124 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#164 def allowed_method_name?(method_name, prefix); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#132 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#172 def expected_name(method_name, prefix); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#146 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#186 def forbidden_prefixes; end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#142 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#182 def message(method_name, new_name); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#154 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#198 def method_definition_macros(macro_name); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#150 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#190 def predicate_prefixes; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#158 + def sorbet_sig?(node, return_type: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#194 + def use_sorbet_sigs?; end end # Makes sure that rescued exceptions variables are named as @@ -29944,8 +30379,15 @@ end # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#64 RuboCop::Cop::Naming::RescuedExceptionsVariableName::MSG = T.let(T.unsafe(nil), String) -# Makes sure that all variables use the configured style, -# snake_case or camelCase, for their names. +# Checks that the configured style (snake_case or camelCase) is used for all variable names. +# This includes local variables, instance variables, class variables, method arguments +# (positional, keyword, rest or block), and block arguments. +# +# The cop can also be configured to forbid using specific names for variables, using +# `ForbiddenIdentifiers` or `ForbiddenPatterns`. In addition to the above, this applies +# to global variables as well. +# +# Method definitions and method calls are not affected by this cop. # # @example EnforcedStyle: snake_case (default) # # bad @@ -29964,9 +30406,21 @@ RuboCop::Cop::Naming::RescuedExceptionsVariableName::MSG = T.let(T.unsafe(nil), # fooBar = 1 # @example AllowedPatterns: ['_v\d+\z'] # # good (with EnforcedStyle: camelCase) -# :release_v1 -# -# source://rubocop//lib/rubocop/cop/naming/variable_name.rb#31 +# release_v1 = true +# @example ForbiddenIdentifiers: ['fooBar'] +# # bad (in all cases) +# fooBar = 1 +# @fooBar = 1 +# @@fooBar = 1 +# $fooBar = 1 +# @example ForbiddenPatterns: ['_v\d+\z'] +# # bad (in all cases) +# release_v1 = true +# @release_v1 = true +# @@release_v1 = true +# $release_v1 = true +# +# source://rubocop//lib/rubocop/cop/naming/variable_name.rb#52 class RuboCop::Cop::Naming::VariableName < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedIdentifiers include ::RuboCop::Cop::ConfigurableEnforcedStyle @@ -29974,53 +30428,80 @@ class RuboCop::Cop::Naming::VariableName < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableNaming include ::RuboCop::Cop::AllowedPattern - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#64 def on_arg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#64 def on_blockarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#64 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # Only forbidden names are checked for global variable assignment + # + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#86 + def on_gvasgn(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#64 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#64 def on_kwarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#64 def on_kwoptarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#64 def on_kwrestarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#64 def on_lvar(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#64 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#64 def on_optarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#64 def on_restarg(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#38 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#60 def valid_name?(node, name, given_style = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#61 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#99 + def forbidden_identifiers; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#111 + def forbidden_name?(name); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#103 + def forbidden_patterns; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#107 + def matches_forbidden_pattern?(name); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#95 def message(style); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#118 + def register_forbidden_name(node); end end -# source://rubocop//lib/rubocop/cop/naming/variable_name.rb#36 +# source://rubocop//lib/rubocop/cop/naming/variable_name.rb#57 RuboCop::Cop::Naming::VariableName::MSG = T.let(T.unsafe(nil), String) +# source://rubocop//lib/rubocop/cop/naming/variable_name.rb#58 +RuboCop::Cop::Naming::VariableName::MSG_FORBIDDEN = T.let(T.unsafe(nil), String) + # Makes sure that all numbered variables use the # configured style, snake_case, normalcase, or non_integer, # for their numbering. @@ -30947,36 +31428,36 @@ end module RuboCop::Cop::RSpec; end class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_expectations.rb#78 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_expectations.rb#78 def aggregate_failures?(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_expectations.rb#89 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_expectations.rb#89 def aggregate_failures_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_expectations.rb#86 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_expectations.rb#86 def expect?(param0 = T.unsafe(nil)); end # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_expectations.rb#93 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_expectations.rb#93 def on_block(node); end private - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_expectations.rb#109 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_expectations.rb#109 def example_with_aggregate_failures?(example_node); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_expectations.rb#116 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_expectations.rb#116 def find_aggregate_failures(example_node); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_expectations.rb#121 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_expectations.rb#121 def find_expectation(node, &block); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_expectations.rb#132 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_expectations.rb#132 def flag_example(node, expectation_count:); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_expectations.rb#143 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_expectations.rb#143 def max_expectations; end end @@ -30984,30 +31465,30 @@ class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 def on_block(node); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#102 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#102 def on_new_investigation; end private - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#111 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#111 def all_helpers(node); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#141 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#141 def allow_subject?; end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#109 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#109 def example_group_memoized_helpers; end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#116 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#116 def helpers(node); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#137 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#137 def max; end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#127 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#127 def variable_nodes(node); end end @@ -31015,27 +31496,27 @@ class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/nested_groups.rb#107 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/nested_groups.rb#107 def on_top_level_group(node); end private - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/nested_groups.rb#157 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/nested_groups.rb#157 def allowed_groups; end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/nested_groups.rb#134 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/nested_groups.rb#134 def count_up_nesting?(node, example_group); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/nested_groups.rb#119 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/nested_groups.rb#119 def find_nested_example_groups(node, nesting: T.unsafe(nil), &block); end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/nested_groups.rb#144 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/nested_groups.rb#144 def max_nesting; end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/nested_groups.rb#148 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/nested_groups.rb#148 def max_nesting_config; end - # source://rubocop-rspec/3.4.0/lib/rubocop/cop/rspec/nested_groups.rb#140 + # source://rubocop-rspec/3.5.0/lib/rubocop/cop/rspec/nested_groups.rb#140 def message(nesting); end end @@ -31045,19 +31526,31 @@ end module RuboCop::Cop::RangeHelp private - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#140 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#152 def add_range(range1, range2); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#81 + # A range containing the first to the last argument + # of a method call or method definition. + # def foo(a, b:) + # ^^^^^ + # bar(1, 2, 3, &blk) + # ^^^^^^^^^^^^^ + # baz { |x, y:, z:| } + # ^^^^^^^^^ + # + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#45 + def arguments_range(node); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#93 def column_offset_between(base_range, range); end # A range containing only the contents of a literal with delimiters (e.g. in # `%i{1 2 3}` this will be the range covering `1 2 3` only). # - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#32 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#33 def contents_range(node); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#99 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#111 def directions(side); end # Returns the column attribute of the range, except if the range is on @@ -31065,46 +31558,46 @@ module RuboCop::Cop::RangeHelp # line, in which case 1 is subtracted from the column value. This gives # the column as it appears when viewing the file in an editor. # - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#91 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#103 def effective_column(range); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#108 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#120 def final_pos(src, pos, increment, continuations, newlines, whitespace); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#116 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#128 def move_pos(src, pos, step, condition, regexp); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#122 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#134 def move_pos_str(src, pos, step, condition, needle); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#36 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#49 def range_between(start_pos, end_pos); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#72 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#84 def range_by_whole_lines(range, include_final_newline: T.unsafe(nil), buffer: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#133 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#145 def range_with_comments(node); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#129 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#141 def range_with_comments_and_lines(node); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#40 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#53 def range_with_surrounding_comma(range, side = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#55 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#67 def range_with_surrounding_space(range_positional = T.unsafe(nil), range: T.unsafe(nil), side: T.unsafe(nil), newlines: T.unsafe(nil), whitespace: T.unsafe(nil), continuations: T.unsafe(nil), buffer: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#11 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#12 def source_range(source_buffer, line_number, column, length = T.unsafe(nil)); end end # The Unicode codepoint # -# source://rubocop//lib/rubocop/cop/mixin/range_help.rb#9 +# source://rubocop//lib/rubocop/cop/mixin/range_help.rb#7 RuboCop::Cop::RangeHelp::BYTE_ORDER_MARK = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/cop/mixin/range_help.rb#54 +# source://rubocop//lib/rubocop/cop/mixin/range_help.rb#8 module RuboCop::Cop::RangeHelp::NOT_GIVEN; end # Common functionality for handling Rational literals. @@ -32302,7 +32795,7 @@ class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#122 def class_send_elements(class_node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#165 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#179 def group_accessors(node, accessors); end # @return [Boolean] @@ -32310,7 +32803,12 @@ class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#99 def groupable_accessor?(node); end + # @return [Boolean] + # # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#142 + def groupable_sibling_accessor?(node, sibling); end + + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#149 def groupable_sibling_accessors(send_node); end # @return [Boolean] @@ -32318,10 +32816,10 @@ class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#134 def grouped_style?; end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#151 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#155 def message(send_node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#156 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#160 def preferred_accessors(node); end # @return [Boolean] @@ -32329,13 +32827,20 @@ class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#94 def previous_line_comment?(node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#171 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#185 def separate_accessors(node); end # @return [Boolean] # # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#138 def separated_style?; end + + # Group after constants + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#174 + def skip_for_grouping?(node); end end # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#59 @@ -32591,6 +33096,39 @@ end # source://rubocop//lib/rubocop/cop/style/and_or.rb#49 RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String) +# In Ruby 2.7, arguments forwarding has been added. +# +# This cop identifies places where `do_something(*args, &block)` +# can be replaced by `do_something(...)`. +# +# In Ruby 3.1, anonymous block forwarding has been added. +# +# This cop identifies places where `do_something(&block)` can be replaced +# by `do_something(&)`; if desired, this functionality can be disabled +# by setting `UseAnonymousForwarding: false`. +# +# In Ruby 3.2, anonymous args/kwargs forwarding has been added. +# +# This cop also identifies places where `use_args(*args)`/`use_kwargs(**kwargs)` can be +# replaced by `use_args(*)`/`use_kwargs(**)`; if desired, this functionality can be disabled +# by setting `UseAnonymousForwarding: false`. +# +# And this cop has `RedundantRestArgumentNames`, `RedundantKeywordRestArgumentNames`, +# and `RedundantBlockArgumentNames` options. This configuration is a list of redundant names +# that are sufficient for anonymizing meaningless naming. +# +# Meaningless names that are commonly used can be anonymized by default: +# e.g., `*args`, `**options`, `&block`, and so on. +# +# Names not on this list are likely to be meaningful and are allowed by default. +# +# This cop handles not only method forwarding but also forwarding to `super`. +# +# [NOTE] +# ==== +# Because of a bug in Ruby 3.3.0, when a block is referenced inside of another block, +# no offense will be registered until Ruby 3.4: +# # [source,ruby] # ---- # def foo(&block) @@ -32598,7 +33136,7 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String) # block_method { bar(&block) } # end # ---- -# -- +# ==== # # @example RedundantBlockArgumentNames: ['blk', 'block', 'proc'] (default) # # bad - But it is good with `EnforcedStyle: explicit` set for `Naming/BlockForwarding`. @@ -37494,8 +38032,11 @@ RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String) # Checks for endless methods. # -# It can enforce either the use of endless methods definitions -# for single-lined method bodies, or disallow endless methods. +# It can enforce endless method definitions whenever possible or with single line methods. +# It can also disallow multiline endless method definitions or all endless definitions. +# +# `require_single_line` style enforces endless method definitions for single line methods. +# `require_always` style enforces endless method definitions for single statement methods. # # Other method definition types are not considered by this cop. # @@ -37504,63 +38045,172 @@ RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String) # * allow_single_line (default) - only single line endless method definitions are allowed. # * allow_always - all endless method definitions are allowed. # * disallow - all endless method definitions are disallowed. +# * require_single_line - endless method definitions are required for single line methods. +# * require_always - all endless method definitions are required. # # NOTE: Incorrect endless method definitions will always be # corrected to a multi-line definition. # # @example EnforcedStyle: allow_single_line (default) +# # bad, multi-line endless method +# def my_method = x.foo +# .bar +# .baz +# # # good -# def my_method() = x +# def my_method +# x +# end # -# # bad, multi-line endless method -# def my_method() = x.foo +# # good +# def my_method = x +# +# # good +# def my_method +# x.foo # .bar # .baz +# end # @example EnforcedStyle: allow_always # # good -# def my_method() = x +# def my_method +# x +# end # # # good -# def my_method() = x.foo +# def my_method = x +# +# # good +# def my_method = x.foo +# .bar +# .baz +# +# # good +# def my_method +# x.foo # .bar # .baz +# end # @example EnforcedStyle: disallow # # bad -# def my_method() = x +# def my_method = x # # # bad -# def my_method() = x.foo +# def my_method = x.foo # .bar # .baz # -# source://rubocop//lib/rubocop/cop/style/endless_method.rb#49 +# # good +# def my_method +# x +# end +# +# # good +# def my_method +# x.foo +# .bar +# .baz +# end +# @example EnforcedStyle: require_single_line +# # bad +# def my_method +# x +# end +# +# # bad +# def my_method = x.foo +# .bar +# .baz +# +# # good +# def my_method = x +# +# # good +# def my_method +# x.foo +# .bar +# .baz +# end +# @example EnforcedStyle: require_always +# # bad +# def my_method +# x +# end +# +# # bad +# def my_method +# x.foo +# .bar +# .baz +# end +# +# # good +# def my_method = x +# +# # good +# def my_method = x.foo +# .bar +# .baz +# +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#132 class RuboCop::Cop::Style::EndlessMethod < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::EndlessMethodRewriter extend ::RuboCop::Cop::TargetRubyVersion extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/endless_method.rb#61 + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#146 def on_def(node); end private - # source://rubocop//lib/rubocop/cop/style/endless_method.rb#71 + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#217 + def arguments(node, missing = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#221 + def can_be_made_endless?(node); end + + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#201 + def correct_to_multiline(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#211 + def endless_replacement(node); end + + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#163 def handle_allow_style(node); end - # source://rubocop//lib/rubocop/cop/style/endless_method.rb#80 + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#195 def handle_disallow_style(node); end + + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#186 + def handle_require_always_style(node); end + + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#172 + def handle_require_single_line_style(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#225 + def too_long_when_made_endless?(node); end end -# source://rubocop//lib/rubocop/cop/style/endless_method.rb#57 +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#140 RuboCop::Cop::Style::EndlessMethod::CORRECTION_STYLES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/endless_method.rb#58 +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#141 RuboCop::Cop::Style::EndlessMethod::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/endless_method.rb#59 +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#142 RuboCop::Cop::Style::EndlessMethod::MSG_MULTI_LINE = T.let(T.unsafe(nil), String) +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#144 +RuboCop::Cop::Style::EndlessMethod::MSG_REQUIRE_ALWAYS = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#143 +RuboCop::Cop::Style::EndlessMethod::MSG_REQUIRE_SINGLE = T.let(T.unsafe(nil), String) + # Checks for consistent usage of `ENV['HOME']`. If `nil` is used as # the second argument of `ENV.fetch`, it is treated as a bad case like `ENV[]`. # @@ -37872,9 +38522,6 @@ class RuboCop::Cop::Style::ExpandPathArguments < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#189 - def arguments_range(node); end - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#100 def autocorrect(corrector, node); end @@ -40956,61 +41603,61 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#69 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#70 def inverse_block?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#60 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#61 def inverse_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#91 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#92 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#77 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#78 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#91 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#92 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#77 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#78 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#176 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#179 def camel_case_constant?(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#120 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#121 def correct_inverse_block(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#111 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#112 def correct_inverse_method(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#127 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#128 def correct_inverse_selector(block, corrector); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#180 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#183 def dot_range(loc); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#165 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#162 def end_parentheses(node, method_call); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#149 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#150 def inverse_blocks; end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#144 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#145 def inverse_methods; end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#190 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#193 def message(method, inverse); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#153 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#154 def negated?(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#161 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#158 def not_to_receiver(node, method_call); end # When comparing classes, `!(Integer < Numeric)` is not the same as @@ -41018,41 +41665,44 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#171 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#174 def possible_class_hierarchy_check?(lhs, rhs, method); end + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#187 + def remove_end_parenthesis(corrector, node, method, method_call); end + # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#157 - def relational_comparison_with_safe_navigation?(node); end - - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#184 - def remove_end_parenthesis(corrector, node, method, method_call); end + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#166 + def safe_navigation_incompatible?(node); end class << self - # source://rubocop-rails/2.29.1/lib/rubocop-rails.rb#25 + # source://rubocop-rails/2.30.3/lib/rubocop-rails.rb#22 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#51 +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#52 RuboCop::Cop::Style::InverseMethods::CAMEL_CASE = T.let(T.unsafe(nil), Regexp) # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#48 RuboCop::Cop::Style::InverseMethods::CLASS_COMPARISON_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#49 +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#50 RuboCop::Cop::Style::InverseMethods::EQUALITY_METHODS = T.let(T.unsafe(nil), Array) # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#47 RuboCop::Cop::Style::InverseMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#50 +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#51 RuboCop::Cop::Style::InverseMethods::NEGATED_EQUALITY_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#53 +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#54 RuboCop::Cop::Style::InverseMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#49 +RuboCop::Cop::Style::InverseMethods::SAFE_NAVIGATION_INCOMPATIBLE_METHODS = T.let(T.unsafe(nil), Array) + # Checks for usages of `unless` which can be replaced by `if` with inverted condition. # Code without `unless` is easier to read, but that is subjective, so this cop # is disabled by default. @@ -41300,10 +41950,13 @@ class RuboCop::Cop::Style::KeywordParametersOrder < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#58 + # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#64 def append_newline_to_last_kwoptarg(arguments, corrector); end - # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#66 + # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#55 + def autocorrect(corrector, node, defining_node, kwarg_nodes); end + + # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#72 def remove_kwargs(kwarg_nodes, corrector); end end @@ -41474,7 +42127,7 @@ class RuboCop::Cop::Style::LineEndConcatenation < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#74 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#80 def autocorrect(corrector, operator_range); end # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#57 @@ -41482,35 +42135,38 @@ class RuboCop::Cop::Style::LineEndConcatenation < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#101 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#107 def eligible_next_successor?(next_successor); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#97 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#103 def eligible_operator?(operator); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#105 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#111 def eligible_predecessor?(predecessor); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#93 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#99 def eligible_successor?(successor); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#87 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#93 def eligible_token_set?(predecessor, operator, successor); end + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#72 + def register_offense(operator); end + # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#124 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#130 def standard_string_literal?(token); end - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#109 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#115 def token_after_last_string(successor, base_index); end class << self @@ -42287,7 +42943,7 @@ class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base def args_parenthesized?(node); end class << self - # source://rubocop-rails/2.29.1/lib/rubocop-rails.rb#33 + # source://rubocop-rails/2.30.3/lib/rubocop-rails.rb#30 def autocorrect_incompatible_with; end end end @@ -43603,33 +44259,30 @@ class RuboCop::Cop::Style::MultilineMethodSignature < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#69 - def arguments_range(node); end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#42 def autocorrect(corrector, node, begin_of_arguments); end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#81 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#73 def closing_line(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#85 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#77 def correction_exceeds_max_line_length?(node); end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#93 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#85 def definition_width(node); end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#89 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#81 def indentation_width(node); end # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#65 def last_line_source_of_arguments(arguments); end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#97 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#89 def max_line_length; end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#77 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#69 def opening_line(node); end end @@ -47009,13 +47662,33 @@ RuboCop::Cop::Style::RedundantCapitalW::MSG = T.let(T.unsafe(nil), String) # c # end # -# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#45 +# # bad +# a.nil? ? true : a +# +# # good +# a.nil? || a +# +# # bad +# if a.nil? +# true +# else +# a +# end +# +# # good +# a.nil? || a +# @example AllowedMethods: ['nonzero?'] (default) +# # good +# num.nonzero? ? true : false +# +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#65 class RuboCop::Cop::Style::RedundantCondition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::CommentsHelp include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#56 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#77 def on_if(node); end private @@ -47025,119 +47698,124 @@ class RuboCop::Cop::Style::RedundantCondition < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#182 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#225 def argument_with_operator?(argument); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#159 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#202 def asgn_type?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#76 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#97 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#149 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#192 def branches_have_assignment?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#163 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#206 def branches_have_method?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#255 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#300 def correct_ternary(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#202 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#247 def else_source(else_branch, arithmetic_operation); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#228 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#273 def else_source_if_has_assignment(else_branch); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#218 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#263 def else_source_if_has_method(else_branch); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#190 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#181 + def if_branch_is_true_type_and_else_is_not?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#233 def if_source(if_branch, arithmetic_operation); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#238 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#283 def make_ternary_form(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#68 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#89 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#97 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#118 def offense?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#90 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#111 def range_of_offense(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#105 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#126 def redundant_condition?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#270 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#315 def require_braces?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#263 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#308 def require_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#176 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#219 def same_method?(if_branch, else_branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#170 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#213 def single_argument_method?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#121 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#142 def synonymous_condition_and_branch?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#274 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#319 def use_arithmetic_operation?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#117 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#138 def use_hash_key_access?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#113 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#134 def use_hash_key_assignment?(else_branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#109 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#130 def use_if_branch?(else_branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#278 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#323 def without_argument_parentheses_method?(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#52 +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#73 RuboCop::Cop::Style::RedundantCondition::ARGUMENT_WITH_OPERATOR_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#50 +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#71 RuboCop::Cop::Style::RedundantCondition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#51 +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#72 RuboCop::Cop::Style::RedundantCondition::REDUNDANT_CONDITION = T.let(T.unsafe(nil), String) # Checks for redundant returning of true/false in conditionals. @@ -47692,6 +48370,126 @@ RuboCop::Cop::Style::RedundantFilterChain::REPLACEMENT_METHODS = T.let(T.unsafe( # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#59 RuboCop::Cop::Style::RedundantFilterChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Checks for calls to `Kernel#format` or `Kernel#sprintf` that are redundant. +# +# Calling `format` with only a single string argument is redundant, as it can be +# replaced by the string itself. +# +# Also looks for `format` calls where the arguments are literals that can be +# inlined into a string easily. This applies to the `%s`, `%d`, `%i`, `%u`, and +# `%f` format specifiers. +# +# @example +# +# # bad +# format('the quick brown fox jumps over the lazy dog.') +# sprintf('the quick brown fox jumps over the lazy dog.') +# +# # good +# 'the quick brown fox jumps over the lazy dog.' +# +# # bad +# format('%s %s', 'foo', 'bar') +# sprintf('%s %s', 'foo', 'bar') +# +# # good +# 'foo bar' +# +# source://rubocop//lib/rubocop/cop/style/redundant_format.rb#47 +class RuboCop::Cop::Style::RedundantFormat < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#66 + def complex_number?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#71 + def find_hash_value_node(param0, param1); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#56 + def format_without_additional_args?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#83 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#61 + def rational_number?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#76 + def splatted_arguments?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#125 + def all_fields_literal?(string, arguments); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#212 + def argument_value(argument); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#208 + def argument_values(arguments); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#244 + def complex_value(complex_node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#102 + def detect_unnecessary_fields(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#230 + def dsym_value(dsym_node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#143 + def find_argument(sequence, arguments, hash); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#184 + def float?(argument); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#234 + def hash_value(hash_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#180 + def integer?(argument); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#156 + def matching_argument?(sequence, argument); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#98 + def message(node, prefer); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#174 + def numeric?(argument); end + + # Add correct quotes to the formatted string, preferring retaining the existing + # quotes if possible. + # + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#190 + def quote(string, node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#240 + def rational_value(rational_node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#114 + def register_all_fields_literal(node, string, arguments); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_format.rb#53 +RuboCop::Cop::Style::RedundantFormat::ACCEPTABLE_LITERAL_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/redundant_format.rb#50 +RuboCop::Cop::Style::RedundantFormat::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_format.rb#52 +RuboCop::Cop::Style::RedundantFormat::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + # Check for uses of `Object#freeze` on immutable objects. # # NOTE: `Regexp` and `Range` literals are frozen objects since Ruby 3.0. @@ -48213,28 +49011,28 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::Parentheses extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#32 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#34 def allowed_pin_operator?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#261 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#275 def first_send_argument?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#266 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#280 def first_super_argument?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#271 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#285 def first_yield_argument?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#169 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#177 def interpolation?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#26 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#28 def method_node_and_args(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#34 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#36 def on_begin(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#29 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#31 def rescue?(param0 = T.unsafe(nil)); end # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#23 @@ -48244,131 +49042,136 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#171 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#179 def allow_in_multiline_conditions?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#64 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#70 def allowed_ancestor?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#57 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#63 def allowed_expression?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#69 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#75 def allowed_multiple_expression?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#78 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#84 def allowed_ternary?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#275 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#289 def call_chain_starts_with_int?(begin_node, send_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#127 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#133 def check(begin_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#175 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#183 def check_send(begin_node, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#185 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#193 def check_unary(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#209 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#217 def disallowed_literal?(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#281 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#295 def do_end_block_in_method_chain?(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#105 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#111 def empty_parentheses?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#138 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#146 def find_offense_message(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#110 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#116 def first_arg_begins_with_hash_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#250 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#264 def first_argument?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#50 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#56 def ignore_syntax?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#205 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#213 def keyword_ancestor?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#224 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#238 def keyword_with_redundant_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#91 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#97 def like_method_argument_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#237 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#251 def method_call_with_redundant_parentheses?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#119 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#125 def method_chain_begins_with_hash_literal(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#98 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#104 def multiline_control_flow_statements?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#195 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#203 def offense(node, msg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#246 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#260 def only_begin_arg?(args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#42 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#48 def parens_allowed?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#213 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#227 def raised_to_power_negative_numeric?(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#201 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#209 def suspect_unary?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#84 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#90 def ternary_parentheses_required?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#44 + def variable?(node); end end # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#20 @@ -48988,7 +49791,7 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base def regular_method_call?(node); end class << self - # source://rubocop-rails/2.29.1/lib/rubocop-rails.rb#41 + # source://rubocop-rails/2.30.3/lib/rubocop-rails.rb#38 def autocorrect_incompatible_with; end end end @@ -51032,9 +51835,9 @@ RuboCop::Cop::Style::SingleLineDoEndBlock::MSG = T.let(T.unsafe(nil), String) # # Endless methods added in Ruby 3.0 are also accepted by this cop. # -# If `Style/EndlessMethod` is enabled with `EnforcedStyle: allow_single_line` or -# `allow_always`, single-line methods will be autocorrected to endless -# methods if there is only one statement in the body. +# If `Style/EndlessMethod` is enabled with `EnforcedStyle: allow_single_line`, `allow_always`, +# `require_single_line`, or `require_always`, single-line methods will be autocorrected +# to endless methods if there is only one statement in the body. # # @example # # bad @@ -51250,12 +52053,9 @@ class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#260 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#254 def allow_modifier?; end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#233 - def arguments_range(node); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#81 def assigned_variables(condition); end @@ -51299,13 +52099,13 @@ class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#264 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#258 def outer_condition_modify_form?(node, if_branch); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#253 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#247 def parenthesized_method_arguments(node); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#243 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#237 def replace_condition(condition); end # @return [Boolean] @@ -51323,7 +52123,7 @@ class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#239 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#233 def wrap_condition?(node); end class << self @@ -53093,12 +53893,13 @@ end # Checks for trailing comma in array literals. # The configuration options are: # -# * `consistent_comma`: Requires a comma after the -# last item of all non-empty, multiline array literals. -# * `comma`: Requires a comma after last item in an array, -# but only when each item is on its own line. -# * `no_comma`: Does not require a comma after the -# last item in an array +# * `consistent_comma`: Requires a comma after the last item of all non-empty, multiline array +# literals. +# * `comma`: Requires a comma after the last item in an array, but only when each item is on +# its own line. +# * `diff_comma`: Requires a comma after the last item in an array, but only when that item is +# followed by an immediate newline. +# * `no_comma`: Does not require a comma after the last item in an array # # @example EnforcedStyleForMultiline: consistent_comma # # bad @@ -53123,6 +53924,14 @@ end # 1, # 2, # ] +# +# # bad +# a = [1, 2, +# 3, 4] +# +# # good +# a = [1, 2, +# 3, 4,] # @example EnforcedStyleForMultiline: comma # # bad # a = [1, 2,] @@ -53157,6 +53966,37 @@ end # 1, # 2, # ] +# @example EnforcedStyleForMultiline: diff_comma +# # bad +# a = [1, 2,] +# +# # good +# a = [1, 2] +# +# # good +# a = [ +# 1, 2, +# 3, +# ] +# +# # good +# a = [ +# 1, 2, 3, +# ] +# +# # good +# a = [ +# 1, +# 2, +# ] +# +# # bad +# a = [1, 2, +# 3, 4,] +# +# # good +# a = [1, 2, +# 3, 4] # @example EnforcedStyleForMultiline: no_comma (default) # # bad # a = [1, 2,] @@ -53167,14 +54007,14 @@ end # 2 # ] # -# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_array_literal.rb#84 +# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_array_literal.rb#125 class RuboCop::Cop::Style::TrailingCommaInArrayLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::TrailingComma extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_array_literal.rb#88 + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_array_literal.rb#129 def on_array(node); end end @@ -53251,12 +54091,13 @@ RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String # Checks for trailing comma in hash literals. # The configuration options are: # -# * `consistent_comma`: Requires a comma after the -# last item of all non-empty, multiline hash literals. -# * `comma`: Requires a comma after the last item in a hash, -# but only when each item is on its own line. -# * `no_comma`: Does not require a comma after the -# last item in a hash +# * `consistent_comma`: Requires a comma after the last item of all non-empty, multiline hash +# literals. +# * `comma`: Requires a comma after the last item in a hash, but only when each item is on its +# own line. +# * `diff_comma`: Requires a comma after the last item in a hash, but only when that item is +# followed by an immediate newline. +# * `no_comma`: Does not require a comma after the last item in a hash # # @example EnforcedStyleForMultiline: consistent_comma # @@ -53282,6 +54123,14 @@ RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String # foo: 1, # bar: 2, # } +# +# # bad +# a = { foo: 1, bar: 2, +# baz: 3, qux: 4 } +# +# # good +# a = { foo: 1, bar: 2, +# baz: 3, qux: 4, } # @example EnforcedStyleForMultiline: comma # # # bad @@ -53317,6 +54166,38 @@ RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String # foo: 1, # bar: 2, # } +# @example EnforcedStyleForMultiline: diff_comma +# +# # bad +# a = { foo: 1, bar: 2, } +# +# # good +# a = { foo: 1, bar: 2 } +# +# # good +# a = { +# foo: 1, bar: 2, +# qux: 3, +# } +# +# # good +# a = { +# foo: 1, bar: 2, qux: 3, +# } +# +# # good +# a = { +# foo: 1, +# bar: 2, +# } +# +# # bad +# a = { foo: 1, bar: 2, +# baz: 3, qux: 4, } +# +# # good +# a = { foo: 1, bar: 2, +# baz: 3, qux: 4 } # @example EnforcedStyleForMultiline: no_comma (default) # # # bad @@ -53328,14 +54209,14 @@ RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String # bar: 2 # } # -# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb#87 +# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb#129 class RuboCop::Cop::Style::TrailingCommaInHashLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::TrailingComma extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb#91 + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb#133 def on_hash(node); end end @@ -54711,7 +55592,7 @@ end # Common methods shared by Style/TrailingCommaInArguments, # Style/TrailingCommaInArrayLiteral and Style/TrailingCommaInHashLiteral # -# source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#7 +# source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#8 module RuboCop::Cop::TrailingComma include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp @@ -54724,63 +55605,68 @@ module RuboCop::Cop::TrailingComma # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#104 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#109 def allowed_multiline_argument?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#167 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#178 def any_heredoc?(items); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#159 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#170 def autocorrect_range(item); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#133 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#144 def avoid_comma(kind, comma_begin_pos, extra_info); end # Returns true if the node has round/square/curly brackets. # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#82 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#87 def brackets?(node); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#19 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#20 def check(node, items, kind, begin_pos, end_pos); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#37 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#38 def check_comma(node, kind, comma_pos); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#43 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#44 def check_literal(node, kind); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#30 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#31 def comma_offset(items, range); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#108 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#113 def elements(node); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#54 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#55 def extra_avoid_comma_info; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#171 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#182 def heredoc?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#189 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#200 def heredoc_send?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#76 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#81 def inside_comment?(range, comma_offset); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#93 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#138 + def last_item_precedes_newline?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#98 def method_name_and_arguments_on_same_line?(node); end # Returns true if the round/square/curly brackets of the given node are @@ -54789,32 +55675,32 @@ module RuboCop::Cop::TrailingComma # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#89 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#94 def multiline?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#123 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#128 def no_elements_on_same_line?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#129 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#134 def on_same_line?(range1, range2); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#147 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#158 def put_comma(items, kind); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#65 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#68 def should_have_comma?(style, node); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#15 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#16 def style_parameter_name; end end -# source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#11 +# source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#12 RuboCop::Cop::TrailingComma::MSG = T.let(T.unsafe(nil), String) # Common functionality shared by Uncommunicative cops @@ -55117,40 +56003,44 @@ module RuboCop::Cop::Utils; end class RuboCop::Cop::Utils::FormatString # @return [FormatString] a new instance of FormatString # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#89 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#94 def initialize(string); end - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#93 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#98 def format_sequences; end - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#105 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#110 def max_digit_dollar_num; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#101 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#106 def named_interpolation?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#97 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#102 def valid?; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#117 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#122 def mixed_formats?; end - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#111 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#116 def parse; end end -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#8 +# Escaping the `#` in `INTERPOLATION` and `TEMPLATE_NAME` is necessary to +# avoid a bug in Ruby 3.2.0 +# See: https://bugs.ruby-lang.org/issues/19379 +# +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#11 RuboCop::Cop::Utils::FormatString::DIGIT_DOLLAR = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#9 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#13 RuboCop::Cop::Utils::FormatString::FLAG = T.let(T.unsafe(nil), Regexp) # The syntax of a format sequence is as follows. @@ -55167,148 +56057,107 @@ RuboCop::Cop::Utils::FormatString::FLAG = T.let(T.unsafe(nil), Regexp) # # @see https://ruby-doc.org/core-2.6.3/Kernel.html#method-i-format # -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#43 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#47 class RuboCop::Cop::Utils::FormatString::FormatSequence # @return [FormatSequence] a new instance of FormatSequence # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#46 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#50 def initialize(match); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#61 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#66 def annotated?; end + # Returns the value of attribute arg_number. + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#48 + def arg_number; end + # Number of arguments required for the format sequence # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#70 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#75 def arity; end # Returns the value of attribute begin_pos. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#48 def begin_pos; end # Returns the value of attribute end_pos. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#48 def end_pos; end # Returns the value of attribute flags. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#48 def flags; end - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#74 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#79 def max_digit_dollar_num; end # Returns the value of attribute name. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#48 def name; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#57 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#62 def percent?; end # Returns the value of attribute precision. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#48 def precision; end - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#78 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#83 def style; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#65 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#70 def template?; end # Returns the value of attribute type. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#48 def type; end # Returns the value of attribute width. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#48 def width; end end -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#15 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#12 +RuboCop::Cop::Utils::FormatString::INTERPOLATION = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#19 RuboCop::Cop::Utils::FormatString::NAME = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#11 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#15 RuboCop::Cop::Utils::FormatString::NUMBER = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#10 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#14 RuboCop::Cop::Utils::FormatString::NUMBER_ARG = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#13 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#17 RuboCop::Cop::Utils::FormatString::PRECISION = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#18 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#22 RuboCop::Cop::Utils::FormatString::SEQUENCE = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#16 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#20 RuboCop::Cop::Utils::FormatString::TEMPLATE_NAME = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#14 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#18 RuboCop::Cop::Utils::FormatString::TYPE = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#12 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#16 RuboCop::Cop::Utils::FormatString::WIDTH = T.let(T.unsafe(nil), Regexp) -# Helper to abstract complexity of building range pairs -# with octal escape reconstruction (needed for regexp_parser < 2.7). -# -# source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#8 -class RuboCop::Cop::Utils::RegexpRanges - # @return [RegexpRanges] a new instance of RegexpRanges - # - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#11 - def initialize(root); end - - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#18 - def compound_token; end - - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#24 - def pairs; end - - # Returns the value of attribute root. - # - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#9 - def root; end - - private - - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#78 - def compose_range(expressions, current); end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#90 - def escaped_octal?(expr); end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#94 - def octal_digit?(char); end - - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#98 - def pop_octal_digits(expressions); end - - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#44 - def populate(expr); end - - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#32 - def populate_all; end - - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#63 - def process_set(expressions, current); end -end - # This force provides a way to track local variables and scopes of Ruby. # Cops interact with this force need to override some of the hook methods. # @@ -56531,149 +57380,171 @@ RuboCop::Cop::VisibilityHelp::VISIBILITY_SCOPES = T.let(T.unsafe(nil), Set) class RuboCop::DirectiveComment # @return [DirectiveComment] a new instance of DirectiveComment # - # source://rubocop//lib/rubocop/directive_comment.rb#32 + # source://rubocop//lib/rubocop/directive_comment.rb#46 def initialize(comment, cop_registry = T.unsafe(nil)); end # Checks if all cops specified in this directive # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#82 + # source://rubocop//lib/rubocop/directive_comment.rb#115 def all_cops?; end # Returns the value of attribute comment. # - # source://rubocop//lib/rubocop/directive_comment.rb#30 + # source://rubocop//lib/rubocop/directive_comment.rb#44 def comment; end # Returns array of specified in this directive cop names # - # source://rubocop//lib/rubocop/directive_comment.rb#87 + # source://rubocop//lib/rubocop/directive_comment.rb#120 def cop_names; end # Returns the value of attribute cop_registry. # - # source://rubocop//lib/rubocop/directive_comment.rb#30 + # source://rubocop//lib/rubocop/directive_comment.rb#44 def cop_registry; end # Returns the value of attribute cops. # - # source://rubocop//lib/rubocop/directive_comment.rb#30 + # source://rubocop//lib/rubocop/directive_comment.rb#44 def cops; end # Returns array of specified in this directive department names # when all department disabled # - # source://rubocop//lib/rubocop/directive_comment.rb#98 + # source://rubocop//lib/rubocop/directive_comment.rb#131 def department_names; end - # source://rubocop//lib/rubocop/directive_comment.rb#112 + # source://rubocop//lib/rubocop/directive_comment.rb#145 def directive_count; end # Checks if this directive disables cops # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#62 + # source://rubocop//lib/rubocop/directive_comment.rb#95 def disabled?; end # Checks if this directive disables all cops # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#77 + # source://rubocop//lib/rubocop/directive_comment.rb#110 def disabled_all?; end # Checks if this directive enables cops # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#67 + # source://rubocop//lib/rubocop/directive_comment.rb#100 def enabled?; end # Checks if this directive enables all cops # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#72 + # source://rubocop//lib/rubocop/directive_comment.rb#105 def enabled_all?; end # Checks if directive departments include cop # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#103 + # source://rubocop//lib/rubocop/directive_comment.rb#136 def in_directive_department?(cop); end # Returns line number for directive # - # source://rubocop//lib/rubocop/directive_comment.rb#117 + # source://rubocop//lib/rubocop/directive_comment.rb#150 def line_number; end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/directive_comment.rb#59 + def malformed?; end + # Checks if this directive contains all the given cop names # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#44 + # source://rubocop//lib/rubocop/directive_comment.rb#77 def match?(cop_names); end # Returns match captures to directive comment pattern # - # source://rubocop//lib/rubocop/directive_comment.rb#57 + # source://rubocop//lib/rubocop/directive_comment.rb#90 def match_captures; end + # Checks if the directive comment is missing a cop name + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/directive_comment.rb#67 + def missing_cop_name?; end + # Returns the value of attribute mode. # - # source://rubocop//lib/rubocop/directive_comment.rb#30 + # source://rubocop//lib/rubocop/directive_comment.rb#44 def mode; end # Checks if cop department has already used in directive comment # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#108 + # source://rubocop//lib/rubocop/directive_comment.rb#141 def overridden_by_department?(cop); end - # source://rubocop//lib/rubocop/directive_comment.rb#48 + # source://rubocop//lib/rubocop/directive_comment.rb#81 def range; end # Returns an array of cops for this directive comment, without resolving departments # - # source://rubocop//lib/rubocop/directive_comment.rb#92 + # source://rubocop//lib/rubocop/directive_comment.rb#125 def raw_cop_names; end # Checks if this directive relates to single line # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#39 + # source://rubocop//lib/rubocop/directive_comment.rb#72 def single_line?; end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/directive_comment.rb#54 + def start_with_marker?; end + private - # source://rubocop//lib/rubocop/directive_comment.rb#134 + # source://rubocop//lib/rubocop/directive_comment.rb#167 def all_cop_names; end - # source://rubocop//lib/rubocop/directive_comment.rb#138 + # source://rubocop//lib/rubocop/directive_comment.rb#171 def cop_names_for_department(department); end # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#130 + # source://rubocop//lib/rubocop/directive_comment.rb#163 def department?(name); end - # source://rubocop//lib/rubocop/directive_comment.rb#143 + # source://rubocop//lib/rubocop/directive_comment.rb#176 def exclude_lint_department_cops(cops); end - # source://rubocop//lib/rubocop/directive_comment.rb#123 + # source://rubocop//lib/rubocop/directive_comment.rb#156 def parsed_cop_names; end class << self - # source://rubocop//lib/rubocop/directive_comment.rb#26 + # source://rubocop//lib/rubocop/directive_comment.rb#40 def before_comment(line); end end end +# @api private +# +# source://rubocop//lib/rubocop/directive_comment.rb#21 +RuboCop::DirectiveComment::AVAILABLE_MODES = T.let(T.unsafe(nil), Array) + # @api private # # source://rubocop//lib/rubocop/directive_comment.rb#19 @@ -56689,6 +57560,21 @@ RuboCop::DirectiveComment::COP_NAMES_PATTERN = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/directive_comment.rb#15 RuboCop::DirectiveComment::COP_NAME_PATTERN = T.let(T.unsafe(nil), String) +# @api private +# +# source://rubocop//lib/rubocop/directive_comment.rb#27 +RuboCop::DirectiveComment::DIRECTIVE_HEADER_PATTERN = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/directive_comment.rb#23 +RuboCop::DirectiveComment::DIRECTIVE_MARKER_PATTERN = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/directive_comment.rb#25 +RuboCop::DirectiveComment::DIRECTIVE_MARKER_REGEXP = T.let(T.unsafe(nil), Regexp) + # @api private # # source://rubocop//lib/rubocop/directive_comment.rb#9 @@ -56704,6 +57590,16 @@ RuboCop::DirectiveComment::LINT_REDUNDANT_DIRECTIVE_COP = T.let(T.unsafe(nil), S # source://rubocop//lib/rubocop/directive_comment.rb#13 RuboCop::DirectiveComment::LINT_SYNTAX_COP = T.let(T.unsafe(nil), String) +# @api private +# +# source://rubocop//lib/rubocop/directive_comment.rb#36 +RuboCop::DirectiveComment::MALFORMED_DIRECTIVE_WITHOUT_COP_NAME_REGEXP = T.let(T.unsafe(nil), Regexp) + +# @api private +# +# source://rubocop//lib/rubocop/directive_comment.rb#34 +RuboCop::DirectiveComment::TRAILING_COMMENT_MARKER = T.let(T.unsafe(nil), String) + # An Error exception is different from an Offense with severity 'error' # When this exception is raised, it means that RuboCop is unable to perform # a requested action (probably due to misconfiguration) and must stop @@ -58829,7 +59725,7 @@ class RuboCop::Options # @api private # - # source://rubocop//lib/rubocop/options.rb#253 + # source://rubocop//lib/rubocop/options.rb#254 def add_profile_options(opts); end # @api private @@ -58849,7 +59745,7 @@ class RuboCop::Options # @api private # - # source://rubocop//lib/rubocop/options.rb#263 + # source://rubocop//lib/rubocop/options.rb#264 def handle_deprecated_option(old_option, new_option); end # Finds the option in `args` starting with -- and converts it to a symbol, @@ -58857,7 +59753,7 @@ class RuboCop::Options # # @api private # - # source://rubocop//lib/rubocop/options.rb#297 + # source://rubocop//lib/rubocop/options.rb#298 def long_opt_symbol(args); end # Sets a value in the @options hash, based on the given long option and its @@ -58865,17 +59761,22 @@ class RuboCop::Options # # @api private # - # source://rubocop//lib/rubocop/options.rb#286 + # source://rubocop//lib/rubocop/options.rb#287 def option(opts, *args); end # @api private # - # source://rubocop//lib/rubocop/options.rb#268 + # source://rubocop//lib/rubocop/options.rb#303 + def plugin_feature(file); end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#269 def rainbow; end # @api private # - # source://rubocop//lib/rubocop/options.rb#302 + # source://rubocop//lib/rubocop/options.rb#309 def require_feature(file); end # Creates a section of options in order to separate them visually when @@ -58883,7 +59784,7 @@ class RuboCop::Options # # @api private # - # source://rubocop//lib/rubocop/options.rb#278 + # source://rubocop//lib/rubocop/options.rb#279 def section(opts, heading, &_block); end end @@ -58906,125 +59807,125 @@ RuboCop::Options::E_STDIN_NO_PATH = T.let(T.unsafe(nil), String) # # @api private # -# source://rubocop//lib/rubocop/options.rb#498 +# source://rubocop//lib/rubocop/options.rb#512 module RuboCop::OptionsHelp; end # @api private # -# source://rubocop//lib/rubocop/options.rb#500 +# source://rubocop//lib/rubocop/options.rb#514 RuboCop::OptionsHelp::FORMATTER_OPTION_LIST = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/options.rb#499 +# source://rubocop//lib/rubocop/options.rb#513 RuboCop::OptionsHelp::MAX_EXCL = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/options.rb#502 +# source://rubocop//lib/rubocop/options.rb#516 RuboCop::OptionsHelp::TEXT = T.let(T.unsafe(nil), Hash) # Validates option arguments and the options' compatibility with each other. # # @api private # -# source://rubocop//lib/rubocop/options.rb#312 +# source://rubocop//lib/rubocop/options.rb#327 class RuboCop::OptionsValidator # @api private # @return [OptionsValidator] a new instance of OptionsValidator # - # source://rubocop//lib/rubocop/options.rb#350 + # source://rubocop//lib/rubocop/options.rb#365 def initialize(options); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/options.rb#472 + # source://rubocop//lib/rubocop/options.rb#486 def boolean_or_empty_cache?; end # @api private # - # source://rubocop//lib/rubocop/options.rb#442 + # source://rubocop//lib/rubocop/options.rb#456 def disable_parallel_when_invalid_option_combo; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/options.rb#468 + # source://rubocop//lib/rubocop/options.rb#482 def except_syntax?; end # @api private # - # source://rubocop//lib/rubocop/options.rb#476 + # source://rubocop//lib/rubocop/options.rb#490 def incompatible_options; end # @api private # - # source://rubocop//lib/rubocop/options.rb#455 + # source://rubocop//lib/rubocop/options.rb#469 def invalid_arguments_for_parallel; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/options.rb#463 + # source://rubocop//lib/rubocop/options.rb#477 def only_includes_redundant_disable?; end # @api private # - # source://rubocop//lib/rubocop/options.rb#382 + # source://rubocop//lib/rubocop/options.rb#397 def validate_auto_gen_config; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#428 + # source://rubocop//lib/rubocop/options.rb#442 def validate_autocorrect; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#488 + # source://rubocop//lib/rubocop/options.rb#502 def validate_cache_enabled_for_cache_root; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#359 + # source://rubocop//lib/rubocop/options.rb#374 def validate_compatibility; end # @api private # - # source://rubocop//lib/rubocop/options.rb#354 + # source://rubocop//lib/rubocop/options.rb#369 def validate_cop_options; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#403 + # source://rubocop//lib/rubocop/options.rb#418 def validate_display_only_correctable_and_autocorrect; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#395 + # source://rubocop//lib/rubocop/options.rb#410 def validate_display_only_failed; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#412 + # source://rubocop//lib/rubocop/options.rb#427 def validate_display_only_failed_and_display_only_correctable; end # @api private # @raise [OptionParser::MissingArgument] # - # source://rubocop//lib/rubocop/options.rb#480 + # source://rubocop//lib/rubocop/options.rb#494 def validate_exclude_limit_option; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#421 + # source://rubocop//lib/rubocop/options.rb#436 def validate_lsp_and_editor_mode; end class << self @@ -59033,14 +59934,14 @@ class RuboCop::OptionsValidator # # @api private # - # source://rubocop//lib/rubocop/options.rb#319 + # source://rubocop//lib/rubocop/options.rb#334 def validate_cop_list(names); end private # @api private # - # source://rubocop//lib/rubocop/options.rb#336 + # source://rubocop//lib/rubocop/options.rb#351 def format_message_from(name, cop_names); end end end @@ -59053,35 +59954,38 @@ module RuboCop::PathUtil # Returns true for an absolute Unix or Windows path. # - # source://rubocop//lib/rubocop/path_util.rb#79 + # source://rubocop//lib/rubocop/path_util.rb#83 def absolute?(path); end # Returns true for a glob # - # source://rubocop//lib/rubocop/path_util.rb#84 + # source://rubocop//lib/rubocop/path_util.rb#88 def glob?(path); end - # source://rubocop//lib/rubocop/path_util.rb#114 + # source://rubocop//lib/rubocop/path_util.rb#118 def hidden_dir?(path); end - # source://rubocop//lib/rubocop/path_util.rb#97 + # source://rubocop//lib/rubocop/path_util.rb#101 def hidden_file?(path); end - # source://rubocop//lib/rubocop/path_util.rb#88 + # source://rubocop//lib/rubocop/path_util.rb#92 def hidden_file_in_not_hidden_dir?(pattern, path); end - # source://rubocop//lib/rubocop/path_util.rb#51 + # source://rubocop//lib/rubocop/path_util.rb#55 def match_path?(pattern, path); end # Loose check to reduce memory allocations # - # source://rubocop//lib/rubocop/path_util.rb#104 + # source://rubocop//lib/rubocop/path_util.rb#108 def maybe_hidden_file?(path); end # source://rubocop//lib/rubocop/path_util.rb#13 def relative_path(path, base_dir = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/path_util.rb#34 + # source://rubocop//lib/rubocop/path_util.rb#31 + def remote_file?(uri); end + + # source://rubocop//lib/rubocop/path_util.rb#38 def smart_path(path); end class << self @@ -59089,41 +59993,41 @@ module RuboCop::PathUtil # # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#79 + # source://rubocop//lib/rubocop/path_util.rb#83 def absolute?(path); end # Returns true for a glob # # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#84 + # source://rubocop//lib/rubocop/path_util.rb#88 def glob?(path); end # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#114 + # source://rubocop//lib/rubocop/path_util.rb#118 def hidden_dir?(path); end # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#97 + # source://rubocop//lib/rubocop/path_util.rb#101 def hidden_file?(path); end # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#88 + # source://rubocop//lib/rubocop/path_util.rb#92 def hidden_file_in_not_hidden_dir?(pattern, path); end # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#51 + # source://rubocop//lib/rubocop/path_util.rb#55 def match_path?(pattern, path); end # Loose check to reduce memory allocations # # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#104 + # source://rubocop//lib/rubocop/path_util.rb#108 def maybe_hidden_file?(path); end # source://rubocop//lib/rubocop/path_util.rb#13 @@ -59141,15 +60045,20 @@ module RuboCop::PathUtil # source://rubocop//lib/rubocop/path_util.rb#7 def relative_paths_cache=(_arg0); end - # source://rubocop//lib/rubocop/path_util.rb#34 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/path_util.rb#31 + def remote_file?(uri); end + + # source://rubocop//lib/rubocop/path_util.rb#38 def smart_path(path); end end end -# source://rubocop//lib/rubocop/path_util.rb#101 +# source://rubocop//lib/rubocop/path_util.rb#105 RuboCop::PathUtil::HIDDEN_FILE_PATTERN = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/path_util.rb#31 +# source://rubocop//lib/rubocop/path_util.rb#35 RuboCop::PathUtil::SMART_PATH_CACHE = T.let(T.unsafe(nil), Hash) # This module provides information on the platform that RuboCop is being run @@ -59165,6 +60074,196 @@ module RuboCop::Platform end end +# Provides a plugin for RuboCop extensions that conform to lint_roller. +# https://github.com/standardrb/lint_roller +# +# @api private +# +# source://rubocop//lib/rubocop/plugin/not_supported_error.rb#4 +module RuboCop::Plugin + class << self + # @api private + # + # source://rubocop//lib/rubocop/plugin.rb#37 + def integrate_plugins(rubocop_config, plugins); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/plugin.rb#22 + def plugin_capable?(feature_name); end + end +end + +# @api private +# +# source://rubocop//lib/rubocop/plugin.rb#11 +RuboCop::Plugin::BUILTIN_INTERNAL_PLUGINS = T.let(T.unsafe(nil), Hash) + +# A class for integrating plugin configurations into RuboCop. +# Handles configuration merging, validation, and compatibility for plugins. +# +# @api private +# +# source://rubocop//lib/rubocop/plugin/configuration_integrator.rb#11 +class RuboCop::Plugin::ConfigurationIntegrator + class << self + # @api private + # + # source://rubocop//lib/rubocop/plugin/configuration_integrator.rb#13 + def integrate_plugins_into_rubocop_config(rubocop_config, plugins); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/plugin/configuration_integrator.rb#44 + def combine_rubocop_configs(default_config, runner_context, plugins); end + + # @api private + # + # source://rubocop//lib/rubocop/plugin/configuration_integrator.rb#27 + def create_context(rubocop_config); end + + # @api private + # + # source://rubocop//lib/rubocop/plugin/configuration_integrator.rb#81 + def fake_out_rubocop_default_configuration(default_config); end + + # @api private + # + # source://rubocop//lib/rubocop/plugin/configuration_integrator.rb#92 + def load_plugin_rubocop_config(plugin, runner_context); end + + # This is how we ensure "first-in wins": plugins can override AllCops settings that are + # set by RuboCop's default configuration, but once a plugin sets an AllCop setting, they + # have exclusive first-in-wins rights to that setting. + # + # The one exception to this are array fields, because we don't want to + # overwrite the AllCops defaults but rather munge the arrays (`existing | + # new`) to allow plugins to add to the array, for example Include and + # Exclude paths and patterns. + # + # @api private + # + # source://rubocop//lib/rubocop/plugin/configuration_integrator.rb#118 + def merge_all_cop_settings(existing_all_cops, new_all_cops, already_configured_keys); end + + # @api private + # + # source://rubocop//lib/rubocop/plugin/configuration_integrator.rb#67 + def merge_plugin_config_into_all_cops!(rubocop_config, plugin_config); end + + # @api private + # + # source://rubocop//lib/rubocop/plugin/configuration_integrator.rb#71 + def merge_plugin_config_into_default_config!(default_config, plugin_config); end + + # @api private + # + # source://rubocop//lib/rubocop/plugin/configuration_integrator.rb#137 + def resolver; end + + # @api private + # @raise [Plugin::NotSupportedError] + # + # source://rubocop//lib/rubocop/plugin/configuration_integrator.rb#37 + def validate_plugins!(plugins, runner_context); end + end +end + +# @api private +# +# source://rubocop//lib/rubocop/plugin.rb#18 +RuboCop::Plugin::INTERNAL_AFFAIRS_PLUGIN_NAME = T.let(T.unsafe(nil), String) + +# An exception raised when a plugin fails to load. +# +# @api private +# +# source://rubocop//lib/rubocop/plugin/load_error.rb#7 +class RuboCop::Plugin::LoadError < ::RuboCop::Error + # @api private + # @return [LoadError] a new instance of LoadError + # + # source://rubocop//lib/rubocop/plugin/load_error.rb#8 + def initialize(plugin_name); end + + # @api private + # + # source://rubocop//lib/rubocop/plugin/load_error.rb#14 + def message; end +end + +# A class for loading and resolving plugins. +# +# @api private +# +# source://rubocop//lib/rubocop/plugin/loader.rb#10 +class RuboCop::Plugin::Loader + class << self + # @api private + # + # source://rubocop//lib/rubocop/plugin/loader.rb#20 + def load(plugins); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/plugin/loader.rb#70 + def constantize(plugin_name, plugin_config); end + + # @api private + # + # source://rubocop//lib/rubocop/plugin/loader.rb#61 + def constantize_plugin_from(plugin_name, plugin_config); end + + # @api private + # + # source://rubocop//lib/rubocop/plugin/loader.rb#90 + def constantize_plugin_from_gemspec_metadata(plugin_name); end + + # @api private + # + # source://rubocop//lib/rubocop/plugin/loader.rb#34 + def normalize(plugin_configs); end + + # @api private + # + # source://rubocop//lib/rubocop/plugin/loader.rb#86 + def require_plugin(require_path); end + end +end + +# @api private +# +# source://rubocop//lib/rubocop/plugin/loader.rb#12 +RuboCop::Plugin::Loader::DEFAULT_PLUGIN_CONFIG = T.let(T.unsafe(nil), Hash) + +# An exception raised when a plugin is not supported by the RuboCop engine. +# +# @api private +# +# source://rubocop//lib/rubocop/plugin/not_supported_error.rb#7 +class RuboCop::Plugin::NotSupportedError < ::RuboCop::Error + # @api private + # @return [NotSupportedError] a new instance of NotSupportedError + # + # source://rubocop//lib/rubocop/plugin/not_supported_error.rb#8 + def initialize(unsupported_plugins); end + + # @api private + # + # source://rubocop//lib/rubocop/plugin/not_supported_error.rb#14 + def message; end +end + +# @api private +# +# source://rubocop//lib/rubocop/plugin.rb#19 +RuboCop::Plugin::OBSOLETE_INTERNAL_AFFAIRS_PLUGIN_NAME = T.let(T.unsafe(nil), String) + # source://rubocop//lib/rubocop/ast_aliases.rb#6 RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource @@ -60181,17 +61280,17 @@ module RuboCop::Version class << self # @api private # - # source://rubocop//lib/rubocop/version.rb#99 + # source://rubocop//lib/rubocop/version.rb#114 def config_for_pwd(env); end # @api private # - # source://rubocop//lib/rubocop/version.rb#129 + # source://rubocop//lib/rubocop/version.rb#144 def document_version; end # @api private # - # source://rubocop//lib/rubocop/version.rb#66 + # source://rubocop//lib/rubocop/version.rb#67 def extension_versions(env); end # Returns feature version in one of two ways: @@ -60201,7 +61300,7 @@ module RuboCop::Version # # @api private # - # source://rubocop//lib/rubocop/version.rb#113 + # source://rubocop//lib/rubocop/version.rb#128 def feature_version(feature); end # @api private @@ -60211,12 +61310,12 @@ module RuboCop::Version # @api private # - # source://rubocop//lib/rubocop/version.rb#134 + # source://rubocop//lib/rubocop/version.rb#149 def server_mode; end # @api private # - # source://rubocop//lib/rubocop/version.rb#90 + # source://rubocop//lib/rubocop/version.rb#105 def target_ruby_version(env); end # @api private diff --git a/sorbet/rbi/gems/sentry-ruby@5.22.4.rbi b/sorbet/rbi/gems/sentry-ruby@5.23.0.rbi similarity index 94% rename from sorbet/rbi/gems/sentry-ruby@5.22.4.rbi rename to sorbet/rbi/gems/sentry-ruby@5.23.0.rbi index 28d3c0cc..63ea62c7 100644 --- a/sorbet/rbi/gems/sentry-ruby@5.22.4.rbi +++ b/sorbet/rbi/gems/sentry-ruby@5.23.0.rbi @@ -213,14 +213,14 @@ end # source://sentry-ruby//lib/sentry/version.rb#3 module Sentry class << self - # source://sentry-ruby//lib/sentry-ruby.rb#219 + # source://sentry-ruby//lib/sentry-ruby.rb#227 def add_attachment(**opts); end # Takes an instance of Sentry::Breadcrumb and stores it to the current active scope. # # @return [Breadcrumb, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#320 + # source://sentry-ruby//lib/sentry-ruby.rb#328 def add_breadcrumb(breadcrumb, **options); end # Add a global event processor [Proc]. @@ -235,27 +235,27 @@ module Sentry # @yieldparam event [Event] # @yieldparam hint [Hash, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#539 + # source://sentry-ruby//lib/sentry-ruby.rb#547 def add_global_event_processor(&block); end - # source://sentry-ruby//lib/sentry-ruby.rb#107 + # source://sentry-ruby//lib/sentry-ruby.rb#115 def apply_patches(config); end # @return [BackgroundWorker] # - # source://sentry-ruby//lib/sentry-ruby.rb#75 + # source://sentry-ruby//lib/sentry-ruby.rb#83 def background_worker; end # Sets the attribute background_worker # # @param value the value to set the attribute background_worker to. # - # source://sentry-ruby//lib/sentry-ruby.rb#75 + # source://sentry-ruby//lib/sentry-ruby.rb#83 def background_worker=(_arg0); end # Returns the value of attribute backpressure_monitor. # - # source://sentry-ruby//lib/sentry-ruby.rb#83 + # source://sentry-ruby//lib/sentry-ruby.rb#91 def backpressure_monitor; end # Captures a check-in and sends it to Sentry via the currently active hub. @@ -268,14 +268,14 @@ module Sentry # @param options [Hash] extra check-in options # @return [String, nil] The {CheckInEvent#check_in_id} to use for later updates on the same slug # - # source://sentry-ruby//lib/sentry-ruby.rb#479 + # source://sentry-ruby//lib/sentry-ruby.rb#487 def capture_check_in(slug, status, **options); end # Takes an instance of Sentry::Event and dispatches it to the currently active hub. # # @return [Event, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#463 + # source://sentry-ruby//lib/sentry-ruby.rb#471 def capture_event(event); end # Takes an exception and reports it to Sentry via the currently active hub. @@ -283,7 +283,7 @@ module Sentry # @return [Event, nil] # @yieldparam scope [Scope] # - # source://sentry-ruby//lib/sentry-ruby.rb#427 + # source://sentry-ruby//lib/sentry-ruby.rb#435 def capture_exception(exception, **options, &block); end # Takes a message string and reports it to Sentry via the currently active hub. @@ -291,14 +291,14 @@ module Sentry # @return [Event, nil] # @yieldparam scope [Scope] # - # source://sentry-ruby//lib/sentry-ruby.rb#455 + # source://sentry-ruby//lib/sentry-ruby.rb#463 def capture_message(message, **options, &block); end # Clones the main thread's active hub and stores it to the current thread. # # @return [void] # - # source://sentry-ruby//lib/sentry-ruby.rb#357 + # source://sentry-ruby//lib/sentry-ruby.rb#365 def clone_hub_to_current_thread; end # Flushes pending events and cleans up SDK state. @@ -306,10 +306,10 @@ module Sentry # # @return [void] # - # source://sentry-ruby//lib/sentry-ruby.rb#253 + # source://sentry-ruby//lib/sentry-ruby.rb#261 def close; end - # source://sentry-ruby//lib/sentry-ruby.rb#159 + # source://sentry-ruby//lib/sentry-ruby.rb#167 def configuration; end # Takes a block and yields the current active scope. @@ -323,7 +323,7 @@ module Sentry # @return [void] # @yieldparam scope [Scope] # - # source://sentry-ruby//lib/sentry-ruby.rb#373 + # source://sentry-ruby//lib/sentry-ruby.rb#381 def configure_scope(&block); end # Continue an incoming trace from a rack env like hash. @@ -331,7 +331,7 @@ module Sentry # @param env [Hash] # @return [Transaction, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#583 + # source://sentry-ruby//lib/sentry-ruby.rb#591 def continue_trace(env, **options); end # Returns an uri for security policy reporting that's generated from the given DSN @@ -343,22 +343,22 @@ module Sentry # # @return [String, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#302 + # source://sentry-ruby//lib/sentry-ruby.rb#310 def csp_report_uri; end # @return [Boolean] # - # source://sentry-ruby//lib/sentry-ruby.rb#614 + # source://sentry-ruby//lib/sentry-ruby.rb#622 def dependency_installed?(name); end # Checks if the exception object has been captured by the SDK. # # @return [Boolean] # - # source://sentry-ruby//lib/sentry-ruby.rb#521 + # source://sentry-ruby//lib/sentry-ruby.rb#529 def exception_captured?(exc); end - # source://sentry-ruby//lib/sentry-ruby.rb#57 + # source://sentry-ruby//lib/sentry-ruby.rb#65 def exception_locals_tp; end # Returns the baggage header for distributed tracing. @@ -366,14 +366,14 @@ module Sentry # # @return [String, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#556 + # source://sentry-ruby//lib/sentry-ruby.rb#564 def get_baggage; end # Returns the current active client. # # @return [Client, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#341 + # source://sentry-ruby//lib/sentry-ruby.rb#349 def get_current_client; end # Returns the current active hub. @@ -382,21 +382,21 @@ module Sentry # # @return [Hub] # - # source://sentry-ruby//lib/sentry-ruby.rb#330 + # source://sentry-ruby//lib/sentry-ruby.rb#338 def get_current_hub; end # Returns the current active scope. # # @return [Scope, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#349 + # source://sentry-ruby//lib/sentry-ruby.rb#357 def get_current_scope; end # Returns the main thread's active hub. # # @return [Hub] # - # source://sentry-ruby//lib/sentry-ruby.rb#310 + # source://sentry-ruby//lib/sentry-ruby.rb#318 def get_main_hub; end # Returns the a Hash containing sentry-trace and baggage. @@ -404,7 +404,7 @@ module Sentry # # @return [Hash, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#565 + # source://sentry-ruby//lib/sentry-ruby.rb#573 def get_trace_propagation_headers; end # Returns the a Hash containing sentry-trace and baggage. @@ -412,7 +412,7 @@ module Sentry # # @return [String] # - # source://sentry-ruby//lib/sentry-ruby.rb#574 + # source://sentry-ruby//lib/sentry-ruby.rb#582 def get_trace_propagation_meta; end # Returns the traceparent (sentry-trace) header for distributed tracing. @@ -420,7 +420,7 @@ module Sentry # # @return [String, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#547 + # source://sentry-ruby//lib/sentry-ruby.rb#555 def get_traceparent; end # Initializes the SDK with given configuration. @@ -428,45 +428,45 @@ module Sentry # @return [void] # @yieldparam config [Configuration] # - # source://sentry-ruby//lib/sentry-ruby.rb#230 + # source://sentry-ruby//lib/sentry-ruby.rb#238 def init(&block); end # Returns true if the SDK is initialized. # # @return [Boolean] # - # source://sentry-ruby//lib/sentry-ruby.rb#290 + # source://sentry-ruby//lib/sentry-ruby.rb#298 def initialized?; end # Returns a hash that contains all the integrations that have been registered to the main SDK. # # @return [Hash{String=>Hash}] # - # source://sentry-ruby//lib/sentry-ruby.rb#123 + # source://sentry-ruby//lib/sentry-ruby.rb#131 def integrations; end # Returns the id of the lastly reported Sentry::Event. # # @return [String, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#513 + # source://sentry-ruby//lib/sentry-ruby.rb#521 def last_event_id; end - # source://sentry-ruby//lib/sentry-ruby.rb#599 + # source://sentry-ruby//lib/sentry-ruby.rb#607 def logger; end # Returns the value of attribute metrics_aggregator. # - # source://sentry-ruby//lib/sentry-ruby.rb#87 + # source://sentry-ruby//lib/sentry-ruby.rb#95 def metrics_aggregator; end - # source://railties/8.0.1/lib/rails/engine.rb#413 + # source://railties/8.0.2/lib/rails/engine.rb#413 def railtie_helpers_paths; end - # source://railties/8.0.1/lib/rails/engine.rb#396 + # source://railties/8.0.2/lib/rails/engine.rb#396 def railtie_namespace; end - # source://railties/8.0.1/lib/rails/engine.rb#417 + # source://railties/8.0.2/lib/rails/engine.rb#417 def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end # Registers the SDK integration with its name and version. @@ -474,55 +474,55 @@ module Sentry # @param name [String] name of the integration # @param version [String] version of the integration # - # source://sentry-ruby//lib/sentry-ruby.rb#131 + # source://sentry-ruby//lib/sentry-ruby.rb#139 def register_integration(name, version); end - # source://sentry-ruby//lib/sentry-ruby.rb#92 + # source://sentry-ruby//lib/sentry-ruby.rb#100 def register_patch(key, patch = T.unsafe(nil), target = T.unsafe(nil), &block); end - # source://sentry-ruby//lib/sentry-ruby.rb#114 + # source://sentry-ruby//lib/sentry-ruby.rb#122 def registered_patches; end - # source://sentry-ruby//lib/sentry-ruby.rb#604 + # source://sentry-ruby//lib/sentry-ruby.rb#612 def sdk_meta; end - # source://sentry-ruby//lib/sentry-ruby.rb#166 + # source://sentry-ruby//lib/sentry-ruby.rb#174 def send_event(*args); end # Returns the value of attribute session_flusher. # - # source://sentry-ruby//lib/sentry-ruby.rb#79 + # source://sentry-ruby//lib/sentry-ruby.rb#87 def session_flusher; end - # source://sentry-ruby//lib/sentry-ruby.rb#212 + # source://sentry-ruby//lib/sentry-ruby.rb#220 def set_context(*args); end - # source://sentry-ruby//lib/sentry-ruby.rb#198 + # source://sentry-ruby//lib/sentry-ruby.rb#206 def set_extras(*args); end - # source://sentry-ruby//lib/sentry-ruby.rb#191 + # source://sentry-ruby//lib/sentry-ruby.rb#199 def set_tags(*args); end - # source://sentry-ruby//lib/sentry-ruby.rb#205 + # source://sentry-ruby//lib/sentry-ruby.rb#213 def set_user(*args); end # Takes or initializes a new Sentry::Transaction and makes a sampling decision for it. # # @return [Transaction, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#487 + # source://sentry-ruby//lib/sentry-ruby.rb#495 def start_transaction(**options); end - # source://sentry-ruby//lib/sentry-ruby.rb#591 + # source://sentry-ruby//lib/sentry-ruby.rb#599 def sys_command(command); end - # source://railties/8.0.1/lib/rails/engine.rb#402 + # source://railties/8.0.2/lib/rails/engine.rb#402 def table_name_prefix; end - # source://railties/8.0.1/lib/rails/engine.rb#409 + # source://railties/8.0.2/lib/rails/engine.rb#409 def use_relative_model_naming?; end - # source://sentry-ruby//lib/sentry-ruby.rb#609 + # source://sentry-ruby//lib/sentry-ruby.rb#617 def utc_now; end # Records the block's execution as a child of the current span. @@ -538,7 +538,7 @@ module Sentry # @return yield result # @yieldparam child_span [Span, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#505 + # source://sentry-ruby//lib/sentry-ruby.rb#513 def with_child_span(**attributes, &block); end # Takes a block and evaluates it. If the block raised an exception, it reports the exception to Sentry and re-raises it. @@ -553,7 +553,7 @@ module Sentry # 1/0 #=> ZeroDivisionError will be reported and re-raised # end # - # source://sentry-ruby//lib/sentry-ruby.rb#444 + # source://sentry-ruby//lib/sentry-ruby.rb#452 def with_exception_captured(**options, &block); end # Takes a block and yields a temporary scope. @@ -576,7 +576,7 @@ module Sentry # @return [void] # @yieldparam scope [Scope] # - # source://sentry-ruby//lib/sentry-ruby.rb#398 + # source://sentry-ruby//lib/sentry-ruby.rb#406 def with_scope(&block); end # Wrap a given block with session tracking. @@ -595,7 +595,7 @@ module Sentry # end # @return [void] # - # source://sentry-ruby//lib/sentry-ruby.rb#418 + # source://sentry-ruby//lib/sentry-ruby.rb#426 def with_session_tracking(&block); end end end @@ -1341,7 +1341,7 @@ class Sentry::Configuration # @return [Configuration] a new instance of Configuration # - # source://sentry-ruby//lib/sentry/configuration.rb#404 + # source://sentry-ruby//lib/sentry/configuration.rb#405 def initialize; end # Directories to be recognized as part of your app. e.g. if you @@ -1375,21 +1375,21 @@ class Sentry::Configuration # source://sentry-ruby//lib/sentry/configuration.rb#36 def async; end - # source://sentry-ruby//lib/sentry/configuration.rb#489 + # source://sentry-ruby//lib/sentry/configuration.rb#490 def async=(value); end # Track sessions in request/response cycles automatically # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#277 + # source://sentry-ruby//lib/sentry/configuration.rb#278 def auto_session_tracking; end # Track sessions in request/response cycles automatically # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#277 + # source://sentry-ruby//lib/sentry/configuration.rb#278 def auto_session_tracking=(_arg0); end # The maximum queue size for the background worker. @@ -1474,7 +1474,7 @@ class Sentry::Configuration # source://sentry-ruby//lib/sentry/configuration.rb#73 def before_breadcrumb; end - # source://sentry-ruby//lib/sentry/configuration.rb#530 + # source://sentry-ruby//lib/sentry/configuration.rb#531 def before_breadcrumb=(value); end # Optional Proc, called before sending an event to the server @@ -1494,7 +1494,7 @@ class Sentry::Configuration # source://sentry-ruby//lib/sentry/configuration.rb#87 def before_send; end - # source://sentry-ruby//lib/sentry/configuration.rb#518 + # source://sentry-ruby//lib/sentry/configuration.rb#519 def before_send=(value); end # Optional Proc, called before sending an event to the server @@ -1513,7 +1513,7 @@ class Sentry::Configuration # source://sentry-ruby//lib/sentry/configuration.rb#100 def before_send_transaction; end - # source://sentry-ruby//lib/sentry/configuration.rb#524 + # source://sentry-ruby//lib/sentry/configuration.rb#525 def before_send_transaction=(value); end # An array of breadcrumbs loggers to be used. Available options are: @@ -1530,7 +1530,7 @@ class Sentry::Configuration # source://sentry-ruby//lib/sentry/configuration.rb#112 def breadcrumbs_logger; end - # source://sentry-ruby//lib/sentry/configuration.rb#505 + # source://sentry-ruby//lib/sentry/configuration.rb#506 def breadcrumbs_logger=(logger); end # Whether to capture local variables from the raised exception's frame. Default is false. @@ -1569,7 +1569,7 @@ class Sentry::Configuration # @return [String, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#623 + # source://sentry-ruby//lib/sentry/configuration.rb#630 def csp_report_uri; end # Whether the SDK should run in the debugging mode. Default is false. @@ -1590,7 +1590,7 @@ class Sentry::Configuration # @api private # - # source://sentry-ruby//lib/sentry/configuration.rb#645 + # source://sentry-ruby//lib/sentry/configuration.rb#652 def detect_release; end # the dsn value, whether it's set via `config.dsn=` or `ENV["SENTRY_DSN"]` @@ -1600,7 +1600,7 @@ class Sentry::Configuration # source://sentry-ruby//lib/sentry/configuration.rb#133 def dsn; end - # source://sentry-ruby//lib/sentry/configuration.rb#477 + # source://sentry-ruby//lib/sentry/configuration.rb#478 def dsn=(value); end # Whether to downsample transactions automatically because of backpressure. @@ -1609,7 +1609,7 @@ class Sentry::Configuration # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#283 + # source://sentry-ruby//lib/sentry/configuration.rb#284 def enable_backpressure_handling; end # Whether to downsample transactions automatically because of backpressure. @@ -1618,18 +1618,19 @@ class Sentry::Configuration # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#283 + # source://sentry-ruby//lib/sentry/configuration.rb#284 def enable_backpressure_handling=(_arg0); end # Easier way to use performance tracing # If set to true, will set traces_sample_rate to 1.0 # + # @deprecated It will be removed in the next major release. # @return [Boolean, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#268 + # source://sentry-ruby//lib/sentry/configuration.rb#269 def enable_tracing; end - # source://sentry-ruby//lib/sentry/configuration.rb#544 + # source://sentry-ruby//lib/sentry/configuration.rb#545 def enable_tracing=(enable_tracing); end # Whitelist of enabled_environments that will send notifications to Sentry. Array of Strings. @@ -1648,7 +1649,7 @@ class Sentry::Configuration # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#601 + # source://sentry-ruby//lib/sentry/configuration.rb#608 def enabled_in_current_env?; end # Array of patches to apply. @@ -1656,7 +1657,7 @@ class Sentry::Configuration # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#307 + # source://sentry-ruby//lib/sentry/configuration.rb#308 def enabled_patches; end # Array of patches to apply. @@ -1664,7 +1665,7 @@ class Sentry::Configuration # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#307 + # source://sentry-ruby//lib/sentry/configuration.rb#308 def enabled_patches=(_arg0); end # RACK_ENV by default. @@ -1674,22 +1675,22 @@ class Sentry::Configuration # source://sentry-ruby//lib/sentry/configuration.rb#124 def environment; end - # source://sentry-ruby//lib/sentry/configuration.rb#536 + # source://sentry-ruby//lib/sentry/configuration.rb#537 def environment=(environment); end # @api private # - # source://sentry-ruby//lib/sentry/configuration.rb#658 + # source://sentry-ruby//lib/sentry/configuration.rb#665 def error_messages; end # these are not config options # - # source://sentry-ruby//lib/sentry/configuration.rb#311 + # source://sentry-ruby//lib/sentry/configuration.rb#312 def errors; end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#588 + # source://sentry-ruby//lib/sentry/configuration.rb#595 def exception_class_allowed?(exc); end # Logger 'progname's to exclude from breadcrumbs @@ -1724,7 +1725,7 @@ class Sentry::Configuration # these are not config options # - # source://sentry-ruby//lib/sentry/configuration.rb#311 + # source://sentry-ruby//lib/sentry/configuration.rb#312 def gem_specs; end # Whether to capture local variables from the raised exception's frame. Default is false. @@ -1766,10 +1767,10 @@ class Sentry::Configuration # # @return [Symbol] # - # source://sentry-ruby//lib/sentry/configuration.rb#292 + # source://sentry-ruby//lib/sentry/configuration.rb#293 def instrumenter; end - # source://sentry-ruby//lib/sentry/configuration.rb#540 + # source://sentry-ruby//lib/sentry/configuration.rb#541 def instrumenter=(instrumenter); end # You may provide your own LineCache for matching paths with source files. @@ -1831,10 +1832,10 @@ class Sentry::Configuration # # @return [Class] # - # source://sentry-ruby//lib/sentry/configuration.rb#296 + # source://sentry-ruby//lib/sentry/configuration.rb#297 def profiler_class; end - # source://sentry-ruby//lib/sentry/configuration.rb#557 + # source://sentry-ruby//lib/sentry/configuration.rb#564 def profiler_class=(profiler_class); end # Take a float between 0.0 and 1.0 as the sample rate for capturing profiles. @@ -1843,15 +1844,15 @@ class Sentry::Configuration # # @return [Float, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#302 + # source://sentry-ruby//lib/sentry/configuration.rb#303 def profiles_sample_rate; end - # source://sentry-ruby//lib/sentry/configuration.rb#553 + # source://sentry-ruby//lib/sentry/configuration.rb#560 def profiles_sample_rate=(profiles_sample_rate); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#616 + # source://sentry-ruby//lib/sentry/configuration.rb#623 def profiling_enabled?; end # Project directory root for in_app detection. Could be Rails root, etc. @@ -1898,7 +1899,7 @@ class Sentry::Configuration # source://sentry-ruby//lib/sentry/configuration.rb#204 def rack_env_whitelist=(_arg0); end - # source://sentry-rails/5.22.4/lib/sentry/rails/configuration.rb#11 + # source://sentry-rails/5.23.0/lib/sentry/rails/configuration.rb#11 def rails; end # Release tag to be passed with every event sent to Sentry. @@ -1909,12 +1910,12 @@ class Sentry::Configuration # source://sentry-ruby//lib/sentry/configuration.rb#209 def release; end - # source://sentry-ruby//lib/sentry/configuration.rb#483 + # source://sentry-ruby//lib/sentry/configuration.rb#484 def release=(value); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#578 + # source://sentry-ruby//lib/sentry/configuration.rb#585 def sample_allowed?; end # The sampling factor to apply to events. A value of 0.0 will not send @@ -1938,7 +1939,7 @@ class Sentry::Configuration # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#273 + # source://sentry-ruby//lib/sentry/configuration.rb#274 def send_client_reports; end # Send diagnostic client reports about dropped events, true by default @@ -1946,7 +1947,7 @@ class Sentry::Configuration # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#273 + # source://sentry-ruby//lib/sentry/configuration.rb#274 def send_client_reports=(_arg0); end # When send_default_pii's value is false (default), sensitive information like @@ -1989,15 +1990,15 @@ class Sentry::Configuration # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#568 + # source://sentry-ruby//lib/sentry/configuration.rb#575 def sending_allowed?; end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#572 + # source://sentry-ruby//lib/sentry/configuration.rb#579 def sending_to_dsn_allowed?; end - # source://sentry-ruby//lib/sentry/configuration.rb#477 + # source://sentry-ruby//lib/sentry/configuration.rb#478 def server=(value); end # @return [String] @@ -2012,7 +2013,7 @@ class Sentry::Configuration # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#584 + # source://sentry-ruby//lib/sentry/configuration.rb#591 def session_tracking?; end # Allow to skip Sentry emails within rake tasks @@ -2053,7 +2054,7 @@ class Sentry::Configuration # @api private # - # source://sentry-ruby//lib/sentry/configuration.rb#633 + # source://sentry-ruby//lib/sentry/configuration.rb#640 def stacktrace_builder; end # Whether to strip the load path while constructing the backtrace frame filename. @@ -2077,7 +2078,7 @@ class Sentry::Configuration # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#288 + # source://sentry-ruby//lib/sentry/configuration.rb#289 def trace_propagation_targets; end # Allowlist of outgoing request targets to which sentry-trace and baggage headers are attached. @@ -2085,7 +2086,7 @@ class Sentry::Configuration # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#288 + # source://sentry-ruby//lib/sentry/configuration.rb#289 def trace_propagation_targets=(_arg0); end # Take a float between 0.0 and 1.0 as the sample rate for tracing events (transactions). @@ -2095,7 +2096,7 @@ class Sentry::Configuration # source://sentry-ruby//lib/sentry/configuration.rb#253 def traces_sample_rate; end - # source://sentry-ruby//lib/sentry/configuration.rb#549 + # source://sentry-ruby//lib/sentry/configuration.rb#556 def traces_sample_rate=(traces_sample_rate); end # Take a Proc that controls the sample rate for every tracing event, e.g. @@ -2126,7 +2127,7 @@ class Sentry::Configuration # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#610 + # source://sentry-ruby//lib/sentry/configuration.rb#617 def tracing_enabled?; end # Transport related configuration. @@ -2148,126 +2149,126 @@ class Sentry::Configuration # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#605 + # source://sentry-ruby//lib/sentry/configuration.rb#612 def valid_sample_rate?(sample_rate); end - # source://sentry-ruby//lib/sentry/configuration.rb#459 + # source://sentry-ruby//lib/sentry/configuration.rb#460 def validate; end private # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#700 + # source://sentry-ruby//lib/sentry/configuration.rb#707 def capture_in_environment?; end - # source://sentry-ruby//lib/sentry/configuration.rb#716 + # source://sentry-ruby//lib/sentry/configuration.rb#723 def environment_from_env; end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#671 + # source://sentry-ruby//lib/sentry/configuration.rb#678 def excluded_exception?(incoming_exception); end - # source://sentry-ruby//lib/sentry/configuration.rb#677 + # source://sentry-ruby//lib/sentry/configuration.rb#684 def excluded_exception_classes; end - # source://sentry-ruby//lib/sentry/configuration.rb#681 + # source://sentry-ruby//lib/sentry/configuration.rb#688 def get_exception_class(x); end - # source://sentry-ruby//lib/sentry/configuration.rb#665 + # source://sentry-ruby//lib/sentry/configuration.rb#672 def init_dsn(dsn_string); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#685 + # source://sentry-ruby//lib/sentry/configuration.rb#692 def matches_exception?(excluded_exception_class, incoming_exception); end - # source://sentry-ruby//lib/sentry/configuration.rb#740 + # source://sentry-ruby//lib/sentry/configuration.rb#747 def processor_count; end - # source://sentry-ruby//lib/sentry/configuration.rb#734 + # source://sentry-ruby//lib/sentry/configuration.rb#741 def run_post_initialization_callbacks; end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#730 + # source://sentry-ruby//lib/sentry/configuration.rb#737 def running_on_heroku?; end - # source://sentry-ruby//lib/sentry/configuration.rb#693 + # source://sentry-ruby//lib/sentry/configuration.rb#700 def safe_const_get(x); end - # source://sentry-ruby//lib/sentry/configuration.rb#720 + # source://sentry-ruby//lib/sentry/configuration.rb#727 def server_name_from_env; end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#707 + # source://sentry-ruby//lib/sentry/configuration.rb#714 def valid?; end class << self # allow extensions to add their hooks to the Configuration class # - # source://sentry-ruby//lib/sentry/configuration.rb#360 + # source://sentry-ruby//lib/sentry/configuration.rb#361 def add_post_initialization_callback(&block); end # Post initialization callbacks are called at the end of initialization process # allowing extending the configuration of sentry-ruby by multiple extensions # - # source://sentry-ruby//lib/sentry/configuration.rb#355 + # source://sentry-ruby//lib/sentry/configuration.rb#356 def post_initialization_callbacks; end - # source://sentry-ruby//lib/sentry/configuration.rb#368 + # source://sentry-ruby//lib/sentry/configuration.rb#369 def validate(attribute, optional: T.unsafe(nil), type: T.unsafe(nil)); end - # source://sentry-ruby//lib/sentry/configuration.rb#364 + # source://sentry-ruby//lib/sentry/configuration.rb#365 def validations; end private - # source://sentry-ruby//lib/sentry/configuration.rb#378 + # source://sentry-ruby//lib/sentry/configuration.rb#379 def build_validation_proc(optional, type); end end end -# source://sentry-ruby//lib/sentry/configuration.rb#350 +# source://sentry-ruby//lib/sentry/configuration.rb#351 Sentry::Configuration::APP_DIRS_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://sentry-ruby//lib/sentry/configuration.rb#348 +# source://sentry-ruby//lib/sentry/configuration.rb#349 Sentry::Configuration::DEFAULT_PATCHES = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/configuration.rb#337 +# source://sentry-ruby//lib/sentry/configuration.rb#338 Sentry::Configuration::HEROKU_DYNO_METADATA_MESSAGE = T.let(T.unsafe(nil), String) # Most of these errors generate 4XX responses. In general, Sentry clients # only automatically report 5xx responses. # -# source://sentry-ruby//lib/sentry/configuration.rb#324 +# source://sentry-ruby//lib/sentry/configuration.rb#325 Sentry::Configuration::IGNORE_DEFAULT = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/configuration.rb#344 +# source://sentry-ruby//lib/sentry/configuration.rb#345 Sentry::Configuration::INSTRUMENTERS = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/configuration.rb#340 +# source://sentry-ruby//lib/sentry/configuration.rb#341 Sentry::Configuration::LOG_PREFIX = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/configuration.rb#341 +# source://sentry-ruby//lib/sentry/configuration.rb#342 Sentry::Configuration::MODULE_SEPARATOR = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/configuration.rb#346 +# source://sentry-ruby//lib/sentry/configuration.rb#347 Sentry::Configuration::PROPAGATION_TARGETS_MATCH_ALL = T.let(T.unsafe(nil), Regexp) # These exceptions could enter Puma's `lowlevel_error_handler` callback and the SDK's Puma integration # But they are mostly considered as noise and should be ignored by default # Please see https://github.com/getsentry/sentry-ruby/pull/2026 for more information # -# source://sentry-ruby//lib/sentry/configuration.rb#316 +# source://sentry-ruby//lib/sentry/configuration.rb#317 Sentry::Configuration::PUMA_IGNORE_DEFAULT = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/configuration.rb#331 +# source://sentry-ruby//lib/sentry/configuration.rb#332 Sentry::Configuration::RACK_ENV_WHITELIST_DEFAULT = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/configuration.rb#342 +# source://sentry-ruby//lib/sentry/configuration.rb#343 Sentry::Configuration::SKIP_INSPECTION_ATTRIBUTES = T.let(T.unsafe(nil), Array) # source://sentry-ruby//lib/sentry/cron/configuration.rb#4 @@ -3025,51 +3026,54 @@ Sentry::Faraday::Instrumenter::SPAN_ORIGIN = T.let(T.unsafe(nil), String) # source://sentry-ruby//lib/sentry/faraday.rb#5 Sentry::Faraday::OP_NAME = T.let(T.unsafe(nil), String) +# source://sentry-ruby//lib/sentry-ruby.rb#55 +Sentry::GLOBALS = T.let(T.unsafe(nil), Array) + # source://sentry-ruby//lib/sentry/transport/http_transport.rb#7 class Sentry::HTTPTransport < ::Sentry::Transport # @return [HTTPTransport] a new instance of HTTPTransport # - # source://sentry-ruby//lib/sentry/transport/http_transport.rb#27 + # source://sentry-ruby//lib/sentry/transport/http_transport.rb#26 def initialize(*args); end - # source://sentry-ruby//lib/sentry/transport/http_transport.rb#90 + # source://sentry-ruby//lib/sentry/transport/http_transport.rb#89 def conn; end - # source://sentry-ruby//lib/sentry/transport/http_transport.rb#72 + # source://sentry-ruby//lib/sentry/transport/http_transport.rb#71 def endpoint; end - # source://sentry-ruby//lib/sentry/transport/http_transport.rb#76 + # source://sentry-ruby//lib/sentry/transport/http_transport.rb#75 def generate_auth_header; end - # source://sentry-ruby//lib/sentry/transport/http_transport.rb#32 + # source://sentry-ruby//lib/sentry/transport/http_transport.rb#31 def send_data(data); end private - # source://sentry-ruby//lib/sentry/transport/http_transport.rb#121 + # source://sentry-ruby//lib/sentry/transport/http_transport.rb#120 def handle_rate_limited_response(headers); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/transport/http_transport.rb#117 + # source://sentry-ruby//lib/sentry/transport/http_transport.rb#116 def has_rate_limited_header?(headers); end # @param proxy [String, URI, Hash] Proxy config value passed into `config.transport`. # Accepts either a URI formatted string, URI, or a hash with the `uri`, `user`, and `password` keys. # @return [Hash] Normalized proxy config that will be passed into `Net::HTTP` # - # source://sentry-ruby//lib/sentry/transport/http_transport.rb#182 + # source://sentry-ruby//lib/sentry/transport/http_transport.rb#181 def normalize_proxy(proxy); end - # source://sentry-ruby//lib/sentry/transport/http_transport.rb#147 + # source://sentry-ruby//lib/sentry/transport/http_transport.rb#146 def parse_rate_limit_header(rate_limit_header); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/transport/http_transport.rb#175 + # source://sentry-ruby//lib/sentry/transport/http_transport.rb#174 def should_compress?(data); end - # source://sentry-ruby//lib/sentry/transport/http_transport.rb#196 + # source://sentry-ruby//lib/sentry/transport/http_transport.rb#195 def ssl_configuration; end end @@ -3106,126 +3110,156 @@ class Sentry::Hub # @return [Hub] a new instance of Hub # - # source://sentry-ruby//lib/sentry/hub.rb#13 + # source://sentry-ruby//lib/sentry/hub.rb#17 def initialize(client, scope); end - # source://sentry-ruby//lib/sentry/hub.rb#222 + # source://sentry-ruby//lib/sentry/hub.rb#252 def add_breadcrumb(breadcrumb, hint: T.unsafe(nil)); end - # source://sentry-ruby//lib/sentry/hub.rb#45 + # source://sentry-ruby//lib/sentry/hub.rb#75 def bind_client(client); end - # source://sentry-ruby//lib/sentry/hub.rb#165 + # source://sentry-ruby//lib/sentry/hub.rb#195 def capture_check_in(slug, status, **options); end - # source://sentry-ruby//lib/sentry/hub.rb#189 + # source://sentry-ruby//lib/sentry/hub.rb#219 def capture_event(event, **options, &block); end - # source://sentry-ruby//lib/sentry/hub.rb#124 + # source://sentry-ruby//lib/sentry/hub.rb#154 def capture_exception(exception, **options, &block); end - # source://sentry-ruby//lib/sentry/hub.rb#150 + # source://sentry-ruby//lib/sentry/hub.rb#180 def capture_message(message, **options, &block); end - # source://sentry-ruby//lib/sentry/hub.rb#35 + # source://sentry-ruby//lib/sentry/hub.rb#65 def clone; end - # source://sentry-ruby//lib/sentry/hub.rb#27 + # source://sentry-ruby//lib/sentry/hub.rb#57 def configuration; end - # source://sentry-ruby//lib/sentry/hub.rb#53 + # source://sentry-ruby//lib/sentry/hub.rb#83 def configure_scope(&block); end - # source://sentry-ruby//lib/sentry/hub.rb#306 + # source://sentry-ruby//lib/sentry/hub.rb#336 def continue_trace(env, **options); end - # source://sentry-ruby//lib/sentry/hub.rb#23 + # source://sentry-ruby//lib/sentry/hub.rb#53 def current_client; end - # source://sentry-ruby//lib/sentry/hub.rb#31 + # Returns the value of attribute current_profiler. + # + # source://sentry-ruby//lib/sentry/hub.rb#15 + def current_profiler; end + + # source://sentry-ruby//lib/sentry/hub.rb#61 def current_scope; end - # source://sentry-ruby//lib/sentry/hub.rb#251 + # source://sentry-ruby//lib/sentry/hub.rb#281 def end_session; end - # source://sentry-ruby//lib/sentry/hub.rb#281 + # source://sentry-ruby//lib/sentry/hub.rb#311 def get_baggage; end - # source://sentry-ruby//lib/sentry/hub.rb#288 + # source://sentry-ruby//lib/sentry/hub.rb#318 def get_trace_propagation_headers; end - # source://sentry-ruby//lib/sentry/hub.rb#300 + # source://sentry-ruby//lib/sentry/hub.rb#330 def get_trace_propagation_meta; end - # source://sentry-ruby//lib/sentry/hub.rb#274 + # source://sentry-ruby//lib/sentry/hub.rb#304 def get_traceparent; end # Returns the value of attribute last_event_id. # - # source://sentry-ruby//lib/sentry/hub.rb#11 + # source://sentry-ruby//lib/sentry/hub.rb#13 def last_event_id; end - # source://sentry-ruby//lib/sentry/hub.rb#19 + # source://sentry-ruby//lib/sentry/hub.rb#49 def new_from_top; end - # source://sentry-ruby//lib/sentry/hub.rb#75 + # source://sentry-ruby//lib/sentry/hub.rb#105 def pop_scope; end - # source://sentry-ruby//lib/sentry/hub.rb#64 + # This is an internal private method + # + # @api private + # @return [Boolean] + # + # source://sentry-ruby//lib/sentry/hub.rb#43 + def profiler_running?; end + + # source://sentry-ruby//lib/sentry/hub.rb#94 def push_scope; end - # source://sentry-ruby//lib/sentry/hub.rb#246 + # This is an internal private method + # + # @api private + # + # source://sentry-ruby//lib/sentry/hub.rb#26 + def start_profiler!(transaction); end + + # source://sentry-ruby//lib/sentry/hub.rb#276 def start_session; end - # source://sentry-ruby//lib/sentry/hub.rb#85 + # source://sentry-ruby//lib/sentry/hub.rb#115 def start_transaction(transaction: T.unsafe(nil), custom_sampling_context: T.unsafe(nil), instrumenter: T.unsafe(nil), **options); end + # This is an internal private method + # + # @api private + # + # source://sentry-ruby//lib/sentry/hub.rb#35 + def stop_profiler!(transaction); end + # this doesn't do anything to the already initialized background worker # but it temporarily disables dispatching events to it # - # source://sentry-ruby//lib/sentry/hub.rb#237 + # source://sentry-ruby//lib/sentry/hub.rb#267 def with_background_worker_disabled(&block); end - # source://sentry-ruby//lib/sentry/hub.rb#104 + # source://sentry-ruby//lib/sentry/hub.rb#134 def with_child_span(instrumenter: T.unsafe(nil), **attributes, &block); end - # source://sentry-ruby//lib/sentry/hub.rb#57 + # source://sentry-ruby//lib/sentry/hub.rb#87 def with_scope(&block); end - # source://sentry-ruby//lib/sentry/hub.rb#265 + # source://sentry-ruby//lib/sentry/hub.rb#295 def with_session_tracking(&block); end private - # source://sentry-ruby//lib/sentry/hub.rb#326 + # source://sentry-ruby//lib/sentry/hub.rb#356 def current_layer; end end -# source://sentry-ruby//lib/sentry/hub.rb#330 +# source://sentry-ruby//lib/sentry/hub.rb#360 class Sentry::Hub::Layer # @return [Layer] a new instance of Layer # - # source://sentry-ruby//lib/sentry/hub.rb#334 + # source://sentry-ruby//lib/sentry/hub.rb#364 def initialize(client, scope); end # Returns the value of attribute client. # - # source://sentry-ruby//lib/sentry/hub.rb#331 + # source://sentry-ruby//lib/sentry/hub.rb#361 def client; end # Sets the attribute client # # @param value the value to set the attribute client to. # - # source://sentry-ruby//lib/sentry/hub.rb#331 + # source://sentry-ruby//lib/sentry/hub.rb#361 def client=(_arg0); end # Returns the value of attribute scope. # - # source://sentry-ruby//lib/sentry/hub.rb#332 + # source://sentry-ruby//lib/sentry/hub.rb#362 def scope; end end +# source://sentry-ruby//lib/sentry/hub.rb#11 +Sentry::Hub::MUTEX = T.let(T.unsafe(nil), Thread::Mutex) + # source://sentry-ruby//lib/sentry/integrable.rb#4 module Sentry::Integrable # source://sentry-ruby//lib/sentry/integrable.rb#30 @@ -5518,7 +5552,7 @@ class Sentry::Transaction < ::Sentry::Span # @return [Transaction] # - # source://sentry-ruby//lib/sentry/transaction.rb#156 + # source://sentry-ruby//lib/sentry/transaction.rb#160 def deep_dup; end # The effective sample rate at which this transaction was sampled. @@ -5533,7 +5567,7 @@ class Sentry::Transaction < ::Sentry::Span # @param hub [Hub] the hub that'll send this transaction. (Deprecated) # @return [TransactionEvent] # - # source://sentry-ruby//lib/sentry/transaction.rb#242 + # source://sentry-ruby//lib/sentry/transaction.rb#246 def finish(hub: T.unsafe(nil), end_timestamp: T.unsafe(nil)); end # Get the existing frozen incoming baggage @@ -5541,7 +5575,7 @@ class Sentry::Transaction < ::Sentry::Span # # @return [Baggage] # - # source://sentry-ruby//lib/sentry/transaction.rb#276 + # source://sentry-ruby//lib/sentry/transaction.rb#280 def get_baggage; end # @deprecated Use Sentry.get_current_hub instead. @@ -5588,7 +5622,7 @@ class Sentry::Transaction < ::Sentry::Span # @param value [Object] # @return [void] # - # source://sentry-ruby//lib/sentry/transaction.rb#295 + # source://sentry-ruby//lib/sentry/transaction.rb#299 def set_context(key, value); end # Sets initial sampling decision of the transaction. @@ -5596,7 +5630,7 @@ class Sentry::Transaction < ::Sentry::Span # @param sampling_context [Hash] a context Hash that'll be passed to `traces_sampler` (if provided). # @return [void] # - # source://sentry-ruby//lib/sentry/transaction.rb#181 + # source://sentry-ruby//lib/sentry/transaction.rb#185 def set_initial_sample_decision(sampling_context:); end # Sets a custom measurement on the transaction. @@ -5606,7 +5640,7 @@ class Sentry::Transaction < ::Sentry::Span # @param unit [String] unit of the measurement # @return [void] # - # source://sentry-ruby//lib/sentry/transaction.rb#174 + # source://sentry-ruby//lib/sentry/transaction.rb#178 def set_measurement(name, value, unit = T.unsafe(nil)); end # Set the transaction name directly. @@ -5616,7 +5650,7 @@ class Sentry::Transaction < ::Sentry::Span # @param source [Symbol] # @return [void] # - # source://sentry-ruby//lib/sentry/transaction.rb#286 + # source://sentry-ruby//lib/sentry/transaction.rb#290 def set_name(name, source: T.unsafe(nil)); end # The source of the transaction name. @@ -5630,39 +5664,39 @@ class Sentry::Transaction < ::Sentry::Span # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/transaction.rb#307 + # source://sentry-ruby//lib/sentry/transaction.rb#313 def source_low_quality?; end # Start the profiler. # # @return [void] # - # source://sentry-ruby//lib/sentry/transaction.rb#301 + # source://sentry-ruby//lib/sentry/transaction.rb#305 def start_profiler!; end # @return [Hash] # - # source://sentry-ruby//lib/sentry/transaction.rb#142 + # source://sentry-ruby//lib/sentry/transaction.rb#146 def to_hash; end protected - # source://sentry-ruby//lib/sentry/transaction.rb#313 + # source://sentry-ruby//lib/sentry/transaction.rb#319 def init_span_recorder(limit = T.unsafe(nil)); end private - # source://sentry-ruby//lib/sentry/transaction.rb#320 + # source://sentry-ruby//lib/sentry/transaction.rb#326 def generate_transaction_description; end - # source://sentry-ruby//lib/sentry/transaction.rb#327 + # source://sentry-ruby//lib/sentry/transaction.rb#333 def populate_head_baggage; end class << self # @deprecated Use Sentry::PropagationContext.extract_sentry_trace instead. # @return [Array, nil] # - # source://sentry-ruby//lib/sentry/transaction.rb#137 + # source://sentry-ruby//lib/sentry/transaction.rb#141 def extract_sentry_trace(sentry_trace); end # Initalizes a Transaction instance with a Sentry trace string from another transaction (usually from an external request). @@ -5678,7 +5712,7 @@ class Sentry::Transaction < ::Sentry::Span # @param options [Hash] the options you want to use to initialize a Transaction instance. # @return [Transaction, nil] # - # source://sentry-ruby//lib/sentry/transaction.rb#104 + # source://sentry-ruby//lib/sentry/transaction.rb#108 def from_sentry_trace(sentry_trace, baggage: T.unsafe(nil), hub: T.unsafe(nil), **options); end end end @@ -5696,24 +5730,24 @@ Sentry::Transaction::SENTRY_TRACE_REGEXP = T.let(T.unsafe(nil), Regexp) # source://sentry-ruby//lib/sentry/transaction.rb#16 Sentry::Transaction::SOURCES = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/transaction.rb#346 +# source://sentry-ruby//lib/sentry/transaction.rb#352 class Sentry::Transaction::SpanRecorder # @return [SpanRecorder] a new instance of SpanRecorder # - # source://sentry-ruby//lib/sentry/transaction.rb#349 + # source://sentry-ruby//lib/sentry/transaction.rb#355 def initialize(max_length); end - # source://sentry-ruby//lib/sentry/transaction.rb#354 + # source://sentry-ruby//lib/sentry/transaction.rb#360 def add(span); end # Returns the value of attribute max_length. # - # source://sentry-ruby//lib/sentry/transaction.rb#347 + # source://sentry-ruby//lib/sentry/transaction.rb#353 def max_length; end # Returns the value of attribute spans. # - # source://sentry-ruby//lib/sentry/transaction.rb#347 + # source://sentry-ruby//lib/sentry/transaction.rb#353 def spans; end end @@ -5789,10 +5823,13 @@ class Sentry::TransactionEvent < ::Sentry::Event private - # source://sentry-ruby//lib/sentry/transaction_event.rb#62 + # source://sentry-ruby//lib/sentry/transaction_event.rb#64 def populate_profile(transaction); end end +# source://sentry-ruby//lib/sentry/transaction_event.rb#62 +Sentry::TransactionEvent::EMPTY_PROFILE = T.let(T.unsafe(nil), Hash) + # source://sentry-ruby//lib/sentry/transaction_event.rb#6 Sentry::TransactionEvent::TYPE = T.let(T.unsafe(nil), String) @@ -6124,6 +6161,11 @@ module Sentry::Utils::HttpTracing # source://sentry-ruby//lib/sentry/utils/http_tracing.rb#6 def set_span_info(sentry_span, request_info, response_status); end + + private + + # source://sentry-ruby//lib/sentry/utils/http_tracing.rb#61 + def get_level(status); end end # source://sentry-ruby//lib/sentry/utils/real_ip.rb#11 @@ -6214,7 +6256,7 @@ class Sentry::Vernier::Profiler # source://sentry-ruby//lib/sentry/vernier/profiler.rb#14 def initialize(configuration); end - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#87 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#88 def active_thread_id; end # Returns the value of attribute event_id. @@ -6241,21 +6283,21 @@ class Sentry::Vernier::Profiler # source://sentry-ruby//lib/sentry/vernier/profiler.rb#72 def stop; end - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#91 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#92 def to_hash; end private - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#104 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#105 def log(message); end - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#120 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#121 def output; end - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#112 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#113 def profile_meta; end - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#108 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#109 def record_lost_event(reason); end end diff --git a/sorbet/rbi/gems/spoom@1.5.4.rbi b/sorbet/rbi/gems/spoom@1.6.0.rbi similarity index 54% rename from sorbet/rbi/gems/spoom@1.5.4.rbi rename to sorbet/rbi/gems/spoom@1.6.0.rbi index 2b5293e6..3b38625d 100644 --- a/sorbet/rbi/gems/spoom@1.5.4.rbi +++ b/sorbet/rbi/gems/spoom@1.6.0.rbi @@ -5,12 +5,26 @@ # Please instead update this file by running `bin/tapioca gem spoom`. +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `spoom` gem. +# Please instead update this file by running `spoom srb sigs export`. + # source://spoom//lib/spoom.rb#7 module Spoom class << self - # source://spoom//lib/spoom/parse.rb#13 + # : (String ruby, file: String) -> Prism::Node + # + # source://spoom//lib/spoom/parse.rb#11 sig { params(ruby: ::String, file: ::String).returns(::Prism::Node) } def parse_ruby(ruby, file:); end + + # : (String ruby, file: String) -> [Prism::Node, Array[Prism::Comment]] + # + # source://spoom//lib/spoom/parse.rb#27 + sig { params(ruby: ::String, file: ::String).returns([::Prism::Node, T::Array[::Prism::Comment]]) } + def parse_ruby_with_comments(ruby, file:); end end end @@ -22,13 +36,15 @@ class Spoom::Cli::Deadcode < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # source://spoom//lib/spoom/cli/deadcode.rb#52 + # : (*String paths) -> void + # + # source://spoom//lib/spoom/cli/deadcode.rb#51 sig { params(paths: ::String).void } def deadcode(*paths); end def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - # source://spoom//lib/spoom/cli/deadcode.rb#154 + # source://spoom//lib/spoom/cli/deadcode.rb#153 def remove(location_string); end end @@ -38,83 +54,125 @@ module Spoom::Cli::Helper requires_ancestor { Thor } - # source://spoom//lib/spoom/cli/helper.rb#139 + # : (String string) -> String + # + # source://spoom//lib/spoom/cli/helper.rb#147 sig { params(string: ::String).returns(::String) } def blue(string); end + # Collect files from `paths`, defaulting to `exec_path` + # : (Array[String] paths) -> Array[String] + # + # source://spoom//lib/spoom/cli/helper.rb#85 + # Collect files from `paths`, defaulting to `exec_path` + sig { params(paths: T::Array[::String]).returns(T::Array[::String]) } + def collect_files(paths); end + # Is the `--color` option true? + # : -> bool + # + # @return [Boolean] # - # source://spoom//lib/spoom/cli/helper.rb#103 + # source://spoom//lib/spoom/cli/helper.rb#111 + # Is the `--color` option true? sig { returns(T::Boolean) } def color?; end # Colorize a string if `color?` + # : (String string, *Color color) -> String # - # source://spoom//lib/spoom/cli/helper.rb#132 + # source://spoom//lib/spoom/cli/helper.rb#140 + # Colorize a string if `color?` sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } def colorize(string, *color); end # Returns the context at `--path` (by default the current working directory) + # : -> Context # - # source://spoom//lib/spoom/cli/helper.rb#71 + # source://spoom//lib/spoom/cli/helper.rb#58 + # Returns the context at `--path` (by default the current working directory) sig { returns(::Spoom::Context) } def context; end # Raise if `spoom` is not ran inside a context with a `sorbet/config` file + # : -> Context # - # source://spoom//lib/spoom/cli/helper.rb#77 + # source://spoom//lib/spoom/cli/helper.rb#64 + # Raise if `spoom` is not ran inside a context with a `sorbet/config` file sig { returns(::Spoom::Context) } def context_requiring_sorbet!; end - # source://spoom//lib/spoom/cli/helper.rb#144 + # : (String string) -> String + # + # source://spoom//lib/spoom/cli/helper.rb#152 sig { params(string: ::String).returns(::String) } def cyan(string); end # Return the path specified through `--path` + # : -> String # - # source://spoom//lib/spoom/cli/helper.rb#92 + # source://spoom//lib/spoom/cli/helper.rb#79 + # Return the path specified through `--path` sig { returns(::String) } def exec_path; end - # source://spoom//lib/spoom/cli/helper.rb#149 + # : (String string) -> String + # + # source://spoom//lib/spoom/cli/helper.rb#157 sig { params(string: ::String).returns(::String) } def gray(string); end - # source://spoom//lib/spoom/cli/helper.rb#154 + # : (String string) -> String + # + # source://spoom//lib/spoom/cli/helper.rb#162 sig { params(string: ::String).returns(::String) } def green(string); end - # source://spoom//lib/spoom/cli/helper.rb#108 + # : (String string) -> String + # + # source://spoom//lib/spoom/cli/helper.rb#116 sig { params(string: ::String).returns(::String) } def highlight(string); end - # source://spoom//lib/spoom/cli/helper.rb#159 + # : (String string) -> String + # + # source://spoom//lib/spoom/cli/helper.rb#167 sig { params(string: ::String).returns(::String) } def red(string); end # Print `message` on `$stdout` + # : (String message) -> void # - # source://spoom//lib/spoom/cli/helper.rb#20 + # source://spoom//lib/spoom/cli/helper.rb#19 + # Print `message` on `$stdout` sig { params(message: ::String).void } def say(message); end # Print `message` on `$stderr` # # The message is prefixed by a status (default: `Error`). + # : (String message, ?status: String?, ?nl: bool) -> void # - # source://spoom//lib/spoom/cli/helper.rb#39 + # source://spoom//lib/spoom/cli/helper.rb#32 + # Print `message` on `$stderr` + # The message is prefixed by a status (default: `Error`). sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void } def say_error(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end # Print `message` on `$stderr` # # The message is prefixed by a status (default: `Warning`). + # : (String message, ?status: String?, ?nl: bool) -> void # - # source://spoom//lib/spoom/cli/helper.rb#59 + # source://spoom//lib/spoom/cli/helper.rb#46 + # Print `message` on `$stderr` + # The message is prefixed by a status (default: `Warning`). sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void } def say_warning(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end - # source://spoom//lib/spoom/cli/helper.rb#164 + # : (String string) -> String + # + # source://spoom//lib/spoom/cli/helper.rb#172 sig { params(string: ::String).returns(::String) } def yellow(string); end end @@ -124,63 +182,81 @@ class Spoom::Cli::Main < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # source://spoom//lib/spoom/cli.rb#101 + # source://spoom//lib/spoom/cli.rb#100 def __print_version; end - # source://spoom//lib/spoom/cli.rb#58 + # : (?String directory) -> void + # + # source://spoom//lib/spoom/cli.rb#57 sig { params(directory: ::String).void } def bump(directory = T.unsafe(nil)); end - # source://spoom//lib/spoom/cli.rb#65 + # source://spoom//lib/spoom/cli.rb#64 def coverage(*args); end # source://thor/1.3.2/lib/thor.rb#334 def deadcode(*args); end - # source://spoom//lib/spoom/cli.rb#75 + # source://spoom//lib/spoom/cli.rb#74 def lsp(*args); end # source://thor/1.3.2/lib/thor.rb#334 def srb(*args); end - # source://spoom//lib/spoom/cli.rb#94 + # source://spoom//lib/spoom/cli.rb#93 def tc(*paths_to_select); end class << self # @return [Boolean] # - # source://spoom//lib/spoom/cli.rb#108 + # source://spoom//lib/spoom/cli.rb#107 def exit_on_failure?; end end end -# source://spoom//lib/spoom/cli.rb#81 +# source://spoom//lib/spoom/cli.rb#80 Spoom::Cli::Main::SORT_CODE = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/cli.rb#83 +# source://spoom//lib/spoom/cli.rb#82 Spoom::Cli::Main::SORT_ENUM = T.let(T.unsafe(nil), Array) -# source://spoom//lib/spoom/cli.rb#82 +# source://spoom//lib/spoom/cli.rb#81 Spoom::Cli::Main::SORT_LOC = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/cli/srb/bump.rb#9 +# source://spoom//lib/spoom/cli/srb/assertions.rb#6 module Spoom::Cli::Srb; end +# source://spoom//lib/spoom/cli/srb/assertions.rb#7 +class Spoom::Cli::Srb::Assertions < ::Thor + include ::Spoom::Colorize + include ::Spoom::Cli::Helper + + def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end + + # source://spoom//lib/spoom/cli/srb/assertions.rb#29 + def transform_files(files, &block); end + + # source://spoom//lib/spoom/cli/srb/assertions.rb#13 + def translate(*paths); end +end + # source://spoom//lib/spoom/cli/srb/bump.rb#10 class Spoom::Cli::Srb::Bump < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # source://spoom//lib/spoom/cli/srb/bump.rb#50 + # : (?String directory) -> void + # + # source://spoom//lib/spoom/cli/srb/bump.rb#49 sig { params(directory: ::String).void } def bump(directory = T.unsafe(nil)); end def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - # source://spoom//lib/spoom/cli/srb/bump.rb#171 + # source://spoom//lib/spoom/cli/srb/bump.rb#170 def print_changes(files, command:, from: T.unsafe(nil), to: T.unsafe(nil), dry: T.unsafe(nil), path: T.unsafe(nil)); end - # source://spoom//lib/spoom/cli/srb/bump.rb#193 + # source://spoom//lib/spoom/cli/srb/bump.rb#192 def undo_changes(files, from_strictness); end end @@ -276,8 +352,11 @@ class Spoom::Cli::Srb::LSP < ::Thor def types(file, line, col); end end -# source://spoom//lib/spoom/cli/srb.rb#13 +# source://spoom//lib/spoom/cli/srb.rb#14 class Spoom::Cli::Srb::Main < ::Thor + # source://thor/1.3.2/lib/thor.rb#334 + def assertions(*args); end + # source://thor/1.3.2/lib/thor.rb#334 def bump(*args); end @@ -301,18 +380,21 @@ class Spoom::Cli::Srb::Sigs < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # source://spoom//lib/spoom/cli/srb/sigs.rb#45 - def collect_files(paths); end + # source://spoom//lib/spoom/cli/srb/sigs.rb#192 + def exec(context, command); end + + # source://spoom//lib/spoom/cli/srb/sigs.rb#63 + def export(output_path = T.unsafe(nil)); end def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - # source://spoom//lib/spoom/cli/srb/sigs.rb#32 + # source://spoom//lib/spoom/cli/srb/sigs.rb#44 def strip(*paths); end - # source://spoom//lib/spoom/cli/srb/sigs.rb#64 + # source://spoom//lib/spoom/cli/srb/sigs.rb#169 def transform_files(files, &block); end - # source://spoom//lib/spoom/cli/srb/sigs.rb#16 + # source://spoom//lib/spoom/cli/srb/sigs.rb#15 def translate(*paths); end end @@ -368,14 +450,18 @@ class Spoom::Color < ::T::Enum YELLOW = new end - # source://spoom//lib/spoom/colors.rb#32 + # : -> String + # + # source://spoom//lib/spoom/colors.rb#30 sig { returns(::String) } def ansi_code; end end -# source://spoom//lib/spoom/colors.rb#37 +# source://spoom//lib/spoom/colors.rb#35 module Spoom::Colorize - # source://spoom//lib/spoom/colors.rb#41 + # : (String string, *Color color) -> String + # + # source://spoom//lib/spoom/colors.rb#37 sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } def set_color(string, *color); end end @@ -386,6 +472,8 @@ end # It is used to manipulate files and run commands in the context of this directory. # # source://spoom//lib/spoom/context/bundle.rb#5 +# An abstraction to a Ruby project context +# A context maps to a directory in the file system. class Spoom::Context include ::Spoom::Context::Bundle include ::Spoom::Context::Exec @@ -397,14 +485,22 @@ class Spoom::Context # # The directory will not be created if it doesn't exist. # Call `#make!` to create it. + # : (String absolute_path) -> void + # + # @return [Context] a new instance of Context # - # source://spoom//lib/spoom/context.rb#51 + # source://spoom//lib/spoom/context.rb#47 + # Create a new context about `absolute_path` + # The directory will not be created if it doesn't exist. + # Call `#make!` to create it. sig { params(absolute_path: ::String).void } def initialize(absolute_path); end # The absolute path to the directory this context is about + # : String # - # source://spoom//lib/spoom/context.rb#44 + # source://spoom//lib/spoom/context.rb#40 + # The absolute path to the directory this context is about sig { returns(::String) } def absolute_path; end @@ -413,8 +509,12 @@ class Spoom::Context # # `name` is used as prefix to the temporary directory name. # The directory will be created if it doesn't exist. + # : (?String? name) -> instance # - # source://spoom//lib/spoom/context.rb#37 + # source://spoom//lib/spoom/context.rb#33 + # Create a new context in the system's temporary directory + # `name` is used as prefix to the temporary directory name. + # The directory will be created if it doesn't exist. sig { params(name: T.nilable(::String)).returns(T.attached_class) } def mktmp!(name = T.unsafe(nil)); end end @@ -427,63 +527,82 @@ module Spoom::Context::Bundle requires_ancestor { Spoom::Context } # Run a command with `bundle` in this context directory + # : (String command, ?version: String?, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/bundle.rb#33 + # source://spoom//lib/spoom/context/bundle.rb#32 + # Run a command with `bundle` in this context directory sig { params(command: ::String, version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def bundle(command, version: T.unsafe(nil), capture_err: T.unsafe(nil)); end # Run a command `bundle exec` in this context directory + # : (String command, ?version: String?, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/bundle.rb#46 + # source://spoom//lib/spoom/context/bundle.rb#45 + # Run a command `bundle exec` in this context directory sig { params(command: ::String, version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def bundle_exec(command, version: T.unsafe(nil), capture_err: T.unsafe(nil)); end # Run `bundle install` in this context directory + # : (?version: String?, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/bundle.rb#40 + # source://spoom//lib/spoom/context/bundle.rb#39 + # Run `bundle install` in this context directory sig { params(version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def bundle_install!(version: T.unsafe(nil), capture_err: T.unsafe(nil)); end # Get `gem` version from the `Gemfile.lock` content # # Returns `nil` if `gem` cannot be found in the Gemfile. + # : (String gem) -> Gem::Version? # - # source://spoom//lib/spoom/context/bundle.rb#62 + # source://spoom//lib/spoom/context/bundle.rb#61 + # Get `gem` version from the `Gemfile.lock` content + # Returns `nil` if `gem` cannot be found in the Gemfile. sig { params(gem: ::String).returns(T.nilable(::Gem::Version)) } def gem_version_from_gemfile_lock(gem); end - # source://spoom//lib/spoom/context/bundle.rb#51 + # : -> Hash[String, Bundler::LazySpecification] + # + # source://spoom//lib/spoom/context/bundle.rb#50 sig { returns(T::Hash[::String, ::Bundler::LazySpecification]) } def gemfile_lock_specs; end # Read the contents of the Gemfile in this context directory + # : -> String? # - # source://spoom//lib/spoom/context/bundle.rb#15 + # source://spoom//lib/spoom/context/bundle.rb#14 + # Read the contents of the Gemfile in this context directory sig { returns(T.nilable(::String)) } def read_gemfile; end # Read the contents of the Gemfile.lock in this context directory + # : -> String? # - # source://spoom//lib/spoom/context/bundle.rb#21 + # source://spoom//lib/spoom/context/bundle.rb#20 + # Read the contents of the Gemfile.lock in this context directory sig { returns(T.nilable(::String)) } def read_gemfile_lock; end # Set the `contents` of the Gemfile in this context directory + # : (String contents, ?append: bool) -> void # - # source://spoom//lib/spoom/context/bundle.rb#27 + # source://spoom//lib/spoom/context/bundle.rb#26 + # Set the `contents` of the Gemfile in this context directory sig { params(contents: ::String, append: T::Boolean).void } def write_gemfile!(contents, append: T.unsafe(nil)); end end # Execution features for a context # -# source://spoom//lib/spoom/context/exec.rb#27 +# source://spoom//lib/spoom/context/exec.rb#25 module Spoom::Context::Exec requires_ancestor { Spoom::Context } # Run a command in this context directory + # : (String command, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/exec.rb#35 + # source://spoom//lib/spoom/context/exec.rb#32 + # Run a command in this context directory sig { params(command: ::String, capture_err: T::Boolean).returns(::Spoom::ExecResult) } def exec(command, capture_err: T.unsafe(nil)); end end @@ -495,12 +614,16 @@ module Spoom::Context::FileSystem requires_ancestor { Spoom::Context } # Returns the absolute path to `relative_path` in the context's directory + # : (String relative_path) -> String # - # source://spoom//lib/spoom/context/file_system.rb#15 + # source://spoom//lib/spoom/context/file_system.rb#14 + # Returns the absolute path to `relative_path` in the context's directory sig { params(relative_path: ::String).returns(::String) } def absolute_path_to(relative_path); end - # source://spoom//lib/spoom/context/file_system.rb#53 + # : (?allow_extensions: Array[String], ?allow_mime_types: Array[String], ?exclude_patterns: Array[String]) -> Array[String] + # + # source://spoom//lib/spoom/context/file_system.rb#46 sig do params( allow_extensions: T::Array[::String], @@ -513,109 +636,148 @@ module Spoom::Context::FileSystem # Delete this context and its content # # Warning: it will `rm -rf` the context directory on the file system. + # : -> void # - # source://spoom//lib/spoom/context/file_system.rb#105 + # source://spoom//lib/spoom/context/file_system.rb#98 + # Delete this context and its content + # Warning: it will `rm -rf` the context directory on the file system. sig { void } def destroy!; end # Does the context directory at `absolute_path` exist and is a directory? + # : -> bool + # + # @return [Boolean] # - # source://spoom//lib/spoom/context/file_system.rb#21 + # source://spoom//lib/spoom/context/file_system.rb#20 + # Does the context directory at `absolute_path` exist and is a directory? sig { returns(T::Boolean) } def exist?; end # Does `relative_path` point to an existing file in this context directory? + # : (String relative_path) -> bool # - # source://spoom//lib/spoom/context/file_system.rb#65 + # @return [Boolean] + # + # source://spoom//lib/spoom/context/file_system.rb#58 + # Does `relative_path` point to an existing file in this context directory? sig { params(relative_path: ::String).returns(T::Boolean) } def file?(relative_path); end # List all files in this context matching `pattern` + # : (?String pattern) -> Array[String] # - # source://spoom//lib/spoom/context/file_system.rb#34 + # source://spoom//lib/spoom/context/file_system.rb#33 + # List all files in this context matching `pattern` sig { params(pattern: ::String).returns(T::Array[::String]) } def glob(pattern = T.unsafe(nil)); end # List all files at the top level of this context directory + # : -> Array[String] # - # source://spoom//lib/spoom/context/file_system.rb#42 + # source://spoom//lib/spoom/context/file_system.rb#41 + # List all files at the top level of this context directory sig { returns(T::Array[::String]) } def list; end # Create the context directory at `absolute_path` + # : -> void # - # source://spoom//lib/spoom/context/file_system.rb#27 + # source://spoom//lib/spoom/context/file_system.rb#26 + # Create the context directory at `absolute_path` sig { void } def mkdir!; end # Move the file or directory from `from_relative_path` to `to_relative_path` + # : (String from_relative_path, String to_relative_path) -> void # - # source://spoom//lib/spoom/context/file_system.rb#95 + # source://spoom//lib/spoom/context/file_system.rb#88 + # Move the file or directory from `from_relative_path` to `to_relative_path` sig { params(from_relative_path: ::String, to_relative_path: ::String).void } def move!(from_relative_path, to_relative_path); end # Return the contents of the file at `relative_path` in this context directory # # Will raise if the file doesn't exist. + # : (String relative_path) -> String # - # source://spoom//lib/spoom/context/file_system.rb#73 + # source://spoom//lib/spoom/context/file_system.rb#66 + # Return the contents of the file at `relative_path` in this context directory + # Will raise if the file doesn't exist. sig { params(relative_path: ::String).returns(::String) } def read(relative_path); end # Remove the path at `relative_path` (recursive + force) in this context directory + # : (String relative_path) -> void # - # source://spoom//lib/spoom/context/file_system.rb#89 + # source://spoom//lib/spoom/context/file_system.rb#82 + # Remove the path at `relative_path` (recursive + force) in this context directory sig { params(relative_path: ::String).void } def remove!(relative_path); end # Write `contents` in the file at `relative_path` in this context directory # # Append to the file if `append` is true. + # : (String relative_path, ?String contents, ?append: bool) -> void # - # source://spoom//lib/spoom/context/file_system.rb#81 + # source://spoom//lib/spoom/context/file_system.rb#74 + # Write `contents` in the file at `relative_path` in this context directory + # Append to the file if `append` is true. sig { params(relative_path: ::String, contents: ::String, append: T::Boolean).void } def write!(relative_path, contents = T.unsafe(nil), append: T.unsafe(nil)); end end # Git features for a context # -# source://spoom//lib/spoom/context/git.rb#35 +# source://spoom//lib/spoom/context/git.rb#31 module Spoom::Context::Git requires_ancestor { Spoom::Context } # Run a command prefixed by `git` in this context directory + # : (String command) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#43 + # source://spoom//lib/spoom/context/git.rb#38 + # Run a command prefixed by `git` in this context directory sig { params(command: ::String).returns(::Spoom::ExecResult) } def git(command); end # Run `git checkout` in this context directory + # : (?ref: String) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#62 + # source://spoom//lib/spoom/context/git.rb#57 + # Run `git checkout` in this context directory sig { params(ref: ::String).returns(::Spoom::ExecResult) } def git_checkout!(ref: T.unsafe(nil)); end # Run `git checkout -b ` in this context directory + # : (String branch_name, ?ref: String?) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#68 + # source://spoom//lib/spoom/context/git.rb#63 + # Run `git checkout -b ` in this context directory sig { params(branch_name: ::String, ref: T.nilable(::String)).returns(::Spoom::ExecResult) } def git_checkout_new_branch!(branch_name, ref: T.unsafe(nil)); end # Run `git add . && git commit` in this context directory + # : (?message: String, ?time: Time, ?allow_empty: bool) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#78 + # source://spoom//lib/spoom/context/git.rb#73 + # Run `git add . && git commit` in this context directory sig { params(message: ::String, time: ::Time, allow_empty: T::Boolean).returns(::Spoom::ExecResult) } def git_commit!(message: T.unsafe(nil), time: T.unsafe(nil), allow_empty: T.unsafe(nil)); end # Get the current git branch in this context directory + # : -> String? # - # source://spoom//lib/spoom/context/git.rb#89 + # source://spoom//lib/spoom/context/git.rb#84 + # Get the current git branch in this context directory sig { returns(T.nilable(::String)) } def git_current_branch; end # Run `git diff` in this context directory + # : (*String arg) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#98 + # source://spoom//lib/spoom/context/git.rb#93 + # Run `git diff` in this context directory sig { params(arg: ::String).returns(::Spoom::ExecResult) } def git_diff(*arg); end @@ -623,34 +785,50 @@ module Spoom::Context::Git # # Warning: passing a branch will run `git init -b ` which is only available in git 2.28+. # In older versions, use `git_init!` followed by `git("checkout -b ")`. + # : (?branch: String?) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#52 + # source://spoom//lib/spoom/context/git.rb#47 + # Run `git init` in this context directory + # Warning: passing a branch will run `git init -b ` which is only available in git 2.28+. + # In older versions, use `git_init!` followed by `git("checkout -b ")`. sig { params(branch: T.nilable(::String)).returns(::Spoom::ExecResult) } def git_init!(branch: T.unsafe(nil)); end # Get the last commit in the currently checked out branch + # : (?short_sha: bool) -> Spoom::Git::Commit? # - # source://spoom//lib/spoom/context/git.rb#104 + # source://spoom//lib/spoom/context/git.rb#99 + # Get the last commit in the currently checked out branch sig { params(short_sha: T::Boolean).returns(T.nilable(::Spoom::Git::Commit)) } def git_last_commit(short_sha: T.unsafe(nil)); end - # source://spoom//lib/spoom/context/git.rb#115 + # : (*String arg) -> ExecResult + # + # source://spoom//lib/spoom/context/git.rb#110 sig { params(arg: ::String).returns(::Spoom::ExecResult) } def git_log(*arg); end # Run `git push ` in this context directory + # : (String remote, String ref, ?force: bool) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#121 + # source://spoom//lib/spoom/context/git.rb#116 + # Run `git push ` in this context directory sig { params(remote: ::String, ref: ::String, force: T::Boolean).returns(::Spoom::ExecResult) } def git_push!(remote, ref, force: T.unsafe(nil)); end - # source://spoom//lib/spoom/context/git.rb#126 + # : (*String arg) -> ExecResult + # + # source://spoom//lib/spoom/context/git.rb#121 sig { params(arg: ::String).returns(::Spoom::ExecResult) } def git_show(*arg); end # Is there uncommitted changes in this context directory? + # : (?path: String) -> bool + # + # @return [Boolean] # - # source://spoom//lib/spoom/context/git.rb#132 + # source://spoom//lib/spoom/context/git.rb#127 + # Is there uncommitted changes in this context directory? sig { params(path: ::String).returns(T::Boolean) } def git_workdir_clean?(path: T.unsafe(nil)); end end @@ -662,54 +840,74 @@ module Spoom::Context::Sorbet requires_ancestor { Spoom::Context } # Does this context has a `sorbet/config` file? + # : -> bool + # + # @return [Boolean] # - # source://spoom//lib/spoom/context/sorbet.rb#119 + # source://spoom//lib/spoom/context/sorbet.rb#106 + # Does this context has a `sorbet/config` file? sig { returns(T::Boolean) } def has_sorbet_config?; end # Read the strictness sigil from the file at `relative_path` (returns `nil` if no sigil) + # : (String relative_path) -> String? # - # source://spoom//lib/spoom/context/sorbet.rb#142 + # source://spoom//lib/spoom/context/sorbet.rb#129 + # Read the strictness sigil from the file at `relative_path` (returns `nil` if no sigil) sig { params(relative_path: ::String).returns(T.nilable(::String)) } def read_file_strictness(relative_path); end # Read the contents of `sorbet/config` in this context directory + # : -> String # - # source://spoom//lib/spoom/context/sorbet.rb#130 + # source://spoom//lib/spoom/context/sorbet.rb#117 + # Read the contents of `sorbet/config` in this context directory sig { returns(::String) } def read_sorbet_config; end - # source://spoom//lib/spoom/context/sorbet.rb#124 + # : -> Spoom::Sorbet::Config + # + # source://spoom//lib/spoom/context/sorbet.rb#111 sig { returns(::Spoom::Sorbet::Config) } def sorbet_config; end # Get the commit introducing the `sorbet/config` file + # : -> Spoom::Git::Commit? # - # source://spoom//lib/spoom/context/sorbet.rb#148 + # source://spoom//lib/spoom/context/sorbet.rb#135 + # Get the commit introducing the `sorbet/config` file sig { returns(T.nilable(::Spoom::Git::Commit)) } def sorbet_intro_commit; end # Get the commit removing the `sorbet/config` file + # : -> Spoom::Git::Commit? # - # source://spoom//lib/spoom/context/sorbet.rb#160 + # source://spoom//lib/spoom/context/sorbet.rb#147 + # Get the commit removing the `sorbet/config` file sig { returns(T.nilable(::Spoom::Git::Commit)) } def sorbet_removal_commit; end # Run `bundle exec srb` in this context directory + # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/sorbet.rb#15 + # source://spoom//lib/spoom/context/sorbet.rb#14 + # Run `bundle exec srb` in this context directory sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def srb(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end # List all files typechecked by Sorbet from its `config` + # : (?with_config: Spoom::Sorbet::Config?, ?include_rbis: bool) -> Array[String] # - # source://spoom//lib/spoom/context/sorbet.rb#65 + # source://spoom//lib/spoom/context/sorbet.rb#58 + # List all files typechecked by Sorbet from its `config` sig { params(with_config: T.nilable(::Spoom::Sorbet::Config), include_rbis: T::Boolean).returns(T::Array[::String]) } def srb_files(with_config: T.unsafe(nil), include_rbis: T.unsafe(nil)); end # List all files typechecked by Sorbet from its `config` that matches `strictness` + # : (String strictness, ?with_config: Spoom::Sorbet::Config?, ?include_rbis: bool) -> Array[String] # - # source://spoom//lib/spoom/context/sorbet.rb#104 + # source://spoom//lib/spoom/context/sorbet.rb#91 + # List all files typechecked by Sorbet from its `config` that matches `strictness` sig do params( strictness: ::String, @@ -719,7 +917,9 @@ module Spoom::Context::Sorbet end def srb_files_with_strictness(strictness, with_config: T.unsafe(nil), include_rbis: T.unsafe(nil)); end - # source://spoom//lib/spoom/context/sorbet.rb#45 + # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> Hash[String, Integer]? + # + # source://spoom//lib/spoom/context/sorbet.rb#38 sig do params( arg: ::String, @@ -729,17 +929,23 @@ module Spoom::Context::Sorbet end def srb_metrics(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end - # source://spoom//lib/spoom/context/sorbet.rb#33 + # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> ExecResult + # + # source://spoom//lib/spoom/context/sorbet.rb#32 sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def srb_tc(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end - # source://spoom//lib/spoom/context/sorbet.rb#110 + # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> String? + # + # source://spoom//lib/spoom/context/sorbet.rb#97 sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(T.nilable(::String)) } def srb_version(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end # Set the `contents` of `sorbet/config` in this context directory + # : (String contents, ?append: bool) -> void # - # source://spoom//lib/spoom/context/sorbet.rb#136 + # source://spoom//lib/spoom/context/sorbet.rb#123 + # Set the `contents` of `sorbet/config` in this context directory sig { params(contents: ::String, append: T::Boolean).void } def write_sorbet_config!(contents, append: T.unsafe(nil)); end end @@ -747,11 +953,15 @@ end # source://spoom//lib/spoom/coverage/snapshot.rb#5 module Spoom::Coverage class << self - # source://spoom//lib/spoom/coverage.rb#103 + # : (Context context) -> FileTree + # + # source://spoom//lib/spoom/coverage.rb#101 sig { params(context: ::Spoom::Context).returns(::Spoom::FileTree) } def file_tree(context); end - # source://spoom//lib/spoom/coverage.rb#83 + # : (Context context, Array[Snapshot] snapshots, palette: D3::ColorPalette) -> Report + # + # source://spoom//lib/spoom/coverage.rb#81 sig do params( context: ::Spoom::Context, @@ -761,7 +971,9 @@ module Spoom::Coverage end def report(context, snapshots, palette:); end - # source://spoom//lib/spoom/coverage.rb#16 + # : (Context context, ?rbi: bool, ?sorbet_bin: String?) -> Snapshot + # + # source://spoom//lib/spoom/coverage.rb#14 sig do params( context: ::Spoom::Context, @@ -773,52 +985,69 @@ module Spoom::Coverage end end -# source://spoom//lib/spoom/coverage/report.rb#88 +# source://spoom//lib/spoom/coverage/report.rb#87 module Spoom::Coverage::Cards; end -# source://spoom//lib/spoom/coverage/report.rb#89 +# source://spoom//lib/spoom/coverage/report.rb#88 class Spoom::Coverage::Cards::Card < ::Spoom::Coverage::Template - # source://spoom//lib/spoom/coverage/report.rb#98 + # : (?template: String, ?title: String?, ?body: String?) -> void + # + # @return [Card] a new instance of Card + # + # source://spoom//lib/spoom/coverage/report.rb#97 sig { params(template: ::String, title: T.nilable(::String), body: T.nilable(::String)).void } def initialize(template: T.unsafe(nil), title: T.unsafe(nil), body: T.unsafe(nil)); end - # @return [String, nil] + # : String? # - # source://spoom//lib/spoom/coverage/report.rb#95 + # source://spoom//lib/spoom/coverage/report.rb#94 + # @return [String, nil] def body; end - # source://spoom//lib/spoom/coverage/report.rb#95 + # : String? + # + # source://spoom//lib/spoom/coverage/report.rb#94 sig { returns(T.nilable(::String)) } def title; end end -# source://spoom//lib/spoom/coverage/report.rb#92 +# source://spoom//lib/spoom/coverage/report.rb#91 Spoom::Coverage::Cards::Card::TEMPLATE = T.let(T.unsafe(nil), String) # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom//lib/spoom/coverage/report.rb#105 +# source://spoom//lib/spoom/coverage/report.rb#104 class Spoom::Coverage::Cards::Erb < ::Spoom::Coverage::Cards::Card abstract! - # source://spoom//lib/spoom/coverage/report.rb#112 + # : -> void + # + # @return [Erb] a new instance of Erb + # + # source://spoom//lib/spoom/coverage/report.rb#110 sig { void } def initialize; end # @abstract # - # source://spoom//lib/spoom/coverage/report.rb#120 + # source://spoom//lib/spoom/coverage/report.rb#119 sig { abstract.returns(::String) } def erb; end - # source://spoom//lib/spoom/coverage/report.rb#115 + # : -> String + # + # source://spoom//lib/spoom/coverage/report.rb#114 sig { override.returns(::String) } def html; end end -# source://spoom//lib/spoom/coverage/report.rb#153 +# source://spoom//lib/spoom/coverage/report.rb#150 class Spoom::Coverage::Cards::Map < ::Spoom::Coverage::Cards::Card - # source://spoom//lib/spoom/coverage/report.rb#164 + # : (file_tree: FileTree, nodes_strictnesses: Hash[FileTree::Node, String?], nodes_strictness_scores: Hash[FileTree::Node, Float], ?title: String) -> void + # + # @return [Map] a new instance of Map + # + # source://spoom//lib/spoom/coverage/report.rb#152 sig do params( file_tree: ::Spoom::FileTree, @@ -830,88 +1059,134 @@ class Spoom::Coverage::Cards::Map < ::Spoom::Coverage::Cards::Card def initialize(file_tree:, nodes_strictnesses:, nodes_strictness_scores:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#123 +# source://spoom//lib/spoom/coverage/report.rb#122 class Spoom::Coverage::Cards::Snapshot < ::Spoom::Coverage::Cards::Card - # source://spoom//lib/spoom/coverage/report.rb#132 + # : (snapshot: Coverage::Snapshot, ?title: String) -> void + # + # @return [Snapshot] a new instance of Snapshot + # + # source://spoom//lib/spoom/coverage/report.rb#129 sig { params(snapshot: ::Spoom::Coverage::Snapshot, title: ::String).void } def initialize(snapshot:, title: T.unsafe(nil)); end - # source://spoom//lib/spoom/coverage/report.rb#143 + # : -> D3::Pie::Calls + # + # source://spoom//lib/spoom/coverage/report.rb#140 sig { returns(::Spoom::Coverage::D3::Pie::Calls) } def pie_calls; end - # source://spoom//lib/spoom/coverage/report.rb#138 + # : -> D3::Pie::Sigils + # + # source://spoom//lib/spoom/coverage/report.rb#135 sig { returns(::Spoom::Coverage::D3::Pie::Sigils) } def pie_sigils; end - # source://spoom//lib/spoom/coverage/report.rb#148 + # : -> D3::Pie::Sigs + # + # source://spoom//lib/spoom/coverage/report.rb#145 sig { returns(::Spoom::Coverage::D3::Pie::Sigs) } def pie_sigs; end - # source://spoom//lib/spoom/coverage/report.rb#129 + # : Coverage::Snapshot + # + # source://spoom//lib/spoom/coverage/report.rb#126 sig { returns(::Spoom::Coverage::Snapshot) } def snapshot; end end -# source://spoom//lib/spoom/coverage/report.rb#126 +# source://spoom//lib/spoom/coverage/report.rb#123 Spoom::Coverage::Cards::Snapshot::TEMPLATE = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/coverage/report.rb#240 +# source://spoom//lib/spoom/coverage/report.rb#214 class Spoom::Coverage::Cards::SorbetIntro < ::Spoom::Coverage::Cards::Erb - # source://spoom//lib/spoom/coverage/report.rb#244 + # : (?sorbet_intro_commit: String?, ?sorbet_intro_date: Time?) -> void + # + # @return [SorbetIntro] a new instance of SorbetIntro + # + # source://spoom//lib/spoom/coverage/report.rb#216 sig { params(sorbet_intro_commit: T.nilable(::String), sorbet_intro_date: T.nilable(::Time)).void } def initialize(sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end - # source://spoom//lib/spoom/coverage/report.rb#250 + # : -> String + # + # source://spoom//lib/spoom/coverage/report.rb#223 sig { override.returns(::String) } def erb; end end -# source://spoom//lib/spoom/coverage/report.rb#177 +# source://spoom//lib/spoom/coverage/report.rb#165 class Spoom::Coverage::Cards::Timeline < ::Spoom::Coverage::Cards::Card - # source://spoom//lib/spoom/coverage/report.rb#181 + # : (title: String, timeline: D3::Timeline) -> void + # + # @return [Timeline] a new instance of Timeline + # + # source://spoom//lib/spoom/coverage/report.rb#167 sig { params(title: ::String, timeline: ::Spoom::Coverage::D3::Timeline).void } def initialize(title:, timeline:); end end -# source://spoom//lib/spoom/coverage/report.rb#194 +# source://spoom//lib/spoom/coverage/report.rb#178 class Spoom::Coverage::Cards::Timeline::Calls < ::Spoom::Coverage::Cards::Timeline - # source://spoom//lib/spoom/coverage/report.rb#198 + # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void + # + # @return [Calls] a new instance of Calls + # + # source://spoom//lib/spoom/coverage/report.rb#180 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#212 +# source://spoom//lib/spoom/coverage/report.rb#192 class Spoom::Coverage::Cards::Timeline::RBIs < ::Spoom::Coverage::Cards::Timeline - # source://spoom//lib/spoom/coverage/report.rb#216 + # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void + # + # @return [RBIs] a new instance of RBIs + # + # source://spoom//lib/spoom/coverage/report.rb#194 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#230 +# source://spoom//lib/spoom/coverage/report.rb#206 class Spoom::Coverage::Cards::Timeline::Runtimes < ::Spoom::Coverage::Cards::Timeline - # source://spoom//lib/spoom/coverage/report.rb#234 + # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void + # + # @return [Runtimes] a new instance of Runtimes + # + # source://spoom//lib/spoom/coverage/report.rb#208 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#185 +# source://spoom//lib/spoom/coverage/report.rb#171 class Spoom::Coverage::Cards::Timeline::Sigils < ::Spoom::Coverage::Cards::Timeline - # source://spoom//lib/spoom/coverage/report.rb#189 + # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void + # + # @return [Sigils] a new instance of Sigils + # + # source://spoom//lib/spoom/coverage/report.rb#173 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#203 +# source://spoom//lib/spoom/coverage/report.rb#185 class Spoom::Coverage::Cards::Timeline::Sigs < ::Spoom::Coverage::Cards::Timeline - # source://spoom//lib/spoom/coverage/report.rb#207 + # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void + # + # @return [Sigs] a new instance of Sigs + # + # source://spoom//lib/spoom/coverage/report.rb#187 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#221 +# source://spoom//lib/spoom/coverage/report.rb#199 class Spoom::Coverage::Cards::Timeline::Versions < ::Spoom::Coverage::Cards::Timeline - # source://spoom//lib/spoom/coverage/report.rb#225 + # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void + # + # @return [Versions] a new instance of Versions + # + # source://spoom//lib/spoom/coverage/report.rb#201 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end @@ -919,11 +1194,15 @@ end # source://spoom//lib/spoom/coverage/d3/base.rb#6 module Spoom::Coverage::D3 class << self - # source://spoom//lib/spoom/coverage/d3.rb#61 + # : (ColorPalette palette) -> String + # + # source://spoom//lib/spoom/coverage/d3.rb#59 sig { params(palette: ::Spoom::Coverage::D3::ColorPalette).returns(::String) } def header_script(palette); end - # source://spoom//lib/spoom/coverage/d3.rb#21 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3.rb#19 sig { returns(::String) } def header_style; end end @@ -935,34 +1214,48 @@ end class Spoom::Coverage::D3::Base abstract! + # : (String id, untyped data) -> void + # + # @return [Base] a new instance of Base + # # source://spoom//lib/spoom/coverage/d3/base.rb#17 sig { params(id: ::String, data: T.untyped).void } def initialize(id, data); end - # source://spoom//lib/spoom/coverage/d3/base.rb#37 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/base.rb#35 sig { returns(::String) } def html; end + # : String + # # source://spoom//lib/spoom/coverage/d3/base.rb#14 sig { returns(::String) } def id; end # @abstract # - # source://spoom//lib/spoom/coverage/d3/base.rb#50 + # source://spoom//lib/spoom/coverage/d3/base.rb#48 sig { abstract.returns(::String) } def script; end - # source://spoom//lib/spoom/coverage/d3/base.rb#45 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/base.rb#43 sig { returns(::String) } def tooltip; end class << self - # source://spoom//lib/spoom/coverage/d3/base.rb#31 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/base.rb#29 sig { returns(::String) } def header_script; end - # source://spoom//lib/spoom/coverage/d3/base.rb#26 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/base.rb#24 sig { returns(::String) } def header_style; end end @@ -985,24 +1278,34 @@ Spoom::Coverage::D3::COLOR_TRUE = T.let(T.unsafe(nil), String) # source://spoom//lib/spoom/coverage/d3/circle_map.rb#9 class Spoom::Coverage::D3::CircleMap < ::Spoom::Coverage::D3::Base - # source://spoom//lib/spoom/coverage/d3/circle_map.rb#59 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#58 sig { override.returns(::String) } def script; end class << self - # source://spoom//lib/spoom/coverage/d3/circle_map.rb#40 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#38 sig { returns(::String) } def header_script; end - # source://spoom//lib/spoom/coverage/d3/circle_map.rb#14 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#12 sig { returns(::String) } def header_style; end end end -# source://spoom//lib/spoom/coverage/d3/circle_map.rb#148 +# source://spoom//lib/spoom/coverage/d3/circle_map.rb#147 class Spoom::Coverage::D3::CircleMap::Sigils < ::Spoom::Coverage::D3::CircleMap - # source://spoom//lib/spoom/coverage/d3/circle_map.rb#159 + # : (String id, FileTree file_tree, Hash[FileTree::Node, String?] nodes_strictnesses, Hash[FileTree::Node, Float] nodes_scores) -> void + # + # @return [Sigils] a new instance of Sigils + # + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#149 sig do params( id: ::String, @@ -1013,12 +1316,14 @@ class Spoom::Coverage::D3::CircleMap::Sigils < ::Spoom::Coverage::D3::CircleMap end def initialize(id, file_tree, nodes_strictnesses, nodes_scores); end - # source://spoom//lib/spoom/coverage/d3/circle_map.rb#166 + # : (FileTree::Node node) -> Hash[Symbol, untyped] + # + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#156 sig { params(node: ::Spoom::FileTree::Node).returns(T::Hash[::Symbol, T.untyped]) } def tree_node_to_json(node); end end -# source://spoom//lib/spoom/coverage/d3.rb#103 +# source://spoom//lib/spoom/coverage/d3.rb#101 class Spoom::Coverage::D3::ColorPalette < ::T::Struct prop :ignore, ::String prop :false, ::String @@ -1027,7 +1332,7 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct prop :strong, ::String class << self - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end end end @@ -1038,54 +1343,82 @@ end class Spoom::Coverage::D3::Pie < ::Spoom::Coverage::D3::Base abstract! - # source://spoom//lib/spoom/coverage/d3/pie.rb#16 + # : (String id, String title, untyped data) -> void + # + # @return [Pie] a new instance of Pie + # + # source://spoom//lib/spoom/coverage/d3/pie.rb#15 sig { params(id: ::String, title: ::String, data: T.untyped).void } def initialize(id, title, data); end - # source://spoom//lib/spoom/coverage/d3/pie.rb#56 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/pie.rb#54 sig { override.returns(::String) } def script; end class << self - # source://spoom//lib/spoom/coverage/d3/pie.rb#43 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/pie.rb#40 sig { returns(::String) } def header_script; end - # source://spoom//lib/spoom/coverage/d3/pie.rb#25 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/pie.rb#22 sig { returns(::String) } def header_style; end end end -# source://spoom//lib/spoom/coverage/d3/pie.rb#141 +# source://spoom//lib/spoom/coverage/d3/pie.rb#138 class Spoom::Coverage::D3::Pie::Calls < ::Spoom::Coverage::D3::Pie - # source://spoom//lib/spoom/coverage/d3/pie.rb#145 + # : (String id, String title, Snapshot snapshot) -> void + # + # @return [Calls] a new instance of Calls + # + # source://spoom//lib/spoom/coverage/d3/pie.rb#140 sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } def initialize(id, title, snapshot); end - # source://spoom//lib/spoom/coverage/d3/pie.rb#150 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/pie.rb#146 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/pie.rb#123 +# source://spoom//lib/spoom/coverage/d3/pie.rb#121 class Spoom::Coverage::D3::Pie::Sigils < ::Spoom::Coverage::D3::Pie - # source://spoom//lib/spoom/coverage/d3/pie.rb#127 + # : (String id, String title, Snapshot snapshot) -> void + # + # @return [Sigils] a new instance of Sigils + # + # source://spoom//lib/spoom/coverage/d3/pie.rb#123 sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } def initialize(id, title, snapshot); end - # source://spoom//lib/spoom/coverage/d3/pie.rb#132 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/pie.rb#129 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/pie.rb#159 +# source://spoom//lib/spoom/coverage/d3/pie.rb#155 class Spoom::Coverage::D3::Pie::Sigs < ::Spoom::Coverage::D3::Pie - # source://spoom//lib/spoom/coverage/d3/pie.rb#163 + # : (String id, String title, Snapshot snapshot) -> void + # + # @return [Sigs] a new instance of Sigs + # + # source://spoom//lib/spoom/coverage/d3/pie.rb#157 sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } def initialize(id, title, snapshot); end - # source://spoom//lib/spoom/coverage/d3/pie.rb#172 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/pie.rb#167 sig { override.returns(::String) } def tooltip; end end @@ -1096,215 +1429,313 @@ end class Spoom::Coverage::D3::Timeline < ::Spoom::Coverage::D3::Base abstract! - # source://spoom//lib/spoom/coverage/d3/timeline.rb#16 + # : (String id, untyped data, Array[String] keys) -> void + # + # @return [Timeline] a new instance of Timeline + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#15 sig { params(id: ::String, data: T.untyped, keys: T::Array[::String]).void } def initialize(id, data, keys); end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#187 + # : (y: String, ?color: String, ?curve: String) -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#185 sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) } def area(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#203 + # : (y: String, ?color: String, ?curve: String) -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#201 sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) } def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end # @abstract # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#126 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#124 sig { abstract.returns(::String) } def plot; end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#217 + # : (y: String) -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#215 sig { params(y: ::String).returns(::String) } def points(y:); end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#101 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#99 sig { override.returns(::String) } def script; end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#129 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#127 sig { returns(::String) } def x_scale; end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#145 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#143 sig { returns(::String) } def x_ticks; end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#158 + # : (min: String, max: String, ticks: String) -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#156 sig { params(min: ::String, max: ::String, ticks: ::String).returns(::String) } def y_scale(min:, max:, ticks:); end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#174 + # : (ticks: String, format: String, padding: Integer) -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#172 sig { params(ticks: ::String, format: ::String, padding: ::Integer).returns(::String) } def y_ticks(ticks:, format:, padding:); end class << self - # source://spoom//lib/spoom/coverage/d3/timeline.rb#79 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#76 sig { returns(::String) } def header_script; end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#25 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#22 sig { returns(::String) } def header_style; end end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#448 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#447 class Spoom::Coverage::D3::Timeline::Calls < ::Spoom::Coverage::D3::Timeline::Stacked - # source://spoom//lib/spoom/coverage/d3/timeline.rb#452 + # : (String id, Array[Snapshot] snapshots) -> void + # + # @return [Calls] a new instance of Calls + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#449 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#466 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#464 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#505 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#502 class Spoom::Coverage::D3::Timeline::RBIs < ::Spoom::Coverage::D3::Timeline::Stacked - # source://spoom//lib/spoom/coverage/d3/timeline.rb#509 + # : (String id, Array[Snapshot] snapshots) -> void + # + # @return [RBIs] a new instance of RBIs + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#504 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#577 + # : (y: String, ?color: String, ?curve: String) -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#575 sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) } def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#617 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#616 sig { override.returns(::String) } def plot; end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#537 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#534 sig { override.returns(::String) } def script; end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#523 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#519 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#282 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#280 class Spoom::Coverage::D3::Timeline::Runtimes < ::Spoom::Coverage::D3::Timeline - # source://spoom//lib/spoom/coverage/d3/timeline.rb#286 + # : (String id, Array[Snapshot] snapshots) -> void + # + # @return [Runtimes] a new instance of Runtimes + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#282 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#311 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#309 sig { override.returns(::String) } def plot; end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#298 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#295 sig { override.returns(::String) } def tooltip; end end # source://spoom//lib/spoom/coverage/d3/timeline.rb#421 class Spoom::Coverage::D3::Timeline::Sigils < ::Spoom::Coverage::D3::Timeline::Stacked - # source://spoom//lib/spoom/coverage/d3/timeline.rb#425 + # : (String id, Array[Snapshot] snapshots) -> void + # + # @return [Sigils] a new instance of Sigils + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#423 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#439 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#438 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#475 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#473 class Spoom::Coverage::D3::Timeline::Sigs < ::Spoom::Coverage::D3::Timeline::Stacked - # source://spoom//lib/spoom/coverage/d3/timeline.rb#479 + # : (String id, Array[Snapshot] snapshots) -> void + # + # @return [Sigs] a new instance of Sigs + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#475 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#496 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#493 sig { override.returns(::String) } def tooltip; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom//lib/spoom/coverage/d3/timeline.rb#329 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#327 class Spoom::Coverage::D3::Timeline::Stacked < ::Spoom::Coverage::D3::Timeline abstract! + # : (y: String, ?color: String, ?curve: String) -> String + # # source://spoom//lib/spoom/coverage/d3/timeline.rb#388 sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) } def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#377 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#376 sig { override.returns(::String) } def plot; end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#336 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#334 sig { override.returns(::String) } def script; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#232 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#230 class Spoom::Coverage::D3::Timeline::Versions < ::Spoom::Coverage::D3::Timeline - # source://spoom//lib/spoom/coverage/d3/timeline.rb#236 + # : (String id, Array[Snapshot] snapshots) -> void + # + # @return [Versions] a new instance of Versions + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#232 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#263 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#261 sig { override.returns(::String) } def plot; end - # source://spoom//lib/spoom/coverage/d3/timeline.rb#249 + # : -> String + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#246 sig { override.returns(::String) } def tooltip; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom//lib/spoom/coverage/report.rb#38 +# source://spoom//lib/spoom/coverage/report.rb#37 class Spoom::Coverage::Page < ::Spoom::Coverage::Template abstract! - # source://spoom//lib/spoom/coverage/report.rb#53 + # : (title: String, palette: D3::ColorPalette, ?template: String) -> void + # + # @return [Page] a new instance of Page + # + # source://spoom//lib/spoom/coverage/report.rb#52 sig { params(title: ::String, palette: ::Spoom::Coverage::D3::ColorPalette, template: ::String).void } def initialize(title:, palette:, template: T.unsafe(nil)); end - # source://spoom//lib/spoom/coverage/report.rb#75 + # : -> String + # + # source://spoom//lib/spoom/coverage/report.rb#74 sig { returns(::String) } def body_html; end # @abstract # - # source://spoom//lib/spoom/coverage/report.rb#80 + # source://spoom//lib/spoom/coverage/report.rb#79 sig { abstract.returns(T::Array[::Spoom::Coverage::Cards::Card]) } def cards; end - # source://spoom//lib/spoom/coverage/report.rb#83 + # : -> String + # + # source://spoom//lib/spoom/coverage/report.rb#82 sig { returns(::String) } def footer_html; end - # source://spoom//lib/spoom/coverage/report.rb#70 + # : -> String + # + # source://spoom//lib/spoom/coverage/report.rb#69 sig { returns(::String) } def header_html; end - # source://spoom//lib/spoom/coverage/report.rb#65 + # : -> String + # + # source://spoom//lib/spoom/coverage/report.rb#64 sig { returns(::String) } def header_script; end - # source://spoom//lib/spoom/coverage/report.rb#60 + # : -> String + # + # source://spoom//lib/spoom/coverage/report.rb#59 sig { returns(::String) } def header_style; end - # source://spoom//lib/spoom/coverage/report.rb#50 + # : D3::ColorPalette + # + # source://spoom//lib/spoom/coverage/report.rb#49 sig { returns(::Spoom::Coverage::D3::ColorPalette) } def palette; end - # source://spoom//lib/spoom/coverage/report.rb#47 + # : String + # + # source://spoom//lib/spoom/coverage/report.rb#46 sig { returns(::String) } def title; end end -# source://spoom//lib/spoom/coverage/report.rb#44 +# source://spoom//lib/spoom/coverage/report.rb#43 Spoom::Coverage::Page::TEMPLATE = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/coverage/report.rb#261 +# source://spoom//lib/spoom/coverage/report.rb#234 class Spoom::Coverage::Report < ::Spoom::Coverage::Page - # source://spoom//lib/spoom/coverage/report.rb#276 + # : (project_name: String, palette: D3::ColorPalette, snapshots: Array[Snapshot], file_tree: FileTree, nodes_strictnesses: Hash[FileTree::Node, String?], nodes_strictness_scores: Hash[FileTree::Node, Float], ?sorbet_intro_commit: String?, ?sorbet_intro_date: Time?) -> void + # + # @return [Report] a new instance of Report + # + # source://spoom//lib/spoom/coverage/report.rb#236 sig do params( project_name: ::String, @@ -1319,11 +1750,15 @@ class Spoom::Coverage::Report < ::Spoom::Coverage::Page end def initialize(project_name:, palette:, snapshots:, file_tree:, nodes_strictnesses:, nodes_strictness_scores:, sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end - # source://spoom//lib/spoom/coverage/report.rb#308 + # : -> Array[Cards::Card] + # + # source://spoom//lib/spoom/coverage/report.rb#270 sig { override.returns(T::Array[::Spoom::Coverage::Cards::Card]) } def cards; end - # source://spoom//lib/spoom/coverage/report.rb#297 + # : -> String + # + # source://spoom//lib/spoom/coverage/report.rb#258 sig { override.returns(::String) } def header_html; end end @@ -1350,46 +1785,60 @@ class Spoom::Coverage::Snapshot < ::T::Struct prop :methods_without_sig_excluding_rbis, ::Integer, default: T.unsafe(nil) prop :sigils_excluding_rbis, T::Hash[::String, ::Integer], default: T.unsafe(nil) - # source://spoom//lib/spoom/coverage/snapshot.rb#33 + # : (?out: (IO | StringIO), ?colors: bool, ?indent_level: Integer) -> void + # + # source://spoom//lib/spoom/coverage/snapshot.rb#31 sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean, indent_level: ::Integer).void } def print(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end - # source://spoom//lib/spoom/coverage/snapshot.rb#39 + # : (*untyped arg) -> String + # + # source://spoom//lib/spoom/coverage/snapshot.rb#37 sig { params(arg: T.untyped).returns(::String) } def to_json(*arg); end class << self - # source://spoom//lib/spoom/coverage/snapshot.rb#47 + # : (String json) -> Snapshot + # + # source://spoom//lib/spoom/coverage/snapshot.rb#43 sig { params(json: ::String).returns(::Spoom::Coverage::Snapshot) } def from_json(json); end - # source://spoom//lib/spoom/coverage/snapshot.rb#52 + # : (Hash[String, untyped] obj) -> Snapshot + # + # source://spoom//lib/spoom/coverage/snapshot.rb#48 sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) } def from_obj(obj); end - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end end end # The strictness name as found in the Sorbet metrics file # -# source://spoom//lib/spoom/coverage/snapshot.rb#30 +# source://spoom//lib/spoom/coverage/snapshot.rb#28 Spoom::Coverage::Snapshot::STRICTNESSES = T.let(T.unsafe(nil), Array) -# source://spoom//lib/spoom/coverage/snapshot.rb#95 +# source://spoom//lib/spoom/coverage/snapshot.rb#91 class Spoom::Coverage::SnapshotPrinter < ::Spoom::Printer - # source://spoom//lib/spoom/coverage/snapshot.rb#99 + # : (Snapshot snapshot) -> void + # + # source://spoom//lib/spoom/coverage/snapshot.rb#93 sig { params(snapshot: ::Spoom::Coverage::Snapshot).void } def print_snapshot(snapshot); end private - # source://spoom//lib/spoom/coverage/snapshot.rb#158 + # : (Integer? value, Integer? total) -> String + # + # source://spoom//lib/spoom/coverage/snapshot.rb#152 sig { params(value: T.nilable(::Integer), total: T.nilable(::Integer)).returns(::String) } def percent(value, total); end - # source://spoom//lib/spoom/coverage/snapshot.rb#147 + # : (Hash[String, Integer] hash, Integer total) -> void + # + # source://spoom//lib/spoom/coverage/snapshot.rb#141 sig { params(hash: T::Hash[::String, ::Integer], total: ::Integer).void } def print_map(hash, total); end end @@ -1401,20 +1850,30 @@ class Spoom::Coverage::Template abstract! # Create a new template from an Erb file path + # : (template: String) -> void # - # source://spoom//lib/spoom/coverage/report.rb#18 + # @return [Template] a new instance of Template + # + # source://spoom//lib/spoom/coverage/report.rb#17 + # Create a new template from an Erb file path sig { params(template: ::String).void } def initialize(template:); end - # source://spoom//lib/spoom/coverage/report.rb#23 + # : -> String + # + # source://spoom//lib/spoom/coverage/report.rb#22 sig { returns(::String) } def erb; end - # source://spoom//lib/spoom/coverage/report.rb#33 + # : -> Binding + # + # source://spoom//lib/spoom/coverage/report.rb#32 sig { returns(::Binding) } def get_binding; end - # source://spoom//lib/spoom/coverage/report.rb#28 + # : -> String + # + # source://spoom//lib/spoom/coverage/report.rb#27 sig { returns(::String) } def html; end end @@ -1422,11 +1881,15 @@ end # source://spoom//lib/spoom/deadcode/erb.rb#27 module Spoom::Deadcode class << self - # source://spoom//lib/spoom/deadcode/plugins.rb#75 + # : (Context context) -> Array[singleton(Plugins::Base)] + # + # source://spoom//lib/spoom/deadcode/plugins.rb#73 sig { params(context: ::Spoom::Context).returns(T::Array[T.class_of(Spoom::Deadcode::Plugins::Base)]) } def load_custom_plugins(context); end - # source://spoom//lib/spoom/deadcode/plugins.rb#61 + # : (Context context) -> Set[singleton(Plugins::Base)] + # + # source://spoom//lib/spoom/deadcode/plugins.rb#59 sig { params(context: ::Spoom::Context).returns(T::Set[T.class_of(Spoom::Deadcode::Plugins::Base)]) } def plugins_from_gemfile_lock(context); end end @@ -1448,67 +1911,106 @@ class Spoom::Deadcode::Definition < ::T::Struct const :location, ::Spoom::Location const :status, ::Spoom::Deadcode::Definition::Status, default: T.unsafe(nil) - # source://spoom//lib/spoom/deadcode/definition.rb#78 + # : -> void + # + # source://spoom//lib/spoom/deadcode/definition.rb#76 sig { void } def alive!; end - # Status + # : -> bool + # + # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/definition.rb#73 + # source://spoom//lib/spoom/deadcode/definition.rb#71 + # Status sig { returns(T::Boolean) } def alive?; end - # Kind + # : -> bool + # + # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/definition.rb#41 + # source://spoom//lib/spoom/deadcode/definition.rb#39 + # Kind sig { returns(T::Boolean) } def attr_reader?; end - # source://spoom//lib/spoom/deadcode/definition.rb#46 + # : -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/definition.rb#44 sig { returns(T::Boolean) } def attr_writer?; end - # source://spoom//lib/spoom/deadcode/definition.rb#51 + # : -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/definition.rb#49 sig { returns(T::Boolean) } def class?; end - # source://spoom//lib/spoom/deadcode/definition.rb#56 + # : -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/definition.rb#54 sig { returns(T::Boolean) } def constant?; end - # source://spoom//lib/spoom/deadcode/definition.rb#83 + # : -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/definition.rb#81 sig { returns(T::Boolean) } def dead?; end - # source://spoom//lib/spoom/deadcode/definition.rb#93 + # : -> void + # + # source://spoom//lib/spoom/deadcode/definition.rb#91 sig { void } def ignored!; end - # source://spoom//lib/spoom/deadcode/definition.rb#88 + # : -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/definition.rb#86 sig { returns(T::Boolean) } def ignored?; end - # source://spoom//lib/spoom/deadcode/definition.rb#61 + # : -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/definition.rb#59 sig { returns(T::Boolean) } def method?; end - # source://spoom//lib/spoom/deadcode/definition.rb#66 + # : -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/definition.rb#64 sig { returns(T::Boolean) } def module?; end - # Utils + # : (*untyped args) -> String # - # source://spoom//lib/spoom/deadcode/definition.rb#100 + # source://spoom//lib/spoom/deadcode/definition.rb#98 + # Utils sig { params(args: T.untyped).returns(::String) } def to_json(*args); end class << self - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end end end -# source://spoom//lib/spoom/deadcode/definition.rb#10 +# source://spoom//lib/spoom/deadcode/definition.rb#8 class Spoom::Deadcode::Definition::Kind < ::T::Enum enums do AttrReader = new @@ -1520,7 +2022,7 @@ class Spoom::Deadcode::Definition::Kind < ::T::Enum end end -# source://spoom//lib/spoom/deadcode/definition.rb#21 +# source://spoom//lib/spoom/deadcode/definition.rb#19 class Spoom::Deadcode::Definition::Status < ::T::Enum enums do ALIVE = new @@ -1533,121 +2035,176 @@ end # # source://spoom//lib/spoom/deadcode/erb.rb#29 class Spoom::Deadcode::ERB < ::Erubi::Engine - # source://spoom//lib/spoom/deadcode/erb.rb#33 + # : (untyped input, ?untyped properties) -> void + # + # @return [ERB] a new instance of ERB + # + # source://spoom//lib/spoom/deadcode/erb.rb#31 sig { params(input: T.untyped, properties: T.untyped).void } def initialize(input, properties = T.unsafe(nil)); end private - # source://spoom//lib/spoom/deadcode/erb.rb#83 + # : (untyped code) -> void + # + # source://spoom//lib/spoom/deadcode/erb.rb#84 sig { override.params(code: T.untyped).void } def add_code(code); end + # : (untyped indicator, untyped code) -> void + # # source://spoom//lib/spoom/deadcode/erb.rb#66 sig { override.params(indicator: T.untyped, code: T.untyped).void } def add_expression(indicator, code); end - # source://spoom//lib/spoom/deadcode/erb.rb#89 + # : (untyped _) -> void + # + # source://spoom//lib/spoom/deadcode/erb.rb#91 sig { override.params(_: T.untyped).void } def add_postamble(_); end - # source://spoom//lib/spoom/deadcode/erb.rb#48 + # : (untyped text) -> void + # + # source://spoom//lib/spoom/deadcode/erb.rb#47 sig { override.params(text: T.untyped).void } def add_text(text); end - # source://spoom//lib/spoom/deadcode/erb.rb#95 + # : (untyped src) -> void + # + # source://spoom//lib/spoom/deadcode/erb.rb#97 sig { params(src: T.untyped).void } def flush_newline_if_pending(src); end end -# source://spoom//lib/spoom/deadcode/erb.rb#63 +# source://spoom//lib/spoom/deadcode/erb.rb#62 Spoom::Deadcode::ERB::BLOCK_EXPR = T.let(T.unsafe(nil), Regexp) # source://spoom//lib/spoom/deadcode/index.rb#6 class Spoom::Deadcode::Index - # source://spoom//lib/spoom/deadcode/index.rb#29 + # : (Model model) -> void + # + # @return [Index] a new instance of Index + # + # source://spoom//lib/spoom/deadcode/index.rb#25 sig { params(model: ::Spoom::Model).void } def initialize(model); end - # source://spoom//lib/spoom/deadcode/index.rb#219 + # : -> Array[Definition] + # + # source://spoom//lib/spoom/deadcode/index.rb#215 sig { returns(T::Array[::Spoom::Deadcode::Definition]) } def all_definitions; end - # source://spoom//lib/spoom/deadcode/index.rb#224 + # : -> Array[Model::Reference] + # + # source://spoom//lib/spoom/deadcode/index.rb#220 sig { returns(T::Array[::Spoom::Model::Reference]) } def all_references; end - # source://spoom//lib/spoom/deadcode/index.rb#99 + # : (Array[Plugins::Base] plugins) -> void + # + # source://spoom//lib/spoom/deadcode/index.rb#95 sig { params(plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void } def apply_plugins!(plugins); end - # source://spoom//lib/spoom/deadcode/index.rb#79 + # : (Definition definition) -> void + # + # source://spoom//lib/spoom/deadcode/index.rb#75 sig { params(definition: ::Spoom::Deadcode::Definition).void } def define(definition); end - # source://spoom//lib/spoom/deadcode/index.rb#23 + # : Hash[String, Array[Definition]] + # + # source://spoom//lib/spoom/deadcode/index.rb#19 sig { returns(T::Hash[::String, T::Array[::Spoom::Deadcode::Definition]]) } def definitions; end - # Utils + # : (String name) -> Array[Definition] # - # source://spoom//lib/spoom/deadcode/index.rb#214 + # source://spoom//lib/spoom/deadcode/index.rb#210 + # Utils sig { params(name: ::String).returns(T::Array[::Spoom::Deadcode::Definition]) } def definitions_for_name(name); end # Mark all definitions having a reference of the same name as `alive` # # To be called once all the files have been indexed and all the definitions and references discovered. + # : -> void # - # source://spoom//lib/spoom/deadcode/index.rb#122 + # source://spoom//lib/spoom/deadcode/index.rb#118 + # Mark all definitions having a reference of the same name as `alive` + # To be called once all the files have been indexed and all the definitions and references discovered. sig { void } def finalize!; end - # source://spoom//lib/spoom/deadcode/index.rb#94 + # : (Model::SymbolDef symbol_def) -> void + # + # source://spoom//lib/spoom/deadcode/index.rb#90 sig { params(symbol_def: ::Spoom::Model::SymbolDef).void } def ignore(symbol_def); end - # source://spoom//lib/spoom/deadcode/index.rb#50 + # : (String erb, file: String, ?plugins: Array[Plugins::Base]) -> void + # + # source://spoom//lib/spoom/deadcode/index.rb#46 sig { params(erb: ::String, file: ::String, plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void } def index_erb(erb, file:, plugins: T.unsafe(nil)); end - # Indexing + # : (String file, ?plugins: Array[Plugins::Base]) -> void # - # source://spoom//lib/spoom/deadcode/index.rb#39 + # source://spoom//lib/spoom/deadcode/index.rb#35 + # Indexing sig { params(file: ::String, plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void } def index_file(file, plugins: T.unsafe(nil)); end - # source://spoom//lib/spoom/deadcode/index.rb#55 + # : (String rb, file: String, ?plugins: Array[Plugins::Base]) -> void + # + # source://spoom//lib/spoom/deadcode/index.rb#51 sig { params(rb: ::String, file: ::String, plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void } def index_ruby(rb, file:, plugins: T.unsafe(nil)); end - # source://spoom//lib/spoom/deadcode/index.rb#20 + # : Model + # + # source://spoom//lib/spoom/deadcode/index.rb#16 sig { returns(::Spoom::Model) } def model; end - # source://spoom//lib/spoom/deadcode/index.rb#84 + # : (String name, Location location) -> void + # + # source://spoom//lib/spoom/deadcode/index.rb#80 sig { params(name: ::String, location: ::Spoom::Location).void } def reference_constant(name, location); end - # source://spoom//lib/spoom/deadcode/index.rb#89 + # : (String name, Location location) -> void + # + # source://spoom//lib/spoom/deadcode/index.rb#85 sig { params(name: ::String, location: ::Spoom::Location).void } def reference_method(name, location); end - # source://spoom//lib/spoom/deadcode/index.rb#26 + # : Hash[String, Array[Model::Reference]] + # + # source://spoom//lib/spoom/deadcode/index.rb#22 sig { returns(T::Hash[::String, T::Array[::Spoom::Model::Reference]]) } def references; end end -# source://spoom//lib/spoom/deadcode/index.rb#9 +# source://spoom//lib/spoom/deadcode/index.rb#7 class Spoom::Deadcode::Index::Error < ::Spoom::Error - # source://spoom//lib/spoom/deadcode/index.rb#13 + # : (String message, parent: Exception) -> void + # + # @return [Error] a new instance of Error + # + # source://spoom//lib/spoom/deadcode/index.rb#9 sig { params(message: ::String, parent: ::Exception).void } def initialize(message, parent:); end end # source://spoom//lib/spoom/deadcode/indexer.rb#6 class Spoom::Deadcode::Indexer < ::Spoom::Visitor - # source://spoom//lib/spoom/deadcode/indexer.rb#16 + # : (String path, Index index, ?plugins: Array[Plugins::Base]) -> void + # + # @return [Indexer] a new instance of Indexer + # + # source://spoom//lib/spoom/deadcode/indexer.rb#14 sig do params( path: ::String, @@ -1657,17 +2214,21 @@ class Spoom::Deadcode::Indexer < ::Spoom::Visitor end def initialize(path, index, plugins: T.unsafe(nil)); end - # source://spoom//lib/spoom/deadcode/indexer.rb#13 + # : Index + # + # source://spoom//lib/spoom/deadcode/indexer.rb#11 sig { returns(::Spoom::Deadcode::Index) } def index; end - # source://spoom//lib/spoom/deadcode/indexer.rb#10 + # : String + # + # source://spoom//lib/spoom/deadcode/indexer.rb#8 sig { returns(::String) } def path; end - # Visit + # : (Prism::CallNode node) -> void # - # source://spoom//lib/spoom/deadcode/indexer.rb#27 + # source://spoom//lib/spoom/deadcode/indexer.rb#26 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end end @@ -1680,30 +2241,38 @@ module Spoom::Deadcode::Plugins; end # source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#7 class Spoom::Deadcode::Plugins::ActionMailer < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#11 + # : (Send send) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#10 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end end # source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#7 class Spoom::Deadcode::Plugins::ActionMailerPreview < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#13 + # : (Model::Method definition) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#12 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end end # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#7 class Spoom::Deadcode::Plugins::ActionPack < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#31 + # : (Model::Method definition) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#30 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end + # : (Send send) -> void + # # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#39 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end end -# source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#12 +# source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#10 Spoom::Deadcode::Plugins::ActionPack::CALLBACKS = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/deadcode/plugins/active_job.rb#7 @@ -1711,30 +2280,36 @@ class Spoom::Deadcode::Plugins::ActiveJob < ::Spoom::Deadcode::Plugins::Base; en # source://spoom//lib/spoom/deadcode/plugins/active_model.rb#7 class Spoom::Deadcode::Plugins::ActiveModel < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/active_model.rb#14 + # : (Send send) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/active_model.rb#13 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end end # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#7 class Spoom::Deadcode::Plugins::ActiveRecord < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#74 + # : (Send send) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#73 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end end -# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#64 +# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#62 Spoom::Deadcode::Plugins::ActiveRecord::ARRAY_METHODS = T.let(T.unsafe(nil), Array) -# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#20 +# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#18 Spoom::Deadcode::Plugins::ActiveRecord::CALLBACKS = T.let(T.unsafe(nil), Array) -# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#49 +# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#47 Spoom::Deadcode::Plugins::ActiveRecord::CRUD_METHODS = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/deadcode/plugins/active_support.rb#7 class Spoom::Deadcode::Plugins::ActiveSupport < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/active_support.rb#22 + # : (Send send) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/active_support.rb#23 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end end @@ -1748,41 +2323,57 @@ Spoom::Deadcode::Plugins::ActiveSupport::SETUP_AND_TEARDOWN_METHODS = T.let(T.un class Spoom::Deadcode::Plugins::Base abstract! - # source://spoom//lib/spoom/deadcode/plugins/base.rb#132 + # : (Index index) -> void + # + # @return [Base] a new instance of Base + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#129 sig { params(index: ::Spoom::Deadcode::Index).void } def initialize(index); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#129 + # : Index + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#126 sig { returns(::Spoom::Deadcode::Index) } def index; end # Do not override this method, use `on_define_accessor` instead. + # : (Model::Attr definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#158 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#155 + # Do not override this method, use `on_define_accessor` instead. sig { params(definition: ::Spoom::Model::Attr).void } def internal_on_define_accessor(definition); end # Do not override this method, use `on_define_class` instead. + # : (Model::Class definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#182 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#179 + # Do not override this method, use `on_define_class` instead. sig { params(definition: ::Spoom::Model::Class).void } def internal_on_define_class(definition); end # Do not override this method, use `on_define_constant` instead. + # : (Model::Constant definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#212 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#209 + # Do not override this method, use `on_define_constant` instead. sig { params(definition: ::Spoom::Model::Constant).void } def internal_on_define_constant(definition); end # Do not override this method, use `on_define_method` instead. + # : (Model::Method definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#238 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#235 + # Do not override this method, use `on_define_method` instead. sig { params(definition: ::Spoom::Model::Method).void } def internal_on_define_method(definition); end # Do not override this method, use `on_define_module` instead. + # : (Model::Module definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#264 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#261 + # Do not override this method, use `on_define_module` instead. sig { params(definition: ::Spoom::Model::Module).void } def internal_on_define_module(definition); end @@ -1799,8 +2390,20 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ + # : (Model::Attr definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#152 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#149 + # Called when an accessor is defined. + # Will be called when the indexer processes a `attr_reader`, `attr_writer` or `attr_accessor` node. + # Note that when this method is called, the definition for the node has already been added to the index. + # It is still possible to ignore it from the plugin: + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # def on_define_accessor(definition) + # @index.ignore(definition) if symbol_def.name == "foo" + # end + # end + # ~~~ sig { params(definition: ::Spoom::Model::Attr).void } def on_define_accessor(definition); end @@ -1817,8 +2420,20 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ + # : (Model::Class definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#176 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#173 + # Called when a class is defined. + # Will be called when the indexer processes a `class` node. + # Note that when this method is called, the definition for the node has already been added to the index. + # It is still possible to ignore it from the plugin: + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # def on_define_class(definition) + # @index.ignore(definition) if definition.name == "Foo" + # end + # end + # ~~~ sig { params(definition: ::Spoom::Model::Class).void } def on_define_class(definition); end @@ -1835,8 +2450,20 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ + # : (Model::Constant definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#206 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#203 + # Called when a constant is defined. + # Will be called when the indexer processes a `CONST =` node. + # Note that when this method is called, the definition for the node has already been added to the index. + # It is still possible to ignore it from the plugin: + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # def on_define_constant(definition) + # @index.ignore(definition) if definition.name == "FOO" + # end + # end + # ~~~ sig { params(definition: ::Spoom::Model::Constant).void } def on_define_constant(definition); end @@ -1853,8 +2480,20 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ + # : (Model::Method definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#232 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#229 + # Called when a method is defined. + # Will be called when the indexer processes a `def` or `defs` node. + # Note that when this method is called, the definition for the node has already been added to the index. + # It is still possible to ignore it from the plugin: + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # def on_define_method(definition) + # @index.ignore(definition) if definition.name == "foo" + # end + # end + # ~~~ sig { params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end @@ -1871,8 +2510,20 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ + # : (Model::Module definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#258 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#255 + # Called when a module is defined. + # Will be called when the indexer processes a `module` node. + # Note that when this method is called, the definition for the node has already been added to the index. + # It is still possible to ignore it from the plugin: + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # def on_define_module(definition) + # @index.ignore(definition) if definition.name == "Foo" + # end + # end + # ~~~ sig { params(definition: ::Spoom::Model::Module).void } def on_define_module(definition); end @@ -1889,54 +2540,98 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ + # : (Send send) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#284 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#281 + # Called when a send is being processed + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # def on_send(send) + # return unless send.name == "dsl_method" + # return if send.args.empty? + # method_name = send.args.first.slice.delete_prefix(":") + # @index.reference_method(method_name, send.node, send.loc) + # end + # end + # ~~~ sig { params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end private - # Plugin utils + # : (String name) -> String # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#352 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#349 + # Plugin utils sig { params(name: ::String).returns(::String) } def camelize(name); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#301 + # : (String? name) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#298 sig { params(name: T.nilable(::String)).returns(T::Boolean) } def ignored_class_name?(name); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#320 + # : (String name) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#317 sig { params(name: ::String).returns(T::Boolean) } def ignored_constant_name?(name); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#325 + # : (String name) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#322 sig { params(name: ::String).returns(T::Boolean) } def ignored_method_name?(name); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#330 + # : (String name) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#327 sig { params(name: ::String).returns(T::Boolean) } def ignored_module_name?(name); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#335 + # : (String name, Symbol names_variable, Symbol patterns_variable) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#332 sig { params(name: ::String, names_variable: ::Symbol, patterns_variable: ::Symbol).returns(T::Boolean) } def ignored_name?(name, names_variable, patterns_variable); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#308 + # : (Model::Class definition) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#305 sig { params(definition: ::Spoom::Model::Class).returns(T::Boolean) } def ignored_subclass?(definition); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#340 + # : (Symbol const) -> Set[String] + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#337 sig { params(const: ::Symbol).returns(T::Set[::String]) } def names(const); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#345 + # : (Symbol const) -> Array[Regexp] + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#342 sig { params(const: ::Symbol).returns(T::Array[::Regexp]) } def patterns(const); end - # DSL support + # : (Model::Namespace definition, String superclass_name) -> bool + # + # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#293 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#290 + # DSL support sig { params(definition: ::Spoom::Model::Namespace, superclass_name: ::String).returns(T::Boolean) } def subclass_of?(definition, superclass_name); end @@ -1954,8 +2649,20 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ + # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#52 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#49 + # Mark classes directly subclassing a class matching `names` as ignored. + # Names can be either strings or regexps: + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # ignore_classes_inheriting_from( + # "Foo", + # "Bar", + # /Baz.*/, + # ) + # end + # ~~~ sig { params(names: T.any(::Regexp, ::String)).void } def ignore_classes_inheriting_from(*names); end @@ -1972,8 +2679,20 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ + # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#34 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#31 + # Mark classes matching `names` as ignored. + # Names can be either strings or regexps: + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # ignore_class_names( + # "Foo", + # "Bar", + # /Baz.*/, + # ) + # end + # ~~~ sig { params(names: T.any(::Regexp, ::String)).void } def ignore_classes_named(*names); end @@ -1990,8 +2709,20 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ + # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#70 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#67 + # Mark constants matching `names` as ignored. + # Names can be either strings or regexps: + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # ignore_class_names( + # "FOO", + # "BAR", + # /BAZ.*/, + # ) + # end + # ~~~ sig { params(names: T.any(::Regexp, ::String)).void } def ignore_constants_named(*names); end @@ -2008,8 +2739,20 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ + # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#88 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#85 + # Mark methods matching `names` as ignored. + # Names can be either strings or regexps: + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # ignore_method_names( + # "foo", + # "bar", + # /baz.*/, + # ) + # end + # ~~~ sig { params(names: T.any(::Regexp, ::String)).void } def ignore_methods_named(*names); end @@ -2026,14 +2769,28 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ + # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#106 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#103 + # Mark modules matching `names` as ignored. + # Names can be either strings or regexps: + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # ignore_class_names( + # "Foo", + # "Bar", + # /Baz.*/, + # ) + # end + # ~~~ sig { params(names: T.any(::Regexp, ::String)).void } def ignore_modules_named(*names); end private - # source://spoom//lib/spoom/deadcode/plugins/base.rb#113 + # : (Array[(String | Regexp)] names, Symbol names_variable, Symbol patterns_variable) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#110 sig do params( names: T::Array[T.any(::Regexp, ::String)], @@ -2047,17 +2804,23 @@ end # source://spoom//lib/spoom/deadcode/plugins/graphql.rb#7 class Spoom::Deadcode::Plugins::GraphQL < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/graphql.rb#28 + # : (Send send) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/graphql.rb#27 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end end # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#7 class Spoom::Deadcode::Plugins::Minitest < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#22 + # : (Model::Method definition) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#21 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end + # : (Send send) -> void + # # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#28 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end @@ -2065,16 +2828,24 @@ end # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#7 class Spoom::Deadcode::Plugins::Namespaces < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#11 + # : (Model::Class definition) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#10 sig { override.params(definition: ::Spoom::Model::Class).void } def on_define_class(definition); end + # : (Model::Module definition) -> void + # # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#16 sig { override.params(definition: ::Spoom::Model::Module).void } def on_define_module(definition); end private + # : (Model::Namespace symbol_def) -> bool + # + # @return [Boolean] + # # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#23 sig { params(symbol_def: ::Spoom::Model::Namespace).returns(T::Boolean) } def used_as_namespace?(symbol_def); end @@ -2085,16 +2856,24 @@ class Spoom::Deadcode::Plugins::RSpec < ::Spoom::Deadcode::Plugins::Base; end # source://spoom//lib/spoom/deadcode/plugins/rails.rb#7 class Spoom::Deadcode::Plugins::Rails < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/rails.rb#13 + # : (Model::Class definition) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/rails.rb#12 sig { override.params(definition: ::Spoom::Model::Class).void } def on_define_class(definition); end + # : (Model::Module definition) -> void + # # source://spoom//lib/spoom/deadcode/plugins/rails.rb#18 sig { override.params(definition: ::Spoom::Model::Module).void } def on_define_module(definition); end private + # : (Model::Namespace symbol_def) -> bool + # + # @return [Boolean] + # # source://spoom//lib/spoom/deadcode/plugins/rails.rb#25 sig { params(symbol_def: ::Spoom::Model::Namespace).returns(T::Boolean) } def file_is_helper?(symbol_def); end @@ -2105,76 +2884,108 @@ class Spoom::Deadcode::Plugins::Rake < ::Spoom::Deadcode::Plugins::Base; end # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#7 class Spoom::Deadcode::Plugins::Rubocop < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#18 + # : (Model::Constant definition) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#17 sig { override.params(definition: ::Spoom::Model::Constant).void } def on_define_constant(definition); end + # : (Model::Method definition) -> void + # # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#26 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end end -# source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#10 +# source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#8 Spoom::Deadcode::Plugins::Rubocop::RUBOCOP_CONSTANTS = T.let(T.unsafe(nil), Set) # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#7 class Spoom::Deadcode::Plugins::Ruby < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#24 + # : (Send send) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#23 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end private - # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#46 + # : (Send send, Prism::Node node) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#45 sig { params(send: ::Spoom::Deadcode::Send, node: ::Prism::Node).void } def reference_symbol_as_constant(send, node); end end # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#7 class Spoom::Deadcode::Plugins::Sorbet < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#11 + # : (Model::Constant definition) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#10 sig { override.params(definition: ::Spoom::Model::Constant).void } def on_define_constant(definition); end + # : (Model::Method definition) -> void + # # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#16 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end private - # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#28 + # : (Model::Constant definition) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#34 sig { params(definition: ::Spoom::Model::Constant).returns(T::Boolean) } def sorbet_enum_constant?(definition); end - # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#23 + # : (Model::Constant definition) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#29 sig { params(definition: ::Spoom::Model::Constant).returns(T::Boolean) } def sorbet_type_member?(definition); end end # source://spoom//lib/spoom/deadcode/plugins/thor.rb#7 class Spoom::Deadcode::Plugins::Thor < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/thor.rb#13 + # : (Model::Method definition) -> void + # + # source://spoom//lib/spoom/deadcode/plugins/thor.rb#12 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end end # source://spoom//lib/spoom/deadcode/remover.rb#6 class Spoom::Deadcode::Remover - # source://spoom//lib/spoom/deadcode/remover.rb#12 + # : (Context context) -> void + # + # @return [Remover] a new instance of Remover + # + # source://spoom//lib/spoom/deadcode/remover.rb#10 sig { params(context: ::Spoom::Context).void } def initialize(context); end - # source://spoom//lib/spoom/deadcode/remover.rb#17 + # : (Definition::Kind? kind, Location location) -> String + # + # source://spoom//lib/spoom/deadcode/remover.rb#15 sig { params(kind: T.nilable(::Spoom::Deadcode::Definition::Kind), location: ::Spoom::Location).returns(::String) } def remove_location(kind, location); end end -# source://spoom//lib/spoom/deadcode/remover.rb#9 +# source://spoom//lib/spoom/deadcode/remover.rb#7 class Spoom::Deadcode::Remover::Error < ::Spoom::Error; end -# source://spoom//lib/spoom/deadcode/remover.rb#372 +# source://spoom//lib/spoom/deadcode/remover.rb#362 class Spoom::Deadcode::Remover::NodeContext - # source://spoom//lib/spoom/deadcode/remover.rb#392 + # : (String source, Hash[Integer, Prism::Comment] comments, Prism::Node node, Array[Prism::Node] nesting) -> void + # + # @return [NodeContext] a new instance of NodeContext + # + # source://spoom//lib/spoom/deadcode/remover.rb#373 sig do params( source: ::String, @@ -2185,104 +2996,153 @@ class Spoom::Deadcode::Remover::NodeContext end def initialize(source, comments, node, nesting); end - # source://spoom//lib/spoom/deadcode/remover.rb#506 + # : (Prism::Node node) -> Array[Prism::Comment] + # + # source://spoom//lib/spoom/deadcode/remover.rb#487 sig { params(node: ::Prism::Node).returns(T::Array[::Prism::Comment]) } def attached_comments(node); end - # source://spoom//lib/spoom/deadcode/remover.rb#534 + # : -> Prism::CallNode? + # + # source://spoom//lib/spoom/deadcode/remover.rb#515 sig { returns(T.nilable(::Prism::CallNode)) } def attached_sig; end - # source://spoom//lib/spoom/deadcode/remover.rb#521 + # : -> Array[Prism::Node] + # + # source://spoom//lib/spoom/deadcode/remover.rb#502 sig { returns(T::Array[::Prism::Node]) } def attached_sigs; end - # source://spoom//lib/spoom/deadcode/remover.rb#376 + # : Hash[Integer, Prism::Comment] + # + # source://spoom//lib/spoom/deadcode/remover.rb#364 sig { returns(T::Hash[::Integer, ::Prism::Comment]) } def comments; end - # source://spoom//lib/spoom/deadcode/remover.rb#494 + # : (Integer start_line, Integer end_line) -> Array[Prism::Comment] + # + # source://spoom//lib/spoom/deadcode/remover.rb#475 sig { params(start_line: ::Integer, end_line: ::Integer).returns(T::Array[::Prism::Comment]) } def comments_between_lines(start_line, end_line); end - # source://spoom//lib/spoom/deadcode/remover.rb#382 + # : Array[Prism::Node] + # + # source://spoom//lib/spoom/deadcode/remover.rb#370 sig { returns(T::Array[::Prism::Node]) } def nesting; end - # @return [Array] + # : Array[Prism::Node] # - # source://spoom//lib/spoom/deadcode/remover.rb#382 + # source://spoom//lib/spoom/deadcode/remover.rb#370 + # @return [Array] def nesting=(_arg0); end - # source://spoom//lib/spoom/deadcode/remover.rb#444 + # : -> Prism::Node? + # + # source://spoom//lib/spoom/deadcode/remover.rb#425 sig { returns(T.nilable(::Prism::Node)) } def next_node; end + # : -> Array[Prism::Node] + # # @raise [Error] # - # source://spoom//lib/spoom/deadcode/remover.rb#433 + # source://spoom//lib/spoom/deadcode/remover.rb#414 sig { returns(T::Array[::Prism::Node]) } def next_nodes; end - # source://spoom//lib/spoom/deadcode/remover.rb#379 + # : Prism::Node + # + # source://spoom//lib/spoom/deadcode/remover.rb#367 sig { returns(::Prism::Node) } def node; end + # : -> NodeContext + # # @raise [Error] # - # source://spoom//lib/spoom/deadcode/remover.rb#408 + # source://spoom//lib/spoom/deadcode/remover.rb#389 sig { returns(::Spoom::Deadcode::Remover::NodeContext) } def parent_context; end + # : -> Prism::Node + # # @raise [Error] # - # source://spoom//lib/spoom/deadcode/remover.rb#400 + # source://spoom//lib/spoom/deadcode/remover.rb#381 sig { returns(::Prism::Node) } def parent_node; end - # source://spoom//lib/spoom/deadcode/remover.rb#428 + # : -> Prism::Node? + # + # source://spoom//lib/spoom/deadcode/remover.rb#409 sig { returns(T.nilable(::Prism::Node)) } def previous_node; end + # : -> Array[Prism::Node] + # # @raise [Error] # - # source://spoom//lib/spoom/deadcode/remover.rb#417 + # source://spoom//lib/spoom/deadcode/remover.rb#398 sig { returns(T::Array[::Prism::Node]) } def previous_nodes; end - # source://spoom//lib/spoom/deadcode/remover.rb#449 + # : -> NodeContext? + # + # source://spoom//lib/spoom/deadcode/remover.rb#430 sig { returns(T.nilable(::Spoom::Deadcode::Remover::NodeContext)) } def sclass_context; end - # source://spoom//lib/spoom/deadcode/remover.rb#482 + # : (Prism::Node? node) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/remover.rb#463 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def sorbet_extend_sig?(node); end - # source://spoom//lib/spoom/deadcode/remover.rb#477 + # : (Prism::Node? node) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/remover.rb#458 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def sorbet_signature?(node); end end -# source://spoom//lib/spoom/deadcode/remover.rb#549 +# source://spoom//lib/spoom/deadcode/remover.rb#530 class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Visitor - # source://spoom//lib/spoom/deadcode/remover.rb#621 + # : (Location location, Definition::Kind? kind) -> void + # + # @return [NodeFinder] a new instance of NodeFinder + # + # source://spoom//lib/spoom/deadcode/remover.rb#598 sig { params(location: ::Spoom::Location, kind: T.nilable(::Spoom::Deadcode::Definition::Kind)).void } def initialize(location, kind); end - # source://spoom//lib/spoom/deadcode/remover.rb#615 + # : Prism::Node? + # + # source://spoom//lib/spoom/deadcode/remover.rb#592 sig { returns(T.nilable(::Prism::Node)) } def node; end - # source://spoom//lib/spoom/deadcode/remover.rb#618 + # : Array[Prism::Node] + # + # source://spoom//lib/spoom/deadcode/remover.rb#595 sig { returns(T::Array[::Prism::Node]) } def nodes_nesting; end - # source://spoom//lib/spoom/deadcode/remover.rb#630 + # : (Prism::Node? node) -> void + # + # source://spoom//lib/spoom/deadcode/remover.rb#608 sig { override.params(node: T.nilable(::Prism::Node)).void } def visit(node); end class << self - # source://spoom//lib/spoom/deadcode/remover.rb#556 + # : (String source, Location location, Definition::Kind? kind) -> NodeContext + # + # source://spoom//lib/spoom/deadcode/remover.rb#533 sig do params( source: ::String, @@ -2292,15 +3152,23 @@ class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Visitor end def find(source, location, kind); end - # source://spoom//lib/spoom/deadcode/remover.rb#590 + # : (Prism::Node node, Definition::Kind kind) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/deadcode/remover.rb#567 sig { params(node: ::Prism::Node, kind: ::Spoom::Deadcode::Definition::Kind).returns(T::Boolean) } def node_match_kind?(node, kind); end end end -# source://spoom//lib/spoom/deadcode/remover.rb#29 +# source://spoom//lib/spoom/deadcode/remover.rb#27 class Spoom::Deadcode::Remover::NodeRemover - # source://spoom//lib/spoom/deadcode/remover.rb#36 + # : (String source, Definition::Kind? kind, Location location) -> void + # + # @return [NodeRemover] a new instance of NodeRemover + # + # source://spoom//lib/spoom/deadcode/remover.rb#32 sig do params( source: ::String, @@ -2310,37 +3178,53 @@ class Spoom::Deadcode::Remover::NodeRemover end def initialize(source, kind, location); end - # source://spoom//lib/spoom/deadcode/remover.rb#46 + # : -> void + # + # source://spoom//lib/spoom/deadcode/remover.rb#42 sig { void } def apply_edit; end - # source://spoom//lib/spoom/deadcode/remover.rb#33 + # : String + # + # source://spoom//lib/spoom/deadcode/remover.rb#29 sig { returns(::String) } def new_source; end private - # source://spoom//lib/spoom/deadcode/remover.rb#153 + # : (NodeContext context) -> void + # + # source://spoom//lib/spoom/deadcode/remover.rb#149 sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } def delete_attr_accessor(context); end - # source://spoom//lib/spoom/deadcode/remover.rb#331 + # : (Integer start_char, Integer end_char) -> void + # + # source://spoom//lib/spoom/deadcode/remover.rb#321 sig { params(start_char: ::Integer, end_char: ::Integer).void } def delete_chars(start_char, end_char); end - # source://spoom//lib/spoom/deadcode/remover.rb#73 + # : (NodeContext context) -> void + # + # source://spoom//lib/spoom/deadcode/remover.rb#69 sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } def delete_constant_assignment(context); end - # source://spoom//lib/spoom/deadcode/remover.rb#324 + # : (Integer start_line, Integer end_line) -> void + # + # source://spoom//lib/spoom/deadcode/remover.rb#314 sig { params(start_line: ::Integer, end_line: ::Integer).void } def delete_lines(start_line, end_line); end - # source://spoom//lib/spoom/deadcode/remover.rb#261 + # : (NodeContext context) -> void + # + # source://spoom//lib/spoom/deadcode/remover.rb#251 sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } def delete_node_and_comments_and_sigs(context); end - # source://spoom//lib/spoom/deadcode/remover.rb#218 + # : (Prism::Node node, NodeContext send_context, was_removed: bool) -> void + # + # source://spoom//lib/spoom/deadcode/remover.rb#208 sig do params( node: ::Prism::Node, @@ -2350,11 +3234,15 @@ class Spoom::Deadcode::Remover::NodeRemover end def insert_accessor(node, send_context, was_removed:); end - # source://spoom//lib/spoom/deadcode/remover.rb#336 + # : (Integer start_char, Integer end_char, String replacement) -> void + # + # source://spoom//lib/spoom/deadcode/remover.rb#326 sig { params(start_char: ::Integer, end_char: ::Integer, replacement: ::String).void } def replace_chars(start_char, end_char, replacement); end - # source://spoom//lib/spoom/deadcode/remover.rb#341 + # : (Prism::CallNode node, name: String, kind: Definition::Kind?) -> String + # + # source://spoom//lib/spoom/deadcode/remover.rb#331 sig do params( node: ::Prism::CallNode, @@ -2376,7 +3264,9 @@ class Spoom::Deadcode::Send < ::T::Struct const :block, T.nilable(::Prism::Node), default: T.unsafe(nil) const :location, ::Spoom::Location - # source://spoom//lib/spoom/deadcode/send.rb#22 + # : [T] (Class[T] arg_type) { (T arg) -> void } -> void + # + # source://spoom//lib/spoom/deadcode/send.rb#16 sig do type_parameters(:T) .params( @@ -2386,17 +3276,19 @@ class Spoom::Deadcode::Send < ::T::Struct end def each_arg(arg_type, &block); end - # source://spoom//lib/spoom/deadcode/send.rb#29 + # : { (Prism::Node key, Prism::Node? value) -> void } -> void + # + # source://spoom//lib/spoom/deadcode/send.rb#23 sig { params(block: T.proc.params(key: ::Prism::Node, value: T.nilable(::Prism::Node)).void).void } def each_arg_assoc(&block); end class << self - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end end end -# source://spoom//lib/spoom.rb#12 +# source://spoom//lib/spoom.rb#10 class Spoom::Error < ::StandardError; end # source://spoom//lib/spoom/context/exec.rb#5 @@ -2406,12 +3298,14 @@ class Spoom::ExecResult < ::T::Struct const :status, T::Boolean const :exit_code, ::Integer - # source://spoom//lib/spoom/context/exec.rb#14 + # : -> String + # + # source://spoom//lib/spoom/context/exec.rb#12 sig { returns(::String) } def to_s; end class << self - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end end end @@ -2426,8 +3320,17 @@ class Spoom::FileCollector # If `allow_mime_types` is empty, all files are collected. # If `allow_mime_types` is an array of mimetypes, files without an extension are collected if their mimetype is in # the list. + # : (?allow_extensions: Array[String], ?allow_mime_types: Array[String], ?exclude_patterns: Array[String]) -> void # - # source://spoom//lib/spoom/file_collector.rb#26 + # @return [FileCollector] a new instance of FileCollector + # + # source://spoom//lib/spoom/file_collector.rb#18 + # Initialize a new file collector + # If `allow_extensions` is empty, all files are collected. + # If `allow_extensions` is an array of extensions, only files with one of these extensions are collected. + # If `allow_mime_types` is empty, all files are collected. + # If `allow_mime_types` is an array of mimetypes, files without an extension are collected if their mimetype is in + # the list. sig do params( allow_extensions: T::Array[::String], @@ -2437,41 +3340,63 @@ class Spoom::FileCollector end def initialize(allow_extensions: T.unsafe(nil), allow_mime_types: T.unsafe(nil), exclude_patterns: T.unsafe(nil)); end - # source://spoom//lib/spoom/file_collector.rb#9 + # : Array[String] + # + # source://spoom//lib/spoom/file_collector.rb#7 sig { returns(T::Array[::String]) } def files; end - # source://spoom//lib/spoom/file_collector.rb#39 + # : (String path) -> void + # + # source://spoom//lib/spoom/file_collector.rb#31 sig { params(path: ::String).void } def visit_path(path); end - # source://spoom//lib/spoom/file_collector.rb#34 + # : (Array[String] paths) -> void + # + # source://spoom//lib/spoom/file_collector.rb#26 sig { params(paths: T::Array[::String]).void } def visit_paths(paths); end private - # source://spoom//lib/spoom/file_collector.rb#56 + # : (String path) -> String + # + # source://spoom//lib/spoom/file_collector.rb#48 sig { params(path: ::String).returns(::String) } def clean_path(path); end - # source://spoom//lib/spoom/file_collector.rb#73 + # : (String path) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/file_collector.rb#65 sig { params(path: ::String).returns(T::Boolean) } def excluded_file?(path); end - # source://spoom//lib/spoom/file_collector.rb#88 + # : (String path) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/file_collector.rb#80 sig { params(path: ::String).returns(T::Boolean) } def excluded_path?(path); end - # source://spoom//lib/spoom/file_collector.rb#97 + # : (String path) -> String? + # + # source://spoom//lib/spoom/file_collector.rb#89 sig { params(path: ::String).returns(T.nilable(::String)) } def mime_type_for(path); end - # source://spoom//lib/spoom/file_collector.rb#68 + # : (String path) -> void + # + # source://spoom//lib/spoom/file_collector.rb#60 sig { params(path: ::String).void } def visit_directory(path); end - # source://spoom//lib/spoom/file_collector.rb#61 + # : (String path) -> void + # + # source://spoom//lib/spoom/file_collector.rb#53 sig { params(path: ::String).void } def visit_file(path); end end @@ -2480,136 +3405,187 @@ end # # source://spoom//lib/spoom/file_tree.rb#6 class Spoom::FileTree - # source://spoom//lib/spoom/file_tree.rb#10 + # : (?T::Enumerable[String] paths) -> void + # + # @return [FileTree] a new instance of FileTree + # + # source://spoom//lib/spoom/file_tree.rb#8 sig { params(paths: T::Enumerable[::String]).void } def initialize(paths = T.unsafe(nil)); end # Add a `path` to the tree # # This will create all nodes until the root of `path`. + # : (String path) -> Node # - # source://spoom//lib/spoom/file_tree.rb#25 + # source://spoom//lib/spoom/file_tree.rb#23 + # Add a `path` to the tree + # This will create all nodes until the root of `path`. sig { params(path: ::String).returns(::Spoom::FileTree::Node) } def add_path(path); end # Add all `paths` to the tree + # : (T::Enumerable[String] paths) -> void # - # source://spoom//lib/spoom/file_tree.rb#17 + # source://spoom//lib/spoom/file_tree.rb#15 + # Add all `paths` to the tree sig { params(paths: T::Enumerable[::String]).void } def add_paths(paths); end # All the nodes in this tree + # : -> Array[Node] # - # source://spoom//lib/spoom/file_tree.rb#45 + # source://spoom//lib/spoom/file_tree.rb#43 + # All the nodes in this tree sig { returns(T::Array[::Spoom::FileTree::Node]) } def nodes; end # Return a map of typing scores for each node in the tree + # : (Context context) -> Hash[Node, Float] # - # source://spoom//lib/spoom/file_tree.rb#59 + # source://spoom//lib/spoom/file_tree.rb#57 + # Return a map of typing scores for each node in the tree sig { params(context: ::Spoom::Context).returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } def nodes_strictness_scores(context); end # All the paths in this tree + # : -> Array[String] # - # source://spoom//lib/spoom/file_tree.rb#53 + # source://spoom//lib/spoom/file_tree.rb#51 + # All the paths in this tree sig { returns(T::Array[::String]) } def paths; end # Return a map of typing scores for each path in the tree + # : (Context context) -> Hash[String, Float] # - # source://spoom//lib/spoom/file_tree.rb#67 + # source://spoom//lib/spoom/file_tree.rb#65 + # Return a map of typing scores for each path in the tree sig { params(context: ::Spoom::Context).returns(T::Hash[::String, ::Float]) } def paths_strictness_scores(context); end - # source://spoom//lib/spoom/file_tree.rb#72 + # : (?out: (IO | StringIO), ?colors: bool) -> void + # + # source://spoom//lib/spoom/file_tree.rb#70 sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean).void } def print(out: T.unsafe(nil), colors: T.unsafe(nil)); end # All root nodes + # : -> Array[Node] # - # source://spoom//lib/spoom/file_tree.rb#39 + # source://spoom//lib/spoom/file_tree.rb#37 + # All root nodes sig { returns(T::Array[::Spoom::FileTree::Node]) } def roots; end end # A visitor that collects all the nodes in a tree # -# source://spoom//lib/spoom/file_tree.rb#124 +# source://spoom//lib/spoom/file_tree.rb#119 class Spoom::FileTree::CollectNodes < ::Spoom::FileTree::Visitor - # source://spoom//lib/spoom/file_tree.rb#131 + # : -> void + # + # @return [CollectNodes] a new instance of CollectNodes + # + # source://spoom//lib/spoom/file_tree.rb#124 sig { void } def initialize; end - # source://spoom//lib/spoom/file_tree.rb#128 + # : Array[FileTree::Node] + # + # source://spoom//lib/spoom/file_tree.rb#121 sig { returns(T::Array[::Spoom::FileTree::Node]) } def nodes; end - # source://spoom//lib/spoom/file_tree.rb#137 + # : (FileTree::Node node) -> void + # + # source://spoom//lib/spoom/file_tree.rb#131 sig { override.params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end end # A visitor that collects the typing score of each node in a tree # -# source://spoom//lib/spoom/file_tree.rb#167 +# source://spoom//lib/spoom/file_tree.rb#160 class Spoom::FileTree::CollectScores < ::Spoom::FileTree::CollectStrictnesses - # source://spoom//lib/spoom/file_tree.rb#174 + # : (Context context) -> void + # + # @return [CollectScores] a new instance of CollectScores + # + # source://spoom//lib/spoom/file_tree.rb#165 sig { params(context: ::Spoom::Context).void } def initialize(context); end - # source://spoom//lib/spoom/file_tree.rb#171 + # : Hash[Node, Float] + # + # source://spoom//lib/spoom/file_tree.rb#162 sig { returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } def scores; end - # source://spoom//lib/spoom/file_tree.rb#181 + # : (FileTree::Node node) -> void + # + # source://spoom//lib/spoom/file_tree.rb#173 sig { override.params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end private - # source://spoom//lib/spoom/file_tree.rb#190 + # : (Node node) -> Float + # + # source://spoom//lib/spoom/file_tree.rb#182 sig { params(node: ::Spoom::FileTree::Node).returns(::Float) } def node_score(node); end - # source://spoom//lib/spoom/file_tree.rb#199 + # : (String? strictness) -> Float + # + # source://spoom//lib/spoom/file_tree.rb#191 sig { params(strictness: T.nilable(::String)).returns(::Float) } def strictness_score(strictness); end end # A visitor that collects the strictness of each node in a tree # -# source://spoom//lib/spoom/file_tree.rb#144 +# source://spoom//lib/spoom/file_tree.rb#138 class Spoom::FileTree::CollectStrictnesses < ::Spoom::FileTree::Visitor - # source://spoom//lib/spoom/file_tree.rb#151 + # : (Context context) -> void + # + # @return [CollectStrictnesses] a new instance of CollectStrictnesses + # + # source://spoom//lib/spoom/file_tree.rb#143 sig { params(context: ::Spoom::Context).void } def initialize(context); end - # source://spoom//lib/spoom/file_tree.rb#148 + # : Hash[Node, String?] + # + # source://spoom//lib/spoom/file_tree.rb#140 sig { returns(T::Hash[::Spoom::FileTree::Node, T.nilable(::String)]) } def strictnesses; end - # source://spoom//lib/spoom/file_tree.rb#158 + # : (FileTree::Node node) -> void + # + # source://spoom//lib/spoom/file_tree.rb#151 sig { override.params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end end # A node representing either a file or a directory inside a FileTree # -# source://spoom//lib/spoom/file_tree.rb#78 +# source://spoom//lib/spoom/file_tree.rb#76 class Spoom::FileTree::Node < ::T::Struct const :parent, T.nilable(::Spoom::FileTree::Node) const :name, ::String const :children, T::Hash[::String, ::Spoom::FileTree::Node], default: T.unsafe(nil) # Full path to this node from root + # : -> String # - # source://spoom//lib/spoom/file_tree.rb#92 + # source://spoom//lib/spoom/file_tree.rb#88 + # Full path to this node from root sig { returns(::String) } def path; end class << self - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end end end @@ -2618,9 +3594,14 @@ end # # See `FileTree#print` # -# source://spoom//lib/spoom/file_tree.rb#212 +# source://spoom//lib/spoom/file_tree.rb#204 +# An internal class used to print a FileTree class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor - # source://spoom//lib/spoom/file_tree.rb#222 + # : (Hash[FileTree::Node, String?] strictnesses, ?out: (IO | StringIO), ?colors: bool) -> void + # + # @return [Printer] a new instance of Printer + # + # source://spoom//lib/spoom/file_tree.rb#206 sig do params( strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)], @@ -2630,13 +3611,17 @@ class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor end def initialize(strictnesses, out: T.unsafe(nil), colors: T.unsafe(nil)); end - # source://spoom//lib/spoom/file_tree.rb#230 + # : (FileTree::Node node) -> void + # + # source://spoom//lib/spoom/file_tree.rb#215 sig { override.params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end private - # source://spoom//lib/spoom/file_tree.rb#255 + # : (String? strictness) -> Color + # + # source://spoom//lib/spoom/file_tree.rb#240 sig { params(strictness: T.nilable(::String)).returns(::Spoom::Color) } def strictness_color(strictness); end end @@ -2645,19 +3630,25 @@ end # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom//lib/spoom/file_tree.rb#101 +# source://spoom//lib/spoom/file_tree.rb#97 class Spoom::FileTree::Visitor abstract! - # source://spoom//lib/spoom/file_tree.rb#113 + # : (FileTree::Node node) -> void + # + # source://spoom//lib/spoom/file_tree.rb#108 sig { params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end - # source://spoom//lib/spoom/file_tree.rb#118 + # : (Array[FileTree::Node] nodes) -> void + # + # source://spoom//lib/spoom/file_tree.rb#113 sig { params(nodes: T::Array[::Spoom::FileTree::Node]).void } def visit_nodes(nodes); end - # source://spoom//lib/spoom/file_tree.rb#108 + # : (FileTree tree) -> void + # + # source://spoom//lib/spoom/file_tree.rb#103 sig { params(tree: ::Spoom::FileTree).void } def visit_tree(tree); end end @@ -2670,17 +3661,21 @@ class Spoom::Git::Commit < ::T::Struct const :sha, ::String const :time, ::Time - # source://spoom//lib/spoom/context/git.rb#27 + # : -> Integer + # + # source://spoom//lib/spoom/context/git.rb#23 sig { returns(::Integer) } def timestamp; end class << self - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end # Parse a line formatted as `%h %at` into a `Commit` + # : (String string) -> Commit? # - # source://spoom//lib/spoom/context/git.rb#14 + # source://spoom//lib/spoom/context/git.rb#10 + # Parse a line formatted as `%h %at` into a `Commit` sig { params(string: ::String).returns(T.nilable(::Spoom::Git::Commit)) } def parse_line(string); end end @@ -2691,49 +3686,70 @@ module Spoom::LSP; end # source://spoom//lib/spoom/sorbet/lsp.rb#13 class Spoom::LSP::Client - # source://spoom//lib/spoom/sorbet/lsp.rb#17 + # : (String sorbet_bin, *String sorbet_args, ?path: String) -> void + # + # @return [Client] a new instance of Client + # + # source://spoom//lib/spoom/sorbet/lsp.rb#15 sig { params(sorbet_bin: ::String, sorbet_args: ::String, path: ::String).void } def initialize(sorbet_bin, *sorbet_args, path: T.unsafe(nil)); end - # source://spoom//lib/spoom/sorbet/lsp.rb#229 + # : -> void + # + # source://spoom//lib/spoom/sorbet/lsp.rb#227 sig { void } def close; end - # source://spoom//lib/spoom/sorbet/lsp.rb#131 + # : (String uri, Integer line, Integer column) -> Array[Location] + # + # source://spoom//lib/spoom/sorbet/lsp.rb#129 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } def definitions(uri, line, column); end - # source://spoom//lib/spoom/sorbet/lsp.rb#212 + # : (String uri) -> Array[DocumentSymbol] + # + # source://spoom//lib/spoom/sorbet/lsp.rb#210 sig { params(uri: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } def document_symbols(uri); end - # source://spoom//lib/spoom/sorbet/lsp.rb#89 + # : (String uri, Integer line, Integer column) -> Hover? + # + # source://spoom//lib/spoom/sorbet/lsp.rb#87 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T.nilable(::Spoom::LSP::Hover)) } def hover(uri, line, column); end - # source://spoom//lib/spoom/sorbet/lsp.rb#27 + # : -> Integer + # + # source://spoom//lib/spoom/sorbet/lsp.rb#25 sig { returns(::Integer) } def next_id; end - # LSP requests + # : (String workspace_path) -> void # # @raise [Error::AlreadyOpen] # - # source://spoom//lib/spoom/sorbet/lsp.rb#72 + # source://spoom//lib/spoom/sorbet/lsp.rb#70 + # LSP requests sig { params(workspace_path: ::String).void } def open(workspace_path); end - # source://spoom//lib/spoom/sorbet/lsp.rb#54 + # : -> Hash[untyped, untyped]? + # + # source://spoom//lib/spoom/sorbet/lsp.rb#52 sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) } def read; end + # : -> String? + # # @raise [Error::BadHeaders] # - # source://spoom//lib/spoom/sorbet/lsp.rb#43 + # source://spoom//lib/spoom/sorbet/lsp.rb#41 sig { returns(T.nilable(::String)) } def read_raw; end - # source://spoom//lib/spoom/sorbet/lsp.rb#173 + # : (String uri, Integer line, Integer column, ?bool include_decl) -> Array[Location] + # + # source://spoom//lib/spoom/sorbet/lsp.rb#171 sig do params( uri: ::String, @@ -2744,28 +3760,38 @@ class Spoom::LSP::Client end def references(uri, line, column, include_decl = T.unsafe(nil)); end - # source://spoom//lib/spoom/sorbet/lsp.rb#37 + # : (Message message) -> Hash[untyped, untyped]? + # + # source://spoom//lib/spoom/sorbet/lsp.rb#35 sig { params(message: ::Spoom::LSP::Message).returns(T.nilable(T::Hash[T.untyped, T.untyped])) } def send(message); end - # source://spoom//lib/spoom/sorbet/lsp.rb#32 + # : (String json_string) -> void + # + # source://spoom//lib/spoom/sorbet/lsp.rb#30 sig { params(json_string: ::String).void } def send_raw(json_string); end - # source://spoom//lib/spoom/sorbet/lsp.rb#110 + # : (String uri, Integer line, Integer column) -> Array[SignatureHelp] + # + # source://spoom//lib/spoom/sorbet/lsp.rb#108 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::SignatureHelp]) } def signatures(uri, line, column); end - # source://spoom//lib/spoom/sorbet/lsp.rb#197 + # : (String query) -> Array[DocumentSymbol] + # + # source://spoom//lib/spoom/sorbet/lsp.rb#195 sig { params(query: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } def symbols(query); end - # source://spoom//lib/spoom/sorbet/lsp.rb#152 + # : (String uri, Integer line, Integer column) -> Array[Location] + # + # source://spoom//lib/spoom/sorbet/lsp.rb#150 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } def type_definitions(uri, line, column); end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#178 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#168 class Spoom::LSP::Diagnostic < ::T::Struct include ::Spoom::LSP::PrintableSymbol @@ -2774,25 +3800,31 @@ class Spoom::LSP::Diagnostic < ::T::Struct const :message, ::String const :information, ::Object - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#202 + # : (SymbolPrinter printer) -> void + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#190 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#207 + # : -> String + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#195 sig { returns(::String) } def to_s; end class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#191 + # : (Hash[untyped, untyped] json) -> Diagnostic + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#178 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) } def from_json(json); end - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#212 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#200 class Spoom::LSP::DocumentSymbol < ::T::Struct include ::Spoom::LSP::PrintableSymbol @@ -2803,29 +3835,37 @@ class Spoom::LSP::DocumentSymbol < ::T::Struct const :range, T.nilable(::Spoom::LSP::Range) const :children, T::Array[::Spoom::LSP::DocumentSymbol] - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#240 + # : (SymbolPrinter printer) -> void + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#226 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#272 + # : -> String + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#258 sig { returns(::String) } def kind_string; end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#267 + # : -> String + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#253 sig { returns(::String) } def to_s; end class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#227 + # : (Hash[untyped, untyped] json) -> DocumentSymbol + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#212 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) } def from_json(json); end - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#276 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#262 Spoom::LSP::DocumentSymbol::SYMBOL_KINDS = T.let(T.unsafe(nil), Hash) # source://spoom//lib/spoom/sorbet/lsp/errors.rb#6 @@ -2839,20 +3879,30 @@ class Spoom::LSP::Error::BadHeaders < ::Spoom::LSP::Error; end # source://spoom//lib/spoom/sorbet/lsp/errors.rb#10 class Spoom::LSP::Error::Diagnostics < ::Spoom::LSP::Error - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#32 + # : (String uri, Array[Diagnostic] diagnostics) -> void + # + # @return [Diagnostics] a new instance of Diagnostics + # + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#28 sig { params(uri: ::String, diagnostics: T::Array[::Spoom::LSP::Diagnostic]).void } def initialize(uri, diagnostics); end - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#17 + # : Array[Diagnostic] + # + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#15 sig { returns(T::Array[::Spoom::LSP::Diagnostic]) } def diagnostics; end - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#14 + # : String + # + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#12 sig { returns(::String) } def uri; end class << self - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#23 + # : (Hash[untyped, untyped] json) -> Diagnostics + # + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#19 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Error::Diagnostics) } def from_json(json); end end @@ -2865,45 +3915,57 @@ class Spoom::LSP::Hover < ::T::Struct const :contents, ::String const :range, T.nilable(T::Range[T.untyped]) - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#39 + # : (SymbolPrinter printer) -> void + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#37 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#45 + # : -> String + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#43 sig { returns(::String) } def to_s; end class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#30 + # : (Hash[untyped, untyped] json) -> Hover + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#27 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) } def from_json(json); end - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#112 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#106 class Spoom::LSP::Location < ::T::Struct include ::Spoom::LSP::PrintableSymbol const :uri, ::String const :range, ::Spoom::LSP::Range - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#132 + # : (SymbolPrinter printer) -> void + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#124 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#138 + # : -> String + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#130 sig { returns(::String) } def to_s; end class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#123 + # : (Hash[untyped, untyped] json) -> Location + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#114 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) } def from_json(json); end - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end end end @@ -2913,16 +3975,25 @@ end # The language server protocol always uses `"2.0"` as the `jsonrpc` version. # # source://spoom//lib/spoom/sorbet/lsp/base.rb#12 +# A general message as defined by JSON-RPC. class Spoom::LSP::Message - # source://spoom//lib/spoom/sorbet/lsp/base.rb#16 + # : -> void + # + # @return [Message] a new instance of Message + # + # source://spoom//lib/spoom/sorbet/lsp/base.rb#14 sig { void } def initialize; end - # source://spoom//lib/spoom/sorbet/lsp/base.rb#21 + # : -> Hash[untyped, untyped] + # + # source://spoom//lib/spoom/sorbet/lsp/base.rb#19 sig { returns(T::Hash[T.untyped, T.untyped]) } def as_json; end - # source://spoom//lib/spoom/sorbet/lsp/base.rb#29 + # : (*untyped args) -> String + # + # source://spoom//lib/spoom/sorbet/lsp/base.rb#27 sig { params(args: T.untyped).returns(::String) } def to_json(*args); end end @@ -2931,42 +4002,57 @@ end # # A processed notification message must not send a response back. They work like events. # -# source://spoom//lib/spoom/sorbet/lsp/base.rb#58 +# source://spoom//lib/spoom/sorbet/lsp/base.rb#54 +# A notification message. class Spoom::LSP::Notification < ::Spoom::LSP::Message - # source://spoom//lib/spoom/sorbet/lsp/base.rb#68 + # : (String method, Hash[untyped, untyped] params) -> void + # + # @return [Notification] a new instance of Notification + # + # source://spoom//lib/spoom/sorbet/lsp/base.rb#62 sig { params(method: ::String, params: T::Hash[T.untyped, T.untyped]).void } def initialize(method, params); end - # source://spoom//lib/spoom/sorbet/lsp/base.rb#62 + # : String + # + # source://spoom//lib/spoom/sorbet/lsp/base.rb#56 sig { returns(::String) } def method; end - # source://spoom//lib/spoom/sorbet/lsp/base.rb#65 + # : Hash[untyped, untyped] + # + # source://spoom//lib/spoom/sorbet/lsp/base.rb#59 sig { returns(T::Hash[T.untyped, T.untyped]) } def params; end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#50 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#48 class Spoom::LSP::Position < ::T::Struct include ::Spoom::LSP::PrintableSymbol const :line, ::Integer const :char, ::Integer - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#70 + # : (SymbolPrinter printer) -> void + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#66 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#75 + # : -> String + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#71 sig { returns(::String) } def to_s; end class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#61 + # : (Hash[untyped, untyped] json) -> Position + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#56 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) } def from_json(json); end - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end end end @@ -2984,27 +4070,33 @@ module Spoom::LSP::PrintableSymbol def accept_printer(printer); end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#80 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#76 class Spoom::LSP::Range < ::T::Struct include ::Spoom::LSP::PrintableSymbol const :start, ::Spoom::LSP::Position const :end, ::Spoom::LSP::Position - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#100 + # : (SymbolPrinter printer) -> void + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#94 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#107 + # : -> String + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#101 sig { returns(::String) } def to_s; end class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#91 + # : (Hash[untyped, untyped] json) -> Range + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#84 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) } def from_json(json); end - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end end end @@ -3013,43 +4105,62 @@ end # # Every processed request must send a response back to the sender of the request. # -# source://spoom//lib/spoom/sorbet/lsp/base.rb#37 +# source://spoom//lib/spoom/sorbet/lsp/base.rb#35 +# A request message to describe a request between the client and the server. class Spoom::LSP::Request < ::Spoom::LSP::Message - # source://spoom//lib/spoom/sorbet/lsp/base.rb#47 + # : (Integer id, String method, Hash[untyped, untyped] params) -> void + # + # @return [Request] a new instance of Request + # + # source://spoom//lib/spoom/sorbet/lsp/base.rb#43 sig { params(id: ::Integer, method: ::String, params: T::Hash[T.untyped, T.untyped]).void } def initialize(id, method, params); end - # source://spoom//lib/spoom/sorbet/lsp/base.rb#41 + # : Integer + # + # source://spoom//lib/spoom/sorbet/lsp/base.rb#37 sig { returns(::Integer) } def id; end - # source://spoom//lib/spoom/sorbet/lsp/base.rb#44 + # : Hash[untyped, untyped] + # + # source://spoom//lib/spoom/sorbet/lsp/base.rb#40 sig { returns(T::Hash[T.untyped, T.untyped]) } def params; end end -# source://spoom//lib/spoom/sorbet/lsp/errors.rb#40 +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#36 class Spoom::LSP::ResponseError < ::Spoom::LSP::Error - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#63 + # : (Integer code, String message, Hash[untyped, untyped] data) -> void + # + # @return [ResponseError] a new instance of ResponseError + # + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#55 sig { params(code: ::Integer, message: ::String, data: T::Hash[T.untyped, T.untyped]).void } def initialize(code, message, data); end - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#44 + # : Integer + # + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#38 sig { returns(::Integer) } def code; end - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#47 + # : Hash[untyped, untyped] + # + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#41 sig { returns(T::Hash[T.untyped, T.untyped]) } def data; end class << self - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#53 + # : (Hash[untyped, untyped] json) -> ResponseError + # + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#45 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::ResponseError) } def from_json(json); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#143 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#135 class Spoom::LSP::SignatureHelp < ::T::Struct include ::Spoom::LSP::PrintableSymbol @@ -3057,27 +4168,37 @@ class Spoom::LSP::SignatureHelp < ::T::Struct const :doc, ::Object const :params, T::Array[T.untyped] - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#165 + # : (SymbolPrinter printer) -> void + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#155 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#173 + # : -> String + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#163 sig { returns(::String) } def to_s; end class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#155 + # : (Hash[untyped, untyped] json) -> SignatureHelp + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#144 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) } def from_json(json); end - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#309 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#295 class Spoom::LSP::SymbolPrinter < ::Spoom::Printer - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#326 + # : (?out: (IO | StringIO), ?colors: bool, ?indent_level: Integer, ?prefix: String?) -> void + # + # @return [SymbolPrinter] a new instance of SymbolPrinter + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#303 sig do params( out: T.any(::IO, ::StringIO), @@ -3088,32 +4209,45 @@ class Spoom::LSP::SymbolPrinter < ::Spoom::Printer end def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil), prefix: T.unsafe(nil)); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#348 + # : (String uri) -> String + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#325 sig { params(uri: ::String).returns(::String) } def clean_uri(uri); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#316 + # : String? + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#300 sig { returns(T.nilable(::String)) } def prefix; end - # @return [String, nil] + # : String? # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#316 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#300 + # @return [String, nil] def prefix=(_arg0); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#356 + # : (Array[PrintableSymbol] objects) -> void + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#333 sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } def print_list(objects); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#336 + # : (PrintableSymbol? object) -> void + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#313 sig { params(object: T.nilable(::Spoom::LSP::PrintableSymbol)).void } def print_object(object); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#343 + # : (Array[PrintableSymbol] objects) -> void + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#320 sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } def print_objects(objects); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#313 + # : Set[Integer] + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#297 sig { returns(T::Set[::Integer]) } def seen; end end @@ -3122,9 +4256,12 @@ end class Spoom::Location include ::Comparable + # : (String file, ?start_line: Integer?, ?start_column: Integer?, ?end_line: Integer?, ?end_column: Integer?) -> void + # # @raise [LocationError] + # @return [Location] a new instance of Location # - # source://spoom//lib/spoom/location.rb#73 + # source://spoom//lib/spoom/location.rb#61 sig do params( file: ::String, @@ -3136,110 +4273,153 @@ class Spoom::Location end def initialize(file, start_line: T.unsafe(nil), start_column: T.unsafe(nil), end_line: T.unsafe(nil), end_column: T.unsafe(nil)); end - # source://spoom//lib/spoom/location.rb#106 + # : (BasicObject other) -> Integer? + # + # source://spoom//lib/spoom/location.rb#95 sig { override.params(other: ::BasicObject).returns(T.nilable(::Integer)) } def <=>(other); end - # @return [Integer, nil] + # : Integer? # - # source://spoom//lib/spoom/location.rb#62 + # source://spoom//lib/spoom/location.rb#58 + # @return [Integer, nil] def end_column; end - # @return [Integer, nil] + # : Integer? # - # source://spoom//lib/spoom/location.rb#62 + # source://spoom//lib/spoom/location.rb#58 + # @return [Integer, nil] def end_line; end - # source://spoom//lib/spoom/location.rb#59 + # : String + # + # source://spoom//lib/spoom/location.rb#55 sig { returns(::String) } def file; end - # source://spoom//lib/spoom/location.rb#93 + # : (Location other) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/location.rb#81 sig { params(other: ::Spoom::Location).returns(T::Boolean) } def include?(other); end - # @return [Integer, nil] + # : Integer? # - # source://spoom//lib/spoom/location.rb#62 + # source://spoom//lib/spoom/location.rb#58 + # @return [Integer, nil] def start_column; end - # source://spoom//lib/spoom/location.rb#62 + # : Integer? + # + # source://spoom//lib/spoom/location.rb#58 sig { returns(T.nilable(::Integer)) } def start_line; end - # source://spoom//lib/spoom/location.rb#129 + # : -> String + # + # source://spoom//lib/spoom/location.rb#118 sig { returns(::String) } def to_s; end class << self - # source://spoom//lib/spoom/location.rb#47 + # : (String file, Prism::Location location) -> Location + # + # source://spoom//lib/spoom/location.rb#43 sig { params(file: ::String, location: ::Prism::Location).returns(::Spoom::Location) } def from_prism(file, location); end + # : (String location_string) -> Location + # # @raise [LocationError] # - # source://spoom//lib/spoom/location.rb#16 + # source://spoom//lib/spoom/location.rb#12 sig { params(location_string: ::String).returns(::Spoom::Location) } def from_string(location_string); end end end -# source://spoom//lib/spoom/location.rb#10 +# source://spoom//lib/spoom/location.rb#8 class Spoom::Location::LocationError < ::Spoom::Error; end # source://spoom//lib/spoom/model/model.rb#5 class Spoom::Model - # source://spoom//lib/spoom/model/model.rb#238 + # : -> void + # + # @return [Model] a new instance of Model + # + # source://spoom//lib/spoom/model/model.rb#235 sig { void } def initialize; end # Get a symbol by it's full name # # Raises an error if the symbol is not found + # : (String full_name) -> Symbol # # @raise [Error] # - # source://spoom//lib/spoom/model/model.rb#247 + # source://spoom//lib/spoom/model/model.rb#244 + # Get a symbol by it's full name + # Raises an error if the symbol is not found sig { params(full_name: ::String).returns(::Spoom::Model::Symbol) } def [](full_name); end - # source://spoom//lib/spoom/model/model.rb#296 + # : -> void + # + # source://spoom//lib/spoom/model/model.rb#293 sig { void } def finalize!; end # Register a new symbol by it's full name # # If the symbol already exists, it will be returned. + # : (String full_name) -> Symbol # - # source://spoom//lib/spoom/model/model.rb#258 + # source://spoom//lib/spoom/model/model.rb#255 + # Register a new symbol by it's full name + # If the symbol already exists, it will be returned. sig { params(full_name: ::String).returns(::Spoom::Model::Symbol) } def register_symbol(full_name); end - # source://spoom//lib/spoom/model/model.rb#263 + # : (String full_name, context: Symbol) -> Symbol + # + # source://spoom//lib/spoom/model/model.rb#260 sig { params(full_name: ::String, context: ::Spoom::Model::Symbol).returns(::Spoom::Model::Symbol) } def resolve_symbol(full_name, context:); end - # source://spoom//lib/spoom/model/model.rb#290 + # : (Symbol symbol) -> Array[Symbol] + # + # source://spoom//lib/spoom/model/model.rb#287 sig { params(symbol: ::Spoom::Model::Symbol).returns(T::Array[::Spoom::Model::Symbol]) } def subtypes(symbol); end - # source://spoom//lib/spoom/model/model.rb#284 + # : (Symbol symbol) -> Array[Symbol] + # + # source://spoom//lib/spoom/model/model.rb#281 sig { params(symbol: ::Spoom::Model::Symbol).returns(T::Array[::Spoom::Model::Symbol]) } def supertypes(symbol); end # All the symbols registered in this model + # : Hash[String, Symbol] # - # source://spoom//lib/spoom/model/model.rb#232 + # source://spoom//lib/spoom/model/model.rb#229 + # All the symbols registered in this model sig { returns(T::Hash[::String, ::Spoom::Model::Symbol]) } def symbols; end - # source://spoom//lib/spoom/model/model.rb#235 + # : Poset[Symbol] + # + # source://spoom//lib/spoom/model/model.rb#232 sig { returns(Spoom::Poset[::Spoom::Model::Symbol]) } def symbols_hierarchy; end private - # source://spoom//lib/spoom/model/model.rb#303 + # : -> void + # + # source://spoom//lib/spoom/model/model.rb#300 sig { void } def compute_symbols_hierarchy!; end end @@ -3264,115 +4444,175 @@ class Spoom::Model::AttrWriter < ::Spoom::Model::Attr; end # # source://spoom//lib/spoom/model/builder.rb#7 class Spoom::Model::Builder < ::Spoom::Model::NamespaceVisitor - # source://spoom//lib/spoom/model/builder.rb#11 - sig { params(model: ::Spoom::Model, file: ::String).void } - def initialize(model, file); end + # : (Model model, String file, ?comments: Array[Prism::Comment]) -> void + # + # @return [Builder] a new instance of Builder + # + # source://spoom//lib/spoom/model/builder.rb#9 + sig { params(model: ::Spoom::Model, file: ::String, comments: T::Array[::Prism::Comment]).void } + def initialize(model, file, comments:); end - # Accessors + # : (Prism::CallNode node) -> void # - # source://spoom//lib/spoom/model/builder.rb#146 + # source://spoom//lib/spoom/model/builder.rb#165 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end - # Classes + # : (Prism::ClassNode node) -> void # - # source://spoom//lib/spoom/model/builder.rb#24 + # source://spoom//lib/spoom/model/builder.rb#29 sig { override.params(node: ::Prism::ClassNode).void } def visit_class_node(node); end - # Constants + # : (Prism::ConstantPathWriteNode node) -> void # - # source://spoom//lib/spoom/model/builder.rb#71 + # source://spoom//lib/spoom/model/builder.rb#82 sig { override.params(node: ::Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end - # source://spoom//lib/spoom/model/builder.rb#92 + # : (Prism::ConstantWriteNode node) -> void + # + # source://spoom//lib/spoom/model/builder.rb#105 sig { override.params(node: ::Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end - # Methods + # : (Prism::DefNode node) -> void # - # source://spoom//lib/spoom/model/builder.rb#127 + # source://spoom//lib/spoom/model/builder.rb#144 sig { override.params(node: ::Prism::DefNode).void } def visit_def_node(node); end - # Modules + # : (Prism::ModuleNode node) -> void # - # source://spoom//lib/spoom/model/builder.rb#55 + # source://spoom//lib/spoom/model/builder.rb#64 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # source://spoom//lib/spoom/model/builder.rb#106 + # : (Prism::MultiWriteNode node) -> void + # + # source://spoom//lib/spoom/model/builder.rb#121 sig { override.params(node: ::Prism::MultiWriteNode).void } def visit_multi_write_node(node); end - # source://spoom//lib/spoom/model/builder.rb#39 + # : (Prism::SingletonClassNode node) -> void + # + # source://spoom//lib/spoom/model/builder.rb#46 sig { override.params(node: ::Prism::SingletonClassNode).void } def visit_singleton_class_node(node); end private - # source://spoom//lib/spoom/model/builder.rb#234 + # : -> Array[Sig] + # + # source://spoom//lib/spoom/model/builder.rb#256 sig { returns(T::Array[::Spoom::Model::Sig]) } def collect_sigs; end - # source://spoom//lib/spoom/model/builder.rb#229 + # : -> Visibility + # + # source://spoom//lib/spoom/model/builder.rb#251 sig { returns(::Spoom::Model::Visibility) } def current_visibility; end - # source://spoom//lib/spoom/model/builder.rb#241 + # : (Prism::Node node) -> Array[Comment] + # + # source://spoom//lib/spoom/model/builder.rb#268 + sig { params(node: ::Prism::Node).returns(T::Array[::Spoom::Model::Comment]) } + def node_comments(node); end + + # : (Prism::Node node) -> Location + # + # source://spoom//lib/spoom/model/builder.rb#263 sig { params(node: ::Prism::Node).returns(::Spoom::Location) } def node_location(node); end end -# source://spoom//lib/spoom/model/model.rb#117 +# source://spoom//lib/spoom/model/model.rb#132 class Spoom::Model::Class < ::Spoom::Model::Namespace - # source://spoom//lib/spoom/model/model.rb#129 + # : (Symbol symbol, owner: Namespace?, location: Location, ?superclass_name: String?, ?comments: Array[Comment]) -> void + # + # @return [Class] a new instance of Class + # + # source://spoom//lib/spoom/model/model.rb#137 sig do params( symbol: ::Spoom::Model::Symbol, owner: T.nilable(::Spoom::Model::Namespace), location: ::Spoom::Location, - superclass_name: T.nilable(::String) + superclass_name: T.nilable(::String), + comments: T::Array[::Spoom::Model::Comment] ).void end - def initialize(symbol, owner:, location:, superclass_name: T.unsafe(nil)); end + def initialize(symbol, owner:, location:, superclass_name: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://spoom//lib/spoom/model/model.rb#119 + # : String? + # + # source://spoom//lib/spoom/model/model.rb#134 sig { returns(T.nilable(::String)) } def superclass_name; end - # @return [String, nil] + # : String? # - # source://spoom//lib/spoom/model/model.rb#119 + # source://spoom//lib/spoom/model/model.rb#134 + # @return [String, nil] def superclass_name=(_arg0); end end -# source://spoom//lib/spoom/model/model.rb#138 +# source://spoom//lib/spoom/model/model.rb#8 +class Spoom::Model::Comment + # : (String string, Location location) -> void + # + # @return [Comment] a new instance of Comment + # + # source://spoom//lib/spoom/model/model.rb#16 + sig { params(string: ::String, location: ::Spoom::Location).void } + def initialize(string, location); end + + # : Location + # + # source://spoom//lib/spoom/model/model.rb#13 + sig { returns(::Spoom::Location) } + def location; end + + # : String + # + # source://spoom//lib/spoom/model/model.rb#10 + sig { returns(::String) } + def string; end +end + +# source://spoom//lib/spoom/model/model.rb#146 class Spoom::Model::Constant < ::Spoom::Model::SymbolDef - # source://spoom//lib/spoom/model/model.rb#143 + # : (Symbol symbol, owner: Namespace?, location: Location, value: String, ?comments: Array[Comment]) -> void + # + # @return [Constant] a new instance of Constant + # + # source://spoom//lib/spoom/model/model.rb#151 sig do params( symbol: ::Spoom::Model::Symbol, owner: T.nilable(::Spoom::Model::Namespace), location: ::Spoom::Location, - value: ::String + value: ::String, + comments: T::Array[::Spoom::Model::Comment] ).void end - def initialize(symbol, owner:, location:, value:); end + def initialize(symbol, owner:, location:, value:, comments: T.unsafe(nil)); end - # source://spoom//lib/spoom/model/model.rb#140 + # : String + # + # source://spoom//lib/spoom/model/model.rb#148 sig { returns(::String) } def value; end end -# source://spoom//lib/spoom/model/model.rb#8 +# source://spoom//lib/spoom/model/model.rb#6 class Spoom::Model::Error < ::Spoom::Error; end -# source://spoom//lib/spoom/model/model.rb#213 +# source://spoom//lib/spoom/model/model.rb#212 class Spoom::Model::Extend < ::Spoom::Model::Mixin; end -# source://spoom//lib/spoom/model/model.rb#211 +# source://spoom//lib/spoom/model/model.rb#210 class Spoom::Model::Include < ::Spoom::Model::Mixin; end # source://spoom//lib/spoom/model/model.rb#177 @@ -3386,41 +4626,56 @@ class Spoom::Model::Method < ::Spoom::Model::Property; end class Spoom::Model::Mixin abstract! - # source://spoom//lib/spoom/model/model.rb#206 + # : (String name) -> void + # + # @return [Mixin] a new instance of Mixin + # + # source://spoom//lib/spoom/model/model.rb#205 sig { params(name: ::String).void } def initialize(name); end - # source://spoom//lib/spoom/model/model.rb#203 + # : String + # + # source://spoom//lib/spoom/model/model.rb#202 sig { returns(::String) } def name; end end -# source://spoom//lib/spoom/model/model.rb#136 +# source://spoom//lib/spoom/model/model.rb#144 class Spoom::Model::Module < ::Spoom::Model::Namespace; end # A class or module # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom//lib/spoom/model/model.rb#97 +# source://spoom//lib/spoom/model/model.rb#112 class Spoom::Model::Namespace < ::Spoom::Model::SymbolDef abstract! - # source://spoom//lib/spoom/model/model.rb#107 + # : (Symbol symbol, owner: Namespace?, location: Location, ?comments: Array[Comment]) -> void + # + # @return [Namespace] a new instance of Namespace + # + # source://spoom//lib/spoom/model/model.rb#122 sig do params( symbol: ::Spoom::Model::Symbol, owner: T.nilable(::Spoom::Model::Namespace), - location: ::Spoom::Location + location: ::Spoom::Location, + comments: T::Array[::Spoom::Model::Comment] ).void end - def initialize(symbol, owner:, location:); end + def initialize(symbol, owner:, location:, comments: T.unsafe(nil)); end - # source://spoom//lib/spoom/model/model.rb#101 + # : Array[SymbolDef] + # + # source://spoom//lib/spoom/model/model.rb#116 sig { returns(T::Array[::Spoom::Model::SymbolDef]) } def children; end - # source://spoom//lib/spoom/model/model.rb#104 + # : Array[Mixin] + # + # source://spoom//lib/spoom/model/model.rb#119 sig { returns(T::Array[::Spoom::Model::Mixin]) } def mixins; end end @@ -3431,26 +4686,36 @@ end class Spoom::Model::NamespaceVisitor < ::Spoom::Visitor abstract! + # : -> void + # + # @return [NamespaceVisitor] a new instance of NamespaceVisitor + # # source://spoom//lib/spoom/model/namespace_visitor.rb#12 sig { void } def initialize; end - # source://spoom//lib/spoom/model/namespace_visitor.rb#19 + # : (Prism::Node? node) -> void + # + # source://spoom//lib/spoom/model/namespace_visitor.rb#20 sig { override.params(node: T.nilable(::Prism::Node)).void } def visit(node); end end -# source://spoom//lib/spoom/model/model.rb#212 +# source://spoom//lib/spoom/model/model.rb#211 class Spoom::Model::Prepend < ::Spoom::Model::Mixin; end # A method or an attribute accessor # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom//lib/spoom/model/model.rb#151 +# source://spoom//lib/spoom/model/model.rb#159 class Spoom::Model::Property < ::Spoom::Model::SymbolDef abstract! + # : (Symbol symbol, owner: Namespace?, location: Location, visibility: Visibility, ?sigs: Array[Sig], ?comments: Array[Comment]) -> void + # + # @return [Property] a new instance of Property + # # source://spoom//lib/spoom/model/model.rb#169 sig do params( @@ -3458,16 +4723,21 @@ class Spoom::Model::Property < ::Spoom::Model::SymbolDef owner: T.nilable(::Spoom::Model::Namespace), location: ::Spoom::Location, visibility: ::Spoom::Model::Visibility, - sigs: T::Array[::Spoom::Model::Sig] + sigs: T::Array[::Spoom::Model::Sig], + comments: T::Array[::Spoom::Model::Comment] ).void end - def initialize(symbol, owner:, location:, visibility:, sigs: T.unsafe(nil)); end + def initialize(symbol, owner:, location:, visibility:, sigs: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://spoom//lib/spoom/model/model.rb#158 + # : Array[Sig] + # + # source://spoom//lib/spoom/model/model.rb#166 sig { returns(T::Array[::Spoom::Model::Sig]) } def sigs; end - # source://spoom//lib/spoom/model/model.rb#155 + # : Visibility + # + # source://spoom//lib/spoom/model/model.rb#163 sig { returns(::Spoom::Model::Visibility) } def visibility; end end @@ -3478,34 +4748,48 @@ end # Methods could be accessors, instance or class methods, aliases, etc. # # source://spoom//lib/spoom/model/reference.rb#10 +# A reference to something that looks like a constant or a method +# Constants could be classes, modules, or actual constants. class Spoom::Model::Reference < ::T::Struct const :kind, ::Spoom::Model::Reference::Kind const :name, ::String const :location, ::Spoom::Location - # source://spoom//lib/spoom/model/reference.rb#39 + # : -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/model/reference.rb#35 sig { returns(T::Boolean) } def constant?; end - # source://spoom//lib/spoom/model/reference.rb#44 + # : -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/model/reference.rb#40 sig { returns(T::Boolean) } def method?; end class << self - # source://spoom//lib/spoom/model/reference.rb#24 + # : (String name, Spoom::Location location) -> Reference + # + # source://spoom//lib/spoom/model/reference.rb#20 sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) } def constant(name, location); end - # source://sorbet-runtime/0.5.11851/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11919/lib/types/struct.rb#13 def inherited(s); end - # source://spoom//lib/spoom/model/reference.rb#29 + # : (String name, Spoom::Location location) -> Reference + # + # source://spoom//lib/spoom/model/reference.rb#25 sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) } def method(name, location); end end end -# source://spoom//lib/spoom/model/reference.rb#13 +# source://spoom//lib/spoom/model/reference.rb#11 class Spoom::Model::Reference::Kind < ::T::Enum enums do Constant = new @@ -3517,131 +4801,193 @@ end # # source://spoom//lib/spoom/model/references_visitor.rb#7 class Spoom::Model::ReferencesVisitor < ::Spoom::Visitor - # source://spoom//lib/spoom/model/references_visitor.rb#14 + # : (String file) -> void + # + # @return [ReferencesVisitor] a new instance of ReferencesVisitor + # + # source://spoom//lib/spoom/model/references_visitor.rb#12 sig { params(file: ::String).void } def initialize(file); end - # source://spoom//lib/spoom/model/references_visitor.rb#11 + # : Array[Reference] + # + # source://spoom//lib/spoom/model/references_visitor.rb#9 sig { returns(T::Array[::Spoom::Model::Reference]) } def references; end - # source://spoom//lib/spoom/model/references_visitor.rb#22 + # : (Prism::AliasMethodNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#21 sig { override.params(node: ::Prism::AliasMethodNode).void } def visit_alias_method_node(node); end + # : (Prism::AndNode node) -> void + # # source://spoom//lib/spoom/model/references_visitor.rb#27 sig { override.params(node: ::Prism::AndNode).void } def visit_and_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#33 + # : (Prism::BlockArgumentNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#34 sig { override.params(node: ::Prism::BlockArgumentNode).void } def visit_block_argument_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#44 + # : (Prism::CallAndWriteNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#46 sig { override.params(node: ::Prism::CallAndWriteNode).void } def visit_call_and_write_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#68 + # : (Prism::CallNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#73 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#52 + # : (Prism::CallOperatorWriteNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#55 sig { override.params(node: ::Prism::CallOperatorWriteNode).void } def visit_call_operator_write_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#60 + # : (Prism::CallOrWriteNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#64 sig { override.params(node: ::Prism::CallOrWriteNode).void } def visit_call_or_write_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#85 + # : (Prism::ClassNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#91 sig { override.params(node: ::Prism::ClassNode).void } def visit_class_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#91 + # : (Prism::ConstantAndWriteNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#98 sig { override.params(node: ::Prism::ConstantAndWriteNode).void } def visit_constant_and_write_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#97 + # : (Prism::ConstantOperatorWriteNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#105 sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void } def visit_constant_operator_write_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#103 + # : (Prism::ConstantOrWriteNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#112 sig { override.params(node: ::Prism::ConstantOrWriteNode).void } def visit_constant_or_write_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#109 + # : (Prism::ConstantPathNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#119 sig { override.params(node: ::Prism::ConstantPathNode).void } def visit_constant_path_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#115 + # : (Prism::ConstantPathWriteNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#126 sig { override.params(node: ::Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#121 + # : (Prism::ConstantReadNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#133 sig { override.params(node: ::Prism::ConstantReadNode).void } def visit_constant_read_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#126 + # : (Prism::ConstantWriteNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#139 sig { override.params(node: ::Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#131 + # : (Prism::LocalVariableAndWriteNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#145 sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void } def visit_local_variable_and_write_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#139 + # : (Prism::LocalVariableOperatorWriteNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#154 sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void } def visit_local_variable_operator_write_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#147 + # : (Prism::LocalVariableOrWriteNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#163 sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void } def visit_local_variable_or_write_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#155 + # : (Prism::LocalVariableWriteNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#172 sig { override.params(node: ::Prism::LocalVariableWriteNode).void } def visit_local_variable_write_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#161 + # : (Prism::ModuleNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#179 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#166 + # : (Prism::MultiWriteNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#185 sig { override.params(node: ::Prism::MultiWriteNode).void } def visit_multi_write_node(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#177 + # : (Prism::OrNode node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#197 sig { override.params(node: ::Prism::OrNode).void } def visit_or_node(node); end private - # source://spoom//lib/spoom/model/references_visitor.rb#195 + # : (Prism::Node node) -> Location + # + # source://spoom//lib/spoom/model/references_visitor.rb#215 sig { params(node: ::Prism::Node).returns(::Spoom::Location) } def node_location(node); end - # source://spoom//lib/spoom/model/references_visitor.rb#185 + # : (String name, Prism::Node node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#205 sig { params(name: ::String, node: ::Prism::Node).void } def reference_constant(name, node); end - # source://spoom//lib/spoom/model/references_visitor.rb#190 + # : (String name, Prism::Node node) -> void + # + # source://spoom//lib/spoom/model/references_visitor.rb#210 sig { params(name: ::String, node: ::Prism::Node).void } def reference_method(name, node); end end # A Sorbet signature (sig block) # -# source://spoom//lib/spoom/model/model.rb#216 +# source://spoom//lib/spoom/model/model.rb#215 class Spoom::Model::Sig - # source://spoom//lib/spoom/model/model.rb#223 + # : (String string) -> void + # + # @return [Sig] a new instance of Sig + # + # source://spoom//lib/spoom/model/model.rb#220 sig { params(string: ::String).void } def initialize(string); end - # source://spoom//lib/spoom/model/model.rb#220 + # : String + # + # source://spoom//lib/spoom/model/model.rb#217 sig { returns(::String) } def string; end end -# source://spoom//lib/spoom/model/model.rb#115 +# source://spoom//lib/spoom/model/model.rb#130 class Spoom::Model::SingletonClass < ::Spoom::Model::Namespace; end # A Symbol is a uniquely named entity in the Ruby codebase @@ -3650,31 +4996,46 @@ class Spoom::Model::SingletonClass < ::Spoom::Model::Namespace; end # Sometimes a symbol can have multiple definitions of different types, # e.g. `foo` method can be defined both as a method and as an attribute accessor. # -# source://spoom//lib/spoom/model/model.rb#15 +# source://spoom//lib/spoom/model/model.rb#27 +# A Symbol is a uniquely named entity in the Ruby codebase +# A symbol can have multiple definitions, e.g. a class can be reopened. +# Sometimes a symbol can have multiple definitions of different types, class Spoom::Model::Symbol - # source://spoom//lib/spoom/model/model.rb#27 + # : (String full_name) -> void + # + # @return [Symbol] a new instance of Symbol + # + # source://spoom//lib/spoom/model/model.rb#37 sig { params(full_name: ::String).void } def initialize(full_name); end # The definitions of this symbol (where it exists in the code) + # : Array[SymbolDef] # - # source://spoom//lib/spoom/model/model.rb#24 + # source://spoom//lib/spoom/model/model.rb#34 + # The definitions of this symbol (where it exists in the code) sig { returns(T::Array[::Spoom::Model::SymbolDef]) } def definitions; end # The full, unique name of this symbol + # : String # - # source://spoom//lib/spoom/model/model.rb#20 + # source://spoom//lib/spoom/model/model.rb#30 + # The full, unique name of this symbol sig { returns(::String) } def full_name; end # The short name of this symbol + # : -> String # - # source://spoom//lib/spoom/model/model.rb#34 + # source://spoom//lib/spoom/model/model.rb#44 + # The short name of this symbol sig { returns(::String) } def name; end - # source://spoom//lib/spoom/model/model.rb#39 + # : -> String + # + # source://spoom//lib/spoom/model/model.rb#49 sig { returns(::String) } def to_s; end end @@ -3686,54 +5047,81 @@ end # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom//lib/spoom/model/model.rb#55 +# source://spoom//lib/spoom/model/model.rb#66 +# A SymbolDef is a definition of a Symbol +# It can be a class, module, constant, method, etc. class Spoom::Model::SymbolDef abstract! - # source://spoom//lib/spoom/model/model.rb#74 + # : (Symbol symbol, owner: Namespace?, location: Location, ?comments: Array[Comment]) -> void + # + # @return [SymbolDef] a new instance of SymbolDef + # + # source://spoom//lib/spoom/model/model.rb#88 sig do params( symbol: ::Spoom::Model::Symbol, owner: T.nilable(::Spoom::Model::Namespace), - location: ::Spoom::Location + location: ::Spoom::Location, + comments: T::Array[::Spoom::Model::Comment] ).void end - def initialize(symbol, owner:, location:); end + def initialize(symbol, owner:, location:, comments:); end - # The full name of the symbol this definition belongs to + # The comments associated with this definition + # : Array[Comment] # # source://spoom//lib/spoom/model/model.rb#85 + # The comments associated with this definition + sig { returns(T::Array[::Spoom::Model::Comment]) } + def comments; end + + # The full name of the symbol this definition belongs to + # : -> String + # + # source://spoom//lib/spoom/model/model.rb#100 + # The full name of the symbol this definition belongs to sig { returns(::String) } def full_name; end # The actual code location of this definition + # : Location # - # source://spoom//lib/spoom/model/model.rb#71 + # source://spoom//lib/spoom/model/model.rb#81 + # The actual code location of this definition sig { returns(::Spoom::Location) } def location; end # The short name of the symbol this definition belongs to + # : -> String # - # source://spoom//lib/spoom/model/model.rb#91 + # source://spoom//lib/spoom/model/model.rb#106 + # The short name of the symbol this definition belongs to sig { returns(::String) } def name; end # The enclosing namespace this definition belongs to + # : Namespace? # - # source://spoom//lib/spoom/model/model.rb#67 + # source://spoom//lib/spoom/model/model.rb#77 + # The enclosing namespace this definition belongs to sig { returns(T.nilable(::Spoom::Model::Namespace)) } def owner; end # The symbol this definition belongs to + # : Symbol # - # source://spoom//lib/spoom/model/model.rb#63 + # source://spoom//lib/spoom/model/model.rb#73 + # The symbol this definition belongs to sig { returns(::Spoom::Model::Symbol) } def symbol; end end -# source://spoom//lib/spoom/model/model.rb#44 +# source://spoom//lib/spoom/model/model.rb#54 class Spoom::Model::UnresolvedSymbol < ::Spoom::Model::Symbol - # source://spoom//lib/spoom/model/model.rb#46 + # : -> String + # + # source://spoom//lib/spoom/model/model.rb#57 sig { override.returns(::String) } def to_s; end end @@ -3756,22 +5144,31 @@ class Spoom::ParseError < ::Spoom::Error; end # It can be used to represent a hierarchy of classes or modules, the dependencies between gems, etc. # # source://spoom//lib/spoom/poset.rb#9 +# A Poset is a set of elements with a partial order relation. +# The partial order relation is a binary relation that is reflexive, antisymmetric, and transitive. class Spoom::Poset extend T::Generic E = type_member { { upper: Object } } - # source://spoom//lib/spoom/poset.rb#18 + # : -> void + # + # @return [Poset] a new instance of Poset + # + # source://spoom//lib/spoom/poset.rb#17 sig { void } def initialize; end # Get the POSet element for a given value # # Raises if the element is not found + # : (E value) -> Element[E] # # @raise [Error] # - # source://spoom//lib/spoom/poset.rb#26 + # source://spoom//lib/spoom/poset.rb#25 + # Get the POSet element for a given value + # Raises if the element is not found sig { params(value: E).returns(Spoom::Poset::Element[E]) } def [](value); end @@ -3780,333 +5177,739 @@ class Spoom::Poset # Transitive edges (transitive closure) are automatically computed. # Adds the elements if they don't exist. # If the direct edge already exists, nothing is done. + # : (E from, E to) -> void # - # source://spoom//lib/spoom/poset.rb#54 + # source://spoom//lib/spoom/poset.rb#53 + # Add a direct edge from one element to another + # Transitive edges (transitive closure) are automatically computed. + # Adds the elements if they don't exist. + # If the direct edge already exists, nothing is done. sig { params(from: E, to: E).void } def add_direct_edge(from, to); end # Add an element to the POSet + # : (E value) -> Element[E] # - # source://spoom//lib/spoom/poset.rb#35 + # source://spoom//lib/spoom/poset.rb#34 + # Add an element to the POSet sig { params(value: E).returns(Spoom::Poset::Element[E]) } def add_element(value); end # Is there a direct edge from `from` to `to`? + # : (E from, E to) -> bool + # + # @return [Boolean] # - # source://spoom//lib/spoom/poset.rb#101 + # source://spoom//lib/spoom/poset.rb#100 + # Is there a direct edge from `from` to `to`? sig { params(from: E, to: E).returns(T::Boolean) } def direct_edge?(from, to); end # Is there an edge (direct or indirect) from `from` to `to`? + # : (E from, E to) -> bool + # + # @return [Boolean] # - # source://spoom//lib/spoom/poset.rb#92 + # source://spoom//lib/spoom/poset.rb#91 + # Is there an edge (direct or indirect) from `from` to `to`? sig { params(from: E, to: E).returns(T::Boolean) } def edge?(from, to); end # Is the given value a element in the POSet? + # : (E value) -> bool # - # source://spoom//lib/spoom/poset.rb#44 + # @return [Boolean] + # + # source://spoom//lib/spoom/poset.rb#43 + # Is the given value a element in the POSet? sig { params(value: E).returns(T::Boolean) } def element?(value); end # Show the POSet as a DOT graph using xdot (used for debugging) + # : (?direct: bool, ?transitive: bool) -> void # - # source://spoom//lib/spoom/poset.rb#107 + # source://spoom//lib/spoom/poset.rb#106 + # Show the POSet as a DOT graph using xdot (used for debugging) sig { params(direct: T::Boolean, transitive: T::Boolean).void } def show_dot(direct: T.unsafe(nil), transitive: T.unsafe(nil)); end # Return the POSet as a DOT graph + # : (?direct: bool, ?transitive: bool) -> String # - # source://spoom//lib/spoom/poset.rb#116 + # source://spoom//lib/spoom/poset.rb#115 + # Return the POSet as a DOT graph sig { params(direct: T::Boolean, transitive: T::Boolean).returns(::String) } def to_dot(direct: T.unsafe(nil), transitive: T.unsafe(nil)); end end # An element in a POSet # -# source://spoom//lib/spoom/poset.rb#136 +# source://spoom//lib/spoom/poset.rb#135 class Spoom::Poset::Element extend T::Generic include ::Comparable E = type_member { { upper: Object } } - # source://spoom//lib/spoom/poset.rb#152 + # : (E value) -> void + # + # @return [Element] a new instance of Element + # + # source://spoom//lib/spoom/poset.rb#150 sig { params(value: E).void } def initialize(value); end - # source://spoom//lib/spoom/poset.rb#161 + # : (untyped other) -> Integer? + # + # source://spoom//lib/spoom/poset.rb#159 sig { params(other: T.untyped).returns(T.nilable(::Integer)) } def <=>(other); end # Direct and indirect ancestors of this element + # : -> Array[E] # - # source://spoom//lib/spoom/poset.rb#180 + # source://spoom//lib/spoom/poset.rb#178 + # Direct and indirect ancestors of this element sig { returns(T::Array[E]) } def ancestors; end # Direct children of this element + # : -> Array[E] # - # source://spoom//lib/spoom/poset.rb#186 + # source://spoom//lib/spoom/poset.rb#184 + # Direct children of this element sig { returns(T::Array[E]) } def children; end # Direct and indirect descendants of this element + # : -> Array[E] # - # source://spoom//lib/spoom/poset.rb#192 + # source://spoom//lib/spoom/poset.rb#190 + # Direct and indirect descendants of this element sig { returns(T::Array[E]) } def descendants; end # Edges (direct and indirect) from this element to other elements in the same POSet + # : Set[Element[E]] # + # source://spoom//lib/spoom/poset.rb#147 + # Edges (direct and indirect) from this element to other elements in the same POSet # @return [Set] - # - # source://spoom//lib/spoom/poset.rb#149 def dfroms; end # Edges (direct and indirect) from this element to other elements in the same POSet + # : Set[Element[E]] # - # source://spoom//lib/spoom/poset.rb#149 + # source://spoom//lib/spoom/poset.rb#147 + # Edges (direct and indirect) from this element to other elements in the same POSet sig { returns(T::Set[Spoom::Poset::Element[E]]) } def dtos; end # Edges (direct and indirect) from this element to other elements in the same POSet + # : Set[Element[E]] # + # source://spoom//lib/spoom/poset.rb#147 + # Edges (direct and indirect) from this element to other elements in the same POSet # @return [Set] - # - # source://spoom//lib/spoom/poset.rb#149 def froms; end # Direct parents of this element + # : -> Array[E] # - # source://spoom//lib/spoom/poset.rb#174 + # source://spoom//lib/spoom/poset.rb#172 + # Direct parents of this element sig { returns(T::Array[E]) } def parents; end # Edges (direct and indirect) from this element to other elements in the same POSet + # : Set[Element[E]] # + # source://spoom//lib/spoom/poset.rb#147 + # Edges (direct and indirect) from this element to other elements in the same POSet # @return [Set] - # - # source://spoom//lib/spoom/poset.rb#149 def tos; end # The value held by this element + # : E # - # source://spoom//lib/spoom/poset.rb#145 + # source://spoom//lib/spoom/poset.rb#143 + # The value held by this element sig { returns(E) } def value; end end -# source://spoom//lib/spoom/poset.rb#13 +# source://spoom//lib/spoom/poset.rb#12 class Spoom::Poset::Error < ::Spoom::Error; end # source://spoom//lib/spoom/printer.rb#7 class Spoom::Printer include ::Spoom::Colorize - # source://spoom//lib/spoom/printer.rb#17 + # : (?out: (IO | StringIO), ?colors: bool, ?indent_level: Integer) -> void + # + # @return [Printer] a new instance of Printer + # + # source://spoom//lib/spoom/printer.rb#14 sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean, indent_level: ::Integer).void } def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end # Colorize `string` with color if `@colors` + # : (String string, *Spoom::Color color) -> String # - # source://spoom//lib/spoom/printer.rb#78 + # source://spoom//lib/spoom/printer.rb#75 + # Colorize `string` with color if `@colors` sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } def colorize(string, *color); end # Decrease indent level + # : -> void # - # source://spoom//lib/spoom/printer.rb#31 + # source://spoom//lib/spoom/printer.rb#28 + # Decrease indent level sig { void } def dedent; end # Increase indent level + # : -> void # - # source://spoom//lib/spoom/printer.rb#25 + # source://spoom//lib/spoom/printer.rb#22 + # Increase indent level sig { void } def indent; end - # source://spoom//lib/spoom/printer.rb#14 + # : (IO | StringIO) + # + # source://spoom//lib/spoom/printer.rb#11 sig { returns(T.any(::IO, ::StringIO)) } def out; end - # @return [IO, StringIO] + # : (IO | StringIO) # - # source://spoom//lib/spoom/printer.rb#14 + # source://spoom//lib/spoom/printer.rb#11 + # @return [IO, StringIO] def out=(_arg0); end # Print `string` into `out` + # : (String? string) -> void # - # source://spoom//lib/spoom/printer.rb#37 + # source://spoom//lib/spoom/printer.rb#34 + # Print `string` into `out` sig { params(string: T.nilable(::String)).void } def print(string); end # Print `string` colored with `color` into `out` # # Does not use colors unless `@colors`. + # : (String? string, *Color color) -> void # - # source://spoom//lib/spoom/printer.rb#47 + # source://spoom//lib/spoom/printer.rb#44 + # Print `string` colored with `color` into `out` + # Does not use colors unless `@colors`. sig { params(string: T.nilable(::String), color: ::Spoom::Color).void } def print_colored(string, *color); end # Print `string` with indent and newline + # : (String? string) -> void # - # source://spoom//lib/spoom/printer.rb#62 + # source://spoom//lib/spoom/printer.rb#59 + # Print `string` with indent and newline sig { params(string: T.nilable(::String)).void } def printl(string); end # Print a new line into `out` + # : -> void # - # source://spoom//lib/spoom/printer.rb#56 + # source://spoom//lib/spoom/printer.rb#53 + # Print a new line into `out` sig { void } def printn; end # Print an indent space into `out` + # : -> void # - # source://spoom//lib/spoom/printer.rb#72 + # source://spoom//lib/spoom/printer.rb#69 + # Print an indent space into `out` sig { void } def printt; end end -# source://spoom//lib/spoom.rb#10 +# source://spoom//lib/spoom.rb#8 Spoom::SPOOM_PATH = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/sorbet/config.rb#5 +# source://spoom//lib/spoom/sorbet/assertions.rb#7 module Spoom::Sorbet; end -# source://spoom//lib/spoom/sorbet.rb#39 -Spoom::Sorbet::BIN_PATH = T.let(T.unsafe(nil), String) +# source://spoom//lib/spoom/sorbet/assertions.rb#8 +class Spoom::Sorbet::Assertions + class << self + # : (String, file: String) -> String + # + # source://spoom//lib/spoom/sorbet/assertions.rb#11 + sig { params(ruby_contents: ::String, file: ::String).returns(::String) } + def rbi_to_rbs(ruby_contents, file:); end -# source://spoom//lib/spoom/sorbet.rb#36 -Spoom::Sorbet::CONFIG_PATH = T.let(T.unsafe(nil), String) + private -# Parse Sorbet config files -# -# Parses a Sorbet config file: -# -# ```ruby -# config = Spoom::Sorbet::Config.parse_file("sorbet/config") -# puts config.paths # "." -# ``` -# -# Parses a Sorbet config string: -# -# ```ruby -# config = Spoom::Sorbet::Config.parse_string(<<~CONFIG) -# a -# --file=b -# --ignore=c -# CONFIG -# puts config.paths # "a", "b" -# puts config.ignore # "c" -# ``` -# -# source://spoom//lib/spoom/sorbet/config.rb#26 -class Spoom::Sorbet::Config - # source://spoom//lib/spoom/sorbet/config.rb#38 - sig { void } - def initialize; end + # : (String, file: String) -> Array[AssignNode] + # + # source://spoom//lib/spoom/sorbet/assertions.rb#46 + sig { params(ruby_contents: ::String, file: ::String).returns(T::Array[::Spoom::Sorbet::Assertions::AssignNode]) } + def collect_assigns(ruby_contents, file:); end - # @return [Array] + # : (AssignNode) -> String + # + # source://spoom//lib/spoom/sorbet/assertions.rb#54 + sig { params(assign: ::Spoom::Sorbet::Assertions::AssignNode).returns(::String) } + def dedent_value(assign); end + end +end + +# source://spoom//lib/spoom/sorbet/assertions.rb#122 +class Spoom::Sorbet::Assertions::AssignNode + # : (AssignType, Prism::Location, Prism::Node, Prism::Node) -> void # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def allowed_extensions; end + # @return [AssignNode] a new instance of AssignNode + # + # source://spoom//lib/spoom/sorbet/assertions.rb#133 + sig do + params( + node: T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode), + operator_loc: ::Prism::Location, + value: ::Prism::Node, + type: ::Prism::Node + ).void + end + def initialize(node, operator_loc, value, type); end - # @return [Array] + # : AssignType # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def allowed_extensions=(_arg0); end + # source://spoom//lib/spoom/sorbet/assertions.rb#124 + sig do + returns(T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode)) + end + def node; end - # source://spoom//lib/spoom/sorbet/config.rb#46 - sig { returns(::Spoom::Sorbet::Config) } - def copy; end + # : Prism::Location + # + # source://spoom//lib/spoom/sorbet/assertions.rb#127 + sig { returns(::Prism::Location) } + def operator_loc; end - # @return [Array] + # : -> String # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def ignore; end + # source://spoom//lib/spoom/sorbet/assertions.rb#141 + sig { returns(::String) } + def rbs_type; end - # @return [Array] + # : Prism::Node # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def ignore=(_arg0); end + # source://spoom//lib/spoom/sorbet/assertions.rb#130 + # @return [Prism::Node] + def type; end - # source://spoom//lib/spoom/sorbet/config.rb#35 - sig { returns(T::Boolean) } - def no_stdlib; end + # : Prism::Node + # + # source://spoom//lib/spoom/sorbet/assertions.rb#130 + sig { returns(::Prism::Node) } + def value; end +end - # @return [Boolean] +# source://spoom//lib/spoom/sorbet/assertions.rb#93 +Spoom::Sorbet::Assertions::AssignType = T.type_alias { T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode) } + +# source://spoom//lib/spoom/sorbet/assertions.rb#146 +class Spoom::Sorbet::Assertions::Locator < ::Spoom::Visitor + # : -> void # - # source://spoom//lib/spoom/sorbet/config.rb#35 - def no_stdlib=(_arg0); end + # @return [Locator] a new instance of Locator + # + # source://spoom//lib/spoom/sorbet/assertions.rb#153 + sig { void } + def initialize; end - # Returns self as a string of options that can be passed to Sorbet + # : Array[AssignNode] # - # Example: - # ~~~rb - # config = Sorbet::Config.new - # config.paths << "/foo" - # config.paths << "/bar" - # config.ignore << "/baz" - # config.allowed_extensions << ".rb" + # source://spoom//lib/spoom/sorbet/assertions.rb#150 + sig { returns(T::Array[::Spoom::Sorbet::Assertions::AssignNode]) } + def assigns; end + + # : (Prism::Node) -> bool # - # puts config.options_string # "/foo /bar --ignore /baz --allowed-extension .rb" - # ~~~ + # @return [Boolean] # - # source://spoom//lib/spoom/sorbet/config.rb#68 - sig { returns(::String) } - def options_string; end + # source://spoom//lib/spoom/sorbet/assertions.rb#245 + sig { params(node: ::Prism::Node).returns(T::Boolean) } + def contains_heredoc?(node); end - # source://spoom//lib/spoom/sorbet/config.rb#32 + # Is this node a `T` or `::T` constant? + # : (Prism::Node?) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/sorbet/assertions.rb#223 + # Is this node a `T` or `::T` constant? + sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } + def t?(node); end + + # Is this node a `T.let` or `T.cast`? + # : (Prism::CallNode) -> bool + # + # @return [Boolean] + # + # source://spoom//lib/spoom/sorbet/assertions.rb#236 + # Is this node a `T.let` or `T.cast`? + sig { params(node: ::Prism::CallNode).returns(T::Boolean) } + def t_annotation?(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + sig do + params( + node: T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode) + ).void + end + def visit_assign(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_class_variable_and_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_class_variable_operator_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_class_variable_or_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_class_variable_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_constant_and_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_constant_operator_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_constant_or_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_constant_path_and_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_constant_path_operator_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_constant_path_or_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_constant_path_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_constant_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_global_variable_and_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_global_variable_operator_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_global_variable_or_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_global_variable_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_instance_variable_and_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_instance_variable_operator_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_instance_variable_or_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_instance_variable_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_local_variable_and_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_local_variable_operator_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_local_variable_or_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_local_variable_write_node(node); end + + # : (AssignType) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#159 + def visit_multi_write_node(node); end +end + +# source://spoom//lib/spoom/sorbet/assertions.rb#147 +Spoom::Sorbet::Assertions::Locator::ANNOTATION_METHODS = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/sorbet/assertions.rb#251 +class Spoom::Sorbet::Assertions::Locator::HeredocVisitor < ::Spoom::Visitor + # : -> void + # + # @return [HeredocVisitor] a new instance of HeredocVisitor + # + # source://spoom//lib/spoom/sorbet/assertions.rb#256 + sig { void } + def initialize; end + + # : bool + # + # source://spoom//lib/spoom/sorbet/assertions.rb#253 + sig { returns(T::Boolean) } + def contains_heredoc; end + + # : (Prism::Node?) -> void + # + # source://spoom//lib/spoom/sorbet/assertions.rb#264 + sig { override.params(node: T.nilable(::Prism::Node)).void } + def visit(node); end +end + +# source://spoom//lib/spoom/sorbet.rb#33 +Spoom::Sorbet::BIN_PATH = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet.rb#30 +Spoom::Sorbet::CONFIG_PATH = T.let(T.unsafe(nil), String) + +# Parse Sorbet config files +# +# Parses a Sorbet config file: +# +# ```ruby +# config = Spoom::Sorbet::Config.parse_file("sorbet/config") +# puts config.paths # "." +# ``` +# +# Parses a Sorbet config string: +# +# ```ruby +# config = Spoom::Sorbet::Config.parse_string(<<~CONFIG) +# a +# --file=b +# --ignore=c +# CONFIG +# puts config.paths # "a", "b" +# puts config.ignore # "c" +# ``` +# +# source://spoom//lib/spoom/sorbet/config.rb#26 +# Parse Sorbet config files +# Parses a Sorbet config file: +# ```ruby +# config = Spoom::Sorbet::Config.parse_file("sorbet/config") +# puts config.paths # "." +# Parses a Sorbet config string: +# config = Spoom::Sorbet::Config.parse_string(<<~CONFIG) +# a +# --file=b +# --ignore=c +# CONFIG +# puts config.paths # "a", "b" +# puts config.ignore # "c" +class Spoom::Sorbet::Config + # : -> void + # + # @return [Config] a new instance of Config + # + # source://spoom//lib/spoom/sorbet/config.rb#36 + sig { void } + def initialize; end + + # : Array[String] + # + # source://spoom//lib/spoom/sorbet/config.rb#30 + # @return [Array] + def allowed_extensions; end + + # : Array[String] + # + # source://spoom//lib/spoom/sorbet/config.rb#30 + # @return [Array] + def allowed_extensions=(_arg0); end + + # : -> Config + # + # source://spoom//lib/spoom/sorbet/config.rb#44 + sig { returns(::Spoom::Sorbet::Config) } + def copy; end + + # : Array[String] + # + # source://spoom//lib/spoom/sorbet/config.rb#30 + # @return [Array] + def ignore; end + + # : Array[String] + # + # source://spoom//lib/spoom/sorbet/config.rb#30 + # @return [Array] + def ignore=(_arg0); end + + # : bool + # + # source://spoom//lib/spoom/sorbet/config.rb#33 + sig { returns(T::Boolean) } + def no_stdlib; end + + # : bool + # + # source://spoom//lib/spoom/sorbet/config.rb#33 + # @return [Boolean] + def no_stdlib=(_arg0); end + + # Returns self as a string of options that can be passed to Sorbet + # + # Example: + # ~~~rb + # config = Sorbet::Config.new + # config.paths << "/foo" + # config.paths << "/bar" + # config.ignore << "/baz" + # config.allowed_extensions << ".rb" + # + # puts config.options_string # "/foo /bar --ignore /baz --allowed-extension .rb" + # ~~~ + # : -> String + # + # source://spoom//lib/spoom/sorbet/config.rb#66 + # Returns self as a string of options that can be passed to Sorbet + # Example: + # ~~~rb + # config = Sorbet::Config.new + # config.paths << "/foo" + # config.paths << "/bar" + # config.ignore << "/baz" + # config.allowed_extensions << ".rb" + # puts config.options_string # "/foo /bar --ignore /baz --allowed-extension .rb" + # ~~~ + sig { returns(::String) } + def options_string; end + + # : Array[String] + # + # source://spoom//lib/spoom/sorbet/config.rb#30 sig { returns(T::Array[::String]) } def paths; end - # @return [Array] + # : Array[String] # - # source://spoom//lib/spoom/sorbet/config.rb#32 + # source://spoom//lib/spoom/sorbet/config.rb#30 + # @return [Array] def paths=(_arg0); end class << self - # source://spoom//lib/spoom/sorbet/config.rb#81 + # : (String sorbet_config_path) -> Spoom::Sorbet::Config + # + # source://spoom//lib/spoom/sorbet/config.rb#77 sig { params(sorbet_config_path: ::String).returns(::Spoom::Sorbet::Config) } def parse_file(sorbet_config_path); end - # source://spoom//lib/spoom/sorbet/config.rb#86 + # : (String sorbet_config) -> Spoom::Sorbet::Config + # + # source://spoom//lib/spoom/sorbet/config.rb#82 sig { params(sorbet_config: ::String).returns(::Spoom::Sorbet::Config) } def parse_string(sorbet_config); end private - # source://spoom//lib/spoom/sorbet/config.rb#147 + # : (String line) -> String + # + # source://spoom//lib/spoom/sorbet/config.rb#143 sig { params(line: ::String).returns(::String) } def parse_option(line); end end end -# source://spoom//lib/spoom/sorbet/config.rb#29 +# source://spoom//lib/spoom/sorbet/config.rb#27 Spoom::Sorbet::Config::DEFAULT_ALLOWED_EXTENSIONS = T.let(T.unsafe(nil), Array) -# source://spoom//lib/spoom/sorbet.rb#14 +# source://spoom//lib/spoom/sorbet.rb#15 class Spoom::Sorbet::Error < ::Spoom::Error - # source://spoom//lib/spoom/sorbet.rb#29 + # : (String message, ExecResult result) -> void + # + # @return [Error] a new instance of Error + # + # source://spoom//lib/spoom/sorbet.rb#23 sig { params(message: ::String, result: ::Spoom::ExecResult).void } def initialize(message, result); end - # source://spoom//lib/spoom/sorbet.rb#21 + # : ExecResult + # + # source://spoom//lib/spoom/sorbet.rb#20 sig { returns(::Spoom::ExecResult) } def result; end end -# source://spoom//lib/spoom/sorbet.rb#17 +# source://spoom//lib/spoom/sorbet.rb#16 class Spoom::Sorbet::Error::Killed < ::Spoom::Sorbet::Error; end -# source://spoom//lib/spoom/sorbet.rb#18 +# source://spoom//lib/spoom/sorbet.rb#17 class Spoom::Sorbet::Error::Segfault < ::Spoom::Sorbet::Error; end # source://spoom//lib/spoom/sorbet/errors.rb#6 module Spoom::Sorbet::Errors class << self - # source://spoom//lib/spoom/sorbet/errors.rb#13 + # : (Array[Error] errors) -> Array[Error] + # + # source://spoom//lib/spoom/sorbet/errors.rb#11 sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error]).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } def sort_errors_by_code(errors); end end @@ -4115,11 +5918,15 @@ end # source://spoom//lib/spoom/sorbet/errors.rb#7 Spoom::Sorbet::Errors::DEFAULT_ERROR_URL_BASE = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/sorbet/errors.rb#127 +# source://spoom//lib/spoom/sorbet/errors.rb#121 class Spoom::Sorbet::Errors::Error include ::Comparable - # source://spoom//lib/spoom/sorbet/errors.rb#153 + # : (String? file, Integer? line, String? message, Integer? code, ?Array[String] more) -> void + # + # @return [Error] a new instance of Error + # + # source://spoom//lib/spoom/sorbet/errors.rb#138 sig do params( file: T.nilable(::String), @@ -4132,118 +5939,156 @@ class Spoom::Sorbet::Errors::Error def initialize(file, line, message, code, more = T.unsafe(nil)); end # By default errors are sorted by location + # : (untyped other) -> Integer # - # source://spoom//lib/spoom/sorbet/errors.rb#164 + # source://spoom//lib/spoom/sorbet/errors.rb#149 + # By default errors are sorted by location sig { params(other: T.untyped).returns(::Integer) } def <=>(other); end - # @return [Integer, nil] + # : Integer? # - # source://spoom//lib/spoom/sorbet/errors.rb#135 + # source://spoom//lib/spoom/sorbet/errors.rb#128 + # @return [Integer, nil] def code; end - # source://spoom//lib/spoom/sorbet/errors.rb#132 + # : String? + # + # source://spoom//lib/spoom/sorbet/errors.rb#125 sig { returns(T.nilable(::String)) } def file; end # Other files associated with the error + # : Set[String] # - # source://spoom//lib/spoom/sorbet/errors.rb#142 + # source://spoom//lib/spoom/sorbet/errors.rb#135 + # Other files associated with the error sig { returns(T::Set[::String]) } def files_from_error_sections; end - # source://spoom//lib/spoom/sorbet/errors.rb#135 + # : Integer? + # + # source://spoom//lib/spoom/sorbet/errors.rb#128 sig { returns(T.nilable(::Integer)) } def line; end - # @return [String, nil] + # : String? # - # source://spoom//lib/spoom/sorbet/errors.rb#132 + # source://spoom//lib/spoom/sorbet/errors.rb#125 + # @return [String, nil] def message; end - # source://spoom//lib/spoom/sorbet/errors.rb#138 + # : Array[String] + # + # source://spoom//lib/spoom/sorbet/errors.rb#131 sig { returns(T::Array[::String]) } def more; end - # source://spoom//lib/spoom/sorbet/errors.rb#171 + # : -> String + # + # source://spoom//lib/spoom/sorbet/errors.rb#156 sig { returns(::String) } def to_s; end end # Parse errors from Sorbet output # -# source://spoom//lib/spoom/sorbet/errors.rb#18 +# source://spoom//lib/spoom/sorbet/errors.rb#16 class Spoom::Sorbet::Errors::Parser - # source://spoom//lib/spoom/sorbet/errors.rb#45 + # : (?error_url_base: String) -> void + # + # @return [Parser] a new instance of Parser + # + # source://spoom//lib/spoom/sorbet/errors.rb#39 sig { params(error_url_base: ::String).void } def initialize(error_url_base: T.unsafe(nil)); end - # source://spoom//lib/spoom/sorbet/errors.rb#52 + # : (String output) -> Array[Error] + # + # source://spoom//lib/spoom/sorbet/errors.rb#46 sig { params(output: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } def parse(output); end private + # : (String line) -> void + # # @raise [ParseError] # - # source://spoom//lib/spoom/sorbet/errors.rb#116 + # source://spoom//lib/spoom/sorbet/errors.rb#110 sig { params(line: ::String).void } def append_error(line); end + # : -> void + # # @raise [ParseError] # - # source://spoom//lib/spoom/sorbet/errors.rb#108 + # source://spoom//lib/spoom/sorbet/errors.rb#102 sig { void } def close_error; end - # source://spoom//lib/spoom/sorbet/errors.rb#75 + # : (String error_url_base) -> Regexp + # + # source://spoom//lib/spoom/sorbet/errors.rb#69 sig { params(error_url_base: ::String).returns(::Regexp) } def error_line_match_regexp(error_url_base); end - # source://spoom//lib/spoom/sorbet/errors.rb#92 + # : (String line) -> Error? + # + # source://spoom//lib/spoom/sorbet/errors.rb#86 sig { params(line: ::String).returns(T.nilable(::Spoom::Sorbet::Errors::Error)) } def match_error_line(line); end + # : (Error error) -> void + # # @raise [ParseError] # - # source://spoom//lib/spoom/sorbet/errors.rb#101 + # source://spoom//lib/spoom/sorbet/errors.rb#95 sig { params(error: ::Spoom::Sorbet::Errors::Error).void } def open_error(error); end class << self - # source://spoom//lib/spoom/sorbet/errors.rb#38 + # : (String output, ?error_url_base: String) -> Array[Error] + # + # source://spoom//lib/spoom/sorbet/errors.rb#32 sig { params(output: ::String, error_url_base: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } def parse_string(output, error_url_base: T.unsafe(nil)); end end end -# source://spoom//lib/spoom/sorbet/errors.rb#23 +# source://spoom//lib/spoom/sorbet/errors.rb#19 Spoom::Sorbet::Errors::Parser::HEADER = T.let(T.unsafe(nil), Array) -# source://spoom//lib/spoom/sorbet/errors.rb#21 +# source://spoom//lib/spoom/sorbet/errors.rb#17 class Spoom::Sorbet::Errors::Parser::ParseError < ::Spoom::Error; end -# source://spoom//lib/spoom/sorbet.rb#37 +# source://spoom//lib/spoom/sorbet.rb#31 Spoom::Sorbet::GEM_PATH = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/sorbet.rb#38 +# source://spoom//lib/spoom/sorbet.rb#32 Spoom::Sorbet::GEM_VERSION = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/sorbet.rb#41 +# source://spoom//lib/spoom/sorbet.rb#35 Spoom::Sorbet::KILLED_CODE = T.let(T.unsafe(nil), Integer) # source://spoom//lib/spoom/sorbet/metrics.rb#8 module Spoom::Sorbet::MetricsParser class << self - # source://spoom//lib/spoom/sorbet/metrics.rb#15 + # : (String path, ?String prefix) -> Hash[String, Integer] + # + # source://spoom//lib/spoom/sorbet/metrics.rb#13 sig { params(path: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } def parse_file(path, prefix = T.unsafe(nil)); end - # source://spoom//lib/spoom/sorbet/metrics.rb#25 + # : (Hash[String, untyped] obj, ?String prefix) -> Hash[String, Integer] + # + # source://spoom//lib/spoom/sorbet/metrics.rb#23 sig { params(obj: T::Hash[::String, T.untyped], prefix: ::String).returns(T::Hash[::String, ::Integer]) } def parse_hash(obj, prefix = T.unsafe(nil)); end - # source://spoom//lib/spoom/sorbet/metrics.rb#20 + # : (String string, ?String prefix) -> Hash[String, Integer] + # + # source://spoom//lib/spoom/sorbet/metrics.rb#18 sig { params(string: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } def parse_string(string, prefix = T.unsafe(nil)); end end @@ -4252,173 +6097,272 @@ end # source://spoom//lib/spoom/sorbet/metrics.rb#9 Spoom::Sorbet::MetricsParser::DEFAULT_PREFIX = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/sorbet.rb#42 +# source://spoom//lib/spoom/sorbet.rb#36 Spoom::Sorbet::SEGFAULT_CODE = T.let(T.unsafe(nil), Integer) # source://spoom//lib/spoom/sorbet/sigils.rb#9 module Spoom::Sorbet::Sigils class << self # changes the sigil in the file at the passed path to the specified new strictness + # : ((String | Pathname) path, String new_strictness) -> bool # - # source://spoom//lib/spoom/sorbet/sigils.rb#72 + # source://spoom//lib/spoom/sorbet/sigils.rb#68 + # changes the sigil in the file at the passed path to the specified new strictness sig { params(path: T.any(::Pathname, ::String), new_strictness: ::String).returns(T::Boolean) } def change_sigil_in_file(path, new_strictness); end # changes the sigil to have a new strictness in a list of files + # : (Array[String] path_list, String new_strictness) -> Array[String] # - # source://spoom//lib/spoom/sorbet/sigils.rb#83 + # source://spoom//lib/spoom/sorbet/sigils.rb#79 + # changes the sigil to have a new strictness in a list of files sig { params(path_list: T::Array[::String], new_strictness: ::String).returns(T::Array[::String]) } def change_sigil_in_files(path_list, new_strictness); end # returns a string containing the strictness of a sigil in a file at the passed path # * returns nil if no sigil + # : ((String | Pathname) path) -> String? # - # source://spoom//lib/spoom/sorbet/sigils.rb#63 + # source://spoom//lib/spoom/sorbet/sigils.rb#59 + # returns a string containing the strictness of a sigil in a file at the passed path + # * returns nil if no sigil sig { params(path: T.any(::Pathname, ::String)).returns(T.nilable(::String)) } def file_strictness(path); end # returns the full sigil comment string for the passed strictness + # : (String strictness) -> String # - # source://spoom//lib/spoom/sorbet/sigils.rb#38 + # source://spoom//lib/spoom/sorbet/sigils.rb#34 + # returns the full sigil comment string for the passed strictness sig { params(strictness: ::String).returns(::String) } def sigil_string(strictness); end # returns the strictness of a sigil in the passed file content string (nil if no sigil) + # : (String content) -> String? # - # source://spoom//lib/spoom/sorbet/sigils.rb#50 + # source://spoom//lib/spoom/sorbet/sigils.rb#46 + # returns the strictness of a sigil in the passed file content string (nil if no sigil) sig { params(content: ::String).returns(T.nilable(::String)) } def strictness_in_content(content); end # returns a string which is the passed content but with the sigil updated to a new strictness + # : (String content, String new_strictness) -> String # - # source://spoom//lib/spoom/sorbet/sigils.rb#56 + # source://spoom//lib/spoom/sorbet/sigils.rb#52 + # returns a string which is the passed content but with the sigil updated to a new strictness sig { params(content: ::String, new_strictness: ::String).returns(::String) } def update_sigil(content, new_strictness); end # returns true if the passed string is a valid strictness (else false) + # : (String strictness) -> bool + # + # @return [Boolean] # - # source://spoom//lib/spoom/sorbet/sigils.rb#44 + # source://spoom//lib/spoom/sorbet/sigils.rb#40 + # returns true if the passed string is a valid strictness (else false) sig { params(strictness: ::String).returns(T::Boolean) } def valid_strictness?(strictness); end end end -# source://spoom//lib/spoom/sorbet/sigils.rb#31 +# source://spoom//lib/spoom/sorbet/sigils.rb#29 Spoom::Sorbet::Sigils::SIGIL_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://spoom//lib/spoom/sorbet/sigils.rb#13 +# source://spoom//lib/spoom/sorbet/sigils.rb#11 Spoom::Sorbet::Sigils::STRICTNESS_FALSE = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/sorbet/sigils.rb#12 +# source://spoom//lib/spoom/sorbet/sigils.rb#10 Spoom::Sorbet::Sigils::STRICTNESS_IGNORE = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/sorbet/sigils.rb#17 +# source://spoom//lib/spoom/sorbet/sigils.rb#15 Spoom::Sorbet::Sigils::STRICTNESS_INTERNAL = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/sorbet/sigils.rb#15 -Spoom::Sorbet::Sigils::STRICTNESS_STRICT = T.let(T.unsafe(nil), String) +# source://spoom//lib/spoom/sorbet/sigils.rb#13 +Spoom::Sorbet::Sigils::STRICTNESS_STRICT = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#14 +Spoom::Sorbet::Sigils::STRICTNESS_STRONG = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#12 +Spoom::Sorbet::Sigils::STRICTNESS_TRUE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#17 +Spoom::Sorbet::Sigils::VALID_STRICTNESS = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/sorbet/sigs.rb#8 +class Spoom::Sorbet::Sigs + class << self + # : (String ruby_contents) -> String + # + # source://spoom//lib/spoom/sorbet/sigs.rb#24 + sig { params(ruby_contents: ::String).returns(::String) } + def rbi_to_rbs(ruby_contents); end + + # : (String ruby_contents) -> String + # + # source://spoom//lib/spoom/sorbet/sigs.rb#45 + sig { params(ruby_contents: ::String).returns(::String) } + def rbs_to_rbi(ruby_contents); end + + # : (String ruby_contents) -> String + # + # source://spoom//lib/spoom/sorbet/sigs.rb#12 + sig { params(ruby_contents: ::String).returns(::String) } + def strip(ruby_contents); end + + private + + # : (String ruby_contents) -> Array[[RBI::RBSComment, (RBI::Method | RBI::Attr)]] + # + # source://spoom//lib/spoom/sorbet/sigs.rb#76 + sig { params(ruby_contents: ::String).returns(T::Array[[::RBI::RBSComment, T.any(::RBI::Attr, ::RBI::Method)]]) } + def collect_rbs_comments(ruby_contents); end + + # : (String ruby_contents) -> Array[[RBI::Sig, (RBI::Method | RBI::Attr)]] + # + # source://spoom//lib/spoom/sorbet/sigs.rb#68 + sig { params(ruby_contents: ::String).returns(T::Array[[::RBI::Sig, T.any(::RBI::Attr, ::RBI::Method)]]) } + def collect_sorbet_sigs(ruby_contents); end + end +end + +# source://spoom//lib/spoom/sorbet/sigs.rb#9 +class Spoom::Sorbet::Sigs::Error < ::Spoom::Error; end + +# source://spoom//lib/spoom/sorbet/sigs.rb#119 +class Spoom::Sorbet::Sigs::RBIToRBSTranslator + class << self + # : (RBI::Sig sig, (RBI::Method | RBI::Attr) node) -> String + # + # source://spoom//lib/spoom/sorbet/sigs.rb#122 + sig { params(sig: ::RBI::Sig, node: T.any(::RBI::Attr, ::RBI::Method)).returns(::String) } + def translate(sig, node); end -# source://spoom//lib/spoom/sorbet/sigils.rb#16 -Spoom::Sorbet::Sigils::STRICTNESS_STRONG = T.let(T.unsafe(nil), String) + private -# source://spoom//lib/spoom/sorbet/sigils.rb#14 -Spoom::Sorbet::Sigils::STRICTNESS_TRUE = T.let(T.unsafe(nil), String) + # : (RBI::Sig sig, RBI::Attr node) -> String + # + # source://spoom//lib/spoom/sorbet/sigs.rb#169 + sig { params(sig: ::RBI::Sig, node: ::RBI::Attr).returns(::String) } + def translate_attr_sig(sig, node); end -# source://spoom//lib/spoom/sorbet/sigils.rb#19 -Spoom::Sorbet::Sigils::VALID_STRICTNESS = T.let(T.unsafe(nil), Array) + # : (RBI::Sig sig, RBI::Method node) -> String + # + # source://spoom//lib/spoom/sorbet/sigs.rb#134 + sig { params(sig: ::RBI::Sig, node: ::RBI::Method).returns(::String) } + def translate_method_sig(sig, node); end + end +end -# source://spoom//lib/spoom/sorbet/sigs.rb#8 -class Spoom::Sorbet::Sigs +# source://spoom//lib/spoom/sorbet/sigs.rb#178 +class Spoom::Sorbet::Sigs::RBSToRBITranslator class << self - # source://spoom//lib/spoom/sorbet/sigs.rb#25 - sig { params(ruby_contents: ::String).returns(::String) } - def rbi_to_rbs(ruby_contents); end - - # source://spoom//lib/spoom/sorbet/sigs.rb#13 - sig { params(ruby_contents: ::String).returns(::String) } - def strip(ruby_contents); end + # : (RBI::RBSComment comment, (RBI::Method | RBI::Attr) node) -> String + # + # source://spoom//lib/spoom/sorbet/sigs.rb#183 + sig { params(comment: ::RBI::RBSComment, node: T.any(::RBI::Attr, ::RBI::Method)).returns(::String) } + def translate(comment, node); end private - # source://spoom//lib/spoom/sorbet/sigs.rb#48 - sig { params(ruby_contents: ::String).returns(T::Array[[::RBI::Sig, T.any(::RBI::Attr, ::RBI::Method)]]) } - def collect_sigs(ruby_contents); end + # : (RBI::RBSComment comment, RBI::Attr node) -> String + # + # source://spoom//lib/spoom/sorbet/sigs.rb#222 + sig { params(comment: ::RBI::RBSComment, node: ::RBI::Attr).returns(::String) } + def translate_attr_sig(comment, node); end + + # : (RBI::RBSComment rbs_comment, RBI::Method node) -> String + # + # source://spoom//lib/spoom/sorbet/sigs.rb#195 + sig { params(rbs_comment: ::RBI::RBSComment, node: ::RBI::Method).returns(::String) } + def translate_method_sig(rbs_comment, node); end end end # From https://github.com/Shopify/ruby-lsp/blob/9154bfc6ef/lib/ruby_lsp/document.rb#L127 # -# source://spoom//lib/spoom/sorbet/sigs.rb#147 +# source://spoom//lib/spoom/sorbet/sigs.rb#242 class Spoom::Sorbet::Sigs::Scanner - # source://spoom//lib/spoom/sorbet/sigs.rb#153 + # : (String source) -> void + # + # @return [Scanner] a new instance of Scanner + # + # source://spoom//lib/spoom/sorbet/sigs.rb#246 sig { params(source: ::String).void } def initialize(source); end # Finds the character index inside the source string for a given line and column + # : (Integer line, Integer character) -> Integer # - # source://spoom//lib/spoom/sorbet/sigs.rb#161 + # source://spoom//lib/spoom/sorbet/sigs.rb#254 + # Finds the character index inside the source string for a given line and column sig { params(line: ::Integer, character: ::Integer).returns(::Integer) } def find_char_position(line, character); end end -# source://spoom//lib/spoom/sorbet/sigs.rb#150 +# source://spoom//lib/spoom/sorbet/sigs.rb#243 Spoom::Sorbet::Sigs::Scanner::LINE_BREAK = T.let(T.unsafe(nil), Integer) -# source://spoom//lib/spoom/sorbet/sigs.rb#85 -class Spoom::Sorbet::Sigs::SigTranslator - class << self - # source://spoom//lib/spoom/sorbet/sigs.rb#90 - sig { params(sig: ::RBI::Sig, node: T.any(::RBI::Attr, ::RBI::Method)).returns(::String) } - def translate(sig, node); end - - private - - # source://spoom//lib/spoom/sorbet/sigs.rb#137 - sig { params(sig: ::RBI::Sig, node: ::RBI::Attr).returns(::String) } - def translate_attr_sig(sig, node); end - - # source://spoom//lib/spoom/sorbet/sigs.rb#102 - sig { params(sig: ::RBI::Sig, node: ::RBI::Method).returns(::String) } - def translate_method_sig(sig, node); end - end -end - -# source://spoom//lib/spoom/sorbet/sigs.rb#56 +# source://spoom//lib/spoom/sorbet/sigs.rb#84 class Spoom::Sorbet::Sigs::SigsLocator < ::RBI::Visitor - # source://spoom//lib/spoom/sorbet/sigs.rb#63 + # : -> void + # + # @return [SigsLocator] a new instance of SigsLocator + # + # source://spoom//lib/spoom/sorbet/sigs.rb#92 sig { void } def initialize; end - # source://spoom//lib/spoom/sorbet/sigs.rb#60 + # : Array[[RBI::RBSComment, (RBI::Method | RBI::Attr)]] + # + # source://spoom//lib/spoom/sorbet/sigs.rb#89 + sig { returns(T::Array[[::RBI::RBSComment, T.any(::RBI::Attr, ::RBI::Method)]]) } + def rbs_comments; end + + # : Array[[RBI::Sig, (RBI::Method | RBI::Attr)]] + # + # source://spoom//lib/spoom/sorbet/sigs.rb#86 sig { returns(T::Array[[::RBI::Sig, T.any(::RBI::Attr, ::RBI::Method)]]) } def sigs; end - # source://spoom//lib/spoom/sorbet/sigs.rb#69 + # : (RBI::Node? node) -> void + # + # source://spoom//lib/spoom/sorbet/sigs.rb#100 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end end # source://spoom//lib/spoom/timeline.rb#5 class Spoom::Timeline - # source://spoom//lib/spoom/timeline.rb#9 + # : (Context context, Time from, Time to) -> void + # + # @return [Timeline] a new instance of Timeline + # + # source://spoom//lib/spoom/timeline.rb#7 sig { params(context: ::Spoom::Context, from: ::Time, to: ::Time).void } def initialize(context, from, to); end # Return one commit for each date in `dates` + # : (Array[Time] dates) -> Array[Git::Commit] # - # source://spoom//lib/spoom/timeline.rb#36 + # source://spoom//lib/spoom/timeline.rb#34 + # Return one commit for each date in `dates` sig { params(dates: T::Array[::Time]).returns(T::Array[::Spoom::Git::Commit]) } def commits_for_dates(dates); end # Return all months between `from` and `to` + # : -> Array[Time] # - # source://spoom//lib/spoom/timeline.rb#23 + # source://spoom//lib/spoom/timeline.rb#21 + # Return all months between `from` and `to` sig { returns(T::Array[::Time]) } def months; end # Return one commit for each month between `from` and `to` + # : -> Array[Git::Commit] # - # source://spoom//lib/spoom/timeline.rb#17 + # source://spoom//lib/spoom/timeline.rb#15 + # Return one commit for each month between `from` and `to` sig { returns(T::Array[::Spoom::Git::Commit]) } def ticks; end end @@ -4428,599 +6372,897 @@ Spoom::VERSION = T.let(T.unsafe(nil), String) # source://spoom//lib/spoom/visitor.rb#7 class Spoom::Visitor < ::Prism::Visitor + # : (Prism::AliasGlobalVariableNode node) -> void + # # source://spoom//lib/spoom/visitor.rb#16 sig { override.params(node: ::Prism::AliasGlobalVariableNode).void } def visit_alias_global_variable_node(node); end - # source://spoom//lib/spoom/visitor.rb#21 + # : (Prism::AliasMethodNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#22 sig { override.params(node: ::Prism::AliasMethodNode).void } def visit_alias_method_node(node); end - # source://spoom//lib/spoom/visitor.rb#26 + # : (Prism::AlternationPatternNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#28 sig { override.params(node: ::Prism::AlternationPatternNode).void } def visit_alternation_pattern_node(node); end - # source://spoom//lib/spoom/visitor.rb#31 + # : (Prism::AndNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#34 sig { override.params(node: ::Prism::AndNode).void } def visit_and_node(node); end - # source://spoom//lib/spoom/visitor.rb#36 + # : (Prism::ArgumentsNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#40 sig { override.params(node: ::Prism::ArgumentsNode).void } def visit_arguments_node(node); end - # source://spoom//lib/spoom/visitor.rb#41 + # : (Prism::ArrayNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#46 sig { override.params(node: ::Prism::ArrayNode).void } def visit_array_node(node); end - # source://spoom//lib/spoom/visitor.rb#46 + # : (Prism::ArrayPatternNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#52 sig { override.params(node: ::Prism::ArrayPatternNode).void } def visit_array_pattern_node(node); end - # source://spoom//lib/spoom/visitor.rb#51 + # : (Prism::AssocNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#58 sig { override.params(node: ::Prism::AssocNode).void } def visit_assoc_node(node); end - # source://spoom//lib/spoom/visitor.rb#56 + # : (Prism::AssocSplatNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#64 sig { override.params(node: ::Prism::AssocSplatNode).void } def visit_assoc_splat_node(node); end - # source://spoom//lib/spoom/visitor.rb#61 + # : (Prism::BackReferenceReadNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#70 sig { override.params(node: ::Prism::BackReferenceReadNode).void } def visit_back_reference_read_node(node); end - # source://spoom//lib/spoom/visitor.rb#66 + # : (Prism::BeginNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#76 sig { override.params(node: ::Prism::BeginNode).void } def visit_begin_node(node); end - # source://spoom//lib/spoom/visitor.rb#71 + # : (Prism::BlockArgumentNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#82 sig { override.params(node: ::Prism::BlockArgumentNode).void } def visit_block_argument_node(node); end - # source://spoom//lib/spoom/visitor.rb#76 + # : (Prism::BlockLocalVariableNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#88 sig { override.params(node: ::Prism::BlockLocalVariableNode).void } def visit_block_local_variable_node(node); end - # source://spoom//lib/spoom/visitor.rb#81 + # : (Prism::BlockNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#94 sig { override.params(node: ::Prism::BlockNode).void } def visit_block_node(node); end - # source://spoom//lib/spoom/visitor.rb#86 + # : (Prism::BlockParameterNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#100 sig { override.params(node: ::Prism::BlockParameterNode).void } def visit_block_parameter_node(node); end - # source://spoom//lib/spoom/visitor.rb#91 + # : (Prism::BlockParametersNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#106 sig { override.params(node: ::Prism::BlockParametersNode).void } def visit_block_parameters_node(node); end - # source://spoom//lib/spoom/visitor.rb#96 + # : (Prism::BreakNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#112 sig { override.params(node: ::Prism::BreakNode).void } def visit_break_node(node); end - # source://spoom//lib/spoom/visitor.rb#101 + # : (Prism::CallAndWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#118 sig { override.params(node: ::Prism::CallAndWriteNode).void } def visit_call_and_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#106 + # : (Prism::CallNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#124 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end - # source://spoom//lib/spoom/visitor.rb#111 + # : (Prism::CallOperatorWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#130 sig { override.params(node: ::Prism::CallOperatorWriteNode).void } def visit_call_operator_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#116 + # : (Prism::CallOrWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#136 sig { override.params(node: ::Prism::CallOrWriteNode).void } def visit_call_or_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#121 + # : (Prism::CallTargetNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#142 sig { override.params(node: ::Prism::CallTargetNode).void } def visit_call_target_node(node); end - # source://spoom//lib/spoom/visitor.rb#126 + # : (Prism::CapturePatternNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#148 sig { override.params(node: ::Prism::CapturePatternNode).void } def visit_capture_pattern_node(node); end - # source://spoom//lib/spoom/visitor.rb#131 + # : (Prism::CaseMatchNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#154 sig { override.params(node: ::Prism::CaseMatchNode).void } def visit_case_match_node(node); end - # source://spoom//lib/spoom/visitor.rb#136 + # : (Prism::CaseNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#160 sig { override.params(node: ::Prism::CaseNode).void } def visit_case_node(node); end - # source://spoom//lib/spoom/visitor.rb#11 + # : (Prism::Node node) -> void + # + # source://spoom//lib/spoom/visitor.rb#10 sig { override.params(node: ::Prism::Node).void } def visit_child_nodes(node); end - # source://spoom//lib/spoom/visitor.rb#141 + # : (Prism::ClassNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#166 sig { override.params(node: ::Prism::ClassNode).void } def visit_class_node(node); end - # source://spoom//lib/spoom/visitor.rb#146 + # : (Prism::ClassVariableAndWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#172 sig { override.params(node: ::Prism::ClassVariableAndWriteNode).void } def visit_class_variable_and_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#151 + # : (Prism::ClassVariableOperatorWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#178 sig { override.params(node: ::Prism::ClassVariableOperatorWriteNode).void } def visit_class_variable_operator_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#156 + # : (Prism::ClassVariableOrWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#184 sig { override.params(node: ::Prism::ClassVariableOrWriteNode).void } def visit_class_variable_or_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#161 + # : (Prism::ClassVariableReadNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#190 sig { override.params(node: ::Prism::ClassVariableReadNode).void } def visit_class_variable_read_node(node); end - # source://spoom//lib/spoom/visitor.rb#166 + # : (Prism::ClassVariableTargetNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#196 sig { override.params(node: ::Prism::ClassVariableTargetNode).void } def visit_class_variable_target_node(node); end - # source://spoom//lib/spoom/visitor.rb#171 + # : (Prism::ClassVariableWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#202 sig { override.params(node: ::Prism::ClassVariableWriteNode).void } def visit_class_variable_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#176 + # : (Prism::ConstantAndWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#208 sig { override.params(node: ::Prism::ConstantAndWriteNode).void } def visit_constant_and_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#181 + # : (Prism::ConstantOperatorWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#214 sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void } def visit_constant_operator_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#186 + # : (Prism::ConstantOrWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#220 sig { override.params(node: ::Prism::ConstantOrWriteNode).void } def visit_constant_or_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#191 + # : (Prism::ConstantPathAndWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#226 sig { override.params(node: ::Prism::ConstantPathAndWriteNode).void } def visit_constant_path_and_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#196 + # : (Prism::ConstantPathNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#232 sig { override.params(node: ::Prism::ConstantPathNode).void } def visit_constant_path_node(node); end - # source://spoom//lib/spoom/visitor.rb#201 + # : (Prism::ConstantPathOperatorWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#238 sig { override.params(node: ::Prism::ConstantPathOperatorWriteNode).void } def visit_constant_path_operator_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#206 + # : (Prism::ConstantPathOrWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#244 sig { override.params(node: ::Prism::ConstantPathOrWriteNode).void } def visit_constant_path_or_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#211 + # : (Prism::ConstantPathTargetNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#250 sig { override.params(node: ::Prism::ConstantPathTargetNode).void } def visit_constant_path_target_node(node); end - # source://spoom//lib/spoom/visitor.rb#216 + # : (Prism::ConstantPathWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#256 sig { override.params(node: ::Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#221 + # : (Prism::ConstantReadNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#262 sig { override.params(node: ::Prism::ConstantReadNode).void } def visit_constant_read_node(node); end - # source://spoom//lib/spoom/visitor.rb#226 + # : (Prism::ConstantTargetNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#268 sig { override.params(node: ::Prism::ConstantTargetNode).void } def visit_constant_target_node(node); end - # source://spoom//lib/spoom/visitor.rb#231 + # : (Prism::ConstantWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#274 sig { override.params(node: ::Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#236 + # : (Prism::DefNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#280 sig { override.params(node: ::Prism::DefNode).void } def visit_def_node(node); end - # source://spoom//lib/spoom/visitor.rb#241 + # : (Prism::DefinedNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#286 sig { override.params(node: ::Prism::DefinedNode).void } def visit_defined_node(node); end - # source://spoom//lib/spoom/visitor.rb#246 + # : (Prism::ElseNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#292 sig { override.params(node: ::Prism::ElseNode).void } def visit_else_node(node); end - # source://spoom//lib/spoom/visitor.rb#251 + # : (Prism::EmbeddedStatementsNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#298 sig { override.params(node: ::Prism::EmbeddedStatementsNode).void } def visit_embedded_statements_node(node); end - # source://spoom//lib/spoom/visitor.rb#256 + # : (Prism::EmbeddedVariableNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#304 sig { override.params(node: ::Prism::EmbeddedVariableNode).void } def visit_embedded_variable_node(node); end - # source://spoom//lib/spoom/visitor.rb#261 + # : (Prism::EnsureNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#310 sig { override.params(node: ::Prism::EnsureNode).void } def visit_ensure_node(node); end - # source://spoom//lib/spoom/visitor.rb#266 + # : (Prism::FalseNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#316 sig { override.params(node: ::Prism::FalseNode).void } def visit_false_node(node); end - # source://spoom//lib/spoom/visitor.rb#271 + # : (Prism::FindPatternNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#322 sig { override.params(node: ::Prism::FindPatternNode).void } def visit_find_pattern_node(node); end - # source://spoom//lib/spoom/visitor.rb#276 + # : (Prism::FlipFlopNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#328 sig { override.params(node: ::Prism::FlipFlopNode).void } def visit_flip_flop_node(node); end - # source://spoom//lib/spoom/visitor.rb#281 + # : (Prism::FloatNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#334 sig { override.params(node: ::Prism::FloatNode).void } def visit_float_node(node); end - # source://spoom//lib/spoom/visitor.rb#286 + # : (Prism::ForNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#340 sig { override.params(node: ::Prism::ForNode).void } def visit_for_node(node); end - # source://spoom//lib/spoom/visitor.rb#291 + # : (Prism::ForwardingArgumentsNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#346 sig { override.params(node: ::Prism::ForwardingArgumentsNode).void } def visit_forwarding_arguments_node(node); end - # source://spoom//lib/spoom/visitor.rb#296 + # : (Prism::ForwardingParameterNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#352 sig { override.params(node: ::Prism::ForwardingParameterNode).void } def visit_forwarding_parameter_node(node); end - # source://spoom//lib/spoom/visitor.rb#301 + # : (Prism::ForwardingSuperNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#358 sig { override.params(node: ::Prism::ForwardingSuperNode).void } def visit_forwarding_super_node(node); end - # source://spoom//lib/spoom/visitor.rb#306 + # : (Prism::GlobalVariableAndWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#364 sig { override.params(node: ::Prism::GlobalVariableAndWriteNode).void } def visit_global_variable_and_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#311 + # : (Prism::GlobalVariableOperatorWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#370 sig { override.params(node: ::Prism::GlobalVariableOperatorWriteNode).void } def visit_global_variable_operator_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#316 + # : (Prism::GlobalVariableOrWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#376 sig { override.params(node: ::Prism::GlobalVariableOrWriteNode).void } def visit_global_variable_or_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#321 + # : (Prism::GlobalVariableReadNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#382 sig { override.params(node: ::Prism::GlobalVariableReadNode).void } def visit_global_variable_read_node(node); end - # source://spoom//lib/spoom/visitor.rb#326 + # : (Prism::GlobalVariableTargetNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#388 sig { override.params(node: ::Prism::GlobalVariableTargetNode).void } def visit_global_variable_target_node(node); end - # source://spoom//lib/spoom/visitor.rb#331 + # : (Prism::GlobalVariableWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#394 sig { override.params(node: ::Prism::GlobalVariableWriteNode).void } def visit_global_variable_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#336 + # : (Prism::HashNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#400 sig { override.params(node: ::Prism::HashNode).void } def visit_hash_node(node); end - # source://spoom//lib/spoom/visitor.rb#341 + # : (Prism::HashPatternNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#406 sig { override.params(node: ::Prism::HashPatternNode).void } def visit_hash_pattern_node(node); end - # source://spoom//lib/spoom/visitor.rb#346 + # : (Prism::IfNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#412 sig { override.params(node: ::Prism::IfNode).void } def visit_if_node(node); end - # source://spoom//lib/spoom/visitor.rb#351 + # : (Prism::ImaginaryNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#418 sig { override.params(node: ::Prism::ImaginaryNode).void } def visit_imaginary_node(node); end - # source://spoom//lib/spoom/visitor.rb#356 + # : (Prism::ImplicitNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#424 sig { override.params(node: ::Prism::ImplicitNode).void } def visit_implicit_node(node); end - # source://spoom//lib/spoom/visitor.rb#361 + # : (Prism::ImplicitRestNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#430 sig { override.params(node: ::Prism::ImplicitRestNode).void } def visit_implicit_rest_node(node); end - # source://spoom//lib/spoom/visitor.rb#366 + # : (Prism::InNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#436 sig { override.params(node: ::Prism::InNode).void } def visit_in_node(node); end - # source://spoom//lib/spoom/visitor.rb#371 + # : (Prism::IndexAndWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#442 sig { override.params(node: ::Prism::IndexAndWriteNode).void } def visit_index_and_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#376 + # : (Prism::IndexOperatorWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#448 sig { override.params(node: ::Prism::IndexOperatorWriteNode).void } def visit_index_operator_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#381 + # : (Prism::IndexOrWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#454 sig { override.params(node: ::Prism::IndexOrWriteNode).void } def visit_index_or_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#386 + # : (Prism::IndexTargetNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#460 sig { override.params(node: ::Prism::IndexTargetNode).void } def visit_index_target_node(node); end - # source://spoom//lib/spoom/visitor.rb#391 + # : (Prism::InstanceVariableAndWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#466 sig { override.params(node: ::Prism::InstanceVariableAndWriteNode).void } def visit_instance_variable_and_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#396 + # : (Prism::InstanceVariableOperatorWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#472 sig { override.params(node: ::Prism::InstanceVariableOperatorWriteNode).void } def visit_instance_variable_operator_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#401 + # : (Prism::InstanceVariableOrWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#478 sig { override.params(node: ::Prism::InstanceVariableOrWriteNode).void } def visit_instance_variable_or_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#406 + # : (Prism::InstanceVariableReadNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#484 sig { override.params(node: ::Prism::InstanceVariableReadNode).void } def visit_instance_variable_read_node(node); end - # source://spoom//lib/spoom/visitor.rb#411 + # : (Prism::InstanceVariableTargetNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#490 sig { override.params(node: ::Prism::InstanceVariableTargetNode).void } def visit_instance_variable_target_node(node); end - # source://spoom//lib/spoom/visitor.rb#416 + # : (Prism::InstanceVariableWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#496 sig { override.params(node: ::Prism::InstanceVariableWriteNode).void } def visit_instance_variable_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#421 + # : (Prism::IntegerNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#502 sig { override.params(node: ::Prism::IntegerNode).void } def visit_integer_node(node); end - # source://spoom//lib/spoom/visitor.rb#426 + # : (Prism::InterpolatedMatchLastLineNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#508 sig { override.params(node: ::Prism::InterpolatedMatchLastLineNode).void } def visit_interpolated_match_last_line_node(node); end - # source://spoom//lib/spoom/visitor.rb#431 + # : (Prism::InterpolatedRegularExpressionNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#514 sig { override.params(node: ::Prism::InterpolatedRegularExpressionNode).void } def visit_interpolated_regular_expression_node(node); end - # source://spoom//lib/spoom/visitor.rb#436 + # : (Prism::InterpolatedStringNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#520 sig { override.params(node: ::Prism::InterpolatedStringNode).void } def visit_interpolated_string_node(node); end - # source://spoom//lib/spoom/visitor.rb#441 + # : (Prism::InterpolatedSymbolNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#526 sig { override.params(node: ::Prism::InterpolatedSymbolNode).void } def visit_interpolated_symbol_node(node); end - # source://spoom//lib/spoom/visitor.rb#446 + # : (Prism::InterpolatedXStringNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#532 sig { override.params(node: ::Prism::InterpolatedXStringNode).void } def visit_interpolated_x_string_node(node); end - # source://spoom//lib/spoom/visitor.rb#451 + # : (Prism::KeywordHashNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#538 sig { override.params(node: ::Prism::KeywordHashNode).void } def visit_keyword_hash_node(node); end - # source://spoom//lib/spoom/visitor.rb#456 + # : (Prism::KeywordRestParameterNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#544 sig { override.params(node: ::Prism::KeywordRestParameterNode).void } def visit_keyword_rest_parameter_node(node); end - # source://spoom//lib/spoom/visitor.rb#461 + # : (Prism::LambdaNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#550 sig { override.params(node: ::Prism::LambdaNode).void } def visit_lambda_node(node); end - # source://spoom//lib/spoom/visitor.rb#466 + # : (Prism::LocalVariableAndWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#556 sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void } def visit_local_variable_and_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#471 + # : (Prism::LocalVariableOperatorWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#562 sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void } def visit_local_variable_operator_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#476 + # : (Prism::LocalVariableOrWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#568 sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void } def visit_local_variable_or_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#481 + # : (Prism::LocalVariableReadNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#574 sig { override.params(node: ::Prism::LocalVariableReadNode).void } def visit_local_variable_read_node(node); end - # source://spoom//lib/spoom/visitor.rb#486 + # : (Prism::LocalVariableTargetNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#580 sig { override.params(node: ::Prism::LocalVariableTargetNode).void } def visit_local_variable_target_node(node); end - # source://spoom//lib/spoom/visitor.rb#491 + # : (Prism::LocalVariableWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#586 sig { override.params(node: ::Prism::LocalVariableWriteNode).void } def visit_local_variable_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#496 + # : (Prism::MatchLastLineNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#592 sig { override.params(node: ::Prism::MatchLastLineNode).void } def visit_match_last_line_node(node); end - # source://spoom//lib/spoom/visitor.rb#501 + # : (Prism::MatchPredicateNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#598 sig { override.params(node: ::Prism::MatchPredicateNode).void } def visit_match_predicate_node(node); end - # source://spoom//lib/spoom/visitor.rb#506 + # : (Prism::MatchRequiredNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#604 sig { override.params(node: ::Prism::MatchRequiredNode).void } def visit_match_required_node(node); end - # source://spoom//lib/spoom/visitor.rb#511 + # : (Prism::MatchWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#610 sig { override.params(node: ::Prism::MatchWriteNode).void } def visit_match_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#516 + # : (Prism::MissingNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#616 sig { override.params(node: ::Prism::MissingNode).void } def visit_missing_node(node); end - # source://spoom//lib/spoom/visitor.rb#521 + # : (Prism::ModuleNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#622 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # source://spoom//lib/spoom/visitor.rb#526 + # : (Prism::MultiTargetNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#628 sig { override.params(node: ::Prism::MultiTargetNode).void } def visit_multi_target_node(node); end - # source://spoom//lib/spoom/visitor.rb#531 + # : (Prism::MultiWriteNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#634 sig { override.params(node: ::Prism::MultiWriteNode).void } def visit_multi_write_node(node); end - # source://spoom//lib/spoom/visitor.rb#536 + # : (Prism::NextNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#640 sig { override.params(node: ::Prism::NextNode).void } def visit_next_node(node); end - # source://spoom//lib/spoom/visitor.rb#541 + # : (Prism::NilNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#646 sig { override.params(node: ::Prism::NilNode).void } def visit_nil_node(node); end - # source://spoom//lib/spoom/visitor.rb#546 + # : (Prism::NoKeywordsParameterNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#652 sig { override.params(node: ::Prism::NoKeywordsParameterNode).void } def visit_no_keywords_parameter_node(node); end - # source://spoom//lib/spoom/visitor.rb#551 + # : (Prism::NumberedParametersNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#658 sig { override.params(node: ::Prism::NumberedParametersNode).void } def visit_numbered_parameters_node(node); end - # source://spoom//lib/spoom/visitor.rb#556 + # : (Prism::NumberedReferenceReadNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#664 sig { override.params(node: ::Prism::NumberedReferenceReadNode).void } def visit_numbered_reference_read_node(node); end - # source://spoom//lib/spoom/visitor.rb#561 + # : (Prism::OptionalKeywordParameterNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#670 sig { override.params(node: ::Prism::OptionalKeywordParameterNode).void } def visit_optional_keyword_parameter_node(node); end - # source://spoom//lib/spoom/visitor.rb#566 + # : (Prism::OptionalParameterNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#676 sig { override.params(node: ::Prism::OptionalParameterNode).void } def visit_optional_parameter_node(node); end - # source://spoom//lib/spoom/visitor.rb#571 + # : (Prism::OrNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#682 sig { override.params(node: ::Prism::OrNode).void } def visit_or_node(node); end - # source://spoom//lib/spoom/visitor.rb#576 + # : (Prism::ParametersNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#688 sig { override.params(node: ::Prism::ParametersNode).void } def visit_parameters_node(node); end - # source://spoom//lib/spoom/visitor.rb#581 + # : (Prism::ParenthesesNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#694 sig { override.params(node: ::Prism::ParenthesesNode).void } def visit_parentheses_node(node); end - # source://spoom//lib/spoom/visitor.rb#586 + # : (Prism::PinnedExpressionNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#700 sig { override.params(node: ::Prism::PinnedExpressionNode).void } def visit_pinned_expression_node(node); end - # source://spoom//lib/spoom/visitor.rb#591 + # : (Prism::PinnedVariableNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#706 sig { override.params(node: ::Prism::PinnedVariableNode).void } def visit_pinned_variable_node(node); end - # source://spoom//lib/spoom/visitor.rb#596 + # : (Prism::PostExecutionNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#712 sig { override.params(node: ::Prism::PostExecutionNode).void } def visit_post_execution_node(node); end - # source://spoom//lib/spoom/visitor.rb#601 + # : (Prism::PreExecutionNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#718 sig { override.params(node: ::Prism::PreExecutionNode).void } def visit_pre_execution_node(node); end - # source://spoom//lib/spoom/visitor.rb#606 + # : (Prism::ProgramNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#724 sig { override.params(node: ::Prism::ProgramNode).void } def visit_program_node(node); end - # source://spoom//lib/spoom/visitor.rb#611 + # : (Prism::RangeNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#730 sig { override.params(node: ::Prism::RangeNode).void } def visit_range_node(node); end - # source://spoom//lib/spoom/visitor.rb#616 + # : (Prism::RationalNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#736 sig { override.params(node: ::Prism::RationalNode).void } def visit_rational_node(node); end - # source://spoom//lib/spoom/visitor.rb#621 + # : (Prism::RedoNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#742 sig { override.params(node: ::Prism::RedoNode).void } def visit_redo_node(node); end - # source://spoom//lib/spoom/visitor.rb#626 + # : (Prism::RegularExpressionNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#748 sig { override.params(node: ::Prism::RegularExpressionNode).void } def visit_regular_expression_node(node); end - # source://spoom//lib/spoom/visitor.rb#631 + # : (Prism::RequiredKeywordParameterNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#754 sig { override.params(node: ::Prism::RequiredKeywordParameterNode).void } def visit_required_keyword_parameter_node(node); end - # source://spoom//lib/spoom/visitor.rb#636 + # : (Prism::RequiredParameterNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#760 sig { override.params(node: ::Prism::RequiredParameterNode).void } def visit_required_parameter_node(node); end - # source://spoom//lib/spoom/visitor.rb#641 + # : (Prism::RescueModifierNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#766 sig { override.params(node: ::Prism::RescueModifierNode).void } def visit_rescue_modifier_node(node); end - # source://spoom//lib/spoom/visitor.rb#646 + # : (Prism::RescueNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#772 sig { override.params(node: ::Prism::RescueNode).void } def visit_rescue_node(node); end - # source://spoom//lib/spoom/visitor.rb#651 + # : (Prism::RestParameterNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#778 sig { override.params(node: ::Prism::RestParameterNode).void } def visit_rest_parameter_node(node); end - # source://spoom//lib/spoom/visitor.rb#656 + # : (Prism::RetryNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#784 sig { override.params(node: ::Prism::RetryNode).void } def visit_retry_node(node); end - # source://spoom//lib/spoom/visitor.rb#661 + # : (Prism::ReturnNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#790 sig { override.params(node: ::Prism::ReturnNode).void } def visit_return_node(node); end - # source://spoom//lib/spoom/visitor.rb#666 + # : (Prism::SelfNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#796 sig { override.params(node: ::Prism::SelfNode).void } def visit_self_node(node); end - # source://spoom//lib/spoom/visitor.rb#671 + # : (Prism::SingletonClassNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#802 sig { override.params(node: ::Prism::SingletonClassNode).void } def visit_singleton_class_node(node); end - # source://spoom//lib/spoom/visitor.rb#676 + # : (Prism::SourceEncodingNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#808 sig { override.params(node: ::Prism::SourceEncodingNode).void } def visit_source_encoding_node(node); end - # source://spoom//lib/spoom/visitor.rb#681 + # : (Prism::SourceFileNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#814 sig { override.params(node: ::Prism::SourceFileNode).void } def visit_source_file_node(node); end - # source://spoom//lib/spoom/visitor.rb#686 + # : (Prism::SourceLineNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#820 sig { override.params(node: ::Prism::SourceLineNode).void } def visit_source_line_node(node); end - # source://spoom//lib/spoom/visitor.rb#691 + # : (Prism::SplatNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#826 sig { override.params(node: ::Prism::SplatNode).void } def visit_splat_node(node); end - # source://spoom//lib/spoom/visitor.rb#696 + # : (Prism::StatementsNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#832 sig { override.params(node: ::Prism::StatementsNode).void } def visit_statements_node(node); end - # source://spoom//lib/spoom/visitor.rb#701 + # : (Prism::StringNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#838 sig { override.params(node: ::Prism::StringNode).void } def visit_string_node(node); end - # source://spoom//lib/spoom/visitor.rb#706 + # : (Prism::SuperNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#844 sig { override.params(node: ::Prism::SuperNode).void } def visit_super_node(node); end - # source://spoom//lib/spoom/visitor.rb#711 + # : (Prism::SymbolNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#850 sig { override.params(node: ::Prism::SymbolNode).void } def visit_symbol_node(node); end - # source://spoom//lib/spoom/visitor.rb#716 + # : (Prism::TrueNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#856 sig { override.params(node: ::Prism::TrueNode).void } def visit_true_node(node); end - # source://spoom//lib/spoom/visitor.rb#721 + # : (Prism::UndefNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#862 sig { override.params(node: ::Prism::UndefNode).void } def visit_undef_node(node); end - # source://spoom//lib/spoom/visitor.rb#726 + # : (Prism::UnlessNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#868 sig { override.params(node: ::Prism::UnlessNode).void } def visit_unless_node(node); end - # source://spoom//lib/spoom/visitor.rb#731 + # : (Prism::UntilNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#874 sig { override.params(node: ::Prism::UntilNode).void } def visit_until_node(node); end - # source://spoom//lib/spoom/visitor.rb#736 + # : (Prism::WhenNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#880 sig { override.params(node: ::Prism::WhenNode).void } def visit_when_node(node); end - # source://spoom//lib/spoom/visitor.rb#741 + # : (Prism::WhileNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#886 sig { override.params(node: ::Prism::WhileNode).void } def visit_while_node(node); end - # source://spoom//lib/spoom/visitor.rb#746 + # : (Prism::XStringNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#892 sig { override.params(node: ::Prism::XStringNode).void } def visit_x_string_node(node); end - # source://spoom//lib/spoom/visitor.rb#751 + # : (Prism::YieldNode node) -> void + # + # source://spoom//lib/spoom/visitor.rb#898 sig { override.params(node: ::Prism::YieldNode).void } def visit_yield_node(node); end end diff --git a/sorbet/rbi/gems/standard-performance@1.6.0.rbi b/sorbet/rbi/gems/standard-performance@1.7.0.rbi similarity index 100% rename from sorbet/rbi/gems/standard-performance@1.6.0.rbi rename to sorbet/rbi/gems/standard-performance@1.7.0.rbi diff --git a/sorbet/rbi/gems/standard@1.45.0.rbi b/sorbet/rbi/gems/standard@1.47.0.rbi similarity index 87% rename from sorbet/rbi/gems/standard@1.45.0.rbi rename to sorbet/rbi/gems/standard@1.47.0.rbi index bb4cd036..3747197b 100644 --- a/sorbet/rbi/gems/standard@1.45.0.rbi +++ b/sorbet/rbi/gems/standard@1.47.0.rbi @@ -15,75 +15,75 @@ class RuboCop::CommentConfig # source://standard//lib/standard/rubocop/ext.rb#20 def initialize(processed_source); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#63 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#63 def comment_only_line?(line_number); end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def config(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#51 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#51 def cop_disabled_line_ranges; end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#39 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#39 def cop_enabled_at_line?(cop, line_number); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#47 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#47 def cop_opted_in?(cop); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#55 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#55 def extra_enabled_comments; end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#30 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#30 def processed_source; end - # source://rubocop-ast/1.38.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.38.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 def registry(*_arg0, **_arg1, &_arg2); end private - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#96 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#96 def analyze; end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#124 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#124 def analyze_cop(analysis, directive); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#144 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#144 def analyze_disabled(analysis, directive); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#155 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#155 def analyze_rest(analysis, directive); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#135 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#135 def analyze_single_line(analysis, directive); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#164 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#164 def cop_line_ranges(analysis); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#170 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#170 def each_directive; end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#69 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#69 def extra_enabled_comments_with_names(extras:, names:); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#190 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#190 def handle_enable_all(directive, names, extras); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#204 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#204 def handle_switch(directive, names, extras); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#115 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#115 def inject_disabled_cops_directives(analyses); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#183 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#183 def non_comment_token_line_numbers; end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#34 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#34 def old_initialize(processed_source); end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#83 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#83 def opt_in_cops; end - # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#179 + # source://rubocop/1.73.2/lib/rubocop/comment_config.rb#179 def qualified_cop_name(cop_name); end end @@ -95,114 +95,123 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base # source://standard//lib/standard/rubocop/ext.rb#4 def message(_); end - # source://rubocop/1.71.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55 def on_if(node); end - # source://rubocop/1.71.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55 def on_until(node); end - # source://rubocop/1.71.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55 def on_while(node); end private - # source://rubocop/1.71.2/lib/rubocop/cop/lint/assignment_in_condition.rb#80 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/assignment_in_condition.rb#80 def allowed_construct?(asgn_node); end - # source://rubocop/1.71.2/lib/rubocop/cop/lint/assignment_in_condition.rb#84 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/assignment_in_condition.rb#84 def conditional_assignment?(asgn_node); end - # source://rubocop/1.71.2/lib/rubocop/cop/lint/assignment_in_condition.rb#88 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/assignment_in_condition.rb#88 def skip_children?(asgn_node); end - # source://rubocop/1.71.2/lib/rubocop/cop/lint/assignment_in_condition.rb#94 + # source://rubocop/1.73.2/lib/rubocop/cop/lint/assignment_in_condition.rb#94 def traverse_node(node, &block); end end # source://standard//lib/standard/rubocop/ext.rb#9 class RuboCop::DirectiveComment - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#32 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#46 def initialize(comment, cop_registry = T.unsafe(nil)); end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#82 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#115 def all_cops?; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#30 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#44 def comment; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#87 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#120 def cop_names; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#30 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#44 def cop_registry; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#30 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#44 def cops; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#98 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#131 def department_names; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#112 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#145 def directive_count; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#62 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#95 def disabled?; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#77 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#110 def disabled_all?; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#67 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#100 def enabled?; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#72 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#105 def enabled_all?; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#103 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#136 def in_directive_department?(cop); end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#117 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#150 def line_number; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#44 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#59 + def malformed?; end + + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#77 def match?(cop_names); end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#57 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#90 def match_captures; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#30 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#67 + def missing_cop_name?; end + + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#44 def mode; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#108 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#141 def overridden_by_department?(cop); end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#48 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#81 def range; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#92 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#125 def raw_cop_names; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#39 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#72 def single_line?; end + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#54 + def start_with_marker?; end + private - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#134 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#167 def all_cop_names; end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#138 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#171 def cop_names_for_department(department); end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#130 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#163 def department?(name); end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#143 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#176 def exclude_lint_department_cops(cops); end - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#123 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#156 def parsed_cop_names; end class << self - # source://rubocop/1.71.2/lib/rubocop/directive_comment.rb#26 + # source://rubocop/1.73.2/lib/rubocop/directive_comment.rb#40 def before_comment(line); end end end diff --git a/sorbet/rbi/gems/twilio-ruby@7.4.5.rbi b/sorbet/rbi/gems/twilio-ruby@7.5.0.rbi similarity index 99% rename from sorbet/rbi/gems/twilio-ruby@7.4.5.rbi rename to sorbet/rbi/gems/twilio-ruby@7.5.0.rbi index d138ed67..c64b8871 100644 --- a/sorbet/rbi/gems/twilio-ruby@7.4.5.rbi +++ b/sorbet/rbi/gems/twilio-ruby@7.5.0.rbi @@ -8,7 +8,7 @@ # source://twilio-ruby//lib/rack/twilio_webhook_authentication.rb#5 module Rack class << self - # source://rack/3.1.10/lib/rack/version.rb#18 + # source://rack/3.1.12/lib/rack/version.rb#18 def release; end end end @@ -2634,7 +2634,7 @@ class Twilio::REST::Api::V2010::AccountContext < ::Twilio::REST::InstanceContext def validation_requests; end end -# source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#203 +# source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#209 class Twilio::REST::Api::V2010::AccountContext::AddressContext < ::Twilio::REST::InstanceContext # Initialize the AddressContext # @@ -2643,14 +2643,14 @@ class Twilio::REST::Api::V2010::AccountContext::AddressContext < ::Twilio::REST: # @param sid [String] The Twilio-provided string that uniquely identifies the Address resource to update. # @return [AddressContext] AddressContext # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#210 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#216 def initialize(version, account_sid, sid); end # Delete the AddressInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#223 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#229 def delete; end # Access the dependent_phone_numbers @@ -2658,24 +2658,24 @@ class Twilio::REST::Api::V2010::AccountContext::AddressContext < ::Twilio::REST: # @return [DependentPhoneNumberList] # @return [DependentPhoneNumberContext] # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#307 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#313 def dependent_phone_numbers; end # Fetch the AddressInstance # # @return [AddressInstance] Fetched AddressInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#235 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#241 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#324 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#330 def inspect; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#317 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#323 def to_s; end # Update the AddressInstance @@ -2691,7 +2691,7 @@ class Twilio::REST::Api::V2010::AccountContext::AddressContext < ::Twilio::REST: # @param street_secondary [String] The additional number and street address of the address. # @return [AddressInstance] Updated AddressInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#264 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#270 def update(friendly_name: T.unsafe(nil), customer_name: T.unsafe(nil), street: T.unsafe(nil), city: T.unsafe(nil), region: T.unsafe(nil), postal_code: T.unsafe(nil), emergency_enabled: T.unsafe(nil), auto_correct_address: T.unsafe(nil), street_secondary: T.unsafe(nil)); end end @@ -2950,7 +2950,7 @@ class Twilio::REST::Api::V2010::AccountContext::AddressContext::DependentPhoneNu def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#358 +# source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#364 class Twilio::REST::Api::V2010::AccountContext::AddressInstance < ::Twilio::REST::InstanceResource # Initialize the AddressInstance # @@ -2962,17 +2962,17 @@ class Twilio::REST::Api::V2010::AccountContext::AddressInstance < ::Twilio::REST # @param sid [String] The SID of the Call resource to fetch. # @return [AddressInstance] AddressInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#368 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#374 def initialize(version, payload, account_sid: T.unsafe(nil), sid: T.unsafe(nil)); end # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#409 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#415 def account_sid; end # @return [String] The city in which the address is located. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#415 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#421 def city; end # Generate an instance context for the instance, the context is capable of @@ -2980,93 +2980,93 @@ class Twilio::REST::Api::V2010::AccountContext::AddressInstance < ::Twilio::REST # # @return [AddressContext] CallContext for this CallInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#400 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#406 def context; end # @return [String] The name associated with the address.This property has a maximum length of 16 4-byte characters, or 21 3-byte characters. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#421 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#427 def customer_name; end # @return [Time] The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#427 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#433 def date_created; end # @return [Time] The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#433 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#439 def date_updated; end # Delete the AddressInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#506 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#512 def delete; end # Access the dependent_phone_numbers # # @return [dependent_phone_numbers] dependent_phone_numbers # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#559 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#565 def dependent_phone_numbers; end # @return [Boolean] Whether emergency calling has been enabled on this number. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#481 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#487 def emergency_enabled; end # Fetch the AddressInstance # # @return [AddressInstance] Fetched AddressInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#514 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#520 def fetch; end # @return [String] The string that you assigned to describe the resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#439 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#445 def friendly_name; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#572 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#578 def inspect; end # @return [String] The ISO country code of the address. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#445 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#451 def iso_country; end # @return [String] The postal code of the address. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#451 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#457 def postal_code; end # @return [String] The state or region of the address. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#457 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#463 def region; end # @return [String] The unique string that that we created to identify the Address resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#463 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#469 def sid; end # @return [String] The number and street address of the address. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#469 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#475 def street; end # @return [String] The additional number and street address of the address. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#499 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#505 def street_secondary; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#565 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#571 def to_s; end # Update the AddressInstance @@ -3082,22 +3082,22 @@ class Twilio::REST::Api::V2010::AccountContext::AddressInstance < ::Twilio::REST # @param street_secondary [String] The additional number and street address of the address. # @return [AddressInstance] Updated AddressInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#531 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#537 def update(friendly_name: T.unsafe(nil), customer_name: T.unsafe(nil), street: T.unsafe(nil), city: T.unsafe(nil), region: T.unsafe(nil), postal_code: T.unsafe(nil), emergency_enabled: T.unsafe(nil), auto_correct_address: T.unsafe(nil), street_secondary: T.unsafe(nil)); end # @return [String] The URI of the resource, relative to `https://api.twilio.com`. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#475 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#481 def uri; end # @return [Boolean] Whether the address has been validated to comply with local regulation. In countries that require valid addresses, an invalid address will not be accepted. `true` indicates the Address has been validated. `false` indicate the country doesn't require validation or the Address is not valid. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#487 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#493 def validated; end # @return [Boolean] Whether the address has been verified to comply with regulation. In countries that require valid addresses, an invalid address will not be accepted. `true` indicates the Address has been verified. `false` indicate the country doesn't require verified or the Address is not valid. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#499 def verified; end end @@ -3132,7 +3132,7 @@ class Twilio::REST::Api::V2010::AccountContext::AddressList < ::Twilio::REST::Li # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#147 def each; end # Retrieve a single page of AddressInstance records from the API. @@ -3141,7 +3141,7 @@ class Twilio::REST::Api::V2010::AccountContext::AddressList < ::Twilio::REST::Li # @param target_url [String] API-generated URL for the requested results page # @return [Page] Page of AddressInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#186 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#192 def get_page(target_url); end # Lists AddressInstance records from the API as a list. @@ -3150,6 +3150,7 @@ class Twilio::REST::Api::V2010::AccountContext::AddressList < ::Twilio::REST::Li # # @param customer_name [String] The `customer_name` of the Address resources to read. # @param friendly_name [String] The string that identifies the Address resources to read. + # @param emergency_enabled [Boolean] Whether the address can be associated to a number for emergency calling. # @param iso_country [String] The ISO country code of the Address resources to read. # @param limit [Integer] Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit @@ -3159,22 +3160,23 @@ class Twilio::REST::Api::V2010::AccountContext::AddressList < ::Twilio::REST::Li # efficient page size, i.e. min(limit, 1000) # @return [Array] Array of up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#103 - def list(customer_name: T.unsafe(nil), friendly_name: T.unsafe(nil), iso_country: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#104 + def list(customer_name: T.unsafe(nil), friendly_name: T.unsafe(nil), emergency_enabled: T.unsafe(nil), iso_country: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Retrieve a single page of AddressInstance records from the API. # Request is executed immediately. # # @param customer_name [String] The `customer_name` of the Address resources to read. # @param friendly_name [String] The string that identifies the Address resources to read. + # @param emergency_enabled [Boolean] Whether the address can be associated to a number for emergency calling. # @param iso_country [String] The ISO country code of the Address resources to read. # @param page_token [String] PageToken provided by the API # @param page_number [Integer] Page Number, this value is simply for client state # @param page_size [Integer] Number of records to return, defaults to 50 # @return [Page] Page of AddressInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#163 - def page(customer_name: T.unsafe(nil), friendly_name: T.unsafe(nil), iso_country: T.unsafe(nil), page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#168 + def page(customer_name: T.unsafe(nil), friendly_name: T.unsafe(nil), emergency_enabled: T.unsafe(nil), iso_country: T.unsafe(nil), page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end # Streams Instance records from the API as an Enumerable. # This operation lazily loads records as efficiently as possible until the limit @@ -3182,6 +3184,7 @@ class Twilio::REST::Api::V2010::AccountContext::AddressList < ::Twilio::REST::Li # # @param customer_name [String] The `customer_name` of the Address resources to read. # @param friendly_name [String] The string that identifies the Address resources to read. + # @param emergency_enabled [Boolean] Whether the address can be associated to a number for emergency calling. # @param iso_country [String] The ISO country code of the Address resources to read. # @param limit [Integer] Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit @@ -3191,16 +3194,16 @@ class Twilio::REST::Api::V2010::AccountContext::AddressList < ::Twilio::REST::Li # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#127 - def stream(customer_name: T.unsafe(nil), friendly_name: T.unsafe(nil), iso_country: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#130 + def stream(customer_name: T.unsafe(nil), friendly_name: T.unsafe(nil), emergency_enabled: T.unsafe(nil), iso_country: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#197 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#203 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#330 +# source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#336 class Twilio::REST::Api::V2010::AccountContext::AddressPage < ::Twilio::REST::Page # Initialize the AddressPage # @@ -3209,7 +3212,7 @@ class Twilio::REST::Api::V2010::AccountContext::AddressPage < ::Twilio::REST::Pa # @param solution [Hash] Path solution for the resource # @return [AddressPage] AddressPage # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#337 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#343 def initialize(version, response, solution); end # Build an instance of AddressInstance @@ -3217,12 +3220,12 @@ class Twilio::REST::Api::V2010::AccountContext::AddressPage < ::Twilio::REST::Pa # @param payload [Hash] Payload response from the API # @return [AddressInstance] AddressInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#348 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#354 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#354 + # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/address.rb#360 def to_s; end end @@ -53154,10 +53157,10 @@ class Twilio::REST::Iam::V1 < ::Twilio::REST::Version # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1.rb#45 def get_api_keys; end - # @return [Twilio::REST::Iam::V1::KeyList] + # @return [Twilio::REST::Iam::V1::NewApiKeyList] # # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1.rb#50 - def keys; end + def new_api_key; end # Provide a user friendly representation # @@ -53482,112 +53485,112 @@ class Twilio::REST::Iam::V1::GetApiKeysPage < ::Twilio::REST::Page def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#104 -class Twilio::REST::Iam::V1::KeyInstance < ::Twilio::REST::InstanceResource - # Initialize the KeyInstance +# source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#104 +class Twilio::REST::Iam::V1::NewApiKeyInstance < ::Twilio::REST::InstanceResource + # Initialize the NewApiKeyInstance # # @param version [Version] Version that contains the resource # @param payload [Hash] payload that contains response from Twilio # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Key + # {Account}[https://www.twilio.com/docs/iam/api/account] that created this NewApiKey # resource. # @param sid [String] The SID of the Call resource to fetch. - # @return [KeyInstance] KeyInstance + # @return [NewApiKeyInstance] NewApiKeyInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#114 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#114 def initialize(version, payload); end # @return [Time] The date and time in GMT that the API Key was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#143 def date_created; end # @return [Time] The date and time in GMT that the new API Key was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#149 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#149 def date_updated; end # @return [String] The string that you assigned to describe the resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#137 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#137 def friendly_name; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#173 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#173 def inspect; end # @return [Hash] Collection of allow assertions. # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#161 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#161 def policy; end # @return [String] The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth `password`). **Note that for security reasons, this field is ONLY returned when the API Key is first created.** # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#155 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#155 def secret; end # @return [String] The unique string that that we created to identify the NewKey resource. You will use this as the basic-auth `user` when authenticating to the API. # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#131 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#131 def sid; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#167 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#167 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#20 -class Twilio::REST::Iam::V1::KeyList < ::Twilio::REST::ListResource - # Initialize the KeyList +# source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#20 +class Twilio::REST::Iam::V1::NewApiKeyList < ::Twilio::REST::ListResource + # Initialize the NewApiKeyList # # @param version [Version] Version that contains the resource - # @return [KeyList] KeyList + # @return [NewApiKeyList] NewApiKeyList # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#26 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#26 def initialize(version); end - # Create the KeyInstance + # Create the NewApiKeyInstance # # @param account_sid [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. # @param friendly_name [String] A descriptive string that you create to describe the resource. It can be up to 64 characters long. # @param key_type [Keytype] # @param policy [Object] The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys). - # @return [KeyInstance] Created KeyInstance + # @return [NewApiKeyInstance] Created NewApiKeyInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#40 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#40 def create(account_sid: T.unsafe(nil), friendly_name: T.unsafe(nil), key_type: T.unsafe(nil), policy: T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#71 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#71 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#76 -class Twilio::REST::Iam::V1::KeyPage < ::Twilio::REST::Page - # Initialize the KeyPage +# source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#76 +class Twilio::REST::Iam::V1::NewApiKeyPage < ::Twilio::REST::Page + # Initialize the NewApiKeyPage # # @param version [Version] Version that contains the resource # @param response [Response] Response from the API # @param solution [Hash] Path solution for the resource - # @return [KeyPage] KeyPage + # @return [NewApiKeyPage] NewApiKeyPage # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#83 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#83 def initialize(version, response, solution); end - # Build an instance of KeyInstance + # Build an instance of NewApiKeyInstance # # @param payload [Hash] Payload response from the API - # @return [KeyInstance] KeyInstance + # @return [NewApiKeyInstance] NewApiKeyInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#94 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#94 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/key.rb#100 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/new_api_key.rb#100 def to_s; end end From 61e432e69ac4baec7697f2ca9a6547858ef63dda Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Wed, 12 Mar 2025 16:52:17 -0400 Subject: [PATCH 09/41] padawan - bigger start voting button --- app/frontend/pages/Legislators.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/frontend/pages/Legislators.tsx b/app/frontend/pages/Legislators.tsx index cd6ade3e..d81646ae 100644 --- a/app/frontend/pages/Legislators.tsx +++ b/app/frontend/pages/Legislators.tsx @@ -92,7 +92,7 @@ const Legislators_: React.FC = ({ legislators: representatives }) => {
- + Start Voting  From bb93bd96ac3da21261afa9ff2cf88cc34cbd227e Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Wed, 12 Mar 2025 19:45:42 -0400 Subject: [PATCH 10/41] padawan - rubocoop --- .rubocop.yml | 2 ++ .rubocop/rails.yml | 2 +- .rubocop/rspec.yml | 2 +- app/models/bill.rb | 2 +- .../scraper/congress/senate/legislator_votes.rb | 13 +++++++------ 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 59add8a6..50941d4a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -4,6 +4,8 @@ inherit_mode: require: - standard + +plugins: - rubocop-performance inherit_gem: diff --git a/.rubocop/rails.yml b/.rubocop/rails.yml index fd1fce5e..0794eea7 100644 --- a/.rubocop/rails.yml +++ b/.rubocop/rails.yml @@ -1,7 +1,7 @@ # Based on removed standard configuration: # https://github.com/testdouble/standard/commit/94d133f477a5694084ac974d5ee01e8a66ce777e#diff-65478e10d5b2ef41c7293a110c0e6b7c -require: +plugins: - rubocop-rails Rails/ActionFilter: diff --git a/.rubocop/rspec.yml b/.rubocop/rspec.yml index d6d624d2..638c62e2 100644 --- a/.rubocop/rspec.yml +++ b/.rubocop/rspec.yml @@ -1,4 +1,4 @@ -require: +plugins: - rubocop-rspec # Disable all cops by default, diff --git a/app/models/bill.rb b/app/models/bill.rb index d5ee0dda..9c3cc269 100644 --- a/app/models/bill.rb +++ b/app/models/bill.rb @@ -106,7 +106,7 @@ def active if introduced_date_time_utc.before?(sway_locale.current_session_start_date) false else - T.cast(super.nil? ? true : super, T::Boolean) + T.cast(super.nil? || super, T::Boolean) end end diff --git a/app/scraper/scraper/congress/senate/legislator_votes.rb b/app/scraper/scraper/congress/senate/legislator_votes.rb index 241af587..2c1e305c 100644 --- a/app/scraper/scraper/congress/senate/legislator_votes.rb +++ b/app/scraper/scraper/congress/senate/legislator_votes.rb @@ -8,6 +8,13 @@ module Congress module Senate extend T::Sig + QUESTIONS = [ + "on the nomination", + "on the joint resolution", + "on passage of the bill", + "on the motion" + ].freeze + # https://github.com/LibraryOfCongress/api.congress.gov/issues/64#issuecomment-1403894201 # https://senate.gov/legislative/LIS/roll_call_votes/vote1182/vote_118_2_00421.xml class LegislatorVotes @@ -60,12 +67,6 @@ def endpoint "legislative/LIS/roll_call_votes/vote#{@congress}#{@session}/vote_#{@congress}_#{@session}_#{vote_number}.xml" end - QUESTIONS = [ - "on the nomination", - "on the joint resolution", - "on passage of the bill", - "on the motion" - ].freeze def acceptable_question?(question) QUESTIONS.include?(question.strip.downcase) end From 1a297307f05b1c8d18127d2ff8bb2708255ef060 Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Mon, 17 Mar 2025 11:29:03 -0400 Subject: [PATCH 11/41] padawan - try to remove an N+1 on legislator votes added --- .github/workflows/rspec.yml | 2 +- .ruby-version | 2 +- Gemfile | 2 +- Gemfile.lock | 6 +- ...congress_legislator_vote_update_service.rb | 16 +++-- .../dockerfiles/production.alpine.dockerfile | 2 +- docker/dockerfiles/production.dockerfile | 2 +- ...ess_legislator_vote_update_service_spec.rb | 66 ++++++++++++------- spec/services/sway_registration_spec.rb | 6 +- 9 files changed, 64 insertions(+), 40 deletions(-) diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml index b5e78f39..1249754d 100644 --- a/.github/workflows/rspec.yml +++ b/.github/workflows/rspec.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Ruby and install gems uses: ruby/setup-ruby@v1 with: - ruby-version: "3.4.1" + ruby-version: "3.4.2" bundler-cache: true - name: Set up Node.js diff --git a/.ruby-version b/.ruby-version index 47b322c9..4d9d11cf 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.4.1 +3.4.2 diff --git a/Gemfile b/Gemfile index 8c03a992..7ccfe30e 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" -ruby "3.4.1" +ruby "3.4.2" # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" # gem "rails", "~> 8" diff --git a/Gemfile.lock b/Gemfile.lock index e4af5ee2..fdf9702b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -522,6 +522,9 @@ GEM websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) + yaml_db (0.7.0) + rails (>= 3.0) + rake (>= 0.8.7) yard (0.9.37) yard-sorbet (0.9.0) sorbet-runtime @@ -585,9 +588,10 @@ DEPENDENCIES web-console web-push webauthn + yaml_db RUBY VERSION - ruby 3.4.1p0 + ruby 3.4.2p28 BUNDLED WITH 2.6.3 diff --git a/app/services/congress_legislator_vote_update_service.rb b/app/services/congress_legislator_vote_update_service.rb index 45706d26..861abd34 100644 --- a/app/services/congress_legislator_vote_update_service.rb +++ b/app/services/congress_legislator_vote_update_service.rb @@ -10,6 +10,7 @@ class CongressLegislatorVoteUpdateService sig { params(bill_id: Integer).void } def initialize(bill_id) @bill = Bill.includes(:sway_locale, :votes).find(bill_id) + @legislators = @bill.sway_locale.legislators end sig { void } @@ -54,18 +55,19 @@ def create(legislator_id, vote) sig { params(vote: Scraper::Congress::House::Vote).returns(T.nilable(Integer)) } def representative(vote) - Legislator.where(external_id: vote.external_id).select(:id).first&.id + @legislators.find { |l| l.external_id == vote.external_id }&.id end sig { params(vote: Scraper::Congress::Senate::Vote).returns(T.nilable(Integer)) } def senator(vote) - legislators = Legislator.where( - first_name: vote.first_name.strip, - last_name: vote.last_name.strip, - party: [vote.party, Legislator.to_party_name_from_char(T.let(vote.party.strip, String))], - title: "Sen." - ).select(:id) + legislators = @legislators.select do |l| + l.first_name == vote.first_name.strip && + l.last_name == vote.last_name.strip && + [vote.party, Legislator.to_party_name_from_char(T.let(vote.party.strip, String))].include?(l.party) && + l.title == "Sen." + end + # binding.pry if legislators.empty? return nil if legislators.empty? if legislators.size == 1 diff --git a/docker/dockerfiles/production.alpine.dockerfile b/docker/dockerfiles/production.alpine.dockerfile index 169979bf..7411be6c 100644 --- a/docker/dockerfiles/production.alpine.dockerfile +++ b/docker/dockerfiles/production.alpine.dockerfile @@ -1,4 +1,4 @@ -ARG RUBY_VERSION=3.4.1 +ARG RUBY_VERSION=3.4.2 FROM registry.docker.com/library/ruby:$RUBY_VERSION-alpine AS base LABEL fly_launch_runtime="rails" diff --git a/docker/dockerfiles/production.dockerfile b/docker/dockerfiles/production.dockerfile index b4e2de81..a7ca1c57 100644 --- a/docker/dockerfiles/production.dockerfile +++ b/docker/dockerfiles/production.dockerfile @@ -1,4 +1,4 @@ -ARG RUBY_VERSION=3.4.1 +ARG RUBY_VERSION=3.4.2 FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim AS base LABEL fly_launch_runtime="rails" diff --git a/spec/services/congress_legislator_vote_update_service_spec.rb b/spec/services/congress_legislator_vote_update_service_spec.rb index d0dc0e86..c7a4643b 100644 --- a/spec/services/congress_legislator_vote_update_service_spec.rb +++ b/spec/services/congress_legislator_vote_update_service_spec.rb @@ -1,7 +1,7 @@ # typed: true # frozen_string_literal: true -require_relative "../../db/seeds/models/legislator" +require "open3" CONGRESS = { city: "congress", @@ -10,28 +10,44 @@ } RSpec.describe CongressLegislatorVoteUpdateService do - skip "This test hits the Congress API for each legislator." + before do + dev_db_file_path = Rails.root.join("storage", "development.sqlite3").to_s + data_file_path = Rails.root.join("storage", "dev-data.sql").to_s - describe "#run" do - context "a new CONGRESSIONAL Bill is created" do - before do - sway_locale = create( - :sway_locale, - CONGRESS - ) - skip "No legislators seeded. Skipping test." if sway_locale.legislators.size == 0 - - SeedLegislator.run([sway_locale]) - end + skip "No file found at path - #{dev_db_file_path}" unless File.exist?(dev_db_file_path) - after do - Legislator.all.each do |l| - l.bills.each(&:destroy) - end - Legislator.all.each(&:destroy) - SwayLocale.find_by(CONGRESS)&.destroy - end + command = "sqlite3 storage/development.sqlite3 '.dump \"legislators\" \"sway_locales\" \"districts\"' | grep '^INSERT' > #{data_file_path}" + _, stderr, status = Open3.capture3(command) + expect(status.success?).to be true + expect(stderr).to be_empty + + sql = File.read(data_file_path).gsub("'environment','development'", "'environment','test'") + + statements = sql.split(/;$/) + statements.pop # remove empty line + statements.each do |line| + ActiveRecord::Base.connection.execute(line) + end + + User.destroy_all + + skip "Legislators must be pre-seeded to run this test." if Legislator.count.zero? + sway_locale = SwayLocale.find_by(CONGRESS) + + skip "Congress Locale must be pre-seeded to run this test." if sway_locale.nil? + + LegislatorVote.destroy_all + end + + after(:all) do + SwayLocale.destroy_all + Legislator.destroy_all + LegislatorVote.destroy_all + end + + describe "#run" do + context "a new CONGRESSIONAL Bill is created" do it "creates new LegislatorVotes for both the house and senate" do expect(Legislator.count).to be > 500 expect(LegislatorVote.count).to eql(0) @@ -48,12 +64,12 @@ representative = Legislator.find_by(external_id: "M000687").presence || build(:legislator, address:, district:, first_name: "Kweisi", last_name: "Mfume", external_id: "M000687", title: "Rep.") - bill = create(:bill, sway_locale: sway_locale, external_id: "hr815") - create(:vote, bill:) + bill = create(:bill, sway_locale: sway_locale, external_id: "s5") + create(:vote, bill:, house_roll_call_vote_number: "23", senate_roll_call_vote_number: "7") - expect(LegislatorVote.count).to eql(510) - expect(LegislatorVote.where(legislator: senator).first&.support).to eql("FOR") - expect(LegislatorVote.where(legislator: representative).first&.support).to eql("FOR") + expect(LegislatorVote.count).to eql(530) + expect(LegislatorVote.where(legislator: senator).first&.support).to eql("AGAINST") + expect(LegislatorVote.where(legislator: representative).first&.support).to eql("AGAINST") end end end diff --git a/spec/services/sway_registration_spec.rb b/spec/services/sway_registration_spec.rb index 80e26ac6..5cfd407b 100644 --- a/spec/services/sway_registration_spec.rb +++ b/spec/services/sway_registration_spec.rb @@ -16,7 +16,8 @@ _user_address = create(:user_address, user:, address:) address.sway_locales.filter { |s| s.congress? || s.has_geojson? }.each do |s| - district = create(:district, sway_locale: s, name: s.congress? ? "#{address.region_code}7" : "#{address.region_code}0") + name = s.congress? ? "#{address.region_code}7" : "#{address.region_code}0" + district = District.find_by(sway_locale: s, name:) || create(:district, sway_locale: s, name:) create(:legislator, district:) sway_registration_service = SwayRegistrationService.new( @@ -43,7 +44,8 @@ _invited_user_user_address = create(:user_address, user: invited_user, address: invited_user_address) address.sway_locales.filter { |s| s.congress? || s.has_geojson? }.each_with_index do |s, i| - district = create(:district, sway_locale: s, name: s.congress? ? "#{address.region_code}7" : "#{address.region_code}0") + name = s.congress? ? "#{address.region_code}7" : "#{address.region_code}0" + district = District.find_by(sway_locale: s, name:) || create(:district, sway_locale: s, name:) create(:legislator, district:) sway_registration_service = SwayRegistrationService.new( From 4c811397ffa9604a0a9e342990771bffe798f397 Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Mon, 17 Mar 2025 15:40:37 -0400 Subject: [PATCH 12/41] padawan - deps + add libyaml to dockerfile to fix psych build issue - https://github.com/rbenv/ruby-build/discussions/2334\#discussioncomment-9960957 --- Gemfile.lock | 47 +++++++++++------------- docker/dockerfiles/production.dockerfile | 1 + 2 files changed, 23 insertions(+), 25 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index fdf9702b..6136a246 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -160,7 +160,8 @@ GEM google-cloud-core (1.8.0) google-cloud-env (>= 1.0, < 3.a) google-cloud-errors (~> 1.0) - google-cloud-env (2.2.1) + google-cloud-env (2.2.2) + base64 (~> 0.2) faraday (>= 1.0, < 3.a) google-cloud-errors (1.5.0) google-cloud-storage (1.55.0) @@ -173,7 +174,7 @@ GEM googleauth (~> 1.9) mini_mime (~> 1.0) google-logging-utils (0.1.0) - googleauth (1.13.1) + googleauth (1.14.0) faraday (>= 1.0, < 3.a) google-cloud-env (~> 2.2) google-logging-utils (~> 0.1) @@ -219,7 +220,7 @@ GEM method_source (1.1.0) mini_mime (1.1.5) mini_portile2 (2.8.8) - minitest (5.25.4) + minitest (5.25.5) msgpack (1.8.0) multi_json (1.15.0) mutex_m (0.3.0) @@ -237,11 +238,11 @@ GEM netrc (0.11.0) newrelic_rpm (9.17.0) nio4r (2.7.4) - nokogiri (1.18.3-arm64-darwin) + nokogiri (1.18.4-arm64-darwin) racc (~> 1.4) - nokogiri (1.18.3-x86_64-darwin) + nokogiri (1.18.4-x86_64-darwin) racc (~> 1.4) - nokogiri (1.18.3-x86_64-linux-gnu) + nokogiri (1.18.4-x86_64-linux-gnu) racc (~> 1.4) openssl (3.3.0) openssl-signature_algorithm (1.3.0) @@ -312,7 +313,7 @@ GEM zeitwerk (~> 2.6) rainbow (3.1.1) rake (13.2.1) - rbi (0.3.0) + rbi (0.3.1) prism (~> 1.0) rbs (>= 3.4.4) sorbet-runtime (>= 0.5.9204) @@ -366,9 +367,9 @@ GEM rubocop-ast (>= 1.38.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.38.1) + rubocop-ast (1.39.0) parser (>= 3.3.1.0) - rubocop-factory_bot (2.27.0) + rubocop-factory_bot (2.27.1) lint_roller (~> 1.1) rubocop (~> 1.72, >= 1.72.1) rubocop-performance (1.24.0) @@ -386,7 +387,7 @@ GEM rubocop (~> 1.72, >= 1.72.1) rubocop-shopify (2.16.0) rubocop (~> 1.62) - rubocop-thread_safety (0.7.1) + rubocop-thread_safety (0.7.2) lint_roller (~> 1.1) rubocop (~> 1.72, >= 1.72.1) ruby-progressbar (1.13.0) @@ -413,22 +414,22 @@ GEM faraday (>= 0.17.5, < 3.a) jwt (>= 1.5, < 3.0) multi_json (~> 1.10) - solid_queue (1.1.3) + solid_queue (1.1.4) activejob (>= 7.1) activerecord (>= 7.1) concurrent-ruby (>= 1.3.1) fugit (~> 1.11.0) railties (>= 7.1) thor (~> 1.3.1) - sorbet (0.5.11919) - sorbet-static (= 0.5.11919) - sorbet-runtime (0.5.11919) - sorbet-static (0.5.11919-universal-darwin) - sorbet-static (0.5.11919-x86_64-linux) - sorbet-static-and-runtime (0.5.11919) - sorbet (= 0.5.11919) - sorbet-runtime (= 0.5.11919) - spoom (1.6.0) + sorbet (0.5.11934) + sorbet-static (= 0.5.11934) + sorbet-runtime (0.5.11934) + sorbet-static (0.5.11934-universal-darwin) + sorbet-static (0.5.11934-x86_64-linux) + sorbet-static-and-runtime (0.5.11934) + sorbet (= 0.5.11934) + sorbet-runtime (= 0.5.11934) + spoom (1.6.1) erubi (>= 1.10.0) prism (>= 0.28.0) rbi (>= 0.2.3) @@ -522,9 +523,6 @@ GEM websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) - yaml_db (0.7.0) - rails (>= 3.0) - rake (>= 0.8.7) yard (0.9.37) yard-sorbet (0.9.0) sorbet-runtime @@ -588,10 +586,9 @@ DEPENDENCIES web-console web-push webauthn - yaml_db RUBY VERSION ruby 3.4.2p28 BUNDLED WITH - 2.6.3 + 2.6.6 diff --git a/docker/dockerfiles/production.dockerfile b/docker/dockerfiles/production.dockerfile index a7ca1c57..1b11cdc5 100644 --- a/docker/dockerfiles/production.dockerfile +++ b/docker/dockerfiles/production.dockerfile @@ -28,6 +28,7 @@ FROM base AS build RUN apt-get update -qq && \ apt-get install --no-install-recommends -y \ build-essential \ + libyaml-dev \ libsqlite3-0 \ nodejs \ npm \ From 09fb3b2caa85ec75090d8ec1c01f305315d07f90 Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Tue, 1 Apr 2025 17:04:03 -0400 Subject: [PATCH 13/41] padawan - adjust bill creator padding --- .../bill/creator/BillOfTheWeekCreator.tsx | 39 ++++++++++--------- .../components/user/LocaleSelector.tsx | 5 ++- app/models/vote.rb | 4 +- 3 files changed, 26 insertions(+), 22 deletions(-) diff --git a/app/frontend/components/bill/creator/BillOfTheWeekCreator.tsx b/app/frontend/components/bill/creator/BillOfTheWeekCreator.tsx index 08385ea2..7d61c2b6 100644 --- a/app/frontend/components/bill/creator/BillOfTheWeekCreator.tsx +++ b/app/frontend/components/bill/creator/BillOfTheWeekCreator.tsx @@ -106,30 +106,31 @@ const BillOfTheWeekCreator_: React.FC = ({ bills, bill, user, tab_key =
{isLoading && } -
-
+
+
- +
-
+
- Previous Bill of the Day -
- { + TempBillStorage.remove(); + handleChangeBill(o); + }} + />
diff --git a/app/frontend/components/user/LocaleSelector.tsx b/app/frontend/components/user/LocaleSelector.tsx index b874f895..617bf423 100644 --- a/app/frontend/components/user/LocaleSelector.tsx +++ b/app/frontend/components/user/LocaleSelector.tsx @@ -9,11 +9,12 @@ import { useLocale, useLocales } from "../../hooks/useLocales"; interface IProps { containerStyle?: React.CSSProperties; callahead?: () => void; + labelClassName?: string; } const toSelectOption = (l: sway.ISwayLocale): ISelectOption => ({ label: toFormattedLocaleName(l.name), value: l.id }); -const LocaleSelector: React.FC = ({ callahead }) => { +const LocaleSelector: React.FC = ({ callahead, labelClassName }) => { // react-select renders without stylings the first time this is rendered // there are a few issues on github about this // https://github.com/JedWatson/react-select/issues/3309 @@ -53,7 +54,7 @@ const LocaleSelector: React.FC = ({ callahead }) => { return (
- Change Sway Locale: + Change Sway Locale: # # # - # source://actionview//lib/action_view/helpers/form_helper.rb#2473 + # source://actionview//lib/action_view/helpers/form_helper.rb#2476 def check_box(method, options = T.unsafe(nil), checked_value = T.unsafe(nil), unchecked_value = T.unsafe(nil)); end # Returns a checkbox tag tailored for accessing a specified attribute (identified by +method+) on an object @@ -5081,7 +4469,7 @@ class ActionView::Helpers::FormBuilder # # Please refer to the documentation of the base helper for details. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#909 + # source://actionview//lib/action_view/helpers/form_options_helper.rb#912 def collection_check_boxes(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Wraps ActionView::Helpers::FormOptionsHelper#collection_checkboxes for form builders: @@ -5656,7 +5044,7 @@ class ActionView::Helpers::FormBuilder # Returns the value of attribute multipart. # - # source://actionview//lib/action_view/helpers/form_helper.rb#1697 + # source://actionview//lib/action_view/helpers/form_helper.rb#1698 def multipart?; end # source://actionview//lib/action_view/helpers/form_helper.rb#2024 @@ -5777,7 +5165,7 @@ class ActionView::Helpers::FormBuilder # source://actionview//lib/action_view/helpers/form_helper.rb#2024 def telephone_field(method, options = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/form_helper.rb#2024 + # source://actionview//lib/action_view/helpers/form_helper.rb#2034 def text_area(method, options = T.unsafe(nil)); end # source://actionview//lib/action_view/helpers/form_helper.rb#2024 @@ -5877,10 +5265,10 @@ class ActionView::Helpers::FormBuilder private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://actionview//lib/action_view/helpers/form_helper.rb#1685 def __class_attr_field_helpers; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://actionview//lib/action_view/helpers/form_helper.rb#1685 def __class_attr_field_helpers=(new_value); end end end @@ -6063,7 +5451,7 @@ module ActionView::Helpers::FormHelper # # => # # # - # source://actionview//lib/action_view/helpers/form_helper.rb#1347 + # source://actionview//lib/action_view/helpers/form_helper.rb#1350 def check_box(object_name, method, options = T.unsafe(nil), checked_value = T.unsafe(nil), unchecked_value = T.unsafe(nil)); end # Returns a checkbox tag tailored for accessing a specified attribute (identified by +method+) on an object @@ -6238,10 +5626,13 @@ module ActionView::Helpers::FormHelper # datetime_field("user", "born_on", include_seconds: false) # # => # - # source://actionview//lib/action_view/helpers/form_helper.rb#1515 + # source://actionview//lib/action_view/helpers/form_helper.rb#1519 def datetime_local_field(object_name, method, options = T.unsafe(nil)); end + # source://actionview//lib/action_view/helpers/form_helper.rb#122 def default_form_builder; end + + # source://actionview//lib/action_view/helpers/form_helper.rb#122 def default_form_builder=(_arg0); end # Returns a text_field of type "email". @@ -7326,7 +6717,7 @@ module ActionView::Helpers::FormHelper # # => # aliases telephone_field # - # source://actionview//lib/action_view/helpers/form_helper.rb#1410 + # source://actionview//lib/action_view/helpers/form_helper.rb#1414 def phone_field(object_name, method, options = T.unsafe(nil)); end # Returns a radio button tag for accessing a specified attribute (identified by +method+) on an object @@ -7416,7 +6807,7 @@ module ActionView::Helpers::FormHelper # # #{@entry.body} # # # - # source://actionview//lib/action_view/helpers/form_helper.rb#1278 + # source://actionview//lib/action_view/helpers/form_helper.rb#1281 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 @@ -7741,7 +7132,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#782 + # source://actionview//lib/action_view/helpers/form_options_helper.rb#785 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 @@ -8471,7 +7862,7 @@ module ActionView::Helpers::FormTagHelper # checkbox_tag 'eula', 'accepted', false, disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#456 + # source://actionview//lib/action_view/helpers/form_tag_helper.rb#466 def check_box_tag(name, *args); end # :call-seq: @@ -8605,7 +7996,7 @@ 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#797 + # source://actionview//lib/action_view/helpers/form_tag_helper.rb#801 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#29 @@ -8722,7 +8113,7 @@ module ActionView::Helpers::FormTagHelper # <% end %> # # =>

# - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#640 + # source://actionview//lib/action_view/helpers/form_tag_helper.rb#647 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 @@ -9014,7 +8405,7 @@ module ActionView::Helpers::FormTagHelper # telephone_field_tag 'tel', '0123456789', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#714 + # source://actionview//lib/action_view/helpers/form_tag_helper.rb#717 def phone_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # :call-seq: @@ -9226,7 +8617,7 @@ module ActionView::Helpers::FormTagHelper # textarea_tag 'comment', nil, class: 'comment_input' # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#413 + # source://actionview//lib/action_view/helpers/form_tag_helper.rb#425 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 @@ -9450,7 +8841,7 @@ module ActionView::Helpers::JavaScriptHelper # # $('some_element').replaceWith('<%= j render 'some/element_template' %>'); # - # source://actionview//lib/action_view/helpers/javascript_helper.rb#28 + # source://actionview//lib/action_view/helpers/javascript_helper.rb#38 def j(javascript); end # source://actionview//lib/action_view/helpers/javascript_helper.rb#91 @@ -9782,39 +9173,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. # @@ -9825,7 +9210,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. @@ -9837,27 +9221,23 @@ 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] %> @@ -10093,64 +9473,11 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # source://actionview//lib/action_view/helpers/sanitize_helper.rb#171 def sanitized_allowed_attributes; end - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#34 - def sanitized_allowed_attributes=(attributes); end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#47 - def sanitized_allowed_css_keywords; end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#48 - def sanitized_allowed_css_keywords=(_); end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#47 - def sanitized_allowed_css_properties; end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#48 - def sanitized_allowed_css_properties=(_); end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#47 - def sanitized_allowed_protocols; end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#48 - def sanitized_allowed_protocols=(_); end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#167 def sanitized_allowed_tags; end - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#24 - def sanitized_allowed_tags=(tags); end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#47 - def sanitized_bad_tags; end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#48 - def sanitized_bad_tags=(_); end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#47 - def sanitized_protocol_separator; end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#48 - def sanitized_protocol_separator=(_); end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#47 - def sanitized_shorthand_css_properties; end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#48 - def sanitized_shorthand_css_properties=(_); end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#47 - def sanitized_uri_attributes; end - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#48 - def sanitized_uri_attributes=(_); end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#163 def sanitizer_vendor; end - - private - - # source://rails-html-sanitizer/1.6.2/lib/rails-html-sanitizer.rb#52 - def deprecate_option(name); end end # = Action View Tag \Helpers @@ -10192,7 +9519,7 @@ module ActionView::Helpers::TagHelper # token_list(nil, false, 123, "", "foo", { bar: true }) # # => "123 foo bar" # - # source://actionview//lib/action_view/helpers/tag_helper.rb#538 + # source://actionview//lib/action_view/helpers/tag_helper.rb#543 def class_names(*args); end # Returns an HTML block tag of type +name+ surrounding the +content+. Add @@ -10417,12 +9744,12 @@ module ActionView::Helpers::TagHelper def tag_builder; end class << self - # source://actionview//lib/action_view/helpers/tag_helper.rb#580 + # source://actionview//lib/action_view/helpers/tag_helper.rb#598 def build_tag_values(*args); end # @raise [ArgumentError] # - # source://actionview//lib/action_view/helpers/tag_helper.rb#575 + # source://actionview//lib/action_view/helpers/tag_helper.rb#578 def ensure_valid_html5_tag_name(name); end end end @@ -10452,31 +9779,31 @@ class ActionView::Helpers::TagHelper::TagBuilder # source://actionview//lib/action_view/helpers/tag_helper.rb#216 def initialize(view_context); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#112 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 @@ -10488,316 +9815,316 @@ class ActionView::Helpers::TagHelper::TagBuilder # source://actionview//lib/action_view/helpers/tag_helper.rb#225 def attributes(attributes); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#117 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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#290 def boolean_tag_option(key); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#86 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 def content_tag_string(name, content, options, escape = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#129 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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#294 @@ -10809,58 +10136,58 @@ class ActionView::Helpers::TagHelper::TagBuilder # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://actionview//lib/action_view/helpers/tag_helper.rb#83 def wbr(escape: T.unsafe(nil), **options, &block); end private @@ -11020,7 +10347,7 @@ end # source://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 + # source://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 @@ -11941,7 +11268,7 @@ 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 + # source://actionview//lib/action_view/helpers/translation_helper.rb#119 def l(object, **options); end # Delegates to I18n.localize with no additional functionality. @@ -12004,7 +11331,7 @@ 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 + # source://actionview//lib/action_view/helpers/translation_helper.rb#110 def t(key, **options); end # Delegates to I18n#translate but also performs three additional @@ -12927,6 +12254,7 @@ module ActionView::Layouts # source://actionview//lib/action_view/layouts.rb#350 def _process_render_template_options(options); end + # source://actionview//lib/action_view/layouts.rb#359 def action_has_layout=(_arg0); end # Controls whether an action should be rendered using a layout. @@ -13107,10 +12435,10 @@ class ActionView::LogSubscriber < ::ActiveSupport::LogSubscriber private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://actionview//lib/action_view/log_subscriber.rb#24 def __class_attr_log_levels; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://actionview//lib/action_view/log_subscriber.rb#24 def __class_attr_log_levels=(new_value); end end end @@ -13218,40 +12546,40 @@ end # # source://actionview//lib/action_view/lookup_context.rb#39 module ActionView::LookupContext::Accessors - # source://actionview//lib/action_view/lookup_context.rb#50 + # source://actionview//lib/action_view/lookup_context.rb#25 def default_formats; end - # source://actionview//lib/action_view/lookup_context.rb#52 + # source://actionview//lib/action_view/lookup_context.rb#25 def default_handlers; end - # source://actionview//lib/action_view/lookup_context.rb#43 + # source://actionview//lib/action_view/lookup_context.rb#25 def default_locale; end - # source://actionview//lib/action_view/lookup_context.rb#51 + # source://actionview//lib/action_view/lookup_context.rb#25 def default_variants; end - # source://actionview//lib/action_view/lookup_context.rb#27 + # source://actionview//lib/action_view/lookup_context.rb#26 def formats; end - # source://actionview//lib/action_view/lookup_context.rb#31 + # source://actionview//lib/action_view/lookup_context.rb#26 def formats=(value); end - # source://actionview//lib/action_view/lookup_context.rb#27 + # source://actionview//lib/action_view/lookup_context.rb#26 def handlers; end - # source://actionview//lib/action_view/lookup_context.rb#31 + # source://actionview//lib/action_view/lookup_context.rb#26 def handlers=(value); end - # source://actionview//lib/action_view/lookup_context.rb#27 + # source://actionview//lib/action_view/lookup_context.rb#26 def locale; end - # source://actionview//lib/action_view/lookup_context.rb#31 + # source://actionview//lib/action_view/lookup_context.rb#26 def locale=(value); end - # source://actionview//lib/action_view/lookup_context.rb#27 + # source://actionview//lib/action_view/lookup_context.rb#26 def variants; end - # source://actionview//lib/action_view/lookup_context.rb#31 + # source://actionview//lib/action_view/lookup_context.rb#26 def variants=(value); end end @@ -13293,6 +12621,7 @@ end # source://actionview//lib/action_view/lookup_context.rb#54 class ActionView::LookupContext::DetailsKey + # source://actionview//lib/action_view/lookup_context.rb#55 def eql?(_arg0); end class << self @@ -13324,7 +12653,7 @@ module ActionView::LookupContext::ViewPaths # @return [Boolean] # - # source://actionview//lib/action_view/lookup_context.rb#148 + # source://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 @@ -13341,7 +12670,7 @@ module ActionView::LookupContext::ViewPaths # source://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 + # source://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. @@ -13354,7 +12683,7 @@ module ActionView::LookupContext::ViewPaths # @return [Boolean] # - # source://actionview//lib/action_view/lookup_context.rb#141 + # source://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. @@ -13446,30 +12775,47 @@ class ActionView::MissingTemplate::Results::Result < ::Struct # Returns the value of attribute path # # @return [Object] the current value of path + # + # source://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 + # + # source://actionview//lib/action_view/template/error.rb#72 def path=(_); end # Returns the value of attribute score # # @return [Object] the current value of score + # + # source://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 + # + # source://actionview//lib/action_view/template/error.rb#72 def score=(_); end class << self + # source://actionview//lib/action_view/template/error.rb#72 def [](*_arg0); end + + # source://actionview//lib/action_view/template/error.rb#72 def inspect; end + + # source://actionview//lib/action_view/template/error.rb#72 def keyword_init?; end + + # source://actionview//lib/action_view/template/error.rb#72 def members; end + + # source://actionview//lib/action_view/template/error.rb#72 def new(*_arg0); end end end @@ -13537,7 +12883,7 @@ class ActionView::OutputBuffer # source://actionview//lib/action_view/buffers.rb#81 def ==(other); end - # source://actionview//lib/action_view/buffers.rb#42 + # source://actionview//lib/action_view/buffers.rb#54 def append=(value); end # source://actionview//lib/action_view/buffers.rb#27 @@ -13546,7 +12892,7 @@ class ActionView::OutputBuffer # source://actionview//lib/action_view/buffers.rb#72 def capture(*args); end - # source://actionview//lib/action_view/buffers.rb#42 + # source://actionview//lib/action_view/buffers.rb#53 def concat(value); end # source://actionview//lib/action_view/buffers.rb#27 @@ -13561,7 +12907,7 @@ class ActionView::OutputBuffer # source://actionview//lib/action_view/buffers.rb#27 def force_encoding(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/buffers.rb#29 + # source://actionview//lib/action_view/buffers.rb#32 def html_safe; end # @return [Boolean] @@ -13580,7 +12926,7 @@ class ActionView::OutputBuffer # source://actionview//lib/action_view/buffers.rb#89 def raw_buffer; end - # source://actionview//lib/action_view/buffers.rb#56 + # source://actionview//lib/action_view/buffers.rb#60 def safe_append=(value); end # source://actionview//lib/action_view/buffers.rb#56 @@ -13615,7 +12961,7 @@ class ActionView::OutputFlow # Called by content_for # - # source://actionview//lib/action_view/flows.rb#24 + # source://actionview//lib/action_view/flows.rb#27 def append!(key, value); end # Returns the value of attribute content. @@ -13893,10 +13239,10 @@ class ActionView::PartialRenderer < ::ActionView::AbstractRenderer # source://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 + # source://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 + # source://actionview//lib/action_view/renderer/partial_renderer.rb#221 def collection_cache=(val); end # source://actionview//lib/action_view/renderer/partial_renderer.rb#230 @@ -13914,10 +13260,10 @@ class ActionView::PartialRenderer < ::ActionView::AbstractRenderer def template_keys(_); end class << self - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#12 + # source://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 + # source://actionview//lib/action_view/renderer/partial_renderer.rb#221 def collection_cache=(val); end end end @@ -14016,17 +13362,7 @@ end # = Action View Railtie # # source://actionview//lib/action_view/railtie.rb#8 -class ActionView::Railtie < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end +class ActionView::Railtie < ::Rails::Engine; end # source://actionview//lib/action_view/buffers.rb#92 class ActionView::RawOutputBuffer @@ -14303,6 +13639,7 @@ module ActionView::Rendering # source://actionview//lib/action_view/rendering.rb#119 def render_to_body(options = T.unsafe(nil)); end + # source://actionview//lib/action_view/rendering.rb#30 def rendered_format; end # An instance of a view class. The default view class is ActionView::Base. @@ -14422,7 +13759,7 @@ class ActionView::Resolver # source://actionview//lib/action_view/template/resolver.rb#50 def caching=(val); end - # source://actionview//lib/action_view/template/resolver.rb#50 + # source://actionview//lib/action_view/template/resolver.rb#53 def caching?; end end end @@ -14441,30 +13778,47 @@ class ActionView::Resolver::PathParser::ParsedPath < ::Struct # Returns the value of attribute details # # @return [Object] the current value of details + # + # source://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 + # + # source://actionview//lib/action_view/template/resolver.rb#13 def details=(_); end # Returns the value of attribute path # # @return [Object] the current value of path + # + # source://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 + # + # source://actionview//lib/action_view/template/resolver.rb#13 def path=(_); end class << self + # source://actionview//lib/action_view/template/resolver.rb#13 def [](*_arg0); end + + # source://actionview//lib/action_view/template/resolver.rb#13 def inspect; end + + # source://actionview//lib/action_view/template/resolver.rb#13 def keyword_init?; end + + # source://actionview//lib/action_view/template/resolver.rb#13 def members; end + + # source://actionview//lib/action_view/template/resolver.rb#13 def new(*_arg0); end end end @@ -14473,9 +13827,6 @@ end module ActionView::RoutingUrlFor include ::ActionDispatch::Routing::PolymorphicRoutes - # source://actionpack/8.0.2/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 @@ -14573,11 +13924,6 @@ module ActionView::RoutingUrlFor # # source://actionview//lib/action_view/routing_url_for.rb#134 def optimize_routes_generation?; end - - class << self - # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#102 - def default_url_options=(val); end - end end # source://actionview//lib/action_view/buffers.rb#108 @@ -14590,7 +13936,7 @@ class ActionView::StreamingBuffer # source://actionview//lib/action_view/buffers.rb#113 def <<(value); end - # source://actionview//lib/action_view/buffers.rb#113 + # source://actionview//lib/action_view/buffers.rb#119 def append=(value); end # Returns the value of attribute block. @@ -14601,7 +13947,7 @@ class ActionView::StreamingBuffer # source://actionview//lib/action_view/buffers.rb#126 def capture; end - # source://actionview//lib/action_view/buffers.rb#113 + # source://actionview//lib/action_view/buffers.rb#118 def concat(value); end # source://actionview//lib/action_view/buffers.rb#139 @@ -14615,7 +13961,7 @@ class ActionView::StreamingBuffer # source://actionview//lib/action_view/buffers.rb#143 def raw; end - # source://actionview//lib/action_view/buffers.rb#121 + # source://actionview//lib/action_view/buffers.rb#124 def safe_append=(value); end # source://actionview//lib/action_view/buffers.rb#121 @@ -14986,7 +14332,7 @@ class ActionView::Template::HTML # source://actionview//lib/action_view/template/html.rb#14 def identifier; end - # source://actionview//lib/action_view/template/html.rb#14 + # source://actionview//lib/action_view/template/html.rb#18 def inspect; end # source://actionview//lib/action_view/template/html.rb#24 @@ -15072,10 +14418,10 @@ class ActionView::Template::Handlers::Builder private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://actionview//lib/action_view/template/handlers/builder.rb#6 def __class_attr_default_format; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://actionview//lib/action_view/template/handlers/builder.rb#6 def __class_attr_default_format=(new_value); end end end @@ -15213,28 +14559,28 @@ class ActionView::Template::Handlers::ERB private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://actionview//lib/action_view/template/handlers/erb.rb#17 def __class_attr_erb_implementation; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://actionview//lib/action_view/template/handlers/erb.rb#17 def __class_attr_erb_implementation=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://actionview//lib/action_view/template/handlers/erb.rb#14 def __class_attr_erb_trim_mode; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://actionview//lib/action_view/template/handlers/erb.rb#14 def __class_attr_erb_trim_mode=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://actionview//lib/action_view/template/handlers/erb.rb#20 def __class_attr_escape_ignore_list; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://actionview//lib/action_view/template/handlers/erb.rb#20 def __class_attr_escape_ignore_list=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://actionview//lib/action_view/template/handlers/erb.rb#23 def __class_attr_strip_trailing_newlines; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://actionview//lib/action_view/template/handlers/erb.rb#23 def __class_attr_strip_trailing_newlines=(new_value); end end end @@ -15380,10 +14726,10 @@ class ActionView::Template::SimpleType # source://actionview//lib/action_view/template/types.rb#33 def to_s; end - # source://actionview//lib/action_view/template/types.rb#33 + # source://actionview//lib/action_view/template/types.rb#36 def to_str; end - # source://actionview//lib/action_view/template/types.rb#38 + # source://actionview//lib/action_view/template/types.rb#41 def to_sym; end class << self @@ -15435,7 +14781,7 @@ class ActionView::Template::Text # source://actionview//lib/action_view/template/text.rb#13 def identifier; end - # source://actionview//lib/action_view/template/text.rb#13 + # source://actionview//lib/action_view/template/text.rb#17 def inspect; end # source://actionview//lib/action_view/template/text.rb#23 @@ -15572,7 +14918,7 @@ class ActionView::TemplatePath # @return [Boolean] # - # source://actionview//lib/action_view/template_path.rb#61 + # source://actionview//lib/action_view/template_path.rb#64 def ==(other); end # @return [Boolean] @@ -15595,7 +14941,7 @@ class ActionView::TemplatePath # Returns the value of attribute partial. # - # source://actionview//lib/action_view/template_path.rb#12 + # source://actionview//lib/action_view/template_path.rb#13 def partial?; end # Returns the value of attribute prefix. @@ -15605,12 +14951,12 @@ class ActionView::TemplatePath # Returns the value of attribute virtual. # - # source://actionview//lib/action_view/template_path.rb#12 + # source://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 + # source://actionview//lib/action_view/template_path.rb#54 def to_str; end # Returns the value of attribute virtual. @@ -15620,7 +14966,7 @@ class ActionView::TemplatePath # Returns the value of attribute virtual. # - # source://actionview//lib/action_view/template_path.rb#12 + # source://actionview//lib/action_view/template_path.rb#14 def virtual_path; end class << self @@ -15732,32 +15078,32 @@ class ActionView::TestCase < ::ActiveSupport::TestCase extend ::ActiveSupport::Testing::ConstantLookup::ClassMethods extend ::ActionView::TestCase::Behavior::ClassMethods - # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 + # source://actionview//lib/action_view/test_case.rb#447 def _helper_methods; end - # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 + # source://actionview//lib/action_view/test_case.rb#447 def _helper_methods=(_arg0); end - # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 + # source://actionview//lib/action_view/test_case.rb#447 def _helper_methods?; end - # source://actionview//lib/action_view/helpers/translation_helper.rb#18 + # source://actionview//lib/action_view/test_case.rb#447 def debug_missing_translation; end - # source://actionview//lib/action_view/helpers/translation_helper.rb#18 + # source://actionview//lib/action_view/test_case.rb#447 def debug_missing_translation=(val); end class << self - # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 + # source://actionview//lib/action_view/test_case.rb#447 def _helper_methods; end - # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 + # source://actionview//lib/action_view/test_case.rb#447 def _helper_methods=(value); end - # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#13 + # source://actionview//lib/action_view/test_case.rb#447 def _helper_methods?; end - # source://actionpack/8.0.2/lib/abstract_controller/helpers.rb#17 + # source://actionview//lib/action_view/test_case.rb#447 def _helpers; end # source://actionview//lib/action_view/test_case.rb#200 @@ -15769,30 +15115,30 @@ class ActionView::TestCase < ::ActiveSupport::TestCase # source://actionview//lib/action_view/test_case.rb#200 def content_class?; end - # source://actionview//lib/action_view/helpers/translation_helper.rb#18 + # source://actionview//lib/action_view/test_case.rb#447 def debug_missing_translation; end - # source://actionview//lib/action_view/helpers/translation_helper.rb#18 + # source://actionview//lib/action_view/test_case.rb#447 def debug_missing_translation=(val); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://actionview//lib/action_view/test_case.rb#202 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://actionview//lib/action_view/test_case.rb#202 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://actionview//lib/action_view/test_case.rb#447 def __class_attr__helper_methods; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://actionview//lib/action_view/test_case.rb#447 def __class_attr__helper_methods=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://actionview//lib/action_view/test_case.rb#200 def __class_attr_content_class; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://actionview//lib/action_view/test_case.rb#200 def __class_attr_content_class=(new_value); end end end @@ -15956,7 +15302,7 @@ module ActionView::TestCase::Behavior # The instance of ActionView::Base that is used by +render+. # - # source://actionview//lib/action_view/test_case.rb#356 + # source://actionview//lib/action_view/test_case.rb#367 def _view; end # Need to experiment if this priority is the best one: rendered => output_buffer @@ -16161,7 +15507,7 @@ class ActionView::TestCase::Behavior::RenderedViewsCollection def view_rendered?(view, expected_locals); end end -# source://actionview//lib/action_view/test_case.rb#0 +# source://actionview//lib/action_view/test_case.rb#447 module ActionView::TestCase::HelperMethods # source://actionview//lib/action_view/test_case.rb#214 def _test_case; end @@ -16221,7 +15567,7 @@ class ActionView::TestCase::TestController < ::ActionController::Base private - # source://actionview//lib/action_view/layouts.rb#328 + # source://actionview//lib/action_view/test_case.rb#16 def _layout(lookup_context, formats, keys); end class << self @@ -16240,10 +15586,10 @@ class ActionView::TestCase::TestController < ::ActionController::Base private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://actionview//lib/action_view/test_case.rb#16 def __class_attr_middleware_stack; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://actionview//lib/action_view/test_case.rb#16 def __class_attr_middleware_stack=(new_value); end end end @@ -16302,7 +15648,7 @@ ActionView::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) ActionView::VERSION::MINOR = T.let(T.unsafe(nil), Integer) # source://actionview//lib/action_view/gem_version.rb#13 -ActionView::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) +ActionView::VERSION::PRE = T.let(T.unsafe(nil), String) # source://actionview//lib/action_view/gem_version.rb#15 ActionView::VERSION::STRING = T.let(T.unsafe(nil), String) @@ -16441,12 +15787,4 @@ class ActionView::WrongEncodingError < ::ActionView::EncodingError def message; end end -module ERB::Escape - private - - def html_escape(_arg0); end - - class << self - def html_escape(_arg0); end - end -end +module ERB::Escape; end diff --git a/sorbet/rbi/gems/activejob@8.0.2.rbi b/sorbet/rbi/gems/activejob@8.0.2.1.rbi similarity index 90% rename from sorbet/rbi/gems/activejob@8.0.2.rbi rename to sorbet/rbi/gems/activejob@8.0.2.1.rbi index 4deac7eb..3910ba6a 100644 --- a/sorbet/rbi/gems/activejob@8.0.2.rbi +++ b/sorbet/rbi/gems/activejob@8.0.2.1.rbi @@ -205,104 +205,113 @@ class ActiveJob::Base extend ::ActiveJob::ConcurrencyControls::ClassMethods extend ::ActiveJob::TestHelper::TestQueueAdapter::ClassMethods - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://activejob//lib/active_job/base.rb#70 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activejob//lib/active_job/base.rb#70 def _enqueue_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activejob//lib/active_job/base.rb#70 def _perform_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activejob//lib/active_job/base.rb#70 def _run_enqueue_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activejob//lib/active_job/base.rb#70 def _run_perform_callbacks(&block); end - # source://activejob//lib/active_job/exceptions.rb#12 + # source://activejob//lib/active_job/base.rb#71 def after_discard_procs; end - # source://activejob//lib/active_job/exceptions.rb#12 + # source://activejob//lib/active_job/base.rb#71 def after_discard_procs=(_arg0); end - # source://activejob//lib/active_job/exceptions.rb#12 + # source://activejob//lib/active_job/base.rb#71 def after_discard_procs?; end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#14 + # source://activejob//lib/active_job/base.rb#77 def concurrency_duration; end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#14 + # source://activejob//lib/active_job/base.rb#77 def concurrency_duration=(_arg0); end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#14 + # source://activejob//lib/active_job/base.rb#77 def concurrency_duration?; end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#13 + # source://activejob//lib/active_job/base.rb#77 def concurrency_limit; end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#13 + # source://activejob//lib/active_job/base.rb#77 def concurrency_limit=(_arg0); end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#13 + # source://activejob//lib/active_job/base.rb#77 def concurrency_limit?; end - # source://activejob//lib/active_job/logging.rb#15 + # source://activejob//lib/active_job/base.rb#77 + def concurrency_on_conflict; end + + # source://activejob//lib/active_job/base.rb#77 + def concurrency_on_conflict=(_arg0); end + + # source://activejob//lib/active_job/base.rb#77 + def concurrency_on_conflict?; end + + # source://activejob//lib/active_job/base.rb#73 def logger; end - # source://activejob//lib/active_job/logging.rb#15 + # source://activejob//lib/active_job/base.rb#73 def logger=(val); end - # source://activejob//lib/active_job/queue_adapter.rb#27 + # source://activejob//lib/active_job/base.rb#65 def queue_adapter(&_arg0); end - # source://activejob//lib/active_job/queue_name.rb#57 + # source://activejob//lib/active_job/base.rb#66 def queue_name_prefix; end - # source://activejob//lib/active_job/queue_name.rb#57 + # source://activejob//lib/active_job/base.rb#66 def queue_name_prefix=(_arg0); end - # source://activejob//lib/active_job/queue_name.rb#57 + # source://activejob//lib/active_job/base.rb#66 def queue_name_prefix?; end - # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 + # source://activejob//lib/active_job/base.rb#69 def rescue_handlers; end - # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 + # source://activejob//lib/active_job/base.rb#69 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 + # source://activejob//lib/active_job/base.rb#69 def rescue_handlers?; end class << self - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://activejob//lib/active_job/base.rb#70 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://activejob//lib/active_job/base.rb#70 def __callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activejob//lib/active_job/base.rb#70 def _enqueue_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activejob//lib/active_job/base.rb#70 def _enqueue_callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activejob//lib/active_job/base.rb#70 def _perform_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activejob//lib/active_job/base.rb#70 def _perform_callbacks=(value); end - # source://activejob//lib/active_job/queue_adapter.rb#25 + # source://activejob//lib/active_job/base.rb#65 def _queue_adapter; end - # source://activejob//lib/active_job/queue_adapter.rb#25 + # source://activejob//lib/active_job/base.rb#65 def _queue_adapter=(value); end - # source://activejob//lib/active_job/queue_adapter.rb#24 + # source://activejob//lib/active_job/base.rb#65 def _queue_adapter_name; end - # source://activejob//lib/active_job/queue_adapter.rb#24 + # source://activejob//lib/active_job/base.rb#65 def _queue_adapter_name=(value); end # source://activejob//lib/active_job/test_helper.rb#19 @@ -311,225 +320,240 @@ class ActiveJob::Base # source://activejob//lib/active_job/test_helper.rb#19 def _test_adapter=(value); end - # source://activejob//lib/active_job/exceptions.rb#12 + # source://activejob//lib/active_job/base.rb#71 def after_discard_procs; end - # source://activejob//lib/active_job/exceptions.rb#12 + # source://activejob//lib/active_job/base.rb#71 def after_discard_procs=(value); end - # source://activejob//lib/active_job/exceptions.rb#12 + # source://activejob//lib/active_job/base.rb#71 def after_discard_procs?; end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#14 + # source://activejob//lib/active_job/base.rb#77 def concurrency_duration; end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#14 + # source://activejob//lib/active_job/base.rb#77 def concurrency_duration=(value); end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#14 + # source://activejob//lib/active_job/base.rb#77 def concurrency_duration?; end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#11 + # source://activejob//lib/active_job/base.rb#77 def concurrency_group; end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#11 + # source://activejob//lib/active_job/base.rb#77 def concurrency_group=(value); end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#11 + # source://activejob//lib/active_job/base.rb#77 def concurrency_group?; end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#10 + # source://activejob//lib/active_job/base.rb#77 def concurrency_key; end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#10 + # source://activejob//lib/active_job/base.rb#77 def concurrency_key=(value); end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#10 + # source://activejob//lib/active_job/base.rb#77 def concurrency_key?; end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#13 + # source://activejob//lib/active_job/base.rb#77 def concurrency_limit; end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#13 + # source://activejob//lib/active_job/base.rb#77 def concurrency_limit=(value); end - # source://solid_queue/1.1.4/lib/active_job/concurrency_controls.rb#13 + # source://activejob//lib/active_job/base.rb#77 def concurrency_limit?; end - # source://activejob//lib/active_job/enqueuing.rb#53 + # source://activejob//lib/active_job/base.rb#77 + def concurrency_on_conflict; end + + # source://activejob//lib/active_job/base.rb#77 + def concurrency_on_conflict=(value); end + + # source://activejob//lib/active_job/base.rb#77 + def concurrency_on_conflict?; end + + # source://activejob//lib/active_job/base.rb#68 def enqueue_after_transaction_commit; end - # source://activejob//lib/active_job/enqueuing.rb#53 + # source://activejob//lib/active_job/base.rb#68 def enqueue_after_transaction_commit=(value); end - # source://activejob//lib/active_job/logging.rb#26 + # source://activejob//lib/active_job/base.rb#73 def log_arguments; end - # source://activejob//lib/active_job/logging.rb#26 + # source://activejob//lib/active_job/base.rb#73 def log_arguments=(value); end - # source://activejob//lib/active_job/logging.rb#26 + # source://activejob//lib/active_job/base.rb#73 def log_arguments?; end - # source://activejob//lib/active_job/logging.rb#15 + # source://activejob//lib/active_job/base.rb#73 def logger; end - # source://activejob//lib/active_job/logging.rb#15 + # source://activejob//lib/active_job/base.rb#73 def logger=(val); end - # source://activejob//lib/active_job/queue_priority.rb#49 + # source://activejob//lib/active_job/base.rb#67 def priority; end - # source://activejob//lib/active_job/queue_priority.rb#49 + # source://activejob//lib/active_job/base.rb#67 def priority=(value); end - # source://activejob//lib/active_job/queue_priority.rb#49 + # source://activejob//lib/active_job/base.rb#67 def priority?; end - # source://activejob//lib/active_job/queue_name.rb#55 + # source://activejob//lib/active_job/base.rb#66 def queue_name; end - # source://activejob//lib/active_job/queue_name.rb#55 + # source://activejob//lib/active_job/base.rb#66 def queue_name=(value); end - # source://activejob//lib/active_job/queue_name.rb#55 + # source://activejob//lib/active_job/base.rb#66 def queue_name?; end - # source://activejob//lib/active_job/queue_name.rb#56 + # source://activejob//lib/active_job/base.rb#66 def queue_name_delimiter; end - # source://activejob//lib/active_job/queue_name.rb#56 + # source://activejob//lib/active_job/base.rb#66 def queue_name_delimiter=(value); end - # source://activejob//lib/active_job/queue_name.rb#56 + # source://activejob//lib/active_job/base.rb#66 def queue_name_delimiter?; end - # source://activejob//lib/active_job/queue_name.rb#57 + # source://activejob//lib/active_job/base.rb#66 def queue_name_prefix; end - # source://activejob//lib/active_job/queue_name.rb#57 + # source://activejob//lib/active_job/base.rb#66 def queue_name_prefix=(value); end - # source://activejob//lib/active_job/queue_name.rb#57 + # source://activejob//lib/active_job/base.rb#66 def queue_name_prefix?; end - # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 + # source://activejob//lib/active_job/base.rb#69 def rescue_handlers; end - # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 + # source://activejob//lib/active_job/base.rb#69 def rescue_handlers=(value); end - # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 + # source://activejob//lib/active_job/base.rb#69 def rescue_handlers?; end - # source://activejob//lib/active_job/exceptions.rb#11 + # source://activejob//lib/active_job/base.rb#71 def retry_jitter; end - # source://activejob//lib/active_job/exceptions.rb#11 + # source://activejob//lib/active_job/base.rb#71 def retry_jitter=(value); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#70 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#70 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#65 def __class_attr__queue_adapter; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#65 def __class_attr__queue_adapter=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#65 def __class_attr__queue_adapter_name; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#65 def __class_attr__queue_adapter_name=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/test_helper.rb#19 def __class_attr__test_adapter; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/test_helper.rb#19 def __class_attr__test_adapter=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#71 def __class_attr_after_discard_procs; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#71 def __class_attr_after_discard_procs=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#77 def __class_attr_concurrency_duration; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#77 def __class_attr_concurrency_duration=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#77 def __class_attr_concurrency_group; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#77 def __class_attr_concurrency_group=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#77 def __class_attr_concurrency_key; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#77 def __class_attr_concurrency_key=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#77 def __class_attr_concurrency_limit; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#77 def __class_attr_concurrency_limit=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#77 + def __class_attr_concurrency_on_conflict; end + + # source://activejob//lib/active_job/base.rb#77 + def __class_attr_concurrency_on_conflict=(new_value); end + + # source://activejob//lib/active_job/base.rb#68 def __class_attr_enqueue_after_transaction_commit; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#68 def __class_attr_enqueue_after_transaction_commit=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#73 def __class_attr_log_arguments; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#73 def __class_attr_log_arguments=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#67 def __class_attr_priority; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#67 def __class_attr_priority=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#66 def __class_attr_queue_name; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#66 def __class_attr_queue_name=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#66 def __class_attr_queue_name_delimiter; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#66 def __class_attr_queue_name_delimiter=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#66 def __class_attr_queue_name_prefix; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#66 def __class_attr_queue_name_prefix=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#69 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#69 def __class_attr_rescue_handlers=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/base.rb#71 def __class_attr_retry_jitter; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/base.rb#71 def __class_attr_retry_jitter=(new_value); end end end @@ -559,21 +583,21 @@ module ActiveJob::Callbacks mixes_in_class_methods ::ActiveJob::Callbacks::ClassMethods class << self - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://activejob//lib/active_job/callbacks.rb#23 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://activejob//lib/active_job/callbacks.rb#23 def __callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activejob//lib/active_job/callbacks.rb#24 def _execute_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activejob//lib/active_job/callbacks.rb#24 def _run_execute_callbacks(&block); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#9 + # source://activejob//lib/active_job/callbacks.rb#23 def __class_attr___callbacks; end end @@ -1412,16 +1436,16 @@ class ActiveJob::LogSubscriber < ::ActiveSupport::LogSubscriber private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/log_subscriber.rb#7 def __class_attr_backtrace_cleaner; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/log_subscriber.rb#7 def __class_attr_backtrace_cleaner=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activejob//lib/active_job/log_subscriber.rb#27 def __class_attr_log_levels; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activejob//lib/active_job/log_subscriber.rb#27 def __class_attr_log_levels=(new_value); end end end @@ -1537,18 +1561,7 @@ ActiveJob::QueueAdapter::ClassMethods::QUEUE_ADAPTER_METHODS = T.let(T.unsafe(ni # # === Backends Features # -# | | Async | Queues | Delayed | Priorities | Timeout | Retries | # |-------------------|-------|--------|------------|------------|---------|---------| -# | Backburner | Yes | Yes | Yes | Yes | Job | Global | -# | Delayed Job | Yes | Yes | Yes | Job | Global | Global | -# | Que | Yes | Yes | Yes | Job | No | Job | -# | queue_classic | Yes | Yes | Yes* | No | No | No | -# | Resque | Yes | Yes | Yes (Gem) | Queue | Global | Yes | -# | Sidekiq | Yes | Yes | Yes | Queue | No | Job | -# | Sneakers | Yes | Yes | No | Queue | Queue | No | -# | Active Job Async | Yes | Yes | Yes | No | No | No | -# | Active Job Inline | No | Yes | N/A | N/A | N/A | N/A | -# | Active Job Test | No | Yes | N/A | N/A | N/A | N/A | # # ==== Async # @@ -2293,7 +2306,10 @@ class ActiveJob::Serializers::ObjectSerializer private + # source://activejob//lib/active_job/serializers/object_serializer.rb#27 def allocate; end + + # source://activejob//lib/active_job/serializers/object_serializer.rb#27 def new(*_arg0); end end end @@ -2943,7 +2959,7 @@ ActiveJob::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) ActiveJob::VERSION::MINOR = T.let(T.unsafe(nil), Integer) # source://activejob//lib/active_job/gem_version.rb#13 -ActiveJob::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) +ActiveJob::VERSION::PRE = T.let(T.unsafe(nil), String) # source://activejob//lib/active_job/gem_version.rb#15 ActiveJob::VERSION::STRING = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/activemodel@8.0.2.rbi b/sorbet/rbi/gems/activemodel@8.0.2.1.rbi similarity index 98% rename from sorbet/rbi/gems/activemodel@8.0.2.rbi rename to sorbet/rbi/gems/activemodel@8.0.2.1.rbi index 32ca27f6..f9a3fe99 100644 --- a/sorbet/rbi/gems/activemodel@8.0.2.rbi +++ b/sorbet/rbi/gems/activemodel@8.0.2.1.rbi @@ -194,7 +194,7 @@ class ActiveModel::Attribute # source://activemodel//lib/active_model/attribute.rb#135 def encode_with(coder); end - # source://activemodel//lib/active_model/attribute.rb#115 + # source://activemodel//lib/active_model/attribute.rb#121 def eql?(other); end # source://activemodel//lib/active_model/attribute.rb#74 @@ -278,7 +278,7 @@ class ActiveModel::Attribute # Returns the value of attribute original_attribute. # - # source://activemodel//lib/active_model/attribute.rb#152 + # source://activemodel//lib/active_model/attribute.rb#153 def assigned?; end # @return [Boolean] @@ -354,7 +354,7 @@ class ActiveModel::Attribute::Null < ::ActiveModel::Attribute # @raise [ActiveModel::MissingAttributeError] # - # source://activemodel//lib/active_model/attribute.rb#235 + # source://activemodel//lib/active_model/attribute.rb#239 def with_cast_value(value); end # source://activemodel//lib/active_model/attribute.rb#231 @@ -367,7 +367,7 @@ class ActiveModel::Attribute::Null < ::ActiveModel::Attribute # @raise [ActiveModel::MissingAttributeError] # - # source://activemodel//lib/active_model/attribute.rb#235 + # source://activemodel//lib/active_model/attribute.rb#238 def with_value_from_user(value); end end @@ -510,7 +510,7 @@ module ActiveModel::AttributeAssignment # cat.name # => 'Gorby' # cat.status # => 'sleeping' # - # source://activemodel//lib/active_model/attribute_assignment.rb#28 + # source://activemodel//lib/active_model/attribute_assignment.rb#37 def attributes=(new_attributes); end private @@ -607,6 +607,8 @@ module ActiveModel::AttributeMethods # 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+. + # + # source://activemodel//lib/active_model/attribute_methods.rb#527 def respond_to_without_attributes?(*_arg0); end private @@ -1006,30 +1008,47 @@ class ActiveModel::AttributeMethods::ClassMethods::AttributeMethodPattern::Attri # Returns the value of attribute attr_name # # @return [Object] the current value of attr_name + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://activemodel//lib/active_model/attribute_methods.rb#474 def proxy_target=(_); end class << self + # source://activemodel//lib/active_model/attribute_methods.rb#474 def [](*_arg0); end + + # source://activemodel//lib/active_model/attribute_methods.rb#474 def inspect; end + + # source://activemodel//lib/active_model/attribute_methods.rb#474 def keyword_init?; end + + # source://activemodel//lib/active_model/attribute_methods.rb#474 def members; end + + # source://activemodel//lib/active_model/attribute_methods.rb#474 def new(*_arg0); end end end @@ -1168,30 +1187,47 @@ class ActiveModel::AttributeRegistration::ClassMethods::PendingDecorator < ::Str # Returns the value of attribute decorator # # @return [Object] the current value of decorator + # + # source://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 + # + # source://activemodel//lib/active_model/attribute_registration.rb#67 def decorator=(_); end # Returns the value of attribute names # # @return [Object] the current value of names + # + # source://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 + # + # source://activemodel//lib/active_model/attribute_registration.rb#67 def names=(_); end class << self + # source://activemodel//lib/active_model/attribute_registration.rb#67 def [](*_arg0); end + + # source://activemodel//lib/active_model/attribute_registration.rb#67 def inspect; end + + # source://activemodel//lib/active_model/attribute_registration.rb#67 def keyword_init?; end + + # source://activemodel//lib/active_model/attribute_registration.rb#67 def members; end + + # source://activemodel//lib/active_model/attribute_registration.rb#67 def new(*_arg0); end end end @@ -1204,30 +1240,47 @@ class ActiveModel::AttributeRegistration::ClassMethods::PendingDefault < ::Struc # Returns the value of attribute default # # @return [Object] the current value of default + # + # source://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 + # + # source://activemodel//lib/active_model/attribute_registration.rb#61 def default=(_); end # Returns the value of attribute name # # @return [Object] the current value of name + # + # source://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 + # + # source://activemodel//lib/active_model/attribute_registration.rb#61 def name=(_); end class << self + # source://activemodel//lib/active_model/attribute_registration.rb#61 def [](*_arg0); end + + # source://activemodel//lib/active_model/attribute_registration.rb#61 def inspect; end + + # source://activemodel//lib/active_model/attribute_registration.rb#61 def keyword_init?; end + + # source://activemodel//lib/active_model/attribute_registration.rb#61 def members; end + + # source://activemodel//lib/active_model/attribute_registration.rb#61 def new(*_arg0); end end end @@ -1240,30 +1293,47 @@ class ActiveModel::AttributeRegistration::ClassMethods::PendingType < ::Struct # Returns the value of attribute name # # @return [Object] the current value of name + # + # source://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 + # + # source://activemodel//lib/active_model/attribute_registration.rb#54 def name=(_); end # Returns the value of attribute type # # @return [Object] the current value of type + # + # source://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 + # + # source://activemodel//lib/active_model/attribute_registration.rb#54 def type=(_); end class << self + # source://activemodel//lib/active_model/attribute_registration.rb#54 def [](*_arg0); end + + # source://activemodel//lib/active_model/attribute_registration.rb#54 def inspect; end + + # source://activemodel//lib/active_model/attribute_registration.rb#54 def keyword_init?; end + + # source://activemodel//lib/active_model/attribute_registration.rb#54 def members; end + + # source://activemodel//lib/active_model/attribute_registration.rb#54 def new(*_arg0); end end end @@ -1310,7 +1380,7 @@ class ActiveModel::AttributeSet # @return [Boolean] # - # source://activemodel//lib/active_model/attribute_set.rb#41 + # source://activemodel//lib/active_model/attribute_set.rb#44 def include?(name); end # @return [Boolean] @@ -1330,7 +1400,7 @@ class ActiveModel::AttributeSet # source://activemodel//lib/active_model/attribute_set.rb#102 def reverse_merge!(target_attributes); end - # source://activemodel//lib/active_model/attribute_set.rb#36 + # source://activemodel//lib/active_model/attribute_set.rb#39 def to_h; end # source://activemodel//lib/active_model/attribute_set.rb#36 @@ -1504,7 +1574,7 @@ module ActiveModel::Attributes # source://activemodel//lib/active_model/attributes.rb#161 def attribute(attr_name); end - # source://activemodel//lib/active_model/attributes.rb#156 + # source://activemodel//lib/active_model/attributes.rb#159 def attribute=(attr_name, value); end # source://activemodel//lib/active_model/attributes.rb#111 @@ -2196,7 +2266,7 @@ class ActiveModel::Error # error.details # # => { error: :too_short, count: 5 } # - # source://activemodel//lib/active_model/error.rb#149 + # source://activemodel//lib/active_model/error.rb#152 def detail; end # Returns the error details. @@ -2208,7 +2278,7 @@ class ActiveModel::Error # source://activemodel//lib/active_model/error.rb#149 def details; end - # source://activemodel//lib/active_model/error.rb#190 + # source://activemodel//lib/active_model/error.rb#193 def eql?(other); end # Returns the full error message. @@ -2307,10 +2377,10 @@ class ActiveModel::Error private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activemodel//lib/active_model/error.rb#13 def __class_attr_i18n_customize_full_message; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activemodel//lib/active_model/error.rb#13 def __class_attr_i18n_customize_full_message=(new_value); end end end @@ -2492,7 +2562,7 @@ class ActiveModel::Errors # source://activemodel//lib/active_model/errors.rb#237 def attribute_names; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://activemodel//lib/active_model/errors.rb#103 def clear(*args, **_arg1, &block); end # Copies the errors from other. @@ -2523,10 +2593,10 @@ class ActiveModel::Errors # source://activemodel//lib/active_model/errors.rb#276 def details; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://activemodel//lib/active_model/errors.rb#103 def each(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://activemodel//lib/active_model/errors.rb#103 def empty?(*args, **_arg1, &block); end # The actual array of +Error+ objects @@ -2615,7 +2685,7 @@ class ActiveModel::Errors # # @return [Boolean] # - # source://activemodel//lib/active_model/errors.rb#202 + # source://activemodel//lib/active_model/errors.rb#207 def has_key?(attribute); end # Imports one error. @@ -2655,7 +2725,7 @@ class ActiveModel::Errors # # @return [Boolean] # - # source://activemodel//lib/active_model/errors.rb#202 + # source://activemodel//lib/active_model/errors.rb#208 def key?(attribute); end # Merges the errors from other, @@ -2694,7 +2764,7 @@ class ActiveModel::Errors # The actual array of +Error+ objects # This method is aliased to objects. # - # source://activemodel//lib/active_model/errors.rb#107 + # source://activemodel//lib/active_model/errors.rb#108 def objects; end # Returns +true+ if an error on the attribute with the given type is @@ -2714,7 +2784,7 @@ class ActiveModel::Errors # source://activemodel//lib/active_model/errors.rb#395 def of_kind?(attribute, type = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://activemodel//lib/active_model/errors.rb#103 def size(*args, **_arg1, &block); end # Returns all the full error messages in an array. @@ -2728,7 +2798,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 + # source://activemodel//lib/active_model/errors.rb#418 def to_a; end # Returns a Hash of attributes with their error messages. If +full_messages+ @@ -2740,7 +2810,7 @@ class ActiveModel::Errors # source://activemodel//lib/active_model/errors.rb#256 def to_hash(full_messages = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://activemodel//lib/active_model/errors.rb#103 def uniq!(*args, **_arg1, &block); end # Search for errors matching +attribute+, +type+, or +options+. @@ -2791,7 +2861,7 @@ module ActiveModel::ForbiddenAttributesProtection # source://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 + # source://activemodel//lib/active_model/forbidden_attributes_protection.rb#31 def sanitize_forbidden_attributes(attributes); end end @@ -3216,7 +3286,7 @@ class ActiveModel::Name # Returns the value of attribute collection. # - # source://activemodel//lib/active_model/naming.rb#12 + # source://activemodel//lib/active_model/naming.rb#16 def cache_key; end # Returns the value of attribute collection. @@ -3506,7 +3576,7 @@ class ActiveModel::NestedError < ::ActiveModel::Error # source://activemodel//lib/active_model/nested_error.rb#17 def inner_error; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://activemodel//lib/active_model/nested_error.rb#20 def message(*args, **_arg1, &block); end end @@ -3549,7 +3619,10 @@ class ActiveModel::NullMutationTracker class << self private + # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#157 def allocate; end + + # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#157 def new(*_arg0); end end end @@ -3781,6 +3854,8 @@ module ActiveModel::Serialization # @data[key] # end # end + # + # source://activemodel//lib/active_model/serialization.rb#167 def read_attribute_for_serialization(*_arg0); end # Returns a serialized hash of your object. @@ -4186,7 +4261,7 @@ class ActiveModel::Type::Binary::Data # source://activemodel//lib/active_model/type/binary.rb#47 def to_s; end - # source://activemodel//lib/active_model/type/binary.rb#47 + # source://activemodel//lib/active_model/type/binary.rb#50 def to_str; end end @@ -4971,7 +5046,7 @@ class ActiveModel::Type::Value # source://activemodel//lib/active_model/type/value.rb#43 def deserialize(value); end - # source://activemodel//lib/active_model/type/value.rb#121 + # source://activemodel//lib/active_model/type/value.rb#127 def eql?(other); end # @return [Boolean] @@ -5096,7 +5171,7 @@ ActiveModel::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) ActiveModel::VERSION::MINOR = T.let(T.unsafe(nil), Integer) # source://activemodel//lib/active_model/gem_version.rb#13 -ActiveModel::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) +ActiveModel::VERSION::PRE = T.let(T.unsafe(nil), String) # source://activemodel//lib/active_model/gem_version.rb#15 ActiveModel::VERSION::STRING = T.let(T.unsafe(nil), String) @@ -5261,6 +5336,8 @@ module ActiveModel::Validations # @data[key] # end # end + # + # source://activemodel//lib/active_model/validations.rb#437 def read_attribute_for_validation(*_arg0); end # Runs all the specified validations and returns +true+ if no errors were @@ -5330,7 +5407,7 @@ module ActiveModel::Validations # # @return [Boolean] # - # source://activemodel//lib/active_model/validations.rb#361 + # source://activemodel//lib/active_model/validations.rb#370 def validate(context = T.unsafe(nil)); end # Runs all the validations within the specified context. Returns +true+ if @@ -6596,7 +6673,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 + # source://activemodel//lib/active_model/validations/length.rb#127 def validates_size_of(*attr_names); end private diff --git a/sorbet/rbi/gems/activerecord@8.0.2.rbi b/sorbet/rbi/gems/activerecord@8.0.2.1.rbi similarity index 96% rename from sorbet/rbi/gems/activerecord@8.0.2.rbi rename to sorbet/rbi/gems/activerecord@8.0.2.1.rbi index 04089182..f2a6b941 100644 --- a/sorbet/rbi/gems/activerecord@8.0.2.rbi +++ b/sorbet/rbi/gems/activerecord@8.0.2.1.rbi @@ -610,25 +610,25 @@ class ActiveRecord::AssociationRelation < ::ActiveRecord::Relation # source://activerecord//lib/active_record/association_relation.rb#14 def ==(other); end - # source://activerecord//lib/active_record/association_relation.rb#20 + # source://activerecord//lib/active_record/association_relation.rb#19 def insert(attributes, **kwargs); end - # source://activerecord//lib/active_record/association_relation.rb#20 + # source://activerecord//lib/active_record/association_relation.rb#19 def insert!(attributes, **kwargs); end - # source://activerecord//lib/active_record/association_relation.rb#20 + # source://activerecord//lib/active_record/association_relation.rb#19 def insert_all(attributes, **kwargs); end - # source://activerecord//lib/active_record/association_relation.rb#20 + # source://activerecord//lib/active_record/association_relation.rb#19 def insert_all!(attributes, **kwargs); end # source://activerecord//lib/active_record/association_relation.rb#10 def proxy_association; end - # source://activerecord//lib/active_record/association_relation.rb#20 + # source://activerecord//lib/active_record/association_relation.rb#19 def upsert(attributes, **kwargs); end - # source://activerecord//lib/active_record/association_relation.rb#20 + # source://activerecord//lib/active_record/association_relation.rb#19 def upsert_all(attributes, **kwargs); end private @@ -1560,7 +1560,6 @@ end # See also "Instance Public methods" below ( from #belongs_to ) for more details. # # === Singular associations (one-to-one) -# | | belongs_to | # generated methods | belongs_to | :polymorphic | has_one # ----------------------------------+------------+--------------+--------- # other | X | X | X @@ -1573,7 +1572,6 @@ end # other_previously_changed? | X | X | # # === Collection associations (one-to-many / many-to-many) -# | | | has_many # generated methods | habtm | has_many | :through # ----------------------------------+-------+----------+---------- # others | X | X | X @@ -3675,7 +3673,7 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # # # # # ] # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1049 + # source://activerecord//lib/active_record/associations/collection_proxy.rb#1053 def append(*records); end # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 @@ -3746,7 +3744,7 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # # # # # ] # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1049 + # source://activerecord//lib/active_record/associations/collection_proxy.rb#1054 def concat(*records); end # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 @@ -4387,7 +4385,7 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # # @return [Boolean] # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#53 + # source://activerecord//lib/active_record/associations/collection_proxy.rb#56 def loaded; end # Returns +true+ if the association has been loaded, otherwise +false+. @@ -4444,7 +4442,7 @@ 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 + # source://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 @@ -4563,7 +4561,7 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # # # # # ] # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1049 + # source://activerecord//lib/active_record/associations/collection_proxy.rb#1052 def push(*records); end # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 @@ -5276,30 +5274,47 @@ class ActiveRecord::Associations::JoinDependency::Aliases::Column < ::Struct # Returns the value of attribute alias # # @return [Object] the current value of alias + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://activerecord//lib/active_record/associations/join_dependency.rb#44 def name=(_); end class << self + # source://activerecord//lib/active_record/associations/join_dependency.rb#44 def [](*_arg0); end + + # source://activerecord//lib/active_record/associations/join_dependency.rb#44 def inspect; end + + # source://activerecord//lib/active_record/associations/join_dependency.rb#44 def keyword_init?; end + + # source://activerecord//lib/active_record/associations/join_dependency.rb#44 def members; end + + # source://activerecord//lib/active_record/associations/join_dependency.rb#44 def new(*_arg0); end end end @@ -5312,30 +5327,47 @@ class ActiveRecord::Associations::JoinDependency::Aliases::Table < ::Struct # Returns the value of attribute columns # # @return [Object] the current value of columns + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://activerecord//lib/active_record/associations/join_dependency.rb#38 def node=(_); end class << self + # source://activerecord//lib/active_record/associations/join_dependency.rb#38 def [](*_arg0); end + + # source://activerecord//lib/active_record/associations/join_dependency.rb#38 def inspect; end + + # source://activerecord//lib/active_record/associations/join_dependency.rb#38 def keyword_init?; end + + # source://activerecord//lib/active_record/associations/join_dependency.rb#38 def members; end + + # source://activerecord//lib/active_record/associations/join_dependency.rb#38 def new(*_arg0); end end end @@ -7182,7 +7214,7 @@ module ActiveRecord::AttributeMethods::Query private - # source://activerecord//lib/active_record/attribute_methods/query.rb#13 + # source://activerecord//lib/active_record/attribute_methods/query.rb#25 def attribute?(attr_name); end # source://activerecord//lib/active_record/attribute_methods/query.rb#29 @@ -7219,7 +7251,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 + # source://activerecord//lib/active_record/attribute_methods/read.rb#42 def attribute(attr_name, &block); end end @@ -7526,7 +7558,7 @@ 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 + # source://activerecord//lib/active_record/attribute_methods/write.rb#45 def attribute=(attr_name, value); end end @@ -8335,1383 +8367,1383 @@ class ActiveRecord::Base extend ::ActiveStorage::Attached::Model::ClassMethods extend ::ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://activerecord//lib/active_record/base.rb#283 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/base.rb#321 def _before_commit_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/base.rb#321 def _commit_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/base.rb#315 def _create_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/base.rb#315 def _destroy_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/base.rb#315 def _find_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/base.rb#315 def _initialize_callbacks; end - # source://activerecord//lib/active_record/reflection.rb#11 + # source://activerecord//lib/active_record/base.rb#324 def _reflections; end - # source://activerecord//lib/active_record/reflection.rb#11 + # source://activerecord//lib/active_record/base.rb#324 def _reflections?; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/base.rb#321 def _rollback_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activerecord//lib/active_record/base.rb#321 def _run_before_commit_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activerecord//lib/active_record/base.rb#321 def _run_commit_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activerecord//lib/active_record/base.rb#315 def _run_create_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activerecord//lib/active_record/base.rb#315 def _run_destroy_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activerecord//lib/active_record/base.rb#315 def _run_find_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activerecord//lib/active_record/base.rb#315 def _run_initialize_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activerecord//lib/active_record/base.rb#321 def _run_rollback_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activerecord//lib/active_record/base.rb#315 def _run_save_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activerecord//lib/active_record/base.rb#315 def _run_touch_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activerecord//lib/active_record/base.rb#315 def _run_update_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activerecord//lib/active_record/base.rb#283 def _run_validate_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activerecord//lib/active_record/base.rb#315 def _run_validation_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/base.rb#315 def _save_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/base.rb#315 def _touch_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/base.rb#315 def _update_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/base.rb#283 def _validate_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/base.rb#315 def _validation_callbacks; end - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 + # source://activerecord//lib/active_record/base.rb#283 def _validators; end - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 + # source://activerecord//lib/active_record/base.rb#283 def _validators?; end - # source://activerecord//lib/active_record/reflection.rb#12 + # source://activerecord//lib/active_record/base.rb#324 def aggregate_reflections; end - # source://activerecord//lib/active_record/reflection.rb#12 + # source://activerecord//lib/active_record/base.rb#324 def aggregate_reflections?; end - # source://activestorage/8.0.2/lib/active_storage/reflection.rb#53 + # source://activerecord//lib/active_record/base.rb#337 def attachment_reflections; end - # source://activestorage/8.0.2/lib/active_storage/reflection.rb#53 + # source://activerecord//lib/active_record/base.rb#337 def attachment_reflections?; end - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 + # source://activerecord//lib/active_record/base.rb#314 def attribute_aliases; end - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 + # source://activerecord//lib/active_record/base.rb#314 def attribute_aliases?; end - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 + # source://activerecord//lib/active_record/base.rb#314 def attribute_method_patterns; end - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 + # source://activerecord//lib/active_record/base.rb#314 def attribute_method_patterns?; end - # source://activerecord//lib/active_record/reflection.rb#13 + # source://activerecord//lib/active_record/base.rb#324 def automatic_scope_inversing; end - # source://activerecord//lib/active_record/reflection.rb#13 + # source://activerecord//lib/active_record/base.rb#324 def automatic_scope_inversing?; end - # source://activerecord//lib/active_record/reflection.rb#14 + # source://activerecord//lib/active_record/base.rb#324 def automatically_invert_plural_associations; end - # source://activerecord//lib/active_record/reflection.rb#14 + # source://activerecord//lib/active_record/base.rb#324 def automatically_invert_plural_associations?; end - # source://activerecord//lib/active_record/integration.rb#16 + # source://activerecord//lib/active_record/base.rb#307 def cache_timestamp_format; end - # source://activerecord//lib/active_record/integration.rb#16 + # source://activerecord//lib/active_record/base.rb#307 def cache_timestamp_format?; end - # source://activerecord//lib/active_record/integration.rb#24 + # source://activerecord//lib/active_record/base.rb#307 def cache_versioning; end - # source://activerecord//lib/active_record/integration.rb#24 + # source://activerecord//lib/active_record/base.rb#307 def cache_versioning?; end - # source://activerecord//lib/active_record/integration.rb#32 + # source://activerecord//lib/active_record/base.rb#307 def collection_cache_versioning; end - # source://activerecord//lib/active_record/integration.rb#32 + # source://activerecord//lib/active_record/base.rb#307 def collection_cache_versioning?; end - # source://activerecord//lib/active_record/model_schema.rb#183 + # source://activerecord//lib/active_record/base.rb#302 def column_for_attribute(name, &_arg1); end - # source://activerecord//lib/active_record/counter_cache.rb#10 + # source://activerecord//lib/active_record/base.rb#309 def counter_cached_association_names; end - # source://activerecord//lib/active_record/counter_cache.rb#10 + # source://activerecord//lib/active_record/base.rb#309 def counter_cached_association_names?; end - # source://activerecord//lib/active_record/core.rb#98 + # source://activerecord//lib/active_record/base.rb#299 def default_connection_handler; end - # source://activerecord//lib/active_record/core.rb#98 + # source://activerecord//lib/active_record/base.rb#299 def default_connection_handler?; end - # source://activerecord//lib/active_record/core.rb#100 + # source://activerecord//lib/active_record/base.rb#299 def default_role; end - # source://activerecord//lib/active_record/core.rb#100 + # source://activerecord//lib/active_record/base.rb#299 def default_role?; end - # source://activerecord//lib/active_record/scoping/default.rb#20 + # source://activerecord//lib/active_record/base.rb#304 def default_scope_override; end - # source://activerecord//lib/active_record/scoping/default.rb#19 + # source://activerecord//lib/active_record/base.rb#304 def default_scopes; end - # source://activerecord//lib/active_record/core.rb#102 + # source://activerecord//lib/active_record/base.rb#299 def default_shard; end - # source://activerecord//lib/active_record/core.rb#102 + # source://activerecord//lib/active_record/base.rb#299 def default_shard?; end - # source://activerecord//lib/active_record/enum.rb#167 + # source://activerecord//lib/active_record/base.rb#295 def defined_enums; end - # source://activerecord//lib/active_record/enum.rb#167 + # source://activerecord//lib/active_record/base.rb#295 def defined_enums?; end - # source://activerecord//lib/active_record/core.rb#47 + # source://activerecord//lib/active_record/base.rb#299 def destroy_association_async_batch_size; end - # source://activerecord//lib/active_record/core.rb#37 + # source://activerecord//lib/active_record/base.rb#299 def destroy_association_async_job(&_arg0); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord//lib/active_record/base.rb#313 def encrypted_attributes; end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord//lib/active_record/base.rb#313 def encrypted_attributes=(_arg0); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord//lib/active_record/base.rb#313 def encrypted_attributes?; end - # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 + # source://activerecord//lib/active_record/base.rb#325 def include_root_in_json; end - # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 + # source://activerecord//lib/active_record/base.rb#325 def include_root_in_json?; end - # source://activerecord//lib/active_record/locking/optimistic.rb#56 + # source://activerecord//lib/active_record/base.rb#311 def lock_optimistically; end - # source://activerecord//lib/active_record/locking/optimistic.rb#56 + # source://activerecord//lib/active_record/base.rb#311 def lock_optimistically?; end - # source://activerecord//lib/active_record/core.rb#22 + # source://activerecord//lib/active_record/base.rb#299 def logger; end - # source://activerecord//lib/active_record/core.rb#22 + # source://activerecord//lib/active_record/base.rb#299 def logger?; end - # source://activemodel/8.0.2/lib/active_model/naming.rb#255 + # source://activerecord//lib/active_record/base.rb#283 def model_name(&_arg0); end - # source://activerecord//lib/active_record/nested_attributes.rb#15 + # source://activerecord//lib/active_record/base.rb#320 def nested_attributes_options; end - # source://activerecord//lib/active_record/nested_attributes.rb#15 + # source://activerecord//lib/active_record/base.rb#320 def nested_attributes_options?; end - # source://activerecord//lib/active_record/normalization.rb#8 + # source://activerecord//lib/active_record/base.rb#331 def normalized_attributes; end - # source://activerecord//lib/active_record/normalization.rb#8 + # source://activerecord//lib/active_record/base.rb#331 def normalized_attributes=(_arg0); end - # source://activerecord//lib/active_record/normalization.rb#8 + # source://activerecord//lib/active_record/base.rb#331 def normalized_attributes?; end - # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 + # source://activerecord//lib/active_record/base.rb#283 def param_delimiter=(_arg0); end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord//lib/active_record/base.rb#314 def partial_inserts; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord//lib/active_record/base.rb#314 def partial_inserts?; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord//lib/active_record/base.rb#314 def partial_updates; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord//lib/active_record/base.rb#314 def partial_updates?; end - # source://activerecord//lib/active_record/model_schema.rb#168 + # source://activerecord//lib/active_record/base.rb#302 def pluralize_table_names; end - # source://activerecord//lib/active_record/model_schema.rb#168 + # source://activerecord//lib/active_record/base.rb#302 def pluralize_table_names?; end - # source://activerecord//lib/active_record/model_schema.rb#163 + # source://activerecord//lib/active_record/base.rb#302 def primary_key_prefix_type; end - # source://activerecord//lib/active_record/model_schema.rb#163 + # source://activerecord//lib/active_record/base.rb#302 def primary_key_prefix_type?; end - # source://activerecord//lib/active_record/timestamp.rb#47 + # source://activerecord//lib/active_record/base.rb#316 def record_timestamps; end - # source://activerecord//lib/active_record/timestamp.rb#47 + # source://activerecord//lib/active_record/base.rb#316 def record_timestamps=(_arg0); end - # source://activerecord//lib/active_record/timestamp.rb#47 + # source://activerecord//lib/active_record/base.rb#316 def record_timestamps?; end - # source://activerecord//lib/active_record/signed_id.rb#13 + # source://activerecord//lib/active_record/base.rb#329 def signed_id_verifier_secret; end - # source://activerecord//lib/active_record/signed_id.rb#13 + # source://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 + # source://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 + # source://activerecord//lib/active_record/base.rb#314 def skip_time_zone_conversion_for_attributes?; end - # source://activerecord//lib/active_record/inheritance.rb#43 + # source://activerecord//lib/active_record/base.rb#303 def store_full_class_name; end - # source://activerecord//lib/active_record/inheritance.rb#43 + # source://activerecord//lib/active_record/base.rb#303 def store_full_class_name?; end - # source://activerecord//lib/active_record/inheritance.rb#47 + # source://activerecord//lib/active_record/base.rb#303 def store_full_sti_class; end - # source://activerecord//lib/active_record/inheritance.rb#47 + # source://activerecord//lib/active_record/base.rb#303 def store_full_sti_class?; end - # source://activerecord//lib/active_record/model_schema.rb#164 + # source://activerecord//lib/active_record/base.rb#302 def table_name_prefix; end - # source://activerecord//lib/active_record/model_schema.rb#164 + # source://activerecord//lib/active_record/base.rb#302 def table_name_prefix?; end - # source://activerecord//lib/active_record/model_schema.rb#165 + # source://activerecord//lib/active_record/base.rb#302 def table_name_suffix; end - # source://activerecord//lib/active_record/model_schema.rb#165 + # source://activerecord//lib/active_record/base.rb#302 def table_name_suffix?; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#60 + # source://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 + # source://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 + # source://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 + # source://activerecord//lib/active_record/base.rb#314 def time_zone_aware_types?; end - # source://activerecord//lib/active_record/model_schema.rb#183 + # source://activerecord//lib/active_record/base.rb#302 def type_for_attribute(*_arg0, **_arg1, &_arg2); end class << self - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://activerecord//lib/active_record/base.rb#283 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://activerecord//lib/active_record/base.rb#283 def __callbacks=(value); end - # source://activerecord//lib/active_record/readonly_attributes.rb#11 + # source://activerecord//lib/active_record/base.rb#301 def _attr_readonly; end - # source://activerecord//lib/active_record/readonly_attributes.rb#11 + # source://activerecord//lib/active_record/base.rb#301 def _attr_readonly=(value); end - # source://activerecord//lib/active_record/readonly_attributes.rb#11 + # source://activerecord//lib/active_record/base.rb#301 def _attr_readonly?; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/base.rb#321 def _before_commit_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activerecord//lib/active_record/base.rb#321 def _before_commit_callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/base.rb#321 def _commit_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activerecord//lib/active_record/base.rb#321 def _commit_callbacks=(value); end - # source://activerecord//lib/active_record/counter_cache.rb#9 + # source://activerecord//lib/active_record/base.rb#309 def _counter_cache_columns; end - # source://activerecord//lib/active_record/counter_cache.rb#9 + # source://activerecord//lib/active_record/base.rb#309 def _counter_cache_columns=(value); end - # source://activerecord//lib/active_record/counter_cache.rb#9 + # source://activerecord//lib/active_record/base.rb#309 def _counter_cache_columns?; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/base.rb#315 def _create_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activerecord//lib/active_record/base.rb#315 def _create_callbacks=(value); end - # source://activerecord//lib/active_record/core.rb#24 + # source://activerecord//lib/active_record/base.rb#299 def _destroy_association_async_job; end - # source://activerecord//lib/active_record/core.rb#24 + # source://activerecord//lib/active_record/base.rb#299 def _destroy_association_async_job=(value); end - # source://activerecord//lib/active_record/core.rb#24 + # source://activerecord//lib/active_record/base.rb#299 def _destroy_association_async_job?; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/base.rb#315 def _destroy_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activerecord//lib/active_record/base.rb#315 def _destroy_callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/base.rb#315 def _find_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activerecord//lib/active_record/base.rb#315 def _find_callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/base.rb#315 def _initialize_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activerecord//lib/active_record/base.rb#315 def _initialize_callbacks=(value); end - # source://activerecord//lib/active_record/reflection.rb#11 + # source://activerecord//lib/active_record/base.rb#324 def _reflections; end - # source://activerecord//lib/active_record/reflection.rb#11 + # source://activerecord//lib/active_record/base.rb#324 def _reflections=(value); end - # source://activerecord//lib/active_record/reflection.rb#11 + # source://activerecord//lib/active_record/base.rb#324 def _reflections?; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/base.rb#321 def _rollback_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activerecord//lib/active_record/base.rb#321 def _rollback_callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/base.rb#315 def _save_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activerecord//lib/active_record/base.rb#315 def _save_callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/base.rb#315 def _touch_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activerecord//lib/active_record/base.rb#315 def _touch_callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/base.rb#315 def _update_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activerecord//lib/active_record/base.rb#315 def _update_callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/base.rb#283 def _validate_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activerecord//lib/active_record/base.rb#283 def _validate_callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/base.rb#315 def _validation_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activerecord//lib/active_record/base.rb#315 def _validation_callbacks=(value); end - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 + # source://activerecord//lib/active_record/base.rb#283 def _validators; end - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 + # source://activerecord//lib/active_record/base.rb#283 def _validators=(value); end - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 + # source://activerecord//lib/active_record/base.rb#283 def _validators?; end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 + # source://activerecord//lib/active_record/base.rb#315 def after_create(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 + # source://activerecord//lib/active_record/base.rb#315 def after_destroy(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 + # source://activerecord//lib/active_record/base.rb#315 def after_find(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 + # source://activerecord//lib/active_record/base.rb#315 def after_initialize(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 + # source://activerecord//lib/active_record/base.rb#315 def after_save(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 + # source://activerecord//lib/active_record/base.rb#315 def after_touch(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 + # source://activerecord//lib/active_record/base.rb#315 def after_update(*args, **options, &block); end - # source://activerecord//lib/active_record/reflection.rb#12 + # source://activerecord//lib/active_record/base.rb#324 def aggregate_reflections; end - # source://activerecord//lib/active_record/reflection.rb#12 + # source://activerecord//lib/active_record/base.rb#324 def aggregate_reflections=(value); end - # source://activerecord//lib/active_record/reflection.rb#12 + # source://activerecord//lib/active_record/base.rb#324 def aggregate_reflections?; end - # source://activerecord//lib/active_record/core.rb#121 + # source://activerecord//lib/active_record/base.rb#299 def application_record_class?; end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 + # source://activerecord//lib/active_record/base.rb#315 def around_create(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 + # source://activerecord//lib/active_record/base.rb#315 def around_destroy(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 + # source://activerecord//lib/active_record/base.rb#315 def around_save(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 + # source://activerecord//lib/active_record/base.rb#315 def around_update(*args, **options, &block); end - # source://activerecord//lib/active_record/core.rb#141 + # source://activerecord//lib/active_record/base.rb#299 def asynchronous_queries_session; end - # source://activerecord//lib/active_record/core.rb#145 + # source://activerecord//lib/active_record/base.rb#299 def asynchronous_queries_tracker; end - # source://activestorage/8.0.2/lib/active_storage/reflection.rb#53 + # source://activerecord//lib/active_record/base.rb#337 def attachment_reflections; end - # source://activestorage/8.0.2/lib/active_storage/reflection.rb#53 + # source://activerecord//lib/active_record/base.rb#337 def attachment_reflections=(value); end - # source://activestorage/8.0.2/lib/active_storage/reflection.rb#53 + # source://activerecord//lib/active_record/base.rb#337 def attachment_reflections?; end - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 + # source://activerecord//lib/active_record/base.rb#314 def attribute_aliases; end - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 + # source://activerecord//lib/active_record/base.rb#314 def attribute_aliases=(value); end - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 + # source://activerecord//lib/active_record/base.rb#314 def attribute_aliases?; end - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 + # source://activerecord//lib/active_record/base.rb#314 def attribute_method_patterns; end - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 + # source://activerecord//lib/active_record/base.rb#314 def attribute_method_patterns=(value); end - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 + # source://activerecord//lib/active_record/base.rb#314 def attribute_method_patterns?; end - # source://activerecord//lib/active_record/core.rb#119 + # source://activerecord//lib/active_record/base.rb#299 def attributes_for_inspect; end - # source://activerecord//lib/active_record/core.rb#119 + # source://activerecord//lib/active_record/base.rb#299 def attributes_for_inspect=(value); end - # source://activerecord//lib/active_record/core.rb#119 + # source://activerecord//lib/active_record/base.rb#299 def attributes_for_inspect?; end - # source://activerecord//lib/active_record/reflection.rb#13 + # source://activerecord//lib/active_record/base.rb#324 def automatic_scope_inversing; end - # source://activerecord//lib/active_record/reflection.rb#13 + # source://activerecord//lib/active_record/base.rb#324 def automatic_scope_inversing=(value); end - # source://activerecord//lib/active_record/reflection.rb#13 + # source://activerecord//lib/active_record/base.rb#324 def automatic_scope_inversing?; end - # source://activerecord//lib/active_record/reflection.rb#14 + # source://activerecord//lib/active_record/base.rb#324 def automatically_invert_plural_associations; end - # source://activerecord//lib/active_record/reflection.rb#14 + # source://activerecord//lib/active_record/base.rb#324 def automatically_invert_plural_associations=(value); end - # source://activerecord//lib/active_record/reflection.rb#14 + # source://activerecord//lib/active_record/base.rb#324 def automatically_invert_plural_associations?; end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 + # source://activerecord//lib/active_record/base.rb#315 def before_create(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 + # source://activerecord//lib/active_record/base.rb#315 def before_destroy(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 + # source://activerecord//lib/active_record/base.rb#315 def before_save(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 + # source://activerecord//lib/active_record/base.rb#315 def before_update(*args, **options, &block); end - # source://activerecord//lib/active_record/core.rb#89 + # source://activerecord//lib/active_record/base.rb#299 def belongs_to_required_by_default; end - # source://activerecord//lib/active_record/core.rb#89 + # source://activerecord//lib/active_record/base.rb#299 def belongs_to_required_by_default=(value); end - # source://activerecord//lib/active_record/core.rb#89 + # source://activerecord//lib/active_record/base.rb#299 def belongs_to_required_by_default?; end - # source://activerecord//lib/active_record/integration.rb#16 + # source://activerecord//lib/active_record/base.rb#307 def cache_timestamp_format; end - # source://activerecord//lib/active_record/integration.rb#16 + # source://activerecord//lib/active_record/base.rb#307 def cache_timestamp_format=(value); end - # source://activerecord//lib/active_record/integration.rb#16 + # source://activerecord//lib/active_record/base.rb#307 def cache_timestamp_format?; end - # source://activerecord//lib/active_record/integration.rb#24 + # source://activerecord//lib/active_record/base.rb#307 def cache_versioning; end - # source://activerecord//lib/active_record/integration.rb#24 + # source://activerecord//lib/active_record/base.rb#307 def cache_versioning=(value); end - # source://activerecord//lib/active_record/integration.rb#24 + # source://activerecord//lib/active_record/base.rb#307 def cache_versioning?; end - # source://activerecord//lib/active_record/integration.rb#32 + # source://activerecord//lib/active_record/base.rb#307 def collection_cache_versioning; end - # source://activerecord//lib/active_record/integration.rb#32 + # source://activerecord//lib/active_record/base.rb#307 def collection_cache_versioning=(value); end - # source://activerecord//lib/active_record/integration.rb#32 + # source://activerecord//lib/active_record/base.rb#307 def collection_cache_versioning?; end - # source://activerecord//lib/active_record/core.rb#77 + # source://activerecord//lib/active_record/base.rb#299 def configurations; end - # source://activerecord//lib/active_record/core.rb#71 + # source://activerecord//lib/active_record/base.rb#299 def configurations=(config); end - # source://activerecord//lib/active_record/core.rb#216 + # source://activerecord//lib/active_record/base.rb#299 def connected_to_stack; end - # source://activerecord//lib/active_record/core.rb#230 + # source://activerecord//lib/active_record/base.rb#299 def connection_class; end - # source://activerecord//lib/active_record/core.rb#226 + # source://activerecord//lib/active_record/base.rb#299 def connection_class=(b); end - # source://activerecord//lib/active_record/core.rb#234 + # source://activerecord//lib/active_record/base.rb#299 def connection_class?; end - # source://activerecord//lib/active_record/core.rb#238 + # source://activerecord//lib/active_record/base.rb#299 def connection_class_for_self; end - # source://activerecord//lib/active_record/core.rb#133 + # source://activerecord//lib/active_record/base.rb#299 def connection_handler; end - # source://activerecord//lib/active_record/core.rb#137 + # source://activerecord//lib/active_record/base.rb#299 def connection_handler=(handler); end - # source://activerecord//lib/active_record/counter_cache.rb#10 + # source://activerecord//lib/active_record/base.rb#309 def counter_cached_association_names; end - # source://activerecord//lib/active_record/counter_cache.rb#10 + # source://activerecord//lib/active_record/base.rb#309 def counter_cached_association_names=(value); end - # source://activerecord//lib/active_record/counter_cache.rb#10 + # source://activerecord//lib/active_record/base.rb#309 def counter_cached_association_names?; end - # source://activerecord//lib/active_record/core.rb#196 + # source://activerecord//lib/active_record/base.rb#299 def current_preventing_writes; end - # source://activerecord//lib/active_record/core.rb#159 + # source://activerecord//lib/active_record/base.rb#299 def current_role; end - # source://activerecord//lib/active_record/core.rb#177 + # source://activerecord//lib/active_record/base.rb#299 def current_shard; end - # source://activerecord//lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord//lib/active_record/base.rb#314 def default_column_serializer; end - # source://activerecord//lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord//lib/active_record/base.rb#314 def default_column_serializer=(value); end - # source://activerecord//lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord//lib/active_record/base.rb#314 def default_column_serializer?; end - # source://activerecord//lib/active_record/core.rb#98 + # source://activerecord//lib/active_record/base.rb#299 def default_connection_handler; end - # source://activerecord//lib/active_record/core.rb#98 + # source://activerecord//lib/active_record/base.rb#299 def default_connection_handler=(value); end - # source://activerecord//lib/active_record/core.rb#98 + # source://activerecord//lib/active_record/base.rb#299 def default_connection_handler?; end - # source://activerecord//lib/active_record/core.rb#100 + # source://activerecord//lib/active_record/base.rb#299 def default_role; end - # source://activerecord//lib/active_record/core.rb#100 + # source://activerecord//lib/active_record/base.rb#299 def default_role=(value); end - # source://activerecord//lib/active_record/core.rb#100 + # source://activerecord//lib/active_record/base.rb#299 def default_role?; end - # source://activerecord//lib/active_record/scoping/default.rb#20 + # source://activerecord//lib/active_record/base.rb#304 def default_scope_override; end - # source://activerecord//lib/active_record/scoping/default.rb#20 + # source://activerecord//lib/active_record/base.rb#304 def default_scope_override=(value); end - # source://activerecord//lib/active_record/scoping/default.rb#19 + # source://activerecord//lib/active_record/base.rb#304 def default_scopes; end - # source://activerecord//lib/active_record/scoping/default.rb#19 + # source://activerecord//lib/active_record/base.rb#304 def default_scopes=(value); end - # source://activerecord//lib/active_record/core.rb#102 + # source://activerecord//lib/active_record/base.rb#299 def default_shard; end - # source://activerecord//lib/active_record/core.rb#102 + # source://activerecord//lib/active_record/base.rb#299 def default_shard=(value); end - # source://activerecord//lib/active_record/core.rb#102 + # source://activerecord//lib/active_record/base.rb#299 def default_shard?; end - # source://activerecord//lib/active_record/enum.rb#167 + # source://activerecord//lib/active_record/base.rb#295 def defined_enums; end - # source://activerecord//lib/active_record/enum.rb#167 + # source://activerecord//lib/active_record/base.rb#295 def defined_enums=(value); end - # source://activerecord//lib/active_record/enum.rb#167 + # source://activerecord//lib/active_record/base.rb#295 def defined_enums?; end - # source://activerecord//lib/active_record/core.rb#47 + # source://activerecord//lib/active_record/base.rb#299 def destroy_association_async_batch_size; end - # source://activerecord//lib/active_record/core.rb#47 + # source://activerecord//lib/active_record/base.rb#299 def destroy_association_async_batch_size=(value); end - # source://activerecord//lib/active_record/core.rb#27 + # source://activerecord//lib/active_record/base.rb#299 def destroy_association_async_job; end - # source://activerecord//lib/active_record/core.rb#24 + # source://activerecord//lib/active_record/base.rb#299 def destroy_association_async_job=(value); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord//lib/active_record/base.rb#313 def encrypted_attributes; end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord//lib/active_record/base.rb#313 def encrypted_attributes=(value); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord//lib/active_record/base.rb#313 def encrypted_attributes?; end - # source://activerecord//lib/active_record/core.rb#87 + # source://activerecord//lib/active_record/base.rb#299 def enumerate_columns_in_select_statements; end - # source://activerecord//lib/active_record/core.rb#87 + # source://activerecord//lib/active_record/base.rb#299 def enumerate_columns_in_select_statements=(value); end - # source://activerecord//lib/active_record/core.rb#87 + # source://activerecord//lib/active_record/base.rb#299 def enumerate_columns_in_select_statements?; end - # source://activerecord//lib/active_record/token_for.rb#11 + # source://activerecord//lib/active_record/base.rb#328 def generated_token_verifier; end - # source://activerecord//lib/active_record/token_for.rb#11 + # source://activerecord//lib/active_record/base.rb#328 def generated_token_verifier=(value); end - # source://activerecord//lib/active_record/core.rb#94 + # source://activerecord//lib/active_record/base.rb#299 def has_many_inversing; end - # source://activerecord//lib/active_record/core.rb#94 + # source://activerecord//lib/active_record/base.rb#299 def has_many_inversing=(value); end - # source://activerecord//lib/active_record/core.rb#94 + # source://activerecord//lib/active_record/base.rb#299 def has_many_inversing?; end - # source://activerecord//lib/active_record/model_schema.rb#170 + # source://activerecord//lib/active_record/base.rb#302 def immutable_strings_by_default; end - # source://activerecord//lib/active_record/model_schema.rb#170 + # source://activerecord//lib/active_record/base.rb#302 def immutable_strings_by_default=(value); end - # source://activerecord//lib/active_record/model_schema.rb#170 + # source://activerecord//lib/active_record/base.rb#302 def immutable_strings_by_default?; end - # source://activerecord//lib/active_record/model_schema.rb#169 + # source://activerecord//lib/active_record/base.rb#302 def implicit_order_column; end - # source://activerecord//lib/active_record/model_schema.rb#169 + # source://activerecord//lib/active_record/base.rb#302 def implicit_order_column=(value); end - # source://activerecord//lib/active_record/model_schema.rb#169 + # source://activerecord//lib/active_record/base.rb#302 def implicit_order_column?; end - # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 + # source://activerecord//lib/active_record/base.rb#325 def include_root_in_json; end - # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 + # source://activerecord//lib/active_record/base.rb#325 def include_root_in_json=(value); end - # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 + # source://activerecord//lib/active_record/base.rb#325 def include_root_in_json?; end - # source://activerecord//lib/active_record/model_schema.rb#172 + # source://activerecord//lib/active_record/base.rb#302 def inheritance_column; end - # source://activerecord//lib/active_record/model_schema.rb#325 + # source://activerecord//lib/active_record/base.rb#302 def inheritance_column=(value); end - # source://activerecord//lib/active_record/model_schema.rb#172 + # source://activerecord//lib/active_record/base.rb#302 def inheritance_column?; end - # source://activerecord//lib/active_record/model_schema.rb#167 + # source://activerecord//lib/active_record/base.rb#302 def internal_metadata_table_name; end - # source://activerecord//lib/active_record/model_schema.rb#167 + # source://activerecord//lib/active_record/base.rb#302 def internal_metadata_table_name=(value); end - # source://activerecord//lib/active_record/model_schema.rb#167 + # source://activerecord//lib/active_record/base.rb#302 def internal_metadata_table_name?; end - # source://activerecord//lib/active_record/store.rb#101 + # source://activerecord//lib/active_record/base.rb#326 def local_stored_attributes; end - # source://activerecord//lib/active_record/store.rb#101 + # source://activerecord//lib/active_record/base.rb#326 def local_stored_attributes=(_arg0); end - # source://activerecord//lib/active_record/locking/optimistic.rb#56 + # source://activerecord//lib/active_record/base.rb#311 def lock_optimistically; end - # source://activerecord//lib/active_record/locking/optimistic.rb#56 + # source://activerecord//lib/active_record/base.rb#311 def lock_optimistically=(value); end - # source://activerecord//lib/active_record/locking/optimistic.rb#56 + # source://activerecord//lib/active_record/base.rb#311 def lock_optimistically?; end - # source://activerecord//lib/active_record/core.rb#22 + # source://activerecord//lib/active_record/base.rb#299 def logger; end - # source://activerecord//lib/active_record/core.rb#22 + # source://activerecord//lib/active_record/base.rb#299 def logger=(value); end - # source://activerecord//lib/active_record/core.rb#22 + # source://activerecord//lib/active_record/base.rb#299 def logger?; end - # source://activerecord//lib/active_record/nested_attributes.rb#15 + # source://activerecord//lib/active_record/base.rb#320 def nested_attributes_options; end - # source://activerecord//lib/active_record/nested_attributes.rb#15 + # source://activerecord//lib/active_record/base.rb#320 def nested_attributes_options=(value); end - # source://activerecord//lib/active_record/nested_attributes.rb#15 + # source://activerecord//lib/active_record/base.rb#320 def nested_attributes_options?; end - # source://activerecord//lib/active_record/normalization.rb#8 + # source://activerecord//lib/active_record/base.rb#331 def normalized_attributes; end - # source://activerecord//lib/active_record/normalization.rb#8 + # source://activerecord//lib/active_record/base.rb#331 def normalized_attributes=(value); end - # source://activerecord//lib/active_record/normalization.rb#8 + # source://activerecord//lib/active_record/base.rb#331 def normalized_attributes?; end - # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 + # source://activerecord//lib/active_record/base.rb#283 def param_delimiter; end - # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 + # source://activerecord//lib/active_record/base.rb#283 def param_delimiter=(value); end - # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 + # source://activerecord//lib/active_record/base.rb#283 def param_delimiter?; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord//lib/active_record/base.rb#314 def partial_inserts; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord//lib/active_record/base.rb#314 def partial_inserts=(value); end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord//lib/active_record/base.rb#314 def partial_inserts?; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord//lib/active_record/base.rb#314 def partial_updates; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord//lib/active_record/base.rb#314 def partial_updates=(value); end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord//lib/active_record/base.rb#314 def partial_updates?; end - # source://activerecord//lib/active_record/model_schema.rb#168 + # source://activerecord//lib/active_record/base.rb#302 def pluralize_table_names; end - # source://activerecord//lib/active_record/model_schema.rb#168 + # source://activerecord//lib/active_record/base.rb#302 def pluralize_table_names=(value); end - # source://activerecord//lib/active_record/model_schema.rb#168 + # source://activerecord//lib/active_record/base.rb#302 def pluralize_table_names?; end - # source://activerecord//lib/active_record/core.rb#207 + # source://activerecord//lib/active_record/base.rb#299 def preventing_writes?(class_name); end - # source://activerecord//lib/active_record/model_schema.rb#163 + # source://activerecord//lib/active_record/base.rb#302 def primary_key_prefix_type; end - # source://activerecord//lib/active_record/model_schema.rb#163 + # source://activerecord//lib/active_record/base.rb#302 def primary_key_prefix_type=(value); end - # source://activerecord//lib/active_record/model_schema.rb#163 + # source://activerecord//lib/active_record/base.rb#302 def primary_key_prefix_type?; end - # source://activerecord//lib/active_record/timestamp.rb#47 + # source://activerecord//lib/active_record/base.rb#316 def record_timestamps; end - # source://activerecord//lib/active_record/timestamp.rb#47 + # source://activerecord//lib/active_record/base.rb#316 def record_timestamps=(value); end - # source://activerecord//lib/active_record/timestamp.rb#47 + # source://activerecord//lib/active_record/base.rb#316 def record_timestamps?; end - # source://activerecord//lib/active_record/core.rb#96 + # source://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 + # source://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 + # source://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 + # source://activerecord//lib/active_record/base.rb#302 def schema_migrations_table_name; end - # source://activerecord//lib/active_record/model_schema.rb#166 + # source://activerecord//lib/active_record/base.rb#302 def schema_migrations_table_name=(value); end - # source://activerecord//lib/active_record/model_schema.rb#166 + # source://activerecord//lib/active_record/base.rb#302 def schema_migrations_table_name?; end - # source://activerecord//lib/active_record/core.rb#104 + # source://activerecord//lib/active_record/base.rb#299 def shard_selector; end - # source://activerecord//lib/active_record/core.rb#104 + # source://activerecord//lib/active_record/base.rb#299 def shard_selector=(value); end - # source://activerecord//lib/active_record/core.rb#104 + # source://activerecord//lib/active_record/base.rb#299 def shard_selector?; end - # source://activerecord//lib/active_record/signed_id.rb#13 + # source://activerecord//lib/active_record/base.rb#329 def signed_id_verifier_secret; end - # source://activerecord//lib/active_record/signed_id.rb#13 + # source://activerecord//lib/active_record/base.rb#329 def signed_id_verifier_secret=(value); end - # source://activerecord//lib/active_record/signed_id.rb#13 + # source://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 + # source://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 + # source://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 + # source://activerecord//lib/active_record/base.rb#314 def skip_time_zone_conversion_for_attributes?; end - # source://activerecord//lib/active_record/inheritance.rb#43 + # source://activerecord//lib/active_record/base.rb#303 def store_full_class_name; end - # source://activerecord//lib/active_record/inheritance.rb#43 + # source://activerecord//lib/active_record/base.rb#303 def store_full_class_name=(value); end - # source://activerecord//lib/active_record/inheritance.rb#43 + # source://activerecord//lib/active_record/base.rb#303 def store_full_class_name?; end - # source://activerecord//lib/active_record/inheritance.rb#47 + # source://activerecord//lib/active_record/base.rb#303 def store_full_sti_class; end - # source://activerecord//lib/active_record/inheritance.rb#47 + # source://activerecord//lib/active_record/base.rb#303 def store_full_sti_class=(value); end - # source://activerecord//lib/active_record/inheritance.rb#47 + # source://activerecord//lib/active_record/base.rb#303 def store_full_sti_class?; end - # source://activerecord//lib/active_record/core.rb#91 + # source://activerecord//lib/active_record/base.rb#299 def strict_loading_by_default; end - # source://activerecord//lib/active_record/core.rb#91 + # source://activerecord//lib/active_record/base.rb#299 def strict_loading_by_default=(value); end - # source://activerecord//lib/active_record/core.rb#91 + # source://activerecord//lib/active_record/base.rb#299 def strict_loading_by_default?; end - # source://activerecord//lib/active_record/core.rb#92 + # source://activerecord//lib/active_record/base.rb#299 def strict_loading_mode; end - # source://activerecord//lib/active_record/core.rb#92 + # source://activerecord//lib/active_record/base.rb#299 def strict_loading_mode=(value); end - # source://activerecord//lib/active_record/core.rb#92 + # source://activerecord//lib/active_record/base.rb#299 def strict_loading_mode?; end - # source://activerecord//lib/active_record/core.rb#253 + # source://activerecord//lib/active_record/base.rb#299 def strict_loading_violation!(owner:, reflection:); end - # source://activerecord//lib/active_record/model_schema.rb#164 + # source://activerecord//lib/active_record/base.rb#302 def table_name_prefix; end - # source://activerecord//lib/active_record/model_schema.rb#164 + # source://activerecord//lib/active_record/base.rb#302 def table_name_prefix=(value); end - # source://activerecord//lib/active_record/model_schema.rb#164 + # source://activerecord//lib/active_record/base.rb#302 def table_name_prefix?; end - # source://activerecord//lib/active_record/model_schema.rb#165 + # source://activerecord//lib/active_record/base.rb#302 def table_name_suffix; end - # source://activerecord//lib/active_record/model_schema.rb#165 + # source://activerecord//lib/active_record/base.rb#302 def table_name_suffix=(value); end - # source://activerecord//lib/active_record/model_schema.rb#165 + # source://activerecord//lib/active_record/base.rb#302 def table_name_suffix?; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#60 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://activerecord//lib/active_record/base.rb#314 def time_zone_aware_types?; end - # source://activerecord//lib/active_record/token_for.rb#10 + # source://activerecord//lib/active_record/base.rb#328 def token_definitions; end - # source://activerecord//lib/active_record/token_for.rb#10 + # source://activerecord//lib/active_record/base.rb#328 def token_definitions=(value); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#283 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#283 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#301 def __class_attr__attr_readonly; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#301 def __class_attr__attr_readonly=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#309 def __class_attr__counter_cache_columns; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#309 def __class_attr__counter_cache_columns=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr__destroy_association_async_job; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr__destroy_association_async_job=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#324 def __class_attr__reflections; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#324 def __class_attr__reflections=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#283 def __class_attr__validators; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#283 def __class_attr__validators=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#324 def __class_attr_aggregate_reflections; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#324 def __class_attr_aggregate_reflections=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#337 def __class_attr_attachment_reflections; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#337 def __class_attr_attachment_reflections=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_attribute_aliases; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_attribute_aliases=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_attribute_method_patterns; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_attribute_method_patterns=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_attributes_for_inspect; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_attributes_for_inspect=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#324 def __class_attr_automatic_scope_inversing; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#324 def __class_attr_automatic_scope_inversing=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#324 def __class_attr_automatically_invert_plural_associations; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#324 def __class_attr_automatically_invert_plural_associations=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_belongs_to_required_by_default; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_belongs_to_required_by_default=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#307 def __class_attr_cache_timestamp_format; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#307 def __class_attr_cache_timestamp_format=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#307 def __class_attr_cache_versioning; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#307 def __class_attr_cache_versioning=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#307 def __class_attr_collection_cache_versioning; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#307 def __class_attr_collection_cache_versioning=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#309 def __class_attr_counter_cached_association_names; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#309 def __class_attr_counter_cached_association_names=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_default_column_serializer; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_default_column_serializer=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_default_connection_handler; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_default_connection_handler=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_default_role; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_default_role=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#304 def __class_attr_default_scope_override; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#304 def __class_attr_default_scope_override=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#304 def __class_attr_default_scopes; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#304 def __class_attr_default_scopes=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_default_shard; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_default_shard=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#295 def __class_attr_defined_enums; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#295 def __class_attr_defined_enums=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_destroy_association_async_batch_size; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_destroy_association_async_batch_size=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#313 def __class_attr_encrypted_attributes; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#313 def __class_attr_encrypted_attributes=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_enumerate_columns_in_select_statements; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_enumerate_columns_in_select_statements=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#328 def __class_attr_generated_token_verifier; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#328 def __class_attr_generated_token_verifier=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_has_many_inversing; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_has_many_inversing=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_immutable_strings_by_default; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_immutable_strings_by_default=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_implicit_order_column; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_implicit_order_column=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#325 def __class_attr_include_root_in_json; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#325 def __class_attr_include_root_in_json=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_inheritance_column; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_inheritance_column=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_internal_metadata_table_name; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_internal_metadata_table_name=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#311 def __class_attr_lock_optimistically; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#311 def __class_attr_lock_optimistically=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_logger; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_logger=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#320 def __class_attr_nested_attributes_options; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#320 def __class_attr_nested_attributes_options=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#331 def __class_attr_normalized_attributes; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#331 def __class_attr_normalized_attributes=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#283 def __class_attr_param_delimiter; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#283 def __class_attr_param_delimiter=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_partial_inserts; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_partial_inserts=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_partial_updates; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_partial_updates=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_pluralize_table_names; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_pluralize_table_names=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_primary_key_prefix_type; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_primary_key_prefix_type=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#316 def __class_attr_record_timestamps; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#316 def __class_attr_record_timestamps=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_run_commit_callbacks_on_first_saved_instances_in_transaction; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://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.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_schema_migrations_table_name; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_schema_migrations_table_name=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_shard_selector; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_shard_selector=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#329 def __class_attr_signed_id_verifier_secret; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#329 def __class_attr_signed_id_verifier_secret=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_skip_time_zone_conversion_for_attributes; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_skip_time_zone_conversion_for_attributes=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#303 def __class_attr_store_full_class_name; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#303 def __class_attr_store_full_class_name=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#303 def __class_attr_store_full_sti_class; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#303 def __class_attr_store_full_sti_class=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_strict_loading_by_default; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_strict_loading_by_default=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_strict_loading_mode; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#299 def __class_attr_strict_loading_mode=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_table_name_prefix; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_table_name_prefix=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_table_name_suffix; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#302 def __class_attr_table_name_suffix=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_time_zone_aware_attributes; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_time_zone_aware_attributes=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_time_zone_aware_types; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#314 def __class_attr_time_zone_aware_types=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/base.rb#328 def __class_attr_token_definitions; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/base.rb#328 def __class_attr_token_definitions=(new_value); end - # source://activerecord//lib/active_record/model_schema.rb#172 + # source://activerecord//lib/active_record/base.rb#302 def _inheritance_column=(value); end end end -# source://activerecord//lib/active_record/base.rb#0 +# source://activerecord//lib/active_record/base.rb#314 module ActiveRecord::Base::GeneratedAssociationMethods; end -# source://activerecord//lib/active_record/base.rb#0 +# source://activerecord//lib/active_record/base.rb#314 module ActiveRecord::Base::GeneratedAttributeMethods; end # = Active Record \Batches @@ -10936,19 +10968,19 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#125 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.2/lib/active_support/callbacks.rb#69 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#32 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#33 def _checkin_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#33 def _checkout_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#33 def _run_checkin_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://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 @@ -11040,7 +11072,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#203 def connection_retries; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#37 def create(*_arg0, **_arg1, &_arg2); end # This is meant to be implemented by the adapters that support custom enum types @@ -11072,7 +11104,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#806 def default_uniqueness_comparison(attribute, value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#37 def delete(*_arg0, **_arg1, &_arg2); end # This is meant to be implemented by the adapters that support extensions @@ -11116,13 +11148,13 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#572 def enable_extension(name, **_arg1); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#37 def exec_insert_all(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#37 def exec_query(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#37 def execute(*_arg0, **_arg1, &_arg2); end # this method must only be called while holding connection pool's mutex @@ -11148,7 +11180,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # Returns the value of attribute owner. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#44 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#45 def in_use?; end # A list of index algorithms, to be filled by adapters that support them. @@ -11156,7 +11188,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#627 def index_algorithms; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#37 def insert(*_arg0, **_arg1, &_arg2); end # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#174 @@ -11204,7 +11236,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#234 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#237 def prepared_statements; end # @return [Boolean] @@ -11288,7 +11320,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#726 def reset!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#37 def restart_db_transaction(*_arg0, **_arg1, &_arg2); end # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#211 @@ -11305,10 +11337,10 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#288 def role; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#37 def rollback_db_transaction(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#37 def rollback_to_savepoint(*_arg0, **_arg1, &_arg2); end # Do TransactionRollbackErrors on savepoints affect the parent @@ -11595,16 +11627,16 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#733 def throw_away!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#37 def truncate(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#37 def truncate_tables(*_arg0, **_arg1, &_arg2); end # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#344 def unprepared_statement; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#37 def update(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -11782,22 +11814,22 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter def with_raw_connection(allow_retry: T.unsafe(nil), materialize_transactions: T.unsafe(nil)); end class << self - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#32 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#32 def __callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#33 def _checkin_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#33 def _checkin_callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#33 def _checkout_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://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#86 @@ -11837,10 +11869,10 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#32 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://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#937 @@ -11907,19 +11939,32 @@ class ActiveRecord::ConnectionAdapters::AddColumnDefinition < ::Struct # Returns the value of attribute column # # @return [Object] the current value of column + # + # source://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 + # + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#113 def column=(_); end class << self + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#113 def [](*_arg0); end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#113 def inspect; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#113 def keyword_init?; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#113 def members; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#113 def new(*_arg0); end end end @@ -12067,30 +12112,47 @@ class ActiveRecord::ConnectionAdapters::ChangeColumnDefaultDefinition < ::Struct # Returns the value of attribute column # # @return [Object] the current value of column + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#117 def default=(_); end class << self + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#117 def [](*_arg0); end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#117 def inspect; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#117 def keyword_init?; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#117 def members; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#117 def new(*_arg0); end end end @@ -12100,30 +12162,47 @@ class ActiveRecord::ConnectionAdapters::ChangeColumnDefinition < ::Struct # Returns the value of attribute column # # @return [Object] the current value of column + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#115 def name=(_); end class << self + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#115 def [](*_arg0); end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#115 def inspect; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#115 def keyword_init?; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#115 def members; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#115 def new(*_arg0); end end end @@ -12143,12 +12222,16 @@ class ActiveRecord::ConnectionAdapters::CheckConstraintDefinition < ::Struct # Returns the value of attribute expression # # @return [Object] the current value of expression + # + # source://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 + # + # source://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 @@ -12157,23 +12240,31 @@ class ActiveRecord::ConnectionAdapters::CheckConstraintDefinition < ::Struct # Returns the value of attribute options # # @return [Object] the current value of options + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#175 def table_name=(_); end # @return [Boolean] @@ -12183,14 +12274,23 @@ class ActiveRecord::ConnectionAdapters::CheckConstraintDefinition < ::Struct # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#180 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#183 def validated?; end class << self + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#175 def [](*_arg0); end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#175 def inspect; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#175 def keyword_init?; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#175 def members; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#175 def new(*_arg0); end end end @@ -12257,7 +12357,7 @@ class ActiveRecord::ConnectionAdapters::Column # source://activerecord//lib/active_record/connection_adapters/column.rb#56 def encode_with(coder); end - # source://activerecord//lib/active_record/connection_adapters/column.rb#75 + # source://activerecord//lib/active_record/connection_adapters/column.rb#85 def eql?(other); end # @return [Boolean] @@ -12330,74 +12430,82 @@ class ActiveRecord::ConnectionAdapters::ColumnDefinition < ::Struct # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # + # source://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 + # + # source://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 + # source://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 + # source://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 + # + # source://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 + # + # source://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 + # source://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 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#97 def precision=(value); end # @return [Boolean] @@ -12405,39 +12513,56 @@ class ActiveRecord::ConnectionAdapters::ColumnDefinition < ::Struct # source://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 + # source://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 + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#78 def type=(_); end class << self + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#78 def [](*_arg0); end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#78 def inspect; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#78 def keyword_init?; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#78 def members; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#78 def new(*_arg0); end end end @@ -12458,7 +12583,7 @@ module ActiveRecord::ConnectionAdapters::ColumnMethods def primary_key(name, type = T.unsafe(nil), **options); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#0 +# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#331 module ActiveRecord::ConnectionAdapters::ColumnMethods::ClassMethods private @@ -12568,7 +12693,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionHandler # 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 + # source://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 @@ -12751,7 +12876,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # # @return [ConnectionPool] a new instance of ConnectionPool # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#117 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#232 def initialize(*_arg0, **_arg1, &_arg2); end # Returns true if there is an open connection being used for the current thread. @@ -12762,7 +12887,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#376 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#379 def active_connection; end # Returns true if there is an open connection being used for the current thread. @@ -12820,7 +12945,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#547 def checkout(checkout_timeout = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#132 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#942 def checkout_and_verify(connection); end # Returns the value of attribute checkout_timeout. @@ -13109,7 +13234,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # -- # if owner_thread param is omitted, this must be called in synchronize block # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#887 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#892 def release(conn, owner_thread = T.unsafe(nil)); end # -- @@ -13405,41 +13530,62 @@ class ActiveRecord::ConnectionAdapters::CreateIndexDefinition < ::Struct # Returns the value of attribute algorithm # # @return [Object] the current value of algorithm + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#119 def index=(_); end class << self + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#119 def [](*_arg0); end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#119 def inspect; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#119 def keyword_init?; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#119 def members; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#119 def new(*_arg0); end end end @@ -13527,7 +13673,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 + # source://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 @@ -14019,7 +14165,7 @@ module ActiveRecord::ConnectionAdapters::Deduplicable mixes_in_class_methods ::ActiveRecord::ConnectionAdapters::Deduplicable::ClassMethods - # source://activerecord//lib/active_record/connection_adapters/deduplicable.rb#18 + # source://activerecord//lib/active_record/connection_adapters/deduplicable.rb#21 def -@; end # source://activerecord//lib/active_record/connection_adapters/deduplicable.rb#18 @@ -14066,12 +14212,16 @@ class ActiveRecord::ConnectionAdapters::ForeignKeyDefinition < ::Struct # Returns the value of attribute from_table # # @return [Object] the current value of from_table + # + # source://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 + # + # source://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 @@ -14086,12 +14236,16 @@ class ActiveRecord::ConnectionAdapters::ForeignKeyDefinition < ::Struct # Returns the value of attribute options # # @return [Object] the current value of options + # + # source://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 + # + # source://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 @@ -14100,12 +14254,16 @@ class ActiveRecord::ConnectionAdapters::ForeignKeyDefinition < ::Struct # Returns the value of attribute to_table # # @return [Object] the current value of to_table + # + # source://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 + # + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#123 def to_table=(_); end # @return [Boolean] @@ -14115,7 +14273,7 @@ class ActiveRecord::ConnectionAdapters::ForeignKeyDefinition < ::Struct # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#152 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#155 def validated?; end private @@ -14124,10 +14282,19 @@ class ActiveRecord::ConnectionAdapters::ForeignKeyDefinition < ::Struct def default_primary_key; end class << self + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#123 def [](*_arg0); end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#123 def inspect; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#123 def keyword_init?; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#123 def members; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#123 def new(*_arg0); end end end @@ -14430,19 +14597,32 @@ class ActiveRecord::ConnectionAdapters::PrimaryKeyDefinition < ::Struct # Returns the value of attribute name # # @return [Object] the current value of name + # + # source://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 + # + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#121 def name=(_); end class << self + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#121 def [](*_arg0); end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#121 def inspect; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#121 def keyword_init?; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#121 def members; end + + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#121 def new(*_arg0); end end end @@ -14610,7 +14790,7 @@ class ActiveRecord::ConnectionAdapters::QueryCache::Store # Returns the value of attribute dirties. # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#35 + # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#37 def dirties?; end # @return [Boolean] @@ -14632,7 +14812,7 @@ class ActiveRecord::ConnectionAdapters::QueryCache::Store # Returns the value of attribute enabled. # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#35 + # source://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 @@ -15176,13 +15356,13 @@ class ActiveRecord::ConnectionAdapters::SchemaCreation # source://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 + # source://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 def visit_DropConstraint(name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#100 + # source://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 @@ -15403,7 +15583,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#1063 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1066 def add_belongs_to(table_name, ref_name, **options); end # Adds a new check constraint to the table. +expression+ is a String @@ -16429,7 +16609,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # remove_reference(:products, :user, foreign_key: true) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1082 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1099 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 @@ -16732,7 +16912,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1775 def extract_foreign_key_action(specifier); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1820 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1827 def extract_new_comment_value(default_or_changes); end # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1820 @@ -16830,7 +17010,7 @@ class ActiveRecord::ConnectionAdapters::SqlTypeMetadata # source://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 + # source://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 @@ -16930,19 +17110,19 @@ 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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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. @@ -17018,16 +17198,16 @@ class ActiveRecord::ConnectionAdapters::Table # source://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 + # source://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 + # source://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 + # source://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 + # source://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. @@ -17076,10 +17256,10 @@ class ActiveRecord::ConnectionAdapters::Table # source://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 + # source://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 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#334 def json(*names, **options); end # Returns the value of attribute name. @@ -17087,7 +17267,7 @@ class ActiveRecord::ConnectionAdapters::Table # source://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 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#328 def numeric(*names, **options); end # Adds a reference. @@ -17117,7 +17297,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 + # source://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. @@ -17188,16 +17368,16 @@ class ActiveRecord::ConnectionAdapters::Table # source://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 + # source://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 + # source://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 + # source://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 + # source://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. @@ -17209,7 +17389,7 @@ class ActiveRecord::ConnectionAdapters::Table # source://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 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#334 def virtual(*names, **options); end private @@ -17266,19 +17446,19 @@ 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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 @@ -17370,16 +17550,16 @@ class ActiveRecord::ConnectionAdapters::TableDefinition # source://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 + # source://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 + # source://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 + # source://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 + # source://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 @@ -17408,10 +17588,10 @@ class ActiveRecord::ConnectionAdapters::TableDefinition # source://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 + # source://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 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#334 def json(*names, **options); end # Returns the value of attribute name. @@ -17428,7 +17608,7 @@ class ActiveRecord::ConnectionAdapters::TableDefinition # source://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 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#328 def numeric(*names, **options); end # Returns the value of attribute options. @@ -17459,7 +17639,7 @@ class ActiveRecord::ConnectionAdapters::TableDefinition # source://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 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#334 def string(*names, **options); end # Returns the value of attribute temporary. @@ -17467,13 +17647,13 @@ class ActiveRecord::ConnectionAdapters::TableDefinition # source://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 + # source://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 + # source://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 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#334 def timestamp(*names, **options); end # Appends :datetime columns :created_at and @@ -17484,7 +17664,7 @@ class ActiveRecord::ConnectionAdapters::TableDefinition # source://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 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#334 def virtual(*names, **options); end private @@ -18270,7 +18450,7 @@ 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 + # source://activerecord//lib/active_record/core.rb#637 def eql?(comparison_object); end # Clone and freeze the attributes hash such that associations are still @@ -18837,7 +19017,7 @@ class ActiveRecord::DatabaseConfigurations # # @return [Boolean] # - # source://activerecord//lib/active_record/database_configurations.rb#150 + # source://activerecord//lib/active_record/database_configurations.rb#153 def blank?; end # Collects the configs for the environment and optionally the specification @@ -19900,16 +20080,16 @@ class ActiveRecord::DestroyAssociationAsyncJob < ::ActiveJob::Base class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/destroy_association_async_job.rb#11 def __class_attr_queue_name; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/destroy_association_async_job.rb#11 def __class_attr_queue_name=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/destroy_association_async_job.rb#13 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/destroy_association_async_job.rb#13 def __class_attr_rescue_handlers=(new_value); end end end @@ -20089,50 +20269,50 @@ module ActiveRecord::Encryption extend ::ActiveRecord::Encryption::Configurable::ClassMethods extend ::ActiveRecord::Encryption::Contexts::ClassMethods - # source://activerecord//lib/active_record/encryption/configurable.rb#10 + # source://activerecord//lib/active_record/encryption.rb#47 def config; end - # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 + # source://activerecord//lib/active_record/encryption.rb#48 def custom_contexts; end - # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 + # source://activerecord//lib/active_record/encryption.rb#48 def custom_contexts=(obj); end - # source://activerecord//lib/active_record/encryption/contexts.rb#17 + # source://activerecord//lib/active_record/encryption.rb#48 def default_context; end - # source://activerecord//lib/active_record/encryption/contexts.rb#17 + # source://activerecord//lib/active_record/encryption.rb#48 def default_context=(val); end - # source://activerecord//lib/active_record/encryption/configurable.rb#11 + # source://activerecord//lib/active_record/encryption.rb#47 def encrypted_attribute_declaration_listeners; end - # source://activerecord//lib/active_record/encryption/configurable.rb#11 + # source://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 + # source://activerecord//lib/active_record/encryption.rb#47 def config; end - # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activerecord//lib/active_record/encryption.rb#48 def custom_contexts; end - # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activerecord//lib/active_record/encryption.rb#48 def custom_contexts=(obj); end - # source://activerecord//lib/active_record/encryption/contexts.rb#17 + # source://activerecord//lib/active_record/encryption.rb#48 def default_context; end - # source://activerecord//lib/active_record/encryption/contexts.rb#17 + # source://activerecord//lib/active_record/encryption.rb#48 def default_context=(val); end # source://activerecord//lib/active_record/encryption.rb#50 def eager_load!; end - # source://activerecord//lib/active_record/encryption/configurable.rb#11 + # source://activerecord//lib/active_record/encryption.rb#47 def encrypted_attribute_declaration_listeners; end - # source://activerecord//lib/active_record/encryption/configurable.rb#11 + # source://activerecord//lib/active_record/encryption.rb#47 def encrypted_attribute_declaration_listeners=(val); end end end @@ -20303,7 +20483,7 @@ class ActiveRecord::Encryption::Config # Returns the value of attribute deterministic_key. # - # source://activerecord//lib/active_record/encryption/config.rb#42 + # source://activerecord//lib/active_record/encryption/config.rb#9 def deterministic_key; end # Sets the attribute deterministic_key @@ -20384,7 +20564,7 @@ class ActiveRecord::Encryption::Config # Returns the value of attribute key_derivation_salt. # - # source://activerecord//lib/active_record/encryption/config.rb#42 + # source://activerecord//lib/active_record/encryption/config.rb#9 def key_derivation_salt; end # Sets the attribute key_derivation_salt @@ -20415,7 +20595,7 @@ class ActiveRecord::Encryption::Config # Returns the value of attribute primary_key. # - # source://activerecord//lib/active_record/encryption/config.rb#42 + # source://activerecord//lib/active_record/encryption/config.rb#9 def primary_key; end # Sets the attribute primary_key @@ -20482,7 +20662,7 @@ module ActiveRecord::Encryption::Configurable mixes_in_class_methods ::ActiveRecord::Encryption::Configurable::ClassMethods end -# source://activerecord//lib/active_record/encryption/configurable.rb#0 +# source://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 @@ -20545,7 +20725,7 @@ class ActiveRecord::Encryption::Context # source://activerecord//lib/active_record/encryption/context.rb#15 def frozen_encryption=(_arg0); end - # source://activerecord//lib/active_record/encryption/context.rb#15 + # source://activerecord//lib/active_record/encryption/context.rb#21 def frozen_encryption?; end # source://activerecord//lib/active_record/encryption/context.rb#15 @@ -20554,7 +20734,7 @@ class ActiveRecord::Encryption::Context # source://activerecord//lib/active_record/encryption/context.rb#15 def key_generator=(_arg0); end - # source://activerecord//lib/active_record/encryption/context.rb#24 + # source://activerecord//lib/active_record/encryption/context.rb#15 def key_provider; end # source://activerecord//lib/active_record/encryption/context.rb#15 @@ -20594,7 +20774,7 @@ module ActiveRecord::Encryption::Contexts mixes_in_class_methods ::ActiveRecord::Encryption::Contexts::ClassMethods end -# source://activerecord//lib/active_record/encryption/contexts.rb#0 +# source://activerecord//lib/active_record/encryption/contexts.rb#21 module ActiveRecord::Encryption::Contexts::ClassMethods # source://activerecord//lib/active_record/encryption/contexts.rb#62 def context; end @@ -20717,7 +20897,7 @@ module ActiveRecord::Encryption::EncryptableRecord end end -# source://activerecord//lib/active_record/encryption/encryptable_record.rb#0 +# source://activerecord//lib/active_record/encryption/encryptable_record.rb#16 module ActiveRecord::Encryption::EncryptableRecord::ClassMethods # source://activerecord//lib/active_record/encryption/encryptable_record.rb#58 def deterministic_encrypted_attributes; end @@ -21181,7 +21361,7 @@ module ActiveRecord::Encryption::ExtendedDeterministicQueries::CoreQueries mixes_in_class_methods ::ActiveRecord::Encryption::ExtendedDeterministicQueries::CoreQueries::ClassMethods end -# source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#0 +# source://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 def find_by(*args); end @@ -21563,7 +21743,7 @@ class ActiveRecord::Encryption::Properties # source://activerecord//lib/active_record/encryption/properties.rb#20 def key?(*_arg0, **_arg1, &_arg2); end - # source://activesupport/8.0.2/lib/active_support/delegation.rb#185 + # source://activerecord//lib/active_record/encryption/properties.rb#19 def method_missing(method, *_arg1, **_arg2, &_arg3); end # source://activerecord//lib/active_record/encryption/properties.rb#68 @@ -21579,7 +21759,7 @@ class ActiveRecord::Encryption::Properties # source://activerecord//lib/active_record/encryption/properties.rb#73 def data; end - # source://activesupport/8.0.2/lib/active_support/delegation.rb#177 + # source://activerecord//lib/active_record/encryption/properties.rb#19 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -22366,7 +22546,7 @@ module ActiveRecord::FinderMethods # # @return [Boolean] # - # source://activerecord//lib/active_record/relation/finder_methods.rb#389 + # source://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 @@ -22473,53 +22653,53 @@ module ActiveRecord::FinderMethods private - # source://activerecord//lib/active_record/relation/finder_methods.rb#648 + # source://activerecord//lib/active_record/relation/finder_methods.rb#649 def _order_columns; end - # source://activerecord//lib/active_record/relation/finder_methods.rb#457 + # source://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#438 + # source://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#636 + # source://activerecord//lib/active_record/relation/finder_methods.rb#637 def find_last(limit); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#598 + # source://activerecord//lib/active_record/relation/finder_methods.rb#599 def find_nth(index); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#622 + # source://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#603 + # source://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#520 + # source://activerecord//lib/active_record/relation/finder_methods.rb#521 def find_one(id); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#541 + # source://activerecord//lib/active_record/relation/finder_methods.rb#542 def find_some(ids); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#567 + # source://activerecord//lib/active_record/relation/finder_methods.rb#568 def find_some_ordered(ids); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#582 + # source://activerecord//lib/active_record/relation/finder_methods.rb#583 def find_take; end - # source://activerecord//lib/active_record/relation/finder_methods.rb#590 + # source://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#491 + # source://activerecord//lib/active_record/relation/finder_methods.rb#492 def find_with_ids(*ids); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#640 + # source://activerecord//lib/active_record/relation/finder_methods.rb#641 def ordered_relation; end # @return [Boolean] # - # source://activerecord//lib/active_record/relation/finder_methods.rb#487 + # source://activerecord//lib/active_record/relation/finder_methods.rb#488 def using_limitable_reflections?(reflections); end end @@ -22561,7 +22741,7 @@ class ActiveRecord::Fixture # Returns the value of attribute fixture. # - # source://activerecord//lib/active_record/fixtures.rb#815 + # source://activerecord//lib/active_record/fixtures.rb#834 def to_hash; end end @@ -24156,7 +24336,7 @@ class ActiveRecord::InsertAll::Builder # source://activerecord//lib/active_record/insert_all.rb#289 def raw_update_sql; end - # source://activerecord//lib/active_record/insert_all.rb#289 + # source://activerecord//lib/active_record/insert_all.rb#293 def raw_update_sql?; end # source://activerecord//lib/active_record/insert_all.rb#228 @@ -24906,16 +25086,16 @@ class ActiveRecord::LogSubscriber < ::ActiveSupport::LogSubscriber private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/log_subscriber.rb#7 def __class_attr_backtrace_cleaner; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/log_subscriber.rb#7 def __class_attr_backtrace_cleaner=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/log_subscriber.rb#16 def __class_attr_log_levels; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/log_subscriber.rb#16 def __class_attr_log_levels=(new_value); end end end @@ -25936,52 +26116,52 @@ class ActiveRecord::Migration::CommandRecorder # source://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 + # source://activerecord//lib/active_record/migration/command_recorder.rb#133 def add_belongs_to(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def add_check_constraint(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def add_column(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def add_enum_value(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def add_exclusion_constraint(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def add_foreign_key(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def add_index(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def add_reference(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def add_timestamps(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def add_unique_constraint(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def change_column(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def change_column_comment(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def change_column_default(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def change_column_null(*args, **_arg1, &block); end # source://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 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def change_table_comment(*args, **_arg1, &block); end # Returns the value of attribute commands. @@ -25996,19 +26176,19 @@ class ActiveRecord::Migration::CommandRecorder # source://activerecord//lib/active_record/migration/command_recorder.rb#65 def commands=(_arg0); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def create_enum(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def create_join_table(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def create_schema(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def create_table(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def create_virtual_table(*args, **_arg1, &block); end # Returns the value of attribute delegate. @@ -26023,31 +26203,31 @@ class ActiveRecord::Migration::CommandRecorder # source://activerecord//lib/active_record/migration/command_recorder.rb#65 def delegate=(_arg0); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def disable_extension(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def drop_enum(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def drop_join_table(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def drop_schema(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def drop_table(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def drop_virtual_table(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def enable_extension(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def execute(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def execute_block(*args, **_arg1, &block); end # Returns the inverse of the given command. For example: @@ -26068,10 +26248,10 @@ class ActiveRecord::Migration::CommandRecorder # source://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 + # source://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 + # source://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. @@ -26082,49 +26262,49 @@ class ActiveRecord::Migration::CommandRecorder # source://activerecord//lib/active_record/migration/command_recorder.rb#94 def record(*command, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#134 def remove_belongs_to(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def remove_check_constraint(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def remove_column(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def remove_columns(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def remove_exclusion_constraint(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def remove_foreign_key(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def remove_index(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def remove_reference(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def remove_timestamps(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def remove_unique_constraint(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def rename_column(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def rename_enum(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def rename_enum_value(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def rename_index(*args, **_arg1, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def rename_table(*args, **_arg1, &block); end # source://activerecord//lib/active_record/migration/command_recorder.rb#148 @@ -26153,7 +26333,7 @@ class ActiveRecord::Migration::CommandRecorder # source://activerecord//lib/active_record/migration/command_recorder.rb#65 def reverting=(_arg0); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 + # source://activerecord//lib/active_record/migration/command_recorder.rb#126 def transaction(*args, **_arg1, &block); end private @@ -26262,91 +26442,91 @@ ActiveRecord::Migration::CommandRecorder::ReversibleAndIrreversibleMethods = T.l # source://activerecord//lib/active_record/migration/command_recorder.rb#155 module ActiveRecord::Migration::CommandRecorder::StraightReversions - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://activerecord//lib/active_record/migration/command_recorder.rb#175 def invert_remove_unique_constraint(args, &block); end end @@ -26360,7 +26540,7 @@ end # source://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 + # source://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 @@ -26388,7 +26568,7 @@ end # source://activerecord//lib/active_record/migration/compatibility.rb#417 module ActiveRecord::Migration::Compatibility::V4_2::TableDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#418 + # source://activerecord//lib/active_record/migration/compatibility.rb#422 def belongs_to(*_arg0, **options); end # source://activerecord//lib/active_record/migration/compatibility.rb#418 @@ -26405,7 +26585,7 @@ end # source://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 + # source://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 @@ -26428,7 +26608,7 @@ end # source://activerecord//lib/active_record/migration/compatibility.rb#348 module ActiveRecord::Migration::Compatibility::V5_0::TableDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#354 + # source://activerecord//lib/active_record/migration/compatibility.rb#357 def belongs_to(*args, **options); end # source://activerecord//lib/active_record/migration/compatibility.rb#349 @@ -26497,7 +26677,7 @@ end # source://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 + # source://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 @@ -26517,7 +26697,7 @@ end # source://activerecord//lib/active_record/migration/compatibility.rb#234 module ActiveRecord::Migration::Compatibility::V6_0::TableDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#235 + # source://activerecord//lib/active_record/migration/compatibility.rb#239 def belongs_to(*args, **options); end # source://activerecord//lib/active_record/migration/compatibility.rb#241 @@ -26575,7 +26755,7 @@ end 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 + # source://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 @@ -26757,22 +26937,35 @@ class ActiveRecord::Migration::ReversibleBlockHelper < ::Struct # Returns the value of attribute reverting # # @return [Object] the current value of reverting + # + # source://activerecord//lib/active_record/migration.rb#873 def reverting; end # Sets the attribute reverting # # @param value [Object] the value to set the attribute reverting to. # @return [Object] the newly set value + # + # source://activerecord//lib/active_record/migration.rb#873 def reverting=(_); end # source://activerecord//lib/active_record/migration.rb#874 def up; end class << self + # source://activerecord//lib/active_record/migration.rb#873 def [](*_arg0); end + + # source://activerecord//lib/active_record/migration.rb#873 def inspect; end + + # source://activerecord//lib/active_record/migration.rb#873 def keyword_init?; end + + # source://activerecord//lib/active_record/migration.rb#873 def members; end + + # source://activerecord//lib/active_record/migration.rb#873 def new(*_arg0); end end end @@ -26935,12 +27128,16 @@ class ActiveRecord::MigrationProxy < ::Struct # Returns the value of attribute filename # # @return [Object] the current value of filename + # + # source://activerecord//lib/active_record/migration.rb#1177 def filename; end # Sets the attribute filename # # @param value [Object] the value to set the attribute filename to. # @return [Object] the newly set value + # + # source://activerecord//lib/active_record/migration.rb#1177 def filename=(_); end # source://activerecord//lib/active_record/migration.rb#1187 @@ -26949,34 +27146,46 @@ class ActiveRecord::MigrationProxy < ::Struct # Returns the value of attribute name # # @return [Object] the current value of name + # + # source://activerecord//lib/active_record/migration.rb#1177 def name; end # Sets the attribute name # # @param value [Object] the value to set the attribute name to. # @return [Object] the newly set value + # + # source://activerecord//lib/active_record/migration.rb#1177 def name=(_); end # Returns the value of attribute scope # # @return [Object] the current value of scope + # + # source://activerecord//lib/active_record/migration.rb#1177 def scope; end # Sets the attribute scope # # @param value [Object] the value to set the attribute scope to. # @return [Object] the newly set value + # + # source://activerecord//lib/active_record/migration.rb#1177 def scope=(_); end # Returns the value of attribute version # # @return [Object] the current value of version + # + # source://activerecord//lib/active_record/migration.rb#1177 def version; end # Sets the attribute version # # @param value [Object] the value to set the attribute version to. # @return [Object] the newly set value + # + # source://activerecord//lib/active_record/migration.rb#1177 def version=(_); end # source://activerecord//lib/active_record/migration.rb#1187 @@ -26991,10 +27200,19 @@ class ActiveRecord::MigrationProxy < ::Struct def migration; end class << self + # source://activerecord//lib/active_record/migration.rb#1177 def [](*_arg0); end + + # source://activerecord//lib/active_record/migration.rb#1177 def inspect; end + + # source://activerecord//lib/active_record/migration.rb#1177 def keyword_init?; end + + # source://activerecord//lib/active_record/migration.rb#1177 def members; end + + # source://activerecord//lib/active_record/migration.rb#1177 def new(*_arg0); end end end @@ -27006,7 +27224,7 @@ class ActiveRecord::Migrator # source://activerecord//lib/active_record/migration.rb#1421 def initialize(direction, migrations, schema_migration, internal_metadata, target_version = T.unsafe(nil)); end - # source://activerecord//lib/active_record/migration.rb#1439 + # source://activerecord//lib/active_record/migration.rb#1442 def current; end # source://activerecord//lib/active_record/migration.rb#1439 @@ -28071,23 +28289,23 @@ class ActiveRecord::NoDatabaseError < ::ActiveRecord::StatementInvalid # source://activerecord//lib/active_record/errors.rb#335 def initialize(message = T.unsafe(nil), connection_pool: T.unsafe(nil)); end - # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 + # source://activerecord//lib/active_record/errors.rb#329 def _actions; end - # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 + # source://activerecord//lib/active_record/errors.rb#329 def _actions=(_arg0); end - # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 + # source://activerecord//lib/active_record/errors.rb#329 def _actions?; end class << self - # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 + # source://activerecord//lib/active_record/errors.rb#329 def _actions; end - # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 + # source://activerecord//lib/active_record/errors.rb#329 def _actions=(value); end - # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 + # source://activerecord//lib/active_record/errors.rb#329 def _actions?; end # source://activerecord//lib/active_record/errors.rb#340 @@ -28095,10 +28313,10 @@ class ActiveRecord::NoDatabaseError < ::ActiveRecord::StatementInvalid private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/errors.rb#329 def __class_attr__actions; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/errors.rb#329 def __class_attr__actions=(new_value); end end end @@ -28314,12 +28532,13 @@ class ActiveRecord::Normalization::NormalizedValueType # source://activerecord//lib/active_record/normalization.rb#121 def cast_type; end - # source://activerecord//lib/active_record/normalization.rb#143 + # source://activerecord//lib/active_record/normalization.rb#149 def eql?(other); end # source://activerecord//lib/active_record/normalization.rb#151 def hash; end + # source://activerecord//lib/active_record/normalization.rb#155 def inspect; end # Returns the value of attribute normalize_nil. @@ -28329,7 +28548,7 @@ class ActiveRecord::Normalization::NormalizedValueType # Returns the value of attribute normalize_nil. # - # source://activerecord//lib/active_record/normalization.rb#121 + # source://activerecord//lib/active_record/normalization.rb#122 def normalize_nil?; end # Returns the value of attribute normalizer. @@ -28380,13 +28599,13 @@ class ActiveRecord::PendingMigrationError < ::ActiveRecord::MigrationError # source://activerecord//lib/active_record/migration.rb#159 def initialize(message = T.unsafe(nil), pending_migrations: T.unsafe(nil)); end - # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 + # source://activerecord//lib/active_record/migration.rb#148 def _actions; end - # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 + # source://activerecord//lib/active_record/migration.rb#148 def _actions=(_arg0); end - # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 + # source://activerecord//lib/active_record/migration.rb#148 def _actions?; end private @@ -28398,21 +28617,21 @@ class ActiveRecord::PendingMigrationError < ::ActiveRecord::MigrationError def detailed_migration_message(pending_migrations); end class << self - # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 + # source://activerecord//lib/active_record/migration.rb#148 def _actions; end - # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 + # source://activerecord//lib/active_record/migration.rb#148 def _actions=(value); end - # source://activesupport/8.0.2/lib/active_support/actionable_error.rb#17 + # source://activerecord//lib/active_record/migration.rb#148 def _actions?; end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activerecord//lib/active_record/migration.rb#148 def __class_attr__actions; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activerecord//lib/active_record/migration.rb#148 def __class_attr__actions=(new_value); end end end @@ -29314,35 +29533,54 @@ class ActiveRecord::PredicateBuilder::RangeHandler::RangeWithBinds < ::Struct # Returns the value of attribute begin # # @return [Object] the current value of begin + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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? + # + # source://activerecord//lib/active_record/relation/predicate_builder/range_handler.rb#6 def exclude_end?; end class << self + # source://activerecord//lib/active_record/relation/predicate_builder/range_handler.rb#6 def [](*_arg0); end + + # source://activerecord//lib/active_record/relation/predicate_builder/range_handler.rb#6 def inspect; end + + # source://activerecord//lib/active_record/relation/predicate_builder/range_handler.rb#6 def keyword_init?; end + + # source://activerecord//lib/active_record/relation/predicate_builder/range_handler.rb#6 def members; end + + # source://activerecord//lib/active_record/relation/predicate_builder/range_handler.rb#6 def new(*_arg0); end end end @@ -29377,11 +29615,13 @@ class ActiveRecord::Promise < ::BasicObject # source://activerecord//lib/active_record/promise.rb#7 def initialize(future_result, block); end + # source://activerecord//lib/active_record/promise.rb#41 def class; end # source://activerecord//lib/active_record/promise.rb#44 def inspect; end + # source://activerecord//lib/active_record/promise.rb#41 def is_a?(_arg0); end # Returns whether the associated query is still being executed or not. @@ -29394,6 +29634,7 @@ class ActiveRecord::Promise < ::BasicObject # source://activerecord//lib/active_record/promise.rb#48 def pretty_print(q); end + # source://activerecord//lib/active_record/promise.rb#41 def respond_to?(*_arg0); end # Returns a new +ActiveRecord::Promise+ that will apply the passed block @@ -29573,10 +29814,10 @@ module ActiveRecord::QueryLogs # source://activerecord//lib/active_record/query_logs.rb#115 def cache_query_log_tags=(_arg0); end - # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activerecord//lib/active_record/query_logs.rb#111 def cached_comment; end - # source://activesupport/8.0.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activerecord//lib/active_record/query_logs.rb#111 def cached_comment=(obj); end # source://activerecord//lib/active_record/query_logs.rb#139 @@ -29740,10 +29981,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1535 def annotate!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def annotate_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def annotate_values=(value); end # Returns the Arel object associated with the relation. @@ -29774,10 +30015,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1350 def create_with!(value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def create_with_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://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: @@ -29799,10 +30040,10 @@ module ActiveRecord::QueryMethods # source://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 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def distinct_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://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. @@ -29838,10 +30079,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#295 def eager_load!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def eager_load_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://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 @@ -29920,13 +30161,13 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1464 def extending!(*modules, &block); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def extending_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def extending_values=(value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://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, @@ -29979,10 +30220,10 @@ module ActiveRecord::QueryMethods # source://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 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def from_clause; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def from_clause=(value); end # Allows to specify a group attribute: @@ -30012,10 +30253,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#578 def group!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def group_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://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 @@ -30029,10 +30270,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1201 def having!(opts, *rest); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def having_clause; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def having_clause=(value); end # Applies an ORDER BY clause based on a given +column+, @@ -30156,10 +30397,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#255 def includes!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def includes_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://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. @@ -30232,10 +30473,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#873 def joins!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def joins_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def joins_values=(value); end # Performs LEFT OUTER JOINs on +args+: @@ -30243,7 +30484,7 @@ 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 + # source://activerecord//lib/active_record/relation/query_methods.rb#887 def left_joins(*args); end # Performs LEFT OUTER JOINs on +args+: @@ -30257,10 +30498,10 @@ module ActiveRecord::QueryMethods # source://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 + # source://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 + # source://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. @@ -30275,10 +30516,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1215 def limit!(value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def limit_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def limit_value=(value); end # Specifies locking settings (default to +true+). For more information @@ -30290,10 +30531,10 @@ module ActiveRecord::QueryMethods # source://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 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def lock_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def lock_value=(value); end # Returns a chainable relation with zero records. @@ -30349,10 +30590,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1231 def offset!(value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def offset_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def offset_value=(value); end # Specify optimizer hints to be used in the SELECT statement. @@ -30373,10 +30614,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1490 def optimizer_hints!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def optimizer_hints_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://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 @@ -30456,10 +30697,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#664 def order!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def order_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def order_values=(value); end # Specify associations +args+ to be eager loaded using separate queries. @@ -30491,10 +30732,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#327 def preload!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def preload_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://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 @@ -30516,10 +30757,10 @@ module ActiveRecord::QueryMethods # source://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 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def readonly_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://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, @@ -30539,10 +30780,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#360 def references!(*table_names); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def references_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def references_values=(value); end # Allows you to change a previously set group statement. @@ -30582,10 +30823,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#760 def reorder!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def reordering_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def reordering_value=(value); end # Allows you to change a previously set select statement. @@ -30617,10 +30858,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1502 def reverse_order!; end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def reverse_order_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://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. @@ -30692,10 +30933,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#413 def select(*fields); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def select_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def select_values=(value); end # source://activerecord//lib/active_record/relation/query_methods.rb#1513 @@ -30704,10 +30945,10 @@ module ActiveRecord::QueryMethods # source://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 + # source://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 + # source://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 @@ -30723,10 +30964,10 @@ module ActiveRecord::QueryMethods # source://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 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def strict_loading_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://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 @@ -30789,10 +31030,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#811 def unscope!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def unscope_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://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 @@ -30941,10 +31182,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1043 def where!(opts, *rest); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def where_clause; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://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. @@ -31039,10 +31280,10 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#524 def with_recursive!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation/query_methods.rb#173 def with_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # source://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 @@ -31072,7 +31313,7 @@ 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 + # source://activerecord//lib/active_record/relation/query_methods.rb#1585 def without(*records); end protected @@ -31083,7 +31324,7 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1656 def async!; end - # source://activerecord//lib/active_record/relation/query_methods.rb#1613 + # source://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 @@ -31991,7 +32232,7 @@ module ActiveRecord::Reflection private - # source://activestorage/8.0.2/lib/active_storage/reflection.rb#37 + # source://activerecord//lib/active_record/reflection.rb#34 def reflection_class_for(macro); end end @@ -32112,7 +32353,7 @@ class ActiveRecord::Reflection::AbstractReflection # # Hence this method. # - # source://activerecord//lib/active_record/reflection.rb#285 + # source://activerecord//lib/active_record/reflection.rb#297 def inverse_updates_counter_cache?; end # @return [Boolean] @@ -33073,7 +33314,7 @@ class ActiveRecord::Relation # user = users.new { |user| user.name = 'Oscar' } # user.name # => Oscar # - # source://activerecord//lib/active_record/relation.rb#125 + # source://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. @@ -33599,7 +33840,7 @@ class ActiveRecord::Relation # Returns the value of attribute model. # - # source://activerecord//lib/active_record/relation.rb#71 + # source://activerecord//lib/active_record/relation.rb#73 def klass; end # Causes the records to be loaded from the database if they have not @@ -33638,10 +33879,10 @@ class ActiveRecord::Relation # Returns the value of attribute loaded. # - # source://activerecord//lib/active_record/relation.rb#71 + # source://activerecord//lib/active_record/relation.rb#74 def loaded?; end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # source://activerecord//lib/active_record/relation.rb#75 def locked?; end # Returns true if there is more than one record. @@ -33779,7 +34020,7 @@ class ActiveRecord::Relation # Converts relation objects to Array. # - # source://activerecord//lib/active_record/relation.rb#337 + # source://activerecord//lib/active_record/relation.rb#340 def to_a; end # Converts relation objects to Array. @@ -34262,7 +34503,7 @@ class ActiveRecord::Relation::QueryAttribute < ::ActiveModel::Attribute # source://activerecord//lib/active_record/relation/query_attribute.rb#53 def ==(other); end - # source://activerecord//lib/active_record/relation/query_attribute.rb#53 + # source://activerecord//lib/active_record/relation/query_attribute.rb#56 def eql?(other); end # source://activerecord//lib/active_record/relation/query_attribute.rb#58 @@ -34349,7 +34590,7 @@ class ActiveRecord::Relation::WhereClause # source://activerecord//lib/active_record/relation/where_clause.rb#8 def empty?(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/relation/where_clause.rb#75 + # source://activerecord//lib/active_record/relation/where_clause.rb#79 def eql?(other); end # source://activerecord//lib/active_record/relation/where_clause.rb#32 @@ -34542,7 +34783,7 @@ class ActiveRecord::Result # Returns an array of hashes representing each row record. # - # source://activerecord//lib/active_record/result.rb#142 + # source://activerecord//lib/active_record/result.rb#146 def to_a; end # Returns an array of hashes representing each row record. @@ -34603,7 +34844,7 @@ class ActiveRecord::Result::IndexedRow # source://activerecord//lib/active_record/result.rb#54 def keys; end - # source://activerecord//lib/active_record/result.rb#45 + # source://activerecord//lib/active_record/result.rb#48 def length; end # source://activerecord//lib/active_record/result.rb#45 @@ -34612,7 +34853,7 @@ class ActiveRecord::Result::IndexedRow # source://activerecord//lib/active_record/result.rb#86 def to_h; end - # source://activerecord//lib/active_record/result.rb#86 + # source://activerecord//lib/active_record/result.rb#89 def to_hash; end end @@ -34765,7 +35006,7 @@ module ActiveRecord::Sanitization::ClassMethods # sanitize_sql_for_conditions(["role = ?", 0]) # # => "role = '0'" # - # source://activerecord//lib/active_record/sanitization.rb#33 + # source://activerecord//lib/active_record/sanitization.rb#41 def sanitize_sql(condition); end # Accepts an array of conditions. The array has each value @@ -35175,6 +35416,7 @@ class ActiveRecord::SchemaDumper # source://activerecord//lib/active_record/schema_dumper.rb#52 def generate_options(config); end + # source://activerecord//lib/active_record/schema_dumper.rb#11 def new(*_arg0); end end end @@ -36515,7 +36757,7 @@ class ActiveRecord::TableMetadata # source://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 + # source://activerecord//lib/active_record/table_metadata.rb#68 def aggregated_with?(aggregation_name); end # Returns the value of attribute arel_table. @@ -37578,34 +37820,46 @@ class ActiveRecord::TokenFor::TokenDefinition < ::Struct # Returns the value of attribute block # # @return [Object] the current value of block + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://activerecord//lib/active_record/token_for.rb#14 def expires_in=(_); end # source://activerecord//lib/active_record/token_for.rb#15 @@ -37623,22 +37877,35 @@ class ActiveRecord::TokenFor::TokenDefinition < ::Struct # Returns the value of attribute purpose # # @return [Object] the current value of purpose + # + # source://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 + # + # source://activerecord//lib/active_record/token_for.rb#14 def purpose=(_); end # source://activerecord//lib/active_record/token_for.rb#31 def resolve_token(token); end class << self + # source://activerecord//lib/active_record/token_for.rb#14 def [](*_arg0); end + + # source://activerecord//lib/active_record/token_for.rb#14 def inspect; end + + # source://activerecord//lib/active_record/token_for.rb#14 def keyword_init?; end + + # source://activerecord//lib/active_record/token_for.rb#14 def members; end + + # source://activerecord//lib/active_record/token_for.rb#14 def new(*_arg0); end end end @@ -37780,7 +38047,7 @@ class ActiveRecord::Transaction # # @return [Boolean] # - # source://activerecord//lib/active_record/transaction.rb#117 + # source://activerecord//lib/active_record/transaction.rb#121 def blank?; end # Returns true if the transaction doesn't exist or is finalized. @@ -38594,6 +38861,7 @@ class ActiveRecord::Type::Serialized # source://activerecord//lib/active_record/type/serialized.rb#52 def force_equality?(value); end + # source://activerecord//lib/active_record/type/serialized.rb#33 def inspect; end # source://activerecord//lib/active_record/type/serialized.rb#26 @@ -38814,7 +39082,7 @@ ActiveRecord::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) ActiveRecord::VERSION::MINOR = T.let(T.unsafe(nil), Integer) # source://activerecord//lib/active_record/gem_version.rb#13 -ActiveRecord::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) +ActiveRecord::VERSION::PRE = T.let(T.unsafe(nil), String) # source://activerecord//lib/active_record/gem_version.rb#15 ActiveRecord::VERSION::STRING = T.let(T.unsafe(nil), String) @@ -38890,7 +39158,7 @@ module ActiveRecord::Validations # # @return [Boolean] # - # source://activerecord//lib/active_record/validations.rb#69 + # source://activerecord//lib/active_record/validations.rb#75 def validate(context = T.unsafe(nil)); end private @@ -39033,7 +39301,7 @@ module ActiveRecord::Validations::ClassMethods # # See ActiveModel::Validations::HelperMethods.validates_length_of for more information. # - # source://activerecord//lib/active_record/validations/length.rb#19 + # source://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 @@ -39127,24 +39395,13 @@ module ActiveRecord::Validations::ClassMethods # SELECT * FROM comments | # WHERE title = 'My Post' | # | - # | # User 2 does the same thing and also - # | # infers that their title is unique. - # | SELECT * FROM comments - # | WHERE title = 'My Post' # | # # User 1 inserts their comment. | # INSERT INTO comments | # (title, content) VALUES | # ('My Post', 'hi!') | # | - # | # User 2 does the same thing. - # | INSERT INTO comments - # | (title, content) VALUES - # | ('My Post', 'hello!') # | - # | # ^^^^^^ - # | # Boom! We now have a duplicate - # | # title! # # The best way to work around this problem is to add a unique index to the database table using # {connection.add_index}[rdoc-ref:ConnectionAdapters::SchemaStatements#add_index]. @@ -39775,7 +40032,7 @@ class Arel::Nodes::Binary < ::Arel::Nodes::NodeExpression # @return [Boolean] # - # source://activerecord//lib/arel/nodes/binary.rb#24 + # source://activerecord//lib/arel/nodes/binary.rb#29 def ==(other); end # @return [Boolean] @@ -39825,7 +40082,7 @@ class Arel::Nodes::BindParam < ::Arel::Nodes::Node # @return [Boolean] # - # source://activerecord//lib/arel/nodes/bind_param.rb#17 + # source://activerecord//lib/arel/nodes/bind_param.rb#21 def ==(other); end # @return [Boolean] @@ -39922,7 +40179,7 @@ class Arel::Nodes::BoundSqlLiteral < ::Arel::Nodes::NodeExpression # @return [Boolean] # - # source://activerecord//lib/arel/nodes/bound_sql_literal.rb#46 + # source://activerecord//lib/arel/nodes/bound_sql_literal.rb#52 def ==(other); end # @return [Boolean] @@ -39961,7 +40218,7 @@ class Arel::Nodes::Case < ::Arel::Nodes::NodeExpression # @return [Boolean] # - # source://activerecord//lib/arel/nodes/case.rb#40 + # source://activerecord//lib/arel/nodes/case.rb#46 def ==(other); end # Returns the value of attribute case. @@ -40032,7 +40289,7 @@ class Arel::Nodes::Casted < ::Arel::Nodes::NodeExpression # @return [Boolean] # - # source://activerecord//lib/arel/nodes/casted.rb#29 + # source://activerecord//lib/arel/nodes/casted.rb#34 def ==(other); end # Returns the value of attribute attribute. @@ -40060,7 +40317,7 @@ class Arel::Nodes::Casted < ::Arel::Nodes::NodeExpression # Returns the value of attribute value. # - # source://activerecord//lib/arel/nodes/casted.rb#6 + # source://activerecord//lib/arel/nodes/casted.rb#7 def value_before_type_cast; end # source://activerecord//lib/arel/nodes/casted.rb#17 @@ -40076,7 +40333,7 @@ class Arel::Nodes::Comment < ::Arel::Nodes::Node # @return [Boolean] # - # source://activerecord//lib/arel/nodes/comment.rb#22 + # source://activerecord//lib/arel/nodes/comment.rb#26 def ==(other); end # @return [Boolean] @@ -40131,7 +40388,7 @@ class Arel::Nodes::Cte < ::Arel::Nodes::Binary # @return [Boolean] # - # source://activerecord//lib/arel/nodes/cte.rb#19 + # source://activerecord//lib/arel/nodes/cte.rb#25 def ==(other); end # @return [Boolean] @@ -40147,10 +40404,10 @@ class Arel::Nodes::Cte < ::Arel::Nodes::Binary # source://activerecord//lib/arel/nodes/cte.rb#8 def materialized; end - # source://activerecord//lib/arel/nodes/binary.rb#6 + # source://activerecord//lib/arel/nodes/cte.rb#6 def name; end - # source://activerecord//lib/arel/nodes/binary.rb#6 + # source://activerecord//lib/arel/nodes/cte.rb#7 def relation; end # source://activerecord//lib/arel/nodes/cte.rb#27 @@ -40167,7 +40424,7 @@ class Arel::Nodes::Cube < ::Arel::Nodes::Unary; end class Arel::Nodes::CurrentRow < ::Arel::Nodes::Node # @return [Boolean] # - # source://activerecord//lib/arel/nodes/window.rb#108 + # source://activerecord//lib/arel/nodes/window.rb#111 def ==(other); end # @return [Boolean] @@ -40188,7 +40445,7 @@ class Arel::Nodes::DeleteStatement < ::Arel::Nodes::Node # @return [Boolean] # - # source://activerecord//lib/arel/nodes/delete_statement.rb#30 + # source://activerecord//lib/arel/nodes/delete_statement.rb#41 def ==(other); end # @return [Boolean] @@ -40324,7 +40581,7 @@ end class Arel::Nodes::Distinct < ::Arel::Nodes::NodeExpression # @return [Boolean] # - # source://activerecord//lib/arel/nodes/terminal.rb#10 + # source://activerecord//lib/arel/nodes/terminal.rb#13 def ==(other); end # @return [Boolean] @@ -40381,7 +40638,7 @@ class Arel::Nodes::Extract < ::Arel::Nodes::Unary # @return [Boolean] # - # source://activerecord//lib/arel/nodes/extract.rb#17 + # source://activerecord//lib/arel/nodes/extract.rb#21 def ==(other); end # @return [Boolean] @@ -40409,7 +40666,7 @@ end class Arel::Nodes::False < ::Arel::Nodes::NodeExpression # @return [Boolean] # - # source://activerecord//lib/arel/nodes/false.rb#10 + # source://activerecord//lib/arel/nodes/false.rb#13 def ==(other); end # @return [Boolean] @@ -40454,7 +40711,7 @@ class Arel::Nodes::Fragments < ::Arel::Nodes::Node # @return [Boolean] # - # source://activerecord//lib/arel/nodes/fragments.rb#28 + # source://activerecord//lib/arel/nodes/fragments.rb#32 def ==(other); end # @return [Boolean] @@ -40491,7 +40748,7 @@ class Arel::Nodes::Function < ::Arel::Nodes::NodeExpression # @return [Boolean] # - # source://activerecord//lib/arel/nodes/function.rb#26 + # source://activerecord//lib/arel/nodes/function.rb#32 def ==(other); end # Returns the value of attribute alias. @@ -40582,7 +40839,7 @@ class Arel::Nodes::HomogeneousIn < ::Arel::Nodes::Node # @return [Boolean] # - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#18 + # source://activerecord//lib/arel/nodes/homogeneous_in.rb#21 def ==(other); end # Returns the value of attribute attribute. @@ -40675,7 +40932,7 @@ class Arel::Nodes::InsertStatement < ::Arel::Nodes::Node # @return [Boolean] # - # source://activerecord//lib/arel/nodes/insert_statement.rb#27 + # source://activerecord//lib/arel/nodes/insert_statement.rb#34 def ==(other); end # Returns the value of attribute columns. @@ -40855,7 +41112,7 @@ class Arel::Nodes::NamedFunction < ::Arel::Nodes::Function # @return [Boolean] # - # source://activerecord//lib/arel/nodes/named_function.rb#17 + # source://activerecord//lib/arel/nodes/named_function.rb#20 def ==(other); end # @return [Boolean] @@ -40888,7 +41145,7 @@ class Arel::Nodes::NamedWindow < ::Arel::Nodes::Window # @return [Boolean] # - # source://activerecord//lib/arel/nodes/window.rb#85 + # source://activerecord//lib/arel/nodes/window.rb#88 def ==(other); end # @return [Boolean] @@ -40926,7 +41183,7 @@ class Arel::Nodes::Nary < ::Arel::Nodes::NodeExpression # @return [Boolean] # - # source://activerecord//lib/arel/nodes/nary.rb#29 + # source://activerecord//lib/arel/nodes/nary.rb#33 def ==(other); end # Returns the value of attribute children. @@ -41212,10 +41469,10 @@ class Arel::Nodes::Quoted < ::Arel::Nodes::Unary # source://activerecord//lib/arel/nodes/casted.rb#41 def nil?; end - # source://activerecord//lib/arel/nodes/unary.rb#6 + # source://activerecord//lib/arel/nodes/casted.rb#39 def value_before_type_cast; end - # source://activerecord//lib/arel/nodes/unary.rb#6 + # source://activerecord//lib/arel/nodes/casted.rb#38 def value_for_database; end end @@ -41270,7 +41527,7 @@ class Arel::Nodes::SelectCore < ::Arel::Nodes::Node # @return [Boolean] # - # source://activerecord//lib/arel/nodes/select_core.rb#52 + # source://activerecord//lib/arel/nodes/select_core.rb#64 def ==(other); end # Returns the value of attribute comment. @@ -41296,10 +41553,10 @@ class Arel::Nodes::SelectCore < ::Arel::Nodes::Node # source://activerecord//lib/arel/nodes/select_core.rb#28 def from=(value); end - # source://activerecord//lib/arel/nodes/select_core.rb#24 + # source://activerecord//lib/arel/nodes/select_core.rb#33 def froms; end - # source://activerecord//lib/arel/nodes/select_core.rb#28 + # source://activerecord//lib/arel/nodes/select_core.rb#32 def froms=(value); end # Returns the value of attribute groups. @@ -41416,7 +41673,7 @@ class Arel::Nodes::SelectStatement < ::Arel::Nodes::NodeExpression # @return [Boolean] # - # source://activerecord//lib/arel/nodes/select_statement.rb#29 + # source://activerecord//lib/arel/nodes/select_statement.rb#38 def ==(other); end # Returns the value of attribute cores. @@ -41556,13 +41813,13 @@ class Arel::Nodes::TableAlias < ::Arel::Nodes::Binary # source://activerecord//lib/arel/nodes/table_alias.rb#26 def able_to_type_cast?; end - # source://activerecord//lib/arel/nodes/binary.rb#6 + # source://activerecord//lib/arel/nodes/table_alias.rb#6 def name; end - # source://activerecord//lib/arel/nodes/binary.rb#6 + # source://activerecord//lib/arel/nodes/table_alias.rb#7 def relation; end - # source://activerecord//lib/arel/nodes/binary.rb#6 + # source://activerecord//lib/arel/nodes/table_alias.rb#8 def table_alias; end # source://activerecord//lib/arel/nodes/table_alias.rb#14 @@ -41582,7 +41839,7 @@ end class Arel::Nodes::True < ::Arel::Nodes::NodeExpression # @return [Boolean] # - # source://activerecord//lib/arel/nodes/true.rb#10 + # source://activerecord//lib/arel/nodes/true.rb#13 def ==(other); end # @return [Boolean] @@ -41603,7 +41860,7 @@ class Arel::Nodes::Unary < ::Arel::Nodes::NodeExpression # @return [Boolean] # - # source://activerecord//lib/arel/nodes/unary.rb#18 + # source://activerecord//lib/arel/nodes/unary.rb#22 def ==(other); end # @return [Boolean] @@ -41628,7 +41885,7 @@ class Arel::Nodes::Unary < ::Arel::Nodes::NodeExpression # Returns the value of attribute expr. # - # source://activerecord//lib/arel/nodes/unary.rb#6 + # source://activerecord//lib/arel/nodes/unary.rb#7 def value; end end @@ -41653,10 +41910,10 @@ class Arel::Nodes::UnionAll < ::Arel::Nodes::Binary; end # source://activerecord//lib/arel/nodes/unqualified_column.rb#5 class Arel::Nodes::UnqualifiedColumn < ::Arel::Nodes::Unary - # source://activerecord//lib/arel/nodes/unary.rb#6 + # source://activerecord//lib/arel/nodes/unqualified_column.rb#6 def attribute; end - # source://activerecord//lib/arel/nodes/unary.rb#6 + # source://activerecord//lib/arel/nodes/unqualified_column.rb#7 def attribute=(_arg0); end # source://activerecord//lib/arel/nodes/unqualified_column.rb#13 @@ -41678,7 +41935,7 @@ class Arel::Nodes::UpdateStatement < ::Arel::Nodes::Node # @return [Boolean] # - # source://activerecord//lib/arel/nodes/update_statement.rb#31 + # source://activerecord//lib/arel/nodes/update_statement.rb#43 def ==(other); end # @return [Boolean] @@ -41805,7 +42062,7 @@ end # source://activerecord//lib/arel/nodes/values_list.rb#5 class Arel::Nodes::ValuesList < ::Arel::Nodes::Unary - # source://activerecord//lib/arel/nodes/unary.rb#6 + # source://activerecord//lib/arel/nodes/values_list.rb#6 def rows; end end @@ -41821,7 +42078,7 @@ class Arel::Nodes::Window < ::Arel::Nodes::Node # @return [Boolean] # - # source://activerecord//lib/arel/nodes/window.rb#59 + # source://activerecord//lib/arel/nodes/window.rb#65 def ==(other); end # @return [Boolean] @@ -41891,7 +42148,7 @@ end # source://activerecord//lib/arel/nodes/with.rb#5 class Arel::Nodes::With < ::Arel::Nodes::Unary - # source://activerecord//lib/arel/nodes/unary.rb#6 + # source://activerecord//lib/arel/nodes/with.rb#6 def children; end end @@ -42118,7 +42375,7 @@ class Arel::SelectManager < ::Arel::TreeManager # source://activerecord//lib/arel/select_manager.rb#19 def limit; end - # source://activerecord//lib/arel/select_manager.rb#234 + # source://activerecord//lib/arel/select_manager.rb#242 def limit=(limit); end # source://activerecord//lib/arel/select_manager.rb#52 @@ -42127,13 +42384,13 @@ class Arel::SelectManager < ::Arel::TreeManager # source://activerecord//lib/arel/select_manager.rb#65 def locked; end - # source://activerecord//lib/arel/select_manager.rb#213 + # source://activerecord//lib/arel/select_manager.rb#216 def minus(other); end # source://activerecord//lib/arel/select_manager.rb#28 def offset; end - # source://activerecord//lib/arel/select_manager.rb#32 + # source://activerecord//lib/arel/select_manager.rb#40 def offset=(amount); end # source://activerecord//lib/arel/select_manager.rb#69 @@ -42169,7 +42426,7 @@ class Arel::SelectManager < ::Arel::TreeManager # source://activerecord//lib/arel/select_manager.rb#234 def take(limit); end - # source://activerecord//lib/arel/select_manager.rb#19 + # source://activerecord//lib/arel/select_manager.rb#22 def taken; end # source://activerecord//lib/arel/select_manager.rb#198 @@ -42211,7 +42468,7 @@ class Arel::Table # @return [Boolean] # - # source://activerecord//lib/arel/table.rb#95 + # source://activerecord//lib/arel/table.rb#100 def ==(other); end # source://activerecord//lib/arel/table.rb#82 @@ -42413,7 +42670,7 @@ class Arel::Visitors::Dot < ::Arel::Visitors::Visitor # source://activerecord//lib/arel/visitors/dot.rb#183 def visit_Arel_Attributes_Attribute(o); end - # source://activerecord//lib/arel/visitors/dot.rb#188 + # source://activerecord//lib/arel/visitors/dot.rb#193 def visit_Arel_Nodes_And(o); end # source://activerecord//lib/arel/visitors/dot.rb#44 @@ -42436,13 +42693,13 @@ class Arel::Visitors::Dot < ::Arel::Visitors::Visitor # intentionally left blank # - # source://activerecord//lib/arel/visitors/dot.rb#103 + # source://activerecord//lib/arel/visitors/dot.rb#106 def visit_Arel_Nodes_CurrentRow(o); end # source://activerecord//lib/arel/visitors/dot.rb#159 def visit_Arel_Nodes_DeleteStatement(o); end - # source://activerecord//lib/arel/visitors/dot.rb#103 + # source://activerecord//lib/arel/visitors/dot.rb#107 def visit_Arel_Nodes_Distinct(o); end # source://activerecord//lib/arel/visitors/dot.rb#109 @@ -42466,16 +42723,16 @@ class Arel::Visitors::Dot < ::Arel::Visitors::Visitor # source://activerecord//lib/arel/visitors/dot.rb#96 def visit_Arel_Nodes_NamedWindow(o); end - # source://activerecord//lib/arel/visitors/dot.rb#60 + # source://activerecord//lib/arel/visitors/dot.rb#66 def visit_Arel_Nodes_NotRegexp(o); end - # source://activerecord//lib/arel/visitors/dot.rb#188 + # source://activerecord//lib/arel/visitors/dot.rb#194 def visit_Arel_Nodes_Or(o); end # source://activerecord//lib/arel/visitors/dot.rb#68 def visit_Arel_Nodes_Ordering(o); end - # source://activerecord//lib/arel/visitors/dot.rb#60 + # source://activerecord//lib/arel/visitors/dot.rb#65 def visit_Arel_Nodes_Regexp(o); end # source://activerecord//lib/arel/visitors/dot.rb#128 @@ -42484,7 +42741,7 @@ class Arel::Visitors::Dot < ::Arel::Visitors::Visitor # source://activerecord//lib/arel/visitors/dot.rb#140 def visit_Arel_Nodes_SelectStatement(o); end - # source://activerecord//lib/arel/visitors/dot.rb#197 + # source://activerecord//lib/arel/visitors/dot.rb#210 def visit_Arel_Nodes_SqlLiteral(o); end # source://activerecord//lib/arel/visitors/dot.rb#86 @@ -42508,7 +42765,7 @@ class Arel::Visitors::Dot < ::Arel::Visitors::Visitor # source://activerecord//lib/arel/visitors/dot.rb#90 def visit_Arel_Nodes_Window(o); end - # source://activerecord//lib/arel/visitors/dot.rb#188 + # source://activerecord//lib/arel/visitors/dot.rb#195 def visit_Arel_Nodes_With(o); end # source://activerecord//lib/arel/visitors/dot.rb#168 @@ -42517,43 +42774,43 @@ class Arel::Visitors::Dot < ::Arel::Visitors::Visitor # source://activerecord//lib/arel/visitors/dot.rb#226 def visit_Array(o); end - # source://activerecord//lib/arel/visitors/dot.rb#197 + # source://activerecord//lib/arel/visitors/dot.rb#207 def visit_BigDecimal(o); end - # source://activerecord//lib/arel/visitors/dot.rb#197 + # source://activerecord//lib/arel/visitors/dot.rb#201 def visit_Date(o); end - # source://activerecord//lib/arel/visitors/dot.rb#197 + # source://activerecord//lib/arel/visitors/dot.rb#202 def visit_DateTime(o); end - # source://activerecord//lib/arel/visitors/dot.rb#197 + # source://activerecord//lib/arel/visitors/dot.rb#205 def visit_FalseClass(o); end - # source://activerecord//lib/arel/visitors/dot.rb#197 + # source://activerecord//lib/arel/visitors/dot.rb#208 def visit_Float(o); end # source://activerecord//lib/arel/visitors/dot.rb#220 def visit_Hash(o); end - # source://activerecord//lib/arel/visitors/dot.rb#197 + # source://activerecord//lib/arel/visitors/dot.rb#206 def visit_Integer(o); end - # source://activerecord//lib/arel/visitors/dot.rb#197 + # source://activerecord//lib/arel/visitors/dot.rb#203 def visit_NilClass(o); end - # source://activerecord//lib/arel/visitors/dot.rb#226 + # source://activerecord//lib/arel/visitors/dot.rb#231 def visit_Set(o); end # source://activerecord//lib/arel/visitors/dot.rb#197 def visit_String(o); end - # source://activerecord//lib/arel/visitors/dot.rb#197 + # source://activerecord//lib/arel/visitors/dot.rb#209 def visit_Symbol(o); end - # source://activerecord//lib/arel/visitors/dot.rb#197 + # source://activerecord//lib/arel/visitors/dot.rb#200 def visit_Time(o); end - # source://activerecord//lib/arel/visitors/dot.rb#197 + # source://activerecord//lib/arel/visitors/dot.rb#204 def visit_TrueClass(o); end # source://activerecord//lib/arel/visitors/dot.rb#188 @@ -42633,7 +42890,7 @@ class Arel::Visitors::MySQL < ::Arel::Visitors::ToSql # 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 + # source://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 @@ -42840,7 +43097,7 @@ class Arel::Visitors::ToSql < ::Arel::Visitors::Visitor # 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#924 + # source://activerecord//lib/arel/visitors/to_sql.rb#940 def prepare_delete_statement(o); end # The default strategy for an UPDATE with joins is to use a subquery. This doesn't work @@ -42882,12 +43139,12 @@ class Arel::Visitors::ToSql < ::Arel::Visitors::Visitor # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#832 def visit_ActiveSupport_Multibyte_Chars(o, collector); end # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#833 def visit_ActiveSupport_StringInquirer(o, collector); end # source://activerecord//lib/arel/visitors/to_sql.rb#746 @@ -43094,7 +43351,7 @@ class Arel::Visitors::ToSql < ::Arel::Visitors::Visitor # source://activerecord//lib/arel/visitors/to_sql.rb#276 def visit_Arel_Nodes_Preceding(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#87 + # source://activerecord//lib/arel/visitors/to_sql.rb#90 def visit_Arel_Nodes_Quoted(o, collector); end # source://activerecord//lib/arel/visitors/to_sql.rb#267 @@ -43179,37 +43436,37 @@ class Arel::Visitors::ToSql < ::Arel::Visitors::Visitor # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#834 def visit_BigDecimal(o, collector); end # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#835 def visit_Class(o, collector); end # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#836 def visit_Date(o, collector); end # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#837 def visit_DateTime(o, collector); end # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#838 def visit_FalseClass(o, collector); end # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#839 def visit_Float(o, collector); end # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#840 def visit_Hash(o, collector); end # source://activerecord//lib/arel/visitors/to_sql.rb#824 @@ -43217,30 +43474,30 @@ class Arel::Visitors::ToSql < ::Arel::Visitors::Visitor # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#841 def visit_NilClass(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#858 + # source://activerecord//lib/arel/visitors/to_sql.rb#861 def visit_Set(o, collector); end # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#842 def visit_String(o, collector); end # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#843 def visit_Symbol(o, collector); end # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#844 def visit_Time(o, collector); end # @raise [UnsupportedVisitError] # - # source://activerecord//lib/arel/visitors/to_sql.rb#828 + # source://activerecord//lib/arel/visitors/to_sql.rb#845 def visit_TrueClass(o, collector); end end diff --git a/sorbet/rbi/gems/activestorage@8.0.2.rbi b/sorbet/rbi/gems/activestorage@8.0.2.1.rbi similarity index 51% rename from sorbet/rbi/gems/activestorage@8.0.2.rbi rename to sorbet/rbi/gems/activestorage@8.0.2.1.rbi index 8b2f0851..dcc13935 100644 --- a/sorbet/rbi/gems/activestorage@8.0.2.rbi +++ b/sorbet/rbi/gems/activestorage@8.0.2.1.rbi @@ -10,1378 +10,6 @@ class ActiveRecord::Base include ::ActiveModel::AttributeAssignment include ::ActiveModel::Access include ::ActiveModel::Serialization - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _before_commit_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _commit_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _create_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _destroy_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _find_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _initialize_callbacks; end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#11 - def _reflections; end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#11 - def _reflections?; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _rollback_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_before_commit_callbacks(&block); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_commit_callbacks(&block); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_create_callbacks(&block); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_destroy_callbacks(&block); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_find_callbacks(&block); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_initialize_callbacks(&block); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_rollback_callbacks(&block); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_save_callbacks(&block); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_touch_callbacks(&block); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_update_callbacks(&block); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_validate_callbacks(&block); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_validation_callbacks(&block); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _save_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _touch_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _update_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _validate_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _validation_callbacks; end - - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 - def _validators; end - - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 - def _validators?; end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#12 - def aggregate_reflections; end - - # source://activerecord/8.0.2/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.2/lib/active_model/attribute_methods.rb#71 - def attribute_aliases; end - - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 - def attribute_aliases?; end - - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 - def attribute_method_patterns; end - - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 - def attribute_method_patterns?; end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#13 - def automatic_scope_inversing; end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#13 - def automatic_scope_inversing?; end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#14 - def automatically_invert_plural_associations; end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#14 - def automatically_invert_plural_associations?; end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#16 - def cache_timestamp_format; end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#16 - def cache_timestamp_format?; end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#24 - def cache_versioning; end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#24 - def cache_versioning?; end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#32 - def collection_cache_versioning; end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#32 - def collection_cache_versioning?; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#183 - def column_for_attribute(name, &_arg1); end - - # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#10 - def counter_cached_association_names; end - - # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#10 - def counter_cached_association_names?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#98 - def default_connection_handler; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#98 - def default_connection_handler?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#100 - def default_role; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#100 - def default_role?; end - - # source://activerecord/8.0.2/lib/active_record/scoping/default.rb#20 - def default_scope_override; end - - # source://activerecord/8.0.2/lib/active_record/scoping/default.rb#19 - def default_scopes; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#102 - def default_shard; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#102 - def default_shard?; end - - # source://activerecord/8.0.2/lib/active_record/enum.rb#167 - def defined_enums; end - - # source://activerecord/8.0.2/lib/active_record/enum.rb#167 - def defined_enums?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#47 - def destroy_association_async_batch_size; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#37 - def destroy_association_async_job(&_arg0); end - - # source://activerecord/8.0.2/lib/active_record/encryption/encryptable_record.rb#11 - def encrypted_attributes; end - - # source://activerecord/8.0.2/lib/active_record/encryption/encryptable_record.rb#11 - def encrypted_attributes=(_arg0); end - - # source://activerecord/8.0.2/lib/active_record/encryption/encryptable_record.rb#11 - def encrypted_attributes?; end - - # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 - def include_root_in_json; end - - # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 - def include_root_in_json?; end - - # source://activerecord/8.0.2/lib/active_record/locking/optimistic.rb#56 - def lock_optimistically; end - - # source://activerecord/8.0.2/lib/active_record/locking/optimistic.rb#56 - def lock_optimistically?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#22 - def logger; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#22 - def logger?; end - - # source://activemodel/8.0.2/lib/active_model/naming.rb#255 - def model_name(&_arg0); end - - # source://activerecord/8.0.2/lib/active_record/nested_attributes.rb#15 - def nested_attributes_options; end - - # source://activerecord/8.0.2/lib/active_record/nested_attributes.rb#15 - def nested_attributes_options?; end - - # source://activerecord/8.0.2/lib/active_record/normalization.rb#8 - def normalized_attributes; end - - # source://activerecord/8.0.2/lib/active_record/normalization.rb#8 - def normalized_attributes=(_arg0); end - - # source://activerecord/8.0.2/lib/active_record/normalization.rb#8 - def normalized_attributes?; end - - # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 - def param_delimiter=(_arg0); end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#50 - def partial_inserts; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#50 - def partial_inserts?; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#49 - def partial_updates; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#49 - def partial_updates?; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#168 - def pluralize_table_names; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#168 - def pluralize_table_names?; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#163 - def primary_key_prefix_type; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#163 - def primary_key_prefix_type?; end - - # source://activerecord/8.0.2/lib/active_record/timestamp.rb#47 - def record_timestamps; end - - # source://activerecord/8.0.2/lib/active_record/timestamp.rb#47 - def record_timestamps=(_arg0); end - - # source://activerecord/8.0.2/lib/active_record/timestamp.rb#47 - def record_timestamps?; end - - # source://activerecord/8.0.2/lib/active_record/signed_id.rb#13 - def signed_id_verifier_secret; end - - # source://activerecord/8.0.2/lib/active_record/signed_id.rb#13 - def signed_id_verifier_secret?; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#61 - def skip_time_zone_conversion_for_attributes; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#61 - def skip_time_zone_conversion_for_attributes?; end - - # source://activerecord/8.0.2/lib/active_record/inheritance.rb#43 - def store_full_class_name; end - - # source://activerecord/8.0.2/lib/active_record/inheritance.rb#43 - def store_full_class_name?; end - - # source://activerecord/8.0.2/lib/active_record/inheritance.rb#47 - def store_full_sti_class; end - - # source://activerecord/8.0.2/lib/active_record/inheritance.rb#47 - def store_full_sti_class?; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#164 - def table_name_prefix; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#164 - def table_name_prefix?; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#165 - def table_name_suffix; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#165 - def table_name_suffix?; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#60 - def time_zone_aware_attributes; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#60 - def time_zone_aware_attributes?; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#62 - def time_zone_aware_types; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#62 - def time_zone_aware_types?; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#183 - def type_for_attribute(*_arg0, **_arg1, &_arg2); end - - class << self - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 - def __callbacks=(value); end - - # source://activerecord/8.0.2/lib/active_record/readonly_attributes.rb#11 - def _attr_readonly; end - - # source://activerecord/8.0.2/lib/active_record/readonly_attributes.rb#11 - def _attr_readonly=(value); end - - # source://activerecord/8.0.2/lib/active_record/readonly_attributes.rb#11 - def _attr_readonly?; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _before_commit_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _before_commit_callbacks=(value); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _commit_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _commit_callbacks=(value); end - - # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#9 - def _counter_cache_columns; end - - # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#9 - def _counter_cache_columns=(value); end - - # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#9 - def _counter_cache_columns?; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _create_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _create_callbacks=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#24 - def _destroy_association_async_job; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#24 - def _destroy_association_async_job=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#24 - def _destroy_association_async_job?; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _destroy_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _destroy_callbacks=(value); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _find_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _find_callbacks=(value); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _initialize_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _initialize_callbacks=(value); end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#11 - def _reflections; end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#11 - def _reflections=(value); end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#11 - def _reflections?; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _rollback_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _rollback_callbacks=(value); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _save_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _save_callbacks=(value); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _touch_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _touch_callbacks=(value); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _update_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _update_callbacks=(value); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _validate_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _validate_callbacks=(value); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _validation_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _validation_callbacks=(value); end - - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 - def _validators; end - - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 - def _validators=(value); end - - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 - def _validators?; end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 - def after_create(*args, **options, &block); end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 - def after_destroy(*args, **options, &block); end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 - def after_find(*args, **options, &block); end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 - def after_initialize(*args, **options, &block); end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 - def after_save(*args, **options, &block); end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 - def after_touch(*args, **options, &block); end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 - def after_update(*args, **options, &block); end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#12 - def aggregate_reflections; end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#12 - def aggregate_reflections=(value); end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#12 - def aggregate_reflections?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#121 - def application_record_class?; end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 - def around_create(*args, **options, &block); end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 - def around_destroy(*args, **options, &block); end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 - def around_save(*args, **options, &block); end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 - def around_update(*args, **options, &block); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#141 - def asynchronous_queries_session; end - - # source://activerecord/8.0.2/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.2/lib/active_model/attribute_methods.rb#71 - def attribute_aliases; end - - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 - def attribute_aliases=(value); end - - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#71 - def attribute_aliases?; end - - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 - def attribute_method_patterns; end - - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 - def attribute_method_patterns=(value); end - - # source://activemodel/8.0.2/lib/active_model/attribute_methods.rb#72 - def attribute_method_patterns?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#119 - def attributes_for_inspect; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#119 - def attributes_for_inspect=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#119 - def attributes_for_inspect?; end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#13 - def automatic_scope_inversing; end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#13 - def automatic_scope_inversing=(value); end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#13 - def automatic_scope_inversing?; end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#14 - def automatically_invert_plural_associations; end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#14 - def automatically_invert_plural_associations=(value); end - - # source://activerecord/8.0.2/lib/active_record/reflection.rb#14 - def automatically_invert_plural_associations?; end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 - def before_create(*args, **options, &block); end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 - def before_destroy(*args, **options, &block); end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 - def before_save(*args, **options, &block); end - - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 - def before_update(*args, **options, &block); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#89 - def belongs_to_required_by_default; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#89 - def belongs_to_required_by_default=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#89 - def belongs_to_required_by_default?; end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#16 - def cache_timestamp_format; end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#16 - def cache_timestamp_format=(value); end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#16 - def cache_timestamp_format?; end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#24 - def cache_versioning; end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#24 - def cache_versioning=(value); end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#24 - def cache_versioning?; end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#32 - def collection_cache_versioning; end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#32 - def collection_cache_versioning=(value); end - - # source://activerecord/8.0.2/lib/active_record/integration.rb#32 - def collection_cache_versioning?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#77 - def configurations; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#71 - def configurations=(config); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#216 - def connected_to_stack; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#230 - def connection_class; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#226 - def connection_class=(b); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#234 - def connection_class?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#238 - def connection_class_for_self; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#133 - def connection_handler; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#137 - def connection_handler=(handler); end - - # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#10 - def counter_cached_association_names; end - - # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#10 - def counter_cached_association_names=(value); end - - # source://activerecord/8.0.2/lib/active_record/counter_cache.rb#10 - def counter_cached_association_names?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#196 - def current_preventing_writes; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#159 - def current_role; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#177 - def current_shard; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/serialization.rb#20 - def default_column_serializer; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/serialization.rb#20 - def default_column_serializer=(value); end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/serialization.rb#20 - def default_column_serializer?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#98 - def default_connection_handler; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#98 - def default_connection_handler=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#98 - def default_connection_handler?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#100 - def default_role; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#100 - def default_role=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#100 - def default_role?; end - - # source://activerecord/8.0.2/lib/active_record/scoping/default.rb#20 - def default_scope_override; end - - # source://activerecord/8.0.2/lib/active_record/scoping/default.rb#20 - def default_scope_override=(value); end - - # source://activerecord/8.0.2/lib/active_record/scoping/default.rb#19 - def default_scopes; end - - # source://activerecord/8.0.2/lib/active_record/scoping/default.rb#19 - def default_scopes=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#102 - def default_shard; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#102 - def default_shard=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#102 - def default_shard?; end - - # source://activerecord/8.0.2/lib/active_record/enum.rb#167 - def defined_enums; end - - # source://activerecord/8.0.2/lib/active_record/enum.rb#167 - def defined_enums=(value); end - - # source://activerecord/8.0.2/lib/active_record/enum.rb#167 - def defined_enums?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#47 - def destroy_association_async_batch_size; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#47 - def destroy_association_async_batch_size=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#27 - def destroy_association_async_job; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#24 - def destroy_association_async_job=(value); end - - # source://activerecord/8.0.2/lib/active_record/encryption/encryptable_record.rb#11 - def encrypted_attributes; end - - # source://activerecord/8.0.2/lib/active_record/encryption/encryptable_record.rb#11 - def encrypted_attributes=(value); end - - # source://activerecord/8.0.2/lib/active_record/encryption/encryptable_record.rb#11 - def encrypted_attributes?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#87 - def enumerate_columns_in_select_statements; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#87 - def enumerate_columns_in_select_statements=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#87 - def enumerate_columns_in_select_statements?; end - - # source://activerecord/8.0.2/lib/active_record/token_for.rb#11 - def generated_token_verifier; end - - # source://activerecord/8.0.2/lib/active_record/token_for.rb#11 - def generated_token_verifier=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#94 - def has_many_inversing; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#94 - def has_many_inversing=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#94 - def has_many_inversing?; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#170 - def immutable_strings_by_default; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#170 - def immutable_strings_by_default=(value); end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#170 - def immutable_strings_by_default?; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#169 - def implicit_order_column; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#169 - def implicit_order_column=(value); end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#169 - def implicit_order_column?; end - - # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 - def include_root_in_json; end - - # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 - def include_root_in_json=(value); end - - # source://activemodel/8.0.2/lib/active_model/serializers/json.rb#15 - def include_root_in_json?; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#172 - def inheritance_column; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#325 - def inheritance_column=(value); end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#172 - def inheritance_column?; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#167 - def internal_metadata_table_name; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#167 - def internal_metadata_table_name=(value); end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#167 - def internal_metadata_table_name?; end - - # source://activerecord/8.0.2/lib/active_record/store.rb#101 - def local_stored_attributes; end - - # source://activerecord/8.0.2/lib/active_record/store.rb#101 - def local_stored_attributes=(_arg0); end - - # source://activerecord/8.0.2/lib/active_record/locking/optimistic.rb#56 - def lock_optimistically; end - - # source://activerecord/8.0.2/lib/active_record/locking/optimistic.rb#56 - def lock_optimistically=(value); end - - # source://activerecord/8.0.2/lib/active_record/locking/optimistic.rb#56 - def lock_optimistically?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#22 - def logger; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#22 - def logger=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#22 - def logger?; end - - # source://activerecord/8.0.2/lib/active_record/nested_attributes.rb#15 - def nested_attributes_options; end - - # source://activerecord/8.0.2/lib/active_record/nested_attributes.rb#15 - def nested_attributes_options=(value); end - - # source://activerecord/8.0.2/lib/active_record/nested_attributes.rb#15 - def nested_attributes_options?; end - - # source://activerecord/8.0.2/lib/active_record/normalization.rb#8 - def normalized_attributes; end - - # source://activerecord/8.0.2/lib/active_record/normalization.rb#8 - def normalized_attributes=(value); end - - # source://activerecord/8.0.2/lib/active_record/normalization.rb#8 - def normalized_attributes?; end - - # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 - def param_delimiter; end - - # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 - def param_delimiter=(value); end - - # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 - def param_delimiter?; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#50 - def partial_inserts; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#50 - def partial_inserts=(value); end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#50 - def partial_inserts?; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#49 - def partial_updates; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#49 - def partial_updates=(value); end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/dirty.rb#49 - def partial_updates?; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#168 - def pluralize_table_names; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#168 - def pluralize_table_names=(value); end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#168 - def pluralize_table_names?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#207 - def preventing_writes?(class_name); end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#163 - def primary_key_prefix_type; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#163 - def primary_key_prefix_type=(value); end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#163 - def primary_key_prefix_type?; end - - # source://activerecord/8.0.2/lib/active_record/timestamp.rb#47 - def record_timestamps; end - - # source://activerecord/8.0.2/lib/active_record/timestamp.rb#47 - def record_timestamps=(value); end - - # source://activerecord/8.0.2/lib/active_record/timestamp.rb#47 - def record_timestamps?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#96 - def run_commit_callbacks_on_first_saved_instances_in_transaction; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#96 - def run_commit_callbacks_on_first_saved_instances_in_transaction=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#96 - def run_commit_callbacks_on_first_saved_instances_in_transaction?; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#166 - def schema_migrations_table_name; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#166 - def schema_migrations_table_name=(value); end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#166 - def schema_migrations_table_name?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#104 - def shard_selector; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#104 - def shard_selector=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#104 - def shard_selector?; end - - # source://activerecord/8.0.2/lib/active_record/signed_id.rb#13 - def signed_id_verifier_secret; end - - # source://activerecord/8.0.2/lib/active_record/signed_id.rb#13 - def signed_id_verifier_secret=(value); end - - # source://activerecord/8.0.2/lib/active_record/signed_id.rb#13 - def signed_id_verifier_secret?; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#61 - def skip_time_zone_conversion_for_attributes; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#61 - def skip_time_zone_conversion_for_attributes=(value); end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#61 - def skip_time_zone_conversion_for_attributes?; end - - # source://activerecord/8.0.2/lib/active_record/inheritance.rb#43 - def store_full_class_name; end - - # source://activerecord/8.0.2/lib/active_record/inheritance.rb#43 - def store_full_class_name=(value); end - - # source://activerecord/8.0.2/lib/active_record/inheritance.rb#43 - def store_full_class_name?; end - - # source://activerecord/8.0.2/lib/active_record/inheritance.rb#47 - def store_full_sti_class; end - - # source://activerecord/8.0.2/lib/active_record/inheritance.rb#47 - def store_full_sti_class=(value); end - - # source://activerecord/8.0.2/lib/active_record/inheritance.rb#47 - def store_full_sti_class?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#91 - def strict_loading_by_default; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#91 - def strict_loading_by_default=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#91 - def strict_loading_by_default?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#92 - def strict_loading_mode; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#92 - def strict_loading_mode=(value); end - - # source://activerecord/8.0.2/lib/active_record/core.rb#92 - def strict_loading_mode?; end - - # source://activerecord/8.0.2/lib/active_record/core.rb#253 - def strict_loading_violation!(owner:, reflection:); end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#164 - def table_name_prefix; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#164 - def table_name_prefix=(value); end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#164 - def table_name_prefix?; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#165 - def table_name_suffix; end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#165 - def table_name_suffix=(value); end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#165 - def table_name_suffix?; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#60 - def time_zone_aware_attributes; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#60 - def time_zone_aware_attributes=(value); end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#60 - def time_zone_aware_attributes?; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#62 - def time_zone_aware_types; end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#62 - def time_zone_aware_types=(value); end - - # source://activerecord/8.0.2/lib/active_record/attribute_methods/time_zone_conversion.rb#62 - def time_zone_aware_types?; end - - # source://activerecord/8.0.2/lib/active_record/token_for.rb#10 - def token_definitions; end - - # source://activerecord/8.0.2/lib/active_record/token_for.rb#10 - def token_definitions=(value); end - - private - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr__attr_readonly; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr__attr_readonly=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr__counter_cache_columns; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr__counter_cache_columns=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr__destroy_association_async_job; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr__destroy_association_async_job=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr__reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_aggregate_reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_aggregate_reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_attachment_reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_attachment_reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_attribute_aliases; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_attribute_aliases=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_attribute_method_patterns; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_attribute_method_patterns=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_attributes_for_inspect; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_attributes_for_inspect=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_automatic_scope_inversing; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_automatic_scope_inversing=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_automatically_invert_plural_associations; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_automatically_invert_plural_associations=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_belongs_to_required_by_default; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_belongs_to_required_by_default=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_cache_timestamp_format; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_cache_timestamp_format=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_cache_versioning; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_cache_versioning=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_collection_cache_versioning; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_collection_cache_versioning=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_counter_cached_association_names; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_counter_cached_association_names=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_default_column_serializer; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_default_column_serializer=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_default_connection_handler; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_default_connection_handler=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_default_role; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_default_role=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_default_scope_override; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_default_scope_override=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_default_scopes; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_default_scopes=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_default_shard; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_default_shard=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_defined_enums=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_destroy_association_async_batch_size; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_destroy_association_async_batch_size=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_encrypted_attributes; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_encrypted_attributes=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_enumerate_columns_in_select_statements; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_enumerate_columns_in_select_statements=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_generated_token_verifier; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_generated_token_verifier=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_has_many_inversing; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_has_many_inversing=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_immutable_strings_by_default; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_immutable_strings_by_default=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_implicit_order_column; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_implicit_order_column=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_include_root_in_json; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_include_root_in_json=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_inheritance_column; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_inheritance_column=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_internal_metadata_table_name; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_internal_metadata_table_name=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_lock_optimistically; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_lock_optimistically=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_logger; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_logger=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_nested_attributes_options; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_nested_attributes_options=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_normalized_attributes; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_normalized_attributes=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_param_delimiter; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_param_delimiter=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_partial_inserts; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_partial_inserts=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_partial_updates; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_partial_updates=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_pluralize_table_names; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_pluralize_table_names=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_primary_key_prefix_type; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_primary_key_prefix_type=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_record_timestamps; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_record_timestamps=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_run_commit_callbacks_on_first_saved_instances_in_transaction; end - - # source://activesupport/8.0.2/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.2/lib/active_support/class_attribute.rb#15 - def __class_attr_schema_migrations_table_name; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_schema_migrations_table_name=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_shard_selector; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_shard_selector=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_signed_id_verifier_secret; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_signed_id_verifier_secret=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_skip_time_zone_conversion_for_attributes; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_skip_time_zone_conversion_for_attributes=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_store_full_class_name; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_store_full_class_name=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_store_full_sti_class; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_store_full_sti_class=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_strict_loading_by_default; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_strict_loading_by_default=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_strict_loading_mode; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_strict_loading_mode=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_table_name_prefix; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_table_name_prefix=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_table_name_suffix; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_table_name_suffix=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_time_zone_aware_attributes; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_time_zone_aware_attributes=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_time_zone_aware_types; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_time_zone_aware_types=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_token_definitions; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_token_definitions=(new_value); end - - # source://activerecord/8.0.2/lib/active_record/model_schema.rb#172 - def _inheritance_column=(value); end - end end # :markup: markdown @@ -1415,10 +43,10 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#62 def content_types_to_serve_as_binary=(val); end - # source://activestorage//lib/active_storage.rb#361 + # source://activestorage//lib/active_storage.rb#358 def draw_routes; end - # source://activestorage//lib/active_storage.rb#361 + # source://activestorage//lib/active_storage.rb#358 def draw_routes=(val); end # source://activestorage//lib/active_storage.rb#48 @@ -1445,22 +73,22 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#52 def queues=(val); end - # source://activestorage//lib/active_storage.rb#362 + # source://activestorage//lib/active_storage.rb#359 def resolve_model_to_route; end - # source://activestorage//lib/active_storage.rb#362 + # source://activestorage//lib/active_storage.rb#359 def resolve_model_to_route=(val); end - # source://activestorage//lib/active_storage.rb#360 + # source://activestorage//lib/active_storage.rb#357 def routes_prefix; end - # source://activestorage//lib/active_storage.rb#360 + # source://activestorage//lib/active_storage.rb#357 def routes_prefix=(val); end - # source://activestorage//lib/active_storage.rb#356 + # source://activestorage//lib/active_storage.rb#353 def service_urls_expire_in; end - # source://activestorage//lib/active_storage.rb#356 + # source://activestorage//lib/active_storage.rb#353 def service_urls_expire_in=(val); end # source://activestorage//lib/active_storage.rb#65 @@ -1469,28 +97,28 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#65 def supported_image_processing_methods=(val); end - # source://activestorage//lib/active_storage.rb#357 + # source://activestorage//lib/active_storage.rb#354 def touch_attachment_records; end - # source://activestorage//lib/active_storage.rb#357 + # source://activestorage//lib/active_storage.rb#354 def touch_attachment_records=(val); end - # source://activestorage//lib/active_storage.rb#364 + # source://activestorage//lib/active_storage.rb#361 def track_variants; end - # source://activestorage//lib/active_storage.rb#364 + # source://activestorage//lib/active_storage.rb#361 def track_variants=(val); end - # source://activestorage//lib/active_storage.rb#354 + # source://activestorage//lib/active_storage.rb#351 def unsupported_image_processing_arguments; end - # source://activestorage//lib/active_storage.rb#354 + # source://activestorage//lib/active_storage.rb#351 def unsupported_image_processing_arguments=(val); end - # source://activestorage//lib/active_storage.rb#358 + # source://activestorage//lib/active_storage.rb#355 def urls_expire_in; end - # source://activestorage//lib/active_storage.rb#358 + # source://activestorage//lib/active_storage.rb#355 def urls_expire_in=(val); end # source://activestorage//lib/active_storage.rb#59 @@ -1511,10 +139,10 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#49 def verifier=(val); end - # source://activestorage//lib/active_storage.rb#366 + # source://activestorage//lib/active_storage.rb#363 def video_preview_arguments; end - # source://activestorage//lib/active_storage.rb#366 + # source://activestorage//lib/active_storage.rb#363 def video_preview_arguments=(val); end # source://activestorage//lib/active_storage.rb#60 @@ -1551,10 +179,10 @@ module ActiveStorage # source://activestorage//lib/active_storage/deprecator.rb#4 def deprecator; end - # source://activestorage//lib/active_storage.rb#361 + # source://activestorage//lib/active_storage.rb#358 def draw_routes; end - # source://activestorage//lib/active_storage.rb#361 + # source://activestorage//lib/active_storage.rb#358 def draw_routes=(val); end # Returns the currently loaded version of Active Storage as a +Gem::Version+. @@ -1586,31 +214,31 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#52 def queues=(val); end - # source://railties/8.0.2/lib/rails/engine.rb#413 + # source://activestorage//lib/active_storage/engine.rb#26 def railtie_helpers_paths; end - # source://railties/8.0.2/lib/rails/engine.rb#396 + # source://activestorage//lib/active_storage/engine.rb#26 def railtie_namespace; end - # source://railties/8.0.2/lib/rails/engine.rb#417 + # source://activestorage//lib/active_storage/engine.rb#26 def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end - # source://activestorage//lib/active_storage.rb#362 + # source://activestorage//lib/active_storage.rb#359 def resolve_model_to_route; end - # source://activestorage//lib/active_storage.rb#362 + # source://activestorage//lib/active_storage.rb#359 def resolve_model_to_route=(val); end - # source://activestorage//lib/active_storage.rb#360 + # source://activestorage//lib/active_storage.rb#357 def routes_prefix; end - # source://activestorage//lib/active_storage.rb#360 + # source://activestorage//lib/active_storage.rb#357 def routes_prefix=(val); end - # source://activestorage//lib/active_storage.rb#356 + # source://activestorage//lib/active_storage.rb#353 def service_urls_expire_in; end - # source://activestorage//lib/active_storage.rb#356 + # source://activestorage//lib/active_storage.rb#353 def service_urls_expire_in=(val); end # source://activestorage//lib/active_storage.rb#65 @@ -1619,34 +247,34 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#65 def supported_image_processing_methods=(val); end - # source://railties/8.0.2/lib/rails/engine.rb#402 + # source://activestorage//lib/active_storage/engine.rb#26 def table_name_prefix; end - # source://activestorage//lib/active_storage.rb#357 + # source://activestorage//lib/active_storage.rb#354 def touch_attachment_records; end - # source://activestorage//lib/active_storage.rb#357 + # source://activestorage//lib/active_storage.rb#354 def touch_attachment_records=(val); end - # source://activestorage//lib/active_storage.rb#364 + # source://activestorage//lib/active_storage.rb#361 def track_variants; end - # source://activestorage//lib/active_storage.rb#364 + # source://activestorage//lib/active_storage.rb#361 def track_variants=(val); end - # source://activestorage//lib/active_storage.rb#354 + # source://activestorage//lib/active_storage.rb#351 def unsupported_image_processing_arguments; end - # source://activestorage//lib/active_storage.rb#354 + # source://activestorage//lib/active_storage.rb#351 def unsupported_image_processing_arguments=(val); end - # source://activestorage//lib/active_storage.rb#358 + # source://activestorage//lib/active_storage.rb#355 def urls_expire_in; end - # source://activestorage//lib/active_storage.rb#358 + # source://activestorage//lib/active_storage.rb#355 def urls_expire_in=(val); end - # source://railties/8.0.2/lib/rails/engine.rb#409 + # source://activestorage//lib/active_storage/engine.rb#26 def use_relative_model_naming?; end # source://activestorage//lib/active_storage.rb#59 @@ -1672,10 +300,10 @@ module ActiveStorage # source://activestorage//lib/active_storage/version.rb#7 def version; end - # source://activestorage//lib/active_storage.rb#366 + # source://activestorage//lib/active_storage.rb#363 def video_preview_arguments; end - # source://activestorage//lib/active_storage.rb#366 + # source://activestorage//lib/active_storage.rb#363 def video_preview_arguments=(val); end # source://activestorage//lib/active_storage.rb#60 @@ -1692,16 +320,9 @@ class ActiveStorage::AnalyzeJob < ::ActiveStorage::BaseJob class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -2231,7 +852,7 @@ class ActiveStorage::Attached::Many < ::ActiveStorage::Attached # source://activestorage//lib/active_storage/attached/many.rb#25 def detach(*_arg0, **_arg1, &_arg2); end - # source://activesupport/8.0.2/lib/active_support/delegation.rb#185 + # source://activestorage//lib/active_storage/attached/many.rb#27 def method_missing(method, *_arg1, **_arg2, &_arg3); end # source://activestorage//lib/active_storage/attached/many.rb#13 @@ -2248,7 +869,7 @@ class ActiveStorage::Attached::Many < ::ActiveStorage::Attached # source://activestorage//lib/active_storage/attached/many.rb#71 def purge_many; end - # source://activesupport/8.0.2/lib/active_support/delegation.rb#177 + # source://activestorage//lib/active_storage/attached/many.rb#27 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -2283,7 +904,7 @@ module ActiveStorage::Attached::Model end end -# source://activestorage//lib/active_storage/attached/model.rb#0 +# source://activestorage//lib/active_storage/attached/model.rb#54 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 @@ -2309,7 +930,7 @@ class ActiveStorage::Attached::One < ::ActiveStorage::Attached # source://activestorage//lib/active_storage/attached/one.rb#25 def detach(*_arg0, **_arg1, &_arg2); end - # source://activesupport/8.0.2/lib/active_support/delegation.rb#164 + # source://activestorage//lib/active_storage/attached/one.rb#27 def method_missing(method, *_arg1, **_arg2, &_arg3); end # source://activestorage//lib/active_storage/attached/one.rb#13 @@ -2326,7 +947,7 @@ class ActiveStorage::Attached::One < ::ActiveStorage::Attached # source://activestorage//lib/active_storage/attached/one.rb#78 def purge_one; end - # source://activesupport/8.0.2/lib/active_support/delegation.rb#156 + # source://activestorage//lib/active_storage/attached/one.rb#27 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -2334,24 +955,15 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record include ::ActiveStorage::Attachment::GeneratedAttributeMethods include ::ActiveStorage::Attachment::GeneratedAssociationMethods - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_blob(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_record(*args); end - - # source://activesupport/8.0.2/lib/active_support/delegation.rb#185 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.2/lib/active_record/autosave_association.rb#162 def validate_associated_records_for_blob(*args); end - def variant(transformations); end private @@ -2361,89 +973,41 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record def mirror_blob_later; end def named_variants; end def purge_dependent_blob_later; end - - # source://activesupport/8.0.2/lib/active_support/delegation.rb#177 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.2/lib/active_record/scoping/named.rb#174 def with_all_variant_records(*args, **_arg1); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/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.2/lib/active_record/associations/builder/association.rb#104 def blob; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def blob=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#146 def blob_changed?; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#150 def blob_previously_changed?; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_blob(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_blob(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_blob!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def record; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def record=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#146 def record_changed?; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#150 def record_previously_changed?; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_blob; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_record; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_blob; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_record; end end @@ -2454,28 +1018,16 @@ class ActiveStorage::BaseController < ::ActionController::Base private - # source://actionview/8.0.2/lib/action_view/layouts.rb#328 def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_etag_with_template_digest; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_etag_with_template_digest=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -2491,19 +1043,10 @@ class ActiveStorage::Blob < ::ActiveStorage::Record include ::ActiveStorage::Blob::Servable def audio?; end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_attachments(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_preview_image_attachment(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_preview_image_blob(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_variant_records(*args); end - def compose(keys); end def custom_metadata; end def custom_metadata=(metadata); end @@ -2517,10 +1060,7 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def open(tmpdir: T.unsafe(nil), &block); end def purge; end def purge_later; end - - # source://activerecord/8.0.2/lib/active_record/secure_token.rb#53 def regenerate_key; end - def service; end def service_headers_for_direct_upload; end def service_url_for_direct_upload(expires_in: T.unsafe(nil)); end @@ -2533,13 +1073,8 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def upload(io, identify: T.unsafe(nil)); end def upload_without_unfurling(io); end def url(expires_in: T.unsafe(nil), disposition: T.unsafe(nil), filename: T.unsafe(nil), **options); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def validate_associated_records_for_attachments(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def validate_associated_records_for_variant_records(*args); end - def video?; end private @@ -2569,55 +1104,24 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def services=(value); end def services?; end def signed_id_verifier; end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def unattached(*args, **_arg1); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def with_attached_preview_image(*args, **_arg1); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_attachment_reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_attachment_reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_service; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_service=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_services; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_services=(new_value); end end end @@ -2635,76 +1139,29 @@ module ActiveStorage::Blob::Analyzable end module ActiveStorage::Blob::GeneratedAssociationMethods - # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#62 def attachment_ids; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#72 def attachment_ids=(ids); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def attachments; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def attachments=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_preview_image_attachment(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_preview_image_blob(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_preview_image_attachment(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_preview_image_attachment!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_preview_image_blob(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_preview_image_blob!(*args, &block); end - - # source://activestorage//lib/active_storage/attached/model.rb#113 def preview_image; end - - # source://activestorage//lib/active_storage/attached/model.rb#118 def preview_image=(attachable); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def preview_image_attachment; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def preview_image_attachment=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def preview_image_blob; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def preview_image_blob=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_preview_image_attachment; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_preview_image_blob; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_preview_image_attachment; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_preview_image_blob; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#62 def variant_record_ids; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#72 def variant_record_ids=(ids); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def variant_records; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def variant_records=(value); end end @@ -2767,22 +1224,14 @@ class ActiveStorage::Blobs::ProxyController < ::ActiveStorage::BaseController private - # source://actionview/8.0.2/lib/action_view/layouts.rb#328 def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -2794,40 +1243,26 @@ class ActiveStorage::Blobs::RedirectController < ::ActiveStorage::BaseController private - # source://actionview/8.0.2/lib/action_view/layouts.rb#328 def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - - # source://activesupport/8.0.2/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.2/lib/active_support/current_attributes.rb#137 def url_options; end - - # source://activesupport/8.0.2/lib/active_support/current_attributes.rb#138 def url_options=(value); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defaults; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defaults=(new_value); end end end @@ -2837,19 +1272,14 @@ class ActiveStorage::DirectUploadsController < ::ActiveStorage::BaseController private - # source://actionview/8.0.2/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.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -2866,9 +1296,7 @@ class ActiveStorage::DiskController < ::ActiveStorage::BaseController private - # source://actionview/8.0.2/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 @@ -2877,16 +1305,9 @@ class ActiveStorage::DiskController < ::ActiveStorage::BaseController class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -2919,17 +1340,7 @@ class ActiveStorage::Downloader end # source://activestorage//lib/active_storage/engine.rb#25 -class ActiveStorage::Engine < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end +class ActiveStorage::Engine < ::Rails::Engine; end # Generic base class for all Active Storage exceptions. # @@ -3011,10 +1422,10 @@ class ActiveStorage::FixtureSet include ::ActiveRecord::SecureToken extend ::ActiveRecord::SecureToken::ClassMethods - # source://activesupport/8.0.2/lib/active_support/testing/file_fixtures.rb#20 + # source://activestorage//lib/active_storage/fixture_set.rb#45 def file_fixture_path; end - # source://activesupport/8.0.2/lib/active_support/testing/file_fixtures.rb#20 + # source://activestorage//lib/active_storage/fixture_set.rb#45 def file_fixture_path?; end # source://activestorage//lib/active_storage/fixture_set.rb#70 @@ -3042,21 +1453,21 @@ class ActiveStorage::FixtureSet # source://activestorage//lib/active_storage/fixture_set.rb#66 def blob(filename:, **attributes); end - # source://activesupport/8.0.2/lib/active_support/testing/file_fixtures.rb#20 + # source://activestorage//lib/active_storage/fixture_set.rb#45 def file_fixture_path; end - # source://activesupport/8.0.2/lib/active_support/testing/file_fixtures.rb#20 + # source://activestorage//lib/active_storage/fixture_set.rb#45 def file_fixture_path=(value); end - # source://activesupport/8.0.2/lib/active_support/testing/file_fixtures.rb#20 + # source://activestorage//lib/active_storage/fixture_set.rb#45 def file_fixture_path?; end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activestorage//lib/active_storage/fixture_set.rb#45 def __class_attr_file_fixture_path; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activestorage//lib/active_storage/fixture_set.rb#45 def __class_attr_file_fixture_path=(new_value); end end end @@ -3096,7 +1507,7 @@ class ActiveStorage::LogSubscriber < ::ActiveSupport::LogSubscriber # source://activestorage//lib/active_storage/log_subscriber.rb#46 def service_mirror(event); end - # source://activestorage//lib/active_storage/log_subscriber.rb#14 + # source://activestorage//lib/active_storage/log_subscriber.rb#19 def service_streaming_download(event); end # source://activestorage//lib/active_storage/log_subscriber.rb#7 @@ -3122,10 +1533,10 @@ class ActiveStorage::LogSubscriber < ::ActiveSupport::LogSubscriber class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://activestorage//lib/active_storage/log_subscriber.rb#12 def __class_attr_log_levels; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://activestorage//lib/active_storage/log_subscriber.rb#12 def __class_attr_log_levels=(new_value); end end end @@ -3136,16 +1547,9 @@ class ActiveStorage::MirrorJob < ::ActiveStorage::BaseJob class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -3197,16 +1601,9 @@ class ActiveStorage::PreviewImageJob < ::ActiveStorage::BaseJob class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -3370,16 +1767,9 @@ class ActiveStorage::PurgeJob < ::ActiveStorage::BaseJob class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end @@ -3391,16 +1781,9 @@ class ActiveStorage::Record < ::ActiveRecord::Base class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end end end @@ -3493,25 +1876,16 @@ class ActiveStorage::Representations::BaseController < ::ActiveStorage::BaseCont private - # source://actionview/8.0.2/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.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -3526,22 +1900,14 @@ class ActiveStorage::Representations::ProxyController < ::ActiveStorage::Represe private - # source://actionview/8.0.2/lib/action_view/layouts.rb#328 def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -3551,16 +1917,12 @@ class ActiveStorage::Representations::RedirectController < ::ActiveStorage::Repr private - # source://actionview/8.0.2/lib/action_view/layouts.rb#328 def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end @@ -3832,21 +2194,14 @@ class ActiveStorage::TransformJob < ::ActiveStorage::BaseJob class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_rescue_handlers=(new_value); end end end -# source://activestorage//lib/active_storage.rb#368 +# source://activestorage//lib/active_storage.rb#365 module ActiveStorage::Transformers extend ::ActiveSupport::Autoload end @@ -3912,7 +2267,7 @@ ActiveStorage::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) 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), T.untyped) +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) @@ -3947,127 +2302,53 @@ class ActiveStorage::VariantRecord < ::ActiveStorage::Record include ::ActiveStorage::VariantRecord::GeneratedAttributeMethods include ::ActiveStorage::VariantRecord::GeneratedAssociationMethods - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_blob(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_image_attachment(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_image_blob(*args); end class << self - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def with_attached_image(*args, **_arg1); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_attachment_reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_attachment_reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/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.2/lib/active_record/associations/builder/association.rb#104 def blob; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def blob=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#146 def blob_changed?; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#150 def blob_previously_changed?; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_blob(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_image_attachment(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_image_blob(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_blob(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_blob!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_image_attachment(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_image_attachment!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_image_blob(*args, &block); end - - # source://activerecord/8.0.2/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.2/lib/active_record/associations/builder/association.rb#104 def image_attachment; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def image_attachment=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def image_blob; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def image_blob=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_blob; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_image_attachment; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_image_blob; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_blob; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_image_attachment; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_image_blob; end end diff --git a/sorbet/rbi/gems/activesupport@8.0.2.rbi b/sorbet/rbi/gems/activesupport@8.0.2.1.rbi similarity index 97% rename from sorbet/rbi/gems/activesupport@8.0.2.rbi rename to sorbet/rbi/gems/activesupport@8.0.2.1.rbi index 9ddbdbd3..471bed5e 100644 --- a/sorbet/rbi/gems/activesupport@8.0.2.rbi +++ b/sorbet/rbi/gems/activesupport@8.0.2.1.rbi @@ -327,7 +327,7 @@ class ActiveSupport::BacktraceCleaner # 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 + # source://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 @@ -621,7 +621,7 @@ class ActiveSupport::BroadcastLogger # source://activesupport//lib/active_support/broadcast_logger.rb#156 def local_level=(level); end - # source://activesupport//lib/active_support/broadcast_logger.rb#116 + # source://activesupport//lib/active_support/broadcast_logger.rb#119 def log(*_arg0, **_arg1, &_arg2); end # Returns the value of attribute progname. @@ -636,13 +636,13 @@ class ActiveSupport::BroadcastLogger # source://activesupport//lib/active_support/broadcast_logger.rb#80 def progname=(_arg0); end - # source://activesupport//lib/active_support/broadcast_logger.rb#151 + # source://activesupport//lib/active_support/broadcast_logger.rb#154 def sev_threshold=(level); end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # source://activesupport//lib/active_support/broadcast_logger.rb#75 def silencer; end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # source://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 @@ -692,10 +692,10 @@ class ActiveSupport::BroadcastLogger def respond_to_missing?(method, include_all); end class << self - # source://activesupport//lib/active_support/logger_silence.rb#12 + # source://activesupport//lib/active_support/broadcast_logger.rb#75 def silencer; end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # source://activesupport//lib/active_support/broadcast_logger.rb#75 def silencer=(val); end end end @@ -1274,19 +1274,19 @@ ActiveSupport::Cache::MemoryStore::PER_ENTRY_OVERHEAD = T.let(T.unsafe(nil), Int class ActiveSupport::Cache::NullStore < ::ActiveSupport::Cache::Store include ::ActiveSupport::Cache::Strategy::LocalCache - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#85 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 @@ -1294,19 +1294,19 @@ class ActiveSupport::Cache::NullStore < ::ActiveSupport::Cache::Store private - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#198 + # source://activesupport//lib/active_support/cache/null_store.rb#57 def delete_entry(key, **_arg1); end # source://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 + # source://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 - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#189 + # source://activesupport//lib/active_support/cache/null_store.rb#53 def write_serialized_entry(key, payload, **_arg2); end class << self @@ -1859,7 +1859,7 @@ class ActiveSupport::Cache::Store # Returns the value of attribute silence. # - # source://activesupport//lib/active_support/cache.rb#192 + # source://activesupport//lib/active_support/cache.rb#193 def silence?; end # Writes the value to the cache with the key. The value must be supported @@ -3003,41 +3003,62 @@ class ActiveSupport::Callbacks::Filters::Environment < ::Struct # Returns the value of attribute halted # # @return [Object] the current value of halted + # + # source://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 + # + # source://activesupport//lib/active_support/callbacks.rb#162 def halted=(_); end # Returns the value of attribute target # # @return [Object] the current value of target + # + # source://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 + # + # source://activesupport//lib/active_support/callbacks.rb#162 def target=(_); end # Returns the value of attribute value # # @return [Object] the current value of value + # + # source://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 + # + # source://activesupport//lib/active_support/callbacks.rb#162 def value=(_); end class << self + # source://activesupport//lib/active_support/callbacks.rb#162 def [](*_arg0); end + + # source://activesupport//lib/active_support/callbacks.rb#162 def inspect; end + + # source://activesupport//lib/active_support/callbacks.rb#162 def keyword_init?; end + + # source://activesupport//lib/active_support/callbacks.rb#162 def members; end + + # source://activesupport//lib/active_support/callbacks.rb#162 def new(*_arg0); end end end @@ -3446,7 +3467,7 @@ class ActiveSupport::Concurrency::ThreadLoadInterlockAwareMonitor # source://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 + # source://activesupport//lib/active_support/concurrency/load_interlock_aware_monitor.rb#54 def mon_enter; end private @@ -3634,7 +3655,7 @@ module ActiveSupport::CoreExt::ERBUtil # puts html_escape('is a > 0 & a < 10?') # # => is a > 0 & a < 10? # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#25 + # source://activesupport//lib/active_support/core_ext/erb/util.rb#28 def h(s); end # A utility method for escaping HTML tag characters. @@ -3643,13 +3664,13 @@ module ActiveSupport::CoreExt::ERBUtil # puts html_escape('is a > 0 & a < 10?') # # => is a > 0 & a < 10? # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#25 + # source://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 + # source://activesupport//lib/active_support/core_ext/erb/util.rb#18 def unwrapped_html_escape(s); end end @@ -3659,13 +3680,13 @@ module ActiveSupport::CoreExt::ERBUtilPrivate private - # source://activesupport//lib/active_support/core_ext/erb/util.rb#25 + # source://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 + # source://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 + # source://activesupport//lib/active_support/core_ext/erb/util.rb#33 def unwrapped_html_escape(s); end end @@ -3761,39 +3782,39 @@ class ActiveSupport::CurrentAttributes # @return [CurrentAttributes] a new instance of CurrentAttributes # - # source://activesupport//lib/active_support/current_attributes.rb#199 + # source://activesupport//lib/active_support/current_attributes.rb#187 def initialize; end - # source://activesupport//lib/active_support/callbacks.rb#69 + # source://activesupport//lib/active_support/current_attributes.rb#93 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#924 + # source://activesupport//lib/active_support/current_attributes.rb#94 def _reset_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#912 + # source://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#197 + # source://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#197 + # source://activesupport//lib/active_support/current_attributes.rb#187 def attributes=(_arg0); end - # source://activesupport//lib/active_support/current_attributes.rb#195 + # source://activesupport//lib/active_support/current_attributes.rb#187 def defaults; end - # source://activesupport//lib/active_support/current_attributes.rb#195 + # source://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#218 + # source://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. @@ -3807,30 +3828,30 @@ class ActiveSupport::CurrentAttributes # end # end # - # source://activesupport//lib/active_support/current_attributes.rb#213 + # source://activesupport//lib/active_support/current_attributes.rb#187 def set(attributes, &block); end private - # source://activesupport//lib/active_support/current_attributes.rb#225 + # source://activesupport//lib/active_support/current_attributes.rb#187 def resolve_defaults; end class << self - # source://activesupport//lib/active_support/callbacks.rb#69 + # source://activesupport//lib/active_support/current_attributes.rb#93 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#69 + # source://activesupport//lib/active_support/current_attributes.rb#93 def __callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#916 + # source://activesupport//lib/active_support/current_attributes.rb#94 def _reset_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # source://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 + # source://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. @@ -3889,16 +3910,16 @@ class ActiveSupport::CurrentAttributes private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://activesupport//lib/active_support/current_attributes.rb#93 def __class_attr___callbacks; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # source://activesupport//lib/active_support/current_attributes.rb#93 def __class_attr___callbacks=(new_value); end - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://activesupport//lib/active_support/current_attributes.rb#195 def __class_attr_defaults; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # source://activesupport//lib/active_support/current_attributes.rb#195 def __class_attr_defaults=(new_value); end # source://activesupport//lib/active_support/current_attributes.rb#170 @@ -4810,6 +4831,7 @@ class ActiveSupport::DescendantsTracker::WeakSet < ::ObjectSpace::WeakMap # source://activesupport//lib/active_support/descendants_tracker.rb#23 def <<(object); end + # source://activesupport//lib/active_support/descendants_tracker.rb#21 def to_a; end end @@ -4898,7 +4920,7 @@ class ActiveSupport::Duration # 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 + # source://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 @@ -4913,7 +4935,7 @@ class ActiveSupport::Duration # 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 + # source://activesupport//lib/active_support/duration.rb#448 def before(time = T.unsafe(nil)); end # source://activesupport//lib/active_support/duration.rb#245 @@ -4933,7 +4955,7 @@ class ActiveSupport::Duration # 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 + # source://activesupport//lib/active_support/duration.rb#439 def from_now(time = T.unsafe(nil)); end # source://activesupport//lib/active_support/duration.rb#430 @@ -4988,7 +5010,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 + # source://activesupport//lib/active_support/duration.rb#380 def in_seconds; end # Returns the amount of weeks a duration covers as a float @@ -5029,7 +5051,7 @@ class ActiveSupport::Duration # @return [Boolean] # - # source://activesupport//lib/active_support/duration.rb#330 + # source://activesupport//lib/active_support/duration.rb#333 def kind_of?(klass); end # source://activesupport//lib/active_support/duration.rb#224 @@ -5090,7 +5112,7 @@ class ActiveSupport::Duration # 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 + # source://activesupport//lib/active_support/duration.rb#447 def until(time = T.unsafe(nil)); end # Returns the value of attribute value. @@ -5477,7 +5499,7 @@ class ActiveSupport::EncryptedConfiguration < ::ActiveSupport::EncryptedFile # source://activesupport//lib/active_support/encrypted_configuration.rb#89 def inspect; end - # source://activesupport//lib/active_support/delegation.rb#185 + # source://activesupport//lib/active_support/encrypted_configuration.rb#52 def method_missing(method, *_arg1, **_arg2, &_arg3); end # Reads the file and returns the decrypted content. See EncryptedFile#read. @@ -5502,7 +5524,7 @@ class ActiveSupport::EncryptedConfiguration < ::ActiveSupport::EncryptedFile # source://activesupport//lib/active_support/encrypted_configuration.rb#112 def options; end - # source://activesupport//lib/active_support/delegation.rb#177 + # source://activesupport//lib/active_support/encrypted_configuration.rb#52 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -5677,7 +5699,7 @@ class ActiveSupport::EnvironmentInquirer < ::ActiveSupport::StringInquirer # source://activesupport//lib/active_support/environment_inquirer.rb#15 def initialize(env); end - # source://activesupport//lib/active_support/environment_inquirer.rb#29 + # source://activesupport//lib/active_support/environment_inquirer.rb#28 def development?; end # Returns true if we're in the development or test environment. @@ -5687,10 +5709,10 @@ class ActiveSupport::EnvironmentInquirer < ::ActiveSupport::StringInquirer # source://activesupport//lib/active_support/environment_inquirer.rb#36 def local?; end - # source://activesupport//lib/active_support/environment_inquirer.rb#29 + # source://activesupport//lib/active_support/environment_inquirer.rb#28 def production?; end - # source://activesupport//lib/active_support/environment_inquirer.rb#29 + # source://activesupport//lib/active_support/environment_inquirer.rb#28 def test?; end end @@ -5963,19 +5985,19 @@ class ActiveSupport::ExecutionWrapper extend ::ActiveSupport::Callbacks::ClassMethods extend ::ActiveSupport::DescendantsTracker - # source://activesupport//lib/active_support/callbacks.rb#69 + # source://activesupport//lib/active_support/execution_wrapper.rb#8 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#924 + # source://activesupport//lib/active_support/execution_wrapper.rb#15 def _complete_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#924 + # source://activesupport//lib/active_support/execution_wrapper.rb#14 def _run_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#912 + # source://activesupport//lib/active_support/execution_wrapper.rb#15 def _run_complete_callbacks(&block); end - # source://activesupport//lib/active_support/callbacks.rb#912 + # source://activesupport//lib/active_support/execution_wrapper.rb#14 def _run_run_callbacks(&block); end # source://activesupport//lib/active_support/execution_wrapper.rb#141 @@ -6001,22 +6023,22 @@ class ActiveSupport::ExecutionWrapper def hook_state; end class << self - # source://activesupport//lib/active_support/callbacks.rb#69 + # source://activesupport//lib/active_support/execution_wrapper.rb#8 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#69 + # source://activesupport//lib/active_support/execution_wrapper.rb#8 def __callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#916 + # source://activesupport//lib/active_support/execution_wrapper.rb#15 def _complete_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # source://activesupport//lib/active_support/execution_wrapper.rb#15 def _complete_callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#916 + # source://activesupport//lib/active_support/execution_wrapper.rb#14 def _run_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # source://activesupport//lib/active_support/execution_wrapper.rb#14 def _run_callbacks=(value); end # @return [Boolean] @@ -6068,17 +6090,17 @@ class ActiveSupport::ExecutionWrapper private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://activesupport//lib/active_support/execution_wrapper.rb#8 def __class_attr___callbacks; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # source://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 class ActiveSupport::ExecutionWrapper::CompleteHook < ::Struct - # source://activesupport//lib/active_support/execution_wrapper.rb#33 + # source://activesupport//lib/active_support/execution_wrapper.rb#39 def after(target); end # source://activesupport//lib/active_support/execution_wrapper.rb#33 @@ -6087,19 +6109,32 @@ class ActiveSupport::ExecutionWrapper::CompleteHook < ::Struct # Returns the value of attribute hook # # @return [Object] the current value of hook + # + # source://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 + # + # source://activesupport//lib/active_support/execution_wrapper.rb#32 def hook=(_); end class << self + # source://activesupport//lib/active_support/execution_wrapper.rb#32 def [](*_arg0); end + + # source://activesupport//lib/active_support/execution_wrapper.rb#32 def inspect; end + + # source://activesupport//lib/active_support/execution_wrapper.rb#32 def keyword_init?; end + + # source://activesupport//lib/active_support/execution_wrapper.rb#32 def members; end + + # source://activesupport//lib/active_support/execution_wrapper.rb#32 def new(*_arg0); end end end @@ -6115,19 +6150,32 @@ class ActiveSupport::ExecutionWrapper::RunHook < ::Struct # Returns the value of attribute hook # # @return [Object] the current value of hook + # + # source://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 + # + # source://activesupport//lib/active_support/execution_wrapper.rb#25 def hook=(_); end class << self + # source://activesupport//lib/active_support/execution_wrapper.rb#25 def [](*_arg0); end + + # source://activesupport//lib/active_support/execution_wrapper.rb#25 def inspect; end + + # source://activesupport//lib/active_support/execution_wrapper.rb#25 def keyword_init?; end + + # source://activesupport//lib/active_support/execution_wrapper.rb#25 def members; end + + # source://activesupport//lib/active_support/execution_wrapper.rb#25 def new(*_arg0); end end end @@ -6482,7 +6530,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # # @return [Boolean] # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#151 + # source://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: @@ -6494,7 +6542,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # # @return [Boolean] # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#151 + # source://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: @@ -6518,7 +6566,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # # @return [Boolean] # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#151 + # source://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 @@ -6557,13 +6605,16 @@ 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 + # source://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 def nested_under_indifferent_access; end + # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#90 def regular_update(*_arg0); end + + # source://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#328 @@ -6608,7 +6659,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 + # source://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#318 @@ -6619,7 +6670,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#376 def to_hash; end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#318 + # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#319 def to_options; end # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#321 @@ -6686,12 +6737,12 @@ 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#283 + # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#286 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#289 + # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#292 def with_defaults!(other_hash); end # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#62 @@ -6702,7 +6753,7 @@ 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#311 + # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#314 def without(*keys); end private @@ -7452,6 +7503,7 @@ class ActiveSupport::InheritableOptions < ::ActiveSupport::OrderedOptions private + # source://activesupport//lib/active_support/ordered_options.rb#123 def own_key?(_arg0); end end @@ -7540,7 +7592,7 @@ module ActiveSupport::JSON # ActiveSupport::JSON.encode({ key: "<>&" }, escape_html_entities: false) # # => "{\"key\":\"<>&\"}" # - # source://activesupport//lib/active_support/json/encoding.rb#40 + # source://activesupport//lib/active_support/json/encoding.rb#43 def dump(value, options = T.unsafe(nil)); end # Dumps objects in JSON (JavaScript Object Notation). @@ -7576,7 +7628,7 @@ module ActiveSupport::JSON # ActiveSupport::JSON.decode("{\"team\":\"rails\",\"players\":\"36\"}") # => {"team" => "rails", "players" => "36"} # - # source://activesupport//lib/active_support/json/decoding.rb#22 + # source://activesupport//lib/active_support/json/decoding.rb#31 def load(json); end # Returns the class of the error that will be raised when there is an @@ -7886,19 +7938,19 @@ class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber # source://activesupport//lib/active_support/log_subscriber.rb#83 def colorize_logging=(val); end - # source://activesupport//lib/active_support/log_subscriber.rb#163 + # source://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 + # source://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 def event_levels=(_arg0); end - # source://activesupport//lib/active_support/log_subscriber.rb#163 + # source://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 + # source://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 @@ -7912,10 +7964,10 @@ class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber # source://activesupport//lib/active_support/log_subscriber.rb#142 def silenced?(event); end - # source://activesupport//lib/active_support/log_subscriber.rb#163 + # source://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 + # source://activesupport//lib/active_support/log_subscriber.rb#162 def warn(progname = T.unsafe(nil), &block); end private @@ -7972,10 +8024,10 @@ class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://activesupport//lib/active_support/log_subscriber.rb#84 def __class_attr_log_levels; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # source://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 @@ -8033,10 +8085,10 @@ class ActiveSupport::Logger < ::Logger # source://activesupport//lib/active_support/logger.rb#33 def initialize(*args, **kwargs); end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # source://activesupport//lib/active_support/logger.rb#9 def silencer; end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # source://activesupport//lib/active_support/logger.rb#9 def silencer=(val); end class << self @@ -8058,10 +8110,10 @@ class ActiveSupport::Logger < ::Logger # source://activesupport//lib/active_support/logger.rb#47 def normalize_sources(sources); end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # source://activesupport//lib/active_support/logger.rb#9 def silencer; end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # source://activesupport//lib/active_support/logger.rb#9 def silencer=(val); end end end @@ -8260,7 +8312,7 @@ class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec # # @return [MessageEncryptor] a new instance of MessageEncryptor # - # source://activesupport//lib/active_support/messages/rotator.rb#6 + # source://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 @@ -8320,7 +8372,7 @@ class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec # source://activesupport//lib/active_support/message_encryptor.rb#264 def inspect; end - # source://activesupport//lib/active_support/messages/rotator.rb#28 + # source://activesupport//lib/active_support/message_encryptor.rb#260 def read_message(message, on_rotation: T.unsafe(nil), **options); end private @@ -8332,7 +8384,7 @@ class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec # Returns the value of attribute aead_mode. # - # source://activesupport//lib/active_support/message_encryptor.rb#371 + # source://activesupport//lib/active_support/message_encryptor.rb#372 def aead_mode?; end # source://activesupport//lib/active_support/message_encryptor.rb#295 @@ -8573,7 +8625,7 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # @raise [ArgumentError] # @return [MessageVerifier] a new instance of MessageVerifier # - # source://activesupport//lib/active_support/messages/rotator.rb#6 + # source://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 @@ -8620,7 +8672,7 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # source://activesupport//lib/active_support/message_verifier.rb#318 def inspect; end - # source://activesupport//lib/active_support/messages/rotator.rb#28 + # source://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 @@ -8808,10 +8860,10 @@ class ActiveSupport::Messages::Codec private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://activesupport//lib/active_support/messages/codec.rb#12 def __class_attr_default_serializer; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # source://activesupport//lib/active_support/messages/codec.rb#12 def __class_attr_default_serializer=(new_value); end end end @@ -9295,7 +9347,7 @@ 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 + # source://activesupport//lib/active_support/multibyte/chars.rb#129 def titlecase; end # Capitalizes the first letter of every word, when possible. @@ -9308,12 +9360,12 @@ class ActiveSupport::Multibyte::Chars # Returns the value of attribute wrapped_string. # - # source://activesupport//lib/active_support/multibyte/chars.rb#49 + # source://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 + # source://activesupport//lib/active_support/multibyte/chars.rb#51 def to_str; end # Returns the value of attribute wrapped_string. @@ -10677,16 +10729,16 @@ class ActiveSupport::NumberHelper::NumberConverter private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 def __class_attr_namespace; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # source://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 + # source://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 + # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 def __class_attr_validate_float=(new_value); end end end @@ -10710,10 +10762,10 @@ class ActiveSupport::NumberHelper::NumberToCurrencyConverter < ::ActiveSupport:: class << self private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://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 + # source://activesupport//lib/active_support/number_helper/number_to_currency_converter.rb#8 def __class_attr_namespace=(new_value); end end end @@ -10734,10 +10786,10 @@ class ActiveSupport::NumberHelper::NumberToDelimitedConverter < ::ActiveSupport: class << self private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://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 + # source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#8 def __class_attr_validate_float=(new_value); end end end @@ -10767,16 +10819,16 @@ class ActiveSupport::NumberHelper::NumberToHumanConverter < ::ActiveSupport::Num class << self private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://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 + # source://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 + # source://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 + # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#13 def __class_attr_validate_float=(new_value); end end end @@ -10817,16 +10869,16 @@ class ActiveSupport::NumberHelper::NumberToHumanSizeConverter < ::ActiveSupport: class << self private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://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 + # source://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 + # source://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 + # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#11 def __class_attr_validate_float=(new_value); end end end @@ -10842,10 +10894,10 @@ class ActiveSupport::NumberHelper::NumberToPercentageConverter < ::ActiveSupport class << self private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://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 + # source://activesupport//lib/active_support/number_helper/number_to_percentage_converter.rb#8 def __class_attr_namespace=(new_value); end end end @@ -10900,16 +10952,16 @@ class ActiveSupport::NumberHelper::NumberToRoundedConverter < ::ActiveSupport::N class << self private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://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 + # source://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 + # source://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 + # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#9 def __class_attr_validate_float=(new_value); end end end @@ -11049,7 +11101,7 @@ module ActiveSupport::NumericWithFormat # separator: ',', # significant: false) # => "1,2 Million" # - # source://activesupport//lib/active_support/core_ext/numeric/conversions.rb#113 + # source://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 @@ -11272,6 +11324,8 @@ class ActiveSupport::OrderedOptions < ::Hash protected # preserve the original #[] method + # + # source://activesupport//lib/active_support/ordered_options.rb#34 def _get(_arg0); end private @@ -11401,7 +11455,7 @@ 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 + # source://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. @@ -11461,16 +11515,16 @@ class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper # source://activesupport//lib/active_support/reloader.rb#99 def initialize; end - # source://activesupport//lib/active_support/callbacks.rb#924 + # source://activesupport//lib/active_support/reloader.rb#31 def _class_unload_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#924 + # source://activesupport//lib/active_support/reloader.rb#29 def _prepare_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#912 + # source://activesupport//lib/active_support/reloader.rb#31 def _run_class_unload_callbacks(&block); end - # source://activesupport//lib/active_support/callbacks.rb#912 + # source://activesupport//lib/active_support/reloader.rb#29 def _run_prepare_callbacks(&block); end # source://activesupport//lib/active_support/reloader.rb#85 @@ -11512,16 +11566,16 @@ class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper def run!; end class << self - # source://activesupport//lib/active_support/callbacks.rb#916 + # source://activesupport//lib/active_support/reloader.rb#31 def _class_unload_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # source://activesupport//lib/active_support/reloader.rb#31 def _class_unload_callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#916 + # source://activesupport//lib/active_support/reloader.rb#29 def _prepare_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # source://activesupport//lib/active_support/reloader.rb#29 def _prepare_callbacks=(value); end # Registers a callback that will run immediately after the classes are unloaded. @@ -11581,22 +11635,22 @@ class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://activesupport//lib/active_support/reloader.rb#29 def __class_attr___callbacks; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # source://activesupport//lib/active_support/reloader.rb#29 def __class_attr___callbacks=(new_value); end - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://activesupport//lib/active_support/reloader.rb#85 def __class_attr_check; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # source://activesupport//lib/active_support/reloader.rb#85 def __class_attr_check=(new_value); end - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://activesupport//lib/active_support/reloader.rb#84 def __class_attr_executor; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # source://activesupport//lib/active_support/reloader.rb#84 def __class_attr_executor=(new_value); end end end @@ -11724,7 +11778,7 @@ class ActiveSupport::SafeBuffer < ::String # source://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 + # source://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 @@ -11736,22 +11790,22 @@ class ActiveSupport::SafeBuffer < ::String # source://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#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def capitalize(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def capitalize!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def chomp(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def chomp!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def chop(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def chop!(*args); end # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#59 @@ -11760,57 +11814,57 @@ class ActiveSupport::SafeBuffer < ::String # source://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#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def delete(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def delete!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def delete_prefix(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def delete_prefix!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def delete_suffix(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def delete_suffix!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def downcase(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def downcase!(*args); end # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#146 def encode_with(coder); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#167 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#166 def gsub(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#178 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#166 def gsub!(*args, &block); end # Returns the value of attribute html_safe. # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#134 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#135 def html_safe?; end # source://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#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def lstrip(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def lstrip!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def next(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def next!(*args); end # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#96 @@ -11819,16 +11873,16 @@ class ActiveSupport::SafeBuffer < ::String # source://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#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def reverse(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def reverse!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def rstrip(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def rstrip!(*args); end # @raise [SafeConcatError] @@ -11836,46 +11890,46 @@ class ActiveSupport::SafeBuffer < ::String # source://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#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def scrub(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def scrub!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#38 + # source://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 def slice!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def squeeze(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def squeeze!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def strip(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def strip!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#167 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#166 def sub(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#178 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#166 def sub!(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def succ(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def succ!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def swapcase(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def swapcase!(*args); end # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#142 @@ -11884,28 +11938,28 @@ class ActiveSupport::SafeBuffer < ::String # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#138 def to_s; end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def tr(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def tr!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def tr_s(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def tr_s!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def unicode_normalize(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def unicode_normalize!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def upcase(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152 def upcase!(*args); end private @@ -11919,6 +11973,7 @@ class ActiveSupport::SafeBuffer < ::String # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#75 def initialize_copy(other); end + # source://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#205 @@ -12011,7 +12066,7 @@ module ActiveSupport::SecurityUtils class << self # @raise [ArgumentError] # - # source://activesupport//lib/active_support/security_utils.rb#11 + # source://activesupport//lib/active_support/security_utils.rb#25 def fixed_length_secure_compare(a, b); end # Secure string comparison for strings of variable length. @@ -12021,7 +12076,7 @@ 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 + # source://activesupport//lib/active_support/security_utils.rb#36 def secure_compare(a, b); end end end @@ -12088,16 +12143,16 @@ end class ActiveSupport::Subscriber # @return [Subscriber] a new instance of Subscriber # - # source://activesupport//lib/active_support/subscriber.rb#131 + # source://activesupport//lib/active_support/subscriber.rb#70 def initialize; end - # source://activesupport//lib/active_support/subscriber.rb#136 + # source://activesupport//lib/active_support/subscriber.rb#70 def call(event); end - # source://activesupport//lib/active_support/subscriber.rb#129 + # source://activesupport//lib/active_support/subscriber.rb#70 def patterns; end - # source://activesupport//lib/active_support/subscriber.rb#141 + # source://activesupport//lib/active_support/subscriber.rb#70 def publish_event(event); end class << self @@ -12345,98 +12400,98 @@ class ActiveSupport::TestCase < ::Minitest::Test extend ::ActiveSupport::Testing::SetupAndTeardown::ClassMethods extend ::ActiveSupport::Testing::Declarative - # source://activesupport//lib/active_support/callbacks.rb#69 + # source://activesupport//lib/active_support/test_case.rb#145 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#912 + # source://activesupport//lib/active_support/test_case.rb#145 def _run_setup_callbacks(&block); end - # source://activesupport//lib/active_support/callbacks.rb#912 + # source://activesupport//lib/active_support/test_case.rb#145 def _run_teardown_callbacks(&block); end - # source://activesupport//lib/active_support/callbacks.rb#924 + # source://activesupport//lib/active_support/test_case.rb#145 def _setup_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#924 + # source://activesupport//lib/active_support/test_case.rb#145 def _teardown_callbacks; end - # source://minitest/5.25.5/lib/minitest/assertions.rb#731 + # source://activesupport//lib/active_support/test_case.rb#241 def assert_no_match(matcher, obj, msg = T.unsafe(nil)); end - # source://minitest/5.25.5/lib/minitest/assertions.rb#660 + # source://activesupport//lib/active_support/test_case.rb#164 def assert_not_empty(obj, msg = T.unsafe(nil)); end - # source://minitest/5.25.5/lib/minitest/assertions.rb#671 + # source://activesupport//lib/active_support/test_case.rb#175 def assert_not_equal(exp, act, msg = T.unsafe(nil)); end - # source://minitest/5.25.5/lib/minitest/assertions.rb#683 + # source://activesupport//lib/active_support/test_case.rb#186 def assert_not_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.25.5/lib/minitest/assertions.rb#695 + # source://activesupport//lib/active_support/test_case.rb#197 def assert_not_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.25.5/lib/minitest/assertions.rb#702 + # source://activesupport//lib/active_support/test_case.rb#208 def assert_not_includes(collection, obj, msg = T.unsafe(nil)); end - # source://minitest/5.25.5/lib/minitest/assertions.rb#713 + # source://activesupport//lib/active_support/test_case.rb#219 def assert_not_instance_of(cls, obj, msg = T.unsafe(nil)); end - # source://minitest/5.25.5/lib/minitest/assertions.rb#723 + # source://activesupport//lib/active_support/test_case.rb#230 def assert_not_kind_of(cls, obj, msg = T.unsafe(nil)); end - # source://minitest/5.25.5/lib/minitest/assertions.rb#741 + # source://activesupport//lib/active_support/test_case.rb#252 def assert_not_nil(obj, msg = T.unsafe(nil)); end - # source://minitest/5.25.5/lib/minitest/assertions.rb#776 + # source://activesupport//lib/active_support/test_case.rb#263 def assert_not_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.25.5/lib/minitest/assertions.rb#799 + # source://activesupport//lib/active_support/test_case.rb#274 def assert_not_predicate(o1, op, msg = T.unsafe(nil)); end - # source://minitest/5.25.5/lib/minitest/assertions.rb#808 + # source://activesupport//lib/active_support/test_case.rb#285 def assert_not_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end - # source://minitest/5.25.5/lib/minitest/assertions.rb#817 + # source://activesupport//lib/active_support/test_case.rb#296 def assert_not_same(exp, act, msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport//lib/active_support/test_case.rb#152 def file_fixture_path; end - # source://activesupport//lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport//lib/active_support/test_case.rb#152 def file_fixture_path?; end # source://activesupport//lib/active_support/test_case.rb#300 def inspect; end - # source://minitest/5.25.5/lib/minitest.rb#376 + # source://activesupport//lib/active_support/test_case.rb#142 def method_name; end class << self - # source://activesupport//lib/active_support/callbacks.rb#69 + # source://activesupport//lib/active_support/test_case.rb#145 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#69 + # source://activesupport//lib/active_support/test_case.rb#145 def __callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#916 + # source://activesupport//lib/active_support/test_case.rb#145 def _setup_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # source://activesupport//lib/active_support/test_case.rb#145 def _setup_callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#916 + # source://activesupport//lib/active_support/test_case.rb#145 def _teardown_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # source://activesupport//lib/active_support/test_case.rb#145 def _teardown_callbacks=(value); end - # source://activesupport//lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport//lib/active_support/test_case.rb#152 def file_fixture_path; end - # source://activesupport//lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport//lib/active_support/test_case.rb#152 def file_fixture_path=(value); end - # source://activesupport//lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport//lib/active_support/test_case.rb#152 def file_fixture_path?; end # Parallelizes the test suite. @@ -12535,16 +12590,16 @@ class ActiveSupport::TestCase < ::Minitest::Test private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://activesupport//lib/active_support/test_case.rb#145 def __class_attr___callbacks; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # source://activesupport//lib/active_support/test_case.rb#145 def __class_attr___callbacks=(new_value); end - # source://activesupport//lib/active_support/class_attribute.rb#15 + # source://activesupport//lib/active_support/test_case.rb#152 def __class_attr_file_fixture_path; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # source://activesupport//lib/active_support/test_case.rb#152 def __class_attr_file_fixture_path=(new_value); end end end @@ -12731,7 +12786,7 @@ module ActiveSupport::Testing::Assertions # perform_service(param: 'exception') # end # - # source://activesupport//lib/active_support/testing/assertions.rb#34 + # source://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 @@ -12949,68 +13004,99 @@ class ActiveSupport::Testing::ErrorReporterAssertions::ErrorCollector::Report < # Returns the value of attribute context # # @return [Object] the current value of context + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 def source=(_); end class << self + # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 def [](*_arg0); end + + # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 def inspect; end + + # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 def keyword_init?; end + + # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 def members; end + + # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 def new(*_arg0); end end end @@ -13135,19 +13221,32 @@ class ActiveSupport::Testing::Parallelization::PrerecordResultClass < ::Struct # Returns the value of attribute name # # @return [Object] the current value of name + # + # source://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 + # + # source://activesupport//lib/active_support/testing/parallelization/server.rb#9 def name=(_); end class << self + # source://activesupport//lib/active_support/testing/parallelization/server.rb#9 def [](*_arg0); end + + # source://activesupport//lib/active_support/testing/parallelization/server.rb#9 def inspect; end + + # source://activesupport//lib/active_support/testing/parallelization/server.rb#9 def keyword_init?; end + + # source://activesupport//lib/active_support/testing/parallelization/server.rb#9 def members; end + + # source://activesupport//lib/active_support/testing/parallelization/server.rb#9 def new(*_arg0); end end end @@ -13383,41 +13482,62 @@ class ActiveSupport::Testing::SimpleStubs::Stub < ::Struct # Returns the value of attribute method_name # # @return [Object] the current value of method_name + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://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 + # + # source://activesupport//lib/active_support/testing/time_helpers.rb#10 def original_method=(_); end class << self + # source://activesupport//lib/active_support/testing/time_helpers.rb#10 def [](*_arg0); end + + # source://activesupport//lib/active_support/testing/time_helpers.rb#10 def inspect; end + + # source://activesupport//lib/active_support/testing/time_helpers.rb#10 def keyword_init?; end + + # source://activesupport//lib/active_support/testing/time_helpers.rb#10 def members; end + + # source://activesupport//lib/active_support/testing/time_helpers.rb#10 def new(*_arg0); end end end @@ -13590,7 +13710,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 + # source://activesupport//lib/active_support/testing/time_helpers.rb#239 def unfreeze_time; end private @@ -13738,6 +13858,7 @@ class ActiveSupport::TimeWithZone # source://activesupport//lib/active_support/time_with_zone.rb#430 def advance(options); end + # source://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 @@ -13777,6 +13898,7 @@ class ActiveSupport::TimeWithZone # source://activesupport//lib/active_support/time_with_zone.rb#166 def as_json(options = T.unsafe(nil)); end + # source://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 @@ -13817,10 +13939,10 @@ class ActiveSupport::TimeWithZone # Returns a Time instance of the simultaneous time in the UTC timezone. # - # source://activesupport//lib/active_support/time_with_zone.rb#63 + # source://activesupport//lib/active_support/time_with_zone.rb#66 def comparable_time; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # source://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 @@ -13869,17 +13991,17 @@ class ActiveSupport::TimeWithZone # Returns a Time instance of the simultaneous time in the UTC timezone. # - # source://activesupport//lib/active_support/time_with_zone.rb#63 + # source://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 + # source://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 + # source://activesupport//lib/active_support/time_with_zone.rb#68 def getutc; end # Returns true if the current time zone is set to UTC. @@ -13891,28 +14013,28 @@ class ActiveSupport::TimeWithZone # # @return [Boolean] # - # source://activesupport//lib/active_support/time_with_zone.rb#105 + # source://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 + # source://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 + # source://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 + # source://activesupport//lib/active_support/time_with_zone.rb#115 def gmtoff; end # source://activesupport//lib/active_support/time_with_zone.rb#278 def hash; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # source://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 @@ -13940,7 +14062,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 + # source://activesupport//lib/active_support/time_with_zone.rb#316 def in(other); end # Returns the simultaneous time in Time.zone, or the specified zone. @@ -13974,7 +14096,7 @@ class ActiveSupport::TimeWithZone # # @return [Boolean] # - # source://activesupport//lib/active_support/time_with_zone.rb#94 + # source://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 @@ -13982,14 +14104,14 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.xmlschema # => "2014-12-04T11:02:37-05:00" # - # source://activesupport//lib/active_support/time_with_zone.rb#148 + # source://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 + # source://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. @@ -14003,7 +14125,7 @@ class ActiveSupport::TimeWithZone # source://activesupport//lib/active_support/time_with_zone.rb#533 def marshal_load(variables); end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # source://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 @@ -14012,13 +14134,13 @@ class ActiveSupport::TimeWithZone # source://activesupport//lib/active_support/time_with_zone.rb#553 def method_missing(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # source://activesupport//lib/active_support/time_with_zone.rb#441 def min; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # source://activesupport//lib/active_support/time_with_zone.rb#441 def mon; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # source://activesupport//lib/active_support/time_with_zone.rb#441 def month; end # Returns true if the current object's time falls within @@ -14026,10 +14148,10 @@ class ActiveSupport::TimeWithZone # # @return [Boolean] # - # source://activesupport//lib/active_support/time_with_zone.rb#256 + # source://activesupport//lib/active_support/time_with_zone.rb#259 def next_day?; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # source://activesupport//lib/active_support/time_with_zone.rb#441 def nsec; end # Returns true if the current object's time is in the past. @@ -14054,7 +14176,7 @@ class ActiveSupport::TimeWithZone # # @return [Boolean] # - # source://activesupport//lib/active_support/time_with_zone.rb#263 + # source://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 @@ -14078,7 +14200,7 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.xmlschema # => "2014-12-04T11:02:37-05:00" # - # source://activesupport//lib/active_support/time_with_zone.rb#148 + # source://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 @@ -14086,10 +14208,10 @@ 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 + # source://activesupport//lib/active_support/time_with_zone.rb#197 def rfc822; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # source://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 @@ -14109,7 +14231,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 + # source://activesupport//lib/active_support/time_with_zone.rb#315 def since(other); end # Replaces %Z directive with +zone before passing to Time#strftime, @@ -14137,7 +14259,7 @@ class ActiveSupport::TimeWithZone # source://activesupport//lib/active_support/time_with_zone.rb#453 def to_a; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # source://activesupport//lib/active_support/time_with_zone.rb#441 def to_date; end # Returns an instance of DateTime with the timezone's UTC offset @@ -14165,7 +14287,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 + # source://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. @@ -14229,10 +14351,10 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.to_i # => 1417709320 # - # source://activesupport//lib/active_support/time_with_zone.rb#469 + # source://activesupport//lib/active_support/time_with_zone.rb#472 def tv_sec; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # source://activesupport//lib/active_support/time_with_zone.rb#441 def usec; end # Returns a Time instance of the simultaneous time in the UTC timezone. @@ -14257,7 +14379,7 @@ class ActiveSupport::TimeWithZone # source://activesupport//lib/active_support/time_with_zone.rb#111 def utc_offset; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # source://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 @@ -14268,10 +14390,10 @@ class ActiveSupport::TimeWithZone # source://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 + # source://activesupport//lib/active_support/time_with_zone.rb#441 def yday; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # source://activesupport//lib/active_support/time_with_zone.rb#441 def year; end # Returns true if the current object's time falls within @@ -14615,6 +14737,7 @@ class ActiveSupport::TimeZone # source://activesupport//lib/active_support/values/time_zone.rb#260 def country_zones(country_code); end + # source://activesupport//lib/active_support/values/time_zone.rb#211 def create(*_arg0); end # source://activesupport//lib/active_support/values/time_zone.rb#207 @@ -14687,7 +14810,7 @@ ActiveSupport::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) ActiveSupport::VERSION::MINOR = T.let(T.unsafe(nil), Integer) # source://activesupport//lib/active_support/gem_version.rb#13 -ActiveSupport::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) +ActiveSupport::VERSION::PRE = T.let(T.unsafe(nil), String) # source://activesupport//lib/active_support/gem_version.rb#15 ActiveSupport::VERSION::STRING = T.let(T.unsafe(nil), String) @@ -14956,6 +15079,16 @@ class Array # source://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] + # + # source://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. # @@ -15173,7 +15306,7 @@ 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 + # source://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 @@ -15343,7 +15476,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 + # source://activesupport//lib/active_support/core_ext/array/access.rb#50 def without(*elements); end class << self @@ -15405,9 +15538,6 @@ class BigDecimal < ::Numeric # # source://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 @@ -15511,7 +15641,7 @@ class Class < ::Module # class D < C; end # C.descendants # => [B, A, D] # - # source://activesupport//lib/active_support/descendants_tracker.rb#63 + # source://activesupport//lib/active_support/core_ext/class/subclasses.rb#19 def descendants; end # source://activesupport//lib/active_support/descendants_tracker.rb#59 @@ -15530,15 +15660,15 @@ class Date include ::DateAndTime::Zones include ::DateAndTime::Calculations - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#90 + # source://activesupport//lib/active_support/core_ext/date/calculations.rb#98 def +(other); end - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#100 + # source://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 + # source://activesupport//lib/active_support/core_ext/date/calculations.rb#160 def <=>(other); end # Duck-types as a Date-like class. See Object#acts_like?. @@ -15579,32 +15709,32 @@ class Date # 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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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) @@ -15635,6 +15765,12 @@ class Date # source://activesupport//lib/active_support/core_ext/date/calculations.rb#152 def compare_with_coercion(other); end + # source://activesupport//lib/active_support/core_ext/date/calculations.rb#159 + def compare_without_coercion(_arg0); end + + # source://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 @@ -15643,17 +15779,17 @@ class Date # 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 + # source://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 + # source://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 + # source://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) @@ -15663,20 +15799,26 @@ class Date # 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 + # source://activesupport//lib/active_support/core_ext/date/calculations.rb#70 def midnight; end # source://activesupport//lib/active_support/core_ext/date/calculations.rb#100 def minus_with_duration(other); end + # source://activesupport//lib/active_support/core_ext/date/calculations.rb#107 + def minus_without_duration(_arg0); 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 + # source://activesupport//lib/active_support/core_ext/date/calculations.rb#79 def noon; end # source://activesupport//lib/active_support/core_ext/date/calculations.rb#90 def plus_with_duration(other); end + # source://activesupport//lib/active_support/core_ext/date/calculations.rb#97 + def plus_without_duration(_arg0); end + # @return [Boolean] # # source://activesupport//lib/active_support/core_ext/date/blank.rb#15 @@ -15719,7 +15861,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 + # source://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. @@ -15766,7 +15908,7 @@ class Date # # @raise [ArgumentError] # - # source://activesupport//lib/active_support/core_ext/date/conversions.rb#83 + # source://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 @@ -15775,7 +15917,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 + # source://activesupport//lib/active_support/core_ext/date/conversions.rb#88 def xmlschema; end class << self @@ -15881,7 +16023,7 @@ 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 + # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#128 def at_beginning_of_month; end # Returns a new date/time at the start of the quarter. @@ -15894,7 +16036,7 @@ 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 + # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#143 def at_beginning_of_quarter; end # Returns a new date/time representing the start of this week on the given day. @@ -15902,7 +16044,7 @@ module DateAndTime::Calculations # +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 + # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#271 def at_beginning_of_week(start_day = T.unsafe(nil)); end # Returns a new date/time at the beginning of the year. @@ -15915,13 +16057,13 @@ 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 + # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#182 def at_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. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#296 + # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#300 def at_end_of_month; end # Returns a new date/time at the end of the quarter. @@ -15934,7 +16076,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 + # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#158 def at_end_of_quarter; end # Returns a new date/time representing the end of this week on the given day. @@ -15942,13 +16084,13 @@ 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 + # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#286 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 + # source://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. @@ -16069,7 +16211,7 @@ module DateAndTime::Calculations # Short-hand for months_ago(3). # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#245 + # source://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. @@ -16077,12 +16219,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 + # source://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 + # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#237 def last_weekday; end # Short-hand for years_ago(1). @@ -16110,7 +16252,7 @@ module DateAndTime::Calculations # # @return [Boolean] # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#35 + # source://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. @@ -16177,7 +16319,7 @@ module DateAndTime::Calculations # # @return [Boolean] # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#41 + # source://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. @@ -16310,7 +16452,7 @@ 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 + # source://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 @@ -16398,52 +16540,52 @@ class DateTime < ::Date # Returns a new DateTime representing the start of the day (0:00). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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). @@ -16487,6 +16629,9 @@ class DateTime < ::Date # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#51 def change(options); end + # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#59 + 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 @@ -16517,12 +16662,12 @@ 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 + # source://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 + # source://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. @@ -16530,7 +16675,7 @@ 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 + # source://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. @@ -16538,19 +16683,19 @@ 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 + # source://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 + # source://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#56 + # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#60 def inspect; end # Returns a Time instance of the simultaneous time in the system timezone. @@ -16560,7 +16705,7 @@ class DateTime < ::Date # Returns a new DateTime representing the middle of the day (12:00) # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130 + # source://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) @@ -16570,12 +16715,12 @@ class DateTime < ::Date # Returns a new DateTime representing the start of the day (0:00). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122 + # source://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 + # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#134 def noon; end # Returns the fraction of a second as nanoseconds @@ -16656,7 +16801,7 @@ 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#35 + # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#42 def to_formatted_s(format = T.unsafe(nil)); end # Convert to a formatted string. See Time::DATE_FORMATS for predefined formats. @@ -16698,7 +16843,7 @@ 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 + # source://activesupport//lib/active_support/core_ext/date_time/compatibility.rb#9 def to_time; end # Returns the fraction of a second as microseconds @@ -16813,15 +16958,7 @@ Digest::UUID::URL_NAMESPACE = T.let(T.unsafe(nil), String) # source://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 +module ERB::Escape; end # source://activesupport//lib/active_support/core_ext/erb/util.rb#39 module ERB::Util @@ -16912,12 +17049,6 @@ module ERB::Util 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') @@ -16926,7 +17057,7 @@ module ERB::Util # html_escape_once('<< Accept & Checkout') # # => "<< Accept & Checkout" # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#63 + # source://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 @@ -16985,7 +17116,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 + # source://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 @@ -17004,7 +17135,7 @@ 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 + # source://activesupport//lib/active_support/core_ext/erb/util.rb#157 def xml_name_escape(name); end end end @@ -17204,7 +17335,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 + # source://activesupport//lib/active_support/core_ext/enumerable.rb#136 def without(*elements); end end @@ -17306,6 +17437,16 @@ class Hash # source://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] + # + # source://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#222 @@ -17456,7 +17597,7 @@ 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 + # source://activesupport//lib/active_support/core_ext/hash/indifferent_access.rb#23 def nested_under_indifferent_access; end # @return [Boolean] @@ -17485,7 +17626,7 @@ class Hash # Destructive +reverse_merge+. # - # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#20 + # source://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. @@ -17539,13 +17680,13 @@ class Hash # hash.symbolize_keys # # => {:name=>"Rob", :age=>"28"} # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#27 + # source://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 + # source://activesupport//lib/active_support/core_ext/hash/keys.rb#37 def to_options!; end # Returns a string representation of the receiver suitable for use as a URL @@ -17562,7 +17703,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#75 + # source://activesupport//lib/active_support/core_ext/object/to_query.rb#86 def to_param(namespace = T.unsafe(nil)); end # Returns a string representation of the receiver suitable for use as a URL @@ -17659,12 +17800,12 @@ 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 + # source://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 + # source://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: @@ -17746,51 +17887,7 @@ 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 - - # 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 +module I18n; end # source://activesupport//lib/active_support/i18n_railtie.rb#9 class I18n::Railtie < ::Rails::Railtie @@ -17905,16 +18002,7 @@ IO::Buffer::PAGE_SIZE = T.let(T.unsafe(nil), Integer) 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::ConsoleMode; end class IO::EAGAINWaitReadable < ::Errno::EAGAIN include ::IO::WaitReadable @@ -17936,7 +18024,6 @@ 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 @@ -17947,7 +18034,7 @@ class Integer < ::Numeric # # 2.months # => 2 months # - # source://activesupport//lib/active_support/core_ext/integer/time.rb#10 + # source://activesupport//lib/active_support/core_ext/integer/time.rb#13 def month; end # Returns a Duration instance matching the number of months provided. @@ -17961,7 +18048,7 @@ class Integer < ::Numeric # # 2.years # => 2 years # - # source://activesupport//lib/active_support/core_ext/integer/time.rb#18 + # source://activesupport//lib/active_support/core_ext/integer/time.rb#21 def year; end # Returns a Duration instance matching the number of years provided. @@ -18125,7 +18212,7 @@ class Module # 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 + # source://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 @@ -18211,7 +18298,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 + # source://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. @@ -18263,7 +18350,7 @@ class Module # # @raise [TypeError] # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#55 + # source://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 @@ -18313,7 +18400,7 @@ class Module # # @raise [TypeError] # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#121 + # source://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 @@ -18842,7 +18929,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 + # source://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 # Defines a per-thread class attribute and creates class and instance reader methods. @@ -18872,7 +18959,7 @@ class Module # # Current.new.user # => NoMethodError # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#41 + # source://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 # Defines a per-thread class attribute and creates a class and instance writer methods to @@ -18894,7 +18981,7 @@ class Module # # Current.new.user = "DHH" # => NoMethodError # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#101 + # source://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. @@ -19256,7 +19343,7 @@ class Numeric # # 2.bytes # => 2 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#15 + # source://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 @@ -19270,7 +19357,7 @@ class Numeric # # 2.days # => 2 days # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#37 + # source://activesupport//lib/active_support/core_ext/numeric/time.rb#40 def day; end # Returns a Duration instance matching the number of days provided. @@ -19284,7 +19371,7 @@ class Numeric # # 2.exabytes # => 2_305_843_009_213_693_952 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#63 + # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#66 def exabyte; end # Returns the number of bytes equivalent to the exabytes provided. @@ -19298,7 +19385,7 @@ class Numeric # # 2.fortnights # => 4 weeks # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#53 + # source://activesupport//lib/active_support/core_ext/numeric/time.rb#56 def fortnight; end # Returns a Duration instance matching the number of fortnights provided. @@ -19312,7 +19399,7 @@ class Numeric # # 2.gigabytes # => 2_147_483_648 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#39 + # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#42 def gigabyte; end # Returns the number of bytes equivalent to the gigabytes provided. @@ -19326,7 +19413,7 @@ class Numeric # # 2.hours # => 2 hours # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#29 + # source://activesupport//lib/active_support/core_ext/numeric/time.rb#32 def hour; end # Returns a Duration instance matching the number of hours provided. @@ -19354,7 +19441,7 @@ class Numeric # # 2.kilobytes # => 2048 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#23 + # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#26 def kilobyte; end # Returns the number of bytes equivalent to the kilobytes provided. @@ -19368,7 +19455,7 @@ class Numeric # # 2.megabytes # => 2_097_152 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#31 + # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#34 def megabyte; end # Returns the number of bytes equivalent to the megabytes provided. @@ -19382,7 +19469,7 @@ class Numeric # # 2.minutes # => 2 minutes # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#21 + # source://activesupport//lib/active_support/core_ext/numeric/time.rb#24 def minute; end # Returns a Duration instance matching the number of minutes provided. @@ -19396,7 +19483,7 @@ class Numeric # # 2.petabytes # => 2_251_799_813_685_248 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#55 + # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#58 def petabyte; end # Returns the number of bytes equivalent to the petabytes provided. @@ -19415,7 +19502,7 @@ class Numeric # # 2.seconds # => 2 seconds # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#13 + # source://activesupport//lib/active_support/core_ext/numeric/time.rb#16 def second; end # Returns a Duration instance matching the number of seconds provided. @@ -19429,7 +19516,7 @@ class Numeric # # 2.terabytes # => 2_199_023_255_552 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#47 + # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#50 def terabyte; end # Returns the number of bytes equivalent to the terabytes provided. @@ -19443,7 +19530,7 @@ class Numeric # # 2.weeks # => 2 weeks # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#45 + # source://activesupport//lib/active_support/core_ext/numeric/time.rb#48 def week; end # Returns a Duration instance matching the number of weeks provided. @@ -19457,7 +19544,7 @@ class Numeric # # 2.zettabytes # => 2_361_183_241_434_822_606_848 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#71 + # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#74 def zettabyte; end # Returns the number of bytes equivalent to the zettabytes provided. @@ -19848,6 +19935,12 @@ class Range # source://activesupport//lib/active_support/core_ext/range/compare_range.rb#41 def include?(value); end + # @raise [TypeError] + # @return [Boolean] + # + # source://activesupport//lib/active_support/core_ext/range/overlap.rb#39 + def overlaps?(_arg0); end + # source://activesupport//lib/active_support/core_ext/range/each.rb#12 def step(n = T.unsafe(nil), &block); end @@ -19984,7 +20077,7 @@ class String # # See ActiveSupport::Inflector.camelize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#101 + # source://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 @@ -20419,7 +20512,7 @@ class String # # See ActiveSupport::Inflector.titleize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#126 + # source://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 @@ -20604,6 +20697,14 @@ class Symbol # source://activesupport//lib/active_support/core_ext/object/json.rb#105 def as_json(options = T.unsafe(nil)); end + # A Symbol is blank if it's empty: + # + # :''.blank? # => true + # :symbol.blank? # => false + # + # source://activesupport//lib/active_support/core_ext/object/blank.rb#128 + def blank?; end + # @return [Boolean] # # source://activesupport//lib/active_support/core_ext/object/blank.rb#130 @@ -20631,20 +20732,20 @@ class Time include ::DateAndTime::Calculations include ::DateAndTime::Compatibility - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#297 + # source://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 + # source://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 + # source://activesupport//lib/active_support/core_ext/time/calculations.rb#345 def <=>(other); end # Duck-types as a Time-like class. See Object#acts_like?. @@ -20683,52 +20784,52 @@ class Time # Returns a new Time representing the start of the day (0:00) # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#238 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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) @@ -20779,6 +20880,9 @@ class Time # source://activesupport//lib/active_support/core_ext/time/calculations.rb#329 def compare_with_coercion(other); end + # source://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 @@ -20797,7 +20901,7 @@ class Time # 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 + # source://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 @@ -20806,6 +20910,9 @@ class Time # source://activesupport//lib/active_support/core_ext/time/calculations.rb#349 def eql_with_coercion(other); end + # source://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. # @@ -20817,12 +20924,12 @@ class Time # 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 + # source://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 + # source://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) @@ -20832,7 +20939,7 @@ class Time # Returns a new Time representing the start of the day (0:00) # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#238 + # source://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. @@ -20845,9 +20952,12 @@ class Time # source://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 + # source://activesupport//lib/active_support/core_ext/time/calculations.rb#324 def minus_without_coercion(other); end + # source://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 @@ -20865,12 +20975,15 @@ class Time # Returns a new Time representing the middle of the day (12:00) # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#246 + # source://activesupport//lib/active_support/core_ext/time/calculations.rb#250 def noon; end # source://activesupport//lib/active_support/core_ext/time/calculations.rb#297 def plus_with_duration(other); end + # source://activesupport//lib/active_support/core_ext/time/calculations.rb#304 + def plus_without_duration(_arg0); end + # @return [Boolean] # # source://activesupport//lib/active_support/core_ext/object/blank.rb#196 @@ -20894,6 +21007,11 @@ class Time # source://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+ + # + # source://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) @@ -20951,7 +21069,7 @@ 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 + # source://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. @@ -20987,7 +21105,7 @@ class Time # 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 + # source://activesupport//lib/active_support/core_ext/time/compatibility.rb#9 def to_time; end private @@ -21009,7 +21127,7 @@ class Time # 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 + # source://activesupport//lib/active_support/core_ext/time/calculations.rb#60 def at(time_or_number, *args, **_arg2); end # Layers additional behavior on Time.at so that ActiveSupport::TimeWithZone and DateTime @@ -21018,6 +21136,9 @@ class Time # source://activesupport//lib/active_support/core_ext/time/calculations.rb#45 def at_with_coercion(time_or_number, *args, **_arg2); end + # source://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 diff --git a/sorbet/rbi/gems/addressable@2.8.7.rbi b/sorbet/rbi/gems/addressable@2.8.7.rbi index 88c0fe90..13d9df6e 100644 --- a/sorbet/rbi/gems/addressable@2.8.7.rbi +++ b/sorbet/rbi/gems/addressable@2.8.7.rbi @@ -13,7 +13,7 @@ module Addressable; end # source://addressable//lib/addressable/idna/pure.rb#21 module Addressable::IDNA class << self - # source://addressable//lib/addressable/idna/pure.rb#117 + # source://addressable//lib/addressable/idna/pure.rb#122 def _deprecated_unicode_normalize_kc(value); end # Converts from a Unicode internationalized domain name to an ASCII @@ -29,6 +29,8 @@ module Addressable::IDNA def to_unicode(input); end # @deprecated Use {String#unicode_normalize(:nfkc)} instead + # + # source://addressable//lib/addressable/idna/pure.rb#117 def unicode_normalize_kc(*args, **_arg1, &block); end private @@ -197,7 +199,7 @@ class Addressable::URI # @param The [String, Addressable::URI, #to_str] URI to join with. # @return [Addressable::URI] The joined URI. # - # source://addressable//lib/addressable/uri.rb#1889 + # source://addressable//lib/addressable/uri.rb#1982 def +(uri); end # Returns true if the URI objects are equal. This method @@ -801,7 +803,7 @@ class Addressable::URI # # @return [String] The URI's String representation. # - # source://addressable//lib/addressable/uri.rb#2341 + # source://addressable//lib/addressable/uri.rb#2361 def to_str; end # The user component for this URI. @@ -969,7 +971,7 @@ class Addressable::URI # The return type is determined by the return_type # parameter. # - # source://addressable//lib/addressable/uri.rb#616 + # source://addressable//lib/addressable/uri.rb#651 def escape(uri, return_type = T.unsafe(nil)); end # Percent encodes a URI component. @@ -1002,7 +1004,7 @@ class Addressable::URI # character_class. # @return [String] The encoded component. # - # source://addressable//lib/addressable/uri.rb#403 + # source://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 @@ -1178,7 +1180,7 @@ class Addressable::URI # The return type is determined by the return_type # parameter. # - # source://addressable//lib/addressable/uri.rb#472 + # source://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. @@ -1197,7 +1199,7 @@ class Addressable::URI # The return type is determined by the return_type # parameter. # - # source://addressable//lib/addressable/uri.rb#472 + # source://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. @@ -1216,7 +1218,7 @@ class Addressable::URI # The return type is determined by the return_type # parameter. # - # source://addressable//lib/addressable/uri.rb#472 + # source://addressable//lib/addressable/uri.rb#503 def unescape_component(uri, return_type = T.unsafe(nil), leave_encoded = T.unsafe(nil)); end end end diff --git a/sorbet/rbi/gems/afm@0.2.2.rbi b/sorbet/rbi/gems/afm@1.0.0.rbi similarity index 78% rename from sorbet/rbi/gems/afm@0.2.2.rbi rename to sorbet/rbi/gems/afm@1.0.0.rbi index e0093449..479d8c0d 100644 --- a/sorbet/rbi/gems/afm@0.2.2.rbi +++ b/sorbet/rbi/gems/afm@1.0.0.rbi @@ -8,38 +8,38 @@ # source://afm//lib/afm.rb#1 module AFM; end -# source://afm//lib/afm.rb#34 +# source://afm//lib/afm.rb#32 class AFM::Font # Loading a Font Metrics file by absolute path (no automatic font path resolution) # # @return [Font] a new instance of Font # - # source://afm//lib/afm.rb#38 + # source://afm//lib/afm.rb#36 def initialize(filename); end # Get metadata by key # - # source://afm//lib/afm.rb#88 + # source://afm//lib/afm.rb#86 def [](key); end # Returns the value of attribute char_metrics. # - # source://afm//lib/afm.rb#35 + # source://afm//lib/afm.rb#33 def char_metrics; end # Returns the value of attribute char_metrics_by_code. # - # source://afm//lib/afm.rb#35 + # source://afm//lib/afm.rb#33 def char_metrics_by_code; end # Returns the value of attribute kern_pairs. # - # source://afm//lib/afm.rb#35 + # source://afm//lib/afm.rb#33 def kern_pairs; end # Returns the value of attribute metadata. # - # source://afm//lib/afm.rb#35 + # source://afm//lib/afm.rb#33 def metadata; end # Get metrics for character. Takes an integer (charcode) or @@ -47,16 +47,16 @@ class AFM::Font # since we only have a chartable for the Latin1 charset so far. # (shamelessly stolen from AFM.pm by Gisle Aas) # - # source://afm//lib/afm.rb#96 + # source://afm//lib/afm.rb#95 def metrics_for(char); end class << self # alias for new() # - # source://afm//lib/afm.rb#82 + # source://afm//lib/afm.rb#80 def from_file(file); end end end -# source://afm//lib/afm.rb#3 +# source://afm//lib/afm.rb#2 AFM::ISO_LATIN1_ENCODING = T.let(T.unsafe(nil), Array) diff --git a/sorbet/rbi/gems/android_key_attestation@0.3.0.rbi b/sorbet/rbi/gems/android_key_attestation@0.3.0.rbi index 74d5e5af..65c20570 100644 --- a/sorbet/rbi/gems/android_key_attestation@0.3.0.rbi +++ b/sorbet/rbi/gems/android_key_attestation@0.3.0.rbi @@ -266,28 +266,28 @@ class AndroidKeyAttestation::Statement # source://android_key_attestation//lib/android_key_attestation/statement.rb#26 def attestation_certificate; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://android_key_attestation//lib/android_key_attestation/statement.rb#17 def attestation_security_level(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://android_key_attestation//lib/android_key_attestation/statement.rb#17 def attestation_version(*args, **_arg1, &block); end # source://android_key_attestation//lib/android_key_attestation/statement.rb#46 def key_description; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://android_key_attestation//lib/android_key_attestation/statement.rb#17 def keymaster_security_level(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://android_key_attestation//lib/android_key_attestation/statement.rb#17 def keymaster_version(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://android_key_attestation//lib/android_key_attestation/statement.rb#17 def software_enforced(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://android_key_attestation//lib/android_key_attestation/statement.rb#17 def tee_enforced(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://android_key_attestation//lib/android_key_attestation/statement.rb#17 def unique_id(*args, **_arg1, &block); end # source://android_key_attestation//lib/android_key_attestation/statement.rb#37 diff --git a/sorbet/rbi/gems/annotaterb@4.14.0.rbi b/sorbet/rbi/gems/annotaterb@4.19.0.rbi similarity index 92% rename from sorbet/rbi/gems/annotaterb@4.14.0.rbi rename to sorbet/rbi/gems/annotaterb@4.19.0.rbi index d9cecc3f..b656c8d7 100644 --- a/sorbet/rbi/gems/annotaterb@4.14.0.rbi +++ b/sorbet/rbi/gems/annotaterb@4.19.0.rbi @@ -71,17 +71,17 @@ class AnnotateRb::ConfigGenerator end end -# source://annotaterb//lib/annotate_rb/config_loader.rb#8 +# source://annotaterb//lib/annotate_rb/config_loader.rb#10 class AnnotateRb::ConfigLoader class << self - # source://annotaterb//lib/annotate_rb/config_loader.rb#10 + # source://annotaterb//lib/annotate_rb/config_loader.rb#12 def load_config; end # Method from Rubocop::ConfigLoader # # @raise [TypeError] # - # source://annotaterb//lib/annotate_rb/config_loader.rb#21 + # source://annotaterb//lib/annotate_rb/config_loader.rb#23 def load_yaml_configuration(absolute_path); end # Read the specified file, or exit with a friendly, concise message on @@ -90,24 +90,24 @@ class AnnotateRb::ConfigLoader # # Method from Rubocop::ConfigLoader # - # source://annotaterb//lib/annotate_rb/config_loader.rb#38 + # source://annotaterb//lib/annotate_rb/config_loader.rb#41 def read_file(absolute_path); end # Method from Rubocop::ConfigLoader # - # source://annotaterb//lib/annotate_rb/config_loader.rb#45 + # source://annotaterb//lib/annotate_rb/config_loader.rb#48 def yaml_safe_load(yaml_code, filename); end # Method from Rubocop::ConfigLoader # - # source://annotaterb//lib/annotate_rb/config_loader.rb#56 + # source://annotaterb//lib/annotate_rb/config_loader.rb#59 def yaml_safe_load!(yaml_code, filename); end end end # Raised when a configuration file is not found. # -# source://annotaterb//lib/annotate_rb/config_loader.rb#5 +# source://annotaterb//lib/annotate_rb/config_loader.rb#7 class AnnotateRb::ConfigNotFoundError < ::StandardError; end # source://annotaterb//lib/annotate_rb/core.rb#4 @@ -166,13 +166,34 @@ class AnnotateRb::ModelAnnotator::AnnotatedFile::Generator private - # source://annotaterb//lib/annotate_rb/model_annotator/annotated_file/generator.rb#63 + # source://annotaterb//lib/annotate_rb/model_annotator/annotated_file/generator.rb#93 def content_annotated_after(parsed, content_without_annotations); end # source://annotaterb//lib/annotate_rb/model_annotator/annotated_file/generator.rb#47 def content_annotated_before(parsed, content_without_annotations, write_position); end - # source://annotaterb//lib/annotate_rb/model_annotator/annotated_file/generator.rb#75 + # Determines where to place the annotation based on the nested_position option. + # When nested_position is enabled, finds the most deeply nested class declaration + # to place annotations directly above nested classes instead of at the file top. + # + # source://annotaterb//lib/annotate_rb/model_annotator/annotated_file/generator.rb#65 + def determine_annotation_position(parsed); end + + # Calculates the indentation string to apply to annotations for nested positioning. + # Extracts leading whitespace from the target line to preserve visual hierarchy + # and readability of nested code structures. + # + # source://annotaterb//lib/annotate_rb/model_annotator/annotated_file/generator.rb#86 + def determine_indentation(content_without_annotations, line_number_before); end + + # Formats annotations with appropriate indentation for consistent code structure. + # Applies the same indentation level as the target line to maintain proper + # code alignment when using nested positioning. + # + # source://annotaterb//lib/annotate_rb/model_annotator/annotated_file/generator.rb#78 + def formatted_annotations(content_without_annotations, line_number_before); end + + # source://annotaterb//lib/annotate_rb/model_annotator/annotated_file/generator.rb#116 def wrapped_content(content); end end @@ -382,7 +403,7 @@ class AnnotateRb::ModelAnnotator::AnnotationDecider private - # source://annotaterb//lib/annotate_rb/model_annotator/annotation_decider.rb#57 + # source://annotaterb//lib/annotate_rb/model_annotator/annotation_decider.rb#46 def file_contains_skip_annotation; end end @@ -422,14 +443,14 @@ class AnnotateRb::ModelAnnotator::AnnotationDiffGenerator # @param annotation_block [String] The annotation block we intend to write to the model file # @return [AnnotationDiffGenerator] a new instance of AnnotationDiffGenerator # - # source://annotaterb//lib/annotate_rb/model_annotator/annotation_diff_generator.rb#24 + # source://annotaterb//lib/annotate_rb/model_annotator/annotation_diff_generator.rb#23 def initialize(file_content, annotation_block); end - # source://annotaterb//lib/annotate_rb/model_annotator/annotation_diff_generator.rb#29 + # source://annotaterb//lib/annotate_rb/model_annotator/annotation_diff_generator.rb#28 def generate; end class << self - # source://annotaterb//lib/annotate_rb/model_annotator/annotation_diff_generator.rb#17 + # source://annotaterb//lib/annotate_rb/model_annotator/annotation_diff_generator.rb#16 def call(file_content, annotation_block); end end end @@ -550,15 +571,6 @@ class AnnotateRb::ModelAnnotator::ColumnAnnotation::AnnotationBuilder # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/annotation_builder.rb#14 def build; end - - private - - # TODO: Simplify this conditional - # - # @return [Boolean] - # - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/annotation_builder.rb#37 - def is_column_primary_key?(model, column_name); end end # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/attributes_builder.rb#6 @@ -579,10 +591,10 @@ class AnnotateRb::ModelAnnotator::ColumnAnnotation::AttributesBuilder # # @return [Boolean] # - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/attributes_builder.rb#99 + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/attributes_builder.rb#105 def hide_default?; end - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/attributes_builder.rb#90 + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/attributes_builder.rb#96 def sorted_column_indices; end end @@ -595,50 +607,63 @@ AnnotateRb::ModelAnnotator::ColumnAnnotation::AttributesBuilder::NO_DEFAULT_COL_ class AnnotateRb::ModelAnnotator::ColumnAnnotation::ColumnComponent < ::AnnotateRb::ModelAnnotator::Components::Base # @return [ColumnComponent] a new instance of ColumnComponent # - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#12 - def initialize(name, max_size, type, attributes); end + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#13 + def initialize(column:, max_name_size:, type:, attributes:, position_of_column_comment:, max_attributes_size:); end # Returns the value of attribute attributes. # - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#10 + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#11 def attributes; end - # Returns the value of attribute max_size. + # Returns the value of attribute column. # - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#10 - def max_size; end + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#11 + def column; end - # Returns the value of attribute name. + # Returns the value of attribute max_attributes_size. + # + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#11 + def max_attributes_size; end + + # Returns the value of attribute max_name_size. # - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#10 + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#11 + def max_name_size; end + + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#22 def name; end - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#56 + # Returns the value of attribute position_of_column_comment. + # + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#11 + def position_of_column_comment; end + + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#74 def to_default; end - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#42 + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#54 def to_markdown; end - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#19 + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#31 def to_rdoc; end - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#27 + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#39 def to_yard; end # Returns the value of attribute type. # - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#10 + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#11 def type; end private - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#75 + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#98 def map_col_type_to_ruby_classes(col_type); end - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#65 + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#88 def mb_chars_ljust(string, length); end - # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#88 + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#111 def non_ascii_length(string); end end @@ -648,6 +673,9 @@ AnnotateRb::ModelAnnotator::ColumnAnnotation::ColumnComponent::BARE_TYPE_ALLOWAN # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#7 AnnotateRb::ModelAnnotator::ColumnAnnotation::ColumnComponent::MD_TYPE_ALLOWANCE = T.let(T.unsafe(nil), Integer) +# source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_component.rb#9 +AnnotateRb::ModelAnnotator::ColumnAnnotation::ColumnComponent::MIN_SPACES_BEFORE_COMMENT = T.let(T.unsafe(nil), Integer) + # source://annotaterb//lib/annotate_rb/model_annotator/column_annotation/column_wrapper.rb#6 class AnnotateRb::ModelAnnotator::ColumnAnnotation::ColumnWrapper # @return [ColumnWrapper] a new instance of ColumnWrapper @@ -1295,7 +1323,7 @@ class AnnotateRb::ModelAnnotator::IndexAnnotation::IndexComponent < ::AnnotateRb # @return [IndexComponent] a new instance of IndexComponent # # source://annotaterb//lib/annotate_rb/model_annotator/index_annotation/index_component.rb#9 - def initialize(index, max_size); end + def initialize(index, max_size, options); end # Returns the value of attribute index. # @@ -1307,15 +1335,20 @@ class AnnotateRb::ModelAnnotator::IndexAnnotation::IndexComponent < ::AnnotateRb # source://annotaterb//lib/annotate_rb/model_annotator/index_annotation/index_component.rb#7 def max_size; end - # source://annotaterb//lib/annotate_rb/model_annotator/index_annotation/index_component.rb#14 + # Returns the value of attribute options. + # + # source://annotaterb//lib/annotate_rb/model_annotator/index_annotation/index_component.rb#7 + def options; end + + # source://annotaterb//lib/annotate_rb/model_annotator/index_annotation/index_component.rb#15 def to_default; end - # source://annotaterb//lib/annotate_rb/model_annotator/index_annotation/index_component.rb#50 + # source://annotaterb//lib/annotate_rb/model_annotator/index_annotation/index_component.rb#62 def to_markdown; end private - # source://annotaterb//lib/annotate_rb/model_annotator/index_annotation/index_component.rb#92 + # source://annotaterb//lib/annotate_rb/model_annotator/index_annotation/index_component.rb#115 def columns_info; end end @@ -1356,89 +1389,111 @@ class AnnotateRb::ModelAnnotator::ModelFilesGetter private - # source://annotaterb//lib/annotate_rb/model_annotator/model_files_getter.rb#39 + # source://annotaterb//lib/annotate_rb/model_annotator/model_files_getter.rb#41 def list_model_files_from_argument(options); end end end # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#5 class AnnotateRb::ModelAnnotator::ModelWrapper - # Should be the wrapper for an ActiveRecord model that serves as the source of truth of the model - # of the model that we're annotating - # # @return [ModelWrapper] a new instance of ModelWrapper # - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#9 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#11 def initialize(klass, options); end - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#140 - def classified_sort(cols); end + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#145 + def _retrieve_indexes_from_table; end + + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#129 + def built_attributes; end - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#61 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#180 + def classified_sort(cols, grouped_polymorphic); end + + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#63 def column_defaults; end # Gets the columns of the ActiveRecord model, processes them, and then returns them. # - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#15 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#17 def columns; end - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#35 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#37 def connection; end # @return [Boolean] # - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#56 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#58 def has_table_comments?; end # These are the columns that the globalize gem needs to work but # are not necessary for the models to be displayed as annotations. # - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#164 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#215 def ignored_translation_table_columns; end + # TODO: Simplify this conditional + # + # @return [Boolean] + # + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#113 + def is_column_primary_key?(column_name); end + # Calculates the max width of the schema for the model by looking at the columns, schema comments, with respect # to the options. # - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#87 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#89 def max_schema_info_width; end - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#81 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#225 + def migration_version; end + + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#83 def model_name; end - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#44 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#176 + def position_of_column_comment; end + + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#46 def primary_key; end # Returns the unmodified model columns # - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#40 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#42 def raw_columns; end - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#109 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#141 def retrieve_indexes_from_table; end - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#52 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#54 def table_comments; end # @return [Boolean] # - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#48 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#50 def table_exists?; end - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#77 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#79 def table_name; end # Add columns managed by the globalize gem if this gem is being used. # TODO: Audit if this is still needed, it seems like Globalize gem is no longer maintained # - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#67 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#69 def translated_columns; end # @return [Boolean] # - # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#130 + # source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#166 def with_comments?; end end +# Should be the wrapper for an ActiveRecord model that serves as the source of truth of the model +# of the model that we're annotating +# +# source://annotaterb//lib/annotate_rb/model_annotator/model_wrapper.rb#9 +AnnotateRb::ModelAnnotator::ModelWrapper::DEFAULT_TIMESTAMP_COLUMNS = T.let(T.unsafe(nil), Array) + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#5 class AnnotateRb::ModelAnnotator::PatternGetter # @return [PatternGetter] a new instance of PatternGetter @@ -1451,46 +1506,46 @@ class AnnotateRb::ModelAnnotator::PatternGetter private - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#123 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#126 def active_admin_files(root_directory); end - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#117 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#120 def additional_file_patterns; end - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#104 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#107 def controller_files(root_directory); end - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#110 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#113 def controller_test_files(root_directory); end - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#169 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#172 def factory_files(root_directory); end - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#144 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#147 def fixture_files(root_directory); end - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#84 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#87 def generate(root_directory, pattern_type); end - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#130 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#133 def helper_files(root_directory); end - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#157 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#160 def request_spec_files(root_directory); end - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#163 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#166 def routing_spec_files(root_directory); end - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#153 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#156 def scaffold_files(root_directory); end - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#188 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#191 def serialize_files(root_directory); end - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#194 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#197 def serializer_test_files(root_directory); end - # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#136 + # source://annotaterb//lib/annotate_rb/model_annotator/pattern_getter.rb#139 def test_files(root_directory); end class << self @@ -1628,7 +1683,7 @@ class AnnotateRb::ModelAnnotator::ProjectAnnotator # source://annotaterb//lib/annotate_rb/model_annotator/project_annotator.rb#36 def build_instructions_for_file(file); end - # source://annotaterb//lib/annotate_rb/model_annotator/project_annotator.rb#58 + # source://annotaterb//lib/annotate_rb/model_annotator/project_annotator.rb#67 def model_files; end end @@ -1846,32 +1901,35 @@ class AnnotateRb::Options # @return [Options] a new instance of Options # - # source://annotaterb//lib/annotate_rb/options.rb#162 + # source://annotaterb//lib/annotate_rb/options.rb#172 def initialize(options = T.unsafe(nil), state = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://annotaterb//lib/annotate_rb/options.rb#170 def [](*args, **_arg1, &block); end - # source://annotaterb//lib/annotate_rb/options.rb#217 + # source://annotaterb//lib/annotate_rb/options.rb#232 def get_state(key); end - # source://annotaterb//lib/annotate_rb/options.rb#175 + # source://annotaterb//lib/annotate_rb/options.rb#185 def load_defaults; end - # source://annotaterb//lib/annotate_rb/options.rb#221 + # source://annotaterb//lib/annotate_rb/options.rb#236 def print; end - # source://annotaterb//lib/annotate_rb/options.rb#208 + # source://annotaterb//lib/annotate_rb/options.rb#223 def set_state(key, value, overwrite = T.unsafe(nil)); end - # source://annotaterb//lib/annotate_rb/options.rb#171 + # source://annotaterb//lib/annotate_rb/options.rb#181 def to_h; end + # source://annotaterb//lib/annotate_rb/options.rb#219 + def with_default_fallback(key); end + private # Guard against user inputting strings instead of symbols # - # source://annotaterb//lib/annotate_rb/options.rb#228 + # source://annotaterb//lib/annotate_rb/options.rb#243 def symbolize_exclude_tests; end class << self @@ -1880,31 +1938,31 @@ class AnnotateRb::Options end end -# source://annotaterb//lib/annotate_rb/options.rb#153 +# source://annotaterb//lib/annotate_rb/options.rb#163 AnnotateRb::Options::ALL_OPTION_KEYS = T.let(T.unsafe(nil), Array) -# source://annotaterb//lib/annotate_rb/options.rb#94 +# source://annotaterb//lib/annotate_rb/options.rb#100 AnnotateRb::Options::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) # source://annotaterb//lib/annotate_rb/options.rb#28 AnnotateRb::Options::FLAG_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://annotaterb//lib/annotate_rb/options.rb#96 +# source://annotaterb//lib/annotate_rb/options.rb#102 AnnotateRb::Options::FLAG_OPTION_KEYS = T.let(T.unsafe(nil), Array) -# source://annotaterb//lib/annotate_rb/options.rb#61 +# source://annotaterb//lib/annotate_rb/options.rb#64 AnnotateRb::Options::OTHER_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://annotaterb//lib/annotate_rb/options.rb#127 +# source://annotaterb//lib/annotate_rb/options.rb#136 AnnotateRb::Options::OTHER_OPTION_KEYS = T.let(T.unsafe(nil), Array) -# source://annotaterb//lib/annotate_rb/options.rb#85 +# source://annotaterb//lib/annotate_rb/options.rb#91 AnnotateRb::Options::PATH_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://annotaterb//lib/annotate_rb/options.rb#146 +# source://annotaterb//lib/annotate_rb/options.rb#156 AnnotateRb::Options::PATH_OPTION_KEYS = T.let(T.unsafe(nil), Array) -# source://annotaterb//lib/annotate_rb/options.rb#157 +# source://annotaterb//lib/annotate_rb/options.rb#167 AnnotateRb::Options::POSITION_DEFAULT = T.let(T.unsafe(nil), String) # source://annotaterb//lib/annotate_rb/options.rb#17 @@ -1933,13 +1991,13 @@ class AnnotateRb::Parser # source://annotaterb//lib/annotate_rb/parser.rb#160 def add_model_options_to_parser(option_parser); end - # source://annotaterb//lib/annotate_rb/parser.rb#357 + # source://annotaterb//lib/annotate_rb/parser.rb#367 def add_options_to_parser(option_parser); end - # source://annotaterb//lib/annotate_rb/parser.rb#286 + # source://annotaterb//lib/annotate_rb/parser.rb#296 def add_position_options_to_parser(option_parser); end - # source://annotaterb//lib/annotate_rb/parser.rb#269 + # source://annotaterb//lib/annotate_rb/parser.rb#279 def add_route_options_to_parser(option_parser); end # source://annotaterb//lib/annotate_rb/parser.rb#138 @@ -2108,6 +2166,7 @@ class AnnotateRb::RouteAnnotator::BaseProcessor private + # source://annotaterb//lib/annotate_rb/route_annotator/base_processor.rb#16 def new(*_arg0); end end end @@ -2157,6 +2216,7 @@ class AnnotateRb::RouteAnnotator::HeaderGenerator private + # source://annotaterb//lib/annotate_rb/route_annotator/header_generator.rb#13 def new(*_arg0); end # source://annotaterb//lib/annotate_rb/route_annotator/header_generator.rb#17 @@ -2233,11 +2293,30 @@ end # source://annotaterb//lib/annotate_rb/runner.rb#4 class AnnotateRb::Runner - # source://annotaterb//lib/annotate_rb/runner.rb#11 + # source://annotaterb//lib/annotate_rb/runner.rb#25 def run(args); end class << self - # source://annotaterb//lib/annotate_rb/runner.rb#6 + # source://annotaterb//lib/annotate_rb/runner.rb#8 def run(args); end + + # Returns the value of attribute runner. + # + # source://annotaterb//lib/annotate_rb/runner.rb#6 + def runner; end + + # @return [Boolean] + # + # source://annotaterb//lib/annotate_rb/runner.rb#16 + def running?; end + + private + + # Sets the attribute runner + # + # @param value the value to set the attribute runner to. + # + # source://annotaterb//lib/annotate_rb/runner.rb#22 + def runner=(_arg0); end end end diff --git a/sorbet/rbi/gems/ast@2.4.3.rbi b/sorbet/rbi/gems/ast@2.4.3.rbi index 29c5bccb..ffa2080a 100644 --- a/sorbet/rbi/gems/ast@2.4.3.rbi +++ b/sorbet/rbi/gems/ast@2.4.3.rbi @@ -77,14 +77,14 @@ class AST::Node # # @return [AST::Node] # - # source://ast//lib/ast/node.rb#168 + # source://ast//lib/ast/node.rb#172 def +(array); end # Appends `element` to `children` and returns the resulting node. # # @return [AST::Node] # - # source://ast//lib/ast/node.rb#177 + # source://ast//lib/ast/node.rb#181 def <<(element); end # Compares `self` to `other`, possibly converting with `to_ast`. Only @@ -123,7 +123,7 @@ class AST::Node # # @return self # - # source://ast//lib/ast/node.rb#115 + # source://ast//lib/ast/node.rb#118 def clone; end # Concatenates `array` with `children` and returns the resulting node. @@ -186,7 +186,7 @@ class AST::Node # # @return [Array] # - # source://ast//lib/ast/node.rb#56 + # source://ast//lib/ast/node.rb#57 def to_a; end # @return [AST::Node] self @@ -199,7 +199,7 @@ class AST::Node # @param indent [Integer] Base indentation level. # @return [String] # - # source://ast//lib/ast/node.rb#187 + # source://ast//lib/ast/node.rb#204 def to_s(indent = T.unsafe(nil)); end # Converts `self` to a pretty-printed s-expression. @@ -266,6 +266,7 @@ class AST::Node private + # source://ast//lib/ast/node.rb#107 def original_dup; end end diff --git a/sorbet/rbi/gems/base64@0.2.0.rbi b/sorbet/rbi/gems/base64@0.3.0.rbi similarity index 86% rename from sorbet/rbi/gems/base64@0.2.0.rbi rename to sorbet/rbi/gems/base64@0.3.0.rbi index c33e78e4..e8543fc5 100644 --- a/sorbet/rbi/gems/base64@0.2.0.rbi +++ b/sorbet/rbi/gems/base64@0.3.0.rbi @@ -7,7 +7,7 @@ # \Module \Base64 provides methods for: # -# - Encoding a binary string (containing non-ASCII characters) +# - \Encoding a binary string (containing non-ASCII characters) # as a string of printable ASCII characters. # - Decoding such an encoded string. # @@ -32,7 +32,7 @@ # # require 'base64' # -# == Encoding Character Sets +# == \Encoding Character Sets # # A \Base64-encoded string consists only of characters from a 64-character set: # @@ -145,7 +145,7 @@ # Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567" # Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError # -# \Method Base64.urlsafe_decode64 allows padding in +str+, +# \Method Base64.urlsafe_decode64 allows padding in the encoded string, # which if present, must be correct: # see {Padding}[Base64.html#module-Base64-label-Padding], above: # @@ -190,28 +190,34 @@ 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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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,7 +536,7 @@ module Base64 # Base64.urlsafe_encode64('*' * 46) # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg==" # - # source://base64//lib/base64.rb#328 + # source://base64//lib/base64.rb#343 def urlsafe_encode64(bin, padding: T.unsafe(nil)); end end end diff --git a/sorbet/rbi/gems/benchmark@0.4.0.rbi b/sorbet/rbi/gems/benchmark@0.4.1.rbi similarity index 89% rename from sorbet/rbi/gems/benchmark@0.4.0.rbi rename to sorbet/rbi/gems/benchmark@0.4.1.rbi index b1d8e205..e29780e7 100644 --- a/sorbet/rbi/gems/benchmark@0.4.0.rbi +++ b/sorbet/rbi/gems/benchmark@0.4.1.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 +# source://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 + # source://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 + # source://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 + # source://benchmark//lib/benchmark.rb#258 def bmbm(width = T.unsafe(nil)); end # Returns the time used to execute the given block as a @@ -235,7 +236,7 @@ module Benchmark # # 0.220000 0.000000 0.220000 ( 0.227313) # - # source://benchmark//lib/benchmark.rb#302 + # source://benchmark//lib/benchmark.rb#303 def measure(label = T.unsafe(nil)); end # Returns the elapsed real time used to execute the given block. @@ -244,7 +245,7 @@ module Benchmark # Benchmark.realtime { "a" * 1_000_000_000 } # #=> 0.5098029999935534 # - # source://benchmark//lib/benchmark.rb#321 + # source://benchmark//lib/benchmark.rb#322 def realtime; end class << self @@ -289,7 +290,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 + # source://benchmark//lib/benchmark.rb#328 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 @@ -312,7 +313,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 + # source://benchmark//lib/benchmark.rb#328 def bm(label_width = T.unsafe(nil), *labels, &blk); end # Sometimes benchmark results are skewed because code executed @@ -352,7 +353,7 @@ module Benchmark # #bmbm yields a Benchmark::Job object and returns an array of # Benchmark::Tms objects. # - # source://benchmark//lib/benchmark.rb#257 + # source://benchmark//lib/benchmark.rb#328 def bmbm(width = T.unsafe(nil)); end # Returns the time used to execute the given block as a @@ -371,7 +372,7 @@ module Benchmark # # 0.220000 0.000000 0.220000 ( 0.227313) # - # source://benchmark//lib/benchmark.rb#302 + # source://benchmark//lib/benchmark.rb#328 def measure(label = T.unsafe(nil)); end # Returns the elapsed real time used to execute the given block. @@ -380,7 +381,7 @@ module Benchmark # Benchmark.realtime { "a" * 1_000_000_000 } # #=> 0.5098029999935534 # - # source://benchmark//lib/benchmark.rb#321 + # source://benchmark//lib/benchmark.rb#328 def realtime; end end end @@ -388,7 +389,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 +# source://benchmark//lib/benchmark.rb#334 class Benchmark::Job # Returns an initialized Job instance. # Usually, one doesn't call this method directly, as new @@ -398,38 +399,38 @@ class Benchmark::Job # # @return [Job] a new instance of Job # - # source://benchmark//lib/benchmark.rb#341 + # source://benchmark//lib/benchmark.rb#342 def initialize(width); end # Registers the given label and block pair in the job list. # # @raise [ArgumentError] # - # source://benchmark//lib/benchmark.rb#349 + # source://benchmark//lib/benchmark.rb#350 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 + # source://benchmark//lib/benchmark.rb#362 def list; end # Registers the given label and block pair in the job list. # # @raise [ArgumentError] # - # source://benchmark//lib/benchmark.rb#349 + # source://benchmark//lib/benchmark.rb#359 def report(label = T.unsafe(nil), &blk); end # Length of the widest label in the #list. # - # source://benchmark//lib/benchmark.rb#364 + # source://benchmark//lib/benchmark.rb#365 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 +# source://benchmark//lib/benchmark.rb#372 class Benchmark::Report # Returns an initialized Report instance. # Usually, one doesn't call this method directly, as new @@ -439,43 +440,43 @@ class Benchmark::Report # # @return [Report] a new instance of Report # - # source://benchmark//lib/benchmark.rb#379 + # source://benchmark//lib/benchmark.rb#380 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 + # source://benchmark//lib/benchmark.rb#399 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 + # source://benchmark//lib/benchmark.rb#389 def item(label = T.unsafe(nil), *format, &blk); end # An array of Benchmark::Tms objects representing each item. # - # source://benchmark//lib/benchmark.rb#398 + # source://benchmark//lib/benchmark.rb#399 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 + # source://benchmark//lib/benchmark.rb#396 def report(label = T.unsafe(nil), *format, &blk); end # An array of Benchmark::Tms objects representing each item. # - # source://benchmark//lib/benchmark.rb#398 + # source://benchmark//lib/benchmark.rb#399 def width; end end # A data object, representing the times associated with a benchmark # measurement. # -# source://benchmark//lib/benchmark.rb#407 +# source://benchmark//lib/benchmark.rb#408 class Benchmark::Tms # Returns an initialized Tms object which has # +utime+ as the user CPU time, +stime+ as the system CPU time, @@ -484,13 +485,13 @@ class Benchmark::Tms # # @return [Tms] a new instance of Tms # - # source://benchmark//lib/benchmark.rb#442 + # source://benchmark//lib/benchmark.rb#443 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 + # source://benchmark//lib/benchmark.rb#491 def *(x); end # Returns a new Tms object obtained by memberwise summation @@ -498,27 +499,27 @@ class Benchmark::Tms # Tms object. # This method and #/() are useful for taking statistics. # - # source://benchmark//lib/benchmark.rb#477 + # source://benchmark//lib/benchmark.rb#478 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 + # source://benchmark//lib/benchmark.rb#485 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 + # source://benchmark//lib/benchmark.rb#498 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 + # source://benchmark//lib/benchmark.rb#452 def add(&blk); end # An in-place version of #add. @@ -526,17 +527,17 @@ class Benchmark::Tms # for this Tms object, plus the time required to execute # the code block (+blk+). # - # source://benchmark//lib/benchmark.rb#461 + # source://benchmark//lib/benchmark.rb#462 def add!(&blk); end # System CPU time of children # - # source://benchmark//lib/benchmark.rb#425 + # source://benchmark//lib/benchmark.rb#426 def cstime; end # User CPU time of children # - # source://benchmark//lib/benchmark.rb#422 + # source://benchmark//lib/benchmark.rb#423 def cutime; end # Returns the contents of this Tms object as @@ -545,7 +546,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 +554,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 + # source://benchmark//lib/benchmark.rb#517 def format(format = T.unsafe(nil), *args); end # Label # - # source://benchmark//lib/benchmark.rb#434 + # source://benchmark//lib/benchmark.rb#435 def label; end # Elapsed real time # - # source://benchmark//lib/benchmark.rb#428 + # source://benchmark//lib/benchmark.rb#429 def real; end # System CPU time # - # source://benchmark//lib/benchmark.rb#419 + # source://benchmark//lib/benchmark.rb#420 def stime; end # Returns a new 6-element array, consisting of the @@ -578,27 +579,27 @@ class Benchmark::Tms # user CPU time, children's system CPU time and elapsed # real time. # - # source://benchmark//lib/benchmark.rb#541 + # source://benchmark//lib/benchmark.rb#542 def to_a; end # Returns a hash containing the same data as `to_a`. # - # source://benchmark//lib/benchmark.rb#548 + # source://benchmark//lib/benchmark.rb#549 def to_h; end # Same as #format. # - # source://benchmark//lib/benchmark.rb#531 + # source://benchmark//lib/benchmark.rb#532 def to_s; end # Total time, that is +utime+ + +stime+ + +cutime+ + +cstime+ # - # source://benchmark//lib/benchmark.rb#431 + # source://benchmark//lib/benchmark.rb#432 def total; end # User CPU time # - # source://benchmark//lib/benchmark.rb#416 + # source://benchmark//lib/benchmark.rb#417 def utime; end protected @@ -610,9 +611,9 @@ class Benchmark::Tms # +op+ can be a mathematical operation such as +, -, # *, / # - # source://benchmark//lib/benchmark.rb#569 + # source://benchmark//lib/benchmark.rb#570 def memberwise(op, x); end end -# source://benchmark//lib/benchmark.rb#124 +# source://benchmark//lib/benchmark.rb#125 Benchmark::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/better_errors@2.10.1.rbi b/sorbet/rbi/gems/better_errors@2.10.1.rbi index f40c9679..95ac6b10 100644 --- a/sorbet/rbi/gems/better_errors@2.10.1.rbi +++ b/sorbet/rbi/gems/better_errors@2.10.1.rbi @@ -43,7 +43,7 @@ module BetterErrors # @private # @private # - # source://better_errors//lib/better_errors.rb#33 + # source://better_errors//lib/better_errors.rb#36 def binding_of_caller_available?; end # Automatically sniffs a default editor preset based on the EDITOR @@ -397,63 +397,92 @@ class BetterErrors::ErrorPage::VariableInfo < ::Struct # Returns the value of attribute editor_url # # @return [Object] the current value of editor_url + # + # source://better_errors//lib/better_errors/error_page.rb#10 def editor_url; end # Sets the attribute editor_url # # @param value [Object] the value to set the attribute editor_url to. # @return [Object] the newly set value + # + # source://better_errors//lib/better_errors/error_page.rb#10 def editor_url=(_); end # Returns the value of attribute frame # # @return [Object] the current value of frame + # + # source://better_errors//lib/better_errors/error_page.rb#10 def frame; end # Sets the attribute frame # # @param value [Object] the value to set the attribute frame to. # @return [Object] the newly set value + # + # source://better_errors//lib/better_errors/error_page.rb#10 def frame=(_); end # Returns the value of attribute rack_session # # @return [Object] the current value of rack_session + # + # source://better_errors//lib/better_errors/error_page.rb#10 def rack_session; end # Sets the attribute rack_session # # @param value [Object] the value to set the attribute rack_session to. # @return [Object] the newly set value + # + # source://better_errors//lib/better_errors/error_page.rb#10 def rack_session=(_); end # Returns the value of attribute rails_params # # @return [Object] the current value of rails_params + # + # source://better_errors//lib/better_errors/error_page.rb#10 def rails_params; end # Sets the attribute rails_params # # @param value [Object] the value to set the attribute rails_params to. # @return [Object] the newly set value + # + # source://better_errors//lib/better_errors/error_page.rb#10 def rails_params=(_); end # Returns the value of attribute start_time # # @return [Object] the current value of start_time + # + # source://better_errors//lib/better_errors/error_page.rb#10 def start_time; end # Sets the attribute start_time # # @param value [Object] the value to set the attribute start_time to. # @return [Object] the newly set value + # + # source://better_errors//lib/better_errors/error_page.rb#10 def start_time=(_); end class << self + # source://better_errors//lib/better_errors/error_page.rb#10 def [](*_arg0); end + + # source://better_errors//lib/better_errors/error_page.rb#10 def inspect; end + + # source://better_errors//lib/better_errors/error_page.rb#10 def keyword_init?; end + + # source://better_errors//lib/better_errors/error_page.rb#10 def members; end + + # source://better_errors//lib/better_errors/error_page.rb#10 def new(*_arg0); end end end 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@3.2.3.rbi b/sorbet/rbi/gems/bigdecimal@3.2.3.rbi new file mode 100644 index 00000000..1a0f7cf8 --- /dev/null +++ b/sorbet/rbi/gems/bigdecimal@3.2.3.rbi @@ -0,0 +1,312 @@ +# 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`. + + +# source://bigdecimal//lib/bigdecimal.rb#8 +class BigDecimal < ::Numeric + # source://bigdecimal//lib/bigdecimal.rb#5 + def %(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + 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. + # + # source://bigdecimal//lib/bigdecimal.rb#61 + def **(y); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def +(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def +@; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def -(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def -@; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def /(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def <(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def <=(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def <=>(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def ==(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def ===(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def >(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def >=(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def _decimal_shift(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def _dump(*_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def abs; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def add(_arg0, _arg1); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def ceil(*_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def clone; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def coerce(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def div(*_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def divmod(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def dup; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def eql?(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def exponent; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def finite?; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def fix; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def floor(*_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def frac; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def hash; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def infinite?; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def inspect; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def modulo(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def mult(_arg0, _arg1); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def n_significant_digits; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def nan?; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def nonzero?; end + + # call-seq: + # power(n) + # power(n, prec) + # + # Returns the value raised to the power of n. + # + # Also available as the operator **. + # + # source://bigdecimal//lib/bigdecimal.rb#81 + def power(y, prec = T.unsafe(nil)); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def precision; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def precision_scale; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def precs; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def quo(*_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def remainder(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def round(*_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def scale; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def sign; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def split; end + + # Returns the square root of the value. + # + # Result has at least prec significant digits. + # + # @raise [FloatDomainError] + # + # source://bigdecimal//lib/bigdecimal.rb#185 + def sqrt(prec); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + 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 + # + # 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 + + # source://bigdecimal//lib/bigdecimal.rb#5 + def to_f; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def to_i; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def to_int; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def to_r; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def to_s(format = T.unsafe(nil)); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def truncate(*_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def zero?; end + + class << self + # source://bigdecimal//lib/bigdecimal.rb#5 + def _load(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def double_fig; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def interpret_loosely(_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def limit(*_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def mode(*_arg0); end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def save_exception_mode; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def save_limit; end + + # source://bigdecimal//lib/bigdecimal.rb#5 + def save_rounding_mode; end + end +end + +# source://bigdecimal//lib/bigdecimal.rb#9 +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. + # + # @raise [ArgumentError] + # + # source://bigdecimal//lib/bigdecimal.rb#13 + def coerce_to_bigdecimal(x, prec, method_name); end + + # source://bigdecimal//lib/bigdecimal.rb#34 + def infinity_computation_result; end + + # source://bigdecimal//lib/bigdecimal.rb#41 + def nan_computation_result; end + + # @raise [ArgumentError] + # + # source://bigdecimal//lib/bigdecimal.rb#25 + def validate_prec(prec, method_name, accept_zero: T.unsafe(nil)); end + 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 diff --git a/sorbet/rbi/gems/bindata@2.5.0.rbi b/sorbet/rbi/gems/bindata@2.5.1.rbi similarity index 96% rename from sorbet/rbi/gems/bindata@2.5.0.rbi rename to sorbet/rbi/gems/bindata@2.5.1.rbi index b586835d..8d6f3d85 100644 --- a/sorbet/rbi/gems/bindata@2.5.0.rbi +++ b/sorbet/rbi/gems/bindata@2.5.1.rbi @@ -27,14 +27,14 @@ module BinData class << self # @yield [@tracer] # - # source://bindata//lib/bindata/trace.rb#41 + # source://bindata//lib/bindata/trace.rb#45 def trace_message; end # Turn on trace information when reading a BinData object. # If +block+ is given then the tracing only occurs for that block. # This is useful for debugging a BinData declaration. # - # source://bindata//lib/bindata/trace.rb#6 + # source://bindata//lib/bindata/trace.rb#45 def trace_reading(io = T.unsafe(nil)); end end end @@ -46,7 +46,7 @@ module BinData::AcceptedParametersPlugin # Default parameters can be overridden when instantiating a data object. # - # source://bindata//lib/bindata/params.rb#16 + # source://bindata//lib/bindata/params.rb#28 def default_parameter(*args); end # Default parameters can be overridden when instantiating a data object. @@ -56,7 +56,7 @@ module BinData::AcceptedParametersPlugin # Mandatory parameters must be present when instantiating a data object. # - # source://bindata//lib/bindata/params.rb#6 + # source://bindata//lib/bindata/params.rb#26 def mandatory_parameter(*args); end # Mandatory parameters must be present when instantiating a data object. @@ -72,7 +72,7 @@ module BinData::AcceptedParametersPlugin # Optional parameters may be present when instantiating a data object. # - # source://bindata//lib/bindata/params.rb#11 + # source://bindata//lib/bindata/params.rb#27 def optional_parameter(*args); end # Optional parameters may be present when instantiating a data object. @@ -172,7 +172,7 @@ class BinData::Array < ::BinData::Base include ::Enumerable extend ::BinData::DSLMixin - # source://bindata//lib/bindata/array.rb#106 + # source://bindata//lib/bindata/array.rb#110 def <<(*args); end # Returns the element at +index+. @@ -238,7 +238,7 @@ class BinData::Array < ::BinData::Base # source://bindata//lib/bindata/array.rb#182 def first(n = T.unsafe(nil)); end - # source://bindata//lib/bindata/array.rb#94 + # source://bindata//lib/bindata/array.rb#97 def index(obj); end # source://bindata//lib/bindata/array.rb#74 @@ -266,12 +266,12 @@ class BinData::Array < ::BinData::Base # source://bindata//lib/bindata/array.rb#106 def push(*args); end - # source://bindata//lib/bindata/array.rb#205 + # source://bindata//lib/bindata/array.rb#208 def size; end # Returns the element at +index+. # - # source://bindata//lib/bindata/array.rb#139 + # source://bindata//lib/bindata/array.rb#151 def slice(arg1, arg2 = T.unsafe(nil)); end # source://bindata//lib/bindata/array.rb#90 @@ -356,7 +356,7 @@ class BinData::Base include ::BinData::RegisterNamePlugin extend ::BinData::AcceptedParametersPlugin - # source://bindata//lib/bindata/warnings.rb#12 + # source://bindata//lib/bindata/base.rb#80 def initialize(*args); end # source://bindata//lib/bindata/base.rb#221 @@ -373,6 +373,7 @@ class BinData::Base # source://bindata//lib/bindata/base.rb#212 def abs_offset; end + # source://bindata//lib/bindata/base.rb#232 def base_respond_to?(*_arg0); end # Resets the internal state to that of a newly created object. @@ -527,7 +528,7 @@ class BinData::Base # # @return [Base] a new instance of Base # - # source://bindata//lib/bindata/base.rb#80 + # source://bindata//lib/bindata/warnings.rb#11 def initialize_without_warning(*args); end # Is this object tree currently being read? Used by BasePrimitive. @@ -771,7 +772,7 @@ class BinData::BasePrimitive < ::BinData::Base # source://bindata//lib/bindata/alignment.rb#80 def bit_aligned; end - # source://bindata//lib/bindata/base.rb#53 + # source://bindata//lib/bindata/bits.rb#15 def inherited(subclass); end end end @@ -842,14 +843,24 @@ end # source://bindata//lib/bindata/bits.rb#15 class BinData::Bit < ::BinData::BasePrimitive + # source://bindata//lib/bindata/bits.rb#27 def assign(val); end + + # source://bindata//lib/bindata/bits.rb#27 def bit_aligned?; end + + # source://bindata//lib/bindata/bits.rb#27 def do_num_bytes; end + + # source://bindata//lib/bindata/bits.rb#27 def do_write(io); end private + # source://bindata//lib/bindata/bits.rb#27 def read_and_return_value(io); end + + # source://bindata//lib/bindata/bits.rb#27 def sensible_default; end end @@ -948,14 +959,24 @@ end # source://bindata//lib/bindata/bits.rb#15 class BinData::BitLe < ::BinData::BasePrimitive + # source://bindata//lib/bindata/bits.rb#27 def assign(val); end + + # source://bindata//lib/bindata/bits.rb#27 def bit_aligned?; end + + # source://bindata//lib/bindata/bits.rb#27 def do_num_bytes; end + + # source://bindata//lib/bindata/bits.rb#27 def do_write(io); end private + # source://bindata//lib/bindata/bits.rb#27 def read_and_return_value(io); end + + # source://bindata//lib/bindata/bits.rb#27 def sensible_default; end end @@ -1159,14 +1180,22 @@ class BinData::Choice < ::BinData::Base extend ::BinData::DSLMixin extend ::BinData::TraceHook + # source://bindata//lib/bindata/choice.rb#98 def assign(*args); end + + # source://bindata//lib/bindata/choice.rb#98 def clear?(*args); end + + # source://bindata//lib/bindata/choice.rb#98 def do_num_bytes(*args); end + + # source://bindata//lib/bindata/choice.rb#98 def do_read(*args); end # source://bindata//lib/bindata/trace.rb#79 def do_read_with_hook(io); end + # source://bindata//lib/bindata/choice.rb#98 def do_write(*args); end # source://bindata//lib/bindata/choice.rb#74 @@ -1188,6 +1217,7 @@ class BinData::Choice < ::BinData::Base # source://bindata//lib/bindata/choice.rb#80 def selection; end + # source://bindata//lib/bindata/choice.rb#98 def snapshot(*args); end private @@ -1640,12 +1670,18 @@ end # # source://bindata//lib/bindata/float.rb#80 class BinData::DoubleBe < ::BinData::BasePrimitive + # source://bindata//lib/bindata/float.rb#22 def do_num_bytes; end private + # source://bindata//lib/bindata/float.rb#22 def read_and_return_value(io); end + + # source://bindata//lib/bindata/float.rb#22 def sensible_default; end + + # source://bindata//lib/bindata/float.rb#22 def value_to_binary_string(val); end end @@ -1653,12 +1689,18 @@ end # # source://bindata//lib/bindata/float.rb#75 class BinData::DoubleLe < ::BinData::BasePrimitive + # source://bindata//lib/bindata/float.rb#22 def do_num_bytes; end private + # source://bindata//lib/bindata/float.rb#22 def read_and_return_value(io); end + + # source://bindata//lib/bindata/float.rb#22 def sensible_default; end + + # source://bindata//lib/bindata/float.rb#22 def value_to_binary_string(val); end end @@ -1666,12 +1708,18 @@ end # # source://bindata//lib/bindata/float.rb#70 class BinData::FloatBe < ::BinData::BasePrimitive + # source://bindata//lib/bindata/float.rb#22 def do_num_bytes; end private + # source://bindata//lib/bindata/float.rb#22 def read_and_return_value(io); end + + # source://bindata//lib/bindata/float.rb#22 def sensible_default; end + + # source://bindata//lib/bindata/float.rb#22 def value_to_binary_string(val); end end @@ -1679,12 +1727,18 @@ end # # source://bindata//lib/bindata/float.rb#65 class BinData::FloatLe < ::BinData::BasePrimitive + # source://bindata//lib/bindata/float.rb#22 def do_num_bytes; end private + # source://bindata//lib/bindata/float.rb#22 def read_and_return_value(io); end + + # source://bindata//lib/bindata/float.rb#22 def sensible_default; end + + # source://bindata//lib/bindata/float.rb#22 def value_to_binary_string(val); end end @@ -2109,7 +2163,7 @@ class BinData::IO::Write # To be called after all +writebits+ have been applied. # - # source://bindata//lib/bindata/io.rb#251 + # source://bindata//lib/bindata/io.rb#258 def flush; end # To be called after all +writebits+ have been applied. @@ -2218,13 +2272,21 @@ end # # source://bindata//lib/bindata/int.rb#185 class BinData::Int8 < ::BinData::BasePrimitive + # source://bindata//lib/bindata/int.rb#29 def assign(val); end + + # source://bindata//lib/bindata/int.rb#29 def do_num_bytes; end private + # source://bindata//lib/bindata/int.rb#29 def read_and_return_value(io); end + + # source://bindata//lib/bindata/int.rb#29 def sensible_default; end + + # source://bindata//lib/bindata/int.rb#29 def value_to_binary_string(val); end end @@ -2449,11 +2511,6 @@ end # source://bindata//lib/bindata/record.rb#8 class BinData::Record < ::BinData::Struct extend ::BinData::DSLMixin - - class << self - # source://bindata//lib/bindata/base.rb#53 - def inherited(subclass); end - end end # source://bindata//lib/bindata/record.rb#16 @@ -2490,7 +2547,7 @@ end # A singleton registry of all registered classes. # -# source://bindata//lib/bindata/registry.rb#133 +# source://bindata//lib/bindata/registry.rb#128 BinData::RegisteredClasses = T.let(T.unsafe(nil), BinData::Registry) # This registry contains a register of name -> class mappings. @@ -2516,6 +2573,8 @@ class BinData::Registry # source://bindata//lib/bindata/registry.rb#21 def initialize; end + # @raise [UnRegisteredTypeError] + # # source://bindata//lib/bindata/registry.rb#38 def lookup(name, hints = T.unsafe(nil)); end @@ -2524,7 +2583,7 @@ class BinData::Registry # Convert CamelCase +name+ to underscore style. # - # source://bindata//lib/bindata/registry.rb#50 + # source://bindata//lib/bindata/registry.rb#58 def underscore_name(name); end # source://bindata//lib/bindata/registry.rb#34 @@ -2532,24 +2591,19 @@ class BinData::Registry private - # source://bindata//lib/bindata/registry.rb#95 + # source://bindata//lib/bindata/registry.rb#96 def name_with_endian(name, endian); end - # source://bindata//lib/bindata/registry.rb#86 + # source://bindata//lib/bindata/registry.rb#87 def name_with_prefix(name, prefix); end - # source://bindata//lib/bindata/registry.rb#63 - def normalize_name(name, hints); end - - # source://bindata//lib/bindata/registry.rb#112 + # source://bindata//lib/bindata/registry.rb#107 def register_dynamic_class(name); end - # @return [Boolean] - # - # source://bindata//lib/bindata/registry.rb#106 - def registered?(name); end + # source://bindata//lib/bindata/registry.rb#71 + def search_names(name, hints); end - # source://bindata//lib/bindata/registry.rb#123 + # source://bindata//lib/bindata/registry.rb#118 def warn_if_name_is_already_registered(name, class_to_register); end end @@ -2760,6 +2814,7 @@ class BinData::SanitizedParameters < ::Hash # source://bindata//lib/bindata/sanitize.rb#206 def has_at_least_one_of?(*keys); end + # source://bindata//lib/bindata/sanitize.rb#204 def has_parameter?(_arg0); end # source://bindata//lib/bindata/sanitize.rb#284 @@ -2864,27 +2919,47 @@ end # source://bindata//lib/bindata/bits.rb#15 class BinData::Sbit < ::BinData::BasePrimitive + # source://bindata//lib/bindata/bits.rb#27 def assign(val); end + + # source://bindata//lib/bindata/bits.rb#27 def bit_aligned?; end + + # source://bindata//lib/bindata/bits.rb#27 def do_num_bytes; end + + # source://bindata//lib/bindata/bits.rb#27 def do_write(io); end private + # source://bindata//lib/bindata/bits.rb#27 def read_and_return_value(io); end + + # source://bindata//lib/bindata/bits.rb#27 def sensible_default; end end # source://bindata//lib/bindata/bits.rb#15 class BinData::SbitLe < ::BinData::BasePrimitive + # source://bindata//lib/bindata/bits.rb#27 def assign(val); end + + # source://bindata//lib/bindata/bits.rb#27 def bit_aligned?; end + + # source://bindata//lib/bindata/bits.rb#27 def do_num_bytes; end + + # source://bindata//lib/bindata/bits.rb#27 def do_write(io); end private + # source://bindata//lib/bindata/bits.rb#27 def read_and_return_value(io); end + + # source://bindata//lib/bindata/bits.rb#27 def sensible_default; end end @@ -3348,7 +3423,7 @@ class BinData::Struct < ::BinData::Base # # @return [Boolean] # - # source://bindata//lib/bindata/struct.rb#162 + # source://bindata//lib/bindata/warnings.rb#34 def has_key?(key); end # source://bindata//lib/bindata/struct.rb#90 @@ -3414,7 +3489,7 @@ class BinData::Struct < ::BinData::Base def sum_num_bytes_for_all_fields; end class << self - # source://bindata//lib/bindata/base.rb#53 + # source://bindata//lib/bindata/record.rb#8 def inherited(subclass); end end end @@ -3520,13 +3595,21 @@ end # # source://bindata//lib/bindata/int.rb#180 class BinData::Uint8 < ::BinData::BasePrimitive + # source://bindata//lib/bindata/int.rb#29 def assign(val); end + + # source://bindata//lib/bindata/int.rb#29 def do_num_bytes; end private + # source://bindata//lib/bindata/int.rb#29 def read_and_return_value(io); end + + # source://bindata//lib/bindata/int.rb#29 def sensible_default; end + + # source://bindata//lib/bindata/int.rb#29 def value_to_binary_string(val); end end diff --git a/sorbet/rbi/gems/bootsnap@1.18.4.rbi b/sorbet/rbi/gems/bootsnap@1.18.6.rbi similarity index 96% rename from sorbet/rbi/gems/bootsnap@1.18.4.rbi rename to sorbet/rbi/gems/bootsnap@1.18.6.rbi index 238fcbaa..2b1252a4 100644 --- a/sorbet/rbi/gems/bootsnap@1.18.4.rbi +++ b/sorbet/rbi/gems/bootsnap@1.18.6.rbi @@ -16,6 +16,7 @@ module Bootsnap private + # source://bootsnap//lib/bootsnap/compile_cache/iseq.rb#3 def instrumentation_enabled=(_arg0); end class << self @@ -31,6 +32,7 @@ module Bootsnap # source://bootsnap//lib/bootsnap.rb#37 def instrumentation=(callback); end + # source://bootsnap//lib/bootsnap/compile_cache/iseq.rb#3 def instrumentation_enabled=(_arg0); end # source://bootsnap//lib/bootsnap.rb#24 @@ -49,6 +51,8 @@ module Bootsnap # Allow the C extension to redefine `rb_get_path` without warning. # Allow the C extension to redefine `rb_get_path` without warning. + # + # source://bootsnap//lib/bootsnap.rb#145 def rb_get_path(_arg0); end # source://bootsnap//lib/bootsnap.rb#48 @@ -204,17 +208,35 @@ end module Bootsnap::CompileCache::Native private + # source://bootsnap//lib/bootsnap/compile_cache/iseq.rb#3 def compile_option_crc32=(_arg0); end + + # source://bootsnap//lib/bootsnap/compile_cache/iseq.rb#3 def fetch(_arg0, _arg1, _arg2, _arg3); end + + # source://bootsnap//lib/bootsnap/compile_cache/iseq.rb#3 def precompile(_arg0, _arg1, _arg2); end + + # source://bootsnap//lib/bootsnap/compile_cache/iseq.rb#3 def readonly=(_arg0); end + + # source://bootsnap//lib/bootsnap/compile_cache/iseq.rb#3 def revalidation=(_arg0); end class << self + # source://bootsnap//lib/bootsnap/compile_cache/iseq.rb#3 def compile_option_crc32=(_arg0); end + + # source://bootsnap//lib/bootsnap/compile_cache/iseq.rb#3 def fetch(_arg0, _arg1, _arg2, _arg3); end + + # source://bootsnap//lib/bootsnap/compile_cache/iseq.rb#3 def precompile(_arg0, _arg1, _arg2); end + + # source://bootsnap//lib/bootsnap/compile_cache/iseq.rb#3 def readonly=(_arg0); end + + # source://bootsnap//lib/bootsnap/compile_cache/iseq.rb#3 def revalidation=(_arg0); end end end @@ -288,9 +310,9 @@ module Bootsnap::CompileCache::YAML end end -# source://bootsnap//lib/bootsnap/setup.rb#0 +# source://bootsnap//lib/bootsnap/setup.rb#5 class Bootsnap::CompileCache::YAML::NoTagsVisitor < ::Psych::Visitors::NoAliasRuby - # source://bootsnap//lib/bootsnap/compile_cache/yaml.rb#69 + # source://bootsnap//lib/bootsnap/setup.rb#5 def visit(target); end end @@ -412,7 +434,7 @@ module Bootsnap::LoadPathCache class << self # Returns the value of attribute enabled. # - # source://bootsnap//lib/bootsnap/load_path_cache.rb#27 + # source://bootsnap//lib/bootsnap/load_path_cache.rb#28 def enabled?; end # Returns the value of attribute load_path_cache. @@ -543,13 +565,13 @@ module Bootsnap::LoadPathCache::ChangeObserver::ArrayMixin # source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51 def []=(*args, &block); end - # source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#15 + # source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#19 def append(*entries); end # source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51 def clear(*args, &block); end - # source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#58 + # source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#62 def clone; end # source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51 @@ -591,7 +613,7 @@ module Bootsnap::LoadPathCache::ChangeObserver::ArrayMixin # source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51 def pop(*args, &block); end - # source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#21 + # source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#25 def prepend(*entries); end # source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#15 @@ -742,7 +764,7 @@ class Bootsnap::LoadPathCache::LoadedFeaturesIndex # will _never_ run on MacOS, and therefore think they can get away # with calling a Ruby file 'x.dylib.rb' and then requiring it as 'x.dylib'.) # - # See . + # See . # # @return [Boolean] # @@ -957,8 +979,11 @@ end module Kernel private - # source://bootsnap//lib/bootsnap/load_path_cache/core_ext/kernel_require.rb#8 - def zeitwerk_original_require(path); end + # source://bootsnap//lib/bootsnap/load_path_cache/core_ext/kernel_require.rb#6 + def require(path); end + + # source://bootsnap//lib/bootsnap/load_path_cache/core_ext/kernel_require.rb#4 + def require_without_bootsnap(name); end end module Psych @@ -966,5 +991,6 @@ module Psych end class RubyVM::InstructionSequence + extend ::RequireHooks::LoadIseq extend ::Bootsnap::CompileCache::ISeq::InstructionSequenceMixin end diff --git a/sorbet/rbi/gems/capybara@3.40.0.rbi b/sorbet/rbi/gems/capybara@3.40.0.rbi index de29370d..7ed1bc54 100644 --- a/sorbet/rbi/gems/capybara@3.40.0.rbi +++ b/sorbet/rbi/gems/capybara@3.40.0.rbi @@ -47,52 +47,52 @@ module Capybara # source://capybara//lib/capybara.rb#182 def add_selector(name, **options, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def allow_gumbo(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def allow_gumbo=(*args, **_arg1, &block); end # See {Capybara.configure} # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def always_include_port(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def always_include_port=(*args, **_arg1, &block); end # See {Capybara.configure} # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def app(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def app=(*args, **_arg1, &block); end # See {Capybara.configure} # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def app_host(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def app_host=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def asset_host(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def asset_host=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def automatic_label_click(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def automatic_label_click=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def automatic_reload(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def automatic_reload=(*args, **_arg1, &block); end # Configure Capybara to suit your needs. @@ -168,108 +168,108 @@ module Capybara # See {Capybara.configure} # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def default_driver(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def default_driver=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def default_host(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def default_host=(*args, **_arg1, &block); end # See {Capybara.configure} # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def default_max_wait_time(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def default_max_wait_time=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def default_normalize_ws(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def default_normalize_ws=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def default_retry_interval(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def default_retry_interval=(*args, **_arg1, &block); end # See {Capybara.configure} # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def default_selector(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def default_selector=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def default_set_options(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def default_set_options=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def disable_animation(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def disable_animation=(*args, **_arg1, &block); end # source://capybara//lib/capybara.rb#204 def drivers; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def enable_aria_label(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def enable_aria_label=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def enable_aria_role(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def enable_aria_role=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def exact(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def exact=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def exact_text(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def exact_text=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def ignore_hidden_elements(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def ignore_hidden_elements=(*args, **_arg1, &block); end # See {Capybara.configure} # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def javascript_driver(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def javascript_driver=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def match(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def match=(*args, **_arg1, &block); end # @return [Symbol] The name of the driver currently in use # - # source://capybara//lib/capybara.rb#261 + # source://capybara//lib/capybara.rb#268 def mode; end # Modify a selector previously created by {Capybara.add_selector}. @@ -286,16 +286,16 @@ module Capybara # source://capybara//lib/capybara.rb#200 def modify_selector(name, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def predicates_wait(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def predicates_wait=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def raise_server_errors(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def raise_server_errors=(*args, **_arg1, &block); end # Register a new driver for Capybara. @@ -331,7 +331,7 @@ module Capybara # Reset sessions, cleaning out the pool of sessions. This will remove any session information such # as cookies. # - # source://capybara//lib/capybara.rb#325 + # source://capybara//lib/capybara.rb#329 def reset!; end # Reset sessions, cleaning out the pool of sessions. This will remove any session information such @@ -342,10 +342,10 @@ module Capybara # See {Capybara.configure} # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def reuse_server(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def reuse_server=(*args, **_arg1, &block); end # Runs Capybara's default server for the given application and port @@ -358,42 +358,42 @@ module Capybara # source://capybara//lib/capybara.rb#253 def run_default_server(app, port); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def run_server(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def run_server=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def save_path(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def save_path=(*args, **_arg1, &block); end # See {Capybara.configure} # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def server(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def server=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def server_errors(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def server_errors=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def server_host(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def server_host=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def server_port(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def server_port=(*args, **_arg1, &block); end # source://capybara//lib/capybara.rb#208 @@ -441,18 +441,18 @@ module Capybara # source://capybara//lib/capybara.rb#240 def string(html); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def test_id(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def test_id=(*args, **_arg1, &block); end # See {Capybara.configure} # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def threadsafe(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def threadsafe=(*args, **_arg1, &block); end # Use the default driver as the current driver @@ -462,10 +462,10 @@ module Capybara # See {Capybara.configure} # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def use_html5_parsing(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#45 def use_html5_parsing=(*args, **_arg1, &block); end # Yield a block using a specific driver @@ -483,16 +483,16 @@ module Capybara # source://capybara//lib/capybara.rb#302 def using_wait_time(seconds); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def visible_text_only(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def visible_text_only=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def w3c_click_offset(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara.rb#58 def w3c_click_offset=(*args, **_arg1, &block); end private @@ -532,10 +532,10 @@ class Capybara::Config # source://capybara//lib/capybara/config.rb#94 def allow_gumbo=(val); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def always_include_port(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def always_include_port=(*args, **_arg1, &block); end # Returns the value of attribute app. @@ -550,28 +550,28 @@ class Capybara::Config # source://capybara//lib/capybara/config.rb#14 def app=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def app_host(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def app_host=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def asset_host(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def asset_host=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def automatic_label_click(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def automatic_label_click=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def automatic_reload(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def automatic_reload=(*args, **_arg1, &block); end # @return [Symbol] The name of the driver to use by default @@ -586,79 +586,79 @@ class Capybara::Config # source://capybara//lib/capybara/config.rb#16 def default_driver=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def default_host(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def default_host=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def default_max_wait_time(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def default_max_wait_time=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def default_normalize_ws(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def default_normalize_ws=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def default_retry_interval(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def default_retry_interval=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def default_selector(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def default_selector=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def default_set_options(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def default_set_options=(*args, **_arg1, &block); end # source://capybara//lib/capybara/config.rb#86 def deprecate(method, alternate_method, once: T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def disable_animation(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def disable_animation=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def enable_aria_label(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def enable_aria_label=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def enable_aria_role(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def enable_aria_role=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def exact(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def exact=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def exact_text(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def exact_text=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def ignore_hidden_elements(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def ignore_hidden_elements=(*args, **_arg1, &block); end # @return [Symbol] The name of the driver used when JavaScript is needed @@ -673,22 +673,22 @@ class Capybara::Config # source://capybara//lib/capybara/config.rb#16 def javascript_driver=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def match(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def match=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def predicates_wait(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def predicates_wait=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def raise_server_errors(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def raise_server_errors=(*args, **_arg1, &block); end # source://capybara//lib/capybara/config.rb#15 @@ -697,16 +697,16 @@ class Capybara::Config # source://capybara//lib/capybara/config.rb#27 def reuse_server=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def run_server(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def run_server=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def save_path(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def save_path=(*args, **_arg1, &block); end # Return the proc that Capybara will call to run the Rack application. @@ -728,31 +728,31 @@ class Capybara::Config # source://capybara//lib/capybara/config.rb#59 def server=(name); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def server_errors(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def server_errors=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def server_host(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def server_host=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def server_port(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def server_port=(*args, **_arg1, &block); end # source://capybara//lib/capybara/config.rb#15 def session_options; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def test_id(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def test_id=(*args, **_arg1, &block); end # source://capybara//lib/capybara/config.rb#15 @@ -773,16 +773,16 @@ class Capybara::Config # source://capybara//lib/capybara/config.rb#14 def use_html5_parsing=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def visible_text_only(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def visible_text_only=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def w3c_click_offset(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/config.rb#19 def w3c_click_offset=(*args, **_arg1, &block); end end @@ -793,235 +793,235 @@ Capybara::Config::OPTIONS = T.let(T.unsafe(nil), Array) # # source://capybara//lib/capybara/dsl.rb#6 module Capybara::DSL - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def accept_alert(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def accept_confirm(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def accept_prompt(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def all(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def assert_all_of_selectors(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def assert_any_of_selectors(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def assert_current_path(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def assert_no_current_path(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def assert_no_selector(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def assert_no_text(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def assert_no_title(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def assert_none_of_selectors(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def assert_selector(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def assert_text(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def assert_title(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def attach_file(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def body(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def check(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def choose(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def click(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def click_button(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def click_link(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def click_link_or_button(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def click_on(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def current_host(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def current_path(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def current_scope(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def current_url(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def current_window(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def dismiss_confirm(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def dismiss_prompt(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def double_click(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def evaluate_async_script(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def evaluate_script(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def execute_script(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def fill_in(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def find(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def find_all(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def find_button(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def find_by_id(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def find_field(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def find_link(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def first(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def go_back(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def go_forward(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_button?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_checked_field?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_content?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_css?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_current_path?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_element?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_field?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_link?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_button?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_checked_field?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_content?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_css?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_current_path?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_element?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_field?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_link?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_select?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_selector?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_table?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_text?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_title?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_unchecked_field?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_no_xpath?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_select?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_selector?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_table?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_text?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_title?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_unchecked_field?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def has_xpath?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def html(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def open_new_window(*_arg0, **_arg1, &_arg2); end # Shortcut to accessing the current session. @@ -1039,70 +1039,70 @@ module Capybara::DSL # source://capybara//lib/capybara/dsl.rb#45 def page; end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def query(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def refresh(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def refute_selector(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def reset_session!(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def response_headers(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def right_click(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def save_and_open_page(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def save_and_open_screenshot(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def save_page(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def save_screenshot(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def scroll_by(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def scroll_to(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def select(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def send_keys(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def source(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def status_code(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def switch_to_frame(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def switch_to_window(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def text(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def title(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def uncheck(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def unselect(*_arg0, **_arg1, &_arg2); end # Shortcut to working in a different session. @@ -1115,31 +1115,31 @@ module Capybara::DSL # source://capybara//lib/capybara/dsl.rb#27 def using_wait_time(seconds, &block); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def visit(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def window_opened_by(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def windows(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def within(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def within_element(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def within_fieldset(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def within_frame(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def within_table(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/dsl.rb#51 + # source://capybara//lib/capybara/dsl.rb#50 def within_window(*_arg0, **_arg1, &_arg2); end class << self @@ -1737,17 +1737,17 @@ module Capybara::Minitest; end module Capybara::Minitest::Assertions # See {Capybara::Node::Matchers#assert_all_of_selectors} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#150 def assert_all_of_selectors(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#assert_ancestor} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#150 def assert_ancestor(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#assert_any_of_selectors} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#150 def assert_any_of_selectors(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#has_button?} @@ -1762,7 +1762,7 @@ module Capybara::Minitest::Assertions # See {Capybara::Node::Matchers#assert_text} # - # source://capybara//lib/capybara/minitest.rb#53 + # source://capybara//lib/capybara/minitest.rb#67 def assert_content(*args, **kwargs, &optional_filter_block); end # See {Capybara::Node::Matchers#has_css?} @@ -1772,7 +1772,7 @@ module Capybara::Minitest::Assertions # See {Capybara::SessionMatchers#assert_current_path} # - # source://capybara//lib/capybara/minitest.rb#53 + # source://capybara//lib/capybara/minitest.rb#52 def assert_current_path(*args, **kwargs, &optional_filter_block); end # See {Capybara::Node::Matchers#has_element?} @@ -1797,12 +1797,12 @@ module Capybara::Minitest::Assertions # See {Capybara::Node::Matchers#assert_matches_selector} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#150 def assert_matches_selector(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#assert_matches_style} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#150 def assert_matches_style(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#matches_xpath?} @@ -1812,7 +1812,7 @@ module Capybara::Minitest::Assertions # See {Capybara::Node::Matchers#assert_no_ancestor} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#150 def assert_no_ancestor(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#has_no_button?} @@ -1827,7 +1827,7 @@ module Capybara::Minitest::Assertions # See {Capybara::Node::Matchers#assert_no_text} # - # source://capybara//lib/capybara/minitest.rb#53 + # source://capybara//lib/capybara/minitest.rb#68 def assert_no_content(*args, **kwargs, &optional_filter_block); end # See {Capybara::Node::Matchers#has_no_css?} @@ -1837,7 +1837,7 @@ module Capybara::Minitest::Assertions # See {Capybara::SessionMatchers#assert_no_current_path} # - # source://capybara//lib/capybara/minitest.rb#53 + # source://capybara//lib/capybara/minitest.rb#52 def assert_no_current_path(*args, **kwargs, &optional_filter_block); end # Assert that provided element does not exist @@ -1862,12 +1862,12 @@ module Capybara::Minitest::Assertions # See {Capybara::Node::Matchers#assert_no_selector} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#150 def assert_no_selector(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#assert_no_sibling} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#150 def assert_no_sibling(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#has_no_table?} @@ -1877,12 +1877,12 @@ module Capybara::Minitest::Assertions # See {Capybara::Node::Matchers#assert_no_text} # - # source://capybara//lib/capybara/minitest.rb#53 + # source://capybara//lib/capybara/minitest.rb#52 def assert_no_text(*args, **kwargs, &optional_filter_block); end # See {Capybara::Node::DocumentMatchers#assert_no_title} # - # source://capybara//lib/capybara/minitest.rb#53 + # source://capybara//lib/capybara/minitest.rb#52 def assert_no_title(*args, **kwargs, &optional_filter_block); end # Assert that provided unchecked field does not exist @@ -1897,7 +1897,7 @@ module Capybara::Minitest::Assertions # See {Capybara::Node::Matchers#assert_none_of_selectors} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#150 def assert_none_of_selectors(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#not_matches_css?} @@ -1907,7 +1907,7 @@ module Capybara::Minitest::Assertions # See {Capybara::Node::Matchers#assert_not_matches_selector} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#150 def assert_not_matches_selector(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#not_matches_xpath?} @@ -1922,12 +1922,12 @@ module Capybara::Minitest::Assertions # See {Capybara::Node::Matchers#assert_selector} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#150 def assert_selector(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#assert_sibling} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#150 def assert_sibling(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#has_table?} @@ -1937,12 +1937,12 @@ module Capybara::Minitest::Assertions # See {Capybara::Node::Matchers#assert_text} # - # source://capybara//lib/capybara/minitest.rb#53 + # source://capybara//lib/capybara/minitest.rb#52 def assert_text(*args, **kwargs, &optional_filter_block); end # See {Capybara::Node::DocumentMatchers#assert_title} # - # source://capybara//lib/capybara/minitest.rb#53 + # source://capybara//lib/capybara/minitest.rb#52 def assert_title(*args, **kwargs, &optional_filter_block); end # See {Capybara::Node::Matchers#has_unchecked_field?} @@ -1957,102 +1957,102 @@ module Capybara::Minitest::Assertions # See {Capybara::Node::Matchers#assert_no_ancestor} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#164 def refute_ancestor(*args, &optional_filter_block); end # Assert that provided button does not exist # - # source://capybara//lib/capybara/minitest.rb#305 + # source://capybara//lib/capybara/minitest.rb#311 def refute_button(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#has_no_checked_field?} # - # source://capybara//lib/capybara/minitest.rb#322 + # source://capybara//lib/capybara/minitest.rb#334 def refute_checked_field(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#assert_no_text} # - # source://capybara//lib/capybara/minitest.rb#53 + # source://capybara//lib/capybara/minitest.rb#65 def refute_content(*args, **kwargs, &optional_filter_block); end # Assert that provided css does not exist # - # source://capybara//lib/capybara/minitest.rb#305 + # source://capybara//lib/capybara/minitest.rb#311 def refute_css(*args, &optional_filter_block); end # See {Capybara::SessionMatchers#assert_no_current_path} # - # source://capybara//lib/capybara/minitest.rb#53 + # source://capybara//lib/capybara/minitest.rb#66 def refute_current_path(*args, **kwargs, &optional_filter_block); end # See {Capybara::Node::Matchers#has_no_element?} # - # source://capybara//lib/capybara/minitest.rb#305 + # source://capybara//lib/capybara/minitest.rb#311 def refute_element(*args, &optional_filter_block); end # Assert that provided field does not exist # - # source://capybara//lib/capybara/minitest.rb#305 + # source://capybara//lib/capybara/minitest.rb#311 def refute_field(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#has_no_link?} # - # source://capybara//lib/capybara/minitest.rb#305 + # source://capybara//lib/capybara/minitest.rb#311 def refute_link(*args, &optional_filter_block); end # Assert that element matches css # - # source://capybara//lib/capybara/minitest.rb#370 + # source://capybara//lib/capybara/minitest.rb#375 def refute_matches_css(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#assert_not_matches_selector} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#163 def refute_matches_selector(*args, &optional_filter_block); end # Assert that element does not match xpath # - # source://capybara//lib/capybara/minitest.rb#370 + # source://capybara//lib/capybara/minitest.rb#375 def refute_matches_xpath(*args, &optional_filter_block); end # Assert that provided select does not exist # - # source://capybara//lib/capybara/minitest.rb#305 + # source://capybara//lib/capybara/minitest.rb#311 def refute_select(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#assert_no_selector} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#162 def refute_selector(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#assert_no_sibling} # - # source://capybara//lib/capybara/minitest.rb#151 + # source://capybara//lib/capybara/minitest.rb#165 def refute_sibling(*args, &optional_filter_block); end # Assert that provided table does not exist # - # source://capybara//lib/capybara/minitest.rb#305 + # source://capybara//lib/capybara/minitest.rb#311 def refute_table(*args, &optional_filter_block); end # See {Capybara::Node::Matchers#assert_no_text} # - # source://capybara//lib/capybara/minitest.rb#53 + # source://capybara//lib/capybara/minitest.rb#64 def refute_text(*args, **kwargs, &optional_filter_block); end # See {Capybara::Node::DocumentMatchers#assert_no_title} # - # source://capybara//lib/capybara/minitest.rb#53 + # source://capybara//lib/capybara/minitest.rb#63 def refute_title(*args, **kwargs, &optional_filter_block); end # See {Capybara::Node::Matchers#has_no_unchecked_field?} # - # source://capybara//lib/capybara/minitest.rb#322 + # source://capybara//lib/capybara/minitest.rb#334 def refute_unchecked_field(*args, &optional_filter_block); end # Assert that provide xpath does not exist # - # source://capybara//lib/capybara/minitest.rb#305 + # source://capybara//lib/capybara/minitest.rb#311 def refute_xpath(*args, &optional_filter_block); end private @@ -2166,7 +2166,7 @@ module Capybara::Node::Actions # @overload click_link_or_button # @return [Capybara::Node::Element] The element clicked # - # source://capybara//lib/capybara/node/actions.rb#25 + # source://capybara//lib/capybara/node/actions.rb#28 def click_on(locator = T.unsafe(nil), **options); end # Locate a text field or text area and fill it in with the given text. @@ -3073,7 +3073,7 @@ module Capybara::Node::Finders # @raise [Capybara::ExpectationNotMet] The number of elements found doesn't match the specified conditions # @return [Capybara::Result] A collection of found elements # - # source://capybara//lib/capybara/node/finders.rb#257 + # source://capybara//lib/capybara/node/finders.rb#277 def find_all(*args, allow_reload: T.unsafe(nil), **options, &optional_filter_block); end # Find a button on the page. @@ -3434,7 +3434,7 @@ module Capybara::Node::Matchers # @overload has_text? # @return [Boolean] Whether it exists # - # source://capybara//lib/capybara/node/matchers.rb#738 + # source://capybara//lib/capybara/node/matchers.rb#741 def has_content?(*args, **options); end # Checks if a given CSS selector is on the page or a descendant of the current node. @@ -3540,7 +3540,7 @@ module Capybara::Node::Matchers # @overload has_no_text? # @return [Boolean] Whether it doesn't exist # - # source://capybara//lib/capybara/node/matchers.rb#750 + # source://capybara//lib/capybara/node/matchers.rb#753 def has_no_content?(*args, **options); end # Checks if a given CSS selector is not on the page or a descendant of the current node. @@ -5306,74 +5306,74 @@ end class Capybara::RackTest::Node < ::Capybara::Driver::Node include ::Capybara::Node::WhitespaceNormalizer - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#19 def [](*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#11 def all_text(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#87 def checked?(*_arg0, **_arg1, &_arg2); end # @raise [ArgumentError] # - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#61 def click(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#95 def disabled?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#120 def find_css(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#116 def find_xpath(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#112 def path(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#105 def readonly?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#48 def select_option(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#91 def selected?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#31 def set(*_arg0, **_arg1, &_arg2); end # @raise [NotImplementedError] # - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#23 def style(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#79 def tag_name(*_arg0, **_arg1, &_arg2); end # @raise [Capybara::UnselectNotAllowed] # - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#55 def unselect_option(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#27 def value(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#83 def visible?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/rack_test/node.rb#129 + # source://capybara//lib/capybara/rack_test/node.rb#15 def visible_text(*_arg0, **_arg1, &_arg2); end protected @@ -5483,55 +5483,55 @@ class Capybara::RackTest::Node < ::Capybara::Driver::Node # source://capybara//lib/capybara/rack_test/node.rb#178 def type; end - # source://capybara//lib/capybara/rack_test/node.rb#11 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_all_text; end - # source://capybara//lib/capybara/rack_test/node.rb#87 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_checked?; end - # source://capybara//lib/capybara/rack_test/node.rb#61 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_click(keys = T.unsafe(nil), **options); end - # source://capybara//lib/capybara/rack_test/node.rb#95 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_disabled?; end - # source://capybara//lib/capybara/rack_test/node.rb#120 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_find_css(locator, **_hints); end - # source://capybara//lib/capybara/rack_test/node.rb#116 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_find_xpath(locator, **_hints); end - # source://capybara//lib/capybara/rack_test/node.rb#112 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_path; end - # source://capybara//lib/capybara/rack_test/node.rb#105 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_readonly?; end - # source://capybara//lib/capybara/rack_test/node.rb#48 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_select_option; end - # source://capybara//lib/capybara/rack_test/node.rb#91 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_selected?; end - # source://capybara//lib/capybara/rack_test/node.rb#31 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_set(value, **options); end - # source://capybara//lib/capybara/rack_test/node.rb#23 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_style(_styles); end - # source://capybara//lib/capybara/rack_test/node.rb#79 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_tag_name; end - # source://capybara//lib/capybara/rack_test/node.rb#55 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_unselect_option; end - # source://capybara//lib/capybara/rack_test/node.rb#27 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_value; end - # source://capybara//lib/capybara/rack_test/node.rb#83 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_visible?; end - # source://capybara//lib/capybara/rack_test/node.rb#15 + # source://capybara//lib/capybara/rack_test/node.rb#125 def unchecked_visible_text; end end @@ -5713,7 +5713,7 @@ class Capybara::Result # source://capybara//lib/capybara/result.rb#140 def allow_reload!; end - # source://capybara//lib/capybara/result.rb#53 + # source://capybara//lib/capybara/result.rb#78 def at(*args); end # source://capybara//lib/capybara/result.rb#84 @@ -5730,15 +5730,16 @@ class Capybara::Result # source://capybara//lib/capybara/result.rb#113 def failure_message; end + # source://capybara//lib/capybara/result.rb#39 def index(*_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/result.rb#37 def inspect(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/result.rb#37 def last(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/result.rb#37 def length(*args, **_arg1, &block); end # @return [Boolean] @@ -5749,19 +5750,19 @@ class Capybara::Result # source://capybara//lib/capybara/result.rb#129 def negative_failure_message; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/result.rb#37 def sample(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/result.rb#37 def size(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/result.rb#37 def to_ary(*args, **_arg1, &block); end # source://capybara//lib/capybara/result.rb#133 def unfiltered_size; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/result.rb#37 def values_at(*args, **_arg1, &block); end private @@ -6228,7 +6229,7 @@ class Capybara::Selector < ::SimpleDelegator # source://capybara//lib/capybara/selector/selector.rb#59 def call(locator, **options); end - # source://capybara//lib/capybara/selector/selector.rb#42 + # source://capybara//lib/capybara/selector/selector.rb#45 def current_format; end # source://capybara//lib/capybara/selector/selector.rb#47 @@ -6420,7 +6421,7 @@ class Capybara::Selector::Definition # source://capybara//lib/capybara/selector/definition.rb#217 def default_visibility(fallback = T.unsafe(nil), options = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/selector/definition.rb#178 def describe(*args, **_arg1, &block); end # source://capybara//lib/capybara/selector/definition.rb#190 @@ -6435,7 +6436,7 @@ class Capybara::Selector::Definition # @param options [Hash] The options of the query used to generate the description # @return [String] Description of the selector when used with the options passed # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/selector/definition.rb#116 def description(*args, **_arg1, &block); end # @option options @@ -6447,7 +6448,7 @@ class Capybara::Selector::Definition # @param matcher [Regexp] (nil) A Regexp used to check whether a specific option is handled by this filter # @param types [Array] The types of the filter - currently valid types are [:boolean] # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/selector/definition.rb#166 def expression_filter(*args, **_arg1, &block); end # source://capybara//lib/capybara/selector/definition.rb#41 @@ -6458,7 +6459,7 @@ class Capybara::Selector::Definition # source://capybara//lib/capybara/selector/definition.rb#12 def expressions; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/selector/definition.rb#166 def filter(*args, **_arg1, &block); end # source://capybara//lib/capybara/selector/definition.rb#174 @@ -6514,7 +6515,7 @@ class Capybara::Selector::Definition # @param types [Array] The types of the filter - currently valid types are [:boolean] # @param options [Hash] ({}) Options of the filter # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://capybara//lib/capybara/selector/definition.rb#166 def node_filter(*args, **_arg1, &block); end # source://capybara//lib/capybara/selector/definition.rb#37 @@ -6588,7 +6589,7 @@ class Capybara::Selector::FilterSet # source://capybara//lib/capybara/selector/filter_set.rb#8 def expression_filters; end - # source://capybara//lib/capybara/selector/filter_set.rb#18 + # source://capybara//lib/capybara/selector/filter_set.rb#23 def filter(names, *types, **options, &block); end # source://capybara//lib/capybara/selector/filter_set.rb#56 @@ -7611,7 +7612,7 @@ class Capybara::Selenium::Node < ::Capybara::Driver::Node # @return [Boolean] # - # source://capybara//lib/capybara/selenium/node.rb#190 + # source://capybara//lib/capybara/selenium/node.rb#191 def checked?; end # source://capybara//lib/capybara/selenium/node.rb#106 @@ -8379,7 +8380,7 @@ class Capybara::Session # source://capybara//lib/capybara/session.rb#323 def active_element; end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def all(*_arg0, **_arg1, &_arg2); end # Returns the value of attribute app. @@ -8387,45 +8388,45 @@ class Capybara::Session # source://capybara//lib/capybara/session.rb#76 def app; end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def assert_all_of_selectors(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def assert_any_of_selectors(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def assert_no_selector(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def assert_no_text(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#781 + # source://capybara//lib/capybara/session.rb#780 def assert_no_title(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def assert_none_of_selectors(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def assert_selector(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def assert_text(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#781 + # source://capybara//lib/capybara/session.rb#780 def assert_title(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def attach_file(*_arg0, **_arg1, &_arg2); end # @return [String] A snapshot of the DOM of the current document, as it looks right now (potentially modified by JavaScript). # - # source://capybara//lib/capybara/session.rb#197 + # source://capybara//lib/capybara/session.rb#200 def body; end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def check(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def choose(*_arg0, **_arg1, &_arg2); end # Reset the session (i.e. remove cookies and navigate to blank page). @@ -8444,22 +8445,22 @@ class Capybara::Session # * monkeypatch this method # * use Ruby's `prepend` method # - # source://capybara//lib/capybara/session.rb#130 + # source://capybara//lib/capybara/session.rb#140 def cleanup!; end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def click(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def click_button(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def click_link(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def click_link_or_button(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def click_on(*_arg0, **_arg1, &_arg2); end # source://capybara//lib/capybara/session.rb#829 @@ -8531,7 +8532,7 @@ class Capybara::Session # source://capybara//lib/capybara/session.rb#766 def document; end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def double_click(*_arg0, **_arg1, &_arg2); end # source://capybara//lib/capybara/session.rb#100 @@ -8567,28 +8568,28 @@ class Capybara::Session # source://capybara//lib/capybara/session.rb#604 def execute_script(script, *args); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def fill_in(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def find(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def find_all(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def find_button(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def find_by_id(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def find_field(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def find_link(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def first(*_arg0, **_arg1, &_arg2); end # Move back a single entry in the browser's history. @@ -8601,88 +8602,88 @@ class Capybara::Session # source://capybara//lib/capybara/session.rb#305 def go_forward; end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_button?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_checked_field?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_content?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_css?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_element?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_field?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_link?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_no_button?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_no_checked_field?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_no_content?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_no_css?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_no_element?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_no_field?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_no_link?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_no_select?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_no_selector?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_no_table?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_no_text?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#781 + # source://capybara//lib/capybara/session.rb#780 def has_no_title?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_no_unchecked_field?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_no_xpath?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_select?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_selector?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_table?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_text?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#781 + # source://capybara//lib/capybara/session.rb#780 def has_title?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_unchecked_field?(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def has_xpath?(*_arg0, **_arg1, &_arg2); end # @return [String] A snapshot of the DOM of the current document, as it looks right now (potentially modified by JavaScript). @@ -8707,7 +8708,7 @@ class Capybara::Session # source://capybara//lib/capybara/session.rb#484 def open_new_window(kind = T.unsafe(nil)); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def query(*_arg0, **_arg1, &_arg2); end # Disconnect from the current driver. A new driver will be instantiated on the next interaction. @@ -8725,7 +8726,7 @@ class Capybara::Session # source://capybara//lib/capybara/session.rb#288 def refresh; end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def refute_selector(*_arg0, **_arg1, &_arg2); end # Reset the session (i.e. remove cookies and navigate to blank page). @@ -8763,7 +8764,7 @@ class Capybara::Session # * monkeypatch this method # * use Ruby's `prepend` method # - # source://capybara//lib/capybara/session.rb#130 + # source://capybara//lib/capybara/session.rb#141 def reset_session!; end # Returns a hash of response headers. Not supported by all drivers (e.g. Selenium). @@ -8773,7 +8774,7 @@ class Capybara::Session # source://capybara//lib/capybara/session.rb#179 def response_headers; end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def right_click(*_arg0, **_arg1, &_arg2); end # Save a snapshot of the page and open it in a browser for inspection. @@ -8825,13 +8826,13 @@ class Capybara::Session # source://capybara//lib/capybara/session.rb#747 def save_screenshot(path = T.unsafe(nil), **options); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def scroll_by(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def scroll_to(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def select(*_arg0, **_arg1, &_arg2); end # source://capybara//lib/capybara/session.rb#313 @@ -8847,7 +8848,7 @@ class Capybara::Session # @return [String] A snapshot of the DOM of the current document, as it looks right now (potentially modified by JavaScript). # - # source://capybara//lib/capybara/session.rb#197 + # source://capybara//lib/capybara/session.rb#201 def source; end # Returns the current HTTP status code as an integer. Not supported by all drivers (e.g. Selenium). @@ -8893,16 +8894,16 @@ class Capybara::Session # source://capybara//lib/capybara/session.rb#77 def synchronized=(_arg0); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def text(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#781 + # source://capybara//lib/capybara/session.rb#780 def title(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def uncheck(*_arg0, **_arg1, &_arg2); end - # source://capybara//lib/capybara/session.rb#772 + # source://capybara//lib/capybara/session.rb#771 def unselect(*_arg0, **_arg1, &_arg2); end # Yield a block using a specific maximum wait time. @@ -9017,7 +9018,7 @@ class Capybara::Session # @overload within # @raise [Capybara::ElementNotFound] If the scope can't be found before time expires # - # source://capybara//lib/capybara/session.rb#362 + # source://capybara//lib/capybara/session.rb#371 def within_element(*args, **kw_args); end # Execute the given block within the a specific fieldset given the id or legend of that fieldset. @@ -9146,7 +9147,7 @@ class Capybara::SessionConfig # source://capybara//lib/capybara/session/config.rb#13 def app_host; end - # source://capybara//lib/capybara/session/config.rb#85 + # source://capybara//lib/capybara/session/config.rb#13 def app_host=(url); end # See {Capybara.configure} @@ -9178,7 +9179,7 @@ class Capybara::SessionConfig # source://capybara//lib/capybara/session/config.rb#13 def default_host; end - # source://capybara//lib/capybara/session/config.rb#94 + # source://capybara//lib/capybara/session/config.rb#13 def default_host=(url); end # See {Capybara.configure} @@ -9310,12 +9311,12 @@ class Capybara::SessionConfig # source://capybara//lib/capybara/session/config.rb#13 def server_errors; end - # source://capybara//lib/capybara/session/config.rb#80 + # source://capybara//lib/capybara/session/config.rb#13 def server_errors=(errors); end # @return [String] The IP address bound by default server # - # source://capybara//lib/capybara/session/config.rb#75 + # source://capybara//lib/capybara/session/config.rb#13 def server_host; end # source://capybara//lib/capybara/session/config.rb#13 @@ -9340,7 +9341,7 @@ class Capybara::SessionConfig # # @param id [String, Symbol, nil] Name of the attribute to use as the test id # - # source://capybara//lib/capybara/session/config.rb#111 + # source://capybara//lib/capybara/session/config.rb#13 def test_id=(id); end # See {Capybara.configure} @@ -9478,7 +9479,7 @@ class Capybara::Window # @return [Boolean] # - # source://capybara//lib/capybara/window.rb#115 + # source://capybara//lib/capybara/window.rb#118 def ==(other); end # Close window. @@ -9583,364 +9584,16 @@ end class Capybara::WindowError < ::Capybara::CapybaraError; end # source://capybara//lib/capybara/selector/xpath_extensions.rb#3 -module XPath - class << self - # source://xpath/3.2.0/lib/xpath.rb#15 - def generate; end - end -end +module XPath; end # source://capybara//lib/capybara/selector/xpath_extensions.rb#12 module XPath::DSL - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def !(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def !=(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def %(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def &(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def *(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#62 - def +(*expressions); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def /(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def <(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def <=(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def ==(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def >(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def >=(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#45 - def [](expression); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#136 - def ancestor(*element_names); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#136 - def ancestor_or_self(*element_names); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def and(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#21 - def anywhere(*expressions); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#25 - def attr(expression); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#136 - def attribute(*element_names); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#17 - def axis(name, *element_names); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#58 - def binary_operator(name, rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def boolean(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def ceiling(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#13 - def child(*expressions); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def concat(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def contains(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#147 - def contains_word(word); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def count(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#33 - def css(selector); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#5 - def current; end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#9 - def descendant(*expressions); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#136 - def descendant_or_self(*element_names); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def divide(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#143 - def ends_with(suffix); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def equals(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def false(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def floor(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#136 - def following(*element_names); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#136 - def following_sibling(*element_names); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#37 - def function(name, *arguments); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def gt(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def gte(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def id(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def inverse(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#54 - def is(expression); end - # source://capybara//lib/capybara/selector/xpath_extensions.rb#13 def join(*expressions); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def lang(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#67 - def last; end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def local_name(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#154 - def lowercase; end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def lt(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def lte(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#41 - def method(name, *arguments); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def minus(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def mod(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def multiply(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def n(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#136 - def namespace(*element_names); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def namespace_uri(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#166 - def next_sibling(*expressions); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def normalize(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def normalize_space(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def not(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def not_equals(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def number(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#162 - def one_of(*expressions); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def or(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#136 - def parent(*element_names); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def plus(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#71 - def position; end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#136 - def preceding(*element_names); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#136 - def preceding_sibling(*element_names); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#170 - def previous_sibling(*expressions); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#95 - def qname; end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def round(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#136 - def self(*element_names); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#136 - def self_axis(*element_names); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def starts_with(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def string(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def string_length(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def substring(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def substring_after(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def substring_before(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def sum(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#29 - def text; end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def translate(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def true(*args); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#62 - def union(*expressions); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#158 - def uppercase; end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#45 - def where(expression); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#122 - def |(rhs); end - - # source://xpath/3.2.0/lib/xpath/dsl.rb#90 - def ~(*args); end end # source://capybara//lib/capybara/selector/xpath_extensions.rb#4 class XPath::Renderer - # source://xpath/3.2.0/lib/xpath/renderer.rb#9 - def initialize(type); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#55 - def anywhere(element_names); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#63 - def attribute(current, name); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#51 - def axis(current, name, element_names); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#71 - def binary_operator(name, left, right); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#47 - def child(current, element_names); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#18 - def convert_argument(argument); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#95 - def css(current, selector); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#43 - def descendant(current, element_names); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#106 - def function(name, *arguments); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#75 - def is(one, two); end - # source://capybara//lib/capybara/selector/xpath_extensions.rb#5 def join(*expressions); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#91 - def literal(node); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#13 - def render(node); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#28 - def string_literal(string); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#87 - def text(current); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#39 - def this_node; end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#102 - def union(*expressions); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#83 - def variable(name); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#59 - def where(on, condition); end - - private - - # source://xpath/3.2.0/lib/xpath/renderer.rb#122 - def valid_xml_name?(name); end - - # source://xpath/3.2.0/lib/xpath/renderer.rb#112 - def with_element_conditions(expression, element_names); end - - class << self - # source://xpath/3.2.0/lib/xpath/renderer.rb#5 - def render(node, type); end - end end diff --git a/sorbet/rbi/gems/cbor@0.5.9.8.rbi b/sorbet/rbi/gems/cbor@0.5.9.8.rbi deleted file mode 100644 index 7546ffc9..00000000 --- a/sorbet/rbi/gems/cbor@0.5.9.8.rbi +++ /dev/null @@ -1,123 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `cbor` gem. -# Please instead update this file by running `bin/tapioca gem cbor`. - - -# source://cbor//lib/cbor/version.rb#1 -module CBOR - private - - def decode(*_arg0); end - def dump(*_arg0); end - def encode(*_arg0); end - def load(*_arg0); end - def pack(*_arg0); end - def unpack(*_arg0); end - - class << self - def decode(*_arg0); end - def dump(*_arg0); end - def encode(*_arg0); end - def load(*_arg0); end - def pack(*_arg0); end - def unpack(*_arg0); end - end -end - -class CBOR::Buffer - def initialize(*_arg0); end - - def <<(_arg0); end - def clear; end - def close; end - def empty?; end - def flush; end - def io; end - def read(*_arg0); end - def read_all(*_arg0); end - def size; end - def skip(_arg0); end - def skip_all(_arg0); end - def to_a; end - def to_s; end - def to_str; end - def write(_arg0); end - def write_to(_arg0); end -end - -class CBOR::MalformedFormatError < ::CBOR::UnpackError; end - -class CBOR::Packer - def initialize(*_arg0); end - - def buffer; end - def clear; end - def empty?; end - def flush; end - def pack(_arg0); end - def size; end - def to_a; end - def to_s; end - def to_str; end - def write(_arg0); end - def write_array_header(_arg0); end - def write_map_header(_arg0); end - def write_nil; end - def write_to(_arg0); end -end - -class CBOR::Simple < ::Struct - def to_cbor(*_arg0); end - def value; end - def value=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -class CBOR::StackError < ::CBOR::UnpackError; end - -class CBOR::Tagged < ::Struct - def tag; end - def tag=(_); end - def to_cbor(*_arg0); end - def value; end - def value=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -class CBOR::TypeError < ::StandardError; end -class CBOR::UnpackError < ::StandardError; end - -class CBOR::Unpacker - def initialize(*_arg0); end - - def buffer; end - def each; end - def feed(_arg0); end - def feed_each(_arg0); end - def read; end - def read_array_header; end - def read_map_header; end - def reset; end - def skip; end - def skip_nil; end - def unpack; end -end - -# source://cbor//lib/cbor/version.rb#2 -CBOR::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/cbor@0.5.9.9.rbi b/sorbet/rbi/gems/cbor@0.5.9.9.rbi new file mode 100644 index 00000000..01446e0f --- /dev/null +++ b/sorbet/rbi/gems/cbor@0.5.9.9.rbi @@ -0,0 +1,259 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `cbor` gem. +# Please instead update this file by running `bin/tapioca gem cbor`. + + +# source://cbor//lib/cbor/version.rb#1 +module CBOR + private + + # source://cbor//lib/cbor.rb#5 + def decode(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def dump(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def encode(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def load(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def pack(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def unpack(*_arg0); end + + class << self + # source://cbor//lib/cbor.rb#5 + def decode(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def dump(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def encode(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def load(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def pack(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def unpack(*_arg0); end + end +end + +class CBOR::Buffer + # source://cbor//lib/cbor.rb#5 + def initialize(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def <<(_arg0); end + + # source://cbor//lib/cbor.rb#5 + def clear; end + + # source://cbor//lib/cbor.rb#5 + def close; end + + # source://cbor//lib/cbor.rb#5 + def empty?; end + + # source://cbor//lib/cbor.rb#5 + def flush; end + + # source://cbor//lib/cbor.rb#5 + def io; end + + # source://cbor//lib/cbor.rb#5 + def read(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def read_all(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def size; end + + # source://cbor//lib/cbor.rb#5 + def skip(_arg0); end + + # source://cbor//lib/cbor.rb#5 + def skip_all(_arg0); end + + # source://cbor//lib/cbor.rb#5 + def to_a; end + + # source://cbor//lib/cbor.rb#5 + def to_s; end + + # source://cbor//lib/cbor.rb#5 + def to_str; end + + # source://cbor//lib/cbor.rb#5 + def write(_arg0); end + + # source://cbor//lib/cbor.rb#5 + def write_to(_arg0); end +end + +class CBOR::MalformedFormatError < ::CBOR::UnpackError; end + +class CBOR::Packer + # source://cbor//lib/cbor.rb#5 + def initialize(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def buffer; end + + # source://cbor//lib/cbor.rb#5 + def clear; end + + # source://cbor//lib/cbor.rb#5 + def empty?; end + + # source://cbor//lib/cbor.rb#5 + def flush; end + + # source://cbor//lib/cbor.rb#5 + def pack(_arg0); end + + # source://cbor//lib/cbor.rb#5 + def size; end + + # source://cbor//lib/cbor.rb#5 + def to_a; end + + # source://cbor//lib/cbor.rb#5 + def to_s; end + + # source://cbor//lib/cbor.rb#5 + def to_str; end + + # source://cbor//lib/cbor.rb#5 + def write(_arg0); end + + # source://cbor//lib/cbor.rb#5 + def write_array_header(_arg0); end + + # source://cbor//lib/cbor.rb#5 + def write_map_header(_arg0); end + + # source://cbor//lib/cbor.rb#5 + def write_nil; end + + # source://cbor//lib/cbor.rb#5 + def write_to(_arg0); end +end + +class CBOR::Simple < ::Struct + # source://cbor//lib/cbor.rb#5 + def to_cbor(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def value; end + + # source://cbor//lib/cbor.rb#5 + def value=(_); end + + class << self + # source://cbor//lib/cbor.rb#5 + def [](*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def inspect; end + + # source://cbor//lib/cbor.rb#5 + def keyword_init?; end + + # source://cbor//lib/cbor.rb#5 + def members; end + + # source://cbor//lib/cbor.rb#5 + def new(*_arg0); end + end +end + +class CBOR::StackError < ::CBOR::UnpackError; end + +class CBOR::Tagged < ::Struct + # source://cbor//lib/cbor.rb#5 + def tag; end + + # source://cbor//lib/cbor.rb#5 + def tag=(_); end + + # source://cbor//lib/cbor.rb#5 + def to_cbor(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def value; end + + # source://cbor//lib/cbor.rb#5 + def value=(_); end + + class << self + # source://cbor//lib/cbor.rb#5 + def [](*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def inspect; end + + # source://cbor//lib/cbor.rb#5 + def keyword_init?; end + + # source://cbor//lib/cbor.rb#5 + def members; end + + # source://cbor//lib/cbor.rb#5 + def new(*_arg0); end + end +end + +class CBOR::TypeError < ::StandardError; end +class CBOR::UnpackError < ::StandardError; end + +class CBOR::Unpacker + # source://cbor//lib/cbor.rb#5 + def initialize(*_arg0); end + + # source://cbor//lib/cbor.rb#5 + def buffer; end + + # source://cbor//lib/cbor.rb#5 + def each; end + + # source://cbor//lib/cbor.rb#5 + def feed(_arg0); end + + # source://cbor//lib/cbor.rb#5 + def feed_each(_arg0); end + + # source://cbor//lib/cbor.rb#5 + def read; end + + # source://cbor//lib/cbor.rb#5 + def read_array_header; end + + # source://cbor//lib/cbor.rb#5 + def read_map_header; end + + # source://cbor//lib/cbor.rb#5 + def reset; end + + # source://cbor//lib/cbor.rb#5 + def skip; end + + # source://cbor//lib/cbor.rb#5 + def skip_nil; end + + # source://cbor//lib/cbor.rb#5 + def unpack; end +end + +# source://cbor//lib/cbor/version.rb#2 +CBOR::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/coderay@1.1.3.rbi b/sorbet/rbi/gems/coderay@1.1.3.rbi index f0957243..12c76529 100644 --- a/sorbet/rbi/gems/coderay@1.1.3.rbi +++ b/sorbet/rbi/gems/coderay@1.1.3.rbi @@ -306,7 +306,7 @@ class CodeRay::Duo # # CodeRay::Duo[:python => :yaml].(code) # - # source://coderay//lib/coderay/duo.rb#64 + # source://coderay//lib/coderay/duo.rb#77 def call(code, options = T.unsafe(nil)); end # Tokenize and highlight the code using +scanner+ and +encoder+. @@ -333,7 +333,7 @@ class CodeRay::Duo # Tokenize and highlight the code using +scanner+ and +encoder+. # - # source://coderay//lib/coderay/duo.rb#64 + # source://coderay//lib/coderay/duo.rb#68 def highlight(code, options = T.unsafe(nil)); end # Returns the value of attribute lang. @@ -367,6 +367,8 @@ class CodeRay::Duo class << self # To allow calls like Duo[:ruby, :html].highlight. + # + # source://coderay//lib/coderay/duo.rb#50 def [](*_arg0); end end end @@ -409,13 +411,13 @@ class CodeRay::Encoders::Count < ::CodeRay::Encoders::Encoder # source://coderay//lib/coderay/encoders/count.rb#29 def begin_group(kind); end - # source://coderay//lib/coderay/encoders/count.rb#29 + # source://coderay//lib/coderay/encoders/count.rb#33 def begin_line(kind); end - # source://coderay//lib/coderay/encoders/count.rb#29 + # source://coderay//lib/coderay/encoders/count.rb#32 def end_group(kind); end - # source://coderay//lib/coderay/encoders/count.rb#29 + # source://coderay//lib/coderay/encoders/count.rb#34 def end_line(kind); end # source://coderay//lib/coderay/encoders/count.rb#25 @@ -593,7 +595,7 @@ class CodeRay::Encoders::Encoder # You can use highlight instead of encode, if that seems # more clear to you. # - # source://coderay//lib/coderay/encoders/encoder.rb#70 + # source://coderay//lib/coderay/encoders/encoder.rb#80 def highlight(code, lang, options = T.unsafe(nil)); end # The options you gave the Encoder at creating. @@ -635,7 +637,7 @@ class CodeRay::Encoders::Encoder # The already created +tokens+ object must be used; it must be a # Tokens object. # - # source://coderay//lib/coderay/encoders/encoder.rb#168 + # source://coderay//lib/coderay/encoders/encoder.rb#184 def tokens(tokens, options = T.unsafe(nil)); end protected @@ -1255,30 +1257,47 @@ class CodeRay::Encoders::Statistic::TypeStats < ::Struct # Returns the value of attribute count # # @return [Object] the current value of count + # + # source://coderay//lib/coderay/encoders/statistic.rb#13 def count; end # Sets the attribute count # # @param value [Object] the value to set the attribute count to. # @return [Object] the newly set value + # + # source://coderay//lib/coderay/encoders/statistic.rb#13 def count=(_); end # Returns the value of attribute size # # @return [Object] the current value of size + # + # source://coderay//lib/coderay/encoders/statistic.rb#13 def size; end # Sets the attribute size # # @param value [Object] the value to set the attribute size to. # @return [Object] the newly set value + # + # source://coderay//lib/coderay/encoders/statistic.rb#13 def size=(_); end class << self + # source://coderay//lib/coderay/encoders/statistic.rb#13 def [](*_arg0); end + + # source://coderay//lib/coderay/encoders/statistic.rb#13 def inspect; end + + # source://coderay//lib/coderay/encoders/statistic.rb#13 def keyword_init?; end + + # source://coderay//lib/coderay/encoders/statistic.rb#13 def members; end + + # source://coderay//lib/coderay/encoders/statistic.rb#13 def new(*_arg0); end end end @@ -1288,7 +1307,7 @@ class CodeRay::Encoders::Terminal < ::CodeRay::Encoders::Encoder # source://coderay//lib/coderay/encoders/terminal.rb#156 def begin_group(kind); end - # source://coderay//lib/coderay/encoders/terminal.rb#156 + # source://coderay//lib/coderay/encoders/terminal.rb#160 def begin_line(kind); end # source://coderay//lib/coderay/encoders/terminal.rb#162 @@ -1650,7 +1669,7 @@ module CodeRay::PluginHost # Example: # yaml_plugin = MyPluginHost[:yaml] # - # source://coderay//lib/coderay/helpers/plugin_host.rb#49 + # source://coderay//lib/coderay/helpers/plugin_host.rb#57 def load(id, *args, &blk); end # Loads all plugins using list and load. @@ -3256,6 +3275,7 @@ class CodeRay::Tokens < ::Array # source://coderay//lib/coderay/tokens.rb#85 def split_into_parts(*sizes); end + # source://coderay//lib/coderay/tokens.rb#155 def text_token(*_arg0); end # Turn tokens into a string by concatenating them. @@ -3263,6 +3283,7 @@ class CodeRay::Tokens < ::Array # source://coderay//lib/coderay/tokens.rb#62 def to_s; end + # source://coderay//lib/coderay/tokens.rb#160 def tokens(*_arg0); end end diff --git a/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi b/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi index 1f32266f..b6d0562c 100644 --- a/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +++ b/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi @@ -109,7 +109,7 @@ module Concurrent # # @raise [Transaction::AbortError] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#139 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#148 def abort_transaction; end # Run a block that reads and writes `TVar`s as a single atomic transaction. @@ -144,7 +144,7 @@ module Concurrent # end # @raise [ArgumentError] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#82 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#148 def atomically; end # Number of processors cores available for process scheduling. @@ -162,7 +162,7 @@ module Concurrent # @raise [ArgumentError] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#56 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#80 def call_dataflow(method, executor, *inputs, &block); end # The maximum number of processors cores available for process scheduling. @@ -212,16 +212,16 @@ module Concurrent # @yieldparam inputs [Future] each of the `Future` inputs to the dataflow # @yieldreturn [Object] the result of the block operation # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#34 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#37 def dataflow(*inputs, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#44 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#47 def dataflow!(*inputs, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#39 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#42 def dataflow_with(executor, *inputs, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#49 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#52 def dataflow_with!(executor, *inputs, &block); end # Disables AtExit handlers including pool auto-termination handlers. @@ -287,7 +287,7 @@ module Concurrent # # @raise [Transaction::LeaveError] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#144 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#148 def leave_transaction; end # Returns the current time as tracked by the application monotonic clock. @@ -298,7 +298,7 @@ module Concurrent # @return [Float] The current monotonic time since some unspecified # starting point # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/monotonic_time.rb#15 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/monotonic_time.rb#18 def monotonic_time(unit = T.unsafe(nil)); end # @return [Boolean] @@ -895,7 +895,7 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject # # @return [Object] the current value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#229 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#233 def deref; end # When {#failed?} and {#error_mode} is `:fail`, returns the error object @@ -948,7 +948,7 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject # action # @yieldreturn [Object] the new value of the Agent # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#294 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#298 def post(*args, &action); end # When {#failed?} and {#error_mode} is `:fail`, returns the error object @@ -957,7 +957,7 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject # # @return [nil, Error] the error which caused the failure when {#failed?} # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#240 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#244 def reason; end # When an Agent is {#failed?}, changes the Agent {#value} to `new_value` @@ -1173,7 +1173,7 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject # @return [Boolean] # @see #restart # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#402 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#406 def stopped?; end # The current value (state) of the Agent, irrespective of any pending or @@ -1324,52 +1324,77 @@ class Concurrent::Agent::Job < ::Struct # Returns the value of attribute action # # @return [Object] the current value of action + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 def action; end # Sets the attribute action # # @param value [Object] the value to set the attribute action to. # @return [Object] the newly set value + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 def action=(_); end # Returns the value of attribute args # # @return [Object] the current value of args + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 def args; end # Sets the attribute args # # @param value [Object] the value to set the attribute args to. # @return [Object] the newly set value + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 def args=(_); end # Returns the value of attribute caller # # @return [Object] the current value of caller + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 def caller; end # Sets the attribute caller # # @param value [Object] the value to set the attribute caller to. # @return [Object] the newly set value + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 def caller=(_); end # Returns the value of attribute executor # # @return [Object] the current value of executor + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 def executor; end # Sets the attribute executor # # @param value [Object] the value to set the attribute executor to. # @return [Object] the newly set value + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 def executor=(_); end class << self + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 def [](*_arg0); end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 def inspect; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 def keyword_init?; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 def members; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 def new(*_arg0); end end end @@ -1674,7 +1699,7 @@ module Concurrent::Async # requested method # @return [Concurrent::IVar] the completed result of the synchronous operation # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#430 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#433 def call; end # Causes the chained method call to be performed asynchronously on the @@ -1694,7 +1719,7 @@ module Concurrent::Async # the requested method # @return [Concurrent::IVar] the pending result of the asynchronous operation # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#412 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#415 def cast; end # Initialize the internal serializer and other stnchronization mechanisms. @@ -1918,7 +1943,7 @@ class Concurrent::Atom < ::Concurrent::Synchronization::Object # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#121 def initialize(value, opts = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#137 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99 def __initialize_atomic_fields__; end # Atomically sets the value of atom to the new value if and only if the @@ -1933,7 +1958,7 @@ class Concurrent::Atom < ::Concurrent::Synchronization::Object # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#181 def compare_and_set(old_value, new_value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#102 def deref; end # Atomically sets the value of atom to the new value without regard for the @@ -1980,18 +2005,18 @@ class Concurrent::Atom < ::Concurrent::Synchronization::Object # # @return [Object] The current value. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99 def value; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#105 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99 def compare_and_set_value(expected, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#101 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99 def swap_value(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#109 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99 def update_value(&block); end # Is the new value valid? @@ -2003,7 +2028,7 @@ class Concurrent::Atom < ::Concurrent::Synchronization::Object # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#216 def valid?(new_value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#97 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99 def value=(value); end end @@ -2065,7 +2090,7 @@ end class Concurrent::AtomicBoolean < ::Concurrent::MutexAtomicBoolean # @return [String] Short string representation. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb#121 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb#125 def inspect; end # @return [String] Short string representation. @@ -2149,7 +2174,7 @@ end class Concurrent::AtomicFixnum < ::Concurrent::MutexAtomicFixnum # @return [String] Short string representation. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb#138 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb#142 def inspect; end # @return [String] Short string representation. @@ -2175,7 +2200,7 @@ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Objec # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#15 def initialize(value = T.unsafe(nil), mark = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#137 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12 def __initialize_atomic_fields__; end # Atomically sets the value and mark to the given updated value and @@ -2209,7 +2234,7 @@ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Objec # @param new_mark [Boolean] the new mark # @return [Boolean] `true` if successful. A `false` return indicates # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#33 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#59 def compare_and_swap(expected_val, new_val, expected_mark, new_mark); end # Gets the current reference and marked values. @@ -2230,7 +2255,7 @@ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Objec # # @return [Boolean] the current marked value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#78 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#82 def marked?; end # _Unconditionally_ sets to the given value of both the reference and @@ -2293,22 +2318,22 @@ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Objec private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#105 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12 def compare_and_set_reference(expected, value); end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#163 def immutable_array(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12 def reference; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#97 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12 def reference=(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#101 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12 def swap_reference(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#109 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12 def update_reference(&block); end end @@ -2372,7 +2397,7 @@ end class Concurrent::AtomicReference < ::Concurrent::MutexAtomicReference # @return [String] Short string representation. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb#129 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb#133 def inspect; end # @return [String] Short string representation. @@ -2386,195 +2411,195 @@ Concurrent::AtomicReferenceImplementation = Concurrent::MutexAtomicReference # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#30 class Concurrent::CRubySet < ::Set - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#18 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def initialize(*args, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def &(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def +(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def -(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def <(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def <<(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def <=(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def <=>(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def ==(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def ===(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def >(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def >=(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def ^(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def add(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def add?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def classify(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def clear(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def collect!(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def compare_by_identity(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def compare_by_identity?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def delete(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def delete?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def delete_if(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def difference(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def disjoint?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def divide(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def each(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def empty?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def eql?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def filter!(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def flatten(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def flatten!(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def flatten_merge(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def freeze(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def hash(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def include?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def inspect(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def intersect?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def intersection(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def join(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def keep_if(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def length(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def map!(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def member?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def merge(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def pretty_print(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def pretty_print_cycle(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def proper_subset?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def proper_superset?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def reject!(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def replace(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def reset(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def select!(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def size(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def subset?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def subtract(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def superset?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def to_a(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def to_s(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def to_set(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def union(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def |(*args); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#23 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 def initialize_copy(other); end end @@ -2948,22 +2973,22 @@ end # # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#50 class Concurrent::Collection::NonConcurrentPriorityQueue < ::Concurrent::Collection::RubyNonConcurrentPriorityQueue - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#78 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#59 def <<(item); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#65 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#56 def deq; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#78 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#60 def enq(item); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#48 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#52 def has_priority?(item); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#65 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#57 def shift; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#54 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#54 def size; end end @@ -3012,7 +3037,7 @@ class Concurrent::Collection::RubyNonConcurrentPriorityQueue # @param item [Object] the item to insert onto the queue # @raise [ArgumentError] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#78 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#85 def <<(item); end # Removes all of the elements from this priority queue. @@ -3033,7 +3058,7 @@ class Concurrent::Collection::RubyNonConcurrentPriorityQueue # # @return [Object] the head of the queue or `nil` when empty # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#65 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#74 def deq; end # Returns `true` if `self` contains no elements. @@ -3048,7 +3073,7 @@ class Concurrent::Collection::RubyNonConcurrentPriorityQueue # @param item [Object] the item to insert onto the queue # @raise [ArgumentError] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#78 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#86 def enq(item); end # Returns `true` if the given item is present in `self` (that is, if any @@ -3057,7 +3082,7 @@ class Concurrent::Collection::RubyNonConcurrentPriorityQueue # @param item [Object] the item to search for # @return [Boolean] true if the item is found else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#48 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#51 def has_priority?(item); end # Returns `true` if the given item is present in `self` (that is, if any @@ -3105,14 +3130,14 @@ class Concurrent::Collection::RubyNonConcurrentPriorityQueue # # @return [Object] the head of the queue or `nil` when empty # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#65 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#75 def shift; end # The current length of the queue. # # @return [Fixnum] the number of items in the queue # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#54 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#57 def size; end private @@ -3187,7 +3212,7 @@ module Concurrent::Concern::Dereferenceable # # @return [Object] the current value of the object # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/dereferenceable.rb#21 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/dereferenceable.rb#24 def deref; end # Return the value this object represents after applying the options specified @@ -3315,7 +3340,7 @@ module Concurrent::Concern::Obligation # @raise [Exception] raises the reason when rejected # @return [Obligation] self # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#86 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#89 def no_error!(timeout = T.unsafe(nil)); end # Is obligation completion still pending? @@ -3329,7 +3354,7 @@ module Concurrent::Concern::Obligation # # @return [Boolean] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#20 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#23 def realized?; end # If an exception was raised during processing this will return the @@ -3699,19 +3724,32 @@ class Concurrent::CyclicBarrier::Generation < ::Struct # Returns the value of attribute status # # @return [Object] the current value of status + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30 def status; end # Sets the attribute status # # @param value [Object] the value to set the attribute status to. # @return [Object] the newly set value + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30 def status=(_); end class << self + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30 def [](*_arg0); end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30 def inspect; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30 def keyword_init?; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30 def members; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30 def new(*_arg0); end end end @@ -4489,7 +4527,7 @@ class Concurrent::ImmediateExecutor < ::Concurrent::AbstractExecutorService # but no new tasks will be accepted. Has no additional effect if the # thread pool is not running. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/immediate_executor.rb#55 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/immediate_executor.rb#59 def kill; end # Submit a task to the executor for asynchronous processing. @@ -4577,13 +4615,13 @@ module Concurrent::ImmutableStruct # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#68 def select(&block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#17 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#21 def to_a; end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#41 def to_h; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#29 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#33 def to_s; end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#17 @@ -4670,7 +4708,7 @@ class Concurrent::LockFreeStack < ::Concurrent::Synchronization::Object # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#51 def initialize(head = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#137 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37 def __initialize_atomic_fields__; end # @return [true, false] @@ -4724,7 +4762,7 @@ class Concurrent::LockFreeStack < ::Concurrent::Synchronization::Object # @return [String] Short string representation. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#154 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#158 def inspect; end # @return [Node] @@ -4757,19 +4795,19 @@ class Concurrent::LockFreeStack < ::Concurrent::Synchronization::Object private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#105 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37 def compare_and_set_head(expected, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37 def head; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#97 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37 def head=(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#101 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37 def swap_head(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#109 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37 def update_head(&block); end class << self @@ -4809,6 +4847,7 @@ class Concurrent::LockFreeStack::Node def value=(_arg0); end class << self + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#28 def [](*_arg0); end end end @@ -4994,7 +5033,7 @@ class Concurrent::Map < ::Concurrent::Collection::MriMapBackend # @yieldparam key [Object] # @yieldparam value [Object] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#274 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#279 def each; end # Iterates over each key. @@ -5083,7 +5122,7 @@ class Concurrent::Map < ::Concurrent::Collection::MriMapBackend # @param key [Object] # @return [Object] the value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#21 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#162 def get(key); end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#321 @@ -5118,7 +5157,7 @@ class Concurrent::Map < ::Concurrent::Collection::MriMapBackend # @param value [Object] # @return [Object] the new value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#17 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#163 def put(key, value); end # Insert value into map with key if key is absent in one atomic step. @@ -5294,7 +5333,7 @@ class Concurrent::Maybe < ::Concurrent::Synchronization::Object # # @return [Boolean] True if `Just` or false if `Nothing`. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#176 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#179 def fulfilled?; end # The value of a `Maybe` when `Just`. Will be `NONE` when `Nothing`. @@ -5330,19 +5369,19 @@ class Concurrent::Maybe < ::Concurrent::Synchronization::Object # The reason for the `Maybe` when `Nothing`. Will be `NONE` when `Just`. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#117 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#191 def reason; end # Is this `Maybe` a `nothing` (rejected with an exception upon fulfillment)? # # @return [Boolean] True if `Nothing` or false if `Just`. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#184 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#187 def rejected?; end # The value of a `Maybe` when `Just`. Will be `NONE` when `Nothing`. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#114 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#189 def value; end class << self @@ -5385,7 +5424,7 @@ class Concurrent::Maybe < ::Concurrent::Synchronization::Object private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/safe_initialization.rb#29 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#119 def new(*args, &block); end end end @@ -5530,7 +5569,7 @@ module Concurrent::MutableStruct # # @return [Array] the values for this struct # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#51 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#54 def to_a; end # Returns a hash containing the names and values for the struct’s members. @@ -5544,7 +5583,7 @@ module Concurrent::MutableStruct # # @return [String] the contents of this struct in a string # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#72 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#75 def to_s; end # Returns the values for this struct as an Array. @@ -5817,7 +5856,7 @@ class Concurrent::MutexAtomicFixnum # @param delta [Fixnum] the amount by which to decrease the current value # @return [Fixnum] the current value after decrementation # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#37 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#41 def down(delta = T.unsafe(nil)); end # Increases the current value by the given amount (defaults to 1). @@ -5833,7 +5872,7 @@ class Concurrent::MutexAtomicFixnum # @param delta [Fixnum] the amount by which to increase the current value # @return [Fixnum] the current value after incrementation # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#30 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#34 def up(delta = T.unsafe(nil)); end # Pass the current value to the given block, replacing it @@ -5899,7 +5938,7 @@ class Concurrent::MutexAtomicReference # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#45 def _compare_and_set(old_value, new_value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/numeric_cas_wrapper.rb#10 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#13 def compare_and_swap(old_value, new_value); end # Gets the current value. @@ -5930,14 +5969,14 @@ class Concurrent::MutexAtomicReference # @param new_value [Object] the new value # @return [Object] the old value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#35 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#42 def swap(new_value); end # Gets the current value. # # @return [Object] the current value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#23 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#26 def value; end # Sets to the given value. @@ -5945,7 +5984,7 @@ class Concurrent::MutexAtomicReference # @param new_value [Object] the new value # @return [Object] the new value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#29 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#32 def value=(new_value); end protected @@ -6279,7 +6318,7 @@ class Concurrent::Promise < ::Concurrent::IVar # @return [Promise] self # @yield The block to execute # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#360 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#364 def catch(&block); end # Execute an `:unscheduled` `Promise`. Immediately sets the state to `:pending` and @@ -6319,7 +6358,7 @@ class Concurrent::Promise < ::Concurrent::IVar # @return [Promise] self # @yield The block to execute # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#360 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#365 def on_error(&block); end # Chain onto this promise an action to be undertaken on success @@ -6552,7 +6591,7 @@ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization: # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#522 def initialize(promise, default_executor); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#137 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515 def __initialize_atomic_fields__; end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#738 @@ -6619,10 +6658,10 @@ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization: # @return [String] Short string representation. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#619 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#623 def inspect; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515 def internal_state; end # Shortcut of {#on_resolution_using} with default `:io` executor supplied. @@ -6696,7 +6735,7 @@ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization: # @param resolvable [Resolvable] # @return [self] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#629 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#633 def tangle(resolvable); end # @return [String] Short string representation. @@ -6771,16 +6810,16 @@ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization: # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#818 def callback_notify_blocked(state, promise, index); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#105 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515 def compare_and_set_internal_state(expected, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#97 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515 def internal_state=(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#101 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515 def swap_internal_state(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#109 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515 def update_internal_state(&block); end # @return [Boolean] @@ -6840,13 +6879,13 @@ class Concurrent::Promises::AbstractPromise < ::Concurrent::Synchronization::Obj # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1581 def delayed_because; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1558 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1562 def event; end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1558 def future; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1575 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1579 def inspect; end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1568 @@ -6971,7 +7010,7 @@ class Concurrent::Promises::BlockedPromise < ::Concurrent::Promises::InnerPromis private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/safe_initialization.rb#29 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1621 def new(*args, &block); end end end @@ -7026,7 +7065,7 @@ class Concurrent::Promises::Event < ::Concurrent::Promises::AbstractEventFuture # # @return [Future, Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#839 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#847 def &(other); end # Creates a new event which will be resolved when the first of receiver, `event_or_future` @@ -7056,7 +7095,7 @@ class Concurrent::Promises::Event < ::Concurrent::Promises::AbstractEventFuture # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#875 def schedule(intended_time); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#596 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#828 def then(*args, &task); end # Returns self, since this is event @@ -7097,7 +7136,7 @@ class Concurrent::Promises::Event < ::Concurrent::Promises::AbstractEventFuture # # @return [Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#853 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#857 def |(event_or_future); end private @@ -7139,7 +7178,7 @@ module Concurrent::Promises::FactoryMethods # @return [Future] # @see #any_resolved_future_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#278 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#282 def any(*futures_and_or_events); end # Shortcut of {#any_event_on} with default `:io` executor supplied. @@ -7385,7 +7424,7 @@ module Concurrent::Promises::FactoryMethods # @return [Future] # @see #zip_futures_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#240 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#258 def zip(*futures_and_or_events); end # Shortcut of {#zip_events_on} with default `:io` executor supplied. @@ -7482,7 +7521,7 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture # # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1070 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1078 def &(other); end # Creates a new event which will be resolved when the first of receiver, `event_or_future` @@ -7523,7 +7562,7 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture # @param level [Integer] how many levels of futures should flatten # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1120 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1124 def flat(level = T.unsafe(nil)); end # Creates new event which will be resolved when the returned event by receiver is. @@ -7552,7 +7591,7 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture # @return [String] Short string representation. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1235 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1243 def inspect; end # Shortcut of {#on_fulfillment_using} with default `:io` executor supplied. @@ -7829,7 +7868,7 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture # # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1085 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1089 def |(event_or_future); end private @@ -8271,7 +8310,7 @@ class Concurrent::Promises::ResolvableFuturePromise < ::Concurrent::Promises::Ab # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1607 def initialize(default_executor); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1592 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1611 def evaluate_to(*args, block); end end @@ -8773,22 +8812,22 @@ class Concurrent::RubyExchanger < ::Concurrent::AbstractExchanger # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#159 def initialize; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#137 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165 def __initialize_atomic_fields__; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#105 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165 def compare_and_set_slot(expected, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165 def slot; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#97 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165 def slot=(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#101 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165 def swap_slot(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#109 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165 def update_slot(&block); end private @@ -8817,10 +8856,10 @@ class Concurrent::RubyExchanger::Node < ::Concurrent::Synchronization::Object # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#142 def initialize(item); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#137 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139 def __initialize_atomic_fields__; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#105 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139 def compare_and_set_value(expected, value); end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#153 @@ -8829,16 +8868,16 @@ class Concurrent::RubyExchanger::Node < ::Concurrent::Synchronization::Object # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#149 def latch; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#101 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139 def swap_value(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#109 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139 def update_value(&block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139 def value; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#97 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139 def value=(value); end end @@ -9471,7 +9510,7 @@ class Concurrent::ScheduledTask < ::Concurrent::IVar protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#135 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#301 def fail(reason = T.unsafe(nil)); end # Reschedule the task using the given delay and the current time. @@ -9491,10 +9530,10 @@ class Concurrent::ScheduledTask < ::Concurrent::IVar # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#312 def ns_schedule(delay); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#113 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#301 def set(value = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#145 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#301 def try_set(value = T.unsafe(nil), &block); end class << self @@ -9655,23 +9694,31 @@ class Concurrent::SerializedExecution::Job < ::Struct # Returns the value of attribute args # # @return [Object] the current value of args + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16 def args; end # Sets the attribute args # # @param value [Object] the value to set the attribute args to. # @return [Object] the newly set value + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16 def args=(_); end # Returns the value of attribute block # # @return [Object] the current value of block + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16 def block; end # Sets the attribute block # # @param value [Object] the value to set the attribute block to. # @return [Object] the newly set value + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16 def block=(_); end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#17 @@ -9680,19 +9727,32 @@ class Concurrent::SerializedExecution::Job < ::Struct # Returns the value of attribute executor # # @return [Object] the current value of executor + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16 def executor; end # Sets the attribute executor # # @param value [Object] the value to set the attribute executor to. # @return [Object] the newly set value + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16 def executor=(_); end class << self + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16 def [](*_arg0); end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16 def inspect; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16 def keyword_init?; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16 def members; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16 def new(*_arg0); end end end @@ -9847,7 +9907,7 @@ module Concurrent::SettableStruct # # @return [Array] the values for this struct # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#18 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#21 def to_a; end # Returns a hash containing the names and values for the struct’s members. @@ -9861,7 +9921,7 @@ module Concurrent::SettableStruct # # @return [String] the contents of this struct in a string # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#29 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#32 def to_s; end # Returns the values for this struct as an Array. @@ -10184,7 +10244,7 @@ module Concurrent::Synchronization::AbstractStruct # # @return [Fixnum] the number of struct members # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#19 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#22 def size; end protected @@ -10331,12 +10391,12 @@ class Concurrent::Synchronization::Condition < ::Concurrent::Synchronization::Lo def wait_until(timeout = T.unsafe(nil), &condition); end class << self - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/safe_initialization.rb#29 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#15 def private_new(*args, &block); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/safe_initialization.rb#29 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#16 def new(*args, &block); end end end @@ -10359,22 +10419,22 @@ class Concurrent::Synchronization::Lock < ::Concurrent::Synchronization::Lockabl # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#31 def broadcast; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#16 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#35 def ns_broadcast; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#11 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#29 def ns_signal; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#52 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#17 def ns_wait(timeout = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb#37 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#23 def ns_wait_until(timeout = T.unsafe(nil), &condition); end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#25 def signal; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#44 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#11 def synchronize; end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#13 @@ -10995,7 +11055,7 @@ class Concurrent::TimerSet < ::Concurrent::RubyExecutorService private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/executor_service.rb#166 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#66 def <<(task); end # Initialize the object. @@ -11264,7 +11324,7 @@ class Concurrent::TimerTask < ::Concurrent::RubyExecutorService private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/executor_service.rb#166 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#292 def <<(task); end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#352 @@ -11282,7 +11342,7 @@ class Concurrent::TimerTask < ::Concurrent::RubyExecutorService # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#318 def ns_shutdown_execution; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb#17 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#292 def post(*args, &task); end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#330 @@ -11382,30 +11442,47 @@ class Concurrent::Transaction::OpenEntry < ::Struct # Returns the value of attribute modified # # @return [Object] the current value of modified + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 def modified; end # Sets the attribute modified # # @param value [Object] the value to set the attribute modified to. # @return [Object] the newly set value + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 def modified=(_); end # Returns the value of attribute value # # @return [Object] the current value of value + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 def value; end # Sets the attribute value # # @param value [Object] the value to set the attribute value to. # @return [Object] the newly set value + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 def value=(_); end class << self + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 def [](*_arg0); end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 def inspect; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 def keyword_init?; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 def members; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 def new(*_arg0); end end end @@ -11445,7 +11522,7 @@ class Concurrent::Tuple # @param new_value [Object] the value to set at the given index # @return [Boolean] true if the value at the given element was set else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#69 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#73 def cas(i, old_value, new_value); end # Set the value at the given index to the new value if and only if the current @@ -11493,7 +11570,7 @@ class Concurrent::Tuple # @param i [Integer] the index from which to retrieve the value # @return [Object] the value at the given index or nil if the index is out of bounds # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#43 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#47 def volatile_get(i); end # Set the element at the given index to the given value @@ -11502,7 +11579,7 @@ class Concurrent::Tuple # @param value [Object] the value to set at the given index # @return [Object] the new value of the element at the given index or nil if the index is out of bounds # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#55 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#59 def volatile_set(i, value); end end diff --git a/sorbet/rbi/gems/connection_pool@2.5.0.rbi b/sorbet/rbi/gems/connection_pool@2.5.4.rbi similarity index 100% rename from sorbet/rbi/gems/connection_pool@2.5.0.rbi rename to sorbet/rbi/gems/connection_pool@2.5.4.rbi diff --git a/sorbet/rbi/gems/cose@1.3.1.rbi b/sorbet/rbi/gems/cose@1.3.1.rbi index be54bb54..50f6e4aa 100644 --- a/sorbet/rbi/gems/cose@1.3.1.rbi +++ b/sorbet/rbi/gems/cose@1.3.1.rbi @@ -348,40 +348,53 @@ class COSE::Key::Curve < ::Struct # Returns the value of attribute id # # @return [Object] the current value of id + # + # source://cose//lib/cose/key/curve.rb#6 def id; end # Sets the attribute id # # @param value [Object] the value to set the attribute id to. # @return [Object] the newly set value + # + # source://cose//lib/cose/key/curve.rb#6 def id=(_); end # Returns the value of attribute name # # @return [Object] the current value of name + # + # source://cose//lib/cose/key/curve.rb#6 def name; end # Sets the attribute name # # @param value [Object] the value to set the attribute name to. # @return [Object] the newly set value + # + # source://cose//lib/cose/key/curve.rb#6 def name=(_); end # Returns the value of attribute pkey_name # # @return [Object] the current value of pkey_name + # + # source://cose//lib/cose/key/curve.rb#6 def pkey_name; end # Sets the attribute pkey_name # # @param value [Object] the value to set the attribute pkey_name to. # @return [Object] the newly set value + # + # source://cose//lib/cose/key/curve.rb#6 def pkey_name=(_); end # source://cose//lib/cose/key/curve.rb#25 def value; end class << self + # source://cose//lib/cose/key/curve.rb#6 def [](*_arg0); end # source://cose//lib/cose/key/curve.rb#17 @@ -393,9 +406,16 @@ class COSE::Key::Curve < ::Struct # source://cose//lib/cose/key/curve.rb#13 def find(id); end + # source://cose//lib/cose/key/curve.rb#6 def inspect; end + + # source://cose//lib/cose/key/curve.rb#6 def keyword_init?; end + + # source://cose//lib/cose/key/curve.rb#6 def members; end + + # source://cose//lib/cose/key/curve.rb#6 def new(*_arg0); end # source://cose//lib/cose/key/curve.rb#9 diff --git a/sorbet/rbi/gems/csv@3.3.3.rbi b/sorbet/rbi/gems/csv@3.3.5.rbi similarity index 100% rename from sorbet/rbi/gems/csv@3.3.3.rbi rename to sorbet/rbi/gems/csv@3.3.5.rbi diff --git a/sorbet/rbi/gems/date@3.4.1.rbi b/sorbet/rbi/gems/date@3.4.1.rbi index 1dcd7c8e..794e8467 100644 --- a/sorbet/rbi/gems/date@3.4.1.rbi +++ b/sorbet/rbi/gems/date@3.4.1.rbi @@ -1,4 +1,4 @@ -# typed: true +# typed: false # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `date` gem. @@ -9,6 +9,81 @@ class Date include ::Comparable + # source://date//lib/date.rb#4 + def initialize(*_arg0); end + + # source://date//lib/date.rb#4 + def +(other); end + + # source://date//lib/date.rb#4 + def -(other); end + + # source://date//lib/date.rb#4 + def <<(_arg0); end + + # source://date//lib/date.rb#4 + def <=>(other); end + + # source://date//lib/date.rb#4 + def ===(_arg0); end + + # source://date//lib/date.rb#4 + def >>(_arg0); end + + # source://date//lib/date.rb#4 + def ajd; end + + # source://date//lib/date.rb#4 + def amjd; end + + # source://date//lib/date.rb#4 + def asctime; end + + # source://date//lib/date.rb#4 + def ctime; end + + # source://date//lib/date.rb#4 + def cwday; end + + # source://date//lib/date.rb#4 + def cweek; end + + # source://date//lib/date.rb#4 + def cwyear; end + + # source://date//lib/date.rb#4 + def day; end + + # source://date//lib/date.rb#4 + def day_fraction; end + + # source://date//lib/date.rb#4 + def deconstruct_keys(_arg0); end + + # source://date//lib/date.rb#4 + def downto(_arg0); end + + # source://date//lib/date.rb#4 + def england; end + + # source://date//lib/date.rb#4 + def eql?(_arg0); end + + # source://date//lib/date.rb#4 + def friday?; end + + # source://date//lib/date.rb#4 + def gregorian; end + + # source://date//lib/date.rb#4 + def gregorian?; end + + # source://date//lib/date.rb#4 + def hash; end + + # source://date//lib/date.rb#4 + def httpdate; end + # call-seq: # infinite? -> false # @@ -18,6 +93,259 @@ class Date # # source://date//lib/date.rb#13 def infinite?; end + + # source://date//lib/date.rb#4 + def inspect; end + + # source://date//lib/date.rb#4 + def iso8601; end + + # source://date//lib/date.rb#4 + def italy; end + + # source://date//lib/date.rb#4 + def jd; end + + # source://date//lib/date.rb#4 + def jisx0301; end + + # source://date//lib/date.rb#4 + def julian; end + + # source://date//lib/date.rb#4 + def julian?; end + + # source://date//lib/date.rb#4 + def ld; end + + # source://date//lib/date.rb#4 + def leap?; end + + # source://date//lib/date.rb#4 + def marshal_dump; end + + # source://date//lib/date.rb#4 + def marshal_load(_arg0); end + + # source://date//lib/date.rb#4 + def mday; end + + # source://date//lib/date.rb#4 + def mjd; end + + # source://date//lib/date.rb#4 + def mon; end + + # source://date//lib/date.rb#4 + def monday?; end + + # source://date//lib/date.rb#4 + def month; end + + # source://date//lib/date.rb#4 + def new_start(*_arg0); end + + # source://date//lib/date.rb#4 + def next; end + + # source://date//lib/date.rb#4 + def next_day(*_arg0); end + + # source://date//lib/date.rb#4 + def next_month(*_arg0); end + + # source://date//lib/date.rb#4 + def next_year(*_arg0); end + + # source://date//lib/date.rb#4 + def prev_day(*_arg0); end + + # source://date//lib/date.rb#4 + def prev_month(*_arg0); end + + # source://date//lib/date.rb#4 + def prev_year(*_arg0); end + + # source://date//lib/date.rb#4 + def rfc2822; end + + # source://date//lib/date.rb#4 + def rfc3339; end + + # source://date//lib/date.rb#4 + def rfc822; end + + # source://date//lib/date.rb#4 + def saturday?; end + + # source://date//lib/date.rb#4 + def start; end + + # source://date//lib/date.rb#4 + def step(*_arg0); end + + # source://date//lib/date.rb#4 + def strftime(*_arg0); end + + # source://date//lib/date.rb#4 + def succ; end + + # source://date//lib/date.rb#4 + def sunday?; end + + # source://date//lib/date.rb#4 + def thursday?; end + + # source://date//lib/date.rb#4 + def to_date; end + + # source://date//lib/date.rb#4 + def to_datetime; end + + # source://date//lib/date.rb#4 + def to_s; end + + # source://date//lib/date.rb#4 + def to_time(form = T.unsafe(nil)); end + + # source://date//lib/date.rb#4 + def tuesday?; end + + # source://date//lib/date.rb#4 + def upto(_arg0); end + + # source://date//lib/date.rb#4 + def wday; end + + # source://date//lib/date.rb#4 + def wednesday?; end + + # source://date//lib/date.rb#4 + def xmlschema; end + + # source://date//lib/date.rb#4 + def yday; end + + # source://date//lib/date.rb#4 + def year; end + + private + + # source://date//lib/date.rb#4 + def hour; end + + # source://date//lib/date.rb#4 + def initialize_copy(_arg0); end + + # source://date//lib/date.rb#4 + def min; end + + # source://date//lib/date.rb#4 + def minute; end + + # source://date//lib/date.rb#4 + def sec; end + + # source://date//lib/date.rb#4 + def second; end + + class << self + # source://date//lib/date.rb#4 + def _httpdate(*_arg0); end + + # source://date//lib/date.rb#4 + def _iso8601(*_arg0); end + + # source://date//lib/date.rb#4 + def _jisx0301(*_arg0); end + + # source://date//lib/date.rb#4 + def _load(_arg0); end + + # source://date//lib/date.rb#4 + def _parse(*_arg0); end + + # source://date//lib/date.rb#4 + def _rfc2822(*_arg0); end + + # source://date//lib/date.rb#4 + def _rfc3339(*_arg0); end + + # source://date//lib/date.rb#4 + def _rfc822(*_arg0); end + + # source://date//lib/date.rb#4 + def _strptime(*_arg0); end + + # source://date//lib/date.rb#4 + def _xmlschema(*_arg0); end + + # source://date//lib/date.rb#4 + def civil(*_arg0); end + + # source://date//lib/date.rb#4 + def commercial(*_arg0); end + + # source://date//lib/date.rb#4 + def gregorian_leap?(_arg0); end + + # source://date//lib/date.rb#4 + def httpdate(*_arg0); end + + # source://date//lib/date.rb#4 + def iso8601(*_arg0); end + + # source://date//lib/date.rb#4 + def jd(*_arg0); end + + # source://date//lib/date.rb#4 + def jisx0301(*_arg0); end + + # source://date//lib/date.rb#4 + def julian_leap?(_arg0); end + + # source://date//lib/date.rb#4 + def leap?(_arg0); end + + # source://date//lib/date.rb#4 + def ordinal(*_arg0); end + + # source://date//lib/date.rb#4 + def parse(*_arg0); end + + # source://date//lib/date.rb#4 + def rfc2822(*_arg0); end + + # source://date//lib/date.rb#4 + def rfc3339(*_arg0); end + + # source://date//lib/date.rb#4 + def rfc822(*_arg0); end + + # source://date//lib/date.rb#4 + def strptime(*_arg0); end + + # source://date//lib/date.rb#4 + def today(*_arg0); end + + # source://date//lib/date.rb#4 + def valid_civil?(*_arg0); end + + # source://date//lib/date.rb#4 + def valid_commercial?(*_arg0); end + + # source://date//lib/date.rb#4 + def valid_date?(*_arg0); end + + # source://date//lib/date.rb#4 + def valid_jd?(*_arg0); end + + # source://date//lib/date.rb#4 + def valid_ordinal?(*_arg0); end + + # source://date//lib/date.rb#4 + def xmlschema(*_arg0); end + end end # source://date//lib/date.rb#17 diff --git a/sorbet/rbi/gems/debug_inspector@1.2.0.rbi b/sorbet/rbi/gems/debug_inspector@1.2.0.rbi index d4e06545..a67468ec 100644 --- a/sorbet/rbi/gems/debug_inspector@1.2.0.rbi +++ b/sorbet/rbi/gems/debug_inspector@1.2.0.rbi @@ -7,13 +7,23 @@ # source://debug_inspector//lib/debug_inspector/version.rb#1 class DebugInspector + # source://debug_inspector//lib/debug_inspector.rb#5 def backtrace_locations; end + + # source://debug_inspector//lib/debug_inspector.rb#5 def frame_binding(_arg0); end + + # source://debug_inspector//lib/debug_inspector.rb#5 def frame_class(_arg0); end + + # source://debug_inspector//lib/debug_inspector.rb#5 def frame_iseq(_arg0); end + + # source://debug_inspector//lib/debug_inspector.rb#5 def frame_self(_arg0); end class << self + # source://debug_inspector//lib/debug_inspector.rb#5 def open; end end end diff --git a/sorbet/rbi/gems/diff-lcs@1.6.1.rbi b/sorbet/rbi/gems/diff-lcs@1.6.2.rbi similarity index 100% rename from sorbet/rbi/gems/diff-lcs@1.6.1.rbi rename to sorbet/rbi/gems/diff-lcs@1.6.2.rbi diff --git a/sorbet/rbi/gems/digest-crc@0.7.0.rbi b/sorbet/rbi/gems/digest-crc@0.7.0.rbi index c0c2fb81..fabad518 100644 --- a/sorbet/rbi/gems/digest-crc@0.7.0.rbi +++ b/sorbet/rbi/gems/digest-crc@0.7.0.rbi @@ -119,6 +119,7 @@ end # # source://digest-crc//lib/digest/crc15.rb#9 class Digest::CRC15 < ::Digest::CRC + # source://digest-crc//lib/digest/crc15.rb#39 def update(_arg0); end end @@ -143,6 +144,7 @@ Digest::CRC15::WIDTH = T.let(T.unsafe(nil), Integer) # # source://digest-crc//lib/digest/crc16.rb#7 class Digest::CRC16 < ::Digest::CRC + # source://digest-crc//lib/digest/crc16.rb#55 def update(_arg0); end end @@ -167,6 +169,7 @@ Digest::CRC1::WIDTH = T.let(T.unsafe(nil), Integer) # # source://digest-crc//lib/digest/crc24.rb#7 class Digest::CRC24 < ::Digest::CRC + # source://digest-crc//lib/digest/crc24.rb#55 def update(_arg0); end end @@ -188,6 +191,7 @@ Digest::CRC24::WIDTH = T.let(T.unsafe(nil), Integer) # # source://digest-crc//lib/digest/crc32.rb#7 class Digest::CRC32 < ::Digest::CRC + # source://digest-crc//lib/digest/crc32.rb#89 def update(_arg0); end end @@ -212,6 +216,7 @@ Digest::CRC32::XOR_MASK = T.let(T.unsafe(nil), Integer) # # source://digest-crc//lib/digest/crc32c.rb#7 class Digest::CRC32c < ::Digest::CRC32 + # source://digest-crc//lib/digest/crc32c.rb#81 def update(_arg0); end end @@ -231,6 +236,7 @@ class Digest::CRC5 < ::Digest::CRC # source://digest-crc//lib/digest/crc5.rb#42 def initialize; end + # source://digest-crc//lib/digest/crc5.rb#52 def update(_arg0); end end @@ -258,6 +264,7 @@ Digest::CRC5::XOR_MASK = T.let(T.unsafe(nil), Integer) # # source://digest-crc//lib/digest/crc64.rb#7 class Digest::CRC64 < ::Digest::CRC + # source://digest-crc//lib/digest/crc64.rb#89 def update(_arg0); end end @@ -282,6 +289,7 @@ Digest::CRC64::XOR_MASK = T.let(T.unsafe(nil), Integer) # # source://digest-crc//lib/digest/crc8.rb#7 class Digest::CRC8 < ::Digest::CRC + # source://digest-crc//lib/digest/crc8.rb#39 def update(_arg0); end end @@ -308,6 +316,7 @@ Digest::CRC8::WIDTH = T.let(T.unsafe(nil), Integer) # # source://digest-crc//lib/digest/crc8_1wire.rb#7 class Digest::CRC8_1Wire < ::Digest::CRC8 + # source://digest-crc//lib/digest/crc8_1wire.rb#36 def update(_arg0); end end diff --git a/sorbet/rbi/gems/dotenv@3.1.8.rbi b/sorbet/rbi/gems/dotenv@3.1.8.rbi index e67e6faa..350477d3 100644 --- a/sorbet/rbi/gems/dotenv@3.1.8.rbi +++ b/sorbet/rbi/gems/dotenv@3.1.8.rbi @@ -45,12 +45,12 @@ module Dotenv # same as `#load`, but will overwrite existing values in `ENV` # - # source://dotenv//lib/dotenv.rb#32 + # source://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 + # source://dotenv//lib/dotenv.rb#41 def overload!(*filenames); end # same as `#load`, but will overwrite existing values in `ENV` diff --git a/sorbet/rbi/gems/drb@2.2.1.rbi b/sorbet/rbi/gems/drb@2.2.3.rbi similarity index 63% rename from sorbet/rbi/gems/drb@2.2.1.rbi rename to sorbet/rbi/gems/drb@2.2.3.rbi index d97695d9..7bd8c988 100644 --- a/sorbet/rbi/gems/drb@2.2.1.rbi +++ b/sorbet/rbi/gems/drb@2.2.3.rbi @@ -5,7 +5,291 @@ # Please instead update this file by running `bin/tapioca gem drb`. -# for ruby-1.8.0 +# == Overview +# +# 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. # # source://drb//lib/drb/eq.rb#2 module DRb @@ -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 + # source://drb//lib/drb/drb.rb#1882 def config; end # Get the 'current' server. @@ -32,14 +316,14 @@ module DRb # # @raise [DRbServerNotFound] # - # source://drb//lib/drb/drb.rb#1789 + # source://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 + # source://drb//lib/drb/drb.rb#1984 def fetch_server(uri); end # Get the front object of the current server. @@ -47,21 +331,21 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1843 + # source://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 + # source://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 + # source://drb//lib/drb/drb.rb#1938 def install_acl(acl); end # Set the default id conversion object. @@ -71,24 +355,24 @@ module DRb # # See DRbServer#default_id_conv. # - # source://drb//lib/drb/drb.rb#1880 + # source://drb//lib/drb/drb.rb#1930 def install_id_conv(idconv); end - # source://drb//lib/drb/drb.rb#1894 + # source://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 + # source://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 + # source://drb//lib/drb/drb.rb#1826 def primary_server=(_arg0); end # Registers +server+ with DRb. @@ -104,12 +388,12 @@ module DRb # s = DRb::DRbServer.new # automatically calls regist_server # DRb.fetch_server s.uri #=> # # - # source://drb//lib/drb/drb.rb#1912 + # source://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 + # source://drb//lib/drb/drb.rb#1971 def remove_server(server); end # Start a dRuby server locally. @@ -128,7 +412,7 @@ module DRb # # See DRbServer::new. # - # source://drb//lib/drb/drb.rb#1768 + # source://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 +420,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 + # source://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 + # source://drb//lib/drb/drb.rb#1919 def thread; end # Get a reference id for an object using the current server. @@ -151,7 +435,7 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1860 + # source://drb//lib/drb/drb.rb#1910 def to_id(obj); end # Convert a reference into an object using the current server. @@ -159,14 +443,14 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1852 + # source://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 + # source://drb//lib/drb/drb.rb#1860 def uri; end class << self @@ -175,7 +459,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 + # source://drb//lib/drb/drb.rb#1887 def config; end # Get the 'current' server. @@ -191,14 +475,14 @@ module DRb # # @raise [DRbServerNotFound] # - # source://drb//lib/drb/drb.rb#1789 + # source://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 + # source://drb//lib/drb/drb.rb#1987 def fetch_server(uri); end # Get the front object of the current server. @@ -206,21 +490,21 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1843 + # source://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 + # source://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 + # source://drb//lib/drb/drb.rb#1941 def install_acl(acl); end # Set the default id conversion object. @@ -230,24 +514,24 @@ module DRb # # See DRbServer#default_id_conv. # - # source://drb//lib/drb/drb.rb#1880 + # source://drb//lib/drb/drb.rb#1933 def install_id_conv(idconv); end - # source://drb//lib/drb/drb.rb#1894 + # source://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 + # source://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 + # source://drb//lib/drb/drb.rb#1827 def primary_server=(_arg0); end # Registers +server+ with DRb. @@ -263,12 +547,12 @@ module DRb # s = DRb::DRbServer.new # automatically calls regist_server # DRb.fetch_server s.uri #=> # # - # source://drb//lib/drb/drb.rb#1912 + # source://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 + # source://drb//lib/drb/drb.rb#1979 def remove_server(server); end # Start a dRuby server locally. @@ -287,7 +571,7 @@ module DRb # # See DRbServer::new. # - # source://drb//lib/drb/drb.rb#1768 + # source://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. @@ -295,14 +579,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 + # source://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 + # source://drb//lib/drb/drb.rb#1922 def thread; end # Get a reference id for an object using the current server. @@ -310,7 +594,7 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1860 + # source://drb//lib/drb/drb.rb#1913 def to_id(obj); end # Convert a reference into an object using the current server. @@ -318,38 +602,45 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1852 + # source://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 + # source://drb//lib/drb/drb.rb#1869 def uri; end end end +# +# This is an internal singleton instance. This must not be used +# by users. +# +# source://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 +# source://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 + # source://drb//lib/drb/drb.rb#551 def initialize(ary); end - # source://drb//lib/drb/drb.rb#542 + # source://drb//lib/drb/drb.rb#570 def _dump(lv); end class << self - # source://drb//lib/drb/drb.rb#538 + # source://drb//lib/drb/drb.rb#566 def _load(s); end end end @@ -364,35 +655,35 @@ 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 +# source://drb//lib/drb/drb.rb#1284 class DRb::DRbConn # @return [DRbConn] a new instance of DRbConn # - # source://drb//lib/drb/drb.rb#1317 + # source://drb//lib/drb/drb.rb#1345 def initialize(remote_uri); end # @return [Boolean] # - # source://drb//lib/drb/drb.rb#1333 + # source://drb//lib/drb/drb.rb#1361 def alive?; end - # source://drb//lib/drb/drb.rb#1328 + # source://drb//lib/drb/drb.rb#1356 def close; end - # source://drb//lib/drb/drb.rb#1323 + # source://drb//lib/drb/drb.rb#1351 def send_message(ref, msg_id, arg, block); end - # source://drb//lib/drb/drb.rb#1321 + # source://drb//lib/drb/drb.rb#1349 def uri; end class << self - # source://drb//lib/drb/drb.rb#1259 + # source://drb//lib/drb/drb.rb#1287 def make_pool; end - # source://drb//lib/drb/drb.rb#1297 + # source://drb//lib/drb/drb.rb#1325 def open(remote_uri); end - # source://drb//lib/drb/drb.rb#1292 + # source://drb//lib/drb/drb.rb#1320 def stop_pool; end end end @@ -407,14 +698,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 +# source://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 + # source://drb//lib/drb/drb.rb#407 def to_id(obj); end # Convert an object reference id to an object. @@ -422,7 +713,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 + # source://drb//lib/drb/drb.rb#399 def to_obj(ref); end end @@ -436,38 +727,38 @@ end # The user does not have to directly deal with this object in # normal use. # -# source://drb//lib/drb/drb.rb#556 +# source://drb//lib/drb/drb.rb#584 class DRb::DRbMessage # @return [DRbMessage] a new instance of DRbMessage # - # source://drb//lib/drb/drb.rb#557 + # source://drb//lib/drb/drb.rb#585 def initialize(config); end - # source://drb//lib/drb/drb.rb#562 + # source://drb//lib/drb/drb.rb#590 def dump(obj, error = T.unsafe(nil)); end # @raise [DRbConnError] # - # source://drb//lib/drb/drb.rb#579 + # source://drb//lib/drb/drb.rb#607 def load(soc); end - # source://drb//lib/drb/drb.rb#639 + # source://drb//lib/drb/drb.rb#667 def recv_reply(stream); end # @raise [DRbConnError] # - # source://drb//lib/drb/drb.rb#619 + # source://drb//lib/drb/drb.rb#647 def recv_request(stream); end - # source://drb//lib/drb/drb.rb#633 + # source://drb//lib/drb/drb.rb#661 def send_reply(stream, succ, result); end - # source://drb//lib/drb/drb.rb#605 + # source://drb//lib/drb/drb.rb#633 def send_request(stream, ref, msg_id, arg, b); end private - # source://drb//lib/drb/drb.rb#646 + # source://drb//lib/drb/drb.rb#674 def make_proxy(obj, error = T.unsafe(nil)); end end @@ -481,7 +772,7 @@ class DRb::DRbObject # # @return [DRbObject] a new instance of DRbObject # - # source://drb//lib/drb/drb.rb#1089 + # source://drb//lib/drb/drb.rb#1117 def initialize(obj, uri = T.unsafe(nil)); end # source://drb//lib/drb/eq.rb#4 @@ -489,41 +780,41 @@ class DRb::DRbObject # Get the reference of the object, if local. # - # source://drb//lib/drb/drb.rb#1115 + # source://drb//lib/drb/drb.rb#1143 def __drbref; end # Get the URI of the remote object. # - # source://drb//lib/drb/drb.rb#1110 + # source://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 + # source://drb//lib/drb/drb.rb#1108 def _dump(lv); end - # source://drb//lib/drb/eq.rb#4 + # source://drb//lib/drb/eq.rb#13 def eql?(other); end # source://drb//lib/drb/eq.rb#9 def hash; end - # source://drb//lib/drb/drb.rb#1135 + # source://drb//lib/drb/drb.rb#1163 def method_missing(msg_id, *a, **_arg2, &b); end - # source://drb//lib/drb/drb.rb#1187 + # source://drb//lib/drb/drb.rb#1215 def pretty_print(q); end - # source://drb//lib/drb/drb.rb#1191 + # source://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 + # source://drb//lib/drb/drb.rb#1151 def respond_to?(msg_id, priv = T.unsafe(nil)); end class << self @@ -533,33 +824,49 @@ 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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://drb//lib/drb/drb.rb#1188 def with_friend(uri); end end end +# source://drb//lib/drb/drb.rb#351 +class DRb::DRbObjectSpace + include ::MonitorMixin + + # @return [DRbObjectSpace] a new instance of DRbObjectSpace + # + # source://drb//lib/drb/drb.rb#357 + def initialize; end + + # source://drb//lib/drb/drb.rb#362 + def to_id(obj); end + + # source://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 +934,16 @@ end # and HTTP0 in sample/http0.rb and sample/http0serv.rb in the full # drb distribution. # -# source://drb//lib/drb/drb.rb#721 +# source://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 + # source://drb//lib/drb/drb.rb#752 def add_protocol(prot); end - # source://drb//lib/drb/drb.rb#802 + # source://drb//lib/drb/drb.rb#830 def auto_load(uri); end # Open a client connection to +uri+ with the configuration +config+. @@ -649,7 +956,7 @@ module DRb::DRbProtocol # # @raise [DRbBadURI] # - # source://drb//lib/drb/drb.rb#736 + # source://drb//lib/drb/drb.rb#764 def open(uri, config, first = T.unsafe(nil)); end # Open a server listening for connections at +uri+ with @@ -664,7 +971,7 @@ module DRb::DRbProtocol # # @raise [DRbBadURI] # - # source://drb//lib/drb/drb.rb#764 + # source://drb//lib/drb/drb.rb#792 def open_server(uri, config, first = T.unsafe(nil)); end # Parse +uri+ into a [uri, option] pair. @@ -676,16 +983,16 @@ module DRb::DRbProtocol # # @raise [DRbBadURI] # - # source://drb//lib/drb/drb.rb#785 + # source://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 + # source://drb//lib/drb/drb.rb#755 def add_protocol(prot); end - # source://drb//lib/drb/drb.rb#802 + # source://drb//lib/drb/drb.rb#835 def auto_load(uri); end # Open a client connection to +uri+ with the configuration +config+. @@ -698,7 +1005,7 @@ module DRb::DRbProtocol # # @raise [DRbBadURI] # - # source://drb//lib/drb/drb.rb#736 + # source://drb//lib/drb/drb.rb#781 def open(uri, config, first = T.unsafe(nil)); end # Open a server listening for connections at +uri+ with @@ -713,7 +1020,7 @@ module DRb::DRbProtocol # # @raise [DRbBadURI] # - # source://drb//lib/drb/drb.rb#764 + # source://drb//lib/drb/drb.rb#805 def open_server(uri, config, first = T.unsafe(nil)); end # Parse +uri+ into a [uri, option] pair. @@ -725,29 +1032,41 @@ module DRb::DRbProtocol # # @raise [DRbBadURI] # - # source://drb//lib/drb/drb.rb#785 + # source://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 +# source://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 + # source://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 + # source://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. +# +# source://drb//lib/drb/drb.rb#1378 class DRb::DRbServer # Create a new DRbServer instance. # @@ -794,14 +1113,14 @@ class DRb::DRbServer # # @return [DRbServer] a new instance of DRbServer # - # source://drb//lib/drb/drb.rb#1451 + # source://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 + # source://drb//lib/drb/drb.rb#1534 def alive?; end # Check that a method is callable via dRuby. @@ -815,12 +1134,12 @@ class DRb::DRbServer # # @raise [ArgumentError] # - # source://drb//lib/drb/drb.rb#1594 + # source://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 + # source://drb//lib/drb/drb.rb#1521 def config; end # The front object of the DRbServer. @@ -828,19 +1147,19 @@ 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 + # source://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 + # source://drb//lib/drb/drb.rb#1539 def here?(uri); end # Stop this server. # - # source://drb//lib/drb/drb.rb#1516 + # source://drb//lib/drb/drb.rb#1544 def stop_service; end # The main thread of this DRbServer. @@ -849,36 +1168,36 @@ class DRb::DRbServer # from clients, not that handles each client's request-response # session. # - # source://drb//lib/drb/drb.rb#1484 + # source://drb//lib/drb/drb.rb#1512 def thread; end # Convert a local object to a dRuby reference. # - # source://drb//lib/drb/drb.rb#1533 + # source://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 + # source://drb//lib/drb/drb.rb#1554 def to_obj(ref); end # The URI of this DRbServer. # - # source://drb//lib/drb/drb.rb#1477 + # source://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 + # source://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 + # source://drb//lib/drb/drb.rb#1526 def verbose=(v); end private @@ -886,17 +1205,17 @@ 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 + # source://drb//lib/drb/drb.rb#1608 def any_to_s(obj); end - # source://drb//lib/drb/drb.rb#1696 + # source://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 + # source://drb//lib/drb/drb.rb#1602 def insecure_method?(msg_id); end # The main loop performed by a DRbServer's internal thread. @@ -907,15 +1226,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 + # source://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 + # source://drb//lib/drb/drb.rb#1583 def run; end - # source://drb//lib/drb/drb.rb#1540 + # source://drb//lib/drb/drb.rb#1568 def shutdown; end class << self @@ -923,89 +1242,84 @@ class DRb::DRbServer # # See also DRb::ACL and #new() # - # source://drb//lib/drb/drb.rb#1375 + # source://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 + # source://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 + # source://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 + # source://drb//lib/drb/drb.rb#1396 def default_load_limit(sz); end - # source://drb//lib/drb/drb.rb#1398 + # source://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 + # source://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 + # source://drb//lib/drb/drb.rb#1417 def verbose=(on); end end end -# source://drb//lib/drb/drb.rb#1624 +# source://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 + # source://drb//lib/drb/drb.rb#1653 def initialize(drb_server, client); end - # source://drb//lib/drb/drb.rb#1630 + # source://drb//lib/drb/drb.rb#1658 def perform; end private - # source://drb//lib/drb/drb.rb#1667 + # source://drb//lib/drb/drb.rb#1704 + def block_yield(x); end + + # source://drb//lib/drb/drb.rb#1695 def check_insecure_method; end - # source://drb//lib/drb/drb.rb#1659 + # source://drb//lib/drb/drb.rb#1687 def init_with_client; end - # source://drb//lib/drb/drb.rb#1676 + # source://drb//lib/drb/drb.rb#1711 + def perform_with_block; end + + # source://drb//lib/drb/drb.rb#1731 def perform_without_block; end - # source://drb//lib/drb/drb.rb#1671 + # source://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 +# source://drb//lib/drb/drb.rb#843 class DRb::DRbTCPSocket # Create a new DRbTCPSocket instance. # @@ -1015,21 +1329,21 @@ class DRb::DRbTCPSocket # # @return [DRbTCPSocket] a new instance of DRbTCPSocket # - # source://drb//lib/drb/drb.rb#903 + # source://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 + # source://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 + # source://drb//lib/drb/drb.rb#1029 def alive?; end # Close the connection. @@ -1039,65 +1353,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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://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 + # source://drb//lib/drb/drb.rb#954 def send_request(ref, msg_id, arg, b); end - # source://drb//lib/drb/drb.rb#1010 + # source://drb//lib/drb/drb.rb#1038 def set_sockopt(soc); end # Graceful shutdown # - # source://drb//lib/drb/drb.rb#996 + # source://drb//lib/drb/drb.rb#1024 def shutdown; end # Get the socket. # - # source://drb//lib/drb/drb.rb#923 + # source://drb//lib/drb/drb.rb#951 def stream; end # Get the URI that we are connected to. # - # source://drb//lib/drb/drb.rb#914 + # source://drb//lib/drb/drb.rb#942 def uri; end private - # source://drb//lib/drb/drb.rb#986 + # source://drb//lib/drb/drb.rb#1014 def accept_or_shutdown; end - # source://drb//lib/drb/drb.rb#962 + # source://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 + # source://drb//lib/drb/drb.rb#873 def getservername; end # Open a client connection to +uri+ (DRb URI string) using configuration @@ -1107,28 +1421,28 @@ class DRb::DRbTCPSocket # recognized protocol. See DRb::DRbServer.new for information on built-in # URI protocols. # - # source://drb//lib/drb/drb.rb#838 + # source://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 + # source://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 + # source://drb//lib/drb/drb.rb#889 def open_server_inaddr_any(host, port); end - # source://drb//lib/drb/drb.rb#818 + # source://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 + # source://drb//lib/drb/drb.rb#921 def uri_option(uri, config); end end end @@ -1179,28 +1493,28 @@ end # source://drb//lib/drb/unix.rb#70 DRb::DRbUNIXSocket::Max_try = T.let(T.unsafe(nil), Integer) -# source://drb//lib/drb/drb.rb#1021 +# source://drb//lib/drb/drb.rb#1049 class DRb::DRbURIOption # @return [DRbURIOption] a new instance of DRbURIOption # - # source://drb//lib/drb/drb.rb#1022 + # source://drb//lib/drb/drb.rb#1050 def initialize(option); end - # source://drb//lib/drb/drb.rb#1028 + # source://drb//lib/drb/drb.rb#1056 def ==(other); end - # source://drb//lib/drb/drb.rb#1028 + # source://drb//lib/drb/drb.rb#1065 def eql?(other); end - # source://drb//lib/drb/drb.rb#1033 + # source://drb//lib/drb/drb.rb#1061 def hash; end # Returns the value of attribute option. # - # source://drb//lib/drb/drb.rb#1025 + # source://drb//lib/drb/drb.rb#1053 def option; end - # source://drb//lib/drb/drb.rb#1026 + # source://drb//lib/drb/drb.rb#1054 def to_s; end end @@ -1211,11 +1525,11 @@ 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 +# source://drb//lib/drb/drb.rb#418 module DRb::DRbUndumped # @raise [TypeError] # - # source://drb//lib/drb/drb.rb#391 + # source://drb//lib/drb/drb.rb#419 def _dump(dummy); end end @@ -1233,7 +1547,7 @@ end # +name+ attribute. The marshalled object is held in the +buf+ # attribute. # -# source://drb//lib/drb/drb.rb#457 +# source://drb//lib/drb/drb.rb#485 class DRb::DRbUnknown # Create a new DRbUnknown object. # @@ -1244,20 +1558,20 @@ class DRb::DRbUnknown # # @return [DRbUnknown] a new instance of DRbUnknown # - # source://drb//lib/drb/drb.rb#465 + # source://drb//lib/drb/drb.rb#493 def initialize(err, buf); end - # source://drb//lib/drb/drb.rb#494 + # source://drb//lib/drb/drb.rb#522 def _dump(lv); end # Buffer contained the marshalled, unknown object. # - # source://drb//lib/drb/drb.rb#484 + # source://drb//lib/drb/drb.rb#512 def buf; end # Create a DRbUnknownError exception containing this object. # - # source://drb//lib/drb/drb.rb#508 + # source://drb//lib/drb/drb.rb#536 def exception; end # The name of the unknown thing. @@ -1265,7 +1579,7 @@ class DRb::DRbUnknown # Class name for unknown objects; variable name for unknown # constants. # - # source://drb//lib/drb/drb.rb#481 + # source://drb//lib/drb/drb.rb#509 def name; end # Attempt to load the wrapped marshalled object again. @@ -1274,74 +1588,74 @@ 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 + # source://drb//lib/drb/drb.rb#531 def reload; end class << self - # source://drb//lib/drb/drb.rb#486 + # source://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 +# source://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 + # source://drb//lib/drb/drb.rb#441 def initialize(unknown); end - # source://drb//lib/drb/drb.rb#425 + # source://drb//lib/drb/drb.rb#453 def _dump(lv); end # Get the wrapped DRb::DRbUnknown object. # - # source://drb//lib/drb/drb.rb#419 + # source://drb//lib/drb/drb.rb#447 def unknown; end class << self - # source://drb//lib/drb/drb.rb#421 + # source://drb//lib/drb/drb.rb#449 def _load(s); end end end -# source://drb//lib/drb/drb.rb#1199 +# source://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 + # source://drb//lib/drb/drb.rb#1230 def initialize(&blk); end - # source://drb//lib/drb/drb.rb#1237 + # source://drb//lib/drb/drb.rb#1265 def _execute; end # @return [Boolean] # - # source://drb//lib/drb/drb.rb#1213 + # source://drb//lib/drb/drb.rb#1241 def alive?; end - # source://drb//lib/drb/drb.rb#1217 + # source://drb//lib/drb/drb.rb#1245 def kill; end - # source://drb//lib/drb/drb.rb#1222 + # source://drb//lib/drb/drb.rb#1250 def method_missing(msg, *arg, &blk); end end # source://drb//lib/drb/version.rb#2 DRb::VERSION = T.let(T.unsafe(nil), String) -# source://drb//lib/drb/drb.rb#1943 +# source://drb//lib/drb/drb.rb#1993 DRbIdConv = DRb::DRbIdConv # :stopdoc: # -# source://drb//lib/drb/drb.rb#1941 +# source://drb//lib/drb/drb.rb#1991 DRbObject = DRb::DRbObject -# source://drb//lib/drb/drb.rb#1942 +# source://drb//lib/drb/drb.rb#1992 DRbUndumped = DRb::DRbUndumped diff --git a/sorbet/rbi/gems/dry-cli@1.2.0.rbi b/sorbet/rbi/gems/dry-cli@1.3.0.rbi similarity index 98% rename from sorbet/rbi/gems/dry-cli@1.2.0.rbi rename to sorbet/rbi/gems/dry-cli@1.3.0.rbi index 412cefb9..bc1b8670 100644 --- a/sorbet/rbi/gems/dry-cli@1.2.0.rbi +++ b/sorbet/rbi/gems/dry-cli@1.3.0.rbi @@ -285,31 +285,31 @@ end class Dry::CLI::Command extend ::Forwardable - # source://forwardable/1.3.3/forwardable.rb#231 + # source://dry-cli//lib/dry/cli/command.rb#371 def arguments(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://dry-cli//lib/dry/cli/command.rb#371 def default_params(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://dry-cli//lib/dry/cli/command.rb#371 def description(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://dry-cli//lib/dry/cli/command.rb#371 def examples(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://dry-cli//lib/dry/cli/command.rb#371 def optional_arguments(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://dry-cli//lib/dry/cli/command.rb#371 def options(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://dry-cli//lib/dry/cli/command.rb#371 def params(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://dry-cli//lib/dry/cli/command.rb#371 def required_arguments(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://dry-cli//lib/dry/cli/command.rb#371 def subcommands(*args, **_arg1, &block); end class << self @@ -1418,20 +1418,20 @@ class Dry::CLI::Registry::Prefix # @since 0.1.0 # # source://dry-cli//lib/dry/cli/registry.rb#321 - def register(name, command, aliases: T.unsafe(nil), hidden: T.unsafe(nil)); end + def register(name, command = T.unsafe(nil), aliases: T.unsafe(nil), hidden: T.unsafe(nil), &block); end private # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/registry.rb#334 + # source://dry-cli//lib/dry/cli/registry.rb#343 def prefix; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/registry.rb#330 + # source://dry-cli//lib/dry/cli/registry.rb#339 def registry; end end diff --git a/sorbet/rbi/gems/erb@5.0.2.rbi b/sorbet/rbi/gems/erb@5.0.2.rbi new file mode 100644 index 00000000..35c1ceed --- /dev/null +++ b/sorbet/rbi/gems/erb@5.0.2.rbi @@ -0,0 +1,878 @@ +# 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`. + + +# = ERB -- Ruby Templating +# +# == Introduction +# +# ERB provides an easy to use but powerful templating system for Ruby. Using +# ERB, actual Ruby code can be added to any plain text document for the +# purposes of generating document information details and/or flow control. +# +# A very simple example is this: +# +# require 'erb' +# +# x = 42 +# template = ERB.new <<-EOF +# The value of x is: <%= x %> +# EOF +# puts template.result(binding) +# +# Prints: The value of x is: 42 +# +# More complex examples are given below. +# +# +# == Recognized Tags +# +# ERB recognizes certain tags in the provided template and converts them based +# on the rules below: +# +# <% Ruby code -- inline with output %> +# <%= Ruby expression -- replace with result %> +# <%# comment -- ignored -- useful in testing %> (`<% #` doesn't work. Don't use Ruby comments.) +# % a line of Ruby code -- treated as <% line %> (optional -- see ERB.new) +# %% replaced with % if first thing on a line and % processing is used +# <%% or %%> -- replace with <% or %> respectively +# +# All other text is passed through ERB filtering unchanged. +# +# +# == Options +# +# There are several settings you can change when you use ERB: +# * the nature of the tags that are recognized; +# * the binding used to resolve local variables in the template. +# +# See the ERB.new and ERB#result methods for more detail. +# +# == Character encodings +# +# ERB (or Ruby code generated by ERB) returns a string in the same +# character encoding as the input string. When the input string has +# a magic comment, however, it returns a string in the encoding specified +# by the magic comment. +# +# # -*- coding: utf-8 -*- +# require 'erb' +# +# template = ERB.new < +# \_\_ENCODING\_\_ is <%= \_\_ENCODING\_\_ %>. +# EOF +# puts template.result +# +# Prints: \_\_ENCODING\_\_ is Big5. +# +# +# == Examples +# +# === Plain Text +# +# ERB is useful for any generic templating situation. Note that in this example, we use the +# convenient "% at start of line" tag, and we quote the template literally with +# %q{...} to avoid trouble with the backslash. +# +# require "erb" +# +# # Create template. +# template = %q{ +# From: James Edward Gray II +# To: <%= to %> +# Subject: Addressing Needs +# +# <%= to[/\w+/] %>: +# +# Just wanted to send a quick note assuring that your needs are being +# addressed. +# +# I want you to know that my team will keep working on the issues, +# especially: +# +# <%# ignore numerous minor requests -- focus on priorities %> +# % priorities.each do |priority| +# * <%= priority %> +# % end +# +# Thanks for your patience. +# +# James Edward Gray II +# }.gsub(/^ /, '') +# +# message = ERB.new(template, trim_mode: "%<>") +# +# # Set up template data. +# to = "Community Spokesman " +# priorities = [ "Run Ruby Quiz", +# "Document Modules", +# "Answer Questions on Ruby Talk" ] +# +# # Produce result. +# email = message.result +# puts email +# +# Generates: +# +# From: James Edward Gray II +# To: Community Spokesman +# Subject: Addressing Needs +# +# Community: +# +# Just wanted to send a quick note assuring that your needs are being addressed. +# +# I want you to know that my team will keep working on the issues, especially: +# +# * Run Ruby Quiz +# * Document Modules +# * Answer Questions on Ruby Talk +# +# Thanks for your patience. +# +# James Edward Gray II +# +# === Ruby in HTML +# +# ERB is often used in .rhtml files (HTML with embedded Ruby). Notice the need in +# this example to provide a special binding when the template is run, so that the instance +# variables in the Product object can be resolved. +# +# require "erb" +# +# # Build template data class. +# class Product +# def initialize( code, name, desc, cost ) +# @code = code +# @name = name +# @desc = desc +# @cost = cost +# +# @features = [ ] +# end +# +# def add_feature( feature ) +# @features << feature +# end +# +# # Support templating of member data. +# def get_binding +# binding +# end +# +# # ... +# end +# +# # Create template. +# template = %{ +# +# Ruby Toys -- <%= @name %> +# +# +#

<%= @name %> (<%= @code %>)

+#

<%= @desc %>

+# +#
    +# <% @features.each do |f| %> +#
  • <%= f %>
  • +# <% end %> +#
+# +#

+# <% if @cost < 10 %> +# Only <%= @cost %>!!! +# <% else %> +# Call for a price, today! +# <% end %> +#

+# +# +# +# }.gsub(/^ /, '') +# +# rhtml = ERB.new(template) +# +# # Set up template data. +# toy = Product.new( "TZ-1002", +# "Rubysapien", +# "Geek's Best Friend! Responds to Ruby commands...", +# 999.95 ) +# toy.add_feature("Listens for verbal commands in the Ruby language!") +# toy.add_feature("Ignores Perl, Java, and all C variants.") +# toy.add_feature("Karate-Chop Action!!!") +# toy.add_feature("Matz signature on left leg.") +# toy.add_feature("Gem studded eyes... Rubies, of course!") +# +# # Produce result. +# rhtml.run(toy.get_binding) +# +# Generates (some blank lines removed): +# +# +# Ruby Toys -- Rubysapien +# +# +#

Rubysapien (TZ-1002)

+#

Geek's Best Friend! Responds to Ruby commands...

+# +#
    +#
  • Listens for verbal commands in the Ruby language!
  • +#
  • Ignores Perl, Java, and all C variants.
  • +#
  • Karate-Chop Action!!!
  • +#
  • Matz signature on left leg.
  • +#
  • Gem studded eyes... Rubies, of course!
  • +#
+# +#

+# Call for a price, today! +#

+# +# +# +# +# +# == Notes +# +# There are a variety of templating solutions available in various Ruby projects. +# For example, RDoc, distributed with Ruby, uses its own template engine, which +# can be reused elsewhere. +# +# Other popular engines could be found in the corresponding +# {Category}[https://www.ruby-toolbox.com/categories/template_engines] of +# The Ruby Toolbox. +# +# source://erb//lib/erb/version.rb#2 +class ERB + # Constructs a new ERB object with the template specified in _str_. + # + # An ERB object works by building a chunk of Ruby code that will output + # the completed template when run. + # + # If _trim_mode_ is passed a String containing one or more of the following + # modifiers, ERB will adjust its code generation as listed: + # + # % enables Ruby code processing for lines beginning with % + # <> omit newline for lines starting with <% and ending in %> + # > omit newline for lines ending in %> + # - omit blank lines ending in -%> + # + # _eoutvar_ can be used to set the name of the variable ERB will build up + # its output in. This is useful when you need to run multiple ERB + # templates through the same binding and/or when you want to control where + # output ends up. Pass the name of the variable to be used inside a String. + # + # === Example + # + # require "erb" + # + # # build data class + # class Listings + # PRODUCT = { :name => "Chicken Fried Steak", + # :desc => "A well messaged pattie, breaded and fried.", + # :cost => 9.95 } + # + # attr_reader :product, :price + # + # def initialize( product = "", price = "" ) + # @product = product + # @price = price + # end + # + # def build + # b = binding + # # create and run templates, filling member data variables + # ERB.new(<<~'END_PRODUCT', trim_mode: "", eoutvar: "@product").result b + # <%= PRODUCT[:name] %> + # <%= PRODUCT[:desc] %> + # END_PRODUCT + # ERB.new(<<~'END_PRICE', trim_mode: "", eoutvar: "@price").result b + # <%= PRODUCT[:name] %> -- <%= PRODUCT[:cost] %> + # <%= PRODUCT[:desc] %> + # END_PRICE + # end + # end + # + # # setup template data + # listings = Listings.new + # listings.build + # + # puts listings.product + "\n" + listings.price + # + # _Generates_ + # + # Chicken Fried Steak + # A well massaged pattie, breaded and fried. + # + # Chicken Fried Steak -- 9.95 + # A well massaged pattie, breaded and fried. + # + # @return [ERB] a new instance of ERB + # + # source://erb//lib/erb.rb#334 + def initialize(str, safe_level = T.unsafe(nil), legacy_trim_mode = T.unsafe(nil), legacy_eoutvar = T.unsafe(nil), trim_mode: T.unsafe(nil), eoutvar: T.unsafe(nil)); end + + # Define unnamed class which has _methodname_ as instance method, and return it. + # + # example: + # class MyClass_ + # def initialize(arg1, arg2) + # @arg1 = arg1; @arg2 = arg2 + # end + # end + # filename = 'example.rhtml' # @arg1 and @arg2 are used in example.rhtml + # erb = ERB.new(File.read(filename)) + # erb.filename = filename + # MyClass = erb.def_class(MyClass_, 'render()') + # print MyClass.new('foo', 123).render() + # + # source://erb//lib/erb.rb#499 + def def_class(superklass = T.unsafe(nil), methodname = T.unsafe(nil)); end + + # Define _methodname_ as instance method of _mod_ from compiled Ruby source. + # + # example: + # filename = 'example.rhtml' # 'arg1' and 'arg2' are used in example.rhtml + # erb = ERB.new(File.read(filename)) + # erb.def_method(MyClass, 'render(arg1, arg2)', filename) + # print MyClass.new.render('foo', 123) + # + # source://erb//lib/erb.rb#463 + def def_method(mod, methodname, fname = T.unsafe(nil)); end + + # Create unnamed module, define _methodname_ as instance method of it, and return it. + # + # example: + # filename = 'example.rhtml' # 'arg1' and 'arg2' are used in example.rhtml + # erb = ERB.new(File.read(filename)) + # erb.filename = filename + # MyModule = erb.def_module('render(arg1, arg2)') + # class MyClass + # include MyModule + # end + # + # source://erb//lib/erb.rb#480 + def def_module(methodname = T.unsafe(nil)); end + + # The encoding to eval + # + # source://erb//lib/erb.rb#369 + def encoding; end + + # The optional _filename_ argument passed to Kernel#eval when the ERB code + # is run + # + # source://erb//lib/erb.rb#373 + def filename; end + + # The optional _filename_ argument passed to Kernel#eval when the ERB code + # is run + # + # source://erb//lib/erb.rb#373 + def filename=(_arg0); end + + # The optional _lineno_ argument passed to Kernel#eval when the ERB code + # is run + # + # source://erb//lib/erb.rb#377 + def lineno; end + + # The optional _lineno_ argument passed to Kernel#eval when the ERB code + # is run + # + # source://erb//lib/erb.rb#377 + def lineno=(_arg0); end + + # Sets optional filename and line number that will be used in ERB code + # evaluation and error reporting. See also #filename= and #lineno= + # + # erb = ERB.new('<%= some_x %>') + # erb.render + # # undefined local variable or method `some_x' + # # from (erb):1 + # + # erb.location = ['file.erb', 3] + # # All subsequent error reporting would use new location + # erb.render + # # undefined local variable or method `some_x' + # # from file.erb:4 + # + # source://erb//lib/erb.rb#394 + def location=(_arg0); end + + # Creates a new compiler for ERB. See ERB::Compiler.new for details + # + # source://erb//lib/erb.rb#361 + def make_compiler(trim_mode); end + + # Executes the generated ERB code to produce a completed template, returning + # the results of that code. + # + # _b_ accepts a Binding object which is used to set the context of + # code evaluation. + # + # source://erb//lib/erb.rb#423 + def result(b = T.unsafe(nil)); end + + # Render a template on a new toplevel binding with local variables specified + # by a Hash object. + # + # source://erb//lib/erb.rb#432 + def result_with_hash(hash); end + + # Generate results and print them. (see ERB#result) + # + # source://erb//lib/erb.rb#412 + def run(b = T.unsafe(nil)); end + + # Can be used to set _eoutvar_ as described in ERB::new. It's probably + # easier to just use the constructor though, since calling this method + # requires the setup of an ERB _compiler_ object. + # + # source://erb//lib/erb.rb#404 + def set_eoutvar(compiler, eoutvar = T.unsafe(nil)); end + + # The Ruby code generated by ERB + # + # source://erb//lib/erb.rb#366 + def src; end + + private + + # Returns a new binding each time *near* TOPLEVEL_BINDING for runs that do + # not specify a binding. + # + # source://erb//lib/erb.rb#444 + def new_toplevel(vars = T.unsafe(nil)); end + + class << self + # Returns revision information for the erb.rb module. + # + # source://erb//lib/erb.rb#266 + def version; end + end +end + +# -- +# ERB::Compiler +# +# Compiles ERB templates into Ruby code; the compiled code produces the +# template result when evaluated. ERB::Compiler provides hooks to define how +# generated output is handled. +# +# Internally ERB does something like this to generate the code returned by +# ERB#src: +# +# compiler = ERB::Compiler.new('<>') +# compiler.pre_cmd = ["_erbout=+''"] +# compiler.put_cmd = "_erbout.<<" +# compiler.insert_cmd = "_erbout.<<" +# compiler.post_cmd = ["_erbout"] +# +# code, enc = compiler.compile("Got <%= obj %>!\n") +# puts code +# +# Generates: +# +# #coding:UTF-8 +# _erbout=+''; _erbout.<< "Got ".freeze; _erbout.<<(( obj ).to_s); _erbout.<< "!\n".freeze; _erbout +# +# By default the output is sent to the print method. For example: +# +# compiler = ERB::Compiler.new('<>') +# code, enc = compiler.compile("Got <%= obj %>!\n") +# puts code +# +# Generates: +# +# #coding:UTF-8 +# print "Got ".freeze; print(( obj ).to_s); print "!\n".freeze +# +# == Evaluation +# +# The compiled code can be used in any context where the names in the code +# correctly resolve. Using the last example, each of these print 'Got It!' +# +# Evaluate using a variable: +# +# obj = 'It' +# eval code +# +# Evaluate using an input: +# +# mod = Module.new +# mod.module_eval %{ +# def get(obj) +# #{code} +# end +# } +# extend mod +# get('It') +# +# Evaluate using an accessor: +# +# klass = Class.new Object +# klass.class_eval %{ +# attr_accessor :obj +# def initialize(obj) +# @obj = obj +# end +# def get_it +# #{code} +# end +# } +# klass.new('It').get_it +# +# Good! See also ERB#def_method, ERB#def_module, and ERB#def_class. +# +# source://erb//lib/erb/compiler.rb#73 +class ERB::Compiler + # Construct a new compiler using the trim_mode. See ERB::new for available + # trim modes. + # + # @return [Compiler] a new instance of Compiler + # + # source://erb//lib/erb/compiler.rb#433 + def initialize(trim_mode); end + + # source://erb//lib/erb/compiler.rb#315 + def add_insert_cmd(out, content); end + + # source://erb//lib/erb/compiler.rb#311 + def add_put_cmd(out, content); end + + # Compiles an ERB template into Ruby code. Returns an array of the code + # and encoding like ["code", Encoding]. + # + # @raise [ArgumentError] + # + # source://erb//lib/erb/compiler.rb#321 + def compile(s); end + + # source://erb//lib/erb/compiler.rb#381 + def compile_content(stag, out); end + + # source://erb//lib/erb/compiler.rb#368 + def compile_etag(etag, out, scanner); end + + # source://erb//lib/erb/compiler.rb#344 + def compile_stag(stag, out, scanner); end + + # The command to handle text that is inserted prior to a newline + # + # source://erb//lib/erb/compiler.rb#446 + def insert_cmd; end + + # The command to handle text that is inserted prior to a newline + # + # source://erb//lib/erb/compiler.rb#446 + def insert_cmd=(_arg0); end + + # source://erb//lib/erb/compiler.rb#427 + def make_scanner(src); end + + # Returns the value of attribute percent. + # + # source://erb//lib/erb/compiler.rb#440 + def percent; end + + # An array of commands appended to compiled code + # + # source://erb//lib/erb/compiler.rb#452 + def post_cmd; end + + # An array of commands appended to compiled code + # + # source://erb//lib/erb/compiler.rb#452 + def post_cmd=(_arg0); end + + # An array of commands prepended to compiled code + # + # source://erb//lib/erb/compiler.rb#449 + def pre_cmd; end + + # An array of commands prepended to compiled code + # + # source://erb//lib/erb/compiler.rb#449 + def pre_cmd=(_arg0); end + + # source://erb//lib/erb/compiler.rb#398 + def prepare_trim_mode(mode); end + + # The command to handle text that ends with a newline + # + # source://erb//lib/erb/compiler.rb#443 + def put_cmd; end + + # The command to handle text that ends with a newline + # + # source://erb//lib/erb/compiler.rb#443 + def put_cmd=(_arg0); end + + # Returns the value of attribute trim_mode. + # + # source://erb//lib/erb/compiler.rb#440 + def trim_mode; end + + private + + # A buffered text in #compile + # + # source://erb//lib/erb/compiler.rb#457 + def content; end + + # A buffered text in #compile + # + # source://erb//lib/erb/compiler.rb#457 + def content=(_arg0); end + + # source://erb//lib/erb/compiler.rb#459 + def detect_magic_comment(s, enc = T.unsafe(nil)); end + + # :startdoc: + # + # source://erb//lib/erb/compiler.rb#485 + def warn_invalid_trim_mode(mode, uplevel:); end +end + +# source://erb//lib/erb/compiler.rb#278 +class ERB::Compiler::Buffer + # @return [Buffer] a new instance of Buffer + # + # source://erb//lib/erb/compiler.rb#279 + def initialize(compiler, enc = T.unsafe(nil), frozen = T.unsafe(nil)); end + + # source://erb//lib/erb/compiler.rb#301 + def close; end + + # source://erb//lib/erb/compiler.rb#295 + def cr; end + + # source://erb//lib/erb/compiler.rb#291 + def push(cmd); end + + # Returns the value of attribute script. + # + # source://erb//lib/erb/compiler.rb#289 + def script; end +end + +# source://erb//lib/erb/compiler.rb#254 +class ERB::Compiler::ExplicitScanner < ::ERB::Compiler::Scanner + # source://erb//lib/erb/compiler.rb#255 + def scan; end +end + +# source://erb//lib/erb/compiler.rb#74 +class ERB::Compiler::PercentLine + # @return [PercentLine] a new instance of PercentLine + # + # source://erb//lib/erb/compiler.rb#75 + def initialize(str); end + + # Returns the value of attribute value. + # + # source://erb//lib/erb/compiler.rb#79 + def to_s; end + + # Returns the value of attribute value. + # + # source://erb//lib/erb/compiler.rb#78 + def value; end +end + +# source://erb//lib/erb/compiler.rb#82 +class ERB::Compiler::Scanner + # @return [Scanner] a new instance of Scanner + # + # source://erb//lib/erb/compiler.rb#108 + def initialize(src, trim_mode, percent); end + + # Returns the value of attribute etags. + # + # source://erb//lib/erb/compiler.rb#115 + def etags; end + + # source://erb//lib/erb/compiler.rb#117 + def scan; end + + # Returns the value of attribute stag. + # + # source://erb//lib/erb/compiler.rb#114 + def stag; end + + # Sets the attribute stag + # + # @param value the value to set the attribute stag to. + # + # source://erb//lib/erb/compiler.rb#114 + def stag=(_arg0); end + + # Returns the value of attribute stags. + # + # source://erb//lib/erb/compiler.rb#115 + def stags; end + + class << self + # source://erb//lib/erb/compiler.rb#97 + def default_scanner=(klass); end + + # source://erb//lib/erb/compiler.rb#101 + def make_scanner(src, trim_mode, percent); end + + # source://erb//lib/erb/compiler.rb#94 + def regist_scanner(klass, trim_mode, percent); end + + # source://erb//lib/erb/compiler.rb#86 + def register_scanner(klass, trim_mode, percent); end + end +end + +# source://erb//lib/erb/compiler.rb#107 +ERB::Compiler::Scanner::DEFAULT_ETAGS = T.let(T.unsafe(nil), Array) + +# source://erb//lib/erb/compiler.rb#106 +ERB::Compiler::Scanner::DEFAULT_STAGS = T.let(T.unsafe(nil), Array) + +# source://erb//lib/erb/compiler.rb#240 +class ERB::Compiler::SimpleScanner < ::ERB::Compiler::Scanner + # source://erb//lib/erb/compiler.rb#241 + def scan; end +end + +# source://erb//lib/erb/compiler.rb#120 +class ERB::Compiler::TrimScanner < ::ERB::Compiler::Scanner + # @return [TrimScanner] a new instance of TrimScanner + # + # source://erb//lib/erb/compiler.rb#121 + def initialize(src, trim_mode, percent); end + + # source://erb//lib/erb/compiler.rb#210 + def explicit_trim_line(line); end + + # @return [Boolean] + # + # source://erb//lib/erb/compiler.rb#229 + def is_erb_stag?(s); end + + # source://erb//lib/erb/compiler.rb#152 + def percent_line(line, &block); end + + # source://erb//lib/erb/compiler.rb#140 + def scan(&block); end + + # source://erb//lib/erb/compiler.rb#165 + def scan_line(line); end + + # source://erb//lib/erb/compiler.rb#174 + def trim_line1(line); end + + # source://erb//lib/erb/compiler.rb#188 + def trim_line2(line); end +end + +# :stopdoc: +# +# source://erb//lib/erb/compiler.rb#476 +ERB::Compiler::WARNING_UPLEVEL = T.let(T.unsafe(nil), Integer) + +# ERB::DefMethod +# +# Utility module to define eRuby script as instance method. +# +# === Example +# +# example.rhtml: +# <% for item in @items %> +# <%= item %> +# <% end %> +# +# example.rb: +# require 'erb' +# class MyClass +# extend ERB::DefMethod +# def_erb_method('render()', 'example.rhtml') +# def initialize(items) +# @items = items +# end +# end +# print MyClass.new([10,20,30]).render() +# +# result: +# +# 10 +# +# 20 +# +# 30 +# +# source://erb//lib/erb/def_method.rb#33 +module ERB::DefMethod + private + + # define _methodname_ as instance method of current module, using ERB + # object or eRuby file + # + # source://erb//lib/erb/def_method.rb#36 + def def_erb_method(methodname, erb_or_fname); end + + class << self + # define _methodname_ as instance method of current module, using ERB + # object or eRuby file + # + # source://erb//lib/erb/def_method.rb#46 + def def_erb_method(methodname, erb_or_fname); end + end +end + +module ERB::Escape; end + +# source://erb//lib/erb.rb#355 +ERB::NOT_GIVEN = T.let(T.unsafe(nil), Object) + +# ERB::Util +# +# A utility module for conversion routines, often handy in HTML generation. +# +# source://erb//lib/erb/util.rb#32 +module ERB::Util + include ::ActiveSupport::CoreExt::ERBUtil + include ::ERB::Escape + extend ::ActiveSupport::CoreExt::ERBUtil + + private + + # cgi.gem <= v0.3.2 + # + # source://erb//lib/erb/util.rb#73 + def u(s); end + + # cgi.gem <= v0.3.2 + # + # source://erb//lib/erb/util.rb#63 + def url_encode(s); end + + class << self + # source://erb//lib/erb/util.rb#48 + def h(s); end + + # source://erb//lib/erb/util.rb#46 + def html_escape(s); end + + # cgi.gem <= v0.3.2 + # + # source://erb//lib/erb/util.rb#74 + def u(s); end + + # cgi.gem <= v0.3.2 + # + # source://erb//lib/erb/util.rb#75 + def url_encode(s); end + end +end + +# source://erb//lib/erb/version.rb#3 +ERB::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/erubi@1.13.1.rbi b/sorbet/rbi/gems/erubi@1.13.1.rbi index a291c13d..3a6982f1 100644 --- a/sorbet/rbi/gems/erubi@1.13.1.rbi +++ b/sorbet/rbi/gems/erubi@1.13.1.rbi @@ -9,9 +9,11 @@ module Erubi private + # source://erubi//lib/erubi.rb#22 def h(_arg0); end class << self + # source://erubi//lib/erubi.rb#49 def h(_arg0); end end end diff --git a/sorbet/rbi/gems/et-orbi@1.2.11.rbi b/sorbet/rbi/gems/et-orbi@1.3.0.rbi similarity index 88% rename from sorbet/rbi/gems/et-orbi@1.2.11.rbi rename to sorbet/rbi/gems/et-orbi@1.3.0.rbi index 5608eaee..bd3e9258 100644 --- a/sorbet/rbi/gems/et-orbi@1.2.11.rbi +++ b/sorbet/rbi/gems/et-orbi@1.3.0.rbi @@ -5,12 +5,12 @@ # Please instead update this file by running `bin/tapioca gem et-orbi`. -# source://et-orbi//lib/et-orbi/info.rb#2 +# source://et-orbi//lib/et-orbi/version.rb#2 module EtOrbi class << self # For `make info` # - # source://et-orbi//lib/et-orbi/info.rb#36 + # source://et-orbi//lib/et-orbi/info.rb#37 def _make_info; end # test tool @@ -57,7 +57,7 @@ module EtOrbi # source://et-orbi//lib/et-orbi/zones.rb#21 def list_iso8601_zones(s); end - # source://et-orbi//lib/et-orbi/make.rb#51 + # source://et-orbi//lib/et-orbi/make.rb#69 def make(*a); end # source://et-orbi//lib/et-orbi/make.rb#51 @@ -78,10 +78,10 @@ module EtOrbi # source://et-orbi//lib/et-orbi/info.rb#6 def platform_info; end - # source://et-orbi//lib/et-orbi/info.rb#42 + # source://et-orbi//lib/et-orbi/info.rb#43 def render_nozone_time(seconds); end - # source://et-orbi//lib/et-orbi/zones.rb#164 + # source://et-orbi//lib/et-orbi/zones.rb#176 def tweak_zone_name(name); end # Semi-helpful, since it requires the current time @@ -89,9 +89,12 @@ module EtOrbi # source://et-orbi//lib/et-orbi/zones.rb#138 def windows_zone_name(zone_name, time); end - # source://et-orbi//lib/et-orbi/zones.rb#53 + # source://et-orbi//lib/et-orbi/zones.rb#87 def zone; end + # source://et-orbi//lib/et-orbi/zones.rb#164 + def zone_abbreviation(zone_name, time); end + protected # source://et-orbi//lib/et-orbi/make.rb#73 @@ -100,10 +103,10 @@ module EtOrbi # source://et-orbi//lib/et-orbi/zone.rb#56 def create_offset_tzone(utc_off, id); end - # source://et-orbi//lib/et-orbi/zones.rb#240 + # source://et-orbi//lib/et-orbi/zones.rb#252 def custom_tzs; end - # source://et-orbi//lib/et-orbi/zones.rb#210 + # source://et-orbi//lib/et-orbi/zones.rb#222 def determine_local_tzones; end # https://api.rubyonrails.org/classes/ActiveSupport/TimeWithZone.html @@ -145,22 +148,22 @@ module EtOrbi # source://et-orbi//lib/et-orbi/make.rb#84 def make_from_time(t, zone); end - # source://et-orbi//lib/et-orbi/zones.rb#176 + # source://et-orbi//lib/et-orbi/zones.rb#188 def normalize(name); end # source://et-orbi//lib/et-orbi/zone.rb#84 def to_offset(n); end - # source://et-orbi//lib/et-orbi/zones.rb#241 + # source://et-orbi//lib/et-orbi/zones.rb#253 def tz_all; end - # source://et-orbi//lib/et-orbi/info.rb#67 + # source://et-orbi//lib/et-orbi/info.rb#68 def tzinfo_data_version; end - # source://et-orbi//lib/et-orbi/info.rb#59 + # source://et-orbi//lib/et-orbi/info.rb#60 def tzinfo_version; end - # source://et-orbi//lib/et-orbi/zones.rb#181 + # source://et-orbi//lib/et-orbi/zones.rb#193 def unzz(name); end # source://et-orbi//lib/et-orbi/zone.rb#106 @@ -234,7 +237,7 @@ class EtOrbi::EoTime # source://et-orbi//lib/et-orbi/time.rb#218 def asctime; end - # source://et-orbi//lib/et-orbi/time.rb#409 + # source://et-orbi//lib/et-orbi/time.rb#417 def clone; end # source://et-orbi//lib/et-orbi/time.rb#218 @@ -243,19 +246,19 @@ class EtOrbi::EoTime # Returns this ::EtOrbi::EoTime as a ::Time instance # in the current UTC timezone. # - # source://et-orbi//lib/et-orbi/time.rb#142 + # source://et-orbi//lib/et-orbi/time.rb#157 def getgm; end # Returns this ::EtOrbi::EoTime as a ::Time instance # in the current UTC timezone. # - # source://et-orbi//lib/et-orbi/time.rb#142 + # source://et-orbi//lib/et-orbi/time.rb#156 def getutc; end # source://et-orbi//lib/et-orbi/time.rb#218 def hour; end - # source://et-orbi//lib/et-orbi/time.rb#339 + # source://et-orbi//lib/et-orbi/time.rb#353 def in_time_zone(zone = T.unsafe(nil)); end # source://et-orbi//lib/et-orbi/time.rb#317 @@ -268,13 +271,13 @@ class EtOrbi::EoTime # @return [Boolean] # - # source://et-orbi//lib/et-orbi/time.rb#189 + # source://et-orbi//lib/et-orbi/time.rb#193 def isdst; end # source://et-orbi//lib/et-orbi/time.rb#292 def iso8601(fraction_digits = T.unsafe(nil)); end - # source://et-orbi//lib/et-orbi/time.rb#339 + # source://et-orbi//lib/et-orbi/time.rb#347 def localtime(zone = T.unsafe(nil)); end # source://et-orbi//lib/et-orbi/time.rb#218 @@ -288,15 +291,15 @@ class EtOrbi::EoTime # "reference week", used in fugit for cron modulo notation # - # source://et-orbi//lib/et-orbi/time.rb#367 + # source://et-orbi//lib/et-orbi/time.rb#375 def rday; end - # source://et-orbi//lib/et-orbi/time.rb#377 + # source://et-orbi//lib/et-orbi/time.rb#385 def reach(points); end # "reference week", used in fugit for cron modulo notation # - # source://et-orbi//lib/et-orbi/time.rb#355 + # source://et-orbi//lib/et-orbi/time.rb#363 def rweek; end # source://et-orbi//lib/et-orbi/time.rb#218 @@ -341,7 +344,7 @@ class EtOrbi::EoTime # # Has a #to_t alias. # - # source://et-orbi//lib/et-orbi/time.rb#182 + # source://et-orbi//lib/et-orbi/time.rb#187 def to_t; end # source://et-orbi//lib/et-orbi/time.rb#312 @@ -356,7 +359,7 @@ class EtOrbi::EoTime # Returns this ::EtOrbi::EoTime as a ::Time instance # in the current UTC timezone. # - # source://et-orbi//lib/et-orbi/time.rb#142 + # source://et-orbi//lib/et-orbi/time.rb#158 def to_utc_time; end # source://et-orbi//lib/et-orbi/time.rb#287 @@ -367,7 +370,7 @@ class EtOrbi::EoTime # source://et-orbi//lib/et-orbi/time.rb#96 def touch; end - # source://et-orbi//lib/et-orbi/time.rb#339 + # source://et-orbi//lib/et-orbi/time.rb#352 def translate(zone = T.unsafe(nil)); end # source://et-orbi//lib/et-orbi/time.rb#218 @@ -393,7 +396,7 @@ class EtOrbi::EoTime # source://et-orbi//lib/et-orbi/time.rb#218 def wday; end - # source://et-orbi//lib/et-orbi/time.rb#347 + # source://et-orbi//lib/et-orbi/time.rb#355 def wday_in_month; end # source://et-orbi//lib/et-orbi/time.rb#218 @@ -412,13 +415,13 @@ class EtOrbi::EoTime protected - # source://et-orbi//lib/et-orbi/time.rb#465 + # source://et-orbi//lib/et-orbi/time.rb#473 def _to_f(o); end - # source://et-orbi//lib/et-orbi/time.rb#426 + # source://et-orbi//lib/et-orbi/time.rb#434 def count_weeks(start, dir); end - # source://et-orbi//lib/et-orbi/time.rb#439 + # source://et-orbi//lib/et-orbi/time.rb#447 def strfz(code); end # Returns a Ruby Time instance. @@ -426,7 +429,7 @@ class EtOrbi::EoTime # Warning: the timezone of that Time instance will be UTC when used with # TZInfo < 2.0.0. # - # source://et-orbi//lib/et-orbi/time.rb#421 + # source://et-orbi//lib/et-orbi/time.rb#429 def to_time; end class << self @@ -462,12 +465,12 @@ EtOrbi::EoTime::DAY_S = T.let(T.unsafe(nil), Integer) # source://et-orbi//lib/et-orbi/time.rb#255 EtOrbi::EoTime::WEEK_S = T.let(T.unsafe(nil), Integer) -# source://et-orbi//lib/et-orbi.rb#16 +# source://et-orbi//lib/et-orbi/version.rb#4 EtOrbi::VERSION = T.let(T.unsafe(nil), String) # https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones # https://support.microsoft.com/en-ca/help/973627/microsoft-time-zone-index-values # https://ss64.com/nt/timezones.html # -# source://et-orbi//lib/et-orbi/zones.rb#248 +# source://et-orbi//lib/et-orbi/zones.rb#260 EtOrbi::ZONE_ALIASES = T.let(T.unsafe(nil), Hash) diff --git a/sorbet/rbi/gems/factory_bot@6.5.1.rbi b/sorbet/rbi/gems/factory_bot@6.5.5.rbi similarity index 75% rename from sorbet/rbi/gems/factory_bot@6.5.1.rbi rename to sorbet/rbi/gems/factory_bot@6.5.5.rbi index 1570c4fe..ff7f91d2 100644 --- a/sorbet/rbi/gems/factory_bot@6.5.1.rbi +++ b/sorbet/rbi/gems/factory_bot@6.5.5.rbi @@ -26,38 +26,36 @@ module FactoryBot # source://factory_bot//lib/factory_bot/aliases.rb#11 def aliases_for(attribute); end - # source://factory_bot//lib/factory_bot.rb#58 + # source://factory_bot//lib/factory_bot.rb#59 def automatically_define_enum_traits; end - # source://factory_bot//lib/factory_bot.rb#58 + # source://factory_bot//lib/factory_bot.rb#59 def automatically_define_enum_traits=(val); end # Set the starting value for ids when using the build_stubbed strategy # - # Arguments: - # * starting_id +Integer+ - # The new starting id value. + # @param starting_id [Integer] The new starting id value. # - # source://factory_bot//lib/factory_bot.rb#79 + # source://factory_bot//lib/factory_bot.rb#81 def build_stubbed_starting_id=(starting_id); end # An Array of strings specifying locations that should be searched for # factory definitions. By default, factory_bot will attempt to require - # "factories", "test/factories" and "spec/factories". Only the first - # existing file will be loaded. + # "factories.rb", "factories/**/*.rb", "test/factories.rb", + # "test/factories/**.rb", "spec/factories.rb", and "spec/factories/**.rb". # # source://factory_bot//lib/factory_bot/find_definitions.rb#7 def definition_file_paths; end # An Array of strings specifying locations that should be searched for # factory definitions. By default, factory_bot will attempt to require - # "factories", "test/factories" and "spec/factories". Only the first - # existing file will be loaded. + # "factories.rb", "factories/**/*.rb", "test/factories.rb", + # "test/factories/**.rb", "spec/factories.rb", and "spec/factories/**.rb". # # source://factory_bot//lib/factory_bot/find_definitions.rb#7 def definition_file_paths=(_arg0); end - # source://factory_bot//lib/factory_bot.rb#84 + # source://factory_bot//lib/factory_bot.rb#112 def factories(*_arg0, **_arg1, &_arg2); end # source://factory_bot//lib/factory_bot/find_definitions.rb#12 @@ -71,25 +69,59 @@ module FactoryBot # strategy: :create - to specify the strategy for linting # verbose: true - to include full backtraces for each linting error # - # source://factory_bot//lib/factory_bot.rb#68 + # source://factory_bot//lib/factory_bot.rb#72 def lint(*args); end - # source://factory_bot//lib/factory_bot.rb#84 + # source://factory_bot//lib/factory_bot.rb#112 def register_strategy(strategy_name, strategy_class, &_arg2); end # source://factory_bot//lib/factory_bot/reload.rb#2 def reload; end - # source://factory_bot//lib/factory_bot.rb#84 + # Rewind an individual global or inline sequence. + # + # @example Rewinding a sequence by its URI parts + # rewind_sequence(:factory_name, :trait_name, :sequence_name) + # @example Rewinding a sequence by its URI string + # rewind_sequence("factory_name/trait_name/sequence_name") + # @param uri_parts [Array, String] The components of the sequence URI. + # + # source://factory_bot//lib/factory_bot.rb#112 + def rewind_sequence(*_arg0, **_arg1, &_arg2); end + + # source://factory_bot//lib/factory_bot.rb#112 def rewind_sequences(&_arg0); end - # source://factory_bot//lib/factory_bot.rb#84 + # source://factory_bot//lib/factory_bot.rb#62 + def sequence_setting_timeout; end + + # source://factory_bot//lib/factory_bot.rb#62 + def sequence_setting_timeout=(val); end + + # Set the sequence to a specific value, providing the new value is within + # the sequence set. + # + # @example + # set_sequence(:factory_name, :trait_name, :sequence_name, 450) + # @example + # set_sequence([:factory_name, :trait_name, :sequence_name], 450) + # @example + # set_sequence("factory_name/trait_name/sequence_name", 450) + # @param uri_parts [Array, String] The components of the sequence URI. + # @param value [Object] The new value for the sequence. This must be a value that is + # within the sequence definition. For example, you cannot set + # a String sequence to an Integer value. + # + # source://factory_bot//lib/factory_bot.rb#112 + def set_sequence(*_arg0, **_arg1, &_arg2); end + + # source://factory_bot//lib/factory_bot.rb#112 def strategy_by_name(name, &_arg1); end - # source://factory_bot//lib/factory_bot.rb#55 + # source://factory_bot//lib/factory_bot.rb#56 def use_parent_strategy; end - # source://factory_bot//lib/factory_bot.rb#55 + # source://factory_bot//lib/factory_bot.rb#56 def use_parent_strategy=(val); end end end @@ -218,16 +250,38 @@ class FactoryBot::AttributeAssigner private + # Is the override an alias for the attribute and not the + # actual name of another attribute? + # + # Note: Checking against the names of all attributes, resolves any + # issues with having both and _id + # in the same factory. + # # @api private + # @return [Boolean] # - # source://factory_bot//lib/factory_bot/attribute_assigner.rb#98 - def alias_names_to_ignore; end + # source://factory_bot//lib/factory_bot/attribute_assigner.rb#123 + def aliased_attribute?(attribute, override); end + + # Creat a list of attribute names that will be + # overridden by an alias, so any defaults can + # ignored. + # + # @api private + # + # source://factory_bot//lib/factory_bot/attribute_assigner.rb#107 + def aliased_attribute_names_to_ignore; end # @api private # # source://factory_bot//lib/factory_bot/attribute_assigner.rb#86 def association_names; end + # @api private + # + # source://factory_bot//lib/factory_bot/attribute_assigner.rb#94 + def attribute_names; end + # @api private # # source://factory_bot//lib/factory_bot/attribute_assigner.rb#70 @@ -265,15 +319,9 @@ class FactoryBot::AttributeAssigner # @api private # - # source://factory_bot//lib/factory_bot/attribute_assigner.rb#94 + # source://factory_bot//lib/factory_bot/attribute_assigner.rb#98 def hash_instance_methods_to_respond_to; end - # @api private - # @return [Boolean] - # - # source://factory_bot//lib/factory_bot/attribute_assigner.rb#106 - def ignorable_alias?(attribute, override); end - # @api private # # source://factory_bot//lib/factory_bot/attribute_assigner.rb#82 @@ -419,15 +467,31 @@ class FactoryBot::CallbacksObserver # @api private # - # source://factory_bot//lib/factory_bot/callbacks_observer.rb#9 + # source://factory_bot//lib/factory_bot/callbacks_observer.rb#10 def update(name, result_instance); end private # @api private # - # source://factory_bot//lib/factory_bot/callbacks_observer.rb#17 + # source://factory_bot//lib/factory_bot/callbacks_observer.rb#21 def callbacks_by_name(name); end + + # @api private + # @return [Boolean] + # + # source://factory_bot//lib/factory_bot/callbacks_observer.rb#25 + def completed?(instance, callback); end + + # @api private + # + # source://factory_bot//lib/factory_bot/callbacks_observer.rb#35 + def completion_key_for(instance, callback); end + + # @api private + # + # source://factory_bot//lib/factory_bot/callbacks_observer.rb#30 + def record_completion!(instance, callback); end end # @api private @@ -762,51 +826,51 @@ class FactoryBot::Definition # @return [Definition] a new instance of Definition # # source://factory_bot//lib/factory_bot/definition.rb#7 - def initialize(name, base_traits = T.unsafe(nil)); end + def initialize(name, base_traits = T.unsafe(nil), **opts); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#86 + # source://factory_bot//lib/factory_bot/definition.rb#87 def add_callback(callback); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#114 + # source://factory_bot//lib/factory_bot/definition.rb#115 def after(*names, &block); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#82 + # source://factory_bot//lib/factory_bot/definition.rb#83 def append_traits(new_traits); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#24 + # source://factory_bot//lib/factory_bot/definition.rb#25 def attributes; end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#110 + # source://factory_bot//lib/factory_bot/definition.rb#111 def before(*names, &block); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#118 + # source://factory_bot//lib/factory_bot/definition.rb#119 def callback(*names, &block); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#45 + # source://factory_bot//lib/factory_bot/definition.rb#46 def callbacks; end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#49 + # source://factory_bot//lib/factory_bot/definition.rb#50 def compile(klass = T.unsafe(nil)); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#41 + # source://factory_bot//lib/factory_bot/definition.rb#42 def constructor; end # @api private @@ -814,17 +878,17 @@ class FactoryBot::Definition # source://factory_bot//lib/factory_bot/definition.rb#4 def declarations; end - # source://factory_bot//lib/factory_bot/definition.rb#22 + # source://factory_bot//lib/factory_bot/definition.rb#23 def declare_attribute(*_arg0, **_arg1, &_arg2); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#106 + # source://factory_bot//lib/factory_bot/definition.rb#107 def define_constructor(&block); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#94 + # source://factory_bot//lib/factory_bot/definition.rb#95 def define_trait(trait); end # @api private @@ -834,12 +898,12 @@ class FactoryBot::Definition # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#98 + # source://factory_bot//lib/factory_bot/definition.rb#99 def defined_traits_names; end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#78 + # source://factory_bot//lib/factory_bot/definition.rb#79 def inherit_traits(new_traits); end # @api private @@ -859,12 +923,12 @@ class FactoryBot::Definition # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#73 + # source://factory_bot//lib/factory_bot/definition.rb#74 def overridable; end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#102 + # source://factory_bot//lib/factory_bot/definition.rb#103 def register_enum(enum); end # @api private @@ -874,65 +938,70 @@ class FactoryBot::Definition # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#90 + # source://factory_bot//lib/factory_bot/definition.rb#91 def skip_create; end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#33 + # source://factory_bot//lib/factory_bot/definition.rb#34 def to_create(&block); end + # @api private + # + # source://factory_bot//lib/factory_bot/definition.rb#4 + def uri_manager; end + private # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#155 + # source://factory_bot//lib/factory_bot/definition.rb#156 def additional_traits; end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#175 + # source://factory_bot//lib/factory_bot/definition.rb#176 def aggregate_from_traits_and_self(method_name, &block); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#200 + # source://factory_bot//lib/factory_bot/definition.rb#201 def automatically_register_defined_enums(klass); end # @api private # @return [Boolean] # - # source://factory_bot//lib/factory_bot/definition.rb#204 + # source://factory_bot//lib/factory_bot/definition.rb#205 def automatically_register_defined_enums?(klass); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#126 + # source://factory_bot//lib/factory_bot/definition.rb#127 def base_traits; end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#135 + # source://factory_bot//lib/factory_bot/definition.rb#136 def error_with_definition_name(error); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#185 + # source://factory_bot//lib/factory_bot/definition.rb#186 def expand_enum_traits(klass); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#168 + # source://factory_bot//lib/factory_bot/definition.rb#169 def initialize_copy(source); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#159 + # source://factory_bot//lib/factory_bot/definition.rb#160 def trait_by_name(name); end # @api private # - # source://factory_bot//lib/factory_bot/definition.rb#163 + # source://factory_bot//lib/factory_bot/definition.rb#164 def trait_for(name); end end @@ -1012,7 +1081,7 @@ class FactoryBot::DefinitionProxy # name of the factory. For example, a "user" association will by # default use the "user" factory. # - # source://factory_bot//lib/factory_bot/definition_proxy.rb#151 + # source://factory_bot//lib/factory_bot/definition_proxy.rb#155 def association(name, *options); end # source://factory_bot//lib/factory_bot/definition_proxy.rb#22 @@ -1026,10 +1095,10 @@ class FactoryBot::DefinitionProxy # source://factory_bot//lib/factory_bot/definition_proxy.rb#24 def child_factories; end - # source://factory_bot//lib/factory_bot/definition_proxy.rb#171 + # source://factory_bot//lib/factory_bot/definition_proxy.rb#175 def factory(name, options = T.unsafe(nil), &block); end - # source://factory_bot//lib/factory_bot/definition_proxy.rb#237 + # source://factory_bot//lib/factory_bot/definition_proxy.rb#241 def initialize_with(&block); end # Calls add_attribute using the missing method name as the name of the @@ -1088,20 +1157,20 @@ class FactoryBot::DefinitionProxy # Except that no globally available sequence will be defined. # # source://factory_bot//lib/factory_bot/definition_proxy.rb#122 - def sequence(name, *_arg1, **_arg2, &_arg3); end + def sequence(name, *args, &block); end # @raise [FactoryBot::MethodDefinitionError] # # source://factory_bot//lib/factory_bot/definition_proxy.rb#32 def singleton_method_added(name); end - # source://factory_bot//lib/factory_bot/definition_proxy.rb#167 + # source://factory_bot//lib/factory_bot/definition_proxy.rb#171 def skip_create; end - # source://factory_bot//lib/factory_bot/definition_proxy.rb#163 + # source://factory_bot//lib/factory_bot/definition_proxy.rb#167 def to_create(&block); end - # source://factory_bot//lib/factory_bot/definition_proxy.rb#175 + # source://factory_bot//lib/factory_bot/definition_proxy.rb#179 def trait(name, &block); end # Creates traits for enumerable values. @@ -1159,7 +1228,7 @@ class FactoryBot::DefinitionProxy # attempt to get the values by calling the pluralized `attribute_name` # class method. # - # source://factory_bot//lib/factory_bot/definition_proxy.rb#233 + # source://factory_bot//lib/factory_bot/definition_proxy.rb#237 def traits_for_enum(attribute_name, values = T.unsafe(nil)); end # source://factory_bot//lib/factory_bot/definition_proxy.rb#52 @@ -1167,19 +1236,25 @@ class FactoryBot::DefinitionProxy private - # source://factory_bot//lib/factory_bot/definition_proxy.rb#243 + # source://factory_bot//lib/factory_bot/definition_proxy.rb#247 def __declare_attribute__(name, block); end + # If the inline sequence has already been registered by a parent, + # return that one, otherwise register and return the given sequence + # + # source://factory_bot//lib/factory_bot/definition_proxy.rb#264 + def __fetch_or_register_sequence(sequence); end + # @return [Boolean] # - # source://factory_bot//lib/factory_bot/definition_proxy.rb#252 + # source://factory_bot//lib/factory_bot/definition_proxy.rb#256 def __valid_association_options?(options); end end # source://factory_bot//lib/factory_bot/definition_proxy.rb#3 FactoryBot::DefinitionProxy::UNPROXIED_METHODS = T.let(T.unsafe(nil), Array) -# source://factory_bot//lib/factory_bot.rb#53 +# source://factory_bot//lib/factory_bot.rb#54 FactoryBot::Deprecation = T.let(T.unsafe(nil), ActiveSupport::Deprecation) # Raised when a factory is defined with the same name as a previously-defined factory. @@ -1237,51 +1312,51 @@ end # @api private # -# source://factory_bot//lib/factory_bot/evaluator.rb#6 +# source://factory_bot//lib/factory_bot/evaluator.rb#5 class FactoryBot::Evaluator # @api private # @return [Evaluator] a new instance of Evaluator # - # source://factory_bot//lib/factory_bot/evaluator.rb#13 + # source://factory_bot//lib/factory_bot/evaluator.rb#12 def initialize(build_strategy, overrides = T.unsafe(nil)); end # @api private # - # source://factory_bot//lib/factory_bot/evaluator.rb#50 + # source://factory_bot//lib/factory_bot/evaluator.rb#49 def __override_names__; end # @api private # - # source://factory_bot//lib/factory_bot/evaluator.rb#24 + # source://factory_bot//lib/factory_bot/evaluator.rb#23 def association(factory_name, *traits_and_overrides); end - # source://factory_bot//lib/factory_bot/evaluator.rb#7 + # source://factory_bot//lib/factory_bot/evaluator.rb#6 def attribute_lists; end - # source://factory_bot//lib/factory_bot/evaluator.rb#7 + # source://factory_bot//lib/factory_bot/evaluator.rb#6 def attribute_lists=(_arg0); end - # source://factory_bot//lib/factory_bot/evaluator.rb#7 + # source://factory_bot//lib/factory_bot/evaluator.rb#6 def attribute_lists?; end # @api private # - # source://factory_bot//lib/factory_bot/evaluator.rb#54 - def increment_sequence(sequence); end + # source://factory_bot//lib/factory_bot/evaluator.rb#53 + def increment_sequence(sequence, scope: T.unsafe(nil)); end # @api private # - # source://factory_bot//lib/factory_bot/evaluator.rb#36 + # source://factory_bot//lib/factory_bot/evaluator.rb#35 def instance; end # @api private # - # source://factory_bot//lib/factory_bot/evaluator.rb#36 + # source://factory_bot//lib/factory_bot/evaluator.rb#35 def instance=(_arg0); end # @api private # - # source://factory_bot//lib/factory_bot/evaluator.rb#38 + # source://factory_bot//lib/factory_bot/evaluator.rb#37 def method_missing(method_name, *_arg1, **_arg2, &_arg3); end private @@ -1289,35 +1364,35 @@ class FactoryBot::Evaluator # @api private # @return [Boolean] # - # source://factory_bot//lib/factory_bot/evaluator.rb#46 + # source://factory_bot//lib/factory_bot/evaluator.rb#45 def respond_to_missing?(method_name, _include_private = T.unsafe(nil)); end class << self # @api private # - # source://factory_bot//lib/factory_bot/evaluator.rb#58 + # source://factory_bot//lib/factory_bot/evaluator.rb#64 def attribute_list; end - # source://factory_bot//lib/factory_bot/evaluator.rb#7 + # source://factory_bot//lib/factory_bot/evaluator.rb#6 def attribute_lists; end - # source://factory_bot//lib/factory_bot/evaluator.rb#7 + # source://factory_bot//lib/factory_bot/evaluator.rb#6 def attribute_lists=(value); end - # source://factory_bot//lib/factory_bot/evaluator.rb#7 + # source://factory_bot//lib/factory_bot/evaluator.rb#6 def attribute_lists?; end # @api private # - # source://factory_bot//lib/factory_bot/evaluator.rb#66 + # source://factory_bot//lib/factory_bot/evaluator.rb#72 def define_attribute(name, &block); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://factory_bot//lib/factory_bot/evaluator.rb#6 def __class_attr_attribute_lists; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://factory_bot//lib/factory_bot/evaluator.rb#6 def __class_attr_attribute_lists=(new_value); end end end @@ -1348,40 +1423,40 @@ class FactoryBot::Factory # source://factory_bot//lib/factory_bot/factory.rb#9 def initialize(name, options = T.unsafe(nil)); end - # source://factory_bot//lib/factory_bot/factory.rb#19 + # source://factory_bot//lib/factory_bot/factory.rb#20 def add_callback(*_arg0, **_arg1, &_arg2); end - # source://factory_bot//lib/factory_bot/factory.rb#19 + # source://factory_bot//lib/factory_bot/factory.rb#20 def append_traits(*_arg0, **_arg1, &_arg2); end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#53 + # source://factory_bot//lib/factory_bot/factory.rb#59 def associations; end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#23 + # source://factory_bot//lib/factory_bot/factory.rb#24 def build_class; end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#86 + # source://factory_bot//lib/factory_bot/factory.rb#92 def compile; end - # source://factory_bot//lib/factory_bot/factory.rb#19 + # source://factory_bot//lib/factory_bot/factory.rb#20 def constructor(*_arg0, **_arg1, &_arg2); end - # source://factory_bot//lib/factory_bot/factory.rb#19 + # source://factory_bot//lib/factory_bot/factory.rb#20 def declare_attribute(*_arg0, **_arg1, &_arg2); end - # source://factory_bot//lib/factory_bot/factory.rb#19 + # source://factory_bot//lib/factory_bot/factory.rb#20 def define_trait(*_arg0, **_arg1, &_arg2); end - # source://factory_bot//lib/factory_bot/factory.rb#19 + # source://factory_bot//lib/factory_bot/factory.rb#20 def defined_traits(*_arg0, **_arg1, &_arg2); end - # source://factory_bot//lib/factory_bot/factory.rb#19 + # source://factory_bot//lib/factory_bot/factory.rb#20 def defined_traits_names(*_arg0, **_arg1, &_arg2); end # @api private @@ -1391,10 +1466,10 @@ class FactoryBot::Factory # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#49 + # source://factory_bot//lib/factory_bot/factory.rb#55 def human_names; end - # source://factory_bot//lib/factory_bot/factory.rb#19 + # source://factory_bot//lib/factory_bot/factory.rb#20 def inherit_traits(*_arg0, **_arg1, &_arg2); end # @api private @@ -1430,89 +1505,89 @@ class FactoryBot::Factory # # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#82 + # source://factory_bot//lib/factory_bot/factory.rb#88 def names; end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#33 + # source://factory_bot//lib/factory_bot/factory.rb#34 def run(build_strategy, overrides, &block); end - # source://factory_bot//lib/factory_bot/factory.rb#19 + # source://factory_bot//lib/factory_bot/factory.rb#20 def to_create(*_arg0, **_arg1, &_arg2); end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#96 + # source://factory_bot//lib/factory_bot/factory.rb#102 def with_traits(traits); end protected # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#112 + # source://factory_bot//lib/factory_bot/factory.rb#118 def attributes; end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#127 + # source://factory_bot//lib/factory_bot/factory.rb#133 def build_hierarchy; end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#131 + # source://factory_bot//lib/factory_bot/factory.rb#137 def callbacks; end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#104 + # source://factory_bot//lib/factory_bot/factory.rb#110 def class_name; end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#139 + # source://factory_bot//lib/factory_bot/factory.rb#145 def compiled_constructor; end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#135 + # source://factory_bot//lib/factory_bot/factory.rb#141 def compiled_to_create; end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#108 + # source://factory_bot//lib/factory_bot/factory.rb#114 def evaluator_class; end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#119 + # source://factory_bot//lib/factory_bot/factory.rb#125 def hierarchy_class; end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#123 + # source://factory_bot//lib/factory_bot/factory.rb#129 def hierarchy_instance; end private # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#145 + # source://factory_bot//lib/factory_bot/factory.rb#151 def assert_valid_options(options); end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#157 + # source://factory_bot//lib/factory_bot/factory.rb#163 def inherit_parent_traits; end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#164 + # source://factory_bot//lib/factory_bot/factory.rb#170 def initialize_copy(source); end # @api private # - # source://factory_bot//lib/factory_bot/factory.rb#149 + # source://factory_bot//lib/factory_bot/factory.rb#155 def parent; end end @@ -1554,7 +1629,7 @@ module FactoryBot::Internal # @api private # - # source://factory_bot//lib/factory_bot/internal.rb#69 + # source://factory_bot//lib/factory_bot/internal.rb#86 def factory_by_name(name); end # source://factory_bot//lib/factory_bot/internal.rb#5 @@ -1565,12 +1640,12 @@ module FactoryBot::Internal # @api private # - # source://factory_bot//lib/factory_bot/internal.rb#82 + # source://factory_bot//lib/factory_bot/internal.rb#99 def register_default_strategies; end # @api private # - # source://factory_bot//lib/factory_bot/internal.rb#62 + # source://factory_bot//lib/factory_bot/internal.rb#79 def register_factory(factory); end # @api private @@ -1580,17 +1655,17 @@ module FactoryBot::Internal # @api private # - # source://factory_bot//lib/factory_bot/internal.rb#46 + # source://factory_bot//lib/factory_bot/internal.rb#47 def register_sequence(sequence); end # @api private # - # source://factory_bot//lib/factory_bot/internal.rb#73 + # source://factory_bot//lib/factory_bot/internal.rb#90 def register_strategy(strategy_name, strategy_class); end # @api private # - # source://factory_bot//lib/factory_bot/internal.rb#35 + # source://factory_bot//lib/factory_bot/internal.rb#36 def register_trait(trait); end # @api private @@ -1600,22 +1675,32 @@ module FactoryBot::Internal # @api private # - # source://factory_bot//lib/factory_bot/internal.rb#31 + # source://factory_bot//lib/factory_bot/internal.rb#32 def rewind_inline_sequences; end # @api private # - # source://factory_bot//lib/factory_bot/internal.rb#57 + # source://factory_bot//lib/factory_bot/internal.rb#63 + def rewind_sequence(*uri_parts); end + + # @api private + # + # source://factory_bot//lib/factory_bot/internal.rb#58 def rewind_sequences; end # @api private # - # source://factory_bot//lib/factory_bot/internal.rb#53 + # source://factory_bot//lib/factory_bot/internal.rb#54 def sequence_by_name(name); end # source://factory_bot//lib/factory_bot/internal.rb#5 def sequences(*_arg0, **_arg1, &_arg2); end + # @api private + # + # source://factory_bot//lib/factory_bot/internal.rb#72 + def set_sequence(*uri_parts, value); end + # source://factory_bot//lib/factory_bot/internal.rb#5 def skip_create(*_arg0, **_arg1, &_arg2); end @@ -1624,7 +1709,7 @@ module FactoryBot::Internal # @api private # - # source://factory_bot//lib/factory_bot/internal.rb#78 + # source://factory_bot//lib/factory_bot/internal.rb#95 def strategy_by_name(name); end # source://factory_bot//lib/factory_bot/internal.rb#5 @@ -1632,11 +1717,28 @@ module FactoryBot::Internal # @api private # - # source://factory_bot//lib/factory_bot/internal.rb#42 + # source://factory_bot//lib/factory_bot/internal.rb#43 def trait_by_name(name, klass); end # source://factory_bot//lib/factory_bot/internal.rb#5 def traits(*_arg0, **_arg1, &_arg2); end + + private + + # @api private + # + # source://factory_bot//lib/factory_bot/internal.rb#109 + def build_uri(*_arg0, **_arg1, &_arg2); end + + # @api private + # + # source://factory_bot//lib/factory_bot/internal.rb#113 + def fail_argument_count(received, expected); end + + # @api private + # + # source://factory_bot//lib/factory_bot/internal.rb#118 + def fail_unregistered_sequence(uri); end end end @@ -1814,7 +1916,7 @@ class FactoryBot::Registry # source://factory_bot//lib/factory_bot/registry.rb#9 def initialize(name); end - # source://factory_bot//lib/factory_bot/registry.rb#22 + # source://factory_bot//lib/factory_bot/registry.rb#28 def [](name); end # source://factory_bot//lib/factory_bot/registry.rb#14 @@ -1853,71 +1955,191 @@ end # # @api private # -# source://factory_bot//lib/factory_bot/sequence.rb#5 +# source://factory_bot//lib/factory_bot/sequence.rb#7 class FactoryBot::Sequence # @api private # @return [Sequence] a new instance of Sequence # - # source://factory_bot//lib/factory_bot/sequence.rb#8 + # source://factory_bot//lib/factory_bot/sequence.rb#24 def initialize(name, *args, &proc); end # @api private # - # source://factory_bot//lib/factory_bot/sequence.rb#6 + # source://factory_bot//lib/factory_bot/sequence.rb#8 + def aliases; end + + # @api private + # @return [Boolean] + # + # source://factory_bot//lib/factory_bot/sequence.rb#61 + def for_factory?(test_factory_name); end + + # @api private + # @return [Boolean] + # + # source://factory_bot//lib/factory_bot/sequence.rb#53 + def has_name?(test_name); end + + # @api private + # @return [Boolean] + # + # source://factory_bot//lib/factory_bot/sequence.rb#57 + def has_uri?(uri); end + + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#8 def name; end # @api private # - # source://factory_bot//lib/factory_bot/sequence.rb#33 + # source://factory_bot//lib/factory_bot/sequence.rb#49 def names; end # @api private # - # source://factory_bot//lib/factory_bot/sequence.rb#21 + # source://factory_bot//lib/factory_bot/sequence.rb#37 def next(scope = T.unsafe(nil)); end # @api private # - # source://factory_bot//lib/factory_bot/sequence.rb#37 + # source://factory_bot//lib/factory_bot/sequence.rb#65 def rewind; end + # If it's an Integer based sequence, set the new value directly, + # else rewind and seek from the beginning until a match is found. + # + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#73 + def set_value(new_value); end + + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#8 + def uri_manager; end + + protected + + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#85 + def proc; end + private + # @api private + # @return [Boolean] + # + # source://factory_bot//lib/factory_bot/sequence.rb#97 + def can_set_value_by_index?; end + + # @api private + # @return [Boolean] + # + # source://factory_bot//lib/factory_bot/sequence.rb#142 + def can_set_value_directly?(value); end + # @api private # - # source://factory_bot//lib/factory_bot/sequence.rb#47 + # source://factory_bot//lib/factory_bot/sequence.rb#148 + def fail_value_not_found(value); end + + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#93 def increment_value; end # @api private # - # source://factory_bot//lib/factory_bot/sequence.rb#43 + # source://factory_bot//lib/factory_bot/sequence.rb#134 + def reset_original_value(original_value); end + + # Rewind index and seek until the value is found or the max attempts + # have been tried. If not found, the sequence is rewound to its original value + # + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#114 + def seek_value(value); end + + # Set to the given value, or fail if not found + # + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#104 + def set_value_by_index(value); end + + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#89 def value; end + + class << self + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#10 + def find(*uri_parts); end + + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#18 + def find_by_uri(uri); end + end end # @api private # -# source://factory_bot//lib/factory_bot/sequence.rb#51 +# source://factory_bot//lib/factory_bot/sequence.rb#152 class FactoryBot::Sequence::EnumeratorAdapter # @api private # @return [EnumeratorAdapter] a new instance of EnumeratorAdapter # - # source://factory_bot//lib/factory_bot/sequence.rb#52 - def initialize(value); end + # source://factory_bot//lib/factory_bot/sequence.rb#153 + def initialize(initial_value); end # @api private + # @return [Boolean] # - # source://factory_bot//lib/factory_bot/sequence.rb#61 + # source://factory_bot//lib/factory_bot/sequence.rb#177 + def integer_value?; end + + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#161 def next; end # @api private # - # source://factory_bot//lib/factory_bot/sequence.rb#57 + # source://factory_bot//lib/factory_bot/sequence.rb#157 def peek; end # @api private # - # source://factory_bot//lib/factory_bot/sequence.rb#65 + # source://factory_bot//lib/factory_bot/sequence.rb#165 def rewind; end + + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#169 + def set_value(new_value); end + + private + + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#183 + def first_value; end + + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#191 + def initial_value; end + + # @api private + # + # source://factory_bot//lib/factory_bot/sequence.rb#187 + def value; end end # Raised when attempting to register a sequence from a dynamic attribute block @@ -1948,7 +2170,7 @@ class FactoryBot::Strategy::Build # source://factory_bot//lib/factory_bot/strategy/build.rb#8 def result(evaluation); end - # source://factory_bot//lib/factory_bot/strategy/build.rb#14 + # source://factory_bot//lib/factory_bot/strategy/build.rb#16 def to_sym; end end @@ -1960,7 +2182,7 @@ class FactoryBot::Strategy::Create # source://factory_bot//lib/factory_bot/strategy/create.rb#8 def result(evaluation); end - # source://factory_bot//lib/factory_bot/strategy/create.rb#17 + # source://factory_bot//lib/factory_bot/strategy/create.rb#19 def to_sym; end end @@ -1999,12 +2221,12 @@ class FactoryBot::Strategy::Stub # @return [Boolean] # - # source://factory_bot//lib/factory_bot/strategy/stub.rb#114 + # source://factory_bot//lib/factory_bot/strategy/stub.rb#116 def missing_created_at?(result_instance); end # @return [Boolean] # - # source://factory_bot//lib/factory_bot/strategy/stub.rb#120 + # source://factory_bot//lib/factory_bot/strategy/stub.rb#122 def missing_updated_at?(result_instance); end # source://factory_bot//lib/factory_bot/strategy/stub.rb#50 @@ -2201,21 +2423,21 @@ module FactoryBot::Syntax::Methods # # @return [Hash] hash of attributes for the factory # - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#27 + # source://factory_bot//lib/factory_bot.rb#122 def attributes_for(name, *traits_and_overrides, &block); end # (see #strategy_method_list) # # @return [Array] array of attribute hashes for the factory # - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#35 + # source://factory_bot//lib/factory_bot.rb#122 def attributes_for_list(name, amount, *traits_and_overrides, &block); end # (see #strategy_method_pair) # # @return [Array] pair of attribute hashes for the factory # - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#50 + # source://factory_bot//lib/factory_bot.rb#122 def attributes_for_pair(name, *traits_and_overrides, &block); end # (see #strategy_method) @@ -2223,21 +2445,21 @@ module FactoryBot::Syntax::Methods # # @return [Object] instantiated object defined by the factory # - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#27 + # source://factory_bot//lib/factory_bot.rb#122 def build(name, *traits_and_overrides, &block); end # (see #strategy_method_list) # # @return [Array] array of built objects defined by the factory # - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#35 + # source://factory_bot//lib/factory_bot.rb#122 def build_list(name, amount, *traits_and_overrides, &block); end # (see #strategy_method_pair) # # @return [Array] pair of built objects defined by the factory # - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#50 + # source://factory_bot//lib/factory_bot.rb#122 def build_pair(name, *traits_and_overrides, &block); end # (see #strategy_method) @@ -2245,21 +2467,21 @@ module FactoryBot::Syntax::Methods # # @return [Object] instantiated object defined by the factory # - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#27 + # source://factory_bot//lib/factory_bot.rb#122 def build_stubbed(name, *traits_and_overrides, &block); end # (see #strategy_method_list) # # @return [Array] array of stubbed objects defined by the factory # - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#35 + # source://factory_bot//lib/factory_bot.rb#122 def build_stubbed_list(name, amount, *traits_and_overrides, &block); end # (see #strategy_method_pair) # # @return [Array] pair of stubbed objects defined by the factory # - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#50 + # source://factory_bot//lib/factory_bot.rb#122 def build_stubbed_pair(name, *traits_and_overrides, &block); end # (see #strategy_method) @@ -2267,57 +2489,80 @@ module FactoryBot::Syntax::Methods # # @return [Object] instantiated object defined by the factory # - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#27 + # source://factory_bot//lib/factory_bot.rb#122 def create(name, *traits_and_overrides, &block); end # (see #strategy_method_list) # # @return [Array] array of created objects defined by the factory # - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#35 + # source://factory_bot//lib/factory_bot.rb#122 def create_list(name, amount, *traits_and_overrides, &block); end # (see #strategy_method_pair) # # @return [Array] pair of created objects defined by the factory # - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#50 + # source://factory_bot//lib/factory_bot.rb#122 def create_pair(name, *traits_and_overrides, &block); end - # Generates and returns the next value in a sequence. + # Generates and returns the next value in a global or factory sequence. # # Arguments: - # name: (Symbol) - # The name of the sequence that a value should be generated for. + # context: (Array of Symbols) + # The definition context of the sequence, with the sequence name + # as the final entry + # scope: (object)(optional) + # The object the sequence should be evaluated within # # Returns: # The next value in the sequence. (Object) # - # source://factory_bot//lib/factory_bot/syntax/methods.rb#113 - def generate(name); end + # Example: + # generate(:my_factory, :my_trair, :my_sequence) + # + # source://factory_bot//lib/factory_bot/syntax/methods.rb#120 + def generate(*uri_parts, scope: T.unsafe(nil)); end - # Generates and returns the list of values in a sequence. + # Generates and returns the list of values in a global or factory sequence. # # Arguments: - # name: (Symbol) - # The name of the sequence that a value should be generated for. - # count: (Fixnum) - # Count of values + # uri_parts: (Array of Symbols) + # The definition context of the sequence, with the sequence name + # as the final entry + # scope: (object)(optional) + # The object the sequence should be evaluated within # # Returns: # The next value in the sequence. (Object) # - # source://factory_bot//lib/factory_bot/syntax/methods.rb#127 - def generate_list(name, count); end + # Example: + # generate_list(:my_factory, :my_trair, :my_sequence, 5) + # + # source://factory_bot//lib/factory_bot/syntax/methods.rb#144 + def generate_list(*uri_parts, count, scope: T.unsafe(nil)); end - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#27 + # source://factory_bot//lib/factory_bot.rb#122 def null(name, *traits_and_overrides, &block); end - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#35 + # source://factory_bot//lib/factory_bot.rb#122 def null_list(name, amount, *traits_and_overrides, &block); end - # source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#50 + # source://factory_bot//lib/factory_bot.rb#122 def null_pair(name, *traits_and_overrides, &block); end + + private + + # Increments the given sequence and returns the value. + # + # Arguments: + # sequence: + # The sequence instance + # scope: (object)(optional) + # The object the sequence should be evaluated within + # + # source://factory_bot//lib/factory_bot/syntax/methods.rb#169 + def increment_sequence(sequence, scope: T.unsafe(nil)); end end # @api private @@ -2334,35 +2579,35 @@ class FactoryBot::Trait # @api private # @return [Trait] a new instance of Trait # - # source://factory_bot//lib/factory_bot/trait.rb#6 - def initialize(name, &block); end + # source://factory_bot//lib/factory_bot/trait.rb#9 + def initialize(name, **options, &block); end # @api private # - # source://factory_bot//lib/factory_bot/trait.rb#28 + # source://factory_bot//lib/factory_bot/trait.rb#30 def ==(other); end - # source://factory_bot//lib/factory_bot/trait.rb#21 + # source://factory_bot//lib/factory_bot/trait.rb#6 def add_callback(*_arg0, **_arg1, &_arg2); end - # source://factory_bot//lib/factory_bot/trait.rb#21 + # source://factory_bot//lib/factory_bot/trait.rb#6 def attributes(*_arg0, **_arg1, &_arg2); end - # source://factory_bot//lib/factory_bot/trait.rb#21 + # source://factory_bot//lib/factory_bot/trait.rb#6 def callbacks(*_arg0, **_arg1, &_arg2); end # @api private # - # source://factory_bot//lib/factory_bot/trait.rb#17 + # source://factory_bot//lib/factory_bot/trait.rb#22 def clone; end - # source://factory_bot//lib/factory_bot/trait.rb#21 + # source://factory_bot//lib/factory_bot/trait.rb#6 def constructor(*_arg0, **_arg1, &_arg2); end - # source://factory_bot//lib/factory_bot/trait.rb#21 + # source://factory_bot//lib/factory_bot/trait.rb#6 def declare_attribute(*_arg0, **_arg1, &_arg2); end - # source://factory_bot//lib/factory_bot/trait.rb#21 + # source://factory_bot//lib/factory_bot/trait.rb#6 def define_trait(*_arg0, **_arg1, &_arg2); end # @api private @@ -2370,10 +2615,10 @@ class FactoryBot::Trait # source://factory_bot//lib/factory_bot/trait.rb#4 def definition; end - # source://factory_bot//lib/factory_bot/trait.rb#21 + # source://factory_bot//lib/factory_bot/trait.rb#6 def klass(*_arg0, **_arg1, &_arg2); end - # source://factory_bot//lib/factory_bot/trait.rb#21 + # source://factory_bot//lib/factory_bot/trait.rb#6 def klass=(arg); end # @api private @@ -2383,17 +2628,22 @@ class FactoryBot::Trait # @api private # - # source://factory_bot//lib/factory_bot/trait.rb#24 + # source://factory_bot//lib/factory_bot/trait.rb#26 def names; end - # source://factory_bot//lib/factory_bot/trait.rb#21 + # source://factory_bot//lib/factory_bot/trait.rb#6 def to_create(*_arg0, **_arg1, &_arg2); end + # @api private + # + # source://factory_bot//lib/factory_bot/trait.rb#4 + def uid; end + protected # @api private # - # source://factory_bot//lib/factory_bot/trait.rb#35 + # source://factory_bot//lib/factory_bot/trait.rb#37 def block; end end @@ -2402,5 +2652,87 @@ end # source://factory_bot//lib/factory_bot/errors.rb#6 class FactoryBot::TraitDefinitionError < ::RuntimeError; end +# @api private +# +# source://factory_bot//lib/factory_bot/uri_manager.rb#3 +class FactoryBot::UriManager + # Configures the new UriManager + # + # Arguments: + # endpoints: (Array of Strings or Symbols) + # the objects endpoints. + # + # paths: (Array of Strings or Symbols) + # the parent URIs to prepend to each endpoint + # + # @api private + # @return [UriManager] a new instance of UriManager + # + # source://factory_bot//lib/factory_bot/uri_manager.rb#35 + def initialize(*endpoints, paths: T.unsafe(nil)); end + + # source://factory_bot//lib/factory_bot/uri_manager.rb#6 + def any?(*_arg0, **_arg1, &_arg2); end + + # source://factory_bot//lib/factory_bot/uri_manager.rb#7 + def build_uri(*_arg0, **_arg1, &_arg2); end + + # source://factory_bot//lib/factory_bot/uri_manager.rb#6 + def each?(*_arg0, **_arg1, &_arg2); end + + # source://factory_bot//lib/factory_bot/uri_manager.rb#6 + def empty?(*_arg0, **_arg1, &_arg2); end + + # @api private + # + # source://factory_bot//lib/factory_bot/uri_manager.rb#4 + def endpoints; end + + # source://factory_bot//lib/factory_bot/uri_manager.rb#6 + def first(*_arg0, **_arg1, &_arg2); end + + # source://factory_bot//lib/factory_bot/uri_manager.rb#6 + def include?(*_arg0, **_arg1, &_arg2); end + + # @api private + # + # source://factory_bot//lib/factory_bot/uri_manager.rb#4 + def paths; end + + # source://factory_bot//lib/factory_bot/uri_manager.rb#6 + def size(*_arg0, **_arg1, &_arg2); end + + # @api private + # + # source://factory_bot//lib/factory_bot/uri_manager.rb#47 + def to_a; end + + # @api private + # + # source://factory_bot//lib/factory_bot/uri_manager.rb#4 + def uri_list; end + + private + + # @api private + # + # source://factory_bot//lib/factory_bot/uri_manager.rb#53 + def build_uri_list; end + + class << self + # Concatenate the parts, sripping leading/following slashes + # and returning a Symbolized String or nil. + # + # Example: + # build_uri(:my_factory, :my_trait, :my_sequence) + # #=> :"myfactory/my_trait/my_sequence" + # + # @api private + # + # source://factory_bot//lib/factory_bot/uri_manager.rb#16 + def build_uri(*parts); end + end +end + # source://factory_bot//lib/factory_bot/version.rb#2 FactoryBot::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/factory_bot_rails@6.4.4.rbi b/sorbet/rbi/gems/factory_bot_rails@6.5.0.rbi similarity index 94% rename from sorbet/rbi/gems/factory_bot_rails@6.4.4.rbi rename to sorbet/rbi/gems/factory_bot_rails@6.5.0.rbi index 95fc73e3..aaaf1d4d 100644 --- a/sorbet/rbi/gems/factory_bot_rails@6.4.4.rbi +++ b/sorbet/rbi/gems/factory_bot_rails@6.5.0.rbi @@ -46,6 +46,16 @@ class FactoryBotRails::FactoryValidator def validate_compiled_factory; end end +# source://factory_bot_rails//lib/factory_bot_rails/file_fixture_support.rb#2 +module FactoryBotRails::FileFixtureSupport + class << self + # @private + # + # source://factory_bot_rails//lib/factory_bot_rails/file_fixture_support.rb#3 + def included(klass); end + end +end + # source://factory_bot_rails//lib/factory_bot_rails/generator.rb#6 class FactoryBotRails::Generator # @return [Generator] a new instance of Generator @@ -123,11 +133,11 @@ class FactoryBotRails::Generators::RSpecGenerator def fixture_replacement_setting; end end -# source://factory_bot_rails//lib/factory_bot_rails/railtie.rb#10 +# source://factory_bot_rails//lib/factory_bot_rails/railtie.rb#11 class FactoryBotRails::Railtie < ::Rails::Railtie private - # source://factory_bot_rails//lib/factory_bot_rails/railtie.rb#31 + # source://factory_bot_rails//lib/factory_bot_rails/railtie.rb#49 def definition_file_paths; end end diff --git a/sorbet/rbi/gems/faker@3.5.1.rbi b/sorbet/rbi/gems/faker@3.5.2.rbi similarity index 99% rename from sorbet/rbi/gems/faker@3.5.1.rbi rename to sorbet/rbi/gems/faker@3.5.2.rbi index 7aa8a42f..a57c4700 100644 --- a/sorbet/rbi/gems/faker@3.5.1.rbi +++ b/sorbet/rbi/gems/faker@3.5.2.rbi @@ -178,7 +178,7 @@ class Faker::Address < ::Faker::Base # @param state_abbreviation [String] an abbreviation for a state where the zip code should be located. # @return [String] # - # source://faker//lib/faker/default/address.rb#116 + # source://faker//lib/faker/default/address.rb#141 def postcode(state_abbreviation: T.unsafe(nil)); end # Produces a secondary address. @@ -254,7 +254,7 @@ class Faker::Address < ::Faker::Base # @param state_abbreviation [String] an abbreviation for a state where the zip code should be located. # @return [String] # - # source://faker//lib/faker/default/address.rb#116 + # source://faker//lib/faker/default/address.rb#140 def zip(state_abbreviation: T.unsafe(nil)); end # Produces a Zip Code. @@ -1935,31 +1935,31 @@ class Faker::Code < ::Faker::Base private - # source://faker//lib/faker/default/code.rb#211 + # source://faker//lib/faker/default/code.rb#212 def generate_base10_isbn; end - # source://faker//lib/faker/default/code.rb#257 + # source://faker//lib/faker/default/code.rb#258 def generate_base13_ean; end - # source://faker//lib/faker/default/code.rb#226 + # source://faker//lib/faker/default/code.rb#227 def generate_base13_isbn; end - # source://faker//lib/faker/default/code.rb#243 + # source://faker//lib/faker/default/code.rb#244 def generate_base8_ean; end - # source://faker//lib/faker/default/code.rb#172 + # source://faker//lib/faker/default/code.rb#173 def generate_imei; end - # source://faker//lib/faker/default/code.rb#279 + # source://faker//lib/faker/default/code.rb#283 def generate_nric_check_alphabet(values, prefix); end - # source://faker//lib/faker/default/code.rb#286 + # source://faker//lib/faker/default/code.rb#290 def generate_sin_check_digit(digits); end - # source://faker//lib/faker/default/code.rb#274 + # source://faker//lib/faker/default/code.rb#278 def rut_verificator_digit(rut); end - # source://faker//lib/faker/default/code.rb#237 + # source://faker//lib/faker/default/code.rb#238 def sum(values); end end end @@ -4053,7 +4053,7 @@ class Faker::Educator < ::Faker::Base # Faker::Educator.degree #=> "Associate Degree in Criminology" # @return [String] # - # source://faker//lib/faker/default/educator.rb#30 + # source://faker//lib/faker/default/educator.rb#34 def course; end # Produces a course name. @@ -4325,8 +4325,8 @@ class Faker::Finance < ::Faker::Base # Returns a random condominium fiscal code. # # @example - # Faker::Finance.condominium_fiscal_code #=> "012345678" - # @param country [String] Two capital letter country code to use for the vat number. + # Faker::Finance.condominium_fiscal_code #=> "01234567890" + # @param country [String] Two capital letter country code to use for the condominium fiscal code number. # @return [String] # # source://faker//lib/faker/default/finance.rb#107 @@ -6365,7 +6365,7 @@ class Faker::IdNumber < ::Faker::Base # @param formatted [Boolean] Specifies if the number is formatted with dividers. # @return [String] # - # source://faker//lib/faker/default/id_number.rb#163 + # source://faker//lib/faker/default/id_number.rb#171 def brazilian_cpf(formatted: T.unsafe(nil)); end # Produces a random Brazilian ID Number (RG). @@ -6387,7 +6387,7 @@ class Faker::IdNumber < ::Faker::Base # @param formatted [Boolean] Specifies if the number is formatted with dividers. # @return [String] # - # source://faker//lib/faker/default/id_number.rb#184 + # source://faker//lib/faker/default/id_number.rb#191 def brazilian_rg(formatted: T.unsafe(nil)); end # Produces a random Chilean ID (Rut with 8 digits). @@ -6463,7 +6463,7 @@ class Faker::IdNumber < ::Faker::Base # Faker::IdNumber.valid_south_african_id_number #=> "8105128870184" # @return [String] # - # source://faker//lib/faker/default/id_number.rb#113 + # source://faker//lib/faker/default/id_number.rb#124 def south_african_id_number; end # Produces a random Spanish citizen identifier (DNI). @@ -6905,7 +6905,7 @@ class Faker::Internet < ::Faker::Base # @param separators [Array] # @return [String] # - # source://faker//lib/faker/default/internet.rb#64 + # source://faker//lib/faker/default/internet.rb#556 def user_name(specifier: T.unsafe(nil), separators: T.unsafe(nil)); end # Returns the username @@ -6991,8 +6991,8 @@ class Faker::Invoice < ::Faker::Base # Produces a random amount between values with 2 decimals # # @example - # Faker::Finance.amount_between #=> 0 - # Faker::Finance.amount_between(0, 10) #=> 4.33 + # Faker::Invoice.amount_between #=> 0 + # Faker::Invoice.amount_between(from: 0, to: 10) #=> 4.33 # @param from [Integer] Specifies lower limit. # @param to [Integer] Specifies upper limit. # @return [Integer] @@ -7508,7 +7508,7 @@ class Faker::Job < ::Faker::Base end end -# source://faker//lib/faker/default/json.rb#2 +# source://faker//lib/faker/default/json.rb#4 class Faker::Json < ::Faker::Base class << self # Produces a random nested JSON formatted string that can take JSON as an additional argument. @@ -7546,7 +7546,7 @@ class Faker::Json < ::Faker::Base # @param options [Hash] Specifies a Faker gem class to use for nested keys and for values, respectably. options_hash = {key: Class.method, value: Class.method} # @return [Hash{String => String}] # - # source://faker//lib/faker/default/json.rb#69 + # source://faker//lib/faker/default/json.rb#71 def add_depth_to_json(json: T.unsafe(nil), width: T.unsafe(nil), options: T.unsafe(nil)); end # Produces a random simple JSON formatted string. @@ -7563,21 +7563,21 @@ class Faker::Json < ::Faker::Base # @param options [Hash] Specifies a Faker gem class to use for keys and for values, respectably. options_hash = {key: Class.method, value: Class.method} # @return [Hash{String => String}] # - # source://faker//lib/faker/default/json.rb#23 + # source://faker//lib/faker/default/json.rb#25 def shallow_json(width: T.unsafe(nil), options: T.unsafe(nil)); end private - # source://faker//lib/faker/default/json.rb#106 + # source://faker//lib/faker/default/json.rb#108 def add_hash(key_array, hash, width, options); end - # source://faker//lib/faker/default/json.rb#93 + # source://faker//lib/faker/default/json.rb#95 def add_hash_to_bottom(hash, key_array, width, options); end - # source://faker//lib/faker/default/json.rb#116 + # source://faker//lib/faker/default/json.rb#120 def build_keys_from_array(key_array); end - # source://faker//lib/faker/default/json.rb#82 + # source://faker//lib/faker/default/json.rb#84 def build_shallow_hash(width, options); end end end @@ -8899,7 +8899,7 @@ class Faker::Movies::StarWars < ::Faker::Base # Faker::Movies::StarWars.wookiee_sentence #=> "Yrroonn ru ooma roo ahuma ur roooarrgh hnn-rowr." # @return [String] # - # source://faker//lib/faker/movies/star_wars.rb#119 + # source://faker//lib/faker/movies/star_wars.rb#264 def wookie_sentence; end # All wookiee words @@ -8908,7 +8908,7 @@ class Faker::Movies::StarWars < ::Faker::Base # Faker::Movies::StarWars.wookiee_words # @return [Array] # - # source://faker//lib/faker/movies/star_wars.rb#260 + # source://faker//lib/faker/movies/star_wars.rb#265 def wookie_words; end # Produces a wookiee sentence from Star Wars. @@ -9695,7 +9695,7 @@ class Faker::Name < ::Faker::Base # Faker::Name.female_first_name #=> "Natasha" # @return [String] # - # source://faker//lib/faker/default/name.rb#75 + # source://faker//lib/faker/default/name.rb#79 def feminine_name; end # Produces a random first name. @@ -9713,7 +9713,7 @@ class Faker::Name < ::Faker::Base # Faker::Name.male_first_name #=> "Edward" # @return [String] # - # source://faker//lib/faker/default/name.rb#60 + # source://faker//lib/faker/default/name.rb#63 def first_name_men; end # Produces a random gender neutral first name. @@ -9722,7 +9722,7 @@ class Faker::Name < ::Faker::Base # Faker::Name.neutral_first_name #=> "Casey" # @return [String] # - # source://faker//lib/faker/default/name.rb#90 + # source://faker//lib/faker/default/name.rb#93 def first_name_neutral; end # Produces a random female first name. @@ -9731,7 +9731,7 @@ class Faker::Name < ::Faker::Base # Faker::Name.female_first_name #=> "Natasha" # @return [String] # - # source://faker//lib/faker/default/name.rb#75 + # source://faker//lib/faker/default/name.rb#78 def first_name_women; end # Produces a random gender neutral first name. @@ -9740,7 +9740,7 @@ class Faker::Name < ::Faker::Base # Faker::Name.neutral_first_name #=> "Casey" # @return [String] # - # source://faker//lib/faker/default/name.rb#90 + # source://faker//lib/faker/default/name.rb#94 def gender_neutral_first_name; end # Produces random initials. @@ -9778,7 +9778,7 @@ class Faker::Name < ::Faker::Base # Faker::Name.male_first_name #=> "Edward" # @return [String] # - # source://faker//lib/faker/default/name.rb#60 + # source://faker//lib/faker/default/name.rb#64 def masculine_name; end # Produces a random last name. @@ -9787,7 +9787,7 @@ class Faker::Name < ::Faker::Base # Faker::Name.last_name #=> "Ernser" # @return [String] # - # source://faker//lib/faker/default/name.rb#105 + # source://faker//lib/faker/default/name.rb#108 def middle_name; end # Produces a random name. @@ -9911,7 +9911,7 @@ class Faker::NationalHealthService < ::Faker::Base # @param number [Integer] Specifies the NHS number the check digit belongs to. # @return [Integer] # - # source://faker//lib/faker/default/national_health_service.rb#42 + # source://faker//lib/faker/default/national_health_service.rb#41 def check_digit(number: T.unsafe(nil)); end end end @@ -10285,7 +10285,7 @@ class Faker::PhoneNumber < ::Faker::Base # @param length [Integer] Specifies the length of the return value. Defaults to 4. # @return [String] # - # source://faker//lib/faker/default/phone_number.rb#139 + # source://faker//lib/faker/default/phone_number.rb#149 def extension(length: T.unsafe(nil)); end # Produces a phone number in a random format without the country code and it can have different dividers. @@ -13597,7 +13597,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.door_count #=> 3 # @return [Integer] # - # source://faker//lib/faker/default/vehicle.rb#234 + # source://faker//lib/faker/default/vehicle.rb#237 def door_count; end # Produces a random vehicle door count. @@ -13636,7 +13636,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.engine #=> 4 # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#192 + # source://faker//lib/faker/default/vehicle.rb#196 def engine_size; end # Produces a random vehicle fuel type. @@ -13659,7 +13659,7 @@ class Faker::Vehicle < ::Faker::Base # @param max [Integer] Specific maximum limit for mileage generation. # @return [Integer] # - # source://faker//lib/faker/default/vehicle.rb#266 + # source://faker//lib/faker/default/vehicle.rb#270 def kilometrage(min: T.unsafe(nil), max: T.unsafe(nil)); end # source://faker//lib/faker/default/vehicle.rb#283 @@ -13689,7 +13689,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.manufacturer #=> "Lamborghini" # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#54 + # source://faker//lib/faker/default/vehicle.rb#57 def manufacture; end # Produces a random vehicle manufacturer. @@ -14093,8 +14093,6 @@ class PositionalGenerator::Builder # We can think of a graph like so: # # (a) (c) - # | | - # | (b) # \ / # end # @@ -14301,52 +14299,77 @@ class PositionalGenerator::Component < ::Struct # Returns the value of attribute deps # # @return [Object] the current value of deps + # + # source://faker//lib/helpers/positional_generator.rb#32 def deps; end # Sets the attribute deps # # @param value [Object] the value to set the attribute deps to. # @return [Object] the newly set value + # + # source://faker//lib/helpers/positional_generator.rb#32 def deps=(_); end # Returns the value of attribute generator # # @return [Object] the current value of generator + # + # source://faker//lib/helpers/positional_generator.rb#32 def generator; end # Sets the attribute generator # # @param value [Object] the value to set the attribute generator to. # @return [Object] the newly set value + # + # source://faker//lib/helpers/positional_generator.rb#32 def generator=(_); end # Returns the value of attribute name # # @return [Object] the current value of name + # + # source://faker//lib/helpers/positional_generator.rb#32 def name; end # Sets the attribute name # # @param value [Object] the value to set the attribute name to. # @return [Object] the newly set value + # + # source://faker//lib/helpers/positional_generator.rb#32 def name=(_); end # Returns the value of attribute position # # @return [Object] the current value of position + # + # source://faker//lib/helpers/positional_generator.rb#32 def position; end # Sets the attribute position # # @param value [Object] the value to set the attribute position to. # @return [Object] the newly set value + # + # source://faker//lib/helpers/positional_generator.rb#32 def position=(_); end class << self + # source://faker//lib/helpers/positional_generator.rb#32 def [](*_arg0); end + + # source://faker//lib/helpers/positional_generator.rb#32 def inspect; end + + # source://faker//lib/helpers/positional_generator.rb#32 def keyword_init?; end + + # source://faker//lib/helpers/positional_generator.rb#32 def members; end + + # source://faker//lib/helpers/positional_generator.rb#32 def new(*_arg0); end end end diff --git a/sorbet/rbi/gems/faraday-follow_redirects@0.3.0.rbi b/sorbet/rbi/gems/faraday-follow_redirects@0.3.0.rbi new file mode 100644 index 00000000..52f00874 --- /dev/null +++ b/sorbet/rbi/gems/faraday-follow_redirects@0.3.0.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `faraday-follow_redirects` gem. +# Please instead update this file by running `bin/tapioca gem faraday-follow_redirects`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/faraday-net_http@3.4.0.rbi b/sorbet/rbi/gems/faraday-net_http@3.4.1.rbi similarity index 51% rename from sorbet/rbi/gems/faraday-net_http@3.4.0.rbi rename to sorbet/rbi/gems/faraday-net_http@3.4.1.rbi index a024d945..31c8f81b 100644 --- a/sorbet/rbi/gems/faraday-net_http@3.4.0.rbi +++ b/sorbet/rbi/gems/faraday-net_http@3.4.1.rbi @@ -6,85 +6,10 @@ # source://faraday-net_http//lib/faraday/adapter/net_http.rb#12 -module Faraday - class << self - # source://faraday/2.13.0/lib/faraday.rb#55 - def default_adapter; end - - # source://faraday/2.13.0/lib/faraday.rb#102 - def default_adapter=(adapter); end - - # source://faraday/2.13.0/lib/faraday.rb#59 - def default_adapter_options; end - - # source://faraday/2.13.0/lib/faraday.rb#59 - def default_adapter_options=(_arg0); end - - # source://faraday/2.13.0/lib/faraday.rb#120 - def default_connection; end - - # source://faraday/2.13.0/lib/faraday.rb#62 - def default_connection=(_arg0); end - - # source://faraday/2.13.0/lib/faraday.rb#127 - def default_connection_options; end - - # source://faraday/2.13.0/lib/faraday.rb#134 - def default_connection_options=(options); end - - # source://faraday/2.13.0/lib/faraday.rb#67 - def ignore_env_proxy; end - - # source://faraday/2.13.0/lib/faraday.rb#67 - def ignore_env_proxy=(_arg0); end - - # source://faraday/2.13.0/lib/faraday.rb#46 - def lib_path; end - - # source://faraday/2.13.0/lib/faraday.rb#46 - def lib_path=(_arg0); end - - # source://faraday/2.13.0/lib/faraday.rb#96 - def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end - - # source://faraday/2.13.0/lib/faraday.rb#107 - def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end - - # source://faraday/2.13.0/lib/faraday.rb#42 - def root_path; end - - # source://faraday/2.13.0/lib/faraday.rb#42 - def root_path=(_arg0); end - - private - - # source://faraday/2.13.0/lib/faraday.rb#143 - def method_missing(name, *args, &block); end - end -end +module Faraday; end # source://faraday-net_http//lib/faraday/adapter/net_http.rb#13 -class Faraday::Adapter - # source://faraday/2.13.0/lib/faraday/adapter.rb#28 - def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end - - # source://faraday/2.13.0/lib/faraday/adapter.rb#55 - def call(env); end - - # source://faraday/2.13.0/lib/faraday/adapter.rb#50 - def close; end - - # source://faraday/2.13.0/lib/faraday/adapter.rb#41 - def connection(env); end - - private - - # source://faraday/2.13.0/lib/faraday/adapter.rb#85 - def request_timeout(type, options); end - - # source://faraday/2.13.0/lib/faraday/adapter.rb#62 - def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil), finished: T.unsafe(nil)); end -end +class Faraday::Adapter; end # source://faraday-net_http//lib/faraday/adapter/net_http.rb#14 class Faraday::Adapter::NetHttp < ::Faraday::Adapter diff --git a/sorbet/rbi/gems/faraday@2.13.0.rbi b/sorbet/rbi/gems/faraday@2.13.4.rbi similarity index 83% rename from sorbet/rbi/gems/faraday@2.13.0.rbi rename to sorbet/rbi/gems/faraday@2.13.4.rbi index 7ef7e2b3..4cd6ccd0 100644 --- a/sorbet/rbi/gems/faraday@2.13.0.rbi +++ b/sorbet/rbi/gems/faraday@2.13.4.rbi @@ -13,49 +13,49 @@ module Faraday # @overload default_adapter # @overload default_adapter= # - # source://faraday//lib/faraday.rb#55 + # source://faraday//lib/faraday.rb#56 def default_adapter; end # Documented elsewhere, see default_adapter reader # - # source://faraday//lib/faraday.rb#102 + # source://faraday//lib/faraday.rb#103 def default_adapter=(adapter); end # Option for the default_adapter # @return [Hash] default_adapter options # - # source://faraday//lib/faraday.rb#59 + # source://faraday//lib/faraday.rb#60 def default_adapter_options; end # Option for the default_adapter # @return [Hash] default_adapter options # - # source://faraday//lib/faraday.rb#59 + # source://faraday//lib/faraday.rb#60 def default_adapter_options=(_arg0); end # @overload default_connection # @overload default_connection= # - # source://faraday//lib/faraday.rb#120 + # source://faraday//lib/faraday.rb#121 def default_connection; end # Documented below, see default_connection # - # source://faraday//lib/faraday.rb#62 + # source://faraday//lib/faraday.rb#63 def default_connection=(_arg0); end # Gets the default connection options used when calling {Faraday#new}. # # @return [Faraday::ConnectionOptions] # - # source://faraday//lib/faraday.rb#127 + # source://faraday//lib/faraday.rb#128 def default_connection_options; end # Sets the default options used when calling {Faraday#new}. # # @param options [Hash, Faraday::ConnectionOptions] # - # source://faraday//lib/faraday.rb#134 + # source://faraday//lib/faraday.rb#135 def default_connection_options=(options); end # Tells Faraday to ignore the environment proxy (http_proxy). @@ -63,7 +63,7 @@ module Faraday # # @return [Boolean] # - # source://faraday//lib/faraday.rb#67 + # source://faraday//lib/faraday.rb#68 def ignore_env_proxy; end # Tells Faraday to ignore the environment proxy (http_proxy). @@ -71,21 +71,21 @@ module Faraday # # @return [Boolean] # - # source://faraday//lib/faraday.rb#67 + # source://faraday//lib/faraday.rb#68 def ignore_env_proxy=(_arg0); end # Gets or sets the path that the Faraday libs are loaded from. # # @return [String] # - # source://faraday//lib/faraday.rb#46 + # source://faraday//lib/faraday.rb#47 def lib_path; end # Gets or sets the path that the Faraday libs are loaded from. # # @return [String] # - # source://faraday//lib/faraday.rb#46 + # source://faraday//lib/faraday.rb#47 def lib_path=(_arg0); end # Initializes a new {Connection}. @@ -113,12 +113,12 @@ module Faraday # @param options [Hash] # @return [Faraday::Connection] # - # source://faraday//lib/faraday.rb#96 + # source://faraday//lib/faraday.rb#97 def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end # @return [Boolean] # - # source://faraday//lib/faraday.rb#107 + # source://faraday//lib/faraday.rb#108 def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end # The root path that Faraday is being loaded from. @@ -127,7 +127,7 @@ module Faraday # # @return [String] # - # source://faraday//lib/faraday.rb#42 + # source://faraday//lib/faraday.rb#43 def root_path; end # The root path that Faraday is being loaded from. @@ -136,7 +136,7 @@ module Faraday # # @return [String] # - # source://faraday//lib/faraday.rb#42 + # source://faraday//lib/faraday.rb#43 def root_path=(_arg0); end private @@ -144,7 +144,7 @@ module Faraday # Internal: Proxies method calls on the Faraday constant to # .default_connection. # - # source://faraday//lib/faraday.rb#143 + # source://faraday//lib/faraday.rb#144 def method_missing(name, *args, &block); end end end @@ -320,23 +320,31 @@ class Faraday::Adapter::Test::Stub < ::Struct # Returns the value of attribute block # # @return [Object] the current value of block + # + # source://faraday//lib/faraday/adapter/test.rb#187 def block; end # Sets the attribute block # # @param value [Object] the value to set the attribute block to. # @return [Object] the newly set value + # + # source://faraday//lib/faraday/adapter/test.rb#187 def block=(_); end # Returns the value of attribute body # # @return [Object] the current value of body + # + # source://faraday//lib/faraday/adapter/test.rb#187 def body; end # Sets the attribute body # # @param value [Object] the value to set the attribute body to. # @return [Object] the newly set value + # + # source://faraday//lib/faraday/adapter/test.rb#187 def body=(_); end # @return [Boolean] @@ -347,12 +355,16 @@ class Faraday::Adapter::Test::Stub < ::Struct # Returns the value of attribute headers # # @return [Object] the current value of headers + # + # source://faraday//lib/faraday/adapter/test.rb#187 def headers; end # Sets the attribute headers # # @param value [Object] the value to set the attribute headers to. # @return [Object] the newly set value + # + # source://faraday//lib/faraday/adapter/test.rb#187 def headers=(_); end # @return [Boolean] @@ -363,12 +375,16 @@ class Faraday::Adapter::Test::Stub < ::Struct # Returns the value of attribute host # # @return [Object] the current value of host + # + # source://faraday//lib/faraday/adapter/test.rb#187 def host; end # Sets the attribute host # # @param value [Object] the value to set the attribute host to. # @return [Object] the newly set value + # + # source://faraday//lib/faraday/adapter/test.rb#187 def host=(_); end # @param env [Faraday::Env] @@ -386,12 +402,16 @@ class Faraday::Adapter::Test::Stub < ::Struct # Returns the value of attribute path # # @return [Object] the current value of path + # + # source://faraday//lib/faraday/adapter/test.rb#187 def path; end # Sets the attribute path # # @param value [Object] the value to set the attribute path to. # @return [Object] the newly set value + # + # source://faraday//lib/faraday/adapter/test.rb#187 def path=(_); end # @return [Boolean] @@ -402,33 +422,50 @@ class Faraday::Adapter::Test::Stub < ::Struct # Returns the value of attribute query # # @return [Object] the current value of query + # + # source://faraday//lib/faraday/adapter/test.rb#187 def query; end # Sets the attribute query # # @param value [Object] the value to set the attribute query to. # @return [Object] the newly set value + # + # source://faraday//lib/faraday/adapter/test.rb#187 def query=(_); end # Returns the value of attribute strict_mode # # @return [Object] the current value of strict_mode + # + # source://faraday//lib/faraday/adapter/test.rb#187 def strict_mode; end # Sets the attribute strict_mode # # @param value [Object] the value to set the attribute strict_mode to. # @return [Object] the newly set value + # + # source://faraday//lib/faraday/adapter/test.rb#187 def strict_mode=(_); end # source://faraday//lib/faraday/adapter/test.rb#253 def to_s; end class << self + # source://faraday//lib/faraday/adapter/test.rb#187 def [](*_arg0); end + + # source://faraday//lib/faraday/adapter/test.rb#187 def inspect; end + + # source://faraday//lib/faraday/adapter/test.rb#187 def keyword_init?; end + + # source://faraday//lib/faraday/adapter/test.rb#187 def members; end + + # source://faraday//lib/faraday/adapter/test.rb#187 def new(*_arg0); end end end @@ -521,20 +558,20 @@ end # Raised by Faraday::Response::RaiseError in case of a 400 response. # -# source://faraday//lib/faraday/error.rb#96 +# source://faraday//lib/faraday/error.rb#130 class Faraday::BadRequestError < ::Faraday::ClientError; end -# source://faraday//lib/faraday.rb#34 +# source://faraday//lib/faraday.rb#35 Faraday::CONTENT_TYPE = T.let(T.unsafe(nil), String) # Faraday client error class. Represents 4xx status responses. # -# source://faraday//lib/faraday/error.rb#92 +# source://faraday//lib/faraday/error.rb#126 class Faraday::ClientError < ::Faraday::Error; end # Raised by Faraday::Response::RaiseError in case of a 409 response. # -# source://faraday//lib/faraday/error.rb#120 +# source://faraday//lib/faraday/error.rb#154 class Faraday::ConflictError < ::Faraday::ClientError; end # Connection objects manage the default properties and the middleware @@ -572,10 +609,10 @@ class Faraday::Connection # source://faraday//lib/faraday/connection.rb#63 def initialize(url = T.unsafe(nil), options = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/connection.rb#120 def adapter(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/connection.rb#120 def app(*args, **_arg1, &block); end # Build an absolute URL based on url_prefix. @@ -645,7 +682,7 @@ class Faraday::Connection # source://faraday//lib/faraday/connection.rb#40 def default_parallel_manager=(_arg0); end - # source://faraday//lib/faraday/connection.rb#199 + # source://faraday//lib/faraday/connection.rb#198 def delete(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end # Creates a duplicate of this Faraday::Connection. @@ -659,10 +696,10 @@ class Faraday::Connection # source://faraday//lib/faraday/connection.rb#542 def find_default_proxy; end - # source://faraday//lib/faraday/connection.rb#199 + # source://faraday//lib/faraday/connection.rb#198 def get(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end - # source://faraday//lib/faraday/connection.rb#199 + # source://faraday//lib/faraday/connection.rb#198 def head(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end # @return [Hash] unencoded HTTP header key/value pairs. @@ -677,10 +714,10 @@ class Faraday::Connection # source://faraday//lib/faraday/connection.rb#114 def headers=(hash); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/connection.rb#346 def host(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/connection.rb#346 def host=(*args, **_arg1, &block); end # Sets up the parallel manager to make a set of requests. @@ -730,10 +767,10 @@ class Faraday::Connection # source://faraday//lib/faraday/connection.rb#108 def params=(hash); end - # source://faraday//lib/faraday/connection.rb#279 + # source://faraday//lib/faraday/connection.rb#278 def patch(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/connection.rb#347 def path_prefix(*args, **_arg1, &block); end # Sets the path prefix and ensures that it always has a leading @@ -745,13 +782,13 @@ class Faraday::Connection # source://faraday//lib/faraday/connection.rb#390 def path_prefix=(value); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/connection.rb#346 def port(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/connection.rb#346 def port=(*args, **_arg1, &block); end - # source://faraday//lib/faraday/connection.rb#279 + # source://faraday//lib/faraday/connection.rb#278 def post(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end # @return [Hash] proxy options. @@ -772,13 +809,13 @@ class Faraday::Connection # source://faraday//lib/faraday/connection.rb#522 def proxy_from_env(url); end - # source://faraday//lib/faraday/connection.rb#279 + # source://faraday//lib/faraday/connection.rb#278 def put(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/connection.rb#120 def request(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/connection.rb#120 def response(*args, **_arg1, &block); end # Builds and runs the Faraday::Request. @@ -793,10 +830,10 @@ class Faraday::Connection # source://faraday//lib/faraday/connection.rb#439 def run_request(method, url, body, headers); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/connection.rb#346 def scheme(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/connection.rb#346 def scheme=(*args, **_arg1, &block); end # source://faraday//lib/faraday/connection.rb#379 @@ -812,7 +849,7 @@ class Faraday::Connection # source://faraday//lib/faraday/connection.rb#560 def support_parallel?(adapter); end - # source://faraday//lib/faraday/connection.rb#199 + # source://faraday//lib/faraday/connection.rb#198 def trace(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end # @return [String] a URI with the prefix used for all requests from this @@ -839,7 +876,7 @@ class Faraday::Connection # source://faraday//lib/faraday/connection.rb#364 def url_prefix=(url, encoder = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/connection.rb#120 def use(*args, **_arg1, &block); end # Yields username and password extracted from a URI if they both exist. @@ -865,7 +902,7 @@ Faraday::Connection::USER_AGENT = T.let(T.unsafe(nil), String) # A unified error for failed connections. # -# source://faraday//lib/faraday/error.rb#151 +# source://faraday//lib/faraday/error.rb#185 class Faraday::ConnectionFailed < ::Faraday::Error; end # ConnectionOptions contains the configurable properties for a Faraday @@ -873,43 +910,77 @@ class Faraday::ConnectionFailed < ::Faraday::Error; end # # source://faraday//lib/faraday/options/connection_options.rb#8 class Faraday::ConnectionOptions < ::Faraday::Options + # source://faraday//lib/faraday/options/connection_options.rb#8 def builder; end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def builder=(_); end - # source://faraday//lib/faraday/options.rb#178 + # source://faraday//lib/faraday/options/connection_options.rb#8 def builder_class; end + # source://faraday//lib/faraday/options/connection_options.rb#8 def builder_class=(_); end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def headers; end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def headers=(_); end # source://faraday//lib/faraday/options/connection_options.rb#19 def new_builder(block); end + # source://faraday//lib/faraday/options/connection_options.rb#8 def parallel_manager; end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def parallel_manager=(_); end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def params; end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def params=(_); end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def proxy; end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def proxy=(_); end - # source://faraday//lib/faraday/options.rb#178 + # source://faraday//lib/faraday/options/connection_options.rb#8 def request; end + # source://faraday//lib/faraday/options/connection_options.rb#8 def request=(_); end - # source://faraday//lib/faraday/options.rb#178 + # source://faraday//lib/faraday/options/connection_options.rb#8 def ssl; end + # source://faraday//lib/faraday/options/connection_options.rb#8 def ssl=(_); end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def url; end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def url=(_); end class << self + # source://faraday//lib/faraday/options/connection_options.rb#8 def [](*_arg0); end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def inspect; end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def keyword_init?; end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def members; end + + # source://faraday//lib/faraday/options/connection_options.rb#8 def new(*_arg0); end end end @@ -1015,9 +1086,13 @@ class Faraday::Env < ::Faraday::Options def inspect; end # @return [Symbol] HTTP method (`:get`, `:post`) + # + # source://faraday//lib/faraday/options/env.rb#57 def method; end # @return [Symbol] HTTP method (`:get`, `:post`) + # + # source://faraday//lib/faraday/options/env.rb#57 def method=(_); end # source://faraday//lib/faraday/options/env.rb#133 @@ -1027,27 +1102,39 @@ class Faraday::Env < ::Faraday::Options def parallel?; end # @return [Object] sent if the connection is in parallel mode + # + # source://faraday//lib/faraday/options/env.rb#57 def parallel_manager; end # @return [Object] sent if the connection is in parallel mode + # + # source://faraday//lib/faraday/options/env.rb#57 def parallel_manager=(_); end # @return [Hash] + # + # source://faraday//lib/faraday/options/env.rb#57 def params; end # @return [Hash] + # + # source://faraday//lib/faraday/options/env.rb#57 def params=(_); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/options/env.rb#74 def params_encoder(*args, **_arg1, &block); end # source://faraday//lib/faraday/options/env.rb#145 def parse_body?; end # @return [String] + # + # source://faraday//lib/faraday/options/env.rb#57 def reason_phrase; end # @return [String] + # + # source://faraday//lib/faraday/options/env.rb#57 def reason_phrase=(_); end # Options for configuring the request. @@ -1067,6 +1154,8 @@ class Faraday::Env < ::Faraday::Options # - `:password` - Proxy server password # # @return [Hash] options for configuring the request. + # + # source://faraday//lib/faraday/options/env.rb#57 def request; end # Options for configuring the request. @@ -1086,42 +1175,70 @@ class Faraday::Env < ::Faraday::Options # - `:password` - Proxy server password # # @return [Hash] options for configuring the request. + # + # source://faraday//lib/faraday/options/env.rb#57 def request=(_); end + # source://faraday//lib/faraday/options/env.rb#57 def request_body; end + + # source://faraday//lib/faraday/options/env.rb#57 def request_body=(_); end # @return [Hash] HTTP Headers to be sent to the server. + # + # source://faraday//lib/faraday/options/env.rb#57 def request_headers; end # @return [Hash] HTTP Headers to be sent to the server. + # + # source://faraday//lib/faraday/options/env.rb#57 def request_headers=(_); end # @return [Response] + # + # source://faraday//lib/faraday/options/env.rb#57 def response; end # @return [Response] + # + # source://faraday//lib/faraday/options/env.rb#57 def response=(_); end + # source://faraday//lib/faraday/options/env.rb#57 def response_body; end + + # source://faraday//lib/faraday/options/env.rb#57 def response_body=(_); end # @return [Hash] HTTP headers from the server + # + # source://faraday//lib/faraday/options/env.rb#57 def response_headers; end # @return [Hash] HTTP headers from the server + # + # source://faraday//lib/faraday/options/env.rb#57 def response_headers=(_); end # @return [Hash] options for configuring SSL requests + # + # source://faraday//lib/faraday/options/env.rb#57 def ssl; end # @return [Hash] options for configuring SSL requests + # + # source://faraday//lib/faraday/options/env.rb#57 def ssl=(_); end # @return [Integer] HTTP response status code + # + # source://faraday//lib/faraday/options/env.rb#57 def status; end # @return [Integer] HTTP response status code + # + # source://faraday//lib/faraday/options/env.rb#57 def status=(_); end # source://faraday//lib/faraday/options/env.rb#169 @@ -1134,24 +1251,35 @@ class Faraday::Env < ::Faraday::Options def success?; end # @return [URI] URI instance for the current request. + # + # source://faraday//lib/faraday/options/env.rb#57 def url; end # @return [URI] URI instance for the current request. + # + # source://faraday//lib/faraday/options/env.rb#57 def url=(_); end class << self + # source://faraday//lib/faraday/options/env.rb#57 def [](*_arg0); end # source://faraday//lib/faraday/options/env.rb#80 def from(value); end + # source://faraday//lib/faraday/options/env.rb#57 def inspect; end + + # source://faraday//lib/faraday/options/env.rb#57 def keyword_init?; end # source://faraday//lib/faraday/options/env.rb#200 def member_set; end + # source://faraday//lib/faraday/options/env.rb#57 def members; end + + # source://faraday//lib/faraday/options/env.rb#57 def new(*_arg0); end end end @@ -1232,6 +1360,20 @@ class Faraday::Error < ::StandardError # # source://faraday//lib/faraday/error.rb#71 def exc_msg_and_response!(exc, response = T.unsafe(nil)); end + + private + + # source://faraday//lib/faraday/error.rb#108 + def build_error_message_from_env(env); end + + # source://faraday//lib/faraday/error.rb#96 + def build_error_message_from_hash(hash); end + + # source://faraday//lib/faraday/error.rb#113 + def build_status_error_message(status, method, url); end + + # source://faraday//lib/faraday/error.rb#119 + def fallback_error_message(status); end end # FlatParamsEncoder manages URI params as a flat hash. Any Array values repeat @@ -1265,7 +1407,7 @@ module Faraday::FlatParamsEncoder # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#23 def encode(params); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#9 def escape(*args, **_arg1, &block); end # Returns the value of attribute sort_params. @@ -1280,19 +1422,19 @@ module Faraday::FlatParamsEncoder # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#99 def sort_params=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#9 def unescape(*args, **_arg1, &block); end end end # Raised by Faraday::Response::RaiseError in case of a 403 response. # -# source://faraday//lib/faraday/error.rb#104 +# source://faraday//lib/faraday/error.rb#138 class Faraday::ForbiddenError < ::Faraday::ClientError; end # Raised by Faraday::Middleware and subclasses when invalid default_options are used # -# source://faraday//lib/faraday/error.rb#163 +# source://faraday//lib/faraday/error.rb#197 class Faraday::InitializationError < ::Faraday::Error; end # source://faraday//lib/faraday/logging/formatter.rb#6 @@ -1309,22 +1451,22 @@ class Faraday::Logging::Formatter # source://faraday//lib/faraday/logging/formatter.rb#14 def initialize(logger:, options:); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/logging/formatter.rb#23 def debug(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/logging/formatter.rb#23 def error(*args, **_arg1, &block); end # source://faraday//lib/faraday/logging/formatter.rb#41 def exception(exc); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/logging/formatter.rb#23 def fatal(*args, **_arg1, &block); end # source://faraday//lib/faraday/logging/formatter.rb#52 def filter(filter_word, filter_replacement); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/logging/formatter.rb#23 def info(*args, **_arg1, &block); end # source://faraday//lib/faraday/logging/formatter.rb#25 @@ -1333,7 +1475,7 @@ class Faraday::Logging::Formatter # source://faraday//lib/faraday/logging/formatter.rb#34 def response(env); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/logging/formatter.rb#23 def warn(*args, **_arg1, &block); end private @@ -1528,7 +1670,7 @@ module Faraday::NestedParamsEncoder # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170 def array_indices=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#173 def escape(*args, **_arg1, &block); end # Returns the value of attribute sort_params. @@ -1543,18 +1685,18 @@ module Faraday::NestedParamsEncoder # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170 def sort_params=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#173 def unescape(*args, **_arg1, &block); end end end # Raised by Faraday::Response::RaiseError in case of a nil status in response. # -# source://faraday//lib/faraday/error.rb#143 +# source://faraday//lib/faraday/error.rb#177 class Faraday::NilStatusError < ::Faraday::ServerError # @return [NilStatusError] a new instance of NilStatusError # - # source://faraday//lib/faraday/error.rb#144 + # source://faraday//lib/faraday/error.rb#178 def initialize(exc, response = T.unsafe(nil)); end end @@ -1612,14 +1754,14 @@ class Faraday::Options < ::Struct # # @return [Boolean] # - # source://faraday//lib/faraday/options.rb#113 + # source://faraday//lib/faraday/options.rb#117 def has_key?(key); end # Public # # @return [Boolean] # - # source://faraday//lib/faraday/options.rb#127 + # source://faraday//lib/faraday/options.rb#131 def has_value?(value); end # Internal @@ -1713,12 +1855,12 @@ end # Raised by middlewares that parse the response, like the JSON response middleware. # -# source://faraday//lib/faraday/error.rb#159 +# source://faraday//lib/faraday/error.rb#193 class Faraday::ParsingError < ::Faraday::Error; end # Raised by Faraday::Response::RaiseError in case of a 407 response. # -# source://faraday//lib/faraday/error.rb#112 +# source://faraday//lib/faraday/error.rb#146 class Faraday::ProxyAuthError < ::Faraday::ClientError; end # ProxyOptions contains the configurable properties for the proxy @@ -1728,52 +1870,65 @@ class Faraday::ProxyAuthError < ::Faraday::ClientError; end class Faraday::ProxyOptions < ::Faraday::Options extend ::Forwardable - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/options/proxy_options.rb#10 def host(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/options/proxy_options.rb#10 def host=(*args, **_arg1, &block); end - # source://faraday//lib/faraday/options.rb#178 + # source://faraday//lib/faraday/options/proxy_options.rb#8 def password; end + # source://faraday//lib/faraday/options/proxy_options.rb#8 def password=(_); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/options/proxy_options.rb#10 def path(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/options/proxy_options.rb#10 def path=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/options/proxy_options.rb#10 def port(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/options/proxy_options.rb#10 def port=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/options/proxy_options.rb#10 def scheme(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/options/proxy_options.rb#10 def scheme=(*args, **_arg1, &block); end + # source://faraday//lib/faraday/options/proxy_options.rb#8 def uri; end + + # source://faraday//lib/faraday/options/proxy_options.rb#8 def uri=(_); end - # source://faraday//lib/faraday/options.rb#178 + # source://faraday//lib/faraday/options/proxy_options.rb#8 def user; end + # source://faraday//lib/faraday/options/proxy_options.rb#8 def user=(_); end class << self + # source://faraday//lib/faraday/options/proxy_options.rb#8 def [](*_arg0); end # source://faraday//lib/faraday/options/proxy_options.rb#13 def from(value); end + # source://faraday//lib/faraday/options/proxy_options.rb#8 def inspect; end + + # source://faraday//lib/faraday/options/proxy_options.rb#8 def keyword_init?; end + + # source://faraday//lib/faraday/options/proxy_options.rb#8 def members; end + + # source://faraday//lib/faraday/options/proxy_options.rb#8 def new(*_arg0); end end end @@ -1872,7 +2027,7 @@ class Faraday::RackBuilder # methods to push onto the various positions in the stack: # - # source://faraday//lib/faraday/rack_builder.rb#119 + # source://faraday//lib/faraday/rack_builder.rb#126 def insert_before(index, *_arg1, **_arg2, &_arg3); end # Locks the middleware stack to ensure no further modifications are made. @@ -1907,7 +2062,7 @@ class Faraday::RackBuilder # source://faraday//lib/faraday/rack_builder.rb#233 def adapter_set?; end - # source://faraday//lib/faraday/rack_builder.rb#245 + # source://faraday//lib/faraday/rack_builder.rb#241 def assert_index(index); end # @raise [MISSING_ADAPTER_ERROR] @@ -1918,11 +2073,6 @@ class Faraday::RackBuilder # source://faraday//lib/faraday/rack_builder.rb#67 def initialize_dup(original); end - # @return [Boolean] - # - # source://faraday//lib/faraday/rack_builder.rb#237 - def is_adapter?(klass); end - # source://faraday//lib/faraday/rack_builder.rb#223 def raise_if_adapter(klass); end @@ -1931,7 +2081,7 @@ class Faraday::RackBuilder # source://faraday//lib/faraday/rack_builder.rb#219 def raise_if_locked; end - # source://faraday//lib/faraday/rack_builder.rb#241 + # source://faraday//lib/faraday/rack_builder.rb#237 def use_symbol(mod, key, *_arg2, **_arg3, &_arg4); end end @@ -2010,25 +2160,35 @@ class Faraday::Request < ::Struct def []=(key, value); end # @return [String] body + # + # source://faraday//lib/faraday/request.rb#27 def body; end # @return [String] body + # + # source://faraday//lib/faraday/request.rb#27 def body=(_); end # @return [Faraday::Utils::Headers] headers + # + # source://faraday//lib/faraday/request.rb#27 def headers; end # Replace request headers, preserving the existing hash type. # # @param hash [Hash] new headers # - # source://faraday//lib/faraday/request.rb#61 + # source://faraday//lib/faraday/request.rb#27 def headers=(hash); end # @return [Symbol] the HTTP method of the Request + # + # source://faraday//lib/faraday/request.rb#27 def http_method; end # @return [Symbol] the HTTP method of the Request + # + # source://faraday//lib/faraday/request.rb#27 def http_method=(_); end # Marshal serialization support. @@ -2047,25 +2207,35 @@ class Faraday::Request < ::Struct def marshal_load(serialised); end # @return [RequestOptions] options + # + # source://faraday//lib/faraday/request.rb#27 def options; end # @return [RequestOptions] options + # + # source://faraday//lib/faraday/request.rb#27 def options=(_); end # @return [Hash] query parameters + # + # source://faraday//lib/faraday/request.rb#27 def params; end # Replace params, preserving the existing hash type. # # @param hash [Hash] new params # - # source://faraday//lib/faraday/request.rb#49 + # source://faraday//lib/faraday/request.rb#27 def params=(hash); end # @return [URI, String] the path + # + # source://faraday//lib/faraday/request.rb#27 def path; end # @return [URI, String] the path + # + # source://faraday//lib/faraday/request.rb#27 def path=(_); end # @return [Env] the Env for this Request @@ -2084,10 +2254,14 @@ class Faraday::Request < ::Struct private + # source://faraday//lib/faraday/request.rb#30 def member_get(_arg0); end + + # source://faraday//lib/faraday/request.rb#32 def member_set(_arg0, _arg1); end class << self + # source://faraday//lib/faraday/request.rb#27 def [](*_arg0); end # @param request_method [String] @@ -2098,9 +2272,16 @@ class Faraday::Request < ::Struct # source://faraday//lib/faraday/request.rb#39 def create(request_method); end + # source://faraday//lib/faraday/request.rb#27 def inspect; end + + # source://faraday//lib/faraday/request.rb#27 def keyword_init?; end + + # source://faraday//lib/faraday/request.rb#27 def members; end + + # source://faraday//lib/faraday/request.rb#27 def new(*_arg0); end end end @@ -2177,21 +2358,32 @@ end # # source://faraday//lib/faraday/request/instrumentation.rb#8 class Faraday::Request::Instrumentation::Options < ::Faraday::Options - # source://faraday//lib/faraday/request/instrumentation.rb#17 + # source://faraday//lib/faraday/request/instrumentation.rb#8 def instrumenter; end + # source://faraday//lib/faraday/request/instrumentation.rb#8 def instrumenter=(_); end - # source://faraday//lib/faraday/request/instrumentation.rb#11 + # source://faraday//lib/faraday/request/instrumentation.rb#8 def name; end + # source://faraday//lib/faraday/request/instrumentation.rb#8 def name=(_); end class << self + # source://faraday//lib/faraday/request/instrumentation.rb#8 def [](*_arg0); end + + # source://faraday//lib/faraday/request/instrumentation.rb#8 def inspect; end + + # source://faraday//lib/faraday/request/instrumentation.rb#8 def keyword_init?; end + + # source://faraday//lib/faraday/request/instrumentation.rb#8 def members; end + + # source://faraday//lib/faraday/request/instrumentation.rb#8 def new(*_arg0); end end end @@ -2295,50 +2487,101 @@ class Faraday::RequestOptions < ::Faraday::Options # source://faraday//lib/faraday/options/request_options.rb#11 def []=(key, value); end + # source://faraday//lib/faraday/options/request_options.rb#7 def bind; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def bind=(_); end + + # source://faraday//lib/faraday/options/request_options.rb#7 def boundary; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def boundary=(_); end + + # source://faraday//lib/faraday/options/request_options.rb#7 def context; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def context=(_); end + + # source://faraday//lib/faraday/options/request_options.rb#7 def oauth; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def oauth=(_); end + + # source://faraday//lib/faraday/options/request_options.rb#7 def on_data; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def on_data=(_); end + + # source://faraday//lib/faraday/options/request_options.rb#7 def open_timeout; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def open_timeout=(_); end + + # source://faraday//lib/faraday/options/request_options.rb#7 def params_encoder; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def params_encoder=(_); end + + # source://faraday//lib/faraday/options/request_options.rb#7 def proxy; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def proxy=(_); end + + # source://faraday//lib/faraday/options/request_options.rb#7 def read_timeout; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def read_timeout=(_); end # source://faraday//lib/faraday/options/request_options.rb#19 def stream_response?; end + # source://faraday//lib/faraday/options/request_options.rb#7 def timeout; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def timeout=(_); end + + # source://faraday//lib/faraday/options/request_options.rb#7 def write_timeout; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def write_timeout=(_); end class << self + # source://faraday//lib/faraday/options/request_options.rb#7 def [](*_arg0); end + + # source://faraday//lib/faraday/options/request_options.rb#7 def inspect; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def keyword_init?; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def members; end + + # source://faraday//lib/faraday/options/request_options.rb#7 def new(*_arg0); end end end # Raised by Faraday::Response::RaiseError in case of a 408 response. # -# source://faraday//lib/faraday/error.rb#116 +# source://faraday//lib/faraday/error.rb#150 class Faraday::RequestTimeoutError < ::Faraday::ClientError; end # Raised by Faraday::Response::RaiseError in case of a 404 response. # -# source://faraday//lib/faraday/error.rb#108 +# source://faraday//lib/faraday/error.rb#142 class Faraday::ResourceNotFound < ::Faraday::ClientError; end # Response represents an HTTP response from making an HTTP request. @@ -2353,7 +2596,7 @@ class Faraday::Response # source://faraday//lib/faraday/response.rb#11 def initialize(env = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://faraday//lib/faraday/response.rb#30 def [](*args, **_arg1, &block); end # Expand the env with more properties, without overriding existing ones. @@ -2453,19 +2696,22 @@ class Faraday::Response::Logger < ::Faraday::Middleware # @return [Logger] a new instance of Logger # @yield [@formatter] # - # source://faraday//lib/faraday/response/logger.rb#13 + # source://faraday//lib/faraday/response/logger.rb#15 def initialize(app, logger = T.unsafe(nil), options = T.unsafe(nil)); end - # source://faraday//lib/faraday/response/logger.rb#21 + # source://faraday//lib/faraday/response/logger.rb#23 def call(env); end - # source://faraday//lib/faraday/response/logger.rb#26 + # source://faraday//lib/faraday/response/logger.rb#28 def on_complete(env); end - # source://faraday//lib/faraday/response/logger.rb#30 + # source://faraday//lib/faraday/response/logger.rb#32 def on_error(exc); end end +# source://faraday//lib/faraday/response/logger.rb#13 +Faraday::Response::Logger::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) + # RaiseError is a Faraday middleware that raises exceptions on common HTTP # client or server error responses. # @@ -2504,7 +2750,7 @@ Faraday::Response::RaiseError::ServerErrorStatuses = T.let(T.unsafe(nil), Range) # A unified client error for SSL errors. # -# source://faraday//lib/faraday/error.rb#155 +# source://faraday//lib/faraday/error.rb#189 class Faraday::SSLError < ::Faraday::Error; end # SSL-related options. @@ -2512,149 +2758,222 @@ class Faraday::SSLError < ::Faraday::Error; end # source://faraday//lib/faraday/options/ssl_options.rb#56 class Faraday::SSLOptions < ::Faraday::Options # @return [String] CA file + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def ca_file; end # @return [String] CA file + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def ca_file=(_); end # @return [String] CA path + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def ca_path; end # @return [String] CA path + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def ca_path=(_); end # @return [OpenSSL::X509::Store] certificate store + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def cert_store; end # @return [OpenSSL::X509::Store] certificate store + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def cert_store=(_); end # @return [OpenSSL::X509::Certificate] certificate (Excon only) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def certificate; end # @return [OpenSSL::X509::Certificate] certificate (Excon only) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def certificate=(_); end # @return [String] cipher list in OpenSSL format (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def ciphers; end # @return [String] cipher list in OpenSSL format (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def ciphers=(_); end # @return [String, OpenSSL::X509::Certificate] client certificate + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def client_cert; end # @return [String, OpenSSL::X509::Certificate] client certificate + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def client_cert=(_); end # @return [String, OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] client key + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def client_key; end # @return [String, OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] client key + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def client_key=(_); end # source://faraday//lib/faraday/options/ssl_options.rb#67 def disable?; end # @return [String] Server hostname used for SNI (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLSocket.html#method-i-hostname-3D) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def hostname; end # @return [String] Server hostname used for SNI (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLSocket.html#method-i-hostname-3D) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def hostname=(_); end # @return [String, Symbol] maximum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def max_version; end # @return [String, Symbol] maximum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def max_version=(_); end # @return [String, Symbol] minimum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def min_version; end # @return [String, Symbol] minimum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def min_version=(_); end # @return [OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] private key (Excon only) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def private_key; end # @return [OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] private key (Excon only) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def private_key=(_); end # @return [Boolean] whether to verify SSL certificates or not + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def verify; end # @return [Boolean] whether to verify SSL certificates or not + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def verify=(_); end # source://faraday//lib/faraday/options/ssl_options.rb#62 def verify?; end # @return [Integer] maximum depth for the certificate chain verification + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def verify_depth; end # @return [Integer] maximum depth for the certificate chain verification + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def verify_depth=(_); end # @return [Boolean] whether to enable hostname verification on server certificates # during the handshake or not (see https://github.com/ruby/openssl/pull/60) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def verify_hostname; end # @return [Boolean] whether to enable hostname verification on server certificates # during the handshake or not (see https://github.com/ruby/openssl/pull/60) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def verify_hostname=(_); end # source://faraday//lib/faraday/options/ssl_options.rb#72 def verify_hostname?; end # @return [Integer] Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def verify_mode; end # @return [Integer] Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def verify_mode=(_); end # @return [String, Symbol] SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def version; end # @return [String, Symbol] SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D) + # + # source://faraday//lib/faraday/options/ssl_options.rb#56 def version=(_); end class << self + # source://faraday//lib/faraday/options/ssl_options.rb#56 def [](*_arg0); end + + # source://faraday//lib/faraday/options/ssl_options.rb#56 def inspect; end + + # source://faraday//lib/faraday/options/ssl_options.rb#56 def keyword_init?; end + + # source://faraday//lib/faraday/options/ssl_options.rb#56 def members; end + + # source://faraday//lib/faraday/options/ssl_options.rb#56 def new(*_arg0); end end end # Faraday server error class. Represents 5xx status responses. # -# source://faraday//lib/faraday/error.rb#132 +# source://faraday//lib/faraday/error.rb#166 class Faraday::ServerError < ::Faraday::Error; end # A unified client error for timeouts. # -# source://faraday//lib/faraday/error.rb#136 +# source://faraday//lib/faraday/error.rb#170 class Faraday::TimeoutError < ::Faraday::ServerError # @return [TimeoutError] a new instance of TimeoutError # - # source://faraday//lib/faraday/error.rb#137 + # source://faraday//lib/faraday/error.rb#171 def initialize(exc = T.unsafe(nil), response = T.unsafe(nil)); end end # Raised by Faraday::Response::RaiseError in case of a 429 response. # -# source://faraday//lib/faraday/error.rb#128 +# source://faraday//lib/faraday/error.rb#162 class Faraday::TooManyRequestsError < ::Faraday::ClientError; end # Raised by Faraday::Response::RaiseError in case of a 401 response. # -# source://faraday//lib/faraday/error.rb#100 +# source://faraday//lib/faraday/error.rb#134 class Faraday::UnauthorizedError < ::Faraday::ClientError; end # Raised by Faraday::Response::RaiseError in case of a 422 response. # -# source://faraday//lib/faraday/error.rb#124 +# source://faraday//lib/faraday/error.rb#158 class Faraday::UnprocessableEntityError < ::Faraday::ClientError; end # Utils contains various static helper methods. @@ -2841,7 +3160,7 @@ class Faraday::Utils::Headers < ::Hash # @return [Boolean] # - # source://faraday//lib/faraday/utils/headers.rb#86 + # source://faraday//lib/faraday/utils/headers.rb#90 def has_key?(key); end # @return [Boolean] @@ -2854,12 +3173,12 @@ class Faraday::Utils::Headers < ::Hash # @return [Boolean] # - # source://faraday//lib/faraday/utils/headers.rb#86 + # source://faraday//lib/faraday/utils/headers.rb#92 def key?(key); end # @return [Boolean] # - # source://faraday//lib/faraday/utils/headers.rb#86 + # source://faraday//lib/faraday/utils/headers.rb#91 def member?(key); end # source://faraday//lib/faraday/utils/headers.rb#101 @@ -2877,7 +3196,7 @@ class Faraday::Utils::Headers < ::Hash # source://faraday//lib/faraday/utils/headers.rb#113 def to_hash; end - # source://faraday//lib/faraday/utils/headers.rb#94 + # source://faraday//lib/faraday/utils/headers.rb#99 def update(other); end protected @@ -2928,7 +3247,7 @@ class Faraday::Utils::ParamsHash < ::Hash # @return [Boolean] # - # source://faraday//lib/faraday/utils/params_hash.rb#19 + # source://faraday//lib/faraday/utils/params_hash.rb#23 def has_key?(key); end # @return [Boolean] @@ -2938,18 +3257,18 @@ class Faraday::Utils::ParamsHash < ::Hash # @return [Boolean] # - # source://faraday//lib/faraday/utils/params_hash.rb#19 + # source://faraday//lib/faraday/utils/params_hash.rb#25 def key?(key); end # @return [Boolean] # - # source://faraday//lib/faraday/utils/params_hash.rb#19 + # source://faraday//lib/faraday/utils/params_hash.rb#24 def member?(key); end # source://faraday//lib/faraday/utils/params_hash.rb#35 def merge(params); end - # source://faraday//lib/faraday/utils/params_hash.rb#27 + # source://faraday//lib/faraday/utils/params_hash.rb#33 def merge!(params); end # source://faraday//lib/faraday/utils/params_hash.rb#44 diff --git a/sorbet/rbi/gems/fugit@1.11.1.rbi b/sorbet/rbi/gems/fugit@1.11.2.rbi similarity index 81% rename from sorbet/rbi/gems/fugit@1.11.1.rbi rename to sorbet/rbi/gems/fugit@1.11.2.rbi index 8429982f..751b037a 100644 --- a/sorbet/rbi/gems/fugit@1.11.1.rbi +++ b/sorbet/rbi/gems/fugit@1.11.2.rbi @@ -8,7 +8,7 @@ # source://fugit//lib/fugit.rb#4 module Fugit class << self - # source://fugit//lib/fugit/parse.rb#66 + # source://fugit//lib/fugit/parse.rb#84 def determine_type(s); end # source://fugit//lib/fugit/parse.rb#30 @@ -53,6 +53,9 @@ module Fugit # source://fugit//lib/fugit/parse.rb#11 def parse_in(s); end + # source://fugit//lib/fugit/parse.rb#66 + def parse_max(s, opts = T.unsafe(nil)); end + # source://fugit//lib/fugit/parse.rb#9 def parse_nat(s, opts = T.unsafe(nil)); end @@ -80,7 +83,7 @@ end # source://fugit//lib/fugit/cron.rb#5 class Fugit::Cron - # source://fugit//lib/fugit/cron.rb#502 + # source://fugit//lib/fugit/cron.rb#510 def ==(o); end # Mostly used as a #next_time sanity check. @@ -91,23 +94,23 @@ class Fugit::Cron # # Nota bene: cron with seconds are not supported. # - # source://fugit//lib/fugit/cron.rb#400 + # source://fugit//lib/fugit/cron.rb#408 def brute_frequency(year = T.unsafe(nil)); end # @return [Boolean] # - # source://fugit//lib/fugit/cron.rb#211 + # source://fugit//lib/fugit/cron.rb#219 def day_match?(nt); end - # source://fugit//lib/fugit/cron.rb#502 + # source://fugit//lib/fugit/cron.rb#514 def eql?(o); end - # source://fugit//lib/fugit/cron.rb#508 + # source://fugit//lib/fugit/cron.rb#516 def hash; end # @return [Boolean] # - # source://fugit//lib/fugit/cron.rb#164 + # source://fugit//lib/fugit/cron.rb#172 def hour_match?(nt); end # Returns the value of attribute hours. @@ -117,12 +120,12 @@ class Fugit::Cron # @return [Boolean] # - # source://fugit//lib/fugit/cron.rb#241 + # source://fugit//lib/fugit/cron.rb#249 def match?(t); end # @return [Boolean] # - # source://fugit//lib/fugit/cron.rb#165 + # source://fugit//lib/fugit/cron.rb#173 def min_match?(nt); end # Returns the value of attribute minutes. @@ -132,12 +135,12 @@ class Fugit::Cron # @return [Boolean] # - # source://fugit//lib/fugit/cron.rb#163 + # source://fugit//lib/fugit/cron.rb#171 def month_match?(nt); end # @return [Boolean] # - # source://fugit//lib/fugit/cron.rb#200 + # source://fugit//lib/fugit/cron.rb#208 def monthday_match?(nt); end # Returns the value of attribute monthdays. @@ -153,7 +156,7 @@ class Fugit::Cron # Returns an ::Enumerable instance that yields each "next time" in # succession # - # source://fugit//lib/fugit/cron.rb#365 + # source://fugit//lib/fugit/cron.rb#373 def next(from = T.unsafe(nil)); end # See gh-15 and tst/iteration_count.rb @@ -163,7 +166,7 @@ class Fugit::Cron # gh-18 and noticing some > 1024 for some experiments. 2048 should # be ok. # - # source://fugit//lib/fugit/cron.rb#258 + # source://fugit//lib/fugit/cron.rb#266 def next_time(from = T.unsafe(nil)); end # Returns the value of attribute original. @@ -174,18 +177,18 @@ class Fugit::Cron # Returns an ::Enumerable instance that yields each "previous time" in # succession # - # source://fugit//lib/fugit/cron.rb#373 + # source://fugit//lib/fugit/cron.rb#381 def prev(from = T.unsafe(nil)); end - # source://fugit//lib/fugit/cron.rb#310 + # source://fugit//lib/fugit/cron.rb#318 def previous_time(from = T.unsafe(nil)); end - # source://fugit//lib/fugit/cron.rb#430 + # source://fugit//lib/fugit/cron.rb#438 def rough_frequency; end # @return [Boolean] # - # source://fugit//lib/fugit/cron.rb#166 + # source://fugit//lib/fugit/cron.rb#174 def sec_match?(nt); end # Returns the value of attribute seconds. @@ -198,28 +201,28 @@ class Fugit::Cron # source://fugit//lib/fugit/cron.rb#22 def timezone; end - # source://fugit//lib/fugit/cron.rb#487 + # source://fugit//lib/fugit/cron.rb#495 def to_a; end - # source://fugit//lib/fugit/cron.rb#66 + # source://fugit//lib/fugit/cron.rb#74 def to_cron_s; end - # source://fugit//lib/fugit/cron.rb#492 + # source://fugit//lib/fugit/cron.rb#500 def to_h; end # @return [Boolean] # - # source://fugit//lib/fugit/cron.rb#168 + # source://fugit//lib/fugit/cron.rb#176 def weekday_hash_match?(nt, hsh); end # @return [Boolean] # - # source://fugit//lib/fugit/cron.rb#184 + # source://fugit//lib/fugit/cron.rb#192 def weekday_match?(nt); end # @return [Boolean] # - # source://fugit//lib/fugit/cron.rb#179 + # source://fugit//lib/fugit/cron.rb#187 def weekday_modulo_match?(nt, mod); end # Returns the value of attribute weekdays. @@ -230,7 +233,7 @@ class Fugit::Cron # Returns an array of EtOrbi::EoTime instances that correspond to # the occurrences of the cron within the given time range # - # source://fugit//lib/fugit/cron.rb#381 + # source://fugit//lib/fugit/cron.rb#389 def within(time_range, time_end = T.unsafe(nil)); end # Returns the value of attribute zone. @@ -240,50 +243,50 @@ class Fugit::Cron protected - # source://fugit//lib/fugit/cron.rb#515 + # source://fugit//lib/fugit/cron.rb#523 def compact_month_days; end - # source://fugit//lib/fugit/cron.rb#669 + # source://fugit//lib/fugit/cron.rb#677 def determine_hours(arr); end - # source://fugit//lib/fugit/cron.rb#665 + # source://fugit//lib/fugit/cron.rb#673 def determine_minutes(arr); end - # source://fugit//lib/fugit/cron.rb#673 + # source://fugit//lib/fugit/cron.rb#681 def determine_monthdays(arr); end - # source://fugit//lib/fugit/cron.rb#677 + # source://fugit//lib/fugit/cron.rb#685 def determine_months(arr); end - # source://fugit//lib/fugit/cron.rb#661 + # source://fugit//lib/fugit/cron.rb#669 def determine_seconds(arr); end - # source://fugit//lib/fugit/cron.rb#708 + # source://fugit//lib/fugit/cron.rb#716 def determine_timezone(z); end - # source://fugit//lib/fugit/cron.rb#681 + # source://fugit//lib/fugit/cron.rb#689 def determine_weekdays(arr); end - # source://fugit//lib/fugit/cron.rb#644 + # source://fugit//lib/fugit/cron.rb#652 def do_determine(key, arr, min, max); end - # source://fugit//lib/fugit/cron.rb#581 + # source://fugit//lib/fugit/cron.rb#589 def expand(min, max, r); end - # source://fugit//lib/fugit/cron.rb#558 + # source://fugit//lib/fugit/cron.rb#566 def init(original, h); end - # source://fugit//lib/fugit/cron.rb#602 + # source://fugit//lib/fugit/cron.rb#610 def range(min, max, sta, edn, sla); end - # source://fugit//lib/fugit/cron.rb#531 + # source://fugit//lib/fugit/cron.rb#539 def rough_days; end - # source://fugit//lib/fugit/cron.rb#715 + # source://fugit//lib/fugit/cron.rb#723 def weekdays_to_cron_s; end class << self - # source://fugit//lib/fugit/cron.rb#46 + # source://fugit//lib/fugit/cron.rb#54 def do_parse(s); end # source://fugit//lib/fugit/cron.rb#27 @@ -294,421 +297,421 @@ class Fugit::Cron protected - # source://fugit//lib/fugit/cron.rb#54 + # source://fugit//lib/fugit/cron.rb#62 def trunc(s); end end end # Used by Fugit::Cron#next and Fugit::Cron#prev # -# source://fugit//lib/fugit/cron.rb#340 +# source://fugit//lib/fugit/cron.rb#348 class Fugit::Cron::CronIterator include ::Enumerable # @return [CronIterator] a new instance of CronIterator # - # source://fugit//lib/fugit/cron.rb#345 + # source://fugit//lib/fugit/cron.rb#353 def initialize(cron, direction, start); end # Returns the value of attribute cron. # - # source://fugit//lib/fugit/cron.rb#343 + # source://fugit//lib/fugit/cron.rb#351 def cron; end # Returns the value of attribute current. # - # source://fugit//lib/fugit/cron.rb#343 + # source://fugit//lib/fugit/cron.rb#351 def current; end # Returns the value of attribute direction. # - # source://fugit//lib/fugit/cron.rb#343 + # source://fugit//lib/fugit/cron.rb#351 def direction; end - # source://fugit//lib/fugit/cron.rb#353 + # source://fugit//lib/fugit/cron.rb#361 def each; end # Returns the value of attribute start. # - # source://fugit//lib/fugit/cron.rb#343 + # source://fugit//lib/fugit/cron.rb#351 def start; end end -# source://fugit//lib/fugit/cron.rb#556 +# source://fugit//lib/fugit/cron.rb#564 Fugit::Cron::FREQUENCY_CACHE = T.let(T.unsafe(nil), Hash) -# source://fugit//lib/fugit/cron.rb#459 +# source://fugit//lib/fugit/cron.rb#467 class Fugit::Cron::Frequency # @return [Frequency] a new instance of Frequency # - # source://fugit//lib/fugit/cron.rb#464 + # source://fugit//lib/fugit/cron.rb#472 def initialize(deltas, span); end # Returns the value of attribute delta_max. # - # source://fugit//lib/fugit/cron.rb#461 + # source://fugit//lib/fugit/cron.rb#469 def delta_max; end # Returns the value of attribute delta_min. # - # source://fugit//lib/fugit/cron.rb#461 + # source://fugit//lib/fugit/cron.rb#469 def delta_min; end # Returns the value of attribute occurrences. # - # source://fugit//lib/fugit/cron.rb#461 + # source://fugit//lib/fugit/cron.rb#469 def occurrences; end # Returns the value of attribute span. # - # source://fugit//lib/fugit/cron.rb#461 + # source://fugit//lib/fugit/cron.rb#469 def span; end # Returns the value of attribute span_years. # - # source://fugit//lib/fugit/cron.rb#462 + # source://fugit//lib/fugit/cron.rb#470 def span_years; end - # source://fugit//lib/fugit/cron.rb#474 + # source://fugit//lib/fugit/cron.rb#482 def to_debug_s; end # Returns the value of attribute yearly_occurrences. # - # source://fugit//lib/fugit/cron.rb#462 + # source://fugit//lib/fugit/cron.rb#470 def yearly_occurrences; end end # source://fugit//lib/fugit/cron.rb#17 Fugit::Cron::MAXDAYS = T.let(T.unsafe(nil), Array) -# source://fugit//lib/fugit/cron.rb#249 +# source://fugit//lib/fugit/cron.rb#257 Fugit::Cron::MAX_ITERATION_COUNT = T.let(T.unsafe(nil), Integer) -# source://fugit//lib/fugit/cron.rb#733 +# source://fugit//lib/fugit/cron.rb#741 module Fugit::Cron::Parser include ::Raabro extend ::Raabro::ModuleMethods extend ::Raabro extend ::Fugit::Cron::Parser - # source://fugit//lib/fugit/cron.rb#769 + # source://fugit//lib/fugit/cron.rb#777 def _dom(i); end - # source://fugit//lib/fugit/cron.rb#771 + # source://fugit//lib/fugit/cron.rb#779 def _dow(i); end - # source://fugit//lib/fugit/cron.rb#768 + # source://fugit//lib/fugit/cron.rb#776 def _hou(i); end - # source://fugit//lib/fugit/cron.rb#770 + # source://fugit//lib/fugit/cron.rb#778 def _mon(i); end - # source://fugit//lib/fugit/cron.rb#767 + # source://fugit//lib/fugit/cron.rb#775 def _mos(i); end - # source://fugit//lib/fugit/cron.rb#828 + # source://fugit//lib/fugit/cron.rb#836 def _tz(i); end - # source://fugit//lib/fugit/cron.rb#825 + # source://fugit//lib/fugit/cron.rb#833 def _tz_delta(i); end - # source://fugit//lib/fugit/cron.rb#822 + # source://fugit//lib/fugit/cron.rb#830 def _tz_name(i); end # @return [Boolean] # - # source://fugit//lib/fugit/cron.rb#755 + # source://fugit//lib/fugit/cron.rb#763 def and?(i); end - # source://fugit//lib/fugit/cron.rb#830 + # source://fugit//lib/fugit/cron.rb#838 def classic_cron(i); end - # source://fugit//lib/fugit/cron.rb#753 + # source://fugit//lib/fugit/cron.rb#761 def comma(i); end # @return [Boolean] # - # source://fugit//lib/fugit/cron.rb#754 + # source://fugit//lib/fugit/cron.rb#762 def comma?(i); end - # source://fugit//lib/fugit/cron.rb#839 + # source://fugit//lib/fugit/cron.rb#847 def cron(i); end - # source://fugit//lib/fugit/cron.rb#761 + # source://fugit//lib/fugit/cron.rb#769 def dom(i); end - # source://fugit//lib/fugit/cron.rb#797 + # source://fugit//lib/fugit/cron.rb#805 def dom_elt(i); end - # source://fugit//lib/fugit/cron.rb#763 + # source://fugit//lib/fugit/cron.rb#771 def dow(i); end - # source://fugit//lib/fugit/cron.rb#799 + # source://fugit//lib/fugit/cron.rb#807 def dow_elt(i); end - # source://fugit//lib/fugit/cron.rb#806 + # source://fugit//lib/fugit/cron.rb#814 def dow_elt_(i); end - # source://fugit//lib/fugit/cron.rb#765 + # source://fugit//lib/fugit/cron.rb#773 def dow_hash(i); end - # source://fugit//lib/fugit/cron.rb#804 + # source://fugit//lib/fugit/cron.rb#812 def h_dow(i); end - # source://fugit//lib/fugit/cron.rb#760 + # source://fugit//lib/fugit/cron.rb#768 def hou(i); end - # source://fugit//lib/fugit/cron.rb#796 + # source://fugit//lib/fugit/cron.rb#804 def hou_elt(i); end - # source://fugit//lib/fugit/cron.rb#752 + # source://fugit//lib/fugit/cron.rb#760 def hyphen(i); end - # source://fugit//lib/fugit/cron.rb#818 + # source://fugit//lib/fugit/cron.rb#826 def ldom_(i); end - # source://fugit//lib/fugit/cron.rb#820 + # source://fugit//lib/fugit/cron.rb#828 def ldow(i); end - # source://fugit//lib/fugit/cron.rb#817 + # source://fugit//lib/fugit/cron.rb#825 def lhou_(i); end - # source://fugit//lib/fugit/cron.rb#811 + # source://fugit//lib/fugit/cron.rb#819 def list_dom(i); end - # source://fugit//lib/fugit/cron.rb#813 + # source://fugit//lib/fugit/cron.rb#821 def list_dow(i); end - # source://fugit//lib/fugit/cron.rb#810 + # source://fugit//lib/fugit/cron.rb#818 def list_hou(i); end - # source://fugit//lib/fugit/cron.rb#809 + # source://fugit//lib/fugit/cron.rb#817 def list_min(i); end - # source://fugit//lib/fugit/cron.rb#812 + # source://fugit//lib/fugit/cron.rb#820 def list_mon(i); end - # source://fugit//lib/fugit/cron.rb#808 + # source://fugit//lib/fugit/cron.rb#816 def list_sec(i); end - # source://fugit//lib/fugit/cron.rb#816 + # source://fugit//lib/fugit/cron.rb#824 def lmin_(i); end - # source://fugit//lib/fugit/cron.rb#819 + # source://fugit//lib/fugit/cron.rb#827 def lmon_(i); end - # source://fugit//lib/fugit/cron.rb#815 + # source://fugit//lib/fugit/cron.rb#823 def lsec_(i); end - # source://fugit//lib/fugit/cron.rb#801 + # source://fugit//lib/fugit/cron.rb#809 def mod(i); end - # source://fugit//lib/fugit/cron.rb#803 + # source://fugit//lib/fugit/cron.rb#811 def mod_dow(i); end - # source://fugit//lib/fugit/cron.rb#762 + # source://fugit//lib/fugit/cron.rb#770 def mon(i); end - # source://fugit//lib/fugit/cron.rb#798 + # source://fugit//lib/fugit/cron.rb#806 def mon_elt(i); end # min or sec # - # source://fugit//lib/fugit/cron.rb#759 + # source://fugit//lib/fugit/cron.rb#767 def mos(i); end # ssws: slash or sorws # - # source://fugit//lib/fugit/cron.rb#795 + # source://fugit//lib/fugit/cron.rb#803 def mos_elt(i); end - # source://fugit//lib/fugit/cron.rb#776 + # source://fugit//lib/fugit/cron.rb#784 def r_dom(i); end - # source://fugit//lib/fugit/cron.rb#778 + # source://fugit//lib/fugit/cron.rb#786 def r_dow(i); end - # source://fugit//lib/fugit/cron.rb#775 + # source://fugit//lib/fugit/cron.rb#783 def r_hou(i); end - # source://fugit//lib/fugit/cron.rb#777 + # source://fugit//lib/fugit/cron.rb#785 def r_mon(i); end # r: range # - # source://fugit//lib/fugit/cron.rb#774 + # source://fugit//lib/fugit/cron.rb#782 def r_mos(i); end # rewriting the parsed tree # - # source://fugit//lib/fugit/cron.rb#845 + # source://fugit//lib/fugit/cron.rb#853 def rewrite_bound(k, t); end - # source://fugit//lib/fugit/cron.rb#906 + # source://fugit//lib/fugit/cron.rb#914 def rewrite_cron(t); end - # source://fugit//lib/fugit/cron.rb#863 + # source://fugit//lib/fugit/cron.rb#871 def rewrite_elt(k, t); end - # source://fugit//lib/fugit/cron.rb#891 + # source://fugit//lib/fugit/cron.rb#899 def rewrite_entry(t); end - # source://fugit//lib/fugit/cron.rb#855 + # source://fugit//lib/fugit/cron.rb#863 def rewrite_mod(k, t); end - # source://fugit//lib/fugit/cron.rb#898 + # source://fugit//lib/fugit/cron.rb#906 def rewrite_tz(t); end # piece parsers bottom to top # - # source://fugit//lib/fugit/cron.rb#750 + # source://fugit//lib/fugit/cron.rb#758 def s(i); end - # source://fugit//lib/fugit/cron.rb#834 + # source://fugit//lib/fugit/cron.rb#842 def second_cron(i); end - # source://fugit//lib/fugit/cron.rb#757 + # source://fugit//lib/fugit/cron.rb#765 def slash(i); end - # source://fugit//lib/fugit/cron.rb#783 + # source://fugit//lib/fugit/cron.rb#791 def sor_dom(i); end - # source://fugit//lib/fugit/cron.rb#785 + # source://fugit//lib/fugit/cron.rb#793 def sor_dow(i); end - # source://fugit//lib/fugit/cron.rb#782 + # source://fugit//lib/fugit/cron.rb#790 def sor_hou(i); end - # source://fugit//lib/fugit/cron.rb#784 + # source://fugit//lib/fugit/cron.rb#792 def sor_mon(i); end # sor: star or range # - # source://fugit//lib/fugit/cron.rb#781 + # source://fugit//lib/fugit/cron.rb#789 def sor_mos(i); end - # source://fugit//lib/fugit/cron.rb#790 + # source://fugit//lib/fugit/cron.rb#798 def sorws_dom(i); end - # source://fugit//lib/fugit/cron.rb#792 + # source://fugit//lib/fugit/cron.rb#800 def sorws_dow(i); end - # source://fugit//lib/fugit/cron.rb#789 + # source://fugit//lib/fugit/cron.rb#797 def sorws_hou(i); end - # source://fugit//lib/fugit/cron.rb#791 + # source://fugit//lib/fugit/cron.rb#799 def sorws_mon(i); end # sorws: star or range with[out] slash # - # source://fugit//lib/fugit/cron.rb#788 + # source://fugit//lib/fugit/cron.rb#796 def sorws_mos(i); end - # source://fugit//lib/fugit/cron.rb#751 + # source://fugit//lib/fugit/cron.rb#759 def star(i); end end -# source://fugit//lib/fugit/cron.rb#740 +# source://fugit//lib/fugit/cron.rb#748 Fugit::Cron::Parser::DOW_REX = T.let(T.unsafe(nil), Regexp) -# source://fugit//lib/fugit/cron.rb#743 +# source://fugit//lib/fugit/cron.rb#751 Fugit::Cron::Parser::MONTHS = T.let(T.unsafe(nil), Array) -# source://fugit//lib/fugit/cron.rb#745 +# source://fugit//lib/fugit/cron.rb#753 Fugit::Cron::Parser::MONTH_REX = T.let(T.unsafe(nil), Regexp) -# source://fugit//lib/fugit/cron.rb#735 +# source://fugit//lib/fugit/cron.rb#743 Fugit::Cron::Parser::WEEKDAYS = T.let(T.unsafe(nil), Array) -# source://fugit//lib/fugit/cron.rb#738 +# source://fugit//lib/fugit/cron.rb#746 Fugit::Cron::Parser::WEEKDS = T.let(T.unsafe(nil), Array) -# source://fugit//lib/fugit/cron.rb#424 +# source://fugit//lib/fugit/cron.rb#432 Fugit::Cron::SLOTS = T.let(T.unsafe(nil), Array) # source://fugit//lib/fugit/cron.rb#7 Fugit::Cron::SPECIALS = T.let(T.unsafe(nil), Hash) -# source://fugit//lib/fugit/cron.rb#79 +# source://fugit//lib/fugit/cron.rb#87 class Fugit::Cron::TimeCursor # @return [TimeCursor] a new instance of TimeCursor # - # source://fugit//lib/fugit/cron.rb#81 + # source://fugit//lib/fugit/cron.rb#89 def initialize(cron, t); end - # source://fugit//lib/fugit/cron.rb#93 + # source://fugit//lib/fugit/cron.rb#101 def day; end - # source://fugit//lib/fugit/cron.rb#96 + # source://fugit//lib/fugit/cron.rb#104 def dec(i); end - # source://fugit//lib/fugit/cron.rb#145 + # source://fugit//lib/fugit/cron.rb#153 def dec_day; end - # source://fugit//lib/fugit/cron.rb#148 + # source://fugit//lib/fugit/cron.rb#156 def dec_hour; end - # source://fugit//lib/fugit/cron.rb#151 + # source://fugit//lib/fugit/cron.rb#159 def dec_min; end - # source://fugit//lib/fugit/cron.rb#141 + # source://fugit//lib/fugit/cron.rb#149 def dec_month; end - # source://fugit//lib/fugit/cron.rb#155 + # source://fugit//lib/fugit/cron.rb#163 def dec_sec; end - # source://fugit//lib/fugit/cron.rb#93 + # source://fugit//lib/fugit/cron.rb#101 def hour; end - # source://fugit//lib/fugit/cron.rb#95 + # source://fugit//lib/fugit/cron.rb#103 def inc(i); end - # source://fugit//lib/fugit/cron.rb#109 + # source://fugit//lib/fugit/cron.rb#117 def inc_day; end - # source://fugit//lib/fugit/cron.rb#126 + # source://fugit//lib/fugit/cron.rb#134 def inc_hour; end - # source://fugit//lib/fugit/cron.rb#129 + # source://fugit//lib/fugit/cron.rb#137 def inc_min; end - # source://fugit//lib/fugit/cron.rb#98 + # source://fugit//lib/fugit/cron.rb#106 def inc_month; end - # source://fugit//lib/fugit/cron.rb#133 + # source://fugit//lib/fugit/cron.rb#141 def inc_sec; end - # source://fugit//lib/fugit/cron.rb#93 + # source://fugit//lib/fugit/cron.rb#101 def min; end - # source://fugit//lib/fugit/cron.rb#93 + # source://fugit//lib/fugit/cron.rb#101 def month; end - # source://fugit//lib/fugit/cron.rb#93 + # source://fugit//lib/fugit/cron.rb#101 def rday; end - # source://fugit//lib/fugit/cron.rb#93 + # source://fugit//lib/fugit/cron.rb#101 def rweek; end - # source://fugit//lib/fugit/cron.rb#93 + # source://fugit//lib/fugit/cron.rb#101 def sec; end - # source://fugit//lib/fugit/cron.rb#87 + # source://fugit//lib/fugit/cron.rb#95 def time; end - # source://fugit//lib/fugit/cron.rb#90 + # source://fugit//lib/fugit/cron.rb#98 def to_i; end - # source://fugit//lib/fugit/cron.rb#88 + # source://fugit//lib/fugit/cron.rb#96 def to_t; end - # source://fugit//lib/fugit/cron.rb#93 + # source://fugit//lib/fugit/cron.rb#101 def wday; end - # source://fugit//lib/fugit/cron.rb#93 + # source://fugit//lib/fugit/cron.rb#101 def wday_in_month; end - # source://fugit//lib/fugit/cron.rb#93 + # source://fugit//lib/fugit/cron.rb#101 def year; end end @@ -717,39 +720,39 @@ Fugit::DAY_S = T.let(T.unsafe(nil), Integer) # source://fugit//lib/fugit/duration.rb#5 class Fugit::Duration - # source://fugit//lib/fugit/duration.rb#255 + # source://fugit//lib/fugit/duration.rb#275 def +(a); end - # source://fugit//lib/fugit/duration.rb#268 + # source://fugit//lib/fugit/duration.rb#288 def -(a); end - # source://fugit//lib/fugit/duration.rb#199 + # source://fugit//lib/fugit/duration.rb#215 def -@; end - # source://fugit//lib/fugit/duration.rb#281 + # source://fugit//lib/fugit/duration.rb#290 def ==(o); end - # source://fugit//lib/fugit/duration.rb#255 + # source://fugit//lib/fugit/duration.rb#264 def add(a); end - # source://fugit//lib/fugit/duration.rb#216 + # source://fugit//lib/fugit/duration.rb#225 def add_duration(d); end - # source://fugit//lib/fugit/duration.rb#208 + # source://fugit//lib/fugit/duration.rb#217 def add_numeric(n); end - # source://fugit//lib/fugit/duration.rb#223 + # source://fugit//lib/fugit/duration.rb#232 def add_to_time(t); end - # source://fugit//lib/fugit/duration.rb#163 + # source://fugit//lib/fugit/duration.rb#172 def deflate(options = T.unsafe(nil)); end # Returns a copy of this duration, omitting its seconds. # - # source://fugit//lib/fugit/duration.rb#299 + # source://fugit//lib/fugit/duration.rb#308 def drop_seconds; end - # source://fugit//lib/fugit/duration.rb#281 + # source://fugit//lib/fugit/duration.rb#294 def eql?(o); end # Returns the value of attribute h. @@ -757,16 +760,16 @@ class Fugit::Duration # source://fugit//lib/fugit/duration.rb#7 def h; end - # source://fugit//lib/fugit/duration.rb#287 + # source://fugit//lib/fugit/duration.rb#296 def hash; end - # source://fugit//lib/fugit/duration.rb#143 + # source://fugit//lib/fugit/duration.rb#152 def inflate; end - # source://fugit//lib/fugit/duration.rb#292 + # source://fugit//lib/fugit/duration.rb#301 def next_time(from = T.unsafe(nil)); end - # source://fugit//lib/fugit/duration.rb#199 + # source://fugit//lib/fugit/duration.rb#208 def opposite; end # Returns the value of attribute options. @@ -779,41 +782,41 @@ class Fugit::Duration # source://fugit//lib/fugit/duration.rb#7 def original; end - # source://fugit//lib/fugit/duration.rb#268 + # source://fugit//lib/fugit/duration.rb#277 def subtract(a); end # For now, let's alias to #h # - # source://fugit//lib/fugit/duration.rb#128 + # source://fugit//lib/fugit/duration.rb#137 def to_h; end - # source://fugit//lib/fugit/duration.rb#90 + # source://fugit//lib/fugit/duration.rb#99 def to_iso_s; end - # source://fugit//lib/fugit/duration.rb#109 + # source://fugit//lib/fugit/duration.rb#118 def to_long_s(opts = T.unsafe(nil)); end - # source://fugit//lib/fugit/duration.rb#87 + # source://fugit//lib/fugit/duration.rb#96 def to_plain_s; end - # source://fugit//lib/fugit/duration.rb#130 + # source://fugit//lib/fugit/duration.rb#139 def to_rufus_h; end - # source://fugit//lib/fugit/duration.rb#88 + # source://fugit//lib/fugit/duration.rb#97 def to_rufus_s; end # Warning: this is an "approximation", months are 30 days and years are # 365 days, ... # - # source://fugit//lib/fugit/duration.rb#138 + # source://fugit//lib/fugit/duration.rb#147 def to_sec; end protected - # source://fugit//lib/fugit/duration.rb#76 + # source://fugit//lib/fugit/duration.rb#85 def _to_s(key); end - # source://fugit//lib/fugit/duration.rb#310 + # source://fugit//lib/fugit/duration.rb#319 def init(original, options, h); end class << self @@ -840,138 +843,138 @@ class Fugit::Duration end end -# source://fugit//lib/fugit/duration.rb#72 +# source://fugit//lib/fugit/duration.rb#80 Fugit::Duration::INFLA_KEYS = T.let(T.unsafe(nil), Array) -# source://fugit//lib/fugit/duration.rb#374 +# source://fugit//lib/fugit/duration.rb#383 module Fugit::Duration::IsoParser include ::Raabro extend ::Raabro::ModuleMethods extend ::Raabro extend ::Fugit::Duration::IsoParser - # source://fugit//lib/fugit/duration.rb#392 + # source://fugit//lib/fugit/duration.rb#401 def date(i); end - # source://fugit//lib/fugit/duration.rb#384 + # source://fugit//lib/fugit/duration.rb#393 def day(i); end - # source://fugit//lib/fugit/duration.rb#389 + # source://fugit//lib/fugit/duration.rb#398 def delt(i); end - # source://fugit//lib/fugit/duration.rb#396 + # source://fugit//lib/fugit/duration.rb#405 def dur(i); end - # source://fugit//lib/fugit/duration.rb#385 + # source://fugit//lib/fugit/duration.rb#394 def hou(i); end - # source://fugit//lib/fugit/duration.rb#386 + # source://fugit//lib/fugit/duration.rb#395 def min(i); end - # source://fugit//lib/fugit/duration.rb#382 + # source://fugit//lib/fugit/duration.rb#391 def mon(i); end # piece parsers bottom to top # - # source://fugit//lib/fugit/duration.rb#378 + # source://fugit//lib/fugit/duration.rb#387 def p(i); end # rewrite parsed tree # - # source://fugit//lib/fugit/duration.rb#400 + # source://fugit//lib/fugit/duration.rb#409 def rewrite_dur(t); end - # source://fugit//lib/fugit/duration.rb#387 + # source://fugit//lib/fugit/duration.rb#396 def sec(i); end - # source://fugit//lib/fugit/duration.rb#379 + # source://fugit//lib/fugit/duration.rb#388 def t(i); end - # source://fugit//lib/fugit/duration.rb#394 + # source://fugit//lib/fugit/duration.rb#403 def t_time(i); end - # source://fugit//lib/fugit/duration.rb#390 + # source://fugit//lib/fugit/duration.rb#399 def telt(i); end - # source://fugit//lib/fugit/duration.rb#393 + # source://fugit//lib/fugit/duration.rb#402 def time(i); end - # source://fugit//lib/fugit/duration.rb#383 + # source://fugit//lib/fugit/duration.rb#392 def wee(i); end - # source://fugit//lib/fugit/duration.rb#381 + # source://fugit//lib/fugit/duration.rb#390 def yea(i); end end # source://fugit//lib/fugit/duration.rb#63 Fugit::Duration::KEYS = T.let(T.unsafe(nil), Hash) -# source://fugit//lib/fugit/duration.rb#72 +# source://fugit//lib/fugit/duration.rb#81 Fugit::Duration::NON_INFLA_KEYS = T.let(T.unsafe(nil), Array) -# source://fugit//lib/fugit/duration.rb#325 +# source://fugit//lib/fugit/duration.rb#334 module Fugit::Duration::Parser include ::Raabro extend ::Raabro::ModuleMethods extend ::Raabro extend ::Fugit::Duration::Parser - # source://fugit//lib/fugit/duration.rb#334 + # source://fugit//lib/fugit/duration.rb#343 def day(i); end - # source://fugit//lib/fugit/duration.rb#346 + # source://fugit//lib/fugit/duration.rb#355 def dur(i); end - # source://fugit//lib/fugit/duration.rb#341 + # source://fugit//lib/fugit/duration.rb#350 def elt(i); end - # source://fugit//lib/fugit/duration.rb#335 + # source://fugit//lib/fugit/duration.rb#344 def hou(i); end # rewrite parsed tree # - # source://fugit//lib/fugit/duration.rb#350 + # source://fugit//lib/fugit/duration.rb#359 def merge(h0, h1); end - # source://fugit//lib/fugit/duration.rb#336 + # source://fugit//lib/fugit/duration.rb#345 def min(i); end - # source://fugit//lib/fugit/duration.rb#332 + # source://fugit//lib/fugit/duration.rb#341 def mon(i); end - # source://fugit//lib/fugit/duration.rb#367 + # source://fugit//lib/fugit/duration.rb#376 def rewrite_dur(t); end - # source://fugit//lib/fugit/duration.rb#357 + # source://fugit//lib/fugit/duration.rb#366 def rewrite_sdur(t); end - # source://fugit//lib/fugit/duration.rb#344 + # source://fugit//lib/fugit/duration.rb#353 def sdur(i); end - # source://fugit//lib/fugit/duration.rb#338 + # source://fugit//lib/fugit/duration.rb#347 def sec(i); end - # source://fugit//lib/fugit/duration.rb#339 + # source://fugit//lib/fugit/duration.rb#348 def sek(i); end # piece parsers bottom to top # - # source://fugit//lib/fugit/duration.rb#329 + # source://fugit//lib/fugit/duration.rb#338 def sep(i); end - # source://fugit//lib/fugit/duration.rb#342 + # source://fugit//lib/fugit/duration.rb#351 def sign(i); end - # source://fugit//lib/fugit/duration.rb#333 + # source://fugit//lib/fugit/duration.rb#342 def wee(i); end - # source://fugit//lib/fugit/duration.rb#331 + # source://fugit//lib/fugit/duration.rb#340 def yea(i); end end # Round float seconds to 9 decimals when deflating # -# source://fugit//lib/fugit/duration.rb#161 +# source://fugit//lib/fugit/duration.rb#170 Fugit::Duration::SECOND_ROUND = T.let(T.unsafe(nil), Integer) # A natural language set of parsers for fugit. diff --git a/sorbet/rbi/gems/geocoder@1.8.5.rbi b/sorbet/rbi/gems/geocoder@1.8.5.rbi index 804c3300..18145251 100644 --- a/sorbet/rbi/gems/geocoder@1.8.5.rbi +++ b/sorbet/rbi/gems/geocoder@1.8.5.rbi @@ -557,50 +557,123 @@ class Geocoder::Configuration def use_https=(value); end class << self + # source://geocoder//lib/geocoder/configuration.rb#138 def always_raise; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def always_raise=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def api_key; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def api_key=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def basic_auth; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def basic_auth=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def cache; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def cache=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def cache_options; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def cache_options=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def distances; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def distances=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def host; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def host=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def http_headers; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def http_headers=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def http_proxy; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def http_proxy=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def https_proxy; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def https_proxy=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def ip_lookup; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def ip_lookup=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def kernel_logger_level; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def kernel_logger_level=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def language; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def language=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def logger; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def logger=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def lookup; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def lookup=(value); end # source://geocoder//lib/geocoder/configuration.rb#76 def set_defaults; end + # source://geocoder//lib/geocoder/configuration.rb#138 def timeout; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def timeout=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def units; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def units=(value); end + + # source://geocoder//lib/geocoder/configuration.rb#138 def use_https; end + + # source://geocoder//lib/geocoder/configuration.rb#138 def use_https=(value); end private + # source://geocoder//lib/geocoder/configuration.rb#51 def allocate; end + + # source://geocoder//lib/geocoder/configuration.rb#51 def new(*_arg0); end end end @@ -683,7 +756,10 @@ class Geocoder::KernelLogger class << self private + # source://geocoder//lib/geocoder/kernel_logger.rb#3 def allocate; end + + # source://geocoder//lib/geocoder/kernel_logger.rb#3 def new(*_arg0); end end end @@ -710,7 +786,10 @@ class Geocoder::Logger class << self private + # source://geocoder//lib/geocoder/logger.rb#10 def allocate; end + + # source://geocoder//lib/geocoder/logger.rb#10 def new(*_arg0); end end end diff --git a/sorbet/rbi/gems/globalid@1.2.1.rbi b/sorbet/rbi/gems/globalid@1.2.1.rbi index 61fc35e9..46bbb122 100644 --- a/sorbet/rbi/gems/globalid@1.2.1.rbi +++ b/sorbet/rbi/gems/globalid@1.2.1.rbi @@ -26,7 +26,7 @@ class GlobalID # source://globalid//lib/global_id/global_id.rb#42 def deconstruct_keys(*_arg0, **_arg1, &_arg2); end - # source://globalid//lib/global_id/global_id.rb#63 + # source://globalid//lib/global_id/global_id.rb#66 def eql?(other); end # source://globalid//lib/global_id/global_id.rb#48 @@ -126,7 +126,7 @@ module GlobalID::Identification # global_id.modal_id # => "1" # global_id.to_param # => "Z2lkOi8vYm9yZGZvbGlvL1BlcnNvbi8x" # - # source://globalid//lib/global_id/identification.rb#37 + # source://globalid//lib/global_id/identification.rb#40 def to_gid(options = T.unsafe(nil)); end # Returns the Global ID parameter of the model. @@ -206,7 +206,7 @@ module GlobalID::Identification # GlobalID::Locator.locate_signed(signup_person_sgid.to_s, for: 'signup_form') # => # # - # source://globalid//lib/global_id/identification.rb#107 + # source://globalid//lib/global_id/identification.rb#110 def to_sgid(options = T.unsafe(nil)); end # Returns the Signed Global ID parameter. @@ -502,7 +502,7 @@ class SignedGlobalID < ::GlobalID # source://globalid//lib/global_id/signed_global_id.rb#57 def purpose; end - # source://globalid//lib/global_id/signed_global_id.rb#66 + # source://globalid//lib/global_id/signed_global_id.rb#69 def to_param; end # source://globalid//lib/global_id/signed_global_id.rb#66 @@ -597,7 +597,7 @@ class URI::GID < ::URI::Generic # # Read the documentation for +parse+, +create+ and +build+ for more. # - # source://uri/1.0.3/lib/uri/generic.rb#243 + # source://globalid//lib/global_id/uri/gid.rb#28 def app; end # source://globalid//lib/global_id/uri/gid.rb#107 diff --git a/sorbet/rbi/gems/google-apis-core@0.16.0.rbi b/sorbet/rbi/gems/google-apis-core@1.0.1.rbi similarity index 100% rename from sorbet/rbi/gems/google-apis-core@0.16.0.rbi rename to sorbet/rbi/gems/google-apis-core@1.0.1.rbi diff --git a/sorbet/rbi/gems/google-apis-iamcredentials_v1@0.22.0.rbi b/sorbet/rbi/gems/google-apis-iamcredentials_v1@0.24.0.rbi similarity index 100% rename from sorbet/rbi/gems/google-apis-iamcredentials_v1@0.22.0.rbi rename to sorbet/rbi/gems/google-apis-iamcredentials_v1@0.24.0.rbi diff --git a/sorbet/rbi/gems/google-apis-storage_v1@0.51.0.rbi b/sorbet/rbi/gems/google-apis-storage_v1@0.56.0.rbi similarity index 100% rename from sorbet/rbi/gems/google-apis-storage_v1@0.51.0.rbi rename to sorbet/rbi/gems/google-apis-storage_v1@0.56.0.rbi diff --git a/sorbet/rbi/gems/google-cloud-core@1.8.0.rbi b/sorbet/rbi/gems/google-cloud-core@1.8.0.rbi index 1919c61f..fa9b7aa7 100644 --- a/sorbet/rbi/gems/google-cloud-core@1.8.0.rbi +++ b/sorbet/rbi/gems/google-cloud-core@1.8.0.rbi @@ -25,9 +25,6 @@ module Google; end # source://google-cloud-core//lib/google/cloud/config.rb#17 module Google::Cloud - # source://google-cloud-storage/1.55.0/lib/google-cloud-storage.rb#79 - def storage(scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end - class << self # Find all google-cloud-* files for available gems. # @@ -65,9 +62,6 @@ module Google::Cloud # source://google-cloud-core//lib/google/cloud.rb#91 def configure; end - # source://google-cloud-env/2.2.2/lib/google/cloud/env.rb#530 - def env; end - # Initialize toplevel configuration # # @private @@ -106,9 +100,6 @@ module Google::Cloud # # source://google-cloud-core//lib/google/cloud.rb#62 def new(project_id = T.unsafe(nil), credentials = T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil)); end - - # source://google-cloud-storage/1.55.0/lib/google-cloud-storage.rb#142 - def storage(project_id = T.unsafe(nil), credentials = T.unsafe(nil), scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end end end @@ -328,7 +319,7 @@ class Google::Cloud::Config < ::BasicObject # # @return [String] # - # source://google-cloud-core//lib/google/cloud/config.rb#395 + # source://google-cloud-core//lib/google/cloud/config.rb#403 def inspect; end # Implement standard is_a check @@ -361,7 +352,7 @@ class Google::Cloud::Config < ::BasicObject # @param key [Symbol] The key to check for. # @return [boolean] # - # source://google-cloud-core//lib/google/cloud/config.rb#324 + # source://google-cloud-core//lib/google/cloud/config.rb#327 def option?(key); end # Restore the original default value of the given key. @@ -379,7 +370,7 @@ class Google::Cloud::Config < ::BasicObject # @param key [Symbol] The key to check for. # @return [boolean] # - # source://google-cloud-core//lib/google/cloud/config.rb#335 + # source://google-cloud-core//lib/google/cloud/config.rb#338 def respond_to?(key); end # Check if the given key has been explicitly added as a subconfig name. diff --git a/sorbet/rbi/gems/google-cloud-env@2.2.2.rbi b/sorbet/rbi/gems/google-cloud-env@2.3.1.rbi similarity index 97% rename from sorbet/rbi/gems/google-cloud-env@2.2.2.rbi rename to sorbet/rbi/gems/google-cloud-env@2.3.1.rbi index 739e7024..7865fd31 100644 --- a/sorbet/rbi/gems/google-cloud-env@2.2.2.rbi +++ b/sorbet/rbi/gems/google-cloud-env@2.3.1.rbi @@ -14,37 +14,13 @@ module Google; end # # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#20 module Google::Cloud - # source://google-cloud-storage/1.55.0/lib/google-cloud-storage.rb#79 - def storage(scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end - class << self - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#158 - def auto_load_files; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#128 - def auto_load_gems; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#91 - def configure; end - # Returns the global instance of {Google::Cloud::Env}. # # @return [Google::Cloud::Env] # # source://google-cloud-env//lib/google/cloud/env.rb#530 def env; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#103 - def init_configuration; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#142 - def loaded_files; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#62 - def new(project_id = T.unsafe(nil), credentials = T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil)); end - - # source://google-cloud-storage/1.55.0/lib/google-cloud-storage.rb#142 - def storage(project_id = T.unsafe(nil), credentials = T.unsafe(nil), scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end end end @@ -130,7 +106,7 @@ class Google::Cloud::Env # # @return [String, nil] # - # source://google-cloud-env//lib/google/cloud/env.rb#442 + # source://google-cloud-env//lib/google/cloud/env.rb#445 def app_engine_service_name; end # Returns the version of the running App Engine service, or `nil` if the @@ -192,7 +168,7 @@ class Google::Cloud::Env # # @return [boolean] # - # source://google-cloud-env//lib/google/cloud/env.rb#242 + # source://google-cloud-env//lib/google/cloud/env.rb#245 def container_engine?; end # Returns the name of the Kubernetes Engine cluster hosting the @@ -201,7 +177,7 @@ class Google::Cloud::Env # # @return [String, nil] # - # source://google-cloud-env//lib/google/cloud/env.rb#475 + # source://google-cloud-env//lib/google/cloud/env.rb#480 def container_engine_cluster_name; end # Returns the name of the Kubernetes Engine namespace hosting the @@ -210,7 +186,7 @@ class Google::Cloud::Env # # @return [String, nil] # - # source://google-cloud-env//lib/google/cloud/env.rb#489 + # source://google-cloud-env//lib/google/cloud/env.rb#498 def container_engine_namespace_id; end # Assert that the Metadata Server should be present, and wait for a @@ -324,7 +300,7 @@ class Google::Cloud::Env # # @return [String, nil] # - # source://google-cloud-env//lib/google/cloud/env.rb#421 + # source://google-cloud-env//lib/google/cloud/env.rb#424 def knative_service_name; end # Returns the revision of the running Knative service, or `nil` if the @@ -827,21 +803,21 @@ class Google::Cloud::Env::ComputeMetadata # # @private # - # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#808 + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#810 def access_token_lifetime(data); end # Stringify keys in a query hash # # @private # - # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#834 + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#836 def canonicalize_query(query); end # Create and return a new LazyDict cache for the metadata # # @private # - # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#738 + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#740 def create_cache; end # Compute the lifetime of data, given the path and data. Returns the @@ -849,7 +825,7 @@ class Google::Cloud::Env::ComputeMetadata # # @private # - # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#795 + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#797 def determine_data_lifetime(path, data); end # Attempt to determine if we're on GCE (if we haven't previously), and @@ -858,21 +834,21 @@ class Google::Cloud::Env::ComputeMetadata # # @private # - # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#705 + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#707 def gce_check; end # Extract the lifetime of an identity token # # @private # - # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#820 + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#822 def identity_token_lifetime(data); end # Look up the given path, without using the cache. # # @private # - # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#753 + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#755 def internal_lookup(path, query, open_timeout, request_timeout); end # Lookup from overrides and return the result or raise. @@ -881,29 +857,29 @@ class Google::Cloud::Env::ComputeMetadata # # @private # - # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#844 + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#846 def lookup_override(path, query); end # @private # - # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#730 + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#732 def maybe_gae; end # @private # - # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#720 + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#722 def maybe_gcf; end # @private # - # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#725 + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#727 def maybe_gcr; end # Update existence based on a received result # # @private # - # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#778 + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#780 def post_update_existence(success, current_time = T.unsafe(nil)); end end @@ -1124,7 +1100,7 @@ end # # @private # -# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#696 +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#697 Google::Cloud::Env::ComputeMetadata::TOKEN_EXPIRY_BUFFER = T.let(T.unsafe(nil), Integer) # A list of exceptions that are considered transient. They trigger a @@ -1352,7 +1328,7 @@ class Google::Cloud::Env::LazyDict # @raise [Exception] if an error happened while computing the value # @return [Object] the value # - # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#722 + # source://google-cloud-env//lib/google/cloud/env/lazy_value.rb#725 def [](key, *extra_args); end # This method calls {#get} repeatedly until a final result is available @@ -1816,7 +1792,7 @@ end # Error raised when the compute metadata server is expected to be # present in the current environment, but couldn't be contacted. # -# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#860 +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#862 class Google::Cloud::Env::MetadataServerNotResponding < ::StandardError # Create a new MetadataServerNotResponding. # @@ -1824,7 +1800,7 @@ class Google::Cloud::Env::MetadataServerNotResponding < ::StandardError # {DEFAULT_MESSAGE}. # @return [MetadataServerNotResponding] a new instance of MetadataServerNotResponding # - # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#877 + # source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#879 def initialize(message = T.unsafe(nil)); end end @@ -1832,7 +1808,7 @@ end # # @return [String] # -# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#865 +# source://google-cloud-env//lib/google/cloud/env/compute_metadata.rb#867 Google::Cloud::Env::MetadataServerNotResponding::DEFAULT_MESSAGE = T.let(T.unsafe(nil), String) # A simple retry manager with optional delay and backoff. It retries @@ -1985,7 +1961,7 @@ class Google::Cloud::Env::Variables # @param key [String] # @return [String, nil] # - # source://google-cloud-env//lib/google/cloud/env/variables.rb#43 + # source://google-cloud-env//lib/google/cloud/env/variables.rb#46 def get(key); end # Run the given block with the backing data replaced with the given diff --git a/sorbet/rbi/gems/google-cloud-errors@1.5.0.rbi b/sorbet/rbi/gems/google-cloud-errors@1.5.0.rbi index 13d5f132..1ee4283f 100644 --- a/sorbet/rbi/gems/google-cloud-errors@1.5.0.rbi +++ b/sorbet/rbi/gems/google-cloud-errors@1.5.0.rbi @@ -9,36 +9,7 @@ module Google; end # source://google-cloud-errors//lib/google/cloud/errors.rb#19 -module Google::Cloud - # source://google-cloud-storage/1.55.0/lib/google-cloud-storage.rb#79 - def storage(scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end - - class << self - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#158 - def auto_load_files; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#128 - def auto_load_gems; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#91 - def configure; end - - # source://google-cloud-env/2.2.2/lib/google/cloud/env.rb#530 - def env; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#103 - def init_configuration; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#142 - def loaded_files; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#62 - def new(project_id = T.unsafe(nil), credentials = T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil)); end - - # source://google-cloud-storage/1.55.0/lib/google-cloud-storage.rb#142 - def storage(project_id = T.unsafe(nil), credentials = T.unsafe(nil), scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end - end -end +module Google::Cloud; end # Aborted indicates the operation was aborted, typically due to a # concurrency issue like sequencer check failures, transaction aborts, diff --git a/sorbet/rbi/gems/google-cloud-storage@1.55.0.rbi b/sorbet/rbi/gems/google-cloud-storage@1.57.0.rbi similarity index 89% rename from sorbet/rbi/gems/google-cloud-storage@1.55.0.rbi rename to sorbet/rbi/gems/google-cloud-storage@1.57.0.rbi index 26d2f23f..bb2e4825 100644 --- a/sorbet/rbi/gems/google-cloud-storage@1.55.0.rbi +++ b/sorbet/rbi/gems/google-cloud-storage@1.57.0.rbi @@ -60,27 +60,6 @@ module Google::Cloud def storage(scope: T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil), open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), send_timeout: T.unsafe(nil), max_elapsed_time: T.unsafe(nil), base_interval: T.unsafe(nil), max_interval: T.unsafe(nil), multiplier: T.unsafe(nil), upload_chunk_size: T.unsafe(nil)); end class << self - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#158 - def auto_load_files; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#128 - def auto_load_gems; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#91 - def configure; end - - # source://google-cloud-env/2.2.2/lib/google/cloud/env.rb#530 - def env; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#103 - def init_configuration; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#142 - def loaded_files; end - - # source://google-cloud-core/1.8.0/lib/google/cloud.rb#62 - def new(project_id = T.unsafe(nil), credentials = T.unsafe(nil), retries: T.unsafe(nil), timeout: T.unsafe(nil)); end - # Creates a new object for connecting to the Storage service. # Each call creates a new connection. # diff --git a/sorbet/rbi/gems/google-logging-utils@0.1.0.rbi b/sorbet/rbi/gems/google-logging-utils@0.2.0.rbi similarity index 99% rename from sorbet/rbi/gems/google-logging-utils@0.1.0.rbi rename to sorbet/rbi/gems/google-logging-utils@0.2.0.rbi index 8777018a..109cbbd1 100644 --- a/sorbet/rbi/gems/google-logging-utils@0.1.0.rbi +++ b/sorbet/rbi/gems/google-logging-utils@0.2.0.rbi @@ -63,7 +63,7 @@ class Google::Logging::Message # @private # - # source://google-logging-utils//lib/google/logging/message.rb#200 + # source://google-logging-utils//lib/google/logging/message.rb#212 def eql?(other); end # @return [Hash{String=>Object}, nil] The log message as a set of @@ -92,7 +92,7 @@ class Google::Logging::Message # @return [String] A full string representation of the message and fields # as rendered in the standard logger formatter. # - # source://google-logging-utils//lib/google/logging/message.rb#130 + # source://google-logging-utils//lib/google/logging/message.rb#131 def inspect; end # @return [Hash{String=>String}, nil] Metadata, or nil if not present. @@ -135,7 +135,7 @@ class Google::Logging::Message # nonempty string, and can be reliably used as the "display" of this # log entry in a list of entries. # - # source://google-logging-utils//lib/google/logging/message.rb#123 + # source://google-logging-utils//lib/google/logging/message.rb#124 def to_s; end # @return [String, nil] The Google Cloud Trace resource name, or nil if @@ -153,33 +153,33 @@ class Google::Logging::Message # @return [true, false, nil] Whether this trace is sampled, or nil if not # present or known. # - # source://google-logging-utils//lib/google/logging/message.rb#173 + # source://google-logging-utils//lib/google/logging/message.rb#174 def trace_sampled?; end private - # source://google-logging-utils//lib/google/logging/message.rb#297 + # source://google-logging-utils//lib/google/logging/message.rb#298 def interpret_boolean(input); end - # source://google-logging-utils//lib/google/logging/message.rb#230 + # source://google-logging-utils//lib/google/logging/message.rb#231 def interpret_fields(fields); end - # source://google-logging-utils//lib/google/logging/message.rb#302 + # source://google-logging-utils//lib/google/logging/message.rb#303 def interpret_labels(input); end - # source://google-logging-utils//lib/google/logging/message.rb#260 + # source://google-logging-utils//lib/google/logging/message.rb#261 def interpret_message(message, fields); end - # source://google-logging-utils//lib/google/logging/message.rb#282 + # source://google-logging-utils//lib/google/logging/message.rb#283 def interpret_source_location(source_location); end - # source://google-logging-utils//lib/google/logging/message.rb#293 + # source://google-logging-utils//lib/google/logging/message.rb#294 def interpret_string(input); end - # source://google-logging-utils//lib/google/logging/message.rb#271 + # source://google-logging-utils//lib/google/logging/message.rb#272 def interpret_timestamp(timestamp); end - # source://google-logging-utils//lib/google/logging/message.rb#241 + # source://google-logging-utils//lib/google/logging/message.rb#242 def normalize_json(input); end class << self @@ -226,7 +226,7 @@ class Google::Logging::SourceLocation # @private # - # source://google-logging-utils//lib/google/logging/source_location.rb#84 + # source://google-logging-utils//lib/google/logging/source_location.rb#88 def eql?(other); end # @return [String] Path to the source file. diff --git a/sorbet/rbi/gems/googleauth@1.14.0.rbi b/sorbet/rbi/gems/googleauth@1.15.0.rbi similarity index 75% rename from sorbet/rbi/gems/googleauth@1.14.0.rbi rename to sorbet/rbi/gems/googleauth@1.15.0.rbi index b23e6a85..56877df4 100644 --- a/sorbet/rbi/gems/googleauth@1.14.0.rbi +++ b/sorbet/rbi/gems/googleauth@1.15.0.rbi @@ -5,13 +5,13 @@ # Please instead update this file by running `bin/tapioca gem googleauth`. -# source://googleauth//lib/googleauth/base_client.rb#17 +# source://googleauth//lib/googleauth/errors.rb#19 module Google; end # Module Auth provides classes that provide Google-specific authorization # used to access Google APIs. # -# source://googleauth//lib/googleauth/base_client.rb#20 +# source://googleauth//lib/googleauth/errors.rb#20 module Google::Auth private @@ -38,8 +38,9 @@ module Google::Auth # connection to use for token refresh requests. # * `:connection` The connection to use to determine whether GCE # metadata credentials are available. + # @raise [Google::Auth::InitializationError] If the credentials cannot be found # - # source://googleauth//lib/googleauth/application_default.rb#53 + # source://googleauth//lib/googleauth/application_default.rb#55 def get_application_default(scope = T.unsafe(nil), options = T.unsafe(nil)); end class << self @@ -66,9 +67,9 @@ module Google::Auth # connection to use for token refresh requests. # * `:connection` The connection to use to determine whether GCE # metadata credentials are available. - # @raise [NOT_FOUND_ERROR] + # @raise [Google::Auth::InitializationError] If the credentials cannot be found # - # source://googleauth//lib/googleauth/application_default.rb#53 + # source://googleauth//lib/googleauth/application_default.rb#55 def get_application_default(scope = T.unsafe(nil), options = T.unsafe(nil)); end end end @@ -93,10 +94,10 @@ class Google::Auth::APIKeyCredentials # @option options # @option options # @param options [Hash] The credentials options - # @raise [ArgumentError] + # @raise [ArgumentError] If the API key is nil or empty # @return [APIKeyCredentials] a new instance of APIKeyCredentials # - # source://googleauth//lib/googleauth/api_key.rb#88 + # source://googleauth//lib/googleauth/api_key.rb#89 def initialize(options = T.unsafe(nil)); end # @return [String] The API key @@ -122,7 +123,7 @@ class Google::Auth::APIKeyCredentials # @return [Hash] The modified hash (the same hash passed as the `a_hash` # argument). # - # source://googleauth//lib/googleauth/api_key.rb#133 + # source://googleauth//lib/googleauth/api_key.rb#134 def apply!(a_hash, _opts = T.unsafe(nil)); end # Creates a duplicate of these credentials. @@ -130,7 +131,7 @@ class Google::Auth::APIKeyCredentials # @param options [Hash] Additional options for configuring the credentials # @return [Google::Auth::APIKeyCredentials] # - # source://googleauth//lib/googleauth/api_key.rb#109 + # source://googleauth//lib/googleauth/api_key.rb#110 def duplicate(options = T.unsafe(nil)); end # Determines if the credentials object has expired. @@ -139,9 +140,18 @@ class Google::Auth::APIKeyCredentials # @param _seconds [Fixnum] The optional timeout in seconds since the last refresh # @return [Boolean] True if the token has expired, false otherwise. # - # source://googleauth//lib/googleauth/api_key.rb#101 + # source://googleauth//lib/googleauth/api_key.rb#102 def expires_within?(_seconds); end + # For credentials that are initialized with a token without a principal, + # the type of that token should be returned as a principal instead + # + # @private + # @return [Symbol] the token type in lieu of the principal + # + # source://googleauth//lib/googleauth/api_key.rb#147 + def principal; end + # @return [String] The universe domain of the universe # this API key is for # @@ -158,12 +168,12 @@ class Google::Auth::APIKeyCredentials # We don't need to fetch access tokens for API key auth # - # source://googleauth//lib/googleauth/api_key.rb#150 + # source://googleauth//lib/googleauth/api_key.rb#159 def fetch_access_token!(_options = T.unsafe(nil)); end # The token type should be :api_key # - # source://googleauth//lib/googleauth/api_key.rb#145 + # source://googleauth//lib/googleauth/api_key.rb#154 def token_type; end class << self @@ -200,6 +210,19 @@ Google::Auth::APIKeyCredentials::API_KEY_HEADER = T.let(T.unsafe(nil), String) # source://googleauth//lib/googleauth/api_key.rb#39 Google::Auth::APIKeyCredentials::API_KEY_VAR = T.let(T.unsafe(nil), String) +# An error indicating the remote server refused to authorize the client. +# Maintains backward compatibility with Signet. +# +# Should not be used in the new code, even when wrapping `Signet::AuthorizationError`. +# New code should use CredentialsError instead. +# +# source://googleauth//lib/googleauth/errors.rb#91 +class Google::Auth::AuthorizationError < ::Signet::AuthorizationError + include ::Google::Auth::Error + include ::Google::Auth::DetailedError + extend ::Google::Auth::DetailedError::ClassMethods +end + # BaseClient is a class used to contain common methods that are required by any # Credentials Client, including AwsCredentials, ServiceAccountCredentials, # and UserRefreshCredentials. This is a superclass of Signet::OAuth2::Client @@ -247,6 +270,12 @@ module Google::Auth::BaseClient # source://googleauth//lib/googleauth/base_client.rb#62 def on_refresh(&block); end + # @private + # @raise [NoMethodError] + # + # source://googleauth//lib/googleauth/base_client.rb#82 + def principal; end + # Returns a reference to the #apply method, suitable for passing as # a closure # @@ -257,12 +286,12 @@ module Google::Auth::BaseClient # @raise [NoMethodError] # - # source://googleauth//lib/googleauth/base_client.rb#87 + # source://googleauth//lib/googleauth/base_client.rb#92 def fetch_access_token!; end # @raise [NoMethodError] # - # source://googleauth//lib/googleauth/base_client.rb#83 + # source://googleauth//lib/googleauth/base_client.rb#88 def token_type; end end @@ -289,7 +318,7 @@ Google::Auth::BaseClient::AUTH_METADATA_KEY = T.let(T.unsafe(nil), Symbol) # use the corresponding credentials type, e.g. ServiceAccountCredentials # with the service account JSON. # -# source://googleauth//lib/googleauth/bearer_token.rb#40 +# source://googleauth//lib/googleauth/bearer_token.rb#41 class Google::Auth::BearerTokenCredentials include ::Google::Auth::BaseClient @@ -299,17 +328,17 @@ class Google::Auth::BearerTokenCredentials # @option options # @option options # @param options [Hash] The credentials options - # @raise [ArgumentError] + # @raise [ArgumentError] If the bearer token is nil or empty # @return [BearerTokenCredentials] a new instance of BearerTokenCredentials # - # source://googleauth//lib/googleauth/bearer_token.rb#83 + # source://googleauth//lib/googleauth/bearer_token.rb#85 def initialize(options = T.unsafe(nil)); end # The following aliasing is needed for BaseClient since it sends :token_type # # @return [String] The token to be sent as a part of Bearer claim # - # source://googleauth//lib/googleauth/bearer_token.rb#47 + # source://googleauth//lib/googleauth/bearer_token.rb#50 def bearer_token; end # Creates a duplicate of these credentials. @@ -320,12 +349,12 @@ class Google::Auth::BearerTokenCredentials # @param options [Hash] Additional options for configuring the credentials # @return [Google::Auth::BearerTokenCredentials] # - # source://googleauth//lib/googleauth/bearer_token.rb#114 + # source://googleauth//lib/googleauth/bearer_token.rb#116 def duplicate(options = T.unsafe(nil)); end # @return [Time, nil] The token expiration time provided by the end-user. # - # source://googleauth//lib/googleauth/bearer_token.rb#52 + # source://googleauth//lib/googleauth/bearer_token.rb#53 def expires_at; end # Determines if the credentials object has expired. @@ -334,24 +363,33 @@ class Google::Auth::BearerTokenCredentials # @return [Boolean] True if the token has expired, false otherwise, or # if the expires_at was not provided. # - # source://googleauth//lib/googleauth/bearer_token.rb#101 + # source://googleauth//lib/googleauth/bearer_token.rb#103 def expires_within?(seconds); end + # For credentials that are initialized with a token without a principal, + # the type of that token should be returned as a principal instead + # + # @private + # @return [Symbol] the token type in lieu of the principal + # + # source://googleauth//lib/googleauth/bearer_token.rb#128 + def principal; end + # @return [String] The token to be sent as a part of Bearer claim # - # source://googleauth//lib/googleauth/bearer_token.rb#47 + # source://googleauth//lib/googleauth/bearer_token.rb#48 def token; end # @return [String] The universe domain of the universe # this token is for # - # source://googleauth//lib/googleauth/bearer_token.rb#56 + # source://googleauth//lib/googleauth/bearer_token.rb#57 def universe_domain; end # @return [String] The universe domain of the universe # this token is for # - # source://googleauth//lib/googleauth/bearer_token.rb#56 + # source://googleauth//lib/googleauth/bearer_token.rb#57 def universe_domain=(_arg0); end protected @@ -362,15 +400,15 @@ class Google::Auth::BearerTokenCredentials # raise an error. # # @param _options [Hash] Options for fetching a new token (not used). - # @raise [StandardError] If the token is expired. + # @raise [Google::Auth::CredentialsError] If the token is expired. # @return [nil] Always returns nil. # - # source://googleauth//lib/googleauth/bearer_token.rb#133 + # source://googleauth//lib/googleauth/bearer_token.rb#143 def fetch_access_token!(_options = T.unsafe(nil)); end private - # source://googleauth//lib/googleauth/bearer_token.rb#143 + # source://googleauth//lib/googleauth/bearer_token.rb#157 def token_type; end class << self @@ -382,19 +420,19 @@ class Google::Auth::BearerTokenCredentials # @param options [Hash] The credentials options # @return [Google::Auth::BearerTokenCredentials] # - # source://googleauth//lib/googleauth/bearer_token.rb#69 + # source://googleauth//lib/googleauth/bearer_token.rb#70 def make_creds(options = T.unsafe(nil)); end end end # @private Authorization header name # -# source://googleauth//lib/googleauth/bearer_token.rb#44 +# source://googleauth//lib/googleauth/bearer_token.rb#45 Google::Auth::BearerTokenCredentials::AUTH_METADATA_KEY = T.let(T.unsafe(nil), Symbol) # Representation of an application's identity for user authorization flows. # -# source://googleauth//lib/googleauth/client_id.rb#23 +# source://googleauth//lib/googleauth/client_id.rb#24 class Google::Auth::ClientId # Initialize the Client ID. Both id and secret must be non-nil. # @@ -403,85 +441,87 @@ class Google::Auth::ClientId # `client_secrets.json` files. # @param id [String] Text identifier of the client ID # @param secret [String] Secret associated with the client ID + # @raise [Google::Auth::InitializationError] If id or secret is nil # @return [ClientId] a new instance of ClientId # - # source://googleauth//lib/googleauth/client_id.rb#66 + # source://googleauth//lib/googleauth/client_id.rb#68 def initialize(id, secret); end # Text identifier of the client ID # # @return [String] # - # source://googleauth//lib/googleauth/client_id.rb#43 + # source://googleauth//lib/googleauth/client_id.rb#44 def id; end # Secret associated with the client ID # # @return [String] # - # source://googleauth//lib/googleauth/client_id.rb#49 + # source://googleauth//lib/googleauth/client_id.rb#50 def secret; end class << self # Returns the value of attribute default. # - # source://googleauth//lib/googleauth/client_id.rb#52 + # source://googleauth//lib/googleauth/client_id.rb#53 def default; end # Sets the attribute default # # @param value the value to set the attribute default to. # - # source://googleauth//lib/googleauth/client_id.rb#52 + # source://googleauth//lib/googleauth/client_id.rb#53 def default=(_arg0); end # Constructs a Client ID from a JSON file downloaded from the # Google Developers Console. # # @param file [String, File] Path of file to read from + # @raise [Google::Auth::InitializationError] If file is nil # @return [Google::Auth::ClientID] # - # source://googleauth//lib/googleauth/client_id.rb#81 + # source://googleauth//lib/googleauth/client_id.rb#84 def from_file(file); end # Constructs a Client ID from a previously loaded JSON file. The hash # structure should match the expected JSON format. # # @param config [hash] Parsed contents of the JSON file - # @raise [MISSING_TOP_LEVEL_ELEMENT_ERROR] + # @raise [Google::Auth::InitializationError] If config is nil or missing required elements # @return [Google::Auth::ClientID] # - # source://googleauth//lib/googleauth/client_id.rb#98 + # source://googleauth//lib/googleauth/client_id.rb#102 def from_hash(config); end end end # JSON key for the client ID within an app configuration. # -# source://googleauth//lib/googleauth/client_id.rb#31 +# source://googleauth//lib/googleauth/client_id.rb#32 Google::Auth::ClientId::CLIENT_ID = T.let(T.unsafe(nil), String) # JSON key for the client secret within an app configuration. # -# source://googleauth//lib/googleauth/client_id.rb#33 +# source://googleauth//lib/googleauth/client_id.rb#34 Google::Auth::ClientId::CLIENT_SECRET = T.let(T.unsafe(nil), String) # Toplevel JSON key for the an installed app configuration. # Must include client_id and client_secret subkeys if present. # -# source://googleauth//lib/googleauth/client_id.rb#26 +# source://googleauth//lib/googleauth/client_id.rb#27 Google::Auth::ClientId::INSTALLED_APP = T.let(T.unsafe(nil), String) # An error message raised when none of the expected toplevel properties # can be found. # -# source://googleauth//lib/googleauth/client_id.rb#36 +# source://googleauth//lib/googleauth/client_id.rb#37 Google::Auth::ClientId::MISSING_TOP_LEVEL_ELEMENT_ERROR = T.let(T.unsafe(nil), String) # Toplevel JSON key for the a webapp configuration. # Must include client_id and client_secret subkeys if present. # -# source://googleauth//lib/googleauth/client_id.rb#29 +# source://googleauth//lib/googleauth/client_id.rb#30 Google::Auth::ClientId::WEB_APP = T.let(T.unsafe(nil), String) # Credentials is a high-level base class used by Google's API client @@ -531,18 +571,19 @@ Google::Auth::ClientId::WEB_APP = T.let(T.unsafe(nil), String) # creds2 = SubCredentials.default # creds2.scope # => ["http://example.com/sub_scope"] # -# source://googleauth//lib/googleauth/credentials.rb#71 +# source://googleauth//lib/googleauth/credentials.rb#73 class Google::Auth::Credentials extend ::Forwardable # Creates a new Credentials instance with the provided auth credentials, and with the default # values configured on the class. # - # @param source_creds [String, Hash, Signet::OAuth2::Client] The source of credentials. It can be provided as one of the following: + # @param source_creds [String, Pathname, Hash, Google::Auth::BaseClient] The source of credentials. It can be provided as one of the following: # - # * The path to a JSON keyfile (as a `String`) + # * The path to a JSON keyfile (as a `String` or a `Pathname`) # * The contents of a JSON keyfile (as a `Hash`) - # * A `Signet::OAuth2::Client` credentials object + # * A `Google::Auth::BaseClient` credentials object, including but not limited to + # a `Signet::OAuth2::Client` object. # * Any credentials object that supports the methods this wrapper delegates to an inner client. # # If this parameter is an object (`Signet::OAuth2::Client` or other) it will be used as an inner client. @@ -568,34 +609,36 @@ class Google::Auth::Credentials # inner client constructor. This allows you to configure additional # parameters of the `Signet::OAuth2::Client`, such as connection parameters, # timeouts, etc. + # @raise [Google::Auth::InitializationError] If source_creds is nil + # @raise [ArgumentError] If both scope and target_audience are specified # @return [Credentials] a new instance of Credentials # - # source://googleauth//lib/googleauth/credentials.rb#394 + # source://googleauth//lib/googleauth/credentials.rb#400 def initialize(source_creds, options = T.unsafe(nil)); end # @return [String] The target audience ID when issuing assertions. Used only by the # assertion grant type. # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://googleauth//lib/googleauth/credentials.rb#353 def audience(*args, **_arg1, &block); end # The Signet::OAuth2::Client object the Credentials instance is using. # # @return [Signet::OAuth2::Client] # - # source://googleauth//lib/googleauth/credentials.rb#294 + # source://googleauth//lib/googleauth/credentials.rb#296 def client; end # The Signet::OAuth2::Client object the Credentials instance is using. # # @return [Signet::OAuth2::Client] # - # source://googleauth//lib/googleauth/credentials.rb#294 + # source://googleauth//lib/googleauth/credentials.rb#296 def client=(_arg0); end # @private Temporary; remove when universe domain metadata endpoint is stable (see b/349488459). # - # source://googleauth//lib/googleauth/credentials.rb#311 + # source://googleauth//lib/googleauth/credentials.rb#313 def disable_universe_domain_check; end # Creates a duplicate of these credentials. This method tries to create the duplicate of the @@ -622,124 +665,133 @@ class Google::Auth::Credentials # * `:scope` - the scope for the client # @return [Credentials] # - # source://googleauth//lib/googleauth/credentials.rb#537 + # source://googleauth//lib/googleauth/credentials.rb#546 def duplicate(options = T.unsafe(nil)); end # @return [String] The issuer ID associated with this client. # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://googleauth//lib/googleauth/credentials.rb#353 def issuer(*args, **_arg1, &block); end # @return [Logger] The logger used to log credential operations such as token refresh. # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://googleauth//lib/googleauth/credentials.rb#353 def logger(*args, **_arg1, &block); end # @return [Logger] The logger used to log credential operations such as token refresh. # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://googleauth//lib/googleauth/credentials.rb#353 def logger=(*args, **_arg1, &block); end # Identifier for the project the client is authenticating with. # # @return [String] # - # source://googleauth//lib/googleauth/credentials.rb#301 + # source://googleauth//lib/googleauth/credentials.rb#303 def project_id; end # Identifier for a separate project used for billing/quota, if any. # # @return [String, nil] # - # source://googleauth//lib/googleauth/credentials.rb#308 + # source://googleauth//lib/googleauth/credentials.rb#310 def quota_project_id; end # @return [String, Array] The scope for this client. A scope is an access range # defined by the authorization server. The scope can be a single value or a list of values. # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://googleauth//lib/googleauth/credentials.rb#353 def scope(*args, **_arg1, &block); end # @return [String, OpenSSL::PKey] The signing key associated with this client. # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://googleauth//lib/googleauth/credentials.rb#353 def signing_key(*args, **_arg1, &block); end # @return [String] The final target audience for ID tokens returned by this credential. # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://googleauth//lib/googleauth/credentials.rb#353 def target_audience(*args, **_arg1, &block); end # @return [String] The token credential URI. The URI is the authorization server's HTTP # endpoint capable of issuing tokens and refreshing expired tokens. # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://googleauth//lib/googleauth/credentials.rb#353 def token_credential_uri(*args, **_arg1, &block); end # @return [String] The universe domain issuing these credentials. # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://googleauth//lib/googleauth/credentials.rb#353 def universe_domain(*args, **_arg1, &block); end # @return [String] The universe domain issuing these credentials. # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://googleauth//lib/googleauth/credentials.rb#353 def universe_domain=(*args, **_arg1, &block); end # @return [Proc] Returns a reference to the {Signet::OAuth2::Client#apply} method, # suitable for passing as a closure. # - # source://forwardable/1.3.3/forwardable.rb#231 + # source://googleauth//lib/googleauth/credentials.rb#353 def updater_proc(*args, **_arg1, &block); end protected # Initializes the Signet client. # - # source://googleauth//lib/googleauth/credentials.rb#563 + # source://googleauth//lib/googleauth/credentials.rb#575 def init_client(hash, options = T.unsafe(nil)); end - # source://googleauth//lib/googleauth/credentials.rb#623 + # source://googleauth//lib/googleauth/credentials.rb#640 def setup_logging(logger: T.unsafe(nil)); end # returns a new Hash with string keys instead of symbol keys. # - # source://googleauth//lib/googleauth/credentials.rb#571 + # source://googleauth//lib/googleauth/credentials.rb#583 def stringify_hash_keys(hash); end # returns a new Hash with symbol keys instead of string keys. # - # source://googleauth//lib/googleauth/credentials.rb#576 + # source://googleauth//lib/googleauth/credentials.rb#588 def symbolize_hash_keys(hash); end - # source://googleauth//lib/googleauth/credentials.rb#580 + # Updates client options with defaults from the credential class + # + # @param options [Hash] Options to update + # @raise [ArgumentError] If both scope and target_audience are specified + # @return [Hash] Updated options hash + # + # source://googleauth//lib/googleauth/credentials.rb#597 def update_client_options(options); end - # source://googleauth//lib/googleauth/credentials.rb#597 + # source://googleauth//lib/googleauth/credentials.rb#614 def update_from_client(client); end - # source://googleauth//lib/googleauth/credentials.rb#613 + # source://googleauth//lib/googleauth/credentials.rb#630 def update_from_filepath(path, options); end - # source://googleauth//lib/googleauth/credentials.rb#604 + # source://googleauth//lib/googleauth/credentials.rb#621 def update_from_hash(hash, options); end - # source://googleauth//lib/googleauth/credentials.rb#597 + # source://googleauth//lib/googleauth/credentials.rb#619 def update_from_signet(client); end # Verify that the keyfile argument is a file. # - # source://googleauth//lib/googleauth/credentials.rb#557 + # @param keyfile [String] Path to the keyfile + # @raise [Google::Auth::InitializationError] If the keyfile does not exist + # + # source://googleauth//lib/googleauth/credentials.rb#569 def verify_keyfile_exists!(keyfile); end private - # source://googleauth//lib/googleauth/credentials.rb#651 + # source://googleauth//lib/googleauth/credentials.rb#668 def deep_hash_normalize(old_hash); end # Convert all keys in this hash (nested) to symbols for uniform retrieval # - # source://googleauth//lib/googleauth/credentials.rb#643 + # source://googleauth//lib/googleauth/credentials.rb#660 def recursive_hash_normalize_keys(val); end class << self @@ -748,14 +800,14 @@ class Google::Auth::Credentials # # @return [String] # - # source://googleauth//lib/googleauth/credentials.rb#110 + # source://googleauth//lib/googleauth/credentials.rb#112 def audience; end # Sets the default target audience ID to be used when none is provided during initialization. # # @param new_audience [String] # - # source://googleauth//lib/googleauth/credentials.rb#121 + # source://googleauth//lib/googleauth/credentials.rb#123 def audience=(new_audience); end # Creates a new Credentials instance with auth credentials acquired by searching the @@ -776,7 +828,7 @@ class Google::Auth::Credentials # * +:default_connection+ - the default connection to use for the client # @return [Credentials] # - # source://googleauth//lib/googleauth/credentials.rb#436 + # source://googleauth//lib/googleauth/credentials.rb#445 def default(options = T.unsafe(nil)); end # The environment variables to search for credentials. Values can either be a file path to the @@ -785,7 +837,7 @@ class Google::Auth::Credentials # # @return [Array] # - # source://googleauth//lib/googleauth/credentials.rb#192 + # source://googleauth//lib/googleauth/credentials.rb#194 def env_vars; end # Sets the environment variables to search for credentials. @@ -794,14 +846,14 @@ class Google::Auth::Credentials # # @param new_env_vars [String, Array, nil] # - # source://googleauth//lib/googleauth/credentials.rb#216 + # source://googleauth//lib/googleauth/credentials.rb#218 def env_vars=(new_env_vars); end # Internal recursive lookup for env_vars. # # @private # - # source://googleauth//lib/googleauth/credentials.rb#200 + # source://googleauth//lib/googleauth/credentials.rb#202 def env_vars_internal; end # Return the given parameter value, defaulting up the class hierarchy. @@ -817,7 +869,7 @@ class Google::Auth::Credentials # @private # @return [Object] The value # - # source://googleauth//lib/googleauth/credentials.rb#269 + # source://googleauth//lib/googleauth/credentials.rb#271 def lookup_auth_param(name, method_name = T.unsafe(nil)); end # Return the value of the given constant if it is defined directly in @@ -827,7 +879,7 @@ class Google::Auth::Credentials # @private # @return [Object] The value # - # source://googleauth//lib/googleauth/credentials.rb#285 + # source://googleauth//lib/googleauth/credentials.rb#287 def lookup_local_constant(name); end # The file paths to search for credentials files. @@ -835,7 +887,7 @@ class Google::Auth::Credentials # # @return [Array] # - # source://googleauth//lib/googleauth/credentials.rb#227 + # source://googleauth//lib/googleauth/credentials.rb#229 def paths; end # Set the file paths to search for credentials files. @@ -844,14 +896,14 @@ class Google::Auth::Credentials # # @param new_paths [String, Array, nil] # - # source://googleauth//lib/googleauth/credentials.rb#250 + # source://googleauth//lib/googleauth/credentials.rb#252 def paths=(new_paths); end # Internal recursive lookup for paths. # # @private # - # source://googleauth//lib/googleauth/credentials.rb#235 + # source://googleauth//lib/googleauth/credentials.rb#237 def paths_internal; end # The default scope to be used when none is provided during initialization. @@ -864,7 +916,7 @@ class Google::Auth::Credentials # # @return [String, Array, nil] # - # source://googleauth//lib/googleauth/credentials.rb#136 + # source://googleauth//lib/googleauth/credentials.rb#138 def scope; end # Sets the default scope to be used when none is provided during initialization. @@ -875,7 +927,7 @@ class Google::Auth::Credentials # # @param new_scope [String, Array, nil] # - # source://googleauth//lib/googleauth/credentials.rb#152 + # source://googleauth//lib/googleauth/credentials.rb#154 def scope=(new_scope); end # The default final target audience for ID tokens, to be used when none @@ -887,7 +939,7 @@ class Google::Auth::Credentials # # @return [String, nil] # - # source://googleauth//lib/googleauth/credentials.rb#167 + # source://googleauth//lib/googleauth/credentials.rb#169 def target_audience; end # Sets the default final target audience for ID tokens, to be used when none @@ -899,7 +951,7 @@ class Google::Auth::Credentials # # @param new_target_audience [String, nil] # - # source://googleauth//lib/googleauth/credentials.rb#181 + # source://googleauth//lib/googleauth/credentials.rb#183 def target_audience=(new_target_audience); end # The default token credential URI to be used when none is provided during initialization. @@ -908,54 +960,64 @@ class Google::Auth::Credentials # # @return [String] # - # source://googleauth//lib/googleauth/credentials.rb#89 + # source://googleauth//lib/googleauth/credentials.rb#91 def token_credential_uri; end # Set the default token credential URI to be used when none is provided during initialization. # # @param new_token_credential_uri [String] # - # source://googleauth//lib/googleauth/credentials.rb#100 + # source://googleauth//lib/googleauth/credentials.rb#102 def token_credential_uri=(new_token_credential_uri); end private # @private Lookup Credentials using Google::Auth.get_application_default. # - # source://googleauth//lib/googleauth/credentials.rb#480 + # source://googleauth//lib/googleauth/credentials.rb#489 def from_application_default(options); end # @private Lookup Credentials from default file paths. # - # source://googleauth//lib/googleauth/credentials.rb#469 + # source://googleauth//lib/googleauth/credentials.rb#478 def from_default_paths(options); end # @private Lookup Credentials from environment variables. # - # source://googleauth//lib/googleauth/credentials.rb#450 + # source://googleauth//lib/googleauth/credentials.rb#459 def from_env_vars(options); end # @private Read credentials from a JSON stream. # - # source://googleauth//lib/googleauth/credentials.rb#493 + # source://googleauth//lib/googleauth/credentials.rb#502 def from_io(io, options); end end end # The default target audience ID to be used when none is provided during initialization. # -# source://googleauth//lib/googleauth/credentials.rb#78 +# source://googleauth//lib/googleauth/credentials.rb#80 Google::Auth::Credentials::AUDIENCE = T.let(T.unsafe(nil), String) # The default token credential URI to be used when none is provided during initialization. # -# source://googleauth//lib/googleauth/credentials.rb#74 +# source://googleauth//lib/googleauth/credentials.rb#76 Google::Auth::Credentials::TOKEN_CREDENTIAL_URI = T.let(T.unsafe(nil), String) +# Generic error raised during operation of Credentials +# This should be used for all purposes not covered by other errors. +# +# source://googleauth//lib/googleauth/errors.rb#80 +class Google::Auth::CredentialsError < ::StandardError + include ::Google::Auth::Error + include ::Google::Auth::DetailedError + extend ::Google::Auth::DetailedError::ClassMethods +end + # CredentialsLoader contains the behaviour used to locate and find default # credentials files on the file system. # -# source://googleauth//lib/googleauth/credentials_loader.rb#24 +# source://googleauth//lib/googleauth/credentials_loader.rb#26 module Google::Auth::CredentialsLoader # Creates an instance from the path specified in an environment # variable. @@ -969,8 +1031,9 @@ module Google::Auth::CredentialsLoader # The following keys are recognized: # * `:default_connection` The connection object to use. # * `:connection_builder` A `Proc` that returns a connection. + # @raise [Google::Auth::InitializationError] If the credentials file cannot be read # - # source://googleauth//lib/googleauth/credentials_loader.rb#74 + # source://googleauth//lib/googleauth/credentials_loader.rb#77 def from_env(scope = T.unsafe(nil), options = T.unsafe(nil)); end # Creates an instance from the system default path @@ -984,8 +1047,9 @@ module Google::Auth::CredentialsLoader # The following keys are recognized: # * `:default_connection` The connection object to use. # * `:connection_builder` A `Proc` that returns a connection. + # @raise [Google::Auth::InitializationError] If the credentials file cannot be read or is invalid # - # source://googleauth//lib/googleauth/credentials_loader.rb#126 + # source://googleauth//lib/googleauth/credentials_loader.rb#131 def from_system_default_path(scope = T.unsafe(nil), options = T.unsafe(nil)); end # Creates an instance from a well known path. @@ -999,8 +1063,9 @@ module Google::Auth::CredentialsLoader # The following keys are recognized: # * `:default_connection` The connection object to use. # * `:connection_builder` A `Proc` that returns a connection. + # @raise [Google::Auth::InitializationError] If the credentials file cannot be read # - # source://googleauth//lib/googleauth/credentials_loader.rb#100 + # source://googleauth//lib/googleauth/credentials_loader.rb#104 def from_well_known_path(scope = T.unsafe(nil), options = T.unsafe(nil)); end # make_creds proxies the construction of a credentials instance @@ -1008,110 +1073,114 @@ module Google::Auth::CredentialsLoader # By default, it calls #new on the current class, but this behaviour can # be modified, allowing different instances to be created. # - # source://googleauth//lib/googleauth/credentials_loader.rb#56 + # source://googleauth//lib/googleauth/credentials_loader.rb#58 def make_creds(*args); end private - # source://googleauth//lib/googleauth/credentials_loader.rb#172 + # source://googleauth//lib/googleauth/credentials_loader.rb#177 def authorized_user_env_vars?; end - # source://googleauth//lib/googleauth/credentials_loader.rb#158 + # source://googleauth//lib/googleauth/credentials_loader.rb#163 def interpret_options(scope, options); end # Finds project_id from gcloud CLI configuration # - # source://googleauth//lib/googleauth/credentials_loader.rb#146 + # source://googleauth//lib/googleauth/credentials_loader.rb#151 def load_gcloud_project_id; end - # source://googleauth//lib/googleauth/credentials_loader.rb#167 + # source://googleauth//lib/googleauth/credentials_loader.rb#172 def service_account_env_vars?; end class << self # Finds project_id from gcloud CLI configuration # - # source://googleauth//lib/googleauth/credentials_loader.rb#146 + # source://googleauth//lib/googleauth/credentials_loader.rb#151 def load_gcloud_project_id; end end end -# source://googleauth//lib/googleauth/credentials_loader.rb#31 +# source://googleauth//lib/googleauth/credentials_loader.rb#33 Google::Auth::CredentialsLoader::ACCOUNT_TYPE_VAR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#35 +# source://googleauth//lib/googleauth/credentials_loader.rb#37 Google::Auth::CredentialsLoader::AWS_ACCESS_KEY_ID_VAR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#34 +# source://googleauth//lib/googleauth/credentials_loader.rb#36 Google::Auth::CredentialsLoader::AWS_DEFAULT_REGION_VAR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#33 +# source://googleauth//lib/googleauth/credentials_loader.rb#35 Google::Auth::CredentialsLoader::AWS_REGION_VAR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#36 +# source://googleauth//lib/googleauth/credentials_loader.rb#38 Google::Auth::CredentialsLoader::AWS_SECRET_ACCESS_KEY_VAR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#37 +# source://googleauth//lib/googleauth/credentials_loader.rb#39 Google::Auth::CredentialsLoader::AWS_SESSION_TOKEN_VAR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#27 +# source://googleauth//lib/googleauth/credentials_loader.rb#29 Google::Auth::CredentialsLoader::CLIENT_EMAIL_VAR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#28 +# source://googleauth//lib/googleauth/credentials_loader.rb#30 Google::Auth::CredentialsLoader::CLIENT_ID_VAR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#29 +# source://googleauth//lib/googleauth/credentials_loader.rb#31 Google::Auth::CredentialsLoader::CLIENT_SECRET_VAR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#49 +# source://googleauth//lib/googleauth/credentials_loader.rb#51 Google::Auth::CredentialsLoader::CLOUD_SDK_CLIENT_ID = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#42 +# source://googleauth//lib/googleauth/credentials_loader.rb#44 Google::Auth::CredentialsLoader::CREDENTIALS_FILE_NAME = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#25 +# source://googleauth//lib/googleauth/credentials_loader.rb#27 Google::Auth::CredentialsLoader::ENV_VAR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#40 +# source://googleauth//lib/googleauth/credentials_loader.rb#42 Google::Auth::CredentialsLoader::GCLOUD_CONFIG_COMMAND = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#38 +# source://googleauth//lib/googleauth/credentials_loader.rb#40 Google::Auth::CredentialsLoader::GCLOUD_POSIX_COMMAND = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#39 +# source://googleauth//lib/googleauth/credentials_loader.rb#41 Google::Auth::CredentialsLoader::GCLOUD_WINDOWS_COMMAND = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#43 +# source://googleauth//lib/googleauth/credentials_loader.rb#45 Google::Auth::CredentialsLoader::NOT_FOUND_ERROR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#26 +# source://googleauth//lib/googleauth/credentials_loader.rb#28 Google::Auth::CredentialsLoader::PRIVATE_KEY_VAR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#32 +# source://googleauth//lib/googleauth/credentials_loader.rb#34 Google::Auth::CredentialsLoader::PROJECT_ID_VAR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#30 +# source://googleauth//lib/googleauth/credentials_loader.rb#32 Google::Auth::CredentialsLoader::REFRESH_TOKEN_VAR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#47 +# source://googleauth//lib/googleauth/credentials_loader.rb#49 Google::Auth::CredentialsLoader::SYSTEM_DEFAULT_ERROR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#45 +# source://googleauth//lib/googleauth/credentials_loader.rb#47 Google::Auth::CredentialsLoader::WELL_KNOWN_ERROR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/credentials_loader.rb#44 +# source://googleauth//lib/googleauth/credentials_loader.rb#46 Google::Auth::CredentialsLoader::WELL_KNOWN_PATH = T.let(T.unsafe(nil), String) # DefaultCredentials is used to preload the credentials file, to determine # which type of credentials should be loaded. # -# source://googleauth//lib/googleauth/default_credentials.rb#30 +# source://googleauth//lib/googleauth/default_credentials.rb#31 class Google::Auth::DefaultCredentials extend ::Google::Auth::CredentialsLoader class << self # Reads the input json and determines which creds class to use. # - # source://googleauth//lib/googleauth/default_credentials.rb#74 + # @param json_key_io [IO] An IO object containing the JSON key + # @raise [Google::Auth::InitializationError] If the JSON is missing the type field or has an unsupported type + # @return [Array(Hash, Class)] The JSON key and the credential class to use + # + # source://googleauth//lib/googleauth/default_credentials.rb#86 def determine_creds_class(json_key_io); end # Override CredentialsLoader#make_creds to use the class determined by @@ -1125,24 +1194,94 @@ class Google::Auth::DefaultCredentials # information, refer to [Validate credential configurations from external # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). # - # source://googleauth//lib/googleauth/default_credentials.rb#45 + # @param options [Hash] Options for creating the credentials + # @raise [Google::Auth::InitializationError] If the credentials cannot be determined + # @return [Google::Auth::Credentials] The credentials instance + # + # source://googleauth//lib/googleauth/default_credentials.rb#49 def make_creds(options = T.unsafe(nil)); end - # source://googleauth//lib/googleauth/default_credentials.rb#57 + # Reads the credential type from environment and returns the appropriate class + # + # @raise [Google::Auth::InitializationError] If the credentials type is undefined or unsupported + # @return [Class] The credential class to use + # + # source://googleauth//lib/googleauth/default_credentials.rb#65 def read_creds; end end end +# Mixin module that contains detailed error information +# typically this is available if credentials initialization +# succeeds and credentials object is valid +# +# source://googleauth//lib/googleauth/errors.rb#32 +module Google::Auth::DetailedError + include ::Google::Auth::Error + + mixes_in_class_methods ::Google::Auth::DetailedError::ClassMethods + + # The type of the credentials that the error was originated from + # + # @return [String, nil] The class name of the credential that raised the error + # + # source://googleauth//lib/googleauth/errors.rb#37 + def credential_type_name; end + + # All details passed in the options hash when creating the error + # + # @return [Hash] Additional details about the error + # + # source://googleauth//lib/googleauth/errors.rb#45 + def details; end + + # The principal for the authentication flow. Typically obtained from credentials + # + # @return [String, Symbol, nil] The principal identifier associated with the credentials + # + # source://googleauth//lib/googleauth/errors.rb#41 + def principal; end + + class << self + # @private + # @private + # + # source://googleauth//lib/googleauth/errors.rb#48 + def included(base); end + end +end + +# Class methods to be added to including classes +# +# source://googleauth//lib/googleauth/errors.rb#53 +module Google::Auth::DetailedError::ClassMethods + # Creates a new error with detailed information + # + # @param message [String] The error message + # @param credential_type_name [String] The credential type that raised the error + # @param principal [String, Symbol] The principal for the authentication flow + # @return [Error] The new error with details + # + # source://googleauth//lib/googleauth/errors.rb#59 + def with_details(message, credential_type_name:, principal:); end +end + +# Error mixin module for Google Auth errors +# All Google Auth errors should include this module +# +# source://googleauth//lib/googleauth/errors.rb#25 +module Google::Auth::Error; end + # Authenticates requests using External Account credentials, such # as those provided by the AWS provider. # -# source://googleauth//lib/googleauth/external_account/base_credentials.rb#23 +# source://googleauth//lib/googleauth/external_account/base_credentials.rb#24 module Google::Auth::ExternalAccount; end # This module handles the retrieval of credentials from Google Cloud by utilizing the AWS EC2 metadata service and # then exchanging the credentials for a short-lived Google Cloud access token. # -# source://googleauth//lib/googleauth/external_account/aws_credentials.rb#26 +# source://googleauth//lib/googleauth/external_account/aws_credentials.rb#27 class Google::Auth::ExternalAccount::AwsCredentials include ::Google::Auth::BaseClient include ::Google::Auth::Helpers::Connection @@ -1152,12 +1291,12 @@ class Google::Auth::ExternalAccount::AwsCredentials # @return [AwsCredentials] a new instance of AwsCredentials # - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#37 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#38 def initialize(options = T.unsafe(nil)); end # Will always be nil, but method still gets used. # - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#35 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#36 def client_id; end # Retrieves the subject token using the credential_source object. @@ -1183,7 +1322,7 @@ class Google::Auth::ExternalAccount::AwsCredentials # # @return [string] The retrieved subject token. # - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#78 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#79 def retrieve_subject_token!; end private @@ -1192,49 +1331,70 @@ class Google::Auth::ExternalAccount::AwsCredentials # This is needed for the AWS metadata server security credentials endpoint in order to retrieve the AWS security # credentials needed to sign requests to AWS APIs. # - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#184 + # @raise [Google::Auth::CredentialsError] If the credential verification URL is not set or if the request fails + # @return [String] The AWS role name + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#214 def fetch_metadata_role_name; end # Retrieves the AWS security credentials required for signing AWS requests from the AWS metadata server. # - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#193 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#227 def fetch_metadata_security_credentials(role_name); end # Retrieves the AWS security credentials required for signing AWS requests from either the AWS security # credentials environment variables or from the AWS metadata server. # - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#157 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#184 def fetch_security_credentials; end - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#130 + # Makes a request to an AWS resource endpoint + # + # @param url [String] The AWS endpoint URL + # @param name [String] Resource name for error messages + # @param data [Hash, nil] Optional data to send in POST requests + # @param headers [Hash] Optional request headers + # @raise [Google::Auth::CredentialsError] If the request fails + # @return [Faraday::Response] The successful response + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#154 def get_aws_resource(url, name, data: T.unsafe(nil), headers: T.unsafe(nil)); end - # @raise [Faraday::Error] + # Retrieves an IMDSv2 session token or returns a cached token if valid # - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#109 + # @raise [Google::Auth::CredentialsError] If the token URL is missing or there's an error retrieving the token + # @return [String] The IMDSv2 session token + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#114 def imdsv2_session_token; end # @return [Boolean] # - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#125 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#141 def imdsv2_session_token_invalid?; end - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#198 + # Reads the name of the AWS region from the environment + # + # @raise [Google::Auth::CredentialsError] If the region is not set in the environment + # and the region_url was not set in credentials source + # @return [String] The name of the AWS region + # + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#237 def region; end - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#147 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#174 def uri_escape(string); end end # Constant for imdsv2 session token expiration in seconds # -# source://googleauth//lib/googleauth/external_account/aws_credentials.rb#28 +# source://googleauth//lib/googleauth/external_account/aws_credentials.rb#29 Google::Auth::ExternalAccount::AwsCredentials::IMDSV2_TOKEN_EXPIRATION_IN_SECONDS = T.let(T.unsafe(nil), Integer) # Implements an AWS request signer based on the AWS Signature Version 4 signing process. # https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html # -# source://googleauth//lib/googleauth/external_account/aws_credentials.rb#213 +# source://googleauth//lib/googleauth/external_account/aws_credentials.rb#258 class Google::Auth::ExternalAccount::AwsRequestSigner # Instantiates an AWS request signer used to compute authenticated signed requests to AWS APIs based on the AWS # Signature Version 4 signing process. @@ -1242,27 +1402,44 @@ class Google::Auth::ExternalAccount::AwsRequestSigner # @param region_name [string] The AWS region to use. # @return [AwsRequestSigner] a new instance of AwsRequestSigner # - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#219 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#264 def initialize(region_name); end - # Generates the signed request for the provided HTTP request for calling - # an AWS API. This follows the steps described at: + # Generates an AWS signature version 4 signed request. + # + # Creates a signed request following the AWS Signature Version 4 process, which + # provides secure authentication for AWS API calls. The process includes creating + # canonical request strings, calculating signatures using the AWS credentials, and + # building proper authorization headers. + # + # For detailed information on the signing process, see: # https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html # - # @param aws_security_credentials [Hash[string, string]] A dictionary containing the AWS security credentials. - # @param url [string] The AWS service URL containing the canonical URI and query string. - # @param method [string] The HTTP method used to call this API. - # @return [hash{string => string}] The AWS signed request dictionary object. + # @param aws_credentials [Hash] The AWS security credentials with the following keys: + # @option aws_credentials [String] :access_key_id The AWS access key ID + # @option aws_credentials [String] :secret_access_key The AWS secret access key + # @option aws_credentials [String, nil] :session_token Optional AWS session token + # @param original_request [Hash] The request to sign with the following keys: + # @option original_request [String] :url The AWS service URL (must be HTTPS) + # @option original_request [String] :method The HTTP method (GET, POST, etc.) + # @option original_request [Hash, nil] :headers Optional request headers + # @option original_request [String, nil] :data Optional request payload + # @raise [Google::Auth::CredentialsError] If the AWS service URL is invalid + # @return [Hash] The signed request with the following keys: + # * :url - The original URL as a string + # * :headers - A hash of headers with the authorization header added + # * :method - The HTTP method + # * :data - The request payload (if present) # - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#237 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#296 def generate_signed_request(aws_credentials, original_request); end private - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#267 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#334 def aws_headers(aws_credentials, original_request, datetime); end - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#278 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#345 def build_authorization_header(headers, sts, aws_credentials, service_name, date); end # Generates the canonical query string given a raw query string. @@ -1271,71 +1448,71 @@ class Google::Auth::ExternalAccount::AwsRequestSigner # Code is from the AWS SDK for Ruby # https://github.com/aws/aws-sdk-ruby/blob/0ac3d0a393ed216290bfb5f0383380376f6fb1f1/gems/aws-sigv4/lib/aws-sigv4/signer.rb#L532 # - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#357 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#424 def build_canonical_querystring(query); end - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#335 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#402 def canonical_request(http_method, uri, headers, content_sha256); end - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#304 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#371 def credential(access_key_id, date, service); end - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#308 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#375 def credential_scope(date, service); end - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#300 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#367 def hexhmac(key, value); end - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#296 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#363 def hmac(key, value); end - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#326 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#393 def host(uri); end - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#348 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#415 def sha256_hexdigest(string); end - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#287 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#354 def signature(secret_access_key, date, string_to_sign, service); end - # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#317 + # source://googleauth//lib/googleauth/external_account/aws_credentials.rb#384 def string_to_sign(datetime, canonical_request, service); end end # Authenticates requests using External Account credentials, such # as those provided by the AWS provider or OIDC provider like Azure, etc. # -# source://googleauth//lib/googleauth/external_account/base_credentials.rb#26 +# source://googleauth//lib/googleauth/external_account/base_credentials.rb#27 module Google::Auth::ExternalAccount::BaseCredentials include ::Google::Auth::BaseClient include ::Google::Auth::Helpers::Connection # Returns the value of attribute access_token. # - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#44 + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#45 def access_token; end # Sets the attribute access_token # # @param value the value to set the attribute access_token to. # - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#44 + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#45 def access_token=(_arg0); end # Returns the value of attribute expires_at. # - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#43 + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#44 def expires_at; end - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#52 + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#53 def expires_at=(new_expires_at); end # @return [Boolean] # - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#47 + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#48 def expires_within?(seconds); end - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#56 + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#57 def fetch_access_token!(_options = T.unsafe(nil)); end # Returns whether the credentials represent a workforce pool (True) or @@ -1344,118 +1521,165 @@ module Google::Auth::ExternalAccount::BaseCredentials # @return [bool] true if the credentials represent a workforce pool. # false if they represent a workload. # - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#88 + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#89 def is_workforce_pool?; end + # For external account credentials, the principal is + # represented by the audience, such as a workforce pool + # + # @private + # @return [String] the GCP principal, e.g. a workforce pool + # + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#97 + def principal; end + # Retrieves the subject token using the credential_source object. # # @raise [NoMethodError] # @return [string] The retrieved subject token. # - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#78 + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#79 def retrieve_subject_token!; end # Returns the value of attribute universe_domain. # - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#45 + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#46 def universe_domain; end # Sets the attribute universe_domain # # @param value the value to set the attribute universe_domain to. # - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#45 + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#46 def universe_domain=(_arg0); end private - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#99 + # A common method for Other credentials to call during initialization + # + # @raise [Google::Auth::InitializationError] If workforce_pool_user_project is incorrectly set + # + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#110 def base_setup(options); end - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#127 + # Exchange tokens at STS endpoint + # + # @raise [Google::Auth::AuthorizationError] If the token exchange request fails + # + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#140 def exchange_token; end - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#163 + # Exchanges a token for an impersonated service account access token + # + # @param token [String] The token to exchange + # @param _options [Hash] Additional options (not used) + # @raise [Google::Auth::CredentialsError] If the impersonation request fails + # @return [Hash] The response containing the impersonated access token + # + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#188 def get_impersonated_access_token(token, _options = T.unsafe(nil)); end - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#178 + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#207 def log_impersonated_token_request(original_token); end - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#145 + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#164 def log_token_request(token_request); end - # source://googleauth//lib/googleauth/external_account/base_credentials.rb#94 + # source://googleauth//lib/googleauth/external_account/base_credentials.rb#103 def token_type; end end # External account JSON type identifier. # -# source://googleauth//lib/googleauth/external_account/base_credentials.rb#32 +# source://googleauth//lib/googleauth/external_account/base_credentials.rb#33 Google::Auth::ExternalAccount::BaseCredentials::EXTERNAL_ACCOUNT_JSON_TYPE = T.let(T.unsafe(nil), String) # Default IAM_SCOPE # -# source://googleauth//lib/googleauth/external_account/base_credentials.rb#38 +# source://googleauth//lib/googleauth/external_account/base_credentials.rb#39 Google::Auth::ExternalAccount::BaseCredentials::IAM_SCOPE = T.let(T.unsafe(nil), Array) # The token exchange grant_type used for exchanging credentials. # -# source://googleauth//lib/googleauth/external_account/base_credentials.rb#34 +# source://googleauth//lib/googleauth/external_account/base_credentials.rb#35 Google::Auth::ExternalAccount::BaseCredentials::STS_GRANT_TYPE = T.let(T.unsafe(nil), String) # The token exchange requested_token_type. This is always an access_token. # -# source://googleauth//lib/googleauth/external_account/base_credentials.rb#36 +# source://googleauth//lib/googleauth/external_account/base_credentials.rb#37 Google::Auth::ExternalAccount::BaseCredentials::STS_REQUESTED_TOKEN_TYPE = T.let(T.unsafe(nil), String) # Provides an entrypoint for all Exernal Account credential classes. # -# source://googleauth//lib/googleauth/external_account.rb#30 +# source://googleauth//lib/googleauth/external_account.rb#31 class Google::Auth::ExternalAccount::Credentials class << self # Create a ExternalAccount::Credentials # - # @param json_key_io [IO] an IO from which the JSON key can be read - # @param scope [String, Array, nil] the scope(s) to access - # @raise [MISSING_CREDENTIAL_SOURCE] + # @option options + # @option options + # @param options [Hash] Options for creating credentials + # @raise [Google::Auth::InitializationError] If the json file is missing, lacks required fields, + # or does not contain a supported credential source + # @return [Google::Auth::ExternalAccount::AwsCredentials, Google::Auth::ExternalAccount::IdentityPoolCredentials, Google::Auth::ExternalAccount::PluggableAuthCredentials] The appropriate external account credentials based on the credential source # - # source://googleauth//lib/googleauth/external_account.rb#40 + # source://googleauth//lib/googleauth/external_account.rb#48 def make_creds(options = T.unsafe(nil)); end # Reads the required fields from the JSON. # - # source://googleauth//lib/googleauth/external_account.rb#55 + # @param json_key_io [IO] An IO object containing the JSON key + # @raise [Google::Auth::InitializationError] If the JSON is missing required fields + # @return [Hash] The parsed JSON key + # + # source://googleauth//lib/googleauth/external_account.rb#67 def read_json_key(json_key_io); end private - # source://googleauth//lib/googleauth/external_account.rb#69 + # Creates AWS credentials from the provided user credentials + # + # @param user_creds [Hash] The user credentials containing AWS credential source information + # @param scope [String, Array, nil] The scope(s) to access + # @return [Google::Auth::ExternalAccount::AwsCredentials] The AWS credentials + # + # source://googleauth//lib/googleauth/external_account.rb#86 def make_aws_credentials(user_creds, scope); end - # @raise [INVALID_EXTERNAL_ACCOUNT_TYPE] + # Creates the appropriate external account credentials based on the credential source type # - # source://googleauth//lib/googleauth/external_account.rb#81 + # @param user_creds [Hash] The user credentials containing credential source information + # @raise [Google::Auth::InitializationError] If the credential source is not a supported type + # @return [Google::Auth::ExternalAccount::IdentityPoolCredentials, Google::Auth::ExternalAccount::PluggableAuthCredentials] The appropriate external account credentials + # + # source://googleauth//lib/googleauth/external_account.rb#105 def make_external_account_credentials(user_creds); end end end # The subject token type used for AWS external_account credentials. # -# source://googleauth//lib/googleauth/external_account.rb#32 +# source://googleauth//lib/googleauth/external_account.rb#33 Google::Auth::ExternalAccount::Credentials::AWS_SUBJECT_TOKEN_TYPE = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/external_account.rb#34 +# source://googleauth//lib/googleauth/external_account.rb#35 Google::Auth::ExternalAccount::Credentials::INVALID_EXTERNAL_ACCOUNT_TYPE = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/external_account.rb#33 +# source://googleauth//lib/googleauth/external_account.rb#34 Google::Auth::ExternalAccount::Credentials::MISSING_CREDENTIAL_SOURCE = T.let(T.unsafe(nil), String) # Authenticates requests using External Account credentials, such # as those provided by the AWS provider or OIDC provider like Azure, etc. # -# source://googleauth//lib/googleauth/external_account/external_account_utils.rb#26 +# source://googleauth//lib/googleauth/external_account/external_account_utils.rb#27 module Google::Auth::ExternalAccount::ExternalAccountUtils - # source://googleauth//lib/googleauth/external_account/external_account_utils.rb#77 + # Normalizes a timestamp value to a Time object + # + # @param time [Time, String, nil] The timestamp to normalize + # @raise [Google::Auth::CredentialsError] If the time value is not nil, Time, or String + # @return [Time, nil] The normalized timestamp or nil if input is nil + # + # source://googleauth//lib/googleauth/external_account/external_account_utils.rb#84 def normalize_timestamp(time); end # Retrieves the project ID corresponding to the workload identity or workforce pool. @@ -1466,33 +1690,40 @@ module Google::Auth::ExternalAccount::ExternalAccountUtils # call this API or the required scopes may not be selected: # https://cloud.google.com/resource-manager/reference/rest/v1/projects/get#authorization-scopes # - # @return [string, nil] The project ID corresponding to the workload identity pool or workforce pool if determinable. + # @return [String, nil] The project ID corresponding to the workload identity + # pool or workforce pool if determinable # - # source://googleauth//lib/googleauth/external_account/external_account_utils.rb#42 + # source://googleauth//lib/googleauth/external_account/external_account_utils.rb#43 def project_id; end # Retrieve the project number corresponding to workload identity pool # STS audience pattern: # `//iam.googleapis.com/projects/$PROJECT_NUMBER/locations/...` # - # @return [string, nil] + # @return [String, nil] The project number extracted from the audience string, + # or nil if it cannot be determined # - # source://googleauth//lib/googleauth/external_account/external_account_utils.rb#70 + # source://googleauth//lib/googleauth/external_account/external_account_utils.rb#72 def project_number; end - # source://googleauth//lib/googleauth/external_account/external_account_utils.rb#90 + # Extracts the service account email from the impersonation URL + # + # @return [String, nil] The service account email extracted from the + # service_account_impersonation_url, or nil if it cannot be determined + # + # source://googleauth//lib/googleauth/external_account/external_account_utils.rb#101 def service_account_email; end end # Cloud resource manager URL used to retrieve project information. # -# source://googleauth//lib/googleauth/external_account/external_account_utils.rb#28 +# source://googleauth//lib/googleauth/external_account/external_account_utils.rb#29 Google::Auth::ExternalAccount::ExternalAccountUtils::CLOUD_RESOURCE_MANAGER = T.let(T.unsafe(nil), String) # This module handles the retrieval of credentials from Google Cloud by utilizing the any 3PI # provider then exchanging the credentials for a short-lived Google Cloud access token. # -# source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#25 +# source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#26 class Google::Auth::ExternalAccount::IdentityPoolCredentials include ::Google::Auth::BaseClient include ::Google::Auth::Helpers::Connection @@ -1502,43 +1733,64 @@ class Google::Auth::ExternalAccount::IdentityPoolCredentials # Initialize from options map. # - # @param audience [string] - # @param credential_source [hash{symbol => value}] credential_source is a hash that contains either source file or url. - # credential_source_format is either text or json. To define how we parse the credential response. + # @option options + # @option options + # @param options [Hash] Configuration options + # @raise [Google::Auth::InitializationError] If credential_source format is invalid, field_name is missing, + # contains ambiguous sources, or is missing required fields # @return [IdentityPoolCredentials] a new instance of IdentityPoolCredentials # - # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#40 + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#43 def initialize(options = T.unsafe(nil)); end # Will always be nil, but method still gets used. # - # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#31 + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#32 def client_id; end # Implementation of BaseCredentials retrieve_subject_token! # - # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#54 + # @raise [Google::Auth::CredentialsError] If the token can't be parsed from JSON or is missing + # @return [String] The subject token + # + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#60 def retrieve_subject_token!; end private - # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#98 + # Reads data from a file source + # + # @raise [Google::Auth::CredentialsError] If the source file doesn't exist + # @return [Array(String, String)] The file content and file path + # + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#112 def file_data; end - # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#94 + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#104 def token_data; end - # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#104 + # Fetches data from a URL source + # + # @raise [Google::Auth::CredentialsError] If there's an error retrieving data from the URL + # or if the response is not successful + # @return [Array(String, String)] The response body and URL + # + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#126 def url_data; end - # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#73 + # Validates input + # + # @raise [Google::Auth::InitializationError] If credential_source format is invalid, field_name is missing, + # contains ambiguous sources, or is missing required fields + # + # source://googleauth//lib/googleauth/external_account/identity_pool_credentials.rb#83 def validate_credential_source; end end # This module handles the retrieval of credentials from Google Cloud by utilizing the any 3PI # provider then exchanging the credentials for a short-lived Google Cloud access token. # -# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#26 +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#27 class Google::Auth::ExternalAccount::PluggableAuthCredentials include ::Google::Auth::BaseClient include ::Google::Auth::Helpers::Connection @@ -1548,80 +1800,91 @@ class Google::Auth::ExternalAccount::PluggableAuthCredentials # Initialize from options map. # - # @param audience [string] - # @param credential_source [hash{symbol => value}] credential_source is a hash that contains either source file or url. - # credential_source_format is either text or json. To define how we parse the credential response. + # @option options + # @option options + # @param options [Hash] Configuration options + # @raise [Google::Auth::InitializationError] If executable source, command is missing, or timeout is invalid # @return [PluggableAuthCredentials] a new instance of PluggableAuthCredentials # - # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#49 + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#50 def initialize(options = T.unsafe(nil)); end # Will always be nil, but method still gets used. # - # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#40 + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#41 def client_id; end - # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#69 + # Retrieves the subject token using the credential_source object. + # + # @raise [Google::Auth::CredentialsError] If executables are not allowed, if token retrieval fails, + # or if the token is invalid + # @return [String] The retrieved subject token + # + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#78 def retrieve_subject_token!; end private - # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#130 + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#144 def inject_environment_variables; end - # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#87 + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#97 def load_subject_token_from_output_file; end - # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#105 + # @raise [CredentialsError] + # + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#115 def parse_subject_token(response); end - # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#144 + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#158 def subprocess_with_timeout(environment_vars, command, timeout_seconds); end - # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#122 + # @raise [CredentialsError] + # + # source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#136 def validate_response_schema(response); end end # constant for pluggable auth enablement in environment variable. # -# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#28 +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#29 Google::Auth::ExternalAccount::PluggableAuthCredentials::ENABLE_PLUGGABLE_ENV = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#29 +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#30 Google::Auth::ExternalAccount::PluggableAuthCredentials::EXECUTABLE_SUPPORTED_MAX_VERSION = T.let(T.unsafe(nil), Integer) -# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#30 +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#31 Google::Auth::ExternalAccount::PluggableAuthCredentials::EXECUTABLE_TIMEOUT_MILLIS_DEFAULT = T.let(T.unsafe(nil), Integer) -# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#31 +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#32 Google::Auth::ExternalAccount::PluggableAuthCredentials::EXECUTABLE_TIMEOUT_MILLIS_LOWER_BOUND = T.let(T.unsafe(nil), Integer) -# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#32 +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#33 Google::Auth::ExternalAccount::PluggableAuthCredentials::EXECUTABLE_TIMEOUT_MILLIS_UPPER_BOUND = T.let(T.unsafe(nil), Integer) -# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#33 +# source://googleauth//lib/googleauth/external_account/pluggable_credentials.rb#34 Google::Auth::ExternalAccount::PluggableAuthCredentials::ID_TOKEN_TYPE = T.let(T.unsafe(nil), Array) # Extends Signet::OAuth2::Client so that the auth token is obtained from # the GCE metadata server. # -# source://googleauth//lib/googleauth/compute_engine.rb#35 +# source://googleauth//lib/googleauth/compute_engine.rb#36 class Google::Auth::GCECredentials < ::Signet::OAuth2::Client # Construct a GCECredentials # # @return [GCECredentials] a new instance of GCECredentials # - # source://googleauth//lib/googleauth/compute_engine.rb#87 + # source://googleauth//lib/googleauth/compute_engine.rb#88 def initialize(options = T.unsafe(nil)); end # @private Temporary; remove when universe domain metadata endpoint is stable (see b/349488459). # - # source://googleauth//lib/googleauth/compute_engine.rb#84 + # source://googleauth//lib/googleauth/compute_engine.rb#85 def disable_universe_domain_check; end # @private Temporary; remove when universe domain metadata endpoint is stable (see b/349488459). # - # source://googleauth//lib/googleauth/compute_engine.rb#84 + # source://googleauth//lib/googleauth/compute_engine.rb#85 def disable_universe_domain_check=(_arg0); end # Creates a duplicate of these credentials @@ -1634,15 +1897,28 @@ class Google::Auth::GCECredentials < ::Signet::OAuth2::Client # * `:universe_domain_overridden` Whether the universe domain was # overriden during credentials creation # - # source://googleauth//lib/googleauth/compute_engine.rb#105 + # source://googleauth//lib/googleauth/compute_engine.rb#106 def duplicate(options = T.unsafe(nil)); end # Overrides the super class method to change how access tokens are # fetched. # - # source://googleauth//lib/googleauth/compute_engine.rb#129 + # @param _options [Hash] Options for token fetch (not used) + # @raise [Google::Auth::UnexpectedStatusError] On unexpected HTTP status codes + # @raise [Google::Auth::AuthorizationError] If metadata server is unavailable or returns error + # @return [Hash] The token data hash + # + # source://googleauth//lib/googleauth/compute_engine.rb#135 def fetch_access_token(_options = T.unsafe(nil)); end + # Returns the principal identifier for GCE credentials + # + # @private + # @return [Symbol] :gce to represent Google Compute Engine identity + # + # source://googleauth//lib/googleauth/compute_engine.rb#176 + def principal; end + # Overrides universe_domain getter to fetch lazily if it hasn't been # fetched yet. This is necessary specifically for Compute Engine because # the universe comes from the metadata service, and isn't known @@ -1651,7 +1927,7 @@ class Google::Auth::GCECredentials < ::Signet::OAuth2::Client # # @private # - # source://googleauth//lib/googleauth/compute_engine.rb#120 + # source://googleauth//lib/googleauth/compute_engine.rb#121 def universe_domain; end # Destructively updates these credentials. @@ -1665,12 +1941,12 @@ class Google::Auth::GCECredentials < ::Signet::OAuth2::Client # overriden during credentials creation # @return [Google::Auth::GCECredentials] # - # source://googleauth//lib/googleauth/compute_engine.rb#167 + # source://googleauth//lib/googleauth/compute_engine.rb#162 def update!(options = T.unsafe(nil)); end private - # source://googleauth//lib/googleauth/compute_engine.rb#237 + # source://googleauth//lib/googleauth/compute_engine.rb#283 def add_universe_domain_to(hash); end # The response might have been cached, which means expires_in might be @@ -1678,43 +1954,73 @@ class Google::Auth::GCECredentials < ::Signet::OAuth2::Client # We also ensure expires_in is conservative; subtracting at least 1 # second to offset any skew from metadata server latency. # - # source://googleauth//lib/googleauth/compute_engine.rb#254 + # source://googleauth//lib/googleauth/compute_engine.rb#300 def adjust_for_stale_expires_in(hash, retrieval_time); end - # source://googleauth//lib/googleauth/compute_engine.rb#216 + # Builds query parameters and endpoint for metadata request + # + # @private + # @return [Array] The query parameters and endpoint path + # + # source://googleauth//lib/googleauth/compute_engine.rb#185 + def build_metadata_request_params; end + + # Constructs a token hash from the metadata server response + # + # @param body [String] The response body from the metadata server + # @param content_type [String] The content type of the response + # @param retrieval_time [Float] The monotonic time when the response was retrieved + # @private + # @return [Hash] A hash containing: + # - access_token/id_token: The actual token depending on what was requested + # - token_type: The type of token (usually "Bearer") + # - expires_in: Seconds until token expiration (adjusted for freshness) + # - universe_domain: The universe domain for the token (if not overridden) + # + # source://googleauth//lib/googleauth/compute_engine.rb#262 def build_token_hash(body, content_type, retrieval_time); end - # source://googleauth//lib/googleauth/compute_engine.rb#207 + # Handles the response from the metadata server + # + # @param resp [Google::Cloud::Env::MetadataResponse] The metadata server response + # @private + # @raise [Google::Auth::UnexpectedStatusError, Google::Auth::AuthorizationError] On error + # @return [Hash] The token hash on success + # + # source://googleauth//lib/googleauth/compute_engine.rb#201 + def handle_metadata_response(resp); end + + # source://googleauth//lib/googleauth/compute_engine.rb#241 def log_fetch_err(_err); end - # source://googleauth//lib/googleauth/compute_engine.rb#180 + # source://googleauth//lib/googleauth/compute_engine.rb#214 def log_fetch_query; end - # source://googleauth//lib/googleauth/compute_engine.rb#198 + # source://googleauth//lib/googleauth/compute_engine.rb#232 def log_fetch_resp(resp); end - # source://googleauth//lib/googleauth/compute_engine.rb#228 + # source://googleauth//lib/googleauth/compute_engine.rb#274 def parse_encoded_token(body); end class << self # @private Unused and deprecated # - # source://googleauth//lib/googleauth/compute_engine.rb#60 + # source://googleauth//lib/googleauth/compute_engine.rb#61 def compute_auth_token_uri; end # @private Unused and deprecated # - # source://googleauth//lib/googleauth/compute_engine.rb#55 + # source://googleauth//lib/googleauth/compute_engine.rb#56 def compute_check_uri; end # @private Unused and deprecated # - # source://googleauth//lib/googleauth/compute_engine.rb#65 + # source://googleauth//lib/googleauth/compute_engine.rb#66 def compute_id_token_uri; end # @private Unused and deprecated # - # source://googleauth//lib/googleauth/compute_engine.rb#50 + # source://googleauth//lib/googleauth/compute_engine.rb#51 def metadata_host; end # Detect if this appear to be a GCE instance, by checking if metadata @@ -1723,35 +2029,35 @@ class Google::Auth::GCECredentials < ::Signet::OAuth2::Client # # @return [Boolean] # - # source://googleauth//lib/googleauth/compute_engine.rb#72 + # source://googleauth//lib/googleauth/compute_engine.rb#73 def on_gce?(_options = T.unsafe(nil), _reload = T.unsafe(nil)); end - # source://googleauth//lib/googleauth/compute_engine.rb#76 + # source://googleauth//lib/googleauth/compute_engine.rb#77 def reset_cache; end - # source://googleauth//lib/googleauth/compute_engine.rb#76 + # source://googleauth//lib/googleauth/compute_engine.rb#81 def unmemoize_all; end end end # @private Unused and deprecated but retained to prevent breaking changes # -# source://googleauth//lib/googleauth/compute_engine.rb#40 +# source://googleauth//lib/googleauth/compute_engine.rb#41 Google::Auth::GCECredentials::COMPUTE_AUTH_TOKEN_URI = T.let(T.unsafe(nil), String) # @private Unused and deprecated but retained to prevent breaking changes # -# source://googleauth//lib/googleauth/compute_engine.rb#46 +# source://googleauth//lib/googleauth/compute_engine.rb#47 Google::Auth::GCECredentials::COMPUTE_CHECK_URI = T.let(T.unsafe(nil), String) # @private Unused and deprecated but retained to prevent breaking changes # -# source://googleauth//lib/googleauth/compute_engine.rb#43 +# source://googleauth//lib/googleauth/compute_engine.rb#44 Google::Auth::GCECredentials::COMPUTE_ID_TOKEN_URI = T.let(T.unsafe(nil), String) # @private Unused and deprecated but retained to prevent breaking changes # -# source://googleauth//lib/googleauth/compute_engine.rb#37 +# source://googleauth//lib/googleauth/compute_engine.rb#38 Google::Auth::GCECredentials::DEFAULT_METADATA_HOST = T.let(T.unsafe(nil), String) # Helpers provides utility methods for Google::Auth. @@ -1844,7 +2150,7 @@ end # verifier = Google::Auth::IDTokens::Verifier key_source: source # payload = verifier.verify the_token, aud: "my-app-client-id" # -# source://googleauth//lib/googleauth/id_tokens/errors.rb#20 +# source://googleauth//lib/googleauth/id_tokens/errors.rb#22 module Google::Auth::IDTokens class << self # Reset all convenience key sources. Used for testing. @@ -1889,8 +2195,8 @@ module Google::Auth::IDTokens # provided issuers, or the verification will fail with # {Google::Auth::IDToken::IssuerMismatchError}. If `nil`, no issuer # checking is performed. Default is to check against {IAP_ISSUERS}. - # @raise [KeySourceError] if the key source failed to obtain public keys - # @raise [VerificationError] if the token verification failed. + # @raise [Google::Auth::IDTokens::KeySourceError] if the key source failed to obtain public keys + # @raise [Google::Auth::IDTokens::VerificationError] if the token verification failed. # Additional data may be available in the error subclass and message. # @return [Hash] The decoded token payload. # @@ -1916,8 +2222,8 @@ module Google::Auth::IDTokens # provided issuers, or the verification will fail with # {Google::Auth::IDToken::IssuerMismatchError}. If `nil`, no issuer # checking is performed. Default is to check against {OIDC_ISSUERS}. - # @raise [KeySourceError] if the key source failed to obtain public keys - # @raise [VerificationError] if the token verification failed. + # @raise [Google::Auth::IDTokens::KeySourceError] if the key source failed to obtain public keys + # @raise [Google::Auth::IDTokens::VerificationError] if the token verification failed. # Additional data may be available in the error subclass and message. # @return [Hash] The decoded token payload. # @@ -1930,45 +2236,45 @@ end # aggregate the keys provided by its constituent sources. Additionally, # when asked to refresh, it will refresh all its constituent sources. # -# source://googleauth//lib/googleauth/id_tokens/key_sources.rb#351 +# source://googleauth//lib/googleauth/id_tokens/key_sources.rb#357 class Google::Auth::IDTokens::AggregateKeySource # Create a key source that aggregates other key sources. # # @param sources [Array] The key sources to aggregate. # @return [AggregateKeySource] a new instance of AggregateKeySource # - # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#357 + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#363 def initialize(sources); end # Return the current keys, without attempting to refresh. # # @return [Array] # - # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#366 + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#372 def current_keys; end # Attempt to refresh keys and return the new keys. # - # @raise [KeySourceError] if key retrieval failed. + # @raise [Google::Auth::IDTokens::KeySourceError] If key retrieval failed for any source. # @return [Array] # - # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#376 + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#382 def refresh_keys; end end -# Failed to verify a token because its audience did not match. +# Failed to verify token because its audience did not match. # -# source://googleauth//lib/googleauth/id_tokens/errors.rb#49 +# source://googleauth//lib/googleauth/id_tokens/errors.rb#55 class Google::Auth::IDTokens::AudienceMismatchError < ::Google::Auth::IDTokens::VerificationError; end -# Failed to verify a token because its authorized party did not match. +# Failed to verify token because its authorized party did not match. # -# source://googleauth//lib/googleauth/id_tokens/errors.rb#54 +# source://googleauth//lib/googleauth/id_tokens/errors.rb#60 class Google::Auth::IDTokens::AuthorizedPartyMismatchError < ::Google::Auth::IDTokens::VerificationError; end -# Failed to verify a token because it is expired. +# Failed to verify token because it is expired. # -# source://googleauth//lib/googleauth/id_tokens/errors.rb#34 +# source://googleauth//lib/googleauth/id_tokens/errors.rb#40 class Google::Auth::IDTokens::ExpiredTokenError < ::Google::Auth::IDTokens::VerificationError; end # A base key source that downloads keys from a URI. Subclasses should @@ -1997,10 +2303,11 @@ class Google::Auth::IDTokens::HttpKeySource # Attempt to re-download keys (if the retry interval has expired) and # return the new keys. # - # @raise [KeySourceError] if key retrieval failed. + # @raise [Google::Auth::IDTokens::KeySourceError] If key retrieval fails, JSON parsing + # fails, or the data cannot be interpreted as keys # @return [Array] # - # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#266 + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#267 def refresh_keys; end # The URI from which to download keys. @@ -2012,7 +2319,7 @@ class Google::Auth::IDTokens::HttpKeySource protected - # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#286 + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#287 def interpret_json(_data); end end @@ -2037,14 +2344,14 @@ Google::Auth::IDTokens::IAP_ISSUERS = T.let(T.unsafe(nil), Array) # source://googleauth//lib/googleauth/id_tokens.rb#109 Google::Auth::IDTokens::IAP_JWK_URL = T.let(T.unsafe(nil), String) -# Failed to verify a token because its issuer did not match. +# Failed to verify token because its issuer did not match. # -# source://googleauth//lib/googleauth/id_tokens/errors.rb#44 +# source://googleauth//lib/googleauth/id_tokens/errors.rb#50 class Google::Auth::IDTokens::IssuerMismatchError < ::Google::Auth::IDTokens::VerificationError; end # A key source that downloads a JWK set. # -# source://googleauth//lib/googleauth/id_tokens/key_sources.rb#326 +# source://googleauth//lib/googleauth/id_tokens/key_sources.rb#332 class Google::Auth::IDTokens::JwkHttpKeySource < ::Google::Auth::IDTokens::HttpKeySource # Create a key source that downloads a JWT Set. # @@ -2054,12 +2361,12 @@ class Google::Auth::IDTokens::JwkHttpKeySource < ::Google::Auth::IDTokens::HttpK # downloads. # @return [JwkHttpKeySource] a new instance of JwkHttpKeySource # - # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#335 + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#341 def initialize(uri, retry_interval: T.unsafe(nil)); end protected - # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#341 + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#347 def interpret_json(data); end end @@ -2107,8 +2414,8 @@ class Google::Auth::IDTokens::KeyInfo # hash or an unparsed JSON string. # # @param jwk [Hash, String] The JWK specification. - # @raise [KeySourceError] If the key could not be extracted from the - # JWK. + # @raise [Google::Auth::IDTokens::KeySourceError] If the key could not be extracted from the + # JWK due to invalid type, malformed JSON, or invalid key data. # @return [KeyInfo] # # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#78 @@ -2117,9 +2424,9 @@ class Google::Auth::IDTokens::KeyInfo # Create an array of KeyInfo from a JWK Set, which may be given as # either a hash or an unparsed JSON string. # - # @param jwk [Hash, String] The JWK Set specification. - # @raise [KeySourceError] If a key could not be extracted from the - # JWK Set. + # @param jwk_set [Hash, String] The JWK Set specification. + # @raise [Google::Auth::IDTokens::KeySourceError] If a key could not be extracted from the + # JWK Set, or if the set contains no keys. # @return [Array] # # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#102 @@ -2145,8 +2452,10 @@ end # Failed to obtain keys from the key source. # -# source://googleauth//lib/googleauth/id_tokens/errors.rb#24 -class Google::Auth::IDTokens::KeySourceError < ::StandardError; end +# source://googleauth//lib/googleauth/id_tokens/errors.rb#26 +class Google::Auth::IDTokens::KeySourceError < ::StandardError + include ::Google::Auth::Error +end # The URL for Google OAuth2 V3 public certs # @@ -2162,9 +2471,9 @@ Google::Auth::IDTokens::OAUTH2_V3_CERTS_URL = T.let(T.unsafe(nil), String) # source://googleauth//lib/googleauth/id_tokens.rb#88 Google::Auth::IDTokens::OIDC_ISSUERS = T.let(T.unsafe(nil), Array) -# Failed to verify a token because its signature did not match. +# Failed to verify token because its signature did not match. # -# source://googleauth//lib/googleauth/id_tokens/errors.rb#39 +# source://googleauth//lib/googleauth/id_tokens/errors.rb#45 class Google::Auth::IDTokens::SignatureError < ::Google::Auth::IDTokens::VerificationError; end # A key source that contains a static set of keys. @@ -2190,7 +2499,7 @@ class Google::Auth::IDTokens::StaticKeySource # # @return [Array] # - # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#188 + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#189 def refresh_keys; end class << self @@ -2218,8 +2527,10 @@ end # Failed to verify a token. # -# source://googleauth//lib/googleauth/id_tokens/errors.rb#29 -class Google::Auth::IDTokens::VerificationError < ::StandardError; end +# source://googleauth//lib/googleauth/id_tokens/errors.rb#33 +class Google::Auth::IDTokens::VerificationError < ::StandardError + include ::Google::Auth::Error +end # An object that can verify ID tokens. # @@ -2253,27 +2564,27 @@ class Google::Auth::IDTokens::Verifier # @param aud [String, nil] If given, override the `aud` check. # @param azp [String, nil] If given, override the `azp` check. # @param iss [String, nil] If given, override the `iss` check. - # @raise [KeySourceError] if the key source failed to obtain public keys - # @raise [VerificationError] if the token verification failed. + # @raise [Google::Auth::IDTokens::KeySourceError] if the key source failed to obtain public keys + # @raise [Google::Auth::IDTokens::VerificationError] if the token verification failed. # Additional data may be available in the error subclass and message. # @return [Hash] the decoded payload, if verification succeeded. # - # source://googleauth//lib/googleauth/id_tokens/verifier.rb#68 + # source://googleauth//lib/googleauth/id_tokens/verifier.rb#67 def verify(token, key_source: T.unsafe(nil), aud: T.unsafe(nil), azp: T.unsafe(nil), iss: T.unsafe(nil)); end private - # source://googleauth//lib/googleauth/id_tokens/verifier.rb#91 + # source://googleauth//lib/googleauth/id_tokens/verifier.rb#90 def decode_token(token, keys, aud, azp, iss); end - # source://googleauth//lib/googleauth/id_tokens/verifier.rb#106 + # source://googleauth//lib/googleauth/id_tokens/verifier.rb#105 def normalize_and_verify_payload(payload, aud, azp, iss); end end # A key source that downloads X509 certificates. # Used by the legacy OAuth V1 public certs endpoint. # -# source://googleauth//lib/googleauth/id_tokens/key_sources.rb#295 +# source://googleauth//lib/googleauth/id_tokens/key_sources.rb#296 class Google::Auth::IDTokens::X509CertHttpKeySource < ::Google::Auth::IDTokens::HttpKeySource # Create a key source that downloads X509 certificates. # @@ -2285,12 +2596,18 @@ class Google::Auth::IDTokens::X509CertHttpKeySource < ::Google::Auth::IDTokens:: # downloads. # @return [X509CertHttpKeySource] a new instance of X509CertHttpKeySource # - # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#306 + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#307 def initialize(uri, algorithm: T.unsafe(nil), retry_interval: T.unsafe(nil)); end protected - # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#313 + # Interpret JSON data as X509 certificates + # + # @param data [Hash] The JSON data containing certificate strings + # @raise [Google::Auth::IDTokens::KeySourceError] If X509 certificates cannot be parsed + # @return [Array] Array of key info objects + # + # source://googleauth//lib/googleauth/id_tokens/key_sources.rb#319 def interpret_json(data); end end @@ -2367,6 +2684,16 @@ class Google::Auth::ImpersonatedServiceAccountCredentials # source://googleauth//lib/googleauth/impersonated_service_account.rb#166 def logger; end + # The principal behind the credentials. This class allows custom source credentials type + # that might not implement `principal`, in which case `:unknown` is returned. + # + # @private + # @return [String, Symbol] The string representation of the principal, + # the token type in lieu of the principal, or :unknown if source principal is unknown. + # + # source://googleauth//lib/googleauth/impersonated_service_account.rb#200 + def principal; end + # @return [Array, String] The scope(s) required for the impersonated access token, # indicating the permissions needed for the short-lived token # @@ -2389,13 +2716,13 @@ class Google::Auth::ImpersonatedServiceAccountCredentials private - # source://googleauth//lib/googleauth/impersonated_service_account.rb#275 + # source://googleauth//lib/googleauth/impersonated_service_account.rb#322 def deep_hash_normalize(old_hash); end # Setter for the expires_at value that makes sure it is converted # to Time object. # - # source://googleauth//lib/googleauth/impersonated_service_account.rb#236 + # source://googleauth//lib/googleauth/impersonated_service_account.rb#282 def expires_at=(new_expires_at); end # Generates a new impersonation access token by exchanging the source credentials' token @@ -2406,31 +2733,60 @@ class Google::Auth::ImpersonatedServiceAccountCredentials # its expiration time are cached for subsequent use. # # @param _options [Hash] (optional) Additional options for token retrieval (currently unused). - # @raise [Signet::UnexpectedStatusError] If the response status is 403 or 500. - # @raise [Signet::AuthorizationError] For other unexpected response statuses. + # @private + # @raise [Google::Auth::UnexpectedStatusError] If the response status is 403 or 500. + # @raise [Google::Auth::AuthorizationError] For other unexpected response statuses. # @return [String] The newly generated impersonation access token. # - # source://googleauth//lib/googleauth/impersonated_service_account.rb#209 + # source://googleauth//lib/googleauth/impersonated_service_account.rb#224 def fetch_access_token!(_options = T.unsafe(nil)); end + # Creates and raises an appropriate error based on the response. + # + # @param resp [Faraday::Response] The HTTP response + # @param error_class [Class] The error class to instantiate + # @private + # @raise [StandardError] The appropriate error with details + # + # source://googleauth//lib/googleauth/impersonated_service_account.rb#271 + def handle_error_response(resp, error_class); end + + # Makes the HTTP request to the impersonation endpoint. + # + # @param auth_header [Hash] The authorization header containing the source token + # @private + # @return [Faraday::Response] The HTTP response from the impersonation endpoint + # + # source://googleauth//lib/googleauth/impersonated_service_account.rb#257 + def make_impersonation_request(auth_header); end + # Normalizes a timestamp to a Time object. # # @param time [Time, String, nil] The timestamp to normalize. - # @raise [RuntimeError] If the input is not a Time, String, or nil. + # @raise [Google::Auth::CredentialsError] If the input is not a Time, String, or nil. # @return [Time, nil] The normalized Time object, or nil if the input is nil. # - # source://googleauth//lib/googleauth/impersonated_service_account.rb#253 + # source://googleauth//lib/googleauth/impersonated_service_account.rb#299 def normalize_timestamp(time); end + # Prepares the authorization header for the impersonation request + # by fetching a token from source credentials. + # + # @private + # @return [Hash] The authorization header with the source credentials' token + # + # source://googleauth//lib/googleauth/impersonated_service_account.rb#246 + def prepare_auth_header; end + # Convert all keys in this hash (nested) to symbols for uniform retrieval # - # source://googleauth//lib/googleauth/impersonated_service_account.rb#267 + # source://googleauth//lib/googleauth/impersonated_service_account.rb#314 def recursive_hash_normalize_keys(val); end # Returns the type of token (access_token). # This method is needed for BaseClient. # - # source://googleauth//lib/googleauth/impersonated_service_account.rb#242 + # source://googleauth//lib/googleauth/impersonated_service_account.rb#288 def token_type; end class << self @@ -2462,22 +2818,38 @@ Google::Auth::ImpersonatedServiceAccountCredentials::ERROR_SUFFIX = T.let(T.unsa # source://googleauth//lib/googleauth/impersonated_service_account.rb#33 Google::Auth::ImpersonatedServiceAccountCredentials::IAM_SCOPE = T.let(T.unsafe(nil), Array) +# Error raised during Credentials initialization. +# All new code should use this instead of ArgumentError during initializtion. +# +# source://googleauth//lib/googleauth/errors.rb#72 +class Google::Auth::InitializationError < ::StandardError + include ::Google::Auth::Error +end + # JsonKeyReader contains the behaviour used to read private key and # client email fields from the service account # -# source://googleauth//lib/googleauth/json_key_reader.rb#21 +# source://googleauth//lib/googleauth/json_key_reader.rb#23 module Google::Auth::JsonKeyReader - # source://googleauth//lib/googleauth/json_key_reader.rb#22 + # Reads a JSON key from an IO object and extracts common fields. + # + # @param json_key_io [IO] An IO object containing the JSON key + # @raise [Google::Auth::InitializationError] If client_email or private_key + # fields are missing from the JSON + # @return [Array(String, String, String, String, String)] An array containing: + # private_key, client_email, project_id, quota_project_id, and universe_domain + # + # source://googleauth//lib/googleauth/json_key_reader.rb#31 def read_json_key(json_key_io); end end -# source://googleauth//lib/googleauth/application_default.rb#22 +# source://googleauth//lib/googleauth/application_default.rb#23 Google::Auth::NOT_FOUND_ERROR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/compute_engine.rb#22 +# source://googleauth//lib/googleauth/compute_engine.rb#23 Google::Auth::NO_METADATA_SERVER_ERROR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/oauth2/sts_client.rb#19 +# source://googleauth//lib/googleauth/oauth2/sts_client.rb#20 module Google::Auth::OAuth2; end # OAuth 2.0 Token Exchange Spec. @@ -2492,16 +2864,19 @@ module Google::Auth::OAuth2; end # The returned dictionary response will be based on the [rfc8693 section 2.2.1] # (https://tools.ietf.org/html/rfc8693#section-2.2.1) spec JSON response. # -# source://googleauth//lib/googleauth/oauth2/sts_client.rb#32 +# source://googleauth//lib/googleauth/oauth2/sts_client.rb#33 class Google::Auth::OAuth2::STSClient include ::Google::Auth::Helpers::Connection # Create a new instance of the STSClient. # - # @param token_exchange_endpoint [String] The token exchange endpoint. + # @option options + # @option options + # @param options [Hash] Configuration options + # @raise [Google::Auth::InitializationError] If token_exchange_endpoint is nil # @return [STSClient] a new instance of STSClient # - # source://googleauth//lib/googleauth/oauth2/sts_client.rb#41 + # source://googleauth//lib/googleauth/oauth2/sts_client.rb#44 def initialize(options = T.unsafe(nil)); end # Exchanges the provided token for another type of token based on the @@ -2519,20 +2894,35 @@ class Google::Auth::OAuth2::STSClient # @param requested_token_type [String] The optional OAuth 2.0 token exchange requested token type. # @param additional_headers [Hash] : # The optional additional headers to pass to the token exchange endpoint. + # @raise [ArgumentError] If required options are missing + # @raise [Google::Auth::AuthorizationError] If the token exchange request fails # @return [Hash] A hash containing the token exchange response. # - # source://googleauth//lib/googleauth/oauth2/sts_client.rb#70 + # source://googleauth//lib/googleauth/oauth2/sts_client.rb#75 def exchange_token(options = T.unsafe(nil)); end private - # source://googleauth//lib/googleauth/oauth2/sts_client.rb#92 + # source://googleauth//lib/googleauth/oauth2/sts_client.rb#97 def make_request(options = T.unsafe(nil)); end end -# source://googleauth//lib/googleauth/oauth2/sts_client.rb#35 +# source://googleauth//lib/googleauth/oauth2/sts_client.rb#36 Google::Auth::OAuth2::STSClient::URLENCODED_HEADERS = T.let(T.unsafe(nil), Hash) +# An error indicating the client failed to parse a value. +# Maintains backward compatibility with Signet. +# +# Should not be used in the new code, even when wrapping `Signet::ParseError`. +# New code should use CredentialsError instead. +# +# source://googleauth//lib/googleauth/errors.rb#113 +class Google::Auth::ParseError < ::Signet::ParseError + include ::Google::Auth::Error + include ::Google::Auth::DetailedError + extend ::Google::Auth::DetailedError::ClassMethods +end + # Small utility for normalizing scopes into canonical form. # # The canonical form of scopes is as an array of strings, each in the form @@ -2549,7 +2939,7 @@ module Google::Auth::ScopeUtil # it via whitespace. Does not interpret aliases. # # @param scope [String, Array] Input scope(s) - # @raise ArgumentError If the input is not a string or array of strings + # @raise [ArgumentError] If the input is not a string or array of strings # @return [Array] Always an array of strings # # source://googleauth//lib/googleauth/scope_util.rb#62 @@ -2588,13 +2978,13 @@ class Google::Auth::ServiceAccountCredentials < ::Signet::OAuth2::Client # @return [ServiceAccountCredentials] a new instance of ServiceAccountCredentials # - # source://googleauth//lib/googleauth/service_account.rb#119 + # source://googleauth//lib/googleauth/service_account.rb#123 def initialize(options = T.unsafe(nil)); end # Extends the base class to use a transient # ServiceAccountJwtHeaderCredentials for certain cases. # - # source://googleauth//lib/googleauth/service_account.rb#128 + # source://googleauth//lib/googleauth/service_account.rb#132 def apply!(a_hash, opts = T.unsafe(nil)); end # Creates a duplicate of these credentials @@ -2610,7 +3000,7 @@ class Google::Auth::ServiceAccountCredentials < ::Signet::OAuth2::Client # * `quota_project_id` the quota project id to use # during the authentication # - # source://googleauth//lib/googleauth/service_account.rb#98 + # source://googleauth//lib/googleauth/service_account.rb#99 def duplicate(options = T.unsafe(nil)); end # @return [Boolean] @@ -2622,9 +3012,17 @@ class Google::Auth::ServiceAccountCredentials < ::Signet::OAuth2::Client # # @return [Boolean] # - # source://googleauth//lib/googleauth/service_account.rb#137 + # source://googleauth//lib/googleauth/service_account.rb#141 def needs_access_token?; end + # Returns the client email as the principal for service account credentials + # + # @private + # @return [String] the email address of the service account + # + # source://googleauth//lib/googleauth/service_account.rb#174 + def principal; end + # Returns the value of attribute project_id. # # source://googleauth//lib/googleauth/service_account.rb#41 @@ -2649,29 +3047,32 @@ class Google::Auth::ServiceAccountCredentials < ::Signet::OAuth2::Client # during the authentication # @return [Google::Auth::ServiceAccountCredentials] # - # source://googleauth//lib/googleauth/service_account.rb#154 + # source://googleauth//lib/googleauth/service_account.rb#158 def update!(options = T.unsafe(nil)); end private - # source://googleauth//lib/googleauth/service_account.rb#169 + # source://googleauth//lib/googleauth/service_account.rb#180 def apply_self_signed_jwt!(a_hash); end class << self # Creates a ServiceAccountCredentials. # - # @param json_key_io [IO] an IO from which the JSON key can be read + # @param json_key_io [IO] An IO object containing the JSON key # @param scope [string|array|nil] the scope(s) to access - # @raise [ArgumentError] + # @raise [ArgumentError] If both scope and target_audience are specified # - # source://googleauth//lib/googleauth/service_account.rb#56 + # source://googleauth//lib/googleauth/service_account.rb#57 def make_creds(options = T.unsafe(nil)); end # Handles certain escape sequences that sometimes appear in input. # Specifically, interprets the "\n" sequence for newline, and removes # enclosing quotes. # - # source://googleauth//lib/googleauth/service_account.rb#113 + # @param str [String] The string to unescape + # @return [String] The unescaped string + # + # source://googleauth//lib/googleauth/service_account.rb#117 def unescape(str); end end end @@ -2696,7 +3097,7 @@ class Google::Auth::ServiceAccountJwtHeaderCredentials # Initializes a ServiceAccountJwtHeaderCredentials. # - # @param json_key_io [IO] an IO from which the JSON key can be read + # @param json_key_io [IO] An IO object containing the JSON key # @return [ServiceAccountJwtHeaderCredentials] a new instance of ServiceAccountJwtHeaderCredentials # # source://googleauth//lib/googleauth/service_account_jwt_header.rb#60 @@ -2753,6 +3154,14 @@ class Google::Auth::ServiceAccountJwtHeaderCredentials # source://googleauth//lib/googleauth/service_account_jwt_header.rb#135 def new_jwt_token(jwt_aud_uri = T.unsafe(nil), options = T.unsafe(nil)); end + # Returns the client email as the principal for service account JWT header credentials + # + # @private + # @return [String] the email address of the service account + # + # source://googleauth//lib/googleauth/service_account_jwt_header.rb#165 + def principal; end + # Returns the value of attribute project_id. # # source://googleauth//lib/googleauth/service_account_jwt_header.rb#43 @@ -2783,18 +3192,18 @@ class Google::Auth::ServiceAccountJwtHeaderCredentials private - # source://googleauth//lib/googleauth/service_account_jwt_header.rb#164 + # source://googleauth//lib/googleauth/service_account_jwt_header.rb#171 def deep_hash_normalize(old_hash); end # Convert all keys in this hash (nested) to symbols for uniform retrieval # - # source://googleauth//lib/googleauth/service_account_jwt_header.rb#171 + # source://googleauth//lib/googleauth/service_account_jwt_header.rb#178 def recursive_hash_normalize_keys(val); end class << self # Create a ServiceAccountJwtHeaderCredentials. # - # @param json_key_io [IO] an IO from which the JSON key can be read + # @param json_key_io [IO] An IO object containing the JSON key # @param scope [string|array|nil] the scope(s) to access # # source://googleauth//lib/googleauth/service_account_jwt_header.rb#52 @@ -2817,9 +3226,22 @@ Google::Auth::ServiceAccountJwtHeaderCredentials::SIGNING_ALGORITHM = T.let(T.un # source://googleauth//lib/googleauth/service_account_jwt_header.rb#36 Google::Auth::ServiceAccountJwtHeaderCredentials::TOKEN_CRED_URI = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/compute_engine.rb#28 +# source://googleauth//lib/googleauth/compute_engine.rb#29 Google::Auth::UNEXPECTED_ERROR_SUFFIX = T.let(T.unsafe(nil), String) +# An error indicating that the server sent an unexpected http status. +# Maintains backward compatibility with Signet. +# +# Should not be used in the new code, even when wrapping `Signet::UnexpectedStatusError`. +# New code should use CredentialsError instead. +# +# source://googleauth//lib/googleauth/errors.rb#102 +class Google::Auth::UnexpectedStatusError < ::Signet::UnexpectedStatusError + include ::Google::Auth::Error + include ::Google::Auth::DetailedError + extend ::Google::Auth::DetailedError::ClassMethods +end + # Handles an interactive 3-Legged-OAuth2 (3LO) user consent authorization. # # Example usage for a simple command line app: @@ -2851,10 +3273,10 @@ class Google::Auth::UserAuthorizer # argument callback_uri. # @param code_verifier [String] Random string of 43-128 chars used to verify the key exchange using # PKCE. - # @raise [NIL_CLIENT_ID_ERROR] + # @raise [Google::Auth::InitializationError] If client_id is nil or scope is nil # @return [UserAuthorizer] a new instance of UserAuthorizer # - # source://googleauth//lib/googleauth/user_authorizer.rb#66 + # source://googleauth//lib/googleauth/user_authorizer.rb#68 def initialize(client_id, scope, token_store, legacy_callback_uri = T.unsafe(nil), callback_uri: T.unsafe(nil), code_verifier: T.unsafe(nil)); end # The code verifier for PKCE for OAuth 2.0. When set, the @@ -2864,7 +3286,7 @@ class Google::Auth::UserAuthorizer # # @param new_code_erifier [String|nil] # - # source://googleauth//lib/googleauth/user_authorizer.rb#261 + # source://googleauth//lib/googleauth/user_authorizer.rb#270 def code_verifier=(new_code_verifier); end # Exchanges an authorization code returned in the oauth callback. @@ -2880,7 +3302,7 @@ class Google::Auth::UserAuthorizer # callback uri is a relative. # @return [Google::Auth::UserRefreshCredentials] Credentials if exchange is successful # - # source://googleauth//lib/googleauth/user_authorizer.rb#213 + # source://googleauth//lib/googleauth/user_authorizer.rb#220 def get_and_store_credentials_from_code(options = T.unsafe(nil)); end # Build the URL for requesting authorization. @@ -2895,7 +3317,7 @@ class Google::Auth::UserAuthorizer # @param additional_parameters [Hash] Additional query parameters to be added to the authorization URL. # @return [String] Authorization url # - # source://googleauth//lib/googleauth/user_authorizer.rb#97 + # source://googleauth//lib/googleauth/user_authorizer.rb#99 def get_authorization_url(options = T.unsafe(nil)); end # Fetch stored credentials for the user. @@ -2903,9 +3325,10 @@ class Google::Auth::UserAuthorizer # @param user_id [String] Unique ID of the user for loading/storing credentials. # @param scope [Array, String] If specified, only returns credentials that have all # the requested scopes + # @raise [Google::Auth::CredentialsError] If the client ID in the stored token doesn't match the configured client ID # @return [Google::Auth::UserRefreshCredentials] Stored credentials, nil if none present # - # source://googleauth//lib/googleauth/user_authorizer.rb#136 + # source://googleauth//lib/googleauth/user_authorizer.rb#140 def get_credentials(user_id, scope = T.unsafe(nil)); end # Exchanges an authorization code returned in the oauth callback @@ -2921,15 +3344,24 @@ class Google::Auth::UserAuthorizer # endpoint request. # @return [Google::Auth::UserRefreshCredentials] Credentials if exchange is successful # - # source://googleauth//lib/googleauth/user_authorizer.rb#177 + # source://googleauth//lib/googleauth/user_authorizer.rb#184 def get_credentials_from_code(options = T.unsafe(nil)); end + # Returns the principal identifier for this authorizer + # The client ID is used as the principal for user authorizers + # + # @private + # @return [String] The client ID associated with this authorizer + # + # source://googleauth//lib/googleauth/user_authorizer.rb#286 + def principal; end + # Revokes a user's credentials. This both revokes the actual # grant as well as removes the token from the token store. # # @param user_id [String] Unique ID of the user for loading/storing credentials. # - # source://googleauth//lib/googleauth/user_authorizer.rb#223 + # source://googleauth//lib/googleauth/user_authorizer.rb#230 def revoke_authorization(user_id); end # Store credentials for a user. Generally not required to be @@ -2938,16 +3370,17 @@ class Google::Auth::UserAuthorizer # # @param user_id [String] Unique ID of the user for loading/storing credentials. # @param credentials [Google::Auth::UserRefreshCredentials] Credentials to store. + # @return [Google::Auth::UserRefreshCredentials] The stored credentials # - # source://googleauth//lib/googleauth/user_authorizer.rb#243 + # source://googleauth//lib/googleauth/user_authorizer.rb#252 def store_credentials(user_id, credentials); end private - # source://googleauth//lib/googleauth/user_authorizer.rb#322 + # source://googleauth//lib/googleauth/user_authorizer.rb#350 def code_challenge_method; end - # source://googleauth//lib/googleauth/user_authorizer.rb#317 + # source://googleauth//lib/googleauth/user_authorizer.rb#345 def generate_code_challenge(code_verifier); end # Begin watching a credential for refreshes so the access token can be @@ -2956,37 +3389,38 @@ class Google::Auth::UserAuthorizer # @param user_id [String] Unique ID of the user for loading/storing credentials. # @param credentials [Google::Auth::UserRefreshCredentials] Credentials to store. # - # source://googleauth//lib/googleauth/user_authorizer.rb#293 + # source://googleauth//lib/googleauth/user_authorizer.rb#313 def monitor_credentials(user_id, credentials); end # Resolve the redirect uri against a base. # # @param base_url [String] Absolute URL to resolve the callback against if necessary. + # @raise [Google::Auth::CredentialsError] If the callback URI is relative and base_url is nil or not absolute # @return [String] Redirect URI # - # source://googleauth//lib/googleauth/user_authorizer.rb#306 + # source://googleauth//lib/googleauth/user_authorizer.rb#328 def redirect_uri_for(base_url); end # @param user_id [String] Unique ID of the user for loading/storing credentials. # @private Fetch stored token with given user_id - # @raise [NIL_USER_ID_ERROR] + # @raise [Google::Auth::InitializationError] If user_id is nil or token_store is nil # @return [String] The saved token from @token_store # - # source://googleauth//lib/googleauth/user_authorizer.rb#279 + # source://googleauth//lib/googleauth/user_authorizer.rb#299 def stored_token(user_id); end # Check if URI is Google's postmessage flow (not a valid redirect_uri by spec, but allowed) # # @return [Boolean] # - # source://googleauth//lib/googleauth/user_authorizer.rb#313 + # source://googleauth//lib/googleauth/user_authorizer.rb#341 def uri_is_postmessage?(uri); end class << self # Generate the code verifier needed to be sent while fetching # authorization URL. # - # source://googleauth//lib/googleauth/user_authorizer.rb#267 + # source://googleauth//lib/googleauth/user_authorizer.rb#276 def generate_code_verifier; end end end @@ -3019,13 +3453,13 @@ Google::Auth::UserAuthorizer::NIL_USER_ID_ERROR = T.let(T.unsafe(nil), String) # # cf [Application Default Credentials](https://cloud.google.com/docs/authentication/production) # -# source://googleauth//lib/googleauth/user_refresh.rb#33 +# source://googleauth//lib/googleauth/user_refresh.rb#34 class Google::Auth::UserRefreshCredentials < ::Signet::OAuth2::Client extend ::Google::Auth::CredentialsLoader # @return [UserRefreshCredentials] a new instance of UserRefreshCredentials # - # source://googleauth//lib/googleauth/user_refresh.rb#78 + # source://googleauth//lib/googleauth/user_refresh.rb#82 def initialize(options = T.unsafe(nil)); end # Creates a duplicate of these credentials @@ -3039,7 +3473,7 @@ class Google::Auth::UserRefreshCredentials < ::Signet::OAuth2::Client # * `quota_project_id` the quota project id to use # during the authentication # - # source://googleauth//lib/googleauth/user_refresh.rb#98 + # source://googleauth//lib/googleauth/user_refresh.rb#102 def duplicate(options = T.unsafe(nil)); end # Verifies that a credential grants the requested scope @@ -3047,22 +3481,34 @@ class Google::Auth::UserRefreshCredentials < ::Signet::OAuth2::Client # @param required_scope [Array, String] Scope to verify # @return [Boolean] True if scope is granted # - # source://googleauth//lib/googleauth/user_refresh.rb#132 + # source://googleauth//lib/googleauth/user_refresh.rb#143 def includes_scope?(required_scope); end + # Returns the client ID as the principal for user refresh credentials + # + # @private + # @return [String, Symbol] the client ID or :user_refresh if not available + # + # source://googleauth//lib/googleauth/user_refresh.rb#175 + def principal; end + # Returns the value of attribute project_id. # - # source://googleauth//lib/googleauth/user_refresh.rb#38 + # source://googleauth//lib/googleauth/user_refresh.rb#39 def project_id; end # Returns the value of attribute quota_project_id. # - # source://googleauth//lib/googleauth/user_refresh.rb#39 + # source://googleauth//lib/googleauth/user_refresh.rb#40 def quota_project_id; end # Revokes the credential # - # source://googleauth//lib/googleauth/user_refresh.rb#109 + # @option options + # @param options [Hash] Options for revoking the credential + # @raise [Google::Auth::AuthorizationError] If the revocation request fails + # + # source://googleauth//lib/googleauth/user_refresh.rb#117 def revoke!(options = T.unsafe(nil)); end # Destructively updates these credentials @@ -3077,33 +3523,36 @@ class Google::Auth::UserRefreshCredentials < ::Signet::OAuth2::Client # during the authentication # @return [Google::Auth::UserRefreshCredentials] # - # source://googleauth//lib/googleauth/user_refresh.rb#149 + # source://googleauth//lib/googleauth/user_refresh.rb#160 def update!(options = T.unsafe(nil)); end class << self # Create a UserRefreshCredentials. # - # @param json_key_io [IO] an IO from which the JSON key can be read + # @param json_key_io [IO] An IO object containing the JSON key # @param scope [string|array|nil] the scope(s) to access # - # source://googleauth//lib/googleauth/user_refresh.rb#45 + # source://googleauth//lib/googleauth/user_refresh.rb#46 def make_creds(options = T.unsafe(nil)); end - # Reads the client_id, client_secret and refresh_token fields from the - # JSON key. + # Reads a JSON key from an IO object and extracts required fields. # - # source://googleauth//lib/googleauth/user_refresh.rb#69 + # @param json_key_io [IO] An IO object containing the JSON key + # @raise [Google::Auth::InitializationError] If the JSON is missing required fields + # @return [Hash] The parsed JSON key + # + # source://googleauth//lib/googleauth/user_refresh.rb#73 def read_json_key(json_key_io); end end end -# source://googleauth//lib/googleauth/user_refresh.rb#35 +# source://googleauth//lib/googleauth/user_refresh.rb#36 Google::Auth::UserRefreshCredentials::AUTHORIZATION_URI = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/user_refresh.rb#36 +# source://googleauth//lib/googleauth/user_refresh.rb#37 Google::Auth::UserRefreshCredentials::REVOKE_TOKEN_URI = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/user_refresh.rb#34 +# source://googleauth//lib/googleauth/user_refresh.rb#35 Google::Auth::UserRefreshCredentials::TOKEN_CRED_URI = T.let(T.unsafe(nil), String) # Varation on {Google::Auth::UserAuthorizer} adapted for Rack based @@ -3134,7 +3583,7 @@ Google::Auth::UserRefreshCredentials::TOKEN_CRED_URI = T.let(T.unsafe(nil), Stri # @note Requires sessions are enabled # @see CallbackApp # -# source://googleauth//lib/googleauth/web_user_authorizer.rb#50 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#51 class Google::Auth::WebUserAuthorizer < ::Google::Auth::UserAuthorizer # Initialize the authorizer # @@ -3149,7 +3598,7 @@ class Google::Auth::WebUserAuthorizer < ::Google::Auth::UserAuthorizer # PKCE. # @return [WebUserAuthorizer] a new instance of WebUserAuthorizer # - # source://googleauth//lib/googleauth/web_user_authorizer.rb#104 + # source://googleauth//lib/googleauth/web_user_authorizer.rb#107 def initialize(client_id, scope, token_store, legacy_callback_uri = T.unsafe(nil), callback_uri: T.unsafe(nil), code_verifier: T.unsafe(nil)); end # Build the URL for requesting authorization. @@ -3162,10 +3611,10 @@ class Google::Auth::WebUserAuthorizer < ::Google::Auth::UserAuthorizer # @param scope [String, Array] Authorization scope to request. Overrides the instance scopes if # not nil. # @param state [Hash] Optional key-values to be returned to the oauth callback. - # @raise [NIL_REQUEST_ERROR] + # @raise [Google::Auth::InitializationError] If request is nil or request.session is nil # @return [String] Authorization url # - # source://googleauth//lib/googleauth/web_user_authorizer.rb#154 + # source://googleauth//lib/googleauth/web_user_authorizer.rb#159 def get_authorization_url(options = T.unsafe(nil)); end # Fetch stored credentials for the user from the given request session. @@ -3175,11 +3624,11 @@ class Google::Auth::WebUserAuthorizer < ::Google::Auth::UserAuthorizer # on the base class behavior of reading from the token store. # @param scope [Array, String] If specified, only returns credentials that have all the \ # requested scopes - # @raise [Signet::AuthorizationError] May raise an error if an authorization code is present in the session - # and exchange of the code fails + # @raise [Google::Auth::AuthorizationError] If the authorization code is missing, there's an error in the request, + # or the state token doesn't match # @return [Google::Auth::UserRefreshCredentials] Stored credentials, nil if none present # - # source://googleauth//lib/googleauth/web_user_authorizer.rb#187 + # source://googleauth//lib/googleauth/web_user_authorizer.rb#192 def get_credentials(user_id, request = T.unsafe(nil), scope = T.unsafe(nil)); end # Handle the result of the oauth callback. Exchanges the authorization @@ -3189,23 +3638,28 @@ class Google::Auth::WebUserAuthorizer < ::Google::Auth::UserAuthorizer # @param request [Rack::Request] Current request # @return [Google::Auth::UserRefreshCredentials, String] credentials & next URL to redirect to # - # source://googleauth//lib/googleauth/web_user_authorizer.rb#123 + # source://googleauth//lib/googleauth/web_user_authorizer.rb#126 def handle_auth_callback(user_id, request); end class << self # Returns the value of attribute default. # - # source://googleauth//lib/googleauth/web_user_authorizer.rb#68 + # source://googleauth//lib/googleauth/web_user_authorizer.rb#69 def default; end # Sets the attribute default # # @param value the value to set the attribute default to. # - # source://googleauth//lib/googleauth/web_user_authorizer.rb#68 + # source://googleauth//lib/googleauth/web_user_authorizer.rb#69 def default=(_arg0); end - # source://googleauth//lib/googleauth/web_user_authorizer.rb#205 + # Extract the callback state from the request + # + # @param request [Rack::Request] Current request + # @return [Array] Callback state and redirect URI + # + # source://googleauth//lib/googleauth/web_user_authorizer.rb#216 def extract_callback_state(request); end # Handle the result of the oauth callback. This version defers the @@ -3218,33 +3672,44 @@ class Google::Auth::WebUserAuthorizer < ::Google::Auth::UserAuthorizer # {#handle_auth_callback} instead. # # @param request [Rack::Request] Current request + # @return [String, nil] Redirect URI if successfully extracted, nil otherwise # - # source://googleauth//lib/googleauth/web_user_authorizer.rb#82 + # source://googleauth//lib/googleauth/web_user_authorizer.rb#85 def handle_auth_callback_deferred(request); end + # Returns the principal identifier for this web authorizer + # This is a class method that returns a symbol since + # we might not have a client_id in the static callback context + # + # @return [Symbol] The symbol for web user authorization + # + # source://googleauth//lib/googleauth/web_user_authorizer.rb#233 + def principal; end + # Verifies the results of an authorization callback # # @option state # @option state # @param state [Hash] Callback state # @param request [Rack::Request] Current request - # @raise [Signet::AuthorizationError] + # @raise [Google::Auth::AuthorizationError] If the authorization code is missing, there's an error in the callback state, + # or the state token doesn't match # - # source://googleauth//lib/googleauth/web_user_authorizer.rb#227 + # source://googleauth//lib/googleauth/web_user_authorizer.rb#250 def validate_callback_state(state, request); end end end -# source://googleauth//lib/googleauth/web_user_authorizer.rb#63 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#64 Google::Auth::WebUserAuthorizer::AUTHORIZATION_ERROR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#52 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#53 Google::Auth::WebUserAuthorizer::AUTH_CODE_KEY = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#55 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#56 Google::Auth::WebUserAuthorizer::CALLBACK_STATE_KEY = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#56 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#57 Google::Auth::WebUserAuthorizer::CURRENT_URI_KEY = T.let(T.unsafe(nil), String) # Small Rack app which acts as the default callback handler for the app. @@ -3269,9 +3734,9 @@ Google::Auth::WebUserAuthorizer::CURRENT_URI_KEY = T.let(T.unsafe(nil), String) # # @see Google::Auth::WebUserAuthorizer # -# source://googleauth//lib/googleauth/web_user_authorizer.rb#258 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#295 class Google::Auth::WebUserAuthorizer::CallbackApp - # source://googleauth//lib/googleauth/web_user_authorizer.rb#285 + # source://googleauth//lib/googleauth/web_user_authorizer.rb#322 def call(env); end class << self @@ -3286,164 +3751,70 @@ class Google::Auth::WebUserAuthorizer::CallbackApp # @param env [Hash] Rack environment # @return [Array] HTTP response # - # source://googleauth//lib/googleauth/web_user_authorizer.rb#275 + # source://googleauth//lib/googleauth/web_user_authorizer.rb#312 def call(env); end end end -# source://googleauth//lib/googleauth/web_user_authorizer.rb#261 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#298 Google::Auth::WebUserAuthorizer::CallbackApp::ERROR_STATUS = T.let(T.unsafe(nil), Integer) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#259 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#296 Google::Auth::WebUserAuthorizer::CallbackApp::LOCATION_HEADER = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#260 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#297 Google::Auth::WebUserAuthorizer::CallbackApp::REDIR_STATUS = T.let(T.unsafe(nil), Integer) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#53 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#54 Google::Auth::WebUserAuthorizer::ERROR_CODE_KEY = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#64 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#65 Google::Auth::WebUserAuthorizer::INVALID_STATE_TOKEN_ERROR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#62 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#63 Google::Auth::WebUserAuthorizer::MISSING_AUTH_CODE_ERROR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#60 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#61 Google::Auth::WebUserAuthorizer::NIL_REQUEST_ERROR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#61 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#62 Google::Auth::WebUserAuthorizer::NIL_SESSION_ERROR = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#58 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#59 Google::Auth::WebUserAuthorizer::SCOPE_KEY = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#54 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#55 Google::Auth::WebUserAuthorizer::SESSION_ID_KEY = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#51 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#52 Google::Auth::WebUserAuthorizer::STATE_PARAM = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/web_user_authorizer.rb#57 +# source://googleauth//lib/googleauth/web_user_authorizer.rb#58 Google::Auth::WebUserAuthorizer::XSRF_KEY = T.let(T.unsafe(nil), String) -# source://googleauth//lib/googleauth/signet.rb#20 -module Signet - class << self - # source://signet/0.19.0/lib/signet.rb#18 - def parse_auth_param_list(auth_param_string); end - end -end +# source://googleauth//lib/googleauth/signet.rb#21 +module Signet; end # OAuth2 supports OAuth2 authentication. # -# source://googleauth//lib/googleauth/signet.rb#22 -module Signet::OAuth2 - class << self - # source://signet/0.19.0/lib/signet/oauth_2.rb#137 - def generate_authorization_uri(authorization_uri, parameters = T.unsafe(nil)); end - - # source://signet/0.19.0/lib/signet/oauth_2.rb#98 - def generate_basic_authorization_header(client_id, client_password); end - - # source://signet/0.19.0/lib/signet/oauth_2.rb#117 - def generate_bearer_authorization_header(access_token, auth_params = T.unsafe(nil)); end - - # source://signet/0.19.0/lib/signet/oauth_2.rb#26 - def parse_authorization_header(field_value); end - - # source://signet/0.19.0/lib/signet/oauth_2.rb#53 - def parse_basic_credentials(credential_string); end - - # source://signet/0.19.0/lib/signet/oauth_2.rb#59 - def parse_bearer_credentials(credential_string); end - - # source://signet/0.19.0/lib/signet/oauth_2.rb#75 - def parse_credentials(body, content_type); end - - # source://signet/0.19.0/lib/signet/oauth_2.rb#71 - def parse_oauth_challenge(challenge_string); end - - # source://signet/0.19.0/lib/signet/oauth_2.rb#41 - def parse_www_authenticate_header(field_value); end - end -end +# source://googleauth//lib/googleauth/signet.rb#23 +module Signet::OAuth2; end # Signet::OAuth2::Client creates an OAuth2 client # # This reopens Client to add #apply and #apply! methods which update a # hash with the fetched authentication token. # -# source://googleauth//lib/googleauth/signet.rb#27 +# source://googleauth//lib/googleauth/signet.rb#28 class Signet::OAuth2::Client include ::Google::Auth::BaseClient - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#97 - def initialize(options = T.unsafe(nil)); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#715 - def access_token; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#724 - def access_token=(new_access_token); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#342 - def access_type; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#351 - def access_type=(new_access_type); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#676 - def additional_parameters; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#685 - def additional_parameters=(new_additional_parameters); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#561 - def audience; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#571 - def audience=(new_audience); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#271 - def authorization_uri(options = T.unsafe(nil)); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#307 - def authorization_uri=(new_authorization_uri); end - - # source://googleauth//lib/googleauth/signet.rb#102 + # source://googleauth//lib/googleauth/signet.rb#103 def build_default_connection; end - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#883 - def clear_credentials!; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#359 - def client_id; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#368 - def client_id=(new_client_id); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#376 - def client_secret; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#385 - def client_secret=(new_client_secret); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#462 - def code; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#472 - def code=(new_code); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#330 - def coerce_uri(incoming_uri); end - - # source://googleauth//lib/googleauth/signet.rb#57 + # source://googleauth//lib/googleauth/signet.rb#58 def configure_connection(options); end - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#753 - def decoded_id_token(public_key = T.unsafe(nil), options = T.unsafe(nil), &keyfinder); end - # Creates a duplicate of these credentials # without the Signet::OAuth2::Client-specific # transient state (e.g. cached tokens) @@ -3451,236 +3822,73 @@ class Signet::OAuth2::Client # @param options [Hash] Overrides for the credentials parameters. # @see Signet::OAuth2::Client#update! # - # source://googleauth//lib/googleauth/signet.rb#142 + # source://googleauth//lib/googleauth/signet.rb#160 def duplicate(options = T.unsafe(nil)); end - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#864 - def expired?; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#817 - def expires_at; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#827 - def expires_at=(new_expires_at); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#770 - def expires_in; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#785 - def expires_in=(new_expires_in); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#877 - def expires_within?(sec); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#608 - def expiry; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#618 - def expiry=(new_expiry); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#653 - def extension_parameters; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#663 - def extension_parameters=(new_extension_parameters); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1022 - def fetch_access_token(options = T.unsafe(nil)); end - - # source://googleauth//lib/googleauth/signet.rb#72 + # source://googleauth//lib/googleauth/signet.rb#73 def fetch_access_token!(options = T.unsafe(nil)); end - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1190 - def fetch_protected_resource(options = T.unsafe(nil)); end - - # source://googleauth//lib/googleauth/signet.rb#85 + # source://googleauth//lib/googleauth/signet.rb#86 def generate_access_token_request(options = T.unsafe(nil)); end - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1114 - def generate_authenticated_request(options = T.unsafe(nil)); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#987 + # source://googleauth//lib/googleauth/signet.rb#85 def googleauth_orig_generate_access_token_request(options = T.unsafe(nil)); end - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#902 - def grant_type; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#916 - def grant_type=(new_grant_type); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#835 - def granted_scopes; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#845 - def granted_scopes=(new_granted_scopes); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#732 - def id_token; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#741 - def id_token=(new_id_token); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#799 - def issued_at; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#808 - def issued_at=(new_issued_at); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#542 - def issuer; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#552 - def issuer=(new_issuer); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1075 + # source://googleauth//lib/googleauth/signet.rb#72 def orig_fetch_access_token!(options = T.unsafe(nil)); end - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#523 - def password; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#533 - def password=(new_password); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#580 - def person; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#590 - def person=(new_person); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#580 - def principal; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#590 - def principal=(new_person); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#480 - def redirect_uri; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#489 - def redirect_uri=(new_redirect_uri); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1090 - def refresh!(options = T.unsafe(nil)); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#698 - def refresh_token; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#707 - def refresh_token=(new_refresh_token); end - - # source://googleauth//lib/googleauth/signet.rb#112 + # Retries the provided block with exponential backoff, handling and wrapping errors. + # + # @param max_retry_count [Integer] The maximum number of retries before giving up + # @raise [Google::Auth::AuthorizationError] If a Signet::AuthorizationError occurs or if retries are exhausted + # @raise [Google::Auth::ParseError] If a Signet::ParseError occurs during token parsing + # @return [Object] The result of the block if successful + # @yield The block to execute and potentially retry + # + # source://googleauth//lib/googleauth/signet.rb#122 def retry_with_error(max_retry_count = T.unsafe(nil)); end - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#394 - def scope; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#405 - def scope=(new_scope); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#644 - def signing_algorithm; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#627 - def signing_key; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#637 - def signing_key=(new_key); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#444 - def state; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#453 - def state=(new_state); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#601 - def sub; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#601 - def sub=(_arg0); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#428 - def target_audience; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#436 - def target_audience=(new_target_audience); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#950 - def to_json(*_args); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#926 - def to_jwt(options = T.unsafe(nil)); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#315 - def token_credential_uri; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#324 - def token_credential_uri=(new_token_credential_uri); end - # The token type as symbol, either :id_token or :access_token # - # source://googleauth//lib/googleauth/signet.rb#64 + # source://googleauth//lib/googleauth/signet.rb#65 def token_type; end # Set the universe domain # - # source://googleauth//lib/googleauth/signet.rb#69 + # source://googleauth//lib/googleauth/signet.rb#70 def universe_domain; end # Set the universe domain # - # source://googleauth//lib/googleauth/signet.rb#69 + # source://googleauth//lib/googleauth/signet.rb#70 def universe_domain=(_arg0); end - # source://googleauth//lib/googleauth/signet.rb#42 + # source://googleauth//lib/googleauth/signet.rb#43 def update!(options = T.unsafe(nil)); end - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#185 + # source://googleauth//lib/googleauth/signet.rb#42 def update_signet_base(options = T.unsafe(nil)); end - # source://googleauth//lib/googleauth/signet.rb#32 + # source://googleauth//lib/googleauth/signet.rb#33 def update_token!(options = T.unsafe(nil)); end - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#241 + # source://googleauth//lib/googleauth/signet.rb#31 def update_token_signet_base(options = T.unsafe(nil)); end - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#504 - def username; end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#514 - def username=(new_username); end - private - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1233 - def deep_hash_normalize(old_hash); end - - # source://googleauth//lib/googleauth/signet.rb#174 + # source://googleauth//lib/googleauth/signet.rb#192 def expires_at_from_id_token(id_token); end - # source://googleauth//lib/googleauth/signet.rb#201 + # source://googleauth//lib/googleauth/signet.rb#219 def log_auth_error(err); end - # source://googleauth//lib/googleauth/signet.rb#185 + # source://googleauth//lib/googleauth/signet.rb#203 def log_response(token_response); end - # source://googleauth//lib/googleauth/signet.rb#219 + # source://googleauth//lib/googleauth/signet.rb#237 def log_retries_exhausted(err); end - # source://googleauth//lib/googleauth/signet.rb#210 + # source://googleauth//lib/googleauth/signet.rb#228 def log_transient_error(err); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1239 - def normalize_timestamp(time); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1225 - def recursive_hash_normalize_keys(val); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1256 - def set_relative_expires_at(issued_at, expires_in); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1220 - def uri_is_oob?(uri); end - - # source://signet/0.19.0/lib/signet/oauth_2/client.rb#1213 - def uri_is_postmessage?(uri); end end diff --git a/sorbet/rbi/gems/hashery@2.1.2.rbi b/sorbet/rbi/gems/hashery@2.1.2.rbi index 399cd990..a0ec158b 100644 --- a/sorbet/rbi/gems/hashery@2.1.2.rbi +++ b/sorbet/rbi/gems/hashery@2.1.2.rbi @@ -26,7 +26,7 @@ class Hashery::LRUHash # source://hashery//lib/hashery/lru_hash.rb#114 def [](key); end - # source://hashery//lib/hashery/lru_hash.rb#197 + # source://hashery//lib/hashery/lru_hash.rb#219 def []=(key, value); end # source://hashery//lib/hashery/lru_hash.rb#165 @@ -69,7 +69,7 @@ class Hashery::LRUHash # # Same as each pair. # - # source://hashery//lib/hashery/lru_hash.rb#43 + # source://hashery//lib/hashery/lru_hash.rb#56 def each; end # Iterate over each key. @@ -107,10 +107,10 @@ class Hashery::LRUHash # @return [Boolean] # - # source://hashery//lib/hashery/lru_hash.rb#137 + # source://hashery//lib/hashery/lru_hash.rb#143 def include?(key); end - # source://hashery//lib/hashery/lru_hash.rb#264 + # source://hashery//lib/hashery/lru_hash.rb#270 def inspect; end # source://hashery//lib/hashery/lru_hash.rb#190 @@ -118,7 +118,7 @@ class Hashery::LRUHash # @return [Boolean] # - # source://hashery//lib/hashery/lru_hash.rb#137 + # source://hashery//lib/hashery/lru_hash.rb#141 def key?(key); end # source://hashery//lib/hashery/lru_hash.rb#123 @@ -134,7 +134,7 @@ class Hashery::LRUHash # @return [Boolean] # - # source://hashery//lib/hashery/lru_hash.rb#137 + # source://hashery//lib/hashery/lru_hash.rb#142 def member?(key); end # source://hashery//lib/hashery/lru_hash.rb#177 @@ -165,7 +165,7 @@ class Hashery::LRUHash # @return [Boolean] # - # source://hashery//lib/hashery/lru_hash.rb#148 + # source://hashery//lib/hashery/lru_hash.rb#156 def value?(value); end # source://hashery//lib/hashery/lru_hash.rb#130 @@ -226,34 +226,46 @@ class Hashery::LRUHash::Node < ::Struct # Returns the value of attribute key # # @return [Object] the current value of key + # + # source://hashery//lib/hashery/lru_hash.rb#337 def key; end # Sets the attribute key # # @param value [Object] the value to set the attribute key to. # @return [Object] the newly set value + # + # source://hashery//lib/hashery/lru_hash.rb#337 def key=(_); end # Returns the value of attribute pred # # @return [Object] the current value of pred + # + # source://hashery//lib/hashery/lru_hash.rb#337 def pred; end # Sets the attribute pred # # @param value [Object] the value to set the attribute pred to. # @return [Object] the newly set value + # + # source://hashery//lib/hashery/lru_hash.rb#337 def pred=(_); end # Returns the value of attribute succ # # @return [Object] the current value of succ + # + # source://hashery//lib/hashery/lru_hash.rb#337 def succ; end # Sets the attribute succ # # @param value [Object] the value to set the attribute succ to. # @return [Object] the newly set value + # + # source://hashery//lib/hashery/lru_hash.rb#337 def succ=(_); end # source://hashery//lib/hashery/lru_hash.rb#338 @@ -262,19 +274,32 @@ class Hashery::LRUHash::Node < ::Struct # Returns the value of attribute value # # @return [Object] the current value of value + # + # source://hashery//lib/hashery/lru_hash.rb#337 def value; end # Sets the attribute value # # @param value [Object] the value to set the attribute value to. # @return [Object] the newly set value + # + # source://hashery//lib/hashery/lru_hash.rb#337 def value=(_); end class << self + # source://hashery//lib/hashery/lru_hash.rb#337 def [](*_arg0); end + + # source://hashery//lib/hashery/lru_hash.rb#337 def inspect; end + + # source://hashery//lib/hashery/lru_hash.rb#337 def keyword_init?; end + + # source://hashery//lib/hashery/lru_hash.rb#337 def members; end + + # source://hashery//lib/hashery/lru_hash.rb#337 def new(*_arg0); end end end diff --git a/sorbet/rbi/gems/httpclient@2.9.0.rbi b/sorbet/rbi/gems/httpclient@2.9.0.rbi deleted file mode 100644 index d22d0786..00000000 --- a/sorbet/rbi/gems/httpclient@2.9.0.rbi +++ /dev/null @@ -1,9 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `httpclient` gem. -# Please instead update this file by running `bin/tapioca gem httpclient`. - - -# THIS IS AN EMPTY RBI FILE. -# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/i18n@1.14.7.rbi b/sorbet/rbi/gems/i18n@1.14.7.rbi index 72a32f16..faf9d0f7 100644 --- a/sorbet/rbi/gems/i18n@1.14.7.rbi +++ b/sorbet/rbi/gems/i18n@1.14.7.rbi @@ -13,22 +13,46 @@ class GetText::PoParser < ::Racc::Parser # source://i18n//lib/i18n/gettext/po_parser.rb#19 def _(x); end + # source://i18n//lib/i18n/gettext/po_parser.rb#282 def _reduce_10(val, _values, result); end + + # source://i18n//lib/i18n/gettext/po_parser.rb#295 def _reduce_12(val, _values, result); end + + # source://i18n//lib/i18n/gettext/po_parser.rb#302 def _reduce_13(val, _values, result); end + + # source://i18n//lib/i18n/gettext/po_parser.rb#309 def _reduce_14(val, _values, result); end + + # source://i18n//lib/i18n/gettext/po_parser.rb#316 def _reduce_15(val, _values, result); end + + # source://i18n//lib/i18n/gettext/po_parser.rb#235 def _reduce_5(val, _values, result); end + + # source://i18n//lib/i18n/gettext/po_parser.rb#246 def _reduce_8(val, _values, result); end + + # source://i18n//lib/i18n/gettext/po_parser.rb#264 def _reduce_9(val, _values, result); end # source://i18n//lib/i18n/gettext/po_parser.rb#323 def _reduce_none(val, _values, result); end + # source://i18n//lib/i18n/gettext/po_parser.rb#23 def next_token; end + + # source://i18n//lib/i18n/gettext/po_parser.rb#23 def on_comment(comment); end + + # source://i18n//lib/i18n/gettext/po_parser.rb#23 def on_message(msgid, msgstr); end + + # source://i18n//lib/i18n/gettext/po_parser.rb#23 def parse(str, data, ignore_fuzzy = T.unsafe(nil)); end + + # source://i18n//lib/i18n/gettext/po_parser.rb#23 def unescape(orig); end end @@ -230,7 +254,7 @@ module I18n::Backend::Base # Loads a YAML translations file. The data must have locales as # toplevel keys. # - # source://i18n//lib/i18n/backend/base.rb#261 + # source://i18n//lib/i18n/backend/base.rb#272 def load_yaml(filename); end # Loads a YAML translations file. The data must have locales as @@ -276,7 +300,7 @@ module I18n::Backend::Base # given options. If it is a Proc then it will be evaluated. All other # subjects will be returned directly. # - # source://i18n//lib/i18n/backend/base.rb#150 + # source://i18n//lib/i18n/backend/base.rb#172 def resolve_entry(locale, object, subject, options = T.unsafe(nil)); end # @return [Boolean] @@ -811,7 +835,7 @@ class I18n::Backend::KeyValue::SubtreeProxy # @return [Boolean] # - # source://i18n//lib/i18n/backend/key_value.rb#183 + # source://i18n//lib/i18n/backend/key_value.rb#186 def kind_of?(klass); end # @return [Boolean] @@ -1195,10 +1219,10 @@ end # source://i18n//lib/i18n.rb#55 module I18n::Base - # source://i18n//lib/i18n.rb#70 + # source://i18n//lib/i18n.rb#69 def available_locales; end - # source://i18n//lib/i18n.rb#74 + # source://i18n//lib/i18n.rb#69 def available_locales=(value); end # @return [Boolean] @@ -1206,10 +1230,10 @@ module I18n::Base # source://i18n//lib/i18n.rb#386 def available_locales_initialized?; end - # source://i18n//lib/i18n.rb#70 + # source://i18n//lib/i18n.rb#69 def backend; end - # source://i18n//lib/i18n.rb#74 + # source://i18n//lib/i18n.rb#69 def backend=(value); end # Gets I18n configuration object. @@ -1222,16 +1246,16 @@ module I18n::Base # source://i18n//lib/i18n.rb#62 def config=(value); end - # source://i18n//lib/i18n.rb#70 + # source://i18n//lib/i18n.rb#69 def default_locale; end - # source://i18n//lib/i18n.rb#74 + # source://i18n//lib/i18n.rb#69 def default_locale=(value); end - # source://i18n//lib/i18n.rb#70 + # source://i18n//lib/i18n.rb#69 def default_separator; end - # source://i18n//lib/i18n.rb#74 + # source://i18n//lib/i18n.rb#69 def default_separator=(value); end # Tells the backend to load translations now. Used in situations like the @@ -1241,7 +1265,7 @@ module I18n::Base # source://i18n//lib/i18n.rb#91 def eager_load!; end - # source://i18n//lib/i18n.rb#70 + # source://i18n//lib/i18n.rb#69 def enforce_available_locales; end # Raises an InvalidLocale exception when the passed locale is not available. @@ -1249,13 +1273,13 @@ module I18n::Base # source://i18n//lib/i18n.rb#380 def enforce_available_locales!(locale); end - # source://i18n//lib/i18n.rb#74 + # source://i18n//lib/i18n.rb#69 def enforce_available_locales=(value); end - # source://i18n//lib/i18n.rb#70 + # source://i18n//lib/i18n.rb#69 def exception_handler; end - # source://i18n//lib/i18n.rb#74 + # source://i18n//lib/i18n.rb#69 def exception_handler=(value); end # Returns true if a translation exists for a given key, otherwise returns false. @@ -1295,19 +1319,19 @@ module I18n::Base # # @raise [Disabled] # - # source://i18n//lib/i18n.rb#335 + # source://i18n//lib/i18n.rb#343 def l(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end - # source://i18n//lib/i18n.rb#70 + # source://i18n//lib/i18n.rb#69 def load_path; end - # source://i18n//lib/i18n.rb#74 + # source://i18n//lib/i18n.rb#69 def load_path=(value); end - # source://i18n//lib/i18n.rb#70 + # source://i18n//lib/i18n.rb#69 def locale; end - # source://i18n//lib/i18n.rb#74 + # source://i18n//lib/i18n.rb#69 def locale=(value); end # Returns true when the passed locale, which can be either a String or a @@ -1457,13 +1481,13 @@ module I18n::Base # # @raise [Disabled] # - # source://i18n//lib/i18n.rb#211 + # source://i18n//lib/i18n.rb#226 def t(key = T.unsafe(nil), throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end # Wrapper for translate that adds :raise => true. With # this option, if no translation is found, it will raise I18n::MissingTranslationData # - # source://i18n//lib/i18n.rb#230 + # source://i18n//lib/i18n.rb#233 def t!(key, **options); end # Translates, pluralizes and interpolates a given key using a given locale, @@ -1889,13 +1913,13 @@ module I18n::Gettext::Helpers # source://i18n//lib/i18n/gettext/helpers.rb#17 def N_(msgsid); end - # source://i18n//lib/i18n/gettext/helpers.rb#21 + # source://i18n//lib/i18n/gettext/helpers.rb#24 def _(msgid, options = T.unsafe(nil)); end # source://i18n//lib/i18n/gettext/helpers.rb#21 def gettext(msgid, options = T.unsafe(nil)); end - # source://i18n//lib/i18n/gettext/helpers.rb#38 + # source://i18n//lib/i18n/gettext/helpers.rb#41 def n_(msgid, msgid_plural, n = T.unsafe(nil)); end # source://i18n//lib/i18n/gettext/helpers.rb#38 @@ -1905,7 +1929,7 @@ module I18n::Gettext::Helpers # npgettext('Fruits', 'apple', 'apples', 2) # npgettext('Fruits', ['apple', 'apples'], 2) # - # source://i18n//lib/i18n/gettext/helpers.rb#61 + # source://i18n//lib/i18n/gettext/helpers.rb#72 def np_(msgctxt, msgid, msgid_plural, n = T.unsafe(nil)); end # Method signatures: @@ -1919,7 +1943,7 @@ module I18n::Gettext::Helpers # nsgettext('Fruits|apple', 'apples', 2) # nsgettext(['Fruits|apple', 'apples'], 2) # - # source://i18n//lib/i18n/gettext/helpers.rb#46 + # source://i18n//lib/i18n/gettext/helpers.rb#56 def ns_(msgid, msgid_plural, n = T.unsafe(nil), separator = T.unsafe(nil)); end # Method signatures: @@ -1929,13 +1953,13 @@ module I18n::Gettext::Helpers # source://i18n//lib/i18n/gettext/helpers.rb#46 def nsgettext(msgid, msgid_plural, n = T.unsafe(nil), separator = T.unsafe(nil)); end - # source://i18n//lib/i18n/gettext/helpers.rb#32 + # source://i18n//lib/i18n/gettext/helpers.rb#36 def p_(msgctxt, msgid); end # source://i18n//lib/i18n/gettext/helpers.rb#32 def pgettext(msgctxt, msgid); end - # source://i18n//lib/i18n/gettext/helpers.rb#26 + # source://i18n//lib/i18n/gettext/helpers.rb#30 def s_(msgid, separator = T.unsafe(nil)); end # source://i18n//lib/i18n/gettext/helpers.rb#26 @@ -2246,7 +2270,7 @@ module I18n::MissingTranslation::Base # source://i18n//lib/i18n/exceptions.rb#80 def to_exception; end - # source://i18n//lib/i18n/exceptions.rb#65 + # source://i18n//lib/i18n/exceptions.rb#78 def to_s; end end diff --git a/sorbet/rbi/gems/inertia_rails@3.7.1.rbi b/sorbet/rbi/gems/inertia_rails@3.11.0.rbi similarity index 59% rename from sorbet/rbi/gems/inertia_rails@3.7.1.rbi rename to sorbet/rbi/gems/inertia_rails@3.11.0.rbi index c9064c0f..9a38c203 100644 --- a/sorbet/rbi/gems/inertia_rails@3.7.1.rbi +++ b/sorbet/rbi/gems/inertia_rails@3.11.0.rbi @@ -27,30 +27,33 @@ end # source://inertia_rails//lib/inertia_rails/base_prop.rb#3 module InertiaRails class << self - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#30 + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#33 def always(&block); end - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#18 + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#21 def configuration; end # @yield [CONFIGURATION] # - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#14 + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#17 def configure; end - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#38 - def defer(group: T.unsafe(nil), merge: T.unsafe(nil), &block); end + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#41 + def deep_merge(match_on: T.unsafe(nil), &block); end - # source://inertia_rails//lib/inertia_rails.rb#29 + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#45 + def defer(group: T.unsafe(nil), merge: T.unsafe(nil), deep_merge: T.unsafe(nil), match_on: T.unsafe(nil), &block); end + + # source://inertia_rails//lib/inertia_rails.rb#25 def deprecator; end - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#22 + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#25 def lazy(value = T.unsafe(nil), &block); end - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#34 - def merge(&block); end + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#37 + def merge(match_on: T.unsafe(nil), &block); end - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#26 + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#29 def optional(&block); end end end @@ -89,98 +92,116 @@ class InertiaRails::Configuration # @raise [ArgumentError] # @return [Configuration] a new instance of Configuration # - # source://inertia_rails//lib/inertia_rails/configuration.rb#52 + # source://inertia_rails//lib/inertia_rails/configuration.rb#61 def initialize(controller: T.unsafe(nil), **attrs); end - # source://inertia_rails//lib/inertia_rails/configuration.rb#61 + # source://inertia_rails//lib/inertia_rails/configuration.rb#104 + def always_include_errors_hash; end + + # source://inertia_rails//lib/inertia_rails/configuration.rb#108 + def always_include_errors_hash=(value); end + + # source://inertia_rails//lib/inertia_rails/configuration.rb#70 def bind_controller(controller); end - # source://inertia_rails//lib/inertia_rails/configuration.rb#85 + # source://inertia_rails//lib/inertia_rails/configuration.rb#94 def component_path_resolver(path:, action:); end - # source://inertia_rails//lib/inertia_rails/configuration.rb#95 + # source://inertia_rails//lib/inertia_rails/configuration.rb#108 def component_path_resolver=(value); end - # source://inertia_rails//lib/inertia_rails/configuration.rb#91 + # source://inertia_rails//lib/inertia_rails/configuration.rb#104 def deep_merge_shared_data; end - # source://inertia_rails//lib/inertia_rails/configuration.rb#95 + # source://inertia_rails//lib/inertia_rails/configuration.rb#108 def deep_merge_shared_data=(value); end - # source://inertia_rails//lib/inertia_rails/configuration.rb#91 + # source://inertia_rails//lib/inertia_rails/configuration.rb#104 def default_render; end - # source://inertia_rails//lib/inertia_rails/configuration.rb#95 + # source://inertia_rails//lib/inertia_rails/configuration.rb#108 def default_render=(value); end - # source://inertia_rails//lib/inertia_rails/configuration.rb#91 + # source://inertia_rails//lib/inertia_rails/configuration.rb#104 def encrypt_history; end - # source://inertia_rails//lib/inertia_rails/configuration.rb#95 + # source://inertia_rails//lib/inertia_rails/configuration.rb#108 def encrypt_history=(value); end - # source://inertia_rails//lib/inertia_rails/configuration.rb#65 + # source://inertia_rails//lib/inertia_rails/configuration.rb#74 def freeze; end - # source://inertia_rails//lib/inertia_rails/configuration.rb#91 + # source://inertia_rails//lib/inertia_rails/configuration.rb#104 def layout; end - # source://inertia_rails//lib/inertia_rails/configuration.rb#95 + # source://inertia_rails//lib/inertia_rails/configuration.rb#108 def layout=(value); end - # source://inertia_rails//lib/inertia_rails/configuration.rb#75 + # source://inertia_rails//lib/inertia_rails/configuration.rb#84 def merge(config); end - # source://inertia_rails//lib/inertia_rails/configuration.rb#70 + # source://inertia_rails//lib/inertia_rails/configuration.rb#79 def merge!(config); end - # source://inertia_rails//lib/inertia_rails/configuration.rb#91 + # source://inertia_rails//lib/inertia_rails/configuration.rb#104 + def parent_controller; end + + # source://inertia_rails//lib/inertia_rails/configuration.rb#108 + def parent_controller=(value); end + + # source://inertia_rails//lib/inertia_rails/configuration.rb#98 + def prop_transformer(props:); end + + # source://inertia_rails//lib/inertia_rails/configuration.rb#108 + def prop_transformer=(value); end + + # source://inertia_rails//lib/inertia_rails/configuration.rb#104 def ssr_enabled; end - # source://inertia_rails//lib/inertia_rails/configuration.rb#95 + # source://inertia_rails//lib/inertia_rails/configuration.rb#108 def ssr_enabled=(value); end - # source://inertia_rails//lib/inertia_rails/configuration.rb#91 + # source://inertia_rails//lib/inertia_rails/configuration.rb#104 def ssr_url; end - # source://inertia_rails//lib/inertia_rails/configuration.rb#95 + # source://inertia_rails//lib/inertia_rails/configuration.rb#108 def ssr_url=(value); end - # source://inertia_rails//lib/inertia_rails/configuration.rb#91 + # source://inertia_rails//lib/inertia_rails/configuration.rb#104 def version; end - # source://inertia_rails//lib/inertia_rails/configuration.rb#95 + # source://inertia_rails//lib/inertia_rails/configuration.rb#108 def version=(value); end # Internal: Finalizes the configuration for a specific controller. # - # source://inertia_rails//lib/inertia_rails/configuration.rb#80 + # source://inertia_rails//lib/inertia_rails/configuration.rb#89 def with_defaults(config); end protected # Returns the value of attribute controller. # - # source://inertia_rails//lib/inertia_rails/configuration.rb#49 + # source://inertia_rails//lib/inertia_rails/configuration.rb#58 def controller; end # Returns the value of attribute options. # - # source://inertia_rails//lib/inertia_rails/configuration.rb#50 + # source://inertia_rails//lib/inertia_rails/configuration.rb#59 def options; end private - # source://inertia_rails//lib/inertia_rails/configuration.rb#102 + # source://inertia_rails//lib/inertia_rails/configuration.rb#115 def evaluate_option(value); end class << self - # source://inertia_rails//lib/inertia_rails/configuration.rb#33 + # source://inertia_rails//lib/inertia_rails/configuration.rb#42 def default; end private - # source://inertia_rails//lib/inertia_rails/configuration.rb#39 + # source://inertia_rails//lib/inertia_rails/configuration.rb#48 def env_options; end end end @@ -188,86 +209,100 @@ end # source://inertia_rails//lib/inertia_rails/configuration.rb#5 InertiaRails::Configuration::DEFAULTS = T.let(T.unsafe(nil), Hash) -# source://inertia_rails//lib/inertia_rails/configuration.rb#30 +# source://inertia_rails//lib/inertia_rails/configuration.rb#39 InertiaRails::Configuration::OPTION_NAMES = T.let(T.unsafe(nil), Array) -# source://inertia_rails//lib/inertia_rails/controller.rb#6 +# source://inertia_rails//lib/inertia_rails/controller.rb#7 module InertiaRails::Controller extend ::ActiveSupport::Concern mixes_in_class_methods ::InertiaRails::Controller::ClassMethods - # source://inertia_rails//lib/inertia_rails/controller.rb#117 + # source://inertia_rails//lib/inertia_rails/controller.rb#118 def default_render; end - # source://inertia_rails//lib/inertia_rails/controller.rb#125 + # source://inertia_rails//lib/inertia_rails/controller.rb#131 + def inertia_meta; end + + # source://inertia_rails//lib/inertia_rails/controller.rb#126 def redirect_to(options = T.unsafe(nil), response_options = T.unsafe(nil)); end private - # source://inertia_rails//lib/inertia_rails/controller.rb#158 + # source://inertia_rails//lib/inertia_rails/controller.rb#178 def capture_inertia_session_options(options); end - # source://inertia_rails//lib/inertia_rails/controller.rb#137 + # source://inertia_rails//lib/inertia_rails/controller.rb#142 def inertia_configuration; end - # source://inertia_rails//lib/inertia_rails/controller.rb#153 + # source://inertia_rails//lib/inertia_rails/controller.rb#173 def inertia_location(url); end - # source://inertia_rails//lib/inertia_rails/controller.rb#141 + # source://inertia_rails//lib/inertia_rails/controller.rb#146 def inertia_shared_data; end - # source://inertia_rails//lib/inertia_rails/controller.rb#132 + # source://inertia_rails//lib/inertia_rails/controller.rb#137 def inertia_view_assigns; end end -# source://inertia_rails//lib/inertia_rails/controller.rb#17 +# source://inertia_rails//lib/inertia_rails/controller.rb#18 module InertiaRails::Controller::ClassMethods - # source://inertia_rails//lib/inertia_rails/controller.rb#50 + # source://inertia_rails//lib/inertia_rails/controller.rb#51 def _inertia_configuration; end - # source://inertia_rails//lib/inertia_rails/controller.rb#57 + # source://inertia_rails//lib/inertia_rails/controller.rb#58 def _inertia_shared_data; end - # source://inertia_rails//lib/inertia_rails/controller.rb#33 + # source://inertia_rails//lib/inertia_rails/controller.rb#34 def inertia_config(**attrs); end - # source://inertia_rails//lib/inertia_rails/controller.rb#18 + # source://inertia_rails//lib/inertia_rails/controller.rb#19 def inertia_share(hash = T.unsafe(nil), **props, &block); end - # source://inertia_rails//lib/inertia_rails/controller.rb#43 + # source://inertia_rails//lib/inertia_rails/controller.rb#44 def use_inertia_instance_props; end private - # source://inertia_rails//lib/inertia_rails/controller.rb#77 + # source://inertia_rails//lib/inertia_rails/controller.rb#78 def extract_inertia_share_options(props); end - # source://inertia_rails//lib/inertia_rails/controller.rb#103 + # source://inertia_rails//lib/inertia_rails/controller.rb#104 def filter_to_proc(filter); end - # source://inertia_rails//lib/inertia_rails/controller.rb#71 + # source://inertia_rails//lib/inertia_rails/controller.rb#72 def push_to_inertia_share(**attrs, &block); end - # source://inertia_rails//lib/inertia_rails/controller.rb#96 + # source://inertia_rails//lib/inertia_rails/controller.rb#97 def transform_inertia_share_option(options, from, to); end end # source://inertia_rails//lib/inertia_rails/defer_prop.rb#4 class InertiaRails::DeferProp < ::InertiaRails::IgnoreOnFirstLoadProp + # @raise [ArgumentError] # @return [DeferProp] a new instance of DeferProp # # source://inertia_rails//lib/inertia_rails/defer_prop.rb#9 - def initialize(group: T.unsafe(nil), merge: T.unsafe(nil), &block); end + def initialize(group: T.unsafe(nil), merge: T.unsafe(nil), deep_merge: T.unsafe(nil), match_on: T.unsafe(nil), &block); end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/defer_prop.rb#24 + def deep_merge?; end # Returns the value of attribute group. # # source://inertia_rails//lib/inertia_rails/defer_prop.rb#7 def group; end + # Returns the value of attribute match_on. + # + # source://inertia_rails//lib/inertia_rails/defer_prop.rb#7 + def match_on; end + # @return [Boolean] # - # source://inertia_rails//lib/inertia_rails/defer_prop.rb#17 + # source://inertia_rails//lib/inertia_rails/defer_prop.rb#20 def merge?; end end @@ -275,19 +310,9 @@ end InertiaRails::DeferProp::DEFAULT_GROUP = T.let(T.unsafe(nil), String) # source://inertia_rails//lib/inertia_rails/engine.rb#5 -class InertiaRails::Engine < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end +class InertiaRails::Engine < ::Rails::Engine; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end - -# source://inertia_rails//lib/inertia_rails.rb#27 +# source://inertia_rails//lib/inertia_rails.rb#23 class InertiaRails::Error < ::StandardError; end # source://inertia_rails//lib/inertia_rails/helper.rb#3 @@ -295,6 +320,17 @@ module InertiaRails::Helper # source://inertia_rails//lib/inertia_rails/helper.rb#8 def inertia_headers; end + # source://inertia_rails//lib/inertia_rails/helper.rb#23 + def inertia_meta_tags; end + + # source://inertia_rails//lib/inertia_rails/helper.rb#19 + def inertia_page; end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/helper.rb#15 + def inertia_rendering?; end + # source://inertia_rails//lib/inertia_rails/helper.rb#4 def inertia_ssr_head; end end @@ -359,15 +395,105 @@ end class InertiaRails::MergeProp < ::InertiaRails::BaseProp # @return [MergeProp] a new instance of MergeProp # + # source://inertia_rails//lib/inertia_rails/merge_prop.rb#7 + def initialize(deep_merge: T.unsafe(nil), match_on: T.unsafe(nil), &block); end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/merge_prop.rb#17 + def deep_merge?; end + + # Returns the value of attribute match_on. + # # source://inertia_rails//lib/inertia_rails/merge_prop.rb#5 - def initialize(*_arg0); end + def match_on; end # @return [Boolean] # - # source://inertia_rails//lib/inertia_rails/merge_prop.rb#10 + # source://inertia_rails//lib/inertia_rails/merge_prop.rb#13 def merge?; end end +# source://inertia_rails//lib/inertia_rails/meta_tag.rb#4 +class InertiaRails::MetaTag + # @return [MetaTag] a new instance of MetaTag + # + # source://inertia_rails//lib/inertia_rails/meta_tag.rb#15 + def initialize(tag_name: T.unsafe(nil), head_key: T.unsafe(nil), allow_duplicates: T.unsafe(nil), type: T.unsafe(nil), **tag_data); end + + # source://inertia_rails//lib/inertia_rails/meta_tag.rb#56 + def [](key); end + + # source://inertia_rails//lib/inertia_rails/meta_tag.rb#28 + def as_json(_options = T.unsafe(nil)); end + + # source://inertia_rails//lib/inertia_rails/meta_tag.rb#39 + def to_tag(tag_helper); end + + private + + # source://inertia_rails//lib/inertia_rails/meta_tag.rb#80 + def determine_tag_type(type); end + + # source://inertia_rails//lib/inertia_rails/meta_tag.rb#86 + def generate_head_key; end + + # source://inertia_rails//lib/inertia_rails/meta_tag.rb#95 + def generate_meta_head_key; end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/meta_tag.rb#76 + def shortened_title_tag?(tag_name, tag_data); end + + # source://inertia_rails//lib/inertia_rails/meta_tag.rb#90 + def tag_digest; end + + # source://inertia_rails//lib/inertia_rails/meta_tag.rb#67 + def tag_script_inner_content(content); end +end + +# source://inertia_rails//lib/inertia_rails/meta_tag.rb#11 +InertiaRails::MetaTag::DEFAULT_SCRIPT_TYPE = T.let(T.unsafe(nil), String) + +# source://inertia_rails//lib/inertia_rails/meta_tag.rb#13 +InertiaRails::MetaTag::GENERATABLE_HEAD_KEY_PROPERTIES = T.let(T.unsafe(nil), Array) + +# source://inertia_rails//lib/inertia_rails/meta_tag.rb#10 +InertiaRails::MetaTag::LD_JSON_TYPE = T.let(T.unsafe(nil), String) + +# See https://github.com/rails/rails/blob/v8.0.0/actionview/lib/action_view/helpers/tag_helper.rb#L84-L97 +# +# source://inertia_rails//lib/inertia_rails/meta_tag.rb#6 +InertiaRails::MetaTag::UNARY_TAGS = T.let(T.unsafe(nil), Array) + +# source://inertia_rails//lib/inertia_rails/meta_tag_builder.rb#4 +class InertiaRails::MetaTagBuilder + # @return [MetaTagBuilder] a new instance of MetaTagBuilder + # + # source://inertia_rails//lib/inertia_rails/meta_tag_builder.rb#5 + def initialize(controller); end + + # source://inertia_rails//lib/inertia_rails/meta_tag_builder.rb#14 + def add(meta_tag); end + + # source://inertia_rails//lib/inertia_rails/meta_tag_builder.rb#39 + def clear; end + + # source://inertia_rails//lib/inertia_rails/meta_tag_builder.rb#10 + def meta_tags; end + + # @raise [ArgumentError] + # + # source://inertia_rails//lib/inertia_rails/meta_tag_builder.rb#26 + def remove(head_key = T.unsafe(nil), &block); end + + private + + # source://inertia_rails//lib/inertia_rails/meta_tag_builder.rb#47 + def add_new_tag(new_tag_data); end +end + # source://inertia_rails//lib/inertia_rails/middleware.rb#4 class InertiaRails::Middleware # @return [Middleware] a new instance of Middleware @@ -465,74 +591,77 @@ class InertiaRails::OptionalProp < ::InertiaRails::IgnoreOnFirstLoadProp; end class InertiaRails::Renderer # @return [Renderer] a new instance of Renderer # - # source://inertia_rails//lib/inertia_rails/renderer.rb#22 - def initialize(component, controller, request, response, render_method, props: T.unsafe(nil), view_data: T.unsafe(nil), deep_merge: T.unsafe(nil), encrypt_history: T.unsafe(nil), clear_history: T.unsafe(nil)); end + # source://inertia_rails//lib/inertia_rails/renderer.rb#19 + def initialize(component, controller, request, response, render_method, **options); end # Returns the value of attribute clear_history. # - # source://inertia_rails//lib/inertia_rails/renderer.rb#12 + # source://inertia_rails//lib/inertia_rails/renderer.rb#9 def clear_history; end # Returns the value of attribute component. # - # source://inertia_rails//lib/inertia_rails/renderer.rb#12 + # source://inertia_rails//lib/inertia_rails/renderer.rb#9 def component; end # Returns the value of attribute configuration. # - # source://inertia_rails//lib/inertia_rails/renderer.rb#12 + # source://inertia_rails//lib/inertia_rails/renderer.rb#9 def configuration; end # Returns the value of attribute controller. # - # source://inertia_rails//lib/inertia_rails/renderer.rb#12 + # source://inertia_rails//lib/inertia_rails/renderer.rb#9 def controller; end # Returns the value of attribute encrypt_history. # - # source://inertia_rails//lib/inertia_rails/renderer.rb#12 + # source://inertia_rails//lib/inertia_rails/renderer.rb#9 def encrypt_history; end # Returns the value of attribute props. # - # source://inertia_rails//lib/inertia_rails/renderer.rb#12 + # source://inertia_rails//lib/inertia_rails/renderer.rb#9 def props; end - # source://inertia_rails//lib/inertia_rails/renderer.rb#42 + # source://inertia_rails//lib/inertia_rails/renderer.rb#40 def render; end # Returns the value of attribute view_data. # - # source://inertia_rails//lib/inertia_rails/renderer.rb#12 + # source://inertia_rails//lib/inertia_rails/renderer.rb#9 def view_data; end private - # source://inertia_rails//lib/inertia_rails/renderer.rb#93 + # source://inertia_rails//lib/inertia_rails/renderer.rb#166 + def all_merge_props; end + + # source://inertia_rails//lib/inertia_rails/renderer.rb#92 def computed_props; end - # source://inertia_rails//lib/inertia_rails/renderer.rb#131 - def deep_transform_props(props, parent_path = T.unsafe(nil), &block); end + # source://inertia_rails//lib/inertia_rails/renderer.rb#137 + def deep_transform_props(props, parent_path = T.unsafe(nil)); end - # source://inertia_rails//lib/inertia_rails/renderer.rb#145 + # source://inertia_rails//lib/inertia_rails/renderer.rb#158 def deferred_props_keys; end # @return [Boolean] # - # source://inertia_rails//lib/inertia_rails/renderer.rb#208 + # source://inertia_rails//lib/inertia_rails/renderer.rb#228 def excluded_by_except_partial_keys?(path_with_prefixes); end # @return [Boolean] # - # source://inertia_rails//lib/inertia_rails/renderer.rb#204 + # source://inertia_rails//lib/inertia_rails/renderer.rb#224 def excluded_by_only_partial_keys?(path_with_prefixes); end # @return [Boolean] # - # source://inertia_rails//lib/inertia_rails/renderer.rb#183 + # source://inertia_rails//lib/inertia_rails/renderer.rb#203 def keep_prop?(prop, path); end - # source://inertia_rails//lib/inertia_rails/renderer.rb#71 + # source://inertia_rails//lib/inertia_rails/renderer.rb#70 def layout; end # Cast props to symbol keyed hash before merging so that we have a consistent data structure and @@ -541,44 +670,38 @@ class InertiaRails::Renderer # Functionally, this permits using either string or symbol keys in the controller. Since the results # is cast to json, we should treat string/symbol keys as identical. # - # source://inertia_rails//lib/inertia_rails/renderer.rb#85 - def merge_props(shared_data, props); end + # source://inertia_rails//lib/inertia_rails/renderer.rb#84 + def merge_props(shared_props, props); end - # source://inertia_rails//lib/inertia_rails/renderer.rb#153 - def merge_props_keys; end + # source://inertia_rails//lib/inertia_rails/renderer.rb#232 + def meta_tags; end - # source://inertia_rails//lib/inertia_rails/renderer.rb#112 + # source://inertia_rails//lib/inertia_rails/renderer.rb#109 def page; end - # source://inertia_rails//lib/inertia_rails/renderer.rb#167 + # source://inertia_rails//lib/inertia_rails/renderer.rb#187 def partial_except_keys; end - # source://inertia_rails//lib/inertia_rails/renderer.rb#159 + # source://inertia_rails//lib/inertia_rails/renderer.rb#179 def partial_keys; end - # source://inertia_rails//lib/inertia_rails/renderer.rb#198 + # source://inertia_rails//lib/inertia_rails/renderer.rb#218 def path_prefixes(parts); end - # source://inertia_rails//lib/inertia_rails/renderer.rb#63 + # source://inertia_rails//lib/inertia_rails/renderer.rb#62 def render_ssr; end # @return [Boolean] # - # source://inertia_rails//lib/inertia_rails/renderer.rb#171 + # source://inertia_rails//lib/inertia_rails/renderer.rb#191 def rendering_partial_component?; end - # source://inertia_rails//lib/inertia_rails/renderer.rb#163 + # source://inertia_rails//lib/inertia_rails/renderer.rb#183 def reset_keys; end - # source://inertia_rails//lib/inertia_rails/renderer.rb#175 + # source://inertia_rails//lib/inertia_rails/renderer.rb#195 def resolve_component(component); end - # source://inertia_rails//lib/inertia_rails/renderer.rb#76 + # source://inertia_rails//lib/inertia_rails/renderer.rb#75 def shared_data; end end - -# source://inertia_rails//lib/inertia_rails/renderer.rb#10 -InertiaRails::Renderer::DONT_KEEP_PROP = T.let(T.unsafe(nil), Symbol) - -# source://inertia_rails//lib/inertia_rails/renderer.rb#9 -InertiaRails::Renderer::KEEP_PROP = T.let(T.unsafe(nil), Symbol) diff --git a/sorbet/rbi/gems/io-console@0.8.0.rbi b/sorbet/rbi/gems/io-console@0.8.1.rbi similarity index 100% rename from sorbet/rbi/gems/io-console@0.8.0.rbi rename to sorbet/rbi/gems/io-console@0.8.1.rbi diff --git a/sorbet/rbi/gems/jbuilder@2.13.0.rbi b/sorbet/rbi/gems/jbuilder@2.14.1.rbi similarity index 65% rename from sorbet/rbi/gems/jbuilder@2.13.0.rbi rename to sorbet/rbi/gems/jbuilder@2.14.1.rbi index 0cfadb4c..33a1c331 100644 --- a/sorbet/rbi/gems/jbuilder@2.13.0.rbi +++ b/sorbet/rbi/gems/jbuilder@2.14.1.rbi @@ -5,14 +5,14 @@ # Please instead update this file by running `bin/tapioca gem jbuilder`. -# source://jbuilder//lib/jbuilder/jbuilder.rb#1 +# source://jbuilder//lib/jbuilder/version.rb#3 class Jbuilder < ::BasicObject # @return [Jbuilder] a new instance of Jbuilder # @yield [_self] # @yieldparam _self [Jbuilder] the object that the method was called on # - # source://jbuilder//lib/jbuilder.rb#15 - def initialize(options = T.unsafe(nil)); end + # source://jbuilder//lib/jbuilder.rb#16 + def initialize(key_formatter: T.unsafe(nil), ignore_nil: T.unsafe(nil), deep_format_keys: T.unsafe(nil), &block); end # Turns the current element into an array and iterates over the passed collection, adding each iteration as # an element of the resulting array. @@ -45,15 +45,15 @@ class Jbuilder < ::BasicObject # # [1,2,3] # - # source://jbuilder//lib/jbuilder.rb#212 + # source://jbuilder//lib/jbuilder.rb#209 def array!(collection = T.unsafe(nil), *attributes, &block); end # Returns the attributes of the current builder. # - # source://jbuilder//lib/jbuilder.rb#267 + # source://jbuilder//lib/jbuilder.rb#260 def attributes!; end - # source://jbuilder//lib/jbuilder.rb#251 + # source://jbuilder//lib/jbuilder.rb#244 def call(object, *attributes, &block); end # Turns the current element into an array and yields a builder to add a hash. @@ -73,7 +73,7 @@ class Jbuilder < ::BasicObject # json.content comment.formatted_content # end # - # source://jbuilder//lib/jbuilder.rb#177 + # source://jbuilder//lib/jbuilder.rb#174 def child!; end # Deeply apply key format to nested hashes and arrays passed to @@ -92,7 +92,7 @@ class Jbuilder < ::BasicObject # # { "settings": { "someValue": "abc" }} # - # source://jbuilder//lib/jbuilder.rb#152 + # source://jbuilder//lib/jbuilder.rb#149 def deep_format_keys!(value = T.unsafe(nil)); end # Extracts the mentioned attributes or hash elements from the passed object and turns them into attributes of the JSON. @@ -113,7 +113,7 @@ class Jbuilder < ::BasicObject # # json.(@person, :name, :age) # - # source://jbuilder//lib/jbuilder.rb#243 + # source://jbuilder//lib/jbuilder.rb#240 def extract!(object, *attributes); end # If you want to skip adding nil values to your JSON hash. This is useful @@ -131,7 +131,7 @@ class Jbuilder < ::BasicObject # # {} # - # source://jbuilder//lib/jbuilder.rb#127 + # source://jbuilder//lib/jbuilder.rb#124 def ignore_nil!(value = T.unsafe(nil)); end # Specifies formatting to be applied to the key. Passing in a name of a function @@ -162,261 +162,227 @@ class Jbuilder < ::BasicObject # # { "_first_name": "David" } # - # source://jbuilder//lib/jbuilder.rb#103 - def key_format!(*args); end + # source://jbuilder//lib/jbuilder.rb#100 + def key_format!(*_arg0, **_arg1, &_arg2); end # Merges hash, array, or Jbuilder instance into current builder. # - # source://jbuilder//lib/jbuilder.rb#272 + # source://jbuilder//lib/jbuilder.rb#265 def merge!(object); end - # source://jbuilder//lib/jbuilder.rb#67 - def method_missing(*args, &block); end + # source://jbuilder//lib/jbuilder.rb#277 + def method_missing(key, value = T.unsafe(nil), *args, &block); end # Returns the nil JSON. # - # source://jbuilder//lib/jbuilder.rb#260 + # source://jbuilder//lib/jbuilder.rb#253 def nil!; end # Returns the nil JSON. # - # source://jbuilder//lib/jbuilder.rb#260 + # source://jbuilder//lib/jbuilder.rb#257 def null!; end - # source://jbuilder//lib/jbuilder.rb#32 + # source://jbuilder//lib/jbuilder.rb#37 def set!(key, value = T.unsafe(nil), *args, &block); end # Encodes the current builder as JSON. # - # source://jbuilder//lib/jbuilder.rb#278 + # source://jbuilder//lib/jbuilder.rb#271 def target!; end private # @return [Boolean] # - # source://jbuilder//lib/jbuilder.rb#356 + # source://jbuilder//lib/jbuilder.rb#365 def _blank?(value = T.unsafe(nil)); end - # source://jbuilder//lib/jbuilder.rb#284 + # source://jbuilder//lib/jbuilder.rb#279 + def _extract(object, attributes); end + + # source://jbuilder//lib/jbuilder.rb#287 def _extract_hash_values(object, attributes); end - # source://jbuilder//lib/jbuilder.rb#288 + # source://jbuilder//lib/jbuilder.rb#291 def _extract_method_values(object, attributes); end - # source://jbuilder//lib/jbuilder.rb#317 + # source://jbuilder//lib/jbuilder.rb#326 def _format_keys(hash_or_array); end # @return [Boolean] # - # source://jbuilder//lib/jbuilder.rb#352 + # source://jbuilder//lib/jbuilder.rb#361 def _is_collection?(object); end - # source://jbuilder//lib/jbuilder.rb#313 + # source://jbuilder//lib/jbuilder.rb#316 def _key(key); end - # source://jbuilder//lib/jbuilder.rb#337 + # source://jbuilder//lib/jbuilder.rb#346 def _map_collection(collection); end - # source://jbuilder//lib/jbuilder.rb#292 + # source://jbuilder//lib/jbuilder.rb#295 def _merge_block(key); end - # source://jbuilder//lib/jbuilder.rb#299 + # source://jbuilder//lib/jbuilder.rb#302 def _merge_values(current_value, updates); end - # @return [Boolean] - # - # source://jbuilder//lib/jbuilder.rb#360 - def _object_respond_to?(object, *methods); end - - # source://jbuilder//lib/jbuilder.rb#343 + # source://jbuilder//lib/jbuilder.rb#352 def _scope; end - # source://jbuilder//lib/jbuilder.rb#329 + # source://jbuilder//lib/jbuilder.rb#338 def _set_value(key, value); end class << self # Same as instance method deep_format_keys! except sets the default. # - # source://jbuilder//lib/jbuilder.rb#157 + # source://jbuilder//lib/jbuilder.rb#154 def deep_format_keys(value = T.unsafe(nil)); end # Yields a builder and automatically turns the result into a JSON string # - # source://jbuilder//lib/jbuilder.rb#26 - def encode(*args, &block); end + # source://jbuilder//lib/jbuilder.rb#31 + def encode(*_arg0, **_arg1, &_arg2); end # Same as instance method ignore_nil! except sets the default. # - # source://jbuilder//lib/jbuilder.rb#132 + # source://jbuilder//lib/jbuilder.rb#129 def ignore_nil(value = T.unsafe(nil)); end # Same as the instance method key_format! except sets the default. # - # source://jbuilder//lib/jbuilder.rb#108 - def key_format(*args); end + # source://jbuilder//lib/jbuilder.rb#105 + def key_format(*_arg0, **_arg1, &_arg2); end end end -# source://jbuilder//lib/jbuilder/errors.rb#11 +# source://jbuilder//lib/jbuilder/errors.rb#13 class Jbuilder::ArrayError < ::StandardError class << self - # source://jbuilder//lib/jbuilder/errors.rb#12 + # source://jbuilder//lib/jbuilder/errors.rb#14 def build(key); end end end -# source://jbuilder//lib/jbuilder.rb#30 +# source://jbuilder//lib/jbuilder.rb#35 Jbuilder::BLANK = T.let(T.unsafe(nil), Jbuilder::Blank) -# source://jbuilder//lib/jbuilder/blank.rb#2 +# source://jbuilder//lib/jbuilder/blank.rb#4 class Jbuilder::Blank - # source://jbuilder//lib/jbuilder/blank.rb#3 + # source://jbuilder//lib/jbuilder/blank.rb#5 def ==(other); end # @return [Boolean] # - # source://jbuilder//lib/jbuilder/blank.rb#7 + # source://jbuilder//lib/jbuilder/blank.rb#9 def empty?; end end -# source://jbuilder//lib/jbuilder/collection_renderer.rb#12 -module Jbuilder::CollectionRenderable - extend ::ActiveSupport::Concern - - mixes_in_class_methods ::Jbuilder::CollectionRenderable::ClassMethods +# source://jbuilder//lib/jbuilder/collection_renderer.rb#8 +class Jbuilder::CollectionRenderer < ::ActionView::CollectionRenderer + # @return [CollectionRenderer] a new instance of CollectionRenderer + # + # source://jbuilder//lib/jbuilder/collection_renderer.rb#28 + def initialize(lookup_context, options, &scope); end private - # source://jbuilder//lib/jbuilder/collection_renderer.rb#27 + # source://jbuilder//lib/jbuilder/collection_renderer.rb#39 def build_rendered_collection(templates, _spacer); end - # source://jbuilder//lib/jbuilder/collection_renderer.rb#23 + # source://jbuilder//lib/jbuilder/collection_renderer.rb#35 def build_rendered_template(content, template, layout = T.unsafe(nil)); end - # source://jbuilder//lib/jbuilder/collection_renderer.rb#31 - def json; end -end + # source://jbuilder//lib/jbuilder/collection_renderer.rb#47 + def collection_with_template(view, template, layout, collection); end -# source://jbuilder//lib/jbuilder/collection_renderer.rb#0 -module Jbuilder::CollectionRenderable::ClassMethods - # source://jbuilder//lib/jbuilder/collection_renderer.rb#16 - def supported?; end + # source://jbuilder//lib/jbuilder/collection_renderer.rb#43 + def json; end end -# source://jbuilder//lib/jbuilder/collection_renderer.rb#35 -class Jbuilder::CollectionRenderable::ScopedIterator < ::SimpleDelegator +# source://jbuilder//lib/jbuilder/collection_renderer.rb#9 +class Jbuilder::CollectionRenderer::ScopedIterator < ::SimpleDelegator include ::ActiveSupport::ToJsonWithActiveSupportEncoder include ::Enumerable # @return [ScopedIterator] a new instance of ScopedIterator # - # source://jbuilder//lib/jbuilder/collection_renderer.rb#38 + # source://jbuilder//lib/jbuilder/collection_renderer.rb#12 def initialize(obj, scope); end - # Rails 6.0 support: - # - # source://jbuilder//lib/jbuilder/collection_renderer.rb#44 - def each; end - - # Rails 6.1 support: - # - # source://jbuilder//lib/jbuilder/collection_renderer.rb#53 + # source://jbuilder//lib/jbuilder/collection_renderer.rb#17 def each_with_info; end end -# Rails 6.0 support: -# -# source://jbuilder//lib/jbuilder/collection_renderer.rb#67 -class Jbuilder::CollectionRenderer < ::ActionView::CollectionRenderer - include ::Jbuilder::CollectionRenderable - extend ::Jbuilder::CollectionRenderable::ClassMethods - - # @return [CollectionRenderer] a new instance of CollectionRenderer - # - # source://jbuilder//lib/jbuilder/collection_renderer.rb#70 - def initialize(lookup_context, options, &scope); end - - private - - # source://jbuilder//lib/jbuilder/collection_renderer.rb#76 - def collection_with_template(view, template, layout, collection); end -end - -# source://jbuilder//lib/jbuilder/collection_renderer.rb#110 +# source://jbuilder//lib/jbuilder/collection_renderer.rb#52 class Jbuilder::EnumerableCompat < ::SimpleDelegator # Rails 6.1 requires this. # - # source://jbuilder//lib/jbuilder/collection_renderer.rb#112 + # source://jbuilder//lib/jbuilder/collection_renderer.rb#54 def size(*args, &block); end end -# source://jbuilder//lib/jbuilder/key_formatter.rb#5 +# source://jbuilder//lib/jbuilder/key_formatter.rb#6 class Jbuilder::KeyFormatter # @return [KeyFormatter] a new instance of KeyFormatter # - # source://jbuilder//lib/jbuilder/key_formatter.rb#6 - def initialize(*args); end + # source://jbuilder//lib/jbuilder/key_formatter.rb#7 + def initialize(*formats, **formats_with_options); end - # source://jbuilder//lib/jbuilder/key_formatter.rb#23 + # source://jbuilder//lib/jbuilder/key_formatter.rb#14 def format(key); end - - private - - # source://jbuilder//lib/jbuilder/key_formatter.rb#19 - def initialize_copy(original); end end -# source://jbuilder//lib/jbuilder/errors.rb#18 +# source://jbuilder//lib/jbuilder/errors.rb#20 class Jbuilder::MergeError < ::StandardError class << self - # source://jbuilder//lib/jbuilder/errors.rb#19 + # source://jbuilder//lib/jbuilder/errors.rb#21 def build(current_value, updates); end end end -# source://jbuilder//lib/jbuilder/errors.rb#4 +# source://jbuilder//lib/jbuilder/errors.rb#6 class Jbuilder::NullError < ::NoMethodError class << self - # source://jbuilder//lib/jbuilder/errors.rb#5 + # source://jbuilder//lib/jbuilder/errors.rb#7 def build(key); end end end -# source://jbuilder//lib/jbuilder/railtie.rb#5 +# source://jbuilder//lib/jbuilder/railtie.rb#7 class Jbuilder::Railtie < ::Rails::Railtie; end -# source://jbuilder//lib/jbuilder/version.rb#2 +# source://jbuilder//lib/jbuilder/version.rb#4 Jbuilder::VERSION = T.let(T.unsafe(nil), String) -# source://jbuilder//lib/jbuilder/jbuilder_template.rb#280 +# source://jbuilder//lib/jbuilder/jbuilder_template.rb#257 class JbuilderHandler - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#281 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#258 def default_format; end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#281 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#258 def default_format=(val); end class << self - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#284 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#261 def call(template, source = T.unsafe(nil)); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#281 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#258 def default_format; end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#281 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#258 def default_format=(val); end end end -# source://jbuilder//lib/jbuilder/jbuilder_template.rb#6 +# source://jbuilder//lib/jbuilder/jbuilder_template.rb#8 class JbuilderTemplate < ::Jbuilder # @return [JbuilderTemplate] a new instance of JbuilderTemplate # - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#13 - def initialize(context, *args); end + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#15 + def initialize(context, options = T.unsafe(nil)); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#117 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#122 def array!(collection = T.unsafe(nil), *args); end # Caches the json constructed within the block passed. Has the same signature as the `cache` helper @@ -428,7 +394,7 @@ class JbuilderTemplate < ::Jbuilder # json.extract! @person, :name, :age # end # - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#67 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#72 def cache!(key = T.unsafe(nil), options = T.unsafe(nil)); end # Conditionally caches the json depending in the condition given as first parameter. Has the same @@ -441,7 +407,7 @@ class JbuilderTemplate < ::Jbuilder # json.extract! @person, :name, :age # end # - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#109 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#114 def cache_if!(condition, *args, &block); end # Caches the json structure at the root using a string rather than the hash structure. This is considerably @@ -456,9 +422,12 @@ class JbuilderTemplate < ::Jbuilder # # # json.extra 'This will not work either, the root must be exclusive' # - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#90 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#95 def cache_root!(key = T.unsafe(nil), options = T.unsafe(nil)); end + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#146 + def method_missing(name, object = T.unsafe(nil), *args); end + # Generates JSON using the template specified with the `:partial` option. For example, the code below will render # the file `views/comments/_comments.json.jbuilder`, and set a local variable comments with all this message's # comments, which can be used inside the partial. @@ -491,68 +460,65 @@ class JbuilderTemplate < ::Jbuilder # # json.comments @post.comments, partial: "comments/comment", as: :comment, cached: true # - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#51 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#54 def partial!(*args); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#127 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#134 def set!(name, object = T.unsafe(nil), *args); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#113 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#118 def target!; end private - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#193 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#186 def _cache_fragment_for(key, options, &block); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#212 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#205 def _cache_key(key, options); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#225 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#218 def _fragment_name_with_digest(key, options); end # @return [Boolean] # - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#237 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#230 def _is_active_model?(object); end # @return [Boolean] # - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#233 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#226 def _partial_options?(options); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#198 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#191 def _read_fragment_cache(key, options = T.unsafe(nil)); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#275 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#252 def _render_active_model_partial(object); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#254 - def _render_explicit_partial(name_or_options, locals = T.unsafe(nil)); end - - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#188 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#181 def _render_partial(options); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#139 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#148 def _render_partial_with_options(options); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#241 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#234 def _set_inline_partial(name, object, options); end - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#204 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#197 def _write_fragment_cache(key, options = T.unsafe(nil)); end class << self # Returns the value of attribute template_lookup_options. # - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#8 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#10 def template_lookup_options; end # Sets the attribute template_lookup_options # # @param value the value to set the attribute template_lookup_options to. # - # source://jbuilder//lib/jbuilder/jbuilder_template.rb#8 + # source://jbuilder//lib/jbuilder/jbuilder_template.rb#10 def template_lookup_options=(_arg0); end end end diff --git a/sorbet/rbi/gems/json@2.10.2.rbi b/sorbet/rbi/gems/json@2.13.2.rbi similarity index 85% rename from sorbet/rbi/gems/json@2.10.2.rbi rename to sorbet/rbi/gems/json@2.13.2.rbi index f8cd4dc2..9a47b400 100644 --- a/sorbet/rbi/gems/json@2.10.2.rbi +++ b/sorbet/rbi/gems/json@2.13.2.rbi @@ -10,21 +10,6 @@ class Array include ::JSON::Ext::Generator::GeneratorMethods::Array end -# Extends any Class to include _json_creatable?_ method. -# -# source://json//lib/json/common.rb#979 -class Class < ::Module - # Returns true if this class can be used to create an instance - # from a serialised JSON string. The class has to implement a class - # method _json_create_ that expects a hash as first parameter. The hash - # should include the required data. - # - # @return [Boolean] - # - # source://json//lib/json/common.rb#984 - def json_creatable?; end -end - class FalseClass include ::JSON::Ext::Generator::GeneratorMethods::FalseClass end @@ -167,6 +152,24 @@ end # # --- # +# Option +allow_duplicate_key+ specifies whether duplicate keys in objects +# should be ignored or cause an error to be raised: +# +# When not specified: +# # The last value is used and a deprecation warning emitted. +# JSON.parse('{"a": 1, "a":2}') => {"a" => 2} +# # waring: detected duplicate keys in JSON object. +# # This will raise an error in json 3.0 unless enabled via `allow_duplicate_key: true` +# +# When set to `+true+` +# # The last value is used. +# JSON.parse('{"a": 1, "a":2}') => {"a" => 2} +# +# When set to `+false+`, the future default: +# JSON.parse('{"a": 1, "a":2}') => duplicate key at line 1 column 1 (JSON::ParserError) +# +# --- +# # Option +allow_nan+ (boolean) specifies whether to allow # NaN, Infinity, and MinusInfinity in +source+; # defaults to +false+. @@ -183,8 +186,23 @@ end # ruby = JSON.parse(source, {allow_nan: true}) # ruby # => [NaN, Infinity, -Infinity] # +# --- +# +# Option +allow_trailing_comma+ (boolean) specifies whether to allow +# trailing commas in objects and arrays; +# defaults to +false+. +# +# With the default, +false+: +# JSON.parse('[1,]') # unexpected character: ']' at line 1 column 4 (JSON::ParserError) +# +# When enabled: +# JSON.parse('[1,]', allow_trailing_comma: true) # => [1] +# # ====== Output Options # +# Option +freeze+ (boolean) specifies whether the returned objects will be frozen; +# defaults to +false+. +# # Option +symbolize_names+ (boolean) specifies whether returned \Hash keys # should be Symbols; # defaults to +false+ (use Strings). @@ -655,7 +673,7 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json//lib/json/common.rb#823 + # source://json//lib/json/common.rb#893 def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end # :call-seq: @@ -672,14 +690,11 @@ module JSON # # Raises SystemStackError (stack level too deep): # JSON.fast_generate(a) # - # source://json//lib/json/common.rb#357 + # source://json//lib/json/common.rb#446 def fast_generate(obj, opts = T.unsafe(nil)); end - # :stopdoc: - # I want to deprecate these later, so I'll first be silent about them, and later delete them. - # - # source://json//lib/json/common.rb#357 - def fast_unparse(obj, opts = T.unsafe(nil)); end + # source://json//lib/json/common.rb#938 + def fast_unparse(*_arg0, **_arg1, &_arg2); end # :call-seq: # JSON.generate(obj, opts = nil) -> new_string @@ -717,7 +732,7 @@ module JSON # # Raises JSON::NestingError (nesting of 100 is too deep): # JSON.generate(a) # - # source://json//lib/json/common.rb#329 + # source://json//lib/json/common.rb#425 def generate(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -855,7 +870,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#742 + # source://json//lib/json/common.rb#827 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # :call-seq: @@ -866,7 +881,7 @@ module JSON # # See method #parse. # - # source://json//lib/json/common.rb#278 + # source://json//lib/json/common.rb#374 def load_file(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -877,7 +892,7 @@ module JSON # # See method #parse! # - # source://json//lib/json/common.rb#289 + # source://json//lib/json/common.rb#385 def load_file!(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -928,7 +943,7 @@ module JSON # # Raises JSON::ParserError (783: unexpected token at ''): # JSON.parse('') # - # source://json//lib/json/common.rb#247 + # source://json//lib/json/common.rb#337 def parse(source, opts = T.unsafe(nil)); end # :call-seq: @@ -943,7 +958,7 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json//lib/json/common.rb#262 + # source://json//lib/json/common.rb#359 def parse!(source, opts = T.unsafe(nil)); end # :call-seq: @@ -976,29 +991,21 @@ module JSON # } # } # - # source://json//lib/json/common.rb#402 + # source://json//lib/json/common.rb#493 def pretty_generate(obj, opts = T.unsafe(nil)); end - # :stopdoc: - # I want to deprecate these later, so I'll first be silent about them, and later delete them. - # - # source://json//lib/json/common.rb#402 - def pretty_unparse(obj, opts = T.unsafe(nil)); end - - # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ - # - # source://json//lib/json/common.rb#768 - def recurse_proc(result, &proc); end + # source://json//lib/json/common.rb#948 + def pretty_unparse(*_arg0, **_arg1, &_arg2); end - # source://json//lib/json/common.rb#742 - def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end + # source://json//lib/json/common.rb#958 + def restore(*_arg0, **_arg1, &_arg2); end # :stopdoc: - # I want to deprecate these later, so I'll first be silent about them, and - # later delete them. + # All these were meant to be deprecated circa 2009, but were just set as undocumented + # so usage still exist in the wild. # - # source://json//lib/json/common.rb#329 - def unparse(obj, opts = T.unsafe(nil)); end + # source://json//lib/json/common.rb#928 + def unparse(*_arg0, **_arg1, &_arg2); end # :call-seq: # JSON.unsafe_load(source, proc = nil, options = {}) -> object @@ -1129,7 +1136,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#582 + # source://json//lib/json/common.rb#667 def unsafe_load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end class << self @@ -1145,36 +1152,42 @@ module JSON # ruby = [0, 1, nil] # JSON[ruby] # => '[0,1,null]' # - # source://json//lib/json/common.rb#23 + # source://json//lib/json/common.rb#127 def [](object, opts = T.unsafe(nil)); end - # source://json//lib/json/common.rb#80 - def create_fast_state; end + # source://json//lib/json/common.rb#192 + def _dump_default_options; end + + # source://json//lib/json/common.rb#192 + def _load_default_options; end + + # source://json//lib/json/common.rb#192 + def _unsafe_load_default_options; end # Returns the current create identifier. # See also JSON.create_id=. # - # source://json//lib/json/common.rb#115 + # source://json//lib/json/common.rb#220 def create_id; end # Sets create identifier, which is used to decide if the _json_create_ # hook of a class should be called; initial value is +json_class+: # JSON.create_id # => 'json_class' # - # source://json//lib/json/common.rb#109 + # source://json//lib/json/common.rb#214 def create_id=(new_value); end - # source://json//lib/json/common.rb#90 - def create_pretty_state; end - # Return the constant located at _path_. The format of _path_ has to be # either ::A::B::C or A::B::C. In any case, A has to be located at the top # level (absolute namespace path?). If there doesn't exist a constant at # the given path, an ArgumentError is raised. # - # source://json//lib/json/common.rb#50 + # source://json//lib/json/common.rb#154 def deep_const_get(path); end + # source://json//lib/json/common.rb#99 + def deprecation_warning(message, uplevel = T.unsafe(nil)); end + # :call-seq: # JSON.dump(obj, io = nil, limit = nil) # @@ -1203,24 +1216,14 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json//lib/json/common.rb#823 + # source://json//lib/json/common.rb#893 def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end - # Sets or returns the default options for the JSON.dump method. - # Initially: - # opts = JSON.dump_default_options - # opts # => {:max_nesting=>false, :allow_nan=>true} - # - # source://json//lib/json/common.rb#789 + # source://json//lib/json/common.rb#192 def dump_default_options; end - # Sets or returns the default options for the JSON.dump method. - # Initially: - # opts = JSON.dump_default_options - # opts # => {:max_nesting=>false, :allow_nan=>true} - # - # source://json//lib/json/common.rb#789 - def dump_default_options=(_arg0); end + # source://json//lib/json/common.rb#192 + def dump_default_options=(val); end # :call-seq: # JSON.fast_generate(obj, opts) -> new_string @@ -1236,14 +1239,11 @@ module JSON # # Raises SystemStackError (stack level too deep): # JSON.fast_generate(a) # - # source://json//lib/json/common.rb#357 + # source://json//lib/json/common.rb#446 def fast_generate(obj, opts = T.unsafe(nil)); end - # :stopdoc: - # I want to deprecate these later, so I'll first be silent about them, and later delete them. - # - # source://json//lib/json/common.rb#357 - def fast_unparse(obj, opts = T.unsafe(nil)); end + # source://json//lib/json/common.rb#938 + def fast_unparse(*_arg0, **_arg1, &_arg2); end # :call-seq: # JSON.generate(obj, opts = nil) -> new_string @@ -1281,24 +1281,19 @@ module JSON # # Raises JSON::NestingError (nesting of 100 is too deep): # JSON.generate(a) # - # source://json//lib/json/common.rb#329 + # source://json//lib/json/common.rb#425 def generate(obj, opts = T.unsafe(nil)); end # Returns the JSON generator module that is used by JSON. # - # source://json//lib/json/common.rb#100 + # source://json//lib/json/common.rb#182 def generator; end # Set the module _generator_ to be used by JSON. # - # source://json//lib/json/common.rb#57 + # source://json//lib/json/common.rb#161 def generator=(generator); end - # Encodes string using String.encode. - # - # source://json//lib/json/common.rb#856 - def iconv(to, from, string); end - # :call-seq: # JSON.load(source, proc = nil, options = {}) -> object # @@ -1434,24 +1429,25 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#742 + # source://json//lib/json/common.rb#827 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end - # Sets or returns default options for the JSON.load method. - # Initially: - # opts = JSON.load_default_options - # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} - # - # source://json//lib/json/common.rb#446 + # source://json//lib/json/common.rb#192 def load_default_options; end - # Sets or returns default options for the JSON.load method. - # Initially: - # opts = JSON.load_default_options - # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} + # source://json//lib/json/common.rb#192 + def load_default_options=(val); end + + # :call-seq: + # JSON.load_file(path, opts={}) -> object # - # source://json//lib/json/common.rb#446 - def load_default_options=(_arg0); end + # Calls: + # parse(File.read(path), opts) + # + # See method #parse. + # + # source://json//lib/json/common.rb#374 + def load_file(path, *args, **_arg2); end # :call-seq: # JSON.load_file!(path, opts = {}) @@ -1461,7 +1457,7 @@ module JSON # # See method #parse! # - # source://json//lib/json/common.rb#289 + # source://json//lib/json/common.rb#385 def load_file!(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -1512,7 +1508,7 @@ module JSON # # Raises JSON::ParserError (783: unexpected token at ''): # JSON.parse('') # - # source://json//lib/json/common.rb#247 + # source://json//lib/json/common.rb#337 def parse(source, opts = T.unsafe(nil)); end # :call-seq: @@ -1527,17 +1523,17 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json//lib/json/common.rb#262 + # source://json//lib/json/common.rb#359 def parse!(source, opts = T.unsafe(nil)); end # Returns the JSON parser class that is used by JSON. # - # source://json//lib/json/common.rb#37 + # source://json//lib/json/common.rb#141 def parser; end # Set the JSON parser class _parser_ to be used by JSON. # - # source://json//lib/json/common.rb#40 + # source://json//lib/json/common.rb#144 def parser=(parser); end # :call-seq: @@ -1570,39 +1566,31 @@ module JSON # } # } # - # source://json//lib/json/common.rb#402 + # source://json//lib/json/common.rb#493 def pretty_generate(obj, opts = T.unsafe(nil)); end - # :stopdoc: - # I want to deprecate these later, so I'll first be silent about them, and later delete them. - # - # source://json//lib/json/common.rb#402 - def pretty_unparse(obj, opts = T.unsafe(nil)); end - - # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ - # - # source://json//lib/json/common.rb#768 - def recurse_proc(result, &proc); end + # source://json//lib/json/common.rb#948 + def pretty_unparse(*_arg0, **_arg1, &_arg2); end - # source://json//lib/json/common.rb#742 - def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end + # source://json//lib/json/common.rb#958 + def restore(*_arg0, **_arg1, &_arg2); end # Sets or Returns the JSON generator state class that is used by JSON. # - # source://json//lib/json/common.rb#103 + # source://json//lib/json/common.rb#185 def state; end # Sets or Returns the JSON generator state class that is used by JSON. # - # source://json//lib/json/common.rb#103 + # source://json//lib/json/common.rb#185 def state=(_arg0); end # :stopdoc: - # I want to deprecate these later, so I'll first be silent about them, and - # later delete them. + # All these were meant to be deprecated circa 2009, but were just set as undocumented + # so usage still exist in the wild. # - # source://json//lib/json/common.rb#329 - def unparse(obj, opts = T.unsafe(nil)); end + # source://json//lib/json/common.rb#928 + def unparse(*_arg0, **_arg1, &_arg2); end # :call-seq: # JSON.unsafe_load(source, proc = nil, options = {}) -> object @@ -1733,24 +1721,22 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#582 + # source://json//lib/json/common.rb#667 def unsafe_load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end - # Sets or returns default options for the JSON.unsafe_load method. - # Initially: - # opts = JSON.load_default_options - # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} - # - # source://json//lib/json/common.rb#432 + # source://json//lib/json/common.rb#192 def unsafe_load_default_options; end - # Sets or returns default options for the JSON.unsafe_load method. - # Initially: - # opts = JSON.load_default_options - # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} - # - # source://json//lib/json/common.rb#432 - def unsafe_load_default_options=(_arg0); end + # source://json//lib/json/common.rb#192 + def unsafe_load_default_options=(val); end + + private + + # source://json//lib/json/common.rb#971 + def const_missing(const_name); end + + # source://json//lib/json/common.rb#189 + def deprecated_singleton_attr_accessor(*attrs); end end end @@ -1764,7 +1750,7 @@ end # # MyApp::JSONC_CODER.load(document) # -# source://json//lib/json/common.rb#870 +# source://json//lib/json/common.rb#997 class JSON::Coder # :call-seq: # JSON.new(options = nil, &block) @@ -1791,7 +1777,7 @@ class JSON::Coder # # @return [Coder] a new instance of Coder # - # source://json//lib/json/common.rb#894 + # source://json//lib/json/common.rb#1021 def initialize(options = T.unsafe(nil), &as_json); end # call-seq: @@ -1800,7 +1786,7 @@ class JSON::Coder # # Serialize the given object into a \JSON document. # - # source://json//lib/json/common.rb#913 + # source://json//lib/json/common.rb#1039 def dump(object, io = T.unsafe(nil)); end # call-seq: @@ -1809,7 +1795,7 @@ class JSON::Coder # # Serialize the given object into a \JSON document. # - # source://json//lib/json/common.rb#913 + # source://json//lib/json/common.rb#1042 def generate(object, io = T.unsafe(nil)); end # call-seq: @@ -1817,7 +1803,7 @@ class JSON::Coder # # Parse the given \JSON document and return an equivalent Ruby object. # - # source://json//lib/json/common.rb#922 + # source://json//lib/json/common.rb#1048 def load(source); end # call-seq: @@ -1825,7 +1811,7 @@ class JSON::Coder # # Parse the given \JSON document and return an equivalent Ruby object. # - # source://json//lib/json/common.rb#931 + # source://json//lib/json/common.rb#1057 def load_file(path); end # call-seq: @@ -1833,12 +1819,71 @@ class JSON::Coder # # Parse the given \JSON document and return an equivalent Ruby object. # - # source://json//lib/json/common.rb#922 + # source://json//lib/json/common.rb#1051 def parse(source); end end +module JSON::Ext::Generator::GeneratorMethods::Array + # source://json//lib/json/ext.rb#39 + def to_json(*_arg0); end +end + +module JSON::Ext::Generator::GeneratorMethods::FalseClass + # source://json//lib/json/ext.rb#39 + def to_json(*_arg0); end +end + +module JSON::Ext::Generator::GeneratorMethods::Float + # source://json//lib/json/ext.rb#39 + def to_json(*_arg0); end +end + +module JSON::Ext::Generator::GeneratorMethods::Hash + # source://json//lib/json/ext.rb#39 + def to_json(*_arg0); end +end + +module JSON::Ext::Generator::GeneratorMethods::Integer + # source://json//lib/json/ext.rb#39 + def to_json(*_arg0); end +end + +module JSON::Ext::Generator::GeneratorMethods::NilClass + # source://json//lib/json/ext.rb#39 + def to_json(*_arg0); end +end + +module JSON::Ext::Generator::GeneratorMethods::Object + # source://json//lib/json/ext.rb#39 + def to_json(*_arg0); end +end + module JSON::Ext::Generator::GeneratorMethods::String mixes_in_class_methods ::JSON::Ext::Generator::GeneratorMethods::String::Extend + + # source://json//lib/json/ext.rb#39 + def to_json(*_arg0); end + + # source://json//lib/json/ext.rb#39 + def to_json_raw(*_arg0); end + + # source://json//lib/json/ext.rb#39 + def to_json_raw_object; end + + class << self + # source://json//lib/json/ext.rb#39 + def included(_arg0); end + end +end + +module JSON::Ext::Generator::GeneratorMethods::String::Extend + # source://json//lib/json/ext.rb#39 + def json_create(_arg0); end +end + +module JSON::Ext::Generator::GeneratorMethods::TrueClass + # source://json//lib/json/ext.rb#39 + def to_json(*_arg0); end end # source://json//lib/json/ext/generator/state.rb#6 @@ -1864,7 +1909,7 @@ class JSON::Ext::Generator::State # # @return [State] a new instance of State # - # source://json//lib/json/ext/generator/state.rb#25 + # source://json//lib/json/ext.rb#39 def initialize(opts = T.unsafe(nil)); end # call-seq: [](name) @@ -1881,6 +1926,39 @@ class JSON::Ext::Generator::State # source://json//lib/json/ext/generator/state.rb#96 def []=(name, value); end + # source://json//lib/json/ext.rb#39 + def allow_nan=(_arg0); end + + # source://json//lib/json/ext.rb#39 + def allow_nan?; end + + # source://json//lib/json/ext.rb#39 + def array_nl; end + + # source://json//lib/json/ext.rb#39 + def array_nl=(_arg0); end + + # source://json//lib/json/ext.rb#39 + def as_json; end + + # source://json//lib/json/ext.rb#39 + def as_json=(_arg0); end + + # source://json//lib/json/ext.rb#39 + def ascii_only=(_arg0); end + + # source://json//lib/json/ext.rb#39 + def ascii_only?; end + + # source://json//lib/json/ext.rb#39 + def buffer_initial_length; end + + # source://json//lib/json/ext.rb#39 + def buffer_initial_length=(_arg0); end + + # source://json//lib/json/ext.rb#39 + def check_circular?; end + # call-seq: configure(opts) # # Configure this State instance with the Hash _opts_, and return @@ -1889,14 +1967,83 @@ class JSON::Ext::Generator::State # source://json//lib/json/ext/generator/state.rb#35 def configure(opts); end + # source://json//lib/json/ext.rb#39 + def depth; end + + # source://json//lib/json/ext.rb#39 + def depth=(_arg0); end + + # source://json//lib/json/ext.rb#39 + def escape_slash; end + + # source://json//lib/json/ext.rb#39 + def escape_slash=(_arg0); end + + # source://json//lib/json/ext.rb#39 + def escape_slash?; end + + # source://json//lib/json/ext.rb#39 + def generate(*_arg0); end + + # source://json//lib/json/ext.rb#39 + def generate_new(*_arg0); end + + # source://json//lib/json/ext.rb#39 + def indent; end + + # source://json//lib/json/ext.rb#39 + def indent=(_arg0); end + + # source://json//lib/json/ext.rb#39 + def max_nesting; end + + # source://json//lib/json/ext.rb#39 + def max_nesting=(_arg0); end + # call-seq: configure(opts) # # Configure this State instance with the Hash _opts_, and return # itself. # - # source://json//lib/json/ext/generator/state.rb#35 + # source://json//lib/json/ext/generator/state.rb#48 def merge(opts); end + # source://json//lib/json/ext.rb#39 + def object_nl; end + + # source://json//lib/json/ext.rb#39 + def object_nl=(_arg0); end + + # source://json//lib/json/ext.rb#39 + def script_safe; end + + # source://json//lib/json/ext.rb#39 + def script_safe=(_arg0); end + + # source://json//lib/json/ext.rb#39 + def script_safe?; end + + # source://json//lib/json/ext.rb#39 + def space; end + + # source://json//lib/json/ext.rb#39 + def space=(_arg0); end + + # source://json//lib/json/ext.rb#39 + def space_before; end + + # source://json//lib/json/ext.rb#39 + def space_before=(_arg0); end + + # source://json//lib/json/ext.rb#39 + def strict; end + + # source://json//lib/json/ext.rb#39 + def strict=(_arg0); end + + # source://json//lib/json/ext.rb#39 + def strict?; end + # call-seq: to_h # # Returns the configuration instance variables as a hash, that can be @@ -1910,8 +2057,24 @@ class JSON::Ext::Generator::State # Returns the configuration instance variables as a hash, that can be # passed to the configure method. # - # source://json//lib/json/ext/generator/state.rb#54 + # source://json//lib/json/ext/generator/state.rb#79 def to_hash; end + + private + + # source://json//lib/json/ext.rb#39 + def _configure(_arg0); end + + # source://json//lib/json/ext.rb#39 + def initialize_copy(_arg0); end + + class << self + # source://json//lib/json/ext.rb#39 + def from_state(_arg0); end + + # source://json//lib/json/ext.rb#39 + def generate(_arg0, _arg1, _arg2); end + end end # source://json//lib/json/ext.rb#9 @@ -1926,11 +2089,27 @@ class JSON::Ext::Parser # source://json//lib/json/ext.rb#22 def source; end + + class << self + # Allow redefinition by extensions + # Allow redefinition by extensions + # + # source://json//lib/json/ext.rb#11 + def parse(_arg0, _arg1); end + end end # source://json//lib/json/ext.rb#32 JSON::Ext::Parser::Config = JSON::Ext::ParserConfig +class JSON::Ext::ParserConfig + # source://json//lib/json/ext.rb#31 + def initialize(_arg0); end + + # source://json//lib/json/ext.rb#31 + def parse(_arg0); end +end + # Fragment of JSON document that is to be included as is: # fragment = JSON::Fragment.new("[1, 2, 3]") # JSON.generate({ count: 3, items: fragments }) @@ -1940,53 +2119,66 @@ JSON::Ext::Parser::Config = JSON::Ext::ParserConfig # to string interpolation. # # Note: no validation is performed on the provided string. It is the -# responsability of the caller to ensure the string contains valid JSON. +# responsibility of the caller to ensure the string contains valid JSON. # -# source://json//lib/json/common.rb#183 +# source://json//lib/json/common.rb#273 class JSON::Fragment < ::Struct # @return [Fragment] a new instance of Fragment # - # source://json//lib/json/common.rb#184 + # source://json//lib/json/common.rb#274 def initialize(json); end # Returns the value of attribute json # # @return [Object] the current value of json + # + # source://json//lib/json/common.rb#273 def json; end # Sets the attribute json # # @param value [Object] the value to set the attribute json to. # @return [Object] the newly set value + # + # source://json//lib/json/common.rb#273 def json=(_); end - # source://json//lib/json/common.rb#192 + # source://json//lib/json/common.rb#282 def to_json(state = T.unsafe(nil), *_arg1); end class << self + # source://json//lib/json/common.rb#273 def [](*_arg0); end + + # source://json//lib/json/common.rb#273 def inspect; end + + # source://json//lib/json/common.rb#273 def keyword_init?; end + + # source://json//lib/json/common.rb#273 def members; end + + # source://json//lib/json/common.rb#273 def new(*_arg0); end end end # This exception is raised if a generator or unparser error occurs. # -# source://json//lib/json/common.rb#146 +# source://json//lib/json/common.rb#243 class JSON::GeneratorError < ::JSON::JSONError # @return [GeneratorError] a new instance of GeneratorError # - # source://json//lib/json/common.rb#149 + # source://json//lib/json/common.rb#246 def initialize(message, invalid_object = T.unsafe(nil)); end - # source://json//lib/json/common.rb#154 + # source://json//lib/json/common.rb#251 def detailed_message(*_arg0, **_arg1, &_arg2); end # Returns the value of attribute invalid_object. # - # source://json//lib/json/common.rb#147 + # source://json//lib/json/common.rb#244 def invalid_object; end end @@ -2005,6 +2197,9 @@ class JSON::GenericObject < ::OpenStruct def |(other); end class << self + # source://json//lib/json/generic_object.rb#11 + def [](*_arg0); end + # source://json//lib/json/generic_object.rb#45 def dump(obj, *args); end @@ -2031,31 +2226,58 @@ class JSON::GenericObject < ::OpenStruct end end -# The base exception for JSON errors. +# source://json//lib/json/common.rb#342 +JSON::PARSE_L_OPTIONS = T.let(T.unsafe(nil), Hash) + +# source://json//lib/json/common.rb#455 +JSON::PRETTY_GENERATE_OPTIONS = T.let(T.unsafe(nil), Hash) + +# source://json//lib/json/common.rb#147 +JSON::Parser = JSON::Ext::Parser + +# This exception is raised if a parser error occurs. # -# source://json//lib/json/common.rb#126 -class JSON::JSONError < ::StandardError - class << self - # source://json//lib/json/common.rb#127 - def wrap(exception); end - end +# source://json//lib/json/common.rb#234 +class JSON::ParserError < ::JSON::JSONError + # Returns the value of attribute column. + # + # source://json//lib/json/common.rb#235 + def column; end + + # Returns the value of attribute line. + # + # source://json//lib/json/common.rb#235 + def line; end end # source://json//lib/json/common.rb#8 -JSON::NOT_SET = T.let(T.unsafe(nil), Object) +module JSON::ParserOptions + class << self + # source://json//lib/json/common.rb#10 + def prepare(opts); end -# source://json//lib/json/common.rb#43 -JSON::Parser = JSON::Ext::Parser + private -# source://json//lib/json/common.rb#72 -JSON::State = JSON::Ext::Generator::State + # source://json//lib/json/common.rb#40 + def array_class_proc(array_class, on_load); end -# For backwards compatibility -# -# source://json//lib/json/common.rb#167 -JSON::UnparserError = JSON::GeneratorError + # TODO: extract :create_additions support to another gem for version 3.0 + # + # source://json//lib/json/common.rb#52 + def create_additions_proc(opts); end + + # source://json//lib/json/common.rb#90 + def create_additions_warning; end + + # source://json//lib/json/common.rb#29 + def object_class_proc(object_class, on_load); end + end +end + +# source://json//lib/json/common.rb#176 +JSON::State = JSON::Ext::Generator::State -# source://json//lib/json/common.rb#937 +# source://json//lib/json/common.rb#1063 module Kernel private @@ -2066,19 +2288,19 @@ module Kernel # The _opts_ argument is passed through to generate/parse respectively. See # generate and parse for their documentation. # - # source://json//lib/json/common.rb#964 - def JSON(object, *args); end + # source://json//lib/json/common.rb#1102 + def JSON(object, opts = T.unsafe(nil)); end # Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in # one line. # - # source://json//lib/json/common.rb#942 + # source://json//lib/json/common.rb#1068 def j(*objs); end # Outputs _objs_ to STDOUT as JSON strings in a pretty format, with # indentation and over many lines. # - # source://json//lib/json/common.rb#951 + # source://json//lib/json/common.rb#1083 def jj(*objs); end end diff --git a/sorbet/rbi/gems/jwt@2.10.1.rbi b/sorbet/rbi/gems/jwt@2.10.2.rbi similarity index 97% rename from sorbet/rbi/gems/jwt@2.10.1.rbi rename to sorbet/rbi/gems/jwt@2.10.2.rbi index 5a0a750a..5c4bc3f5 100644 --- a/sorbet/rbi/gems/jwt@2.10.1.rbi +++ b/sorbet/rbi/gems/jwt@2.10.2.rbi @@ -285,19 +285,32 @@ class JWT::Claims::Error < ::Struct # Returns the value of attribute message # # @return [Object] the current value of message + # + # source://jwt//lib/jwt/claims.rb#33 def message; end # Sets the attribute message # # @param value [Object] the value to set the attribute message to. # @return [Object] the newly set value + # + # source://jwt//lib/jwt/claims.rb#33 def message=(_); end class << self + # source://jwt//lib/jwt/claims.rb#33 def [](*_arg0); end + + # source://jwt//lib/jwt/claims.rb#33 def inspect; end + + # source://jwt//lib/jwt/claims.rb#33 def keyword_init?; end + + # source://jwt//lib/jwt/claims.rb#33 def members; end + + # source://jwt//lib/jwt/claims.rb#33 def new(*_arg0); end end end @@ -572,19 +585,32 @@ class JWT::Claims::VerificationContext < ::Struct # Returns the value of attribute payload # # @return [Object] the current value of payload + # + # source://jwt//lib/jwt/claims/decode_verifier.rb#8 def payload; end # Sets the attribute payload # # @param value [Object] the value to set the attribute payload to. # @return [Object] the newly set value + # + # source://jwt//lib/jwt/claims/decode_verifier.rb#8 def payload=(_); end class << self + # source://jwt//lib/jwt/claims/decode_verifier.rb#8 def [](*_arg0); end + + # source://jwt//lib/jwt/claims/decode_verifier.rb#8 def inspect; end + + # source://jwt//lib/jwt/claims/decode_verifier.rb#8 def keyword_init?; end + + # source://jwt//lib/jwt/claims/decode_verifier.rb#8 def members; end + + # source://jwt//lib/jwt/claims/decode_verifier.rb#8 def new(*_arg0); end end end @@ -1134,7 +1160,7 @@ class JWT::EncodedToken # # @return [String] The JWT token. # - # source://jwt//lib/jwt/encoded_token.rb#19 + # source://jwt//lib/jwt/encoded_token.rb#106 def to_s; end # Checks if the signature of the JWT token is valid. @@ -1428,7 +1454,7 @@ module JWT::JWA::Hmac::SecurityUtils # # @raise [ArgumentError] # - # source://jwt//lib/jwt/jwa/hmac.rb#50 + # source://jwt//lib/jwt/jwa/hmac.rb#66 def fixed_length_secure_compare(a, b); end # Secure string comparison for strings of variable length. @@ -1438,7 +1464,7 @@ module JWT::JWA::Hmac::SecurityUtils # the secret length. This should be considered when using secure_compare # to compare weak, short secrets to user input. # - # source://jwt//lib/jwt/jwa/hmac.rb#74 + # source://jwt//lib/jwt/jwa/hmac.rb#77 def secure_compare(a, b); end end end @@ -1641,10 +1667,10 @@ module JWT::JWK # source://jwt//lib/jwt/jwk.rb#10 def create_from(key, params = T.unsafe(nil), options = T.unsafe(nil)); end - # source://jwt//lib/jwt/jwk.rb#10 + # source://jwt//lib/jwt/jwk.rb#31 def import(key, params = T.unsafe(nil), options = T.unsafe(nil)); end - # source://jwt//lib/jwt/jwk.rb#10 + # source://jwt//lib/jwt/jwk.rb#30 def new(key, params = T.unsafe(nil), options = T.unsafe(nil)); end private @@ -1855,7 +1881,7 @@ class JWT::JWK::KeyBase # source://jwt//lib/jwt/jwk/key_base.rb#37 def []=(key, value); end - # source://jwt//lib/jwt/jwk/key_base.rb#41 + # source://jwt//lib/jwt/jwk/key_base.rb#45 def eql?(other); end # source://jwt//lib/jwt/jwk/key_base.rb#29 @@ -1985,7 +2011,7 @@ class JWT::JWK::RSA < ::JWT::JWK::KeyBase def rsa_key; end class << self - # source://jwt//lib/jwt/jwk/rsa.rb#140 + # source://jwt//lib/jwt/jwk/rsa.rb#193 def create_rsa_key(rsa_parameters); end # source://jwt//lib/jwt/jwk/rsa.rb#168 @@ -2049,10 +2075,10 @@ class JWT::JWK::Set # source://jwt//lib/jwt/jwk/set.rb#15 def initialize(jwks = T.unsafe(nil), options = T.unsafe(nil)); end - # source://jwt//lib/jwt/jwk/set.rb#60 + # source://jwt//lib/jwt/jwk/set.rb#78 def +(enum); end - # source://jwt//lib/jwt/jwk/set.rb#64 + # source://jwt//lib/jwt/jwk/set.rb#79 def <<(key); end # source://jwt//lib/jwt/jwk/set.rb#69 @@ -2061,22 +2087,22 @@ class JWT::JWK::Set # source://jwt//lib/jwt/jwk/set.rb#64 def add(key); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://jwt//lib/jwt/jwk/set.rb#37 def delete(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://jwt//lib/jwt/jwk/set.rb#37 def dig(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://jwt//lib/jwt/jwk/set.rb#37 def each(*args, **_arg1, &block); end - # source://jwt//lib/jwt/jwk/set.rb#69 + # source://jwt//lib/jwt/jwk/set.rb#73 def eql?(other); end # source://jwt//lib/jwt/jwk/set.rb#33 def export(options = T.unsafe(nil)); end - # source://jwt//lib/jwt/jwk/set.rb#39 + # source://jwt//lib/jwt/jwk/set.rb#74 def filter!(&block); end # Returns the value of attribute keys. @@ -2084,7 +2110,7 @@ class JWT::JWK::Set # source://jwt//lib/jwt/jwk/set.rb#13 def keys; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://jwt//lib/jwt/jwk/set.rb#75 def length(*args, **_arg1, &block); end # source://jwt//lib/jwt/jwk/set.rb#55 @@ -2096,7 +2122,7 @@ class JWT::JWK::Set # source://jwt//lib/jwt/jwk/set.rb#39 def select!(&block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://jwt//lib/jwt/jwk/set.rb#37 def size(*args, **_arg1, &block); end # source://jwt//lib/jwt/jwk/set.rb#60 @@ -2107,7 +2133,7 @@ class JWT::JWK::Set # For symbolic manipulation # - # source://jwt//lib/jwt/jwk/set.rb#60 + # source://jwt//lib/jwt/jwk/set.rb#77 def |(enum); end end @@ -2128,7 +2154,7 @@ class JWT::JWK::Thumbprint # source://jwt//lib/jwt/jwk/thumbprint.rb#7 def jwk; end - # source://jwt//lib/jwt/jwk/thumbprint.rb#13 + # source://jwt//lib/jwt/jwk/thumbprint.rb#23 def to_s; end end @@ -2252,7 +2278,7 @@ class JWT::Token # @return [String] the JWT token as a string. # @return [String] the JWT token as a string. # - # source://jwt//lib/jwt/token.rb#78 + # source://jwt//lib/jwt/token.rb#110 def to_s; end end diff --git a/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi b/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi deleted file mode 100644 index 3bb3bebc..00000000 --- a/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +++ /dev/null @@ -1,14244 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `language_server-protocol` gem. -# Please instead update this file by running `bin/tapioca gem language_server-protocol`. - - -# source://language_server-protocol//lib/language_server/protocol/version.rb#1 -module LanguageServer; end - -# source://language_server-protocol//lib/language_server/protocol/version.rb#2 -module LanguageServer::Protocol; end - -# source://language_server-protocol//lib/language_server/protocol/constant.rb#3 -module LanguageServer::Protocol::Constant; end - -# The kind of a code action. -# -# Kinds are a hierarchical list of identifiers separated by `.`, -# e.g. `"refactor.extract.function"`. -# -# The set of kinds is open and client needs to announce the kinds it supports -# to the server during initialization. -# A set of predefined code action kinds. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#14 -module LanguageServer::Protocol::Constant::CodeActionKind; end - -# Empty kind. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#18 -LanguageServer::Protocol::Constant::CodeActionKind::EMPTY = T.let(T.unsafe(nil), String) - -# Base kind for quickfix actions: 'quickfix'. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#22 -LanguageServer::Protocol::Constant::CodeActionKind::QUICK_FIX = T.let(T.unsafe(nil), String) - -# Base kind for refactoring actions: 'refactor'. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#26 -LanguageServer::Protocol::Constant::CodeActionKind::REFACTOR = T.let(T.unsafe(nil), String) - -# Base kind for refactoring extraction actions: 'refactor.extract'. -# -# Example extract actions: -# -# - Extract method -# - Extract function -# - Extract variable -# - Extract interface from class -# - ... -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#38 -LanguageServer::Protocol::Constant::CodeActionKind::REFACTOR_EXTRACT = T.let(T.unsafe(nil), String) - -# Base kind for refactoring inline actions: 'refactor.inline'. -# -# Example inline actions: -# -# - Inline function -# - Inline variable -# - Inline constant -# - ... -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#49 -LanguageServer::Protocol::Constant::CodeActionKind::REFACTOR_INLINE = T.let(T.unsafe(nil), String) - -# Base kind for refactoring rewrite actions: 'refactor.rewrite'. -# -# Example rewrite actions: -# -# - Convert JavaScript function to class -# - Add or remove parameter -# - Encapsulate field -# - Make method static -# - Move method to base class -# - ... -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#62 -LanguageServer::Protocol::Constant::CodeActionKind::REFACTOR_REWRITE = T.let(T.unsafe(nil), String) - -# Base kind for source actions: `source`. -# -# Source code actions apply to the entire file. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#68 -LanguageServer::Protocol::Constant::CodeActionKind::SOURCE = T.let(T.unsafe(nil), String) - -# Base kind for a 'fix all' source action: `source.fixAll`. -# -# 'Fix all' actions automatically fix errors that have a clear fix that -# do not require user input. They should not suppress errors or perform -# unsafe fixes such as generating new types or classes. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#81 -LanguageServer::Protocol::Constant::CodeActionKind::SOURCE_FIX_ALL = T.let(T.unsafe(nil), String) - -# Base kind for an organize imports source action: -# `source.organizeImports`. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#73 -LanguageServer::Protocol::Constant::CodeActionKind::SOURCE_ORGANIZE_IMPORTS = T.let(T.unsafe(nil), String) - -# The reason why code actions were requested. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_trigger_kind.rb#7 -module LanguageServer::Protocol::Constant::CodeActionTriggerKind; end - -# Code actions were requested automatically. -# -# This typically happens when current selection in a file changes, but can -# also be triggered when file content changes. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_trigger_kind.rb#18 -LanguageServer::Protocol::Constant::CodeActionTriggerKind::AUTOMATIC = T.let(T.unsafe(nil), Integer) - -# Code actions were explicitly requested by the user or by an extension. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_trigger_kind.rb#11 -LanguageServer::Protocol::Constant::CodeActionTriggerKind::INVOKED = T.let(T.unsafe(nil), Integer) - -# The kind of a completion entry. -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#7 -module LanguageServer::Protocol::Constant::CompletionItemKind; end - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#14 -LanguageServer::Protocol::Constant::CompletionItemKind::CLASS = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#23 -LanguageServer::Protocol::Constant::CompletionItemKind::COLOR = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#28 -LanguageServer::Protocol::Constant::CompletionItemKind::CONSTANT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#11 -LanguageServer::Protocol::Constant::CompletionItemKind::CONSTRUCTOR = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#20 -LanguageServer::Protocol::Constant::CompletionItemKind::ENUM = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#27 -LanguageServer::Protocol::Constant::CompletionItemKind::ENUM_MEMBER = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#30 -LanguageServer::Protocol::Constant::CompletionItemKind::EVENT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#12 -LanguageServer::Protocol::Constant::CompletionItemKind::FIELD = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#24 -LanguageServer::Protocol::Constant::CompletionItemKind::FILE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#26 -LanguageServer::Protocol::Constant::CompletionItemKind::FOLDER = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#10 -LanguageServer::Protocol::Constant::CompletionItemKind::FUNCTION = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#15 -LanguageServer::Protocol::Constant::CompletionItemKind::INTERFACE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#21 -LanguageServer::Protocol::Constant::CompletionItemKind::KEYWORD = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#9 -LanguageServer::Protocol::Constant::CompletionItemKind::METHOD = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#16 -LanguageServer::Protocol::Constant::CompletionItemKind::MODULE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#31 -LanguageServer::Protocol::Constant::CompletionItemKind::OPERATOR = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#17 -LanguageServer::Protocol::Constant::CompletionItemKind::PROPERTY = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#25 -LanguageServer::Protocol::Constant::CompletionItemKind::REFERENCE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#22 -LanguageServer::Protocol::Constant::CompletionItemKind::SNIPPET = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#29 -LanguageServer::Protocol::Constant::CompletionItemKind::STRUCT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#8 -LanguageServer::Protocol::Constant::CompletionItemKind::TEXT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#32 -LanguageServer::Protocol::Constant::CompletionItemKind::TYPE_PARAMETER = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#18 -LanguageServer::Protocol::Constant::CompletionItemKind::UNIT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#19 -LanguageServer::Protocol::Constant::CompletionItemKind::VALUE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#13 -LanguageServer::Protocol::Constant::CompletionItemKind::VARIABLE = T.let(T.unsafe(nil), Integer) - -# Completion item tags are extra annotations that tweak the rendering of a -# completion item. -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_tag.rb#8 -module LanguageServer::Protocol::Constant::CompletionItemTag; end - -# Render a completion as obsolete, usually using a strike-out. -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_tag.rb#12 -LanguageServer::Protocol::Constant::CompletionItemTag::DEPRECATED = T.let(T.unsafe(nil), Integer) - -# How a completion was triggered -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_trigger_kind.rb#7 -module LanguageServer::Protocol::Constant::CompletionTriggerKind; end - -# Completion was triggered by typing an identifier (24x7 code -# complete), manual invocation (e.g Ctrl+Space) or via API. -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_trigger_kind.rb#12 -LanguageServer::Protocol::Constant::CompletionTriggerKind::INVOKED = T.let(T.unsafe(nil), Integer) - -# Completion was triggered by a trigger character specified by -# the `triggerCharacters` properties of the -# `CompletionRegistrationOptions`. -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_trigger_kind.rb#18 -LanguageServer::Protocol::Constant::CompletionTriggerKind::TRIGGER_CHARACTER = T.let(T.unsafe(nil), Integer) - -# Completion was re-triggered as the current completion list is incomplete. -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_trigger_kind.rb#22 -LanguageServer::Protocol::Constant::CompletionTriggerKind::TRIGGER_FOR_INCOMPLETE_COMPLETIONS = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#4 -module LanguageServer::Protocol::Constant::DiagnosticSeverity; end - -# Reports an error. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#8 -LanguageServer::Protocol::Constant::DiagnosticSeverity::ERROR = T.let(T.unsafe(nil), Integer) - -# Reports a hint. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#20 -LanguageServer::Protocol::Constant::DiagnosticSeverity::HINT = T.let(T.unsafe(nil), Integer) - -# Reports an information. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#16 -LanguageServer::Protocol::Constant::DiagnosticSeverity::INFORMATION = T.let(T.unsafe(nil), Integer) - -# Reports a warning. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#12 -LanguageServer::Protocol::Constant::DiagnosticSeverity::WARNING = T.let(T.unsafe(nil), Integer) - -# The diagnostic tags. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_tag.rb#7 -module LanguageServer::Protocol::Constant::DiagnosticTag; end - -# Deprecated or obsolete code. -# -# Clients are allowed to rendered diagnostics with this tag strike through. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_tag.rb#20 -LanguageServer::Protocol::Constant::DiagnosticTag::DEPRECATED = T.let(T.unsafe(nil), Integer) - -# Unused or unnecessary code. -# -# Clients are allowed to render diagnostics with this tag faded out -# instead of having an error squiggle. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_tag.rb#14 -LanguageServer::Protocol::Constant::DiagnosticTag::UNNECESSARY = T.let(T.unsafe(nil), Integer) - -# The document diagnostic report kinds. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_diagnostic_report_kind.rb#7 -module LanguageServer::Protocol::Constant::DocumentDiagnosticReportKind; end - -# A diagnostic report with a full -# set of problems. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_diagnostic_report_kind.rb#12 -LanguageServer::Protocol::Constant::DocumentDiagnosticReportKind::FULL = T.let(T.unsafe(nil), String) - -# A report indicating that the last -# returned report is still accurate. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_diagnostic_report_kind.rb#17 -LanguageServer::Protocol::Constant::DocumentDiagnosticReportKind::UNCHANGED = T.let(T.unsafe(nil), String) - -# A document highlight kind. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_highlight_kind.rb#7 -module LanguageServer::Protocol::Constant::DocumentHighlightKind; end - -# Read-access of a symbol, like reading a variable. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_highlight_kind.rb#15 -LanguageServer::Protocol::Constant::DocumentHighlightKind::READ = T.let(T.unsafe(nil), Integer) - -# A textual occurrence. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_highlight_kind.rb#11 -LanguageServer::Protocol::Constant::DocumentHighlightKind::TEXT = T.let(T.unsafe(nil), Integer) - -# Write-access of a symbol, like writing to a variable. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_highlight_kind.rb#19 -LanguageServer::Protocol::Constant::DocumentHighlightKind::WRITE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#4 -module LanguageServer::Protocol::Constant::ErrorCodes; end - -# The server detected that the content of a document got -# modified outside normal conditions. A server should -# NOT send this error code if it detects a content change -# in it unprocessed messages. The result even computed -# on an older state might still be useful for the client. -# -# If a client decides that a result is not of any use anymore -# the client should cancel the request. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#59 -LanguageServer::Protocol::Constant::ErrorCodes::CONTENT_MODIFIED = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#9 -LanguageServer::Protocol::Constant::ErrorCodes::INTERNAL_ERROR = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#8 -LanguageServer::Protocol::Constant::ErrorCodes::INVALID_PARAMS = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#6 -LanguageServer::Protocol::Constant::ErrorCodes::INVALID_REQUEST = T.let(T.unsafe(nil), Integer) - -# This is the end range of JSON-RPC reserved error codes. -# It doesn't denote a real error code. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#29 -LanguageServer::Protocol::Constant::ErrorCodes::JSONRPC_RESERVED_ERROR_RANGE_END = T.let(T.unsafe(nil), Integer) - -# This is the start range of JSON-RPC reserved error codes. -# It doesn't denote a real error code. No LSP error codes should -# be defined between the start and end range. For backwards -# compatibility the `ServerNotInitialized` and the `UnknownErrorCode` -# are left in the range. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#17 -LanguageServer::Protocol::Constant::ErrorCodes::JSONRPC_RESERVED_ERROR_RANGE_START = T.let(T.unsafe(nil), Integer) - -# This is the end range of LSP reserved error codes. -# It doesn't denote a real error code. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#69 -LanguageServer::Protocol::Constant::ErrorCodes::LSP_RESERVED_ERROR_RANGE_END = T.let(T.unsafe(nil), Integer) - -# This is the start range of LSP reserved error codes. -# It doesn't denote a real error code. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#35 -LanguageServer::Protocol::Constant::ErrorCodes::LSP_RESERVED_ERROR_RANGE_START = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#7 -LanguageServer::Protocol::Constant::ErrorCodes::METHOD_NOT_FOUND = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#5 -LanguageServer::Protocol::Constant::ErrorCodes::PARSE_ERROR = T.let(T.unsafe(nil), Integer) - -# The client has canceled a request and a server as detected -# the cancel. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#64 -LanguageServer::Protocol::Constant::ErrorCodes::REQUEST_CANCELLED = T.let(T.unsafe(nil), Integer) - -# A request failed but it was syntactically correct, e.g the -# method name was known and the parameters were valid. The error -# message should contain human readable information about why -# the request failed. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#42 -LanguageServer::Protocol::Constant::ErrorCodes::REQUEST_FAILED = T.let(T.unsafe(nil), Integer) - -# The server cancelled the request. This error code should -# only be used for requests that explicitly support being -# server cancellable. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#48 -LanguageServer::Protocol::Constant::ErrorCodes::SERVER_CANCELLED = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#30 -LanguageServer::Protocol::Constant::ErrorCodes::SERVER_ERROR_END = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#18 -LanguageServer::Protocol::Constant::ErrorCodes::SERVER_ERROR_START = T.let(T.unsafe(nil), Integer) - -# Error code indicating that a server received a notification or -# request before the server has received the `initialize` request. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#23 -LanguageServer::Protocol::Constant::ErrorCodes::SERVER_NOT_INITIALIZED = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#24 -LanguageServer::Protocol::Constant::ErrorCodes::UNKNOWN_ERROR_CODE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#4 -module LanguageServer::Protocol::Constant::FailureHandlingKind; end - -# Applying the workspace change is simply aborted if one of the changes -# provided fails. All operations executed before the failing operation -# stay executed. -# -# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#10 -LanguageServer::Protocol::Constant::FailureHandlingKind::ABORT = T.let(T.unsafe(nil), String) - -# If the workspace edit contains only textual file changes they are -# executed transactional. If resource changes (create, rename or delete -# file) are part of the change the failure handling strategy is abort. -# -# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#21 -LanguageServer::Protocol::Constant::FailureHandlingKind::TEXT_ONLY_TRANSACTIONAL = T.let(T.unsafe(nil), String) - -# All operations are executed transactional. That means they either all -# succeed or no changes at all are applied to the workspace. -# -# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#15 -LanguageServer::Protocol::Constant::FailureHandlingKind::TRANSACTIONAL = T.let(T.unsafe(nil), String) - -# The client tries to undo the operations already executed. But there is no -# guarantee that this is succeeding. -# -# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#26 -LanguageServer::Protocol::Constant::FailureHandlingKind::UNDO = T.let(T.unsafe(nil), String) - -# The file event type. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_change_type.rb#7 -module LanguageServer::Protocol::Constant::FileChangeType; end - -# The file got changed. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_change_type.rb#15 -LanguageServer::Protocol::Constant::FileChangeType::CHANGED = T.let(T.unsafe(nil), Integer) - -# The file got created. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_change_type.rb#11 -LanguageServer::Protocol::Constant::FileChangeType::CREATED = T.let(T.unsafe(nil), Integer) - -# The file got deleted. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_change_type.rb#19 -LanguageServer::Protocol::Constant::FileChangeType::DELETED = T.let(T.unsafe(nil), Integer) - -# A pattern kind describing if a glob pattern matches a file a folder or -# both. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_operation_pattern_kind.rb#8 -module LanguageServer::Protocol::Constant::FileOperationPatternKind; end - -# The pattern matches a file only. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_operation_pattern_kind.rb#12 -LanguageServer::Protocol::Constant::FileOperationPatternKind::FILE = T.let(T.unsafe(nil), String) - -# The pattern matches a folder only. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_operation_pattern_kind.rb#16 -LanguageServer::Protocol::Constant::FileOperationPatternKind::FOLDER = T.let(T.unsafe(nil), String) - -# A set of predefined range kinds. -# The type is a string since the value set is extensible -# -# source://language_server-protocol//lib/language_server/protocol/constant/folding_range_kind.rb#8 -module LanguageServer::Protocol::Constant::FoldingRangeKind; end - -# Folding range for a comment -# -# source://language_server-protocol//lib/language_server/protocol/constant/folding_range_kind.rb#12 -LanguageServer::Protocol::Constant::FoldingRangeKind::COMMENT = T.let(T.unsafe(nil), String) - -# Folding range for imports or includes -# -# source://language_server-protocol//lib/language_server/protocol/constant/folding_range_kind.rb#16 -LanguageServer::Protocol::Constant::FoldingRangeKind::IMPORTS = T.let(T.unsafe(nil), String) - -# Folding range for a region (e.g. `#region`) -# -# source://language_server-protocol//lib/language_server/protocol/constant/folding_range_kind.rb#20 -LanguageServer::Protocol::Constant::FoldingRangeKind::REGION = T.let(T.unsafe(nil), String) - -# Known error codes for an `InitializeErrorCodes`; -# -# source://language_server-protocol//lib/language_server/protocol/constant/initialize_error_codes.rb#7 -module LanguageServer::Protocol::Constant::InitializeErrorCodes; end - -# If the protocol version provided by the client can't be handled by -# the server. -# -# source://language_server-protocol//lib/language_server/protocol/constant/initialize_error_codes.rb#12 -LanguageServer::Protocol::Constant::InitializeErrorCodes::UNKNOWN_PROTOCOL_VERSION = T.let(T.unsafe(nil), Integer) - -# Inlay hint kinds. -# -# source://language_server-protocol//lib/language_server/protocol/constant/inlay_hint_kind.rb#7 -module LanguageServer::Protocol::Constant::InlayHintKind; end - -# An inlay hint that is for a parameter. -# -# source://language_server-protocol//lib/language_server/protocol/constant/inlay_hint_kind.rb#15 -LanguageServer::Protocol::Constant::InlayHintKind::PARAMETER = T.let(T.unsafe(nil), Integer) - -# An inlay hint that for a type annotation. -# -# source://language_server-protocol//lib/language_server/protocol/constant/inlay_hint_kind.rb#11 -LanguageServer::Protocol::Constant::InlayHintKind::TYPE = T.let(T.unsafe(nil), Integer) - -# Defines whether the insert text in a completion item should be interpreted as -# plain text or a snippet. -# -# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_format.rb#8 -module LanguageServer::Protocol::Constant::InsertTextFormat; end - -# The primary text to be inserted is treated as a plain string. -# -# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_format.rb#12 -LanguageServer::Protocol::Constant::InsertTextFormat::PLAIN_TEXT = T.let(T.unsafe(nil), Integer) - -# The primary text to be inserted is treated as a snippet. -# -# A snippet can define tab stops and placeholders with `$1`, `$2` -# and `${3:foo}`. `$0` defines the final tab stop, it defaults to -# the end of the snippet. Placeholders with equal identifiers are linked, -# that is typing in one will update others too. -# -# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_format.rb#21 -LanguageServer::Protocol::Constant::InsertTextFormat::SNIPPET = T.let(T.unsafe(nil), Integer) - -# How whitespace and indentation is handled during completion -# item insertion. -# -# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_mode.rb#8 -module LanguageServer::Protocol::Constant::InsertTextMode; end - -# The editor adjusts leading whitespace of new lines so that -# they match the indentation up to the cursor of the line for -# which the item is accepted. -# -# Consider a line like this: <2tabs><3tabs>foo. Accepting a -# multi line completion item is indented using 2 tabs and all -# following lines inserted will be indented using 2 tabs as well. -# -# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_mode.rb#26 -LanguageServer::Protocol::Constant::InsertTextMode::ADJUST_INDENTATION = T.let(T.unsafe(nil), Integer) - -# The insertion or replace strings is taken as it is. If the -# value is multi line the lines below the cursor will be -# inserted using the indentation defined in the string value. -# The client will not apply any kind of adjustments to the -# string. -# -# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_mode.rb#16 -LanguageServer::Protocol::Constant::InsertTextMode::AS_IS = T.let(T.unsafe(nil), Integer) - -# Describes the content type that a client supports in various -# result literals like `Hover`, `ParameterInfo` or `CompletionItem`. -# -# Please note that `MarkupKinds` must not start with a `$`. This kinds -# are reserved for internal usage. -# -# source://language_server-protocol//lib/language_server/protocol/constant/markup_kind.rb#11 -module LanguageServer::Protocol::Constant::MarkupKind; end - -# Markdown is supported as a content format -# -# source://language_server-protocol//lib/language_server/protocol/constant/markup_kind.rb#19 -LanguageServer::Protocol::Constant::MarkupKind::MARKDOWN = T.let(T.unsafe(nil), String) - -# Plain text is supported as a content format -# -# source://language_server-protocol//lib/language_server/protocol/constant/markup_kind.rb#15 -LanguageServer::Protocol::Constant::MarkupKind::PLAIN_TEXT = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#4 -module LanguageServer::Protocol::Constant::MessageType; end - -# An error message. -# -# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#8 -LanguageServer::Protocol::Constant::MessageType::ERROR = T.let(T.unsafe(nil), Integer) - -# An information message. -# -# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#16 -LanguageServer::Protocol::Constant::MessageType::INFO = T.let(T.unsafe(nil), Integer) - -# A log message. -# -# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#20 -LanguageServer::Protocol::Constant::MessageType::LOG = T.let(T.unsafe(nil), Integer) - -# A warning message. -# -# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#12 -LanguageServer::Protocol::Constant::MessageType::WARNING = T.let(T.unsafe(nil), Integer) - -# The moniker kind. -# -# source://language_server-protocol//lib/language_server/protocol/constant/moniker_kind.rb#7 -module LanguageServer::Protocol::Constant::MonikerKind; end - -# The moniker represents a symbol that is exported from a project -# -# source://language_server-protocol//lib/language_server/protocol/constant/moniker_kind.rb#15 -LanguageServer::Protocol::Constant::MonikerKind::EXPORT = T.let(T.unsafe(nil), String) - -# The moniker represent a symbol that is imported into a project -# -# source://language_server-protocol//lib/language_server/protocol/constant/moniker_kind.rb#11 -LanguageServer::Protocol::Constant::MonikerKind::IMPORT = T.let(T.unsafe(nil), String) - -# The moniker represents a symbol that is local to a project (e.g. a local -# variable of a function, a class not visible outside the project, ...) -# -# source://language_server-protocol//lib/language_server/protocol/constant/moniker_kind.rb#20 -LanguageServer::Protocol::Constant::MonikerKind::LOCAL = T.let(T.unsafe(nil), String) - -# A notebook cell kind. -# -# source://language_server-protocol//lib/language_server/protocol/constant/notebook_cell_kind.rb#7 -module LanguageServer::Protocol::Constant::NotebookCellKind; end - -# A code-cell is source code. -# -# source://language_server-protocol//lib/language_server/protocol/constant/notebook_cell_kind.rb#15 -LanguageServer::Protocol::Constant::NotebookCellKind::CODE = T.let(T.unsafe(nil), Integer) - -# A markup-cell is formatted source that is used for display. -# -# source://language_server-protocol//lib/language_server/protocol/constant/notebook_cell_kind.rb#11 -LanguageServer::Protocol::Constant::NotebookCellKind::MARKUP = T.let(T.unsafe(nil), Integer) - -# A type indicating how positions are encoded, -# specifically what column offsets mean. -# A set of predefined position encoding kinds. -# -# source://language_server-protocol//lib/language_server/protocol/constant/position_encoding_kind.rb#9 -module LanguageServer::Protocol::Constant::PositionEncodingKind; end - -# Character offsets count UTF-16 code units. -# -# This is the default and must always be supported -# by servers -# -# source://language_server-protocol//lib/language_server/protocol/constant/position_encoding_kind.rb#20 -LanguageServer::Protocol::Constant::PositionEncodingKind::UTF16 = T.let(T.unsafe(nil), String) - -# Character offsets count UTF-32 code units. -# -# Implementation note: these are the same as Unicode code points, -# so this `PositionEncodingKind` may also be used for an -# encoding-agnostic representation of character offsets. -# -# source://language_server-protocol//lib/language_server/protocol/constant/position_encoding_kind.rb#28 -LanguageServer::Protocol::Constant::PositionEncodingKind::UTF32 = T.let(T.unsafe(nil), String) - -# Character offsets count UTF-8 code units (e.g bytes). -# -# source://language_server-protocol//lib/language_server/protocol/constant/position_encoding_kind.rb#13 -LanguageServer::Protocol::Constant::PositionEncodingKind::UTF8 = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/prepare_support_default_behavior.rb#4 -module LanguageServer::Protocol::Constant::PrepareSupportDefaultBehavior; end - -# The client's default behavior is to select the identifier -# according to the language's syntax rule. -# -# source://language_server-protocol//lib/language_server/protocol/constant/prepare_support_default_behavior.rb#9 -LanguageServer::Protocol::Constant::PrepareSupportDefaultBehavior::IDENTIFIER = T.let(T.unsafe(nil), Integer) - -# The kind of resource operations supported by the client. -# -# source://language_server-protocol//lib/language_server/protocol/constant/resource_operation_kind.rb#7 -module LanguageServer::Protocol::Constant::ResourceOperationKind; end - -# Supports creating new files and folders. -# -# source://language_server-protocol//lib/language_server/protocol/constant/resource_operation_kind.rb#11 -LanguageServer::Protocol::Constant::ResourceOperationKind::CREATE = T.let(T.unsafe(nil), String) - -# Supports deleting existing files and folders. -# -# source://language_server-protocol//lib/language_server/protocol/constant/resource_operation_kind.rb#19 -LanguageServer::Protocol::Constant::ResourceOperationKind::DELETE = T.let(T.unsafe(nil), String) - -# Supports renaming existing files and folders. -# -# source://language_server-protocol//lib/language_server/protocol/constant/resource_operation_kind.rb#15 -LanguageServer::Protocol::Constant::ResourceOperationKind::RENAME = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#4 -module LanguageServer::Protocol::Constant::SemanticTokenModifiers; end - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#10 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::ABSTRACT = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#11 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::ASYNC = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#5 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::DECLARATION = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#14 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::DEFAULT_LIBRARY = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#6 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::DEFINITION = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#9 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::DEPRECATED = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#13 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::DOCUMENTATION = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#12 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::MODIFICATION = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#7 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::READONLY = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#8 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::STATIC = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#4 -module LanguageServer::Protocol::Constant::SemanticTokenTypes; end - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#11 -LanguageServer::Protocol::Constant::SemanticTokenTypes::CLASS = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#26 -LanguageServer::Protocol::Constant::SemanticTokenTypes::COMMENT = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#31 -LanguageServer::Protocol::Constant::SemanticTokenTypes::DECORATOR = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#12 -LanguageServer::Protocol::Constant::SemanticTokenTypes::ENUM = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#19 -LanguageServer::Protocol::Constant::SemanticTokenTypes::ENUM_MEMBER = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#20 -LanguageServer::Protocol::Constant::SemanticTokenTypes::EVENT = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#21 -LanguageServer::Protocol::Constant::SemanticTokenTypes::FUNCTION = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#13 -LanguageServer::Protocol::Constant::SemanticTokenTypes::INTERFACE = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#24 -LanguageServer::Protocol::Constant::SemanticTokenTypes::KEYWORD = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#23 -LanguageServer::Protocol::Constant::SemanticTokenTypes::MACRO = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#22 -LanguageServer::Protocol::Constant::SemanticTokenTypes::METHOD = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#25 -LanguageServer::Protocol::Constant::SemanticTokenTypes::MODIFIER = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#5 -LanguageServer::Protocol::Constant::SemanticTokenTypes::NAMESPACE = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#28 -LanguageServer::Protocol::Constant::SemanticTokenTypes::NUMBER = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#30 -LanguageServer::Protocol::Constant::SemanticTokenTypes::OPERATOR = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#16 -LanguageServer::Protocol::Constant::SemanticTokenTypes::PARAMETER = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#18 -LanguageServer::Protocol::Constant::SemanticTokenTypes::PROPERTY = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#29 -LanguageServer::Protocol::Constant::SemanticTokenTypes::REGEXP = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#27 -LanguageServer::Protocol::Constant::SemanticTokenTypes::STRING = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#14 -LanguageServer::Protocol::Constant::SemanticTokenTypes::STRUCT = T.let(T.unsafe(nil), String) - -# Represents a generic type. Acts as a fallback for types which -# can't be mapped to a specific type like class or enum. -# -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#10 -LanguageServer::Protocol::Constant::SemanticTokenTypes::TYPE = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#15 -LanguageServer::Protocol::Constant::SemanticTokenTypes::TYPE_PARAMETER = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#17 -LanguageServer::Protocol::Constant::SemanticTokenTypes::VARIABLE = T.let(T.unsafe(nil), String) - -# How a signature help was triggered. -# -# source://language_server-protocol//lib/language_server/protocol/constant/signature_help_trigger_kind.rb#7 -module LanguageServer::Protocol::Constant::SignatureHelpTriggerKind; end - -# Signature help was triggered by the cursor moving or by the document -# content changing. -# -# source://language_server-protocol//lib/language_server/protocol/constant/signature_help_trigger_kind.rb#20 -LanguageServer::Protocol::Constant::SignatureHelpTriggerKind::CONTENT_CHANGE = T.let(T.unsafe(nil), Integer) - -# Signature help was invoked manually by the user or by a command. -# -# source://language_server-protocol//lib/language_server/protocol/constant/signature_help_trigger_kind.rb#11 -LanguageServer::Protocol::Constant::SignatureHelpTriggerKind::INVOKED = T.let(T.unsafe(nil), Integer) - -# Signature help was triggered by a trigger character. -# -# source://language_server-protocol//lib/language_server/protocol/constant/signature_help_trigger_kind.rb#15 -LanguageServer::Protocol::Constant::SignatureHelpTriggerKind::TRIGGER_CHARACTER = T.let(T.unsafe(nil), Integer) - -# A symbol kind. -# -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#7 -module LanguageServer::Protocol::Constant::SymbolKind; end - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#25 -LanguageServer::Protocol::Constant::SymbolKind::ARRAY = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#24 -LanguageServer::Protocol::Constant::SymbolKind::BOOLEAN = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#12 -LanguageServer::Protocol::Constant::SymbolKind::CLASS = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#21 -LanguageServer::Protocol::Constant::SymbolKind::CONSTANT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#16 -LanguageServer::Protocol::Constant::SymbolKind::CONSTRUCTOR = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#17 -LanguageServer::Protocol::Constant::SymbolKind::ENUM = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#29 -LanguageServer::Protocol::Constant::SymbolKind::ENUM_MEMBER = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#31 -LanguageServer::Protocol::Constant::SymbolKind::EVENT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#15 -LanguageServer::Protocol::Constant::SymbolKind::FIELD = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#8 -LanguageServer::Protocol::Constant::SymbolKind::FILE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#19 -LanguageServer::Protocol::Constant::SymbolKind::FUNCTION = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#18 -LanguageServer::Protocol::Constant::SymbolKind::INTERFACE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#27 -LanguageServer::Protocol::Constant::SymbolKind::KEY = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#13 -LanguageServer::Protocol::Constant::SymbolKind::METHOD = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#9 -LanguageServer::Protocol::Constant::SymbolKind::MODULE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#10 -LanguageServer::Protocol::Constant::SymbolKind::NAMESPACE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#28 -LanguageServer::Protocol::Constant::SymbolKind::NULL = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#23 -LanguageServer::Protocol::Constant::SymbolKind::NUMBER = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#26 -LanguageServer::Protocol::Constant::SymbolKind::OBJECT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#32 -LanguageServer::Protocol::Constant::SymbolKind::OPERATOR = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#11 -LanguageServer::Protocol::Constant::SymbolKind::PACKAGE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#14 -LanguageServer::Protocol::Constant::SymbolKind::PROPERTY = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#22 -LanguageServer::Protocol::Constant::SymbolKind::STRING = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#30 -LanguageServer::Protocol::Constant::SymbolKind::STRUCT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#33 -LanguageServer::Protocol::Constant::SymbolKind::TYPE_PARAMETER = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#20 -LanguageServer::Protocol::Constant::SymbolKind::VARIABLE = T.let(T.unsafe(nil), Integer) - -# Symbol tags are extra annotations that tweak the rendering of a symbol. -# -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_tag.rb#7 -module LanguageServer::Protocol::Constant::SymbolTag; end - -# Render a symbol as obsolete, usually using a strike-out. -# -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_tag.rb#11 -LanguageServer::Protocol::Constant::SymbolTag::DEPRECATED = T.let(T.unsafe(nil), Integer) - -# Represents reasons why a text document is saved. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_save_reason.rb#7 -module LanguageServer::Protocol::Constant::TextDocumentSaveReason; end - -# Automatic after a delay. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_save_reason.rb#16 -LanguageServer::Protocol::Constant::TextDocumentSaveReason::AFTER_DELAY = T.let(T.unsafe(nil), Integer) - -# When the editor lost focus. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_save_reason.rb#20 -LanguageServer::Protocol::Constant::TextDocumentSaveReason::FOCUS_OUT = T.let(T.unsafe(nil), Integer) - -# Manually triggered, e.g. by the user pressing save, by starting -# debugging, or by an API call. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_save_reason.rb#12 -LanguageServer::Protocol::Constant::TextDocumentSaveReason::MANUAL = T.let(T.unsafe(nil), Integer) - -# Defines how the host (editor) should sync document changes to the language -# server. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_sync_kind.rb#8 -module LanguageServer::Protocol::Constant::TextDocumentSyncKind; end - -# Documents are synced by always sending the full content -# of the document. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_sync_kind.rb#17 -LanguageServer::Protocol::Constant::TextDocumentSyncKind::FULL = T.let(T.unsafe(nil), Integer) - -# Documents are synced by sending the full content on open. -# After that only incremental updates to the document are -# sent. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_sync_kind.rb#23 -LanguageServer::Protocol::Constant::TextDocumentSyncKind::INCREMENTAL = T.let(T.unsafe(nil), Integer) - -# Documents should not be synced at all. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_sync_kind.rb#12 -LanguageServer::Protocol::Constant::TextDocumentSyncKind::NONE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/token_format.rb#4 -module LanguageServer::Protocol::Constant::TokenFormat; end - -# source://language_server-protocol//lib/language_server/protocol/constant/token_format.rb#5 -LanguageServer::Protocol::Constant::TokenFormat::RELATIVE = T.let(T.unsafe(nil), String) - -# Moniker uniqueness level to define scope of the moniker. -# -# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#7 -module LanguageServer::Protocol::Constant::UniquenessLevel; end - -# The moniker is only unique inside a document -# -# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#11 -LanguageServer::Protocol::Constant::UniquenessLevel::DOCUMENT = T.let(T.unsafe(nil), String) - -# The moniker is globally unique -# -# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#27 -LanguageServer::Protocol::Constant::UniquenessLevel::GLOBAL = T.let(T.unsafe(nil), String) - -# The moniker is unique inside the group to which a project belongs -# -# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#19 -LanguageServer::Protocol::Constant::UniquenessLevel::GROUP = T.let(T.unsafe(nil), String) - -# The moniker is unique inside a project for which a dump got created -# -# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#15 -LanguageServer::Protocol::Constant::UniquenessLevel::PROJECT = T.let(T.unsafe(nil), String) - -# The moniker is unique inside the moniker scheme. -# -# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#23 -LanguageServer::Protocol::Constant::UniquenessLevel::SCHEME = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/watch_kind.rb#4 -module LanguageServer::Protocol::Constant::WatchKind; end - -# Interested in change events -# -# source://language_server-protocol//lib/language_server/protocol/constant/watch_kind.rb#12 -LanguageServer::Protocol::Constant::WatchKind::CHANGE = T.let(T.unsafe(nil), Integer) - -# Interested in create events. -# -# source://language_server-protocol//lib/language_server/protocol/constant/watch_kind.rb#8 -LanguageServer::Protocol::Constant::WatchKind::CREATE = T.let(T.unsafe(nil), Integer) - -# Interested in delete events -# -# source://language_server-protocol//lib/language_server/protocol/constant/watch_kind.rb#16 -LanguageServer::Protocol::Constant::WatchKind::DELETE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/interface.rb#3 -module LanguageServer::Protocol::Interface; end - -# A special text edit with an additional change annotation. -# -# source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#7 -class LanguageServer::Protocol::Interface::AnnotatedTextEdit - # @return [AnnotatedTextEdit] a new instance of AnnotatedTextEdit - # - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#8 - def initialize(range:, new_text:, annotation_id:); end - - # The actual annotation identifier. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#40 - def annotation_id; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#44 - def attributes; end - - # The string to be inserted. For delete operations use an - # empty string. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#32 - def new_text; end - - # The range of the text document to be manipulated. To insert - # text into a document create a range where start === end. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#23 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#50 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#4 -class LanguageServer::Protocol::Interface::ApplyWorkspaceEditParams - # @return [ApplyWorkspaceEditParams] a new instance of ApplyWorkspaceEditParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#5 - def initialize(edit:, label: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#32 - def attributes; end - - # The edits to apply. - # - # @return [WorkspaceEdit] - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#28 - def edit; end - - # An optional label of the workspace edit. This label is - # presented in the user interface for example on an undo - # stack to undo the workspace edit. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#20 - def label; end - - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#38 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#4 -class LanguageServer::Protocol::Interface::ApplyWorkspaceEditResult - # @return [ApplyWorkspaceEditResult] a new instance of ApplyWorkspaceEditResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#5 - def initialize(applied:, failure_reason: T.unsafe(nil), failed_change: T.unsafe(nil)); end - - # Indicates whether the edit was applied or not. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#19 - def applied; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#44 - def attributes; end - - # Depending on the client's failure handling strategy `failedChange` - # might contain the index of the change that failed. This property is - # only available if the client signals a `failureHandling` strategy - # in its client capabilities. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#40 - def failed_change; end - - # An optional textual description for why the edit was not applied. - # This may be used by the server for diagnostic logging or to provide - # a suitable error for a request that triggered the edit. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#29 - def failure_reason; end - - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#50 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyClientCapabilities - # @return [CallHierarchyClientCapabilities] a new instance of CallHierarchyClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#24 - def attributes; end - - # Whether implementation supports dynamic registration. If this is set to - # `true` the client supports the new `(TextDocumentRegistrationOptions & - # StaticRegistrationOptions)` return value for the corresponding server - # capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#20 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyIncomingCall - # @return [CallHierarchyIncomingCall] a new instance of CallHierarchyIncomingCall - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#5 - def initialize(from:, from_ranges:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#31 - def attributes; end - - # The item that makes the call. - # - # @return [CallHierarchyItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#18 - def from; end - - # The ranges at which the calls appear. This is relative to the caller - # denoted by [`this.from`](#CallHierarchyIncomingCall.from). - # - # @return [Range[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#27 - def from_ranges; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#37 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyIncomingCallsParams - # @return [CallHierarchyIncomingCallsParams] a new instance of CallHierarchyIncomingCallsParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#5 - def initialize(item:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#37 - def attributes; end - - # @return [CallHierarchyItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#33 - def item; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#28 - def partial_result_token; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#43 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyItem - # @return [CallHierarchyItem] a new instance of CallHierarchyItem - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#5 - def initialize(name:, kind:, uri:, range:, selection_range:, tags: T.unsafe(nil), detail: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#88 - def attributes; end - - # A data entry field that is preserved between a call hierarchy prepare and - # incoming calls or outgoing calls requests. - # - # @return [unknown] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#84 - def data; end - - # More detail for this item, e.g. the signature of a function. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#48 - def detail; end - - # The kind of this item. - # - # @return [SymbolKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#32 - def kind; end - - # The name of this item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#24 - def name; end - - # The range enclosing this symbol not including leading/trailing whitespace - # but everything else, e.g. comments and code. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#65 - def range; end - - # The range that should be selected and revealed when this symbol is being - # picked, e.g. the name of a function. Must be contained by the - # [`range`](#CallHierarchyItem.range). - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#75 - def selection_range; end - - # Tags for this item. - # - # @return [1[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#40 - def tags; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#90 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#94 - def to_json(*args); end - - # The resource identifier of this item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#56 - def uri; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyOptions - # @return [CallHierarchyOptions] a new instance of CallHierarchyOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyOutgoingCall - # @return [CallHierarchyOutgoingCall] a new instance of CallHierarchyOutgoingCall - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#5 - def initialize(to:, from_ranges:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#31 - def attributes; end - - # The range at which this item is called. This is the range relative to - # the caller, e.g the item passed to `callHierarchy/outgoingCalls` request. - # - # @return [Range[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#27 - def from_ranges; end - - # The item that is called. - # - # @return [CallHierarchyItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#18 - def to; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#37 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyOutgoingCallsParams - # @return [CallHierarchyOutgoingCallsParams] a new instance of CallHierarchyOutgoingCallsParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#5 - def initialize(item:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#37 - def attributes; end - - # @return [CallHierarchyItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#33 - def item; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#28 - def partial_result_token; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#43 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyPrepareParams - # @return [CallHierarchyPrepareParams] a new instance of CallHierarchyPrepareParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#39 - def attributes; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#27 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#19 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#35 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyRegistrationOptions - # @return [CallHierarchyRegistrationOptions] a new instance of CallHierarchyRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#4 -class LanguageServer::Protocol::Interface::CancelParams - # @return [CancelParams] a new instance of CancelParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#5 - def initialize(id:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#21 - def attributes; end - - # The request id to cancel. - # - # @return [string | number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#17 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#27 - def to_json(*args); end -end - -# Additional information that describes document changes. -# -# source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#7 -class LanguageServer::Protocol::Interface::ChangeAnnotation - # @return [ChangeAnnotation] a new instance of ChangeAnnotation - # - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#8 - def initialize(label:, needs_confirmation: T.unsafe(nil), description: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#45 - def attributes; end - - # A human-readable string which is rendered less prominent in - # the user interface. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#41 - def description; end - - # A human-readable string describing the actual change. The string - # is rendered prominent in the user interface. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#23 - def label; end - - # A flag which indicates that user confirmation is needed - # before applying the change. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#32 - def needs_confirmation; end - - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#47 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#51 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::ClientCapabilities - # @return [ClientCapabilities] a new instance of ClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#5 - def initialize(workspace: T.unsafe(nil), text_document: T.unsafe(nil), notebook_document: T.unsafe(nil), window: T.unsafe(nil), general: T.unsafe(nil), experimental: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#66 - def attributes; end - - # Experimental client capabilities. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#62 - def experimental; end - - # General client capabilities. - # - # @return [{ staleRequestSupport?: { cancel: boolean; retryOnContentModified: string[]; }; regularExpressions?: RegularExpressionsClientCapabilities; markdown?: any; positionEncodings?: string[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#54 - def general; end - - # Capabilities specific to the notebook document support. - # - # @return [NotebookDocumentClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#38 - def notebook_document; end - - # Text document specific client capabilities. - # - # @return [TextDocumentClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#30 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#68 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#72 - def to_json(*args); end - - # Window specific client capabilities. - # - # @return [{ workDoneProgress?: boolean; showMessage?: ShowMessageRequestClientCapabilities; showDocument?: ShowDocumentClientCapabilities; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#46 - def window; end - - # Workspace specific client capabilities. - # - # @return [{ applyEdit?: boolean; workspaceEdit?: WorkspaceEditClientCapabilities; didChangeConfiguration?: DidChangeConfigurationClientCapabilities; ... 10 more ...; diagnostics?: DiagnosticWorkspaceClientCapabilities; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#22 - def workspace; end -end - -# A code action represents a change that can be performed in code, e.g. to fix -# a problem or to refactor code. -# -# A CodeAction must set either `edit` and/or a `command`. If both are supplied, -# the `edit` is applied first, then the `command` is executed. -# -# source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#11 -class LanguageServer::Protocol::Interface::CodeAction - # @return [CodeAction] a new instance of CodeAction - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#12 - def initialize(title:, kind: T.unsafe(nil), diagnostics: T.unsafe(nil), is_preferred: T.unsafe(nil), disabled: T.unsafe(nil), edit: T.unsafe(nil), command: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#115 - def attributes; end - - # A command this code action executes. If a code action - # provides an edit and a command, first the edit is - # executed and then the command. - # - # @return [Command] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#102 - def command; end - - # A data entry field that is preserved on a code action between - # a `textDocument/codeAction` and a `codeAction/resolve` request. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#111 - def data; end - - # The diagnostics that this code action resolves. - # - # @return [Diagnostic[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#49 - def diagnostics; end - - # Marks that the code action cannot currently be applied. - # - # Clients should follow the following guidelines regarding disabled code - # actions: - # - # - Disabled code actions are not shown in automatic lightbulbs code - # action menus. - # - # - Disabled actions are shown as faded out in the code action menu when - # the user request a more specific type of code action, such as - # refactorings. - # - # - If the user has a keybinding that auto applies a code action and only - # a disabled code actions are returned, the client should show the user - # an error message with `reason` in the editor. - # - # @return [{ reason: string; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#84 - def disabled; end - - # The workspace edit this code action performs. - # - # @return [WorkspaceEdit] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#92 - def edit; end - - # Marks this as a preferred action. Preferred actions are used by the - # `auto fix` command and can be targeted by keybindings. - # - # A quick fix should be marked preferred if it properly addresses the - # underlying error. A refactoring should be marked preferred if it is the - # most reasonable choice of actions to take. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#62 - def is_preferred; end - - # The kind of the code action. - # - # Used to filter code actions. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#41 - def kind; end - - # A short, human-readable, title for this code action. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#31 - def title; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#117 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#121 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::CodeActionClientCapabilities - # @return [CodeActionClientCapabilities] a new instance of CodeActionClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), code_action_literal_support: T.unsafe(nil), is_preferred_support: T.unsafe(nil), disabled_support: T.unsafe(nil), data_support: T.unsafe(nil), resolve_support: T.unsafe(nil), honors_change_annotations: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#83 - def attributes; end - - # The client supports code action literals as a valid - # response of the `textDocument/codeAction` request. - # - # @return [{ codeActionKind: { valueSet: string[]; }; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#32 - def code_action_literal_support; end - - # Whether code action supports the `data` property which is - # preserved between a `textDocument/codeAction` and a - # `codeAction/resolve` request. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#58 - def data_support; end - - # Whether code action supports the `disabled` property. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#48 - def disabled_support; end - - # Whether code action supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#23 - def dynamic_registration; end - - # Whether the client honors the change annotations in - # text edits and resource operations returned via the - # `CodeAction#edit` property by for example presenting - # the workspace edit in the user interface and asking - # for confirmation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#79 - def honors_change_annotations; end - - # Whether code action supports the `isPreferred` property. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#40 - def is_preferred_support; end - - # Whether the client supports resolving additional code action - # properties via a separate `codeAction/resolve` request. - # - # @return [{ properties: string[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#67 - def resolve_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#85 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#89 - def to_json(*args); end -end - -# Contains additional diagnostic information about the context in which -# a code action is run. -# -# source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#8 -class LanguageServer::Protocol::Interface::CodeActionContext - # @return [CodeActionContext] a new instance of CodeActionContext - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#9 - def initialize(diagnostics:, only: T.unsafe(nil), trigger_kind: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#51 - def attributes; end - - # An array of diagnostics known on the client side overlapping the range - # provided to the `textDocument/codeAction` request. They are provided so - # that the server knows which errors are currently presented to the user - # for the given range. There is no guarantee that these accurately reflect - # the error state of the resource. The primary parameter - # to compute code actions is the provided range. - # - # @return [Diagnostic[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#28 - def diagnostics; end - - # Requested kind of actions to return. - # - # Actions not of this kind are filtered out by the client before being - # shown. So servers can omit computing them. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#39 - def only; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#57 - def to_json(*args); end - - # The reason why code actions were requested. - # - # @return [CodeActionTriggerKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#47 - def trigger_kind; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#4 -class LanguageServer::Protocol::Interface::CodeActionOptions - # @return [CodeActionOptions] a new instance of CodeActionOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), code_action_kinds: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#40 - def attributes; end - - # CodeActionKinds that this server may return. - # - # The list of kinds may be generic, such as `CodeActionKind.Refactor`, - # or the server may list out every specific kind they provide. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#27 - def code_action_kinds; end - - # The server provides support to resolve additional - # information for a code action. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#36 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#46 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#16 - def work_done_progress; end -end - -# Params for the CodeActionRequest -# -# source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#7 -class LanguageServer::Protocol::Interface::CodeActionParams - # @return [CodeActionParams] a new instance of CodeActionParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#8 - def initialize(text_document:, range:, context:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#61 - def attributes; end - - # Context carrying additional information. - # - # @return [CodeActionContext] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#57 - def context; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#33 - def partial_result_token; end - - # The range for which the command was invoked. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#49 - def range; end - - # The document in which the command was invoked. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#41 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#63 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#67 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#24 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#4 -class LanguageServer::Protocol::Interface::CodeActionRegistrationOptions - # @return [CodeActionRegistrationOptions] a new instance of CodeActionRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), code_action_kinds: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#50 - def attributes; end - - # CodeActionKinds that this server may return. - # - # The list of kinds may be generic, such as `CodeActionKind.Refactor`, - # or the server may list out every specific kind they provide. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#37 - def code_action_kinds; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#21 - def document_selector; end - - # The server provides support to resolve additional - # information for a code action. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#46 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#52 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#56 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#26 - def work_done_progress; end -end - -# Structure to capture a description for an error code. -# -# source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#7 -class LanguageServer::Protocol::Interface::CodeDescription - # @return [CodeDescription] a new instance of CodeDescription - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#8 - def initialize(href:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#24 - def attributes; end - - # An URI to open with more information about the diagnostic error. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#20 - def href; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#30 - def to_json(*args); end -end - -# A code lens represents a command that should be shown along with -# source text, like the number of references, a way to run tests, etc. -# -# A code lens is _unresolved_ when no command is associated to it. For -# performance reasons the creation of a code lens and resolving should be done -# in two stages. -# -# source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#12 -class LanguageServer::Protocol::Interface::CodeLens - # @return [CodeLens] a new instance of CodeLens - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#13 - def initialize(range:, command: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#49 - def attributes; end - - # The command this code lens represents. - # - # @return [Command] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#36 - def command; end - - # A data entry field that is preserved on a code lens item between - # a code lens and a code lens resolve request. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#45 - def data; end - - # The range in which this code lens is valid. Should only span a single - # line. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#28 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#55 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::CodeLensClientCapabilities - # @return [CodeLensClientCapabilities] a new instance of CodeLensClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#21 - def attributes; end - - # Whether code lens supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#4 -class LanguageServer::Protocol::Interface::CodeLensOptions - # @return [CodeLensOptions] a new instance of CodeLensOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#27 - def attributes; end - - # Code lens has a resolve provider as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#23 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#29 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#33 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#15 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#4 -class LanguageServer::Protocol::Interface::CodeLensParams - # @return [CodeLensParams] a new instance of CodeLensParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#5 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#40 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#28 - def partial_result_token; end - - # The document to request code lens for. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#36 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#46 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#4 -class LanguageServer::Protocol::Interface::CodeLensRegistrationOptions - # @return [CodeLensRegistrationOptions] a new instance of CodeLensRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#37 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#20 - def document_selector; end - - # Code lens has a resolve provider as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#33 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#43 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::CodeLensWorkspaceClientCapabilities - # @return [CodeLensWorkspaceClientCapabilities] a new instance of CodeLensWorkspaceClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#5 - def initialize(refresh_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#27 - def attributes; end - - # Whether the client implementation supports a refresh request sent from the - # server to the client. - # - # Note that this event is global and will force the client to refresh all - # code lenses currently shown. It should be used with absolute care and is - # useful for situation where a server for example detect a project wide - # change that requires such a calculation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#23 - def refresh_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#29 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#33 - def to_json(*args); end -end - -# Represents a color in RGBA space. -# -# source://language_server-protocol//lib/language_server/protocol/interface/color.rb#7 -class LanguageServer::Protocol::Interface::Color - # @return [Color] a new instance of Color - # - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#8 - def initialize(red:, green:, blue:, alpha:); end - - # The alpha component of this color in the range [0-1]. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#47 - def alpha; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#51 - def attributes; end - - # The blue component of this color in the range [0-1]. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#39 - def blue; end - - # The green component of this color in the range [0-1]. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#31 - def green; end - - # The red component of this color in the range [0-1]. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#23 - def red; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#57 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#4 -class LanguageServer::Protocol::Interface::ColorInformation - # @return [ColorInformation] a new instance of ColorInformation - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#5 - def initialize(range:, color:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#30 - def attributes; end - - # The actual color value for this color range. - # - # @return [Color] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#26 - def color; end - - # The range in the document where this color appears. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#18 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#4 -class LanguageServer::Protocol::Interface::ColorPresentation - # @return [ColorPresentation] a new instance of ColorPresentation - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#5 - def initialize(label:, text_edit: T.unsafe(nil), additional_text_edits: T.unsafe(nil)); end - - # An optional array of additional [text edits](#TextEdit) that are applied - # when selecting this color presentation. Edits must not overlap with the - # main [edit](#ColorPresentation.textEdit) nor with themselves. - # - # @return [TextEdit[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#41 - def additional_text_edits; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#45 - def attributes; end - - # The label of this color presentation. It will be shown on the color - # picker header. By default this is also the text that is inserted when - # selecting this color presentation. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#21 - def label; end - - # An [edit](#TextEdit) which is applied to a document when selecting - # this presentation for the color. When omitted the - # [label](#ColorPresentation.label) is used. - # - # @return [TextEdit] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#31 - def text_edit; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#47 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#51 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#4 -class LanguageServer::Protocol::Interface::ColorPresentationParams - # @return [ColorPresentationParams] a new instance of ColorPresentationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#5 - def initialize(text_document:, color:, range:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#58 - def attributes; end - - # The color information to request presentations for. - # - # @return [Color] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#46 - def color; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#30 - def partial_result_token; end - - # The range where the color would be inserted. Serves as a context. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#54 - def range; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#38 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#60 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#64 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#21 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/command.rb#4 -class LanguageServer::Protocol::Interface::Command - # @return [Command] a new instance of Command - # - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#5 - def initialize(title:, command:, arguments: T.unsafe(nil)); end - - # Arguments that the command handler should be - # invoked with. - # - # @return [LSPAny[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#36 - def arguments; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#40 - def attributes; end - - # The identifier of the actual command handler. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#27 - def command; end - - # Title of the command, like `save`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#19 - def title; end - - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#46 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::CompletionClientCapabilities - # @return [CompletionClientCapabilities] a new instance of CompletionClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), completion_item: T.unsafe(nil), completion_item_kind: T.unsafe(nil), context_support: T.unsafe(nil), insert_text_mode: T.unsafe(nil), completion_list: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#67 - def attributes; end - - # The client supports the following `CompletionItem` specific - # capabilities. - # - # @return [{ snippetSupport?: boolean; commitCharactersSupport?: boolean; documentationFormat?: MarkupKind[]; deprecatedSupport?: boolean; preselectSupport?: boolean; tagSupport?: { valueSet: 1[]; }; insertReplaceSupport?: boolean; resolveSupport?: { ...; }; insertTextModeSupport?: { ...; }; labelDetailsSupport?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#31 - def completion_item; end - - # @return [{ valueSet?: CompletionItemKind[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#36 - def completion_item_kind; end - - # The client supports the following `CompletionList` specific - # capabilities. - # - # @return [{ itemDefaults?: string[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#63 - def completion_list; end - - # The client supports to send additional context information for a - # `textDocument/completion` request. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#45 - def context_support; end - - # Whether completion supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#22 - def dynamic_registration; end - - # The client's default when the completion item doesn't provide a - # `insertTextMode` property. - # - # @return [InsertTextMode] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#54 - def insert_text_mode; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#69 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#73 - def to_json(*args); end -end - -# Contains additional information about the context in which a completion -# request is triggered. -# -# source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#8 -class LanguageServer::Protocol::Interface::CompletionContext - # @return [CompletionContext] a new instance of CompletionContext - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#9 - def initialize(trigger_kind:, trigger_character: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#36 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#38 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#42 - def to_json(*args); end - - # The trigger character (a single character) that has trigger code - # complete. Is undefined if - # `triggerKind !== CompletionTriggerKind.TriggerCharacter` - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#32 - def trigger_character; end - - # How the completion was triggered. - # - # @return [CompletionTriggerKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#22 - def trigger_kind; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#4 -class LanguageServer::Protocol::Interface::CompletionItem - # @return [CompletionItem] a new instance of CompletionItem - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#5 - def initialize(label:, label_details: T.unsafe(nil), kind: T.unsafe(nil), tags: T.unsafe(nil), detail: T.unsafe(nil), documentation: T.unsafe(nil), deprecated: T.unsafe(nil), preselect: T.unsafe(nil), sort_text: T.unsafe(nil), filter_text: T.unsafe(nil), insert_text: T.unsafe(nil), insert_text_format: T.unsafe(nil), insert_text_mode: T.unsafe(nil), text_edit: T.unsafe(nil), text_edit_text: T.unsafe(nil), additional_text_edits: T.unsafe(nil), commit_characters: T.unsafe(nil), command: T.unsafe(nil), data: T.unsafe(nil)); end - - # An optional array of additional text edits that are applied when - # selecting this completion. Edits must not overlap (including the same - # insert position) with the main edit nor with themselves. - # - # Additional text edits should be used to change text unrelated to the - # current cursor position (for example adding an import statement at the - # top of the file if the completion item will insert an unqualified type). - # - # @return [TextEdit[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#221 - def additional_text_edits; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#255 - def attributes; end - - # An optional command that is executed *after* inserting this completion. - # *Note* that additional modifications to the current document should be - # described with the additionalTextEdits-property. - # - # @return [Command] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#242 - def command; end - - # An optional set of characters that when pressed while this completion is - # active will accept it first and then type that character. *Note* that all - # commit characters should have `length=1` and that superfluous characters - # will be ignored. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#232 - def commit_characters; end - - # A data entry field that is preserved on a completion item between - # a completion and a completion resolve request. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#251 - def data; end - - # Indicates if this item is deprecated. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#92 - def deprecated; end - - # A human-readable string with additional information - # about this item, like type or symbol information. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#76 - def detail; end - - # A human-readable string that represents a doc-comment. - # - # @return [string | MarkupContent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#84 - def documentation; end - - # A string that should be used when filtering a set of - # completion items. When omitted the label is used as the - # filter text for this item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#124 - def filter_text; end - - # A string that should be inserted into a document when selecting - # this completion. When omitted the label is used as the insert text - # for this item. - # - # The `insertText` is subject to interpretation by the client side. - # Some tools might not take the string literally. For example - # VS Code when code complete is requested in this example - # `con` and a completion item with an `insertText` of - # `console` is provided it will only insert `sole`. Therefore it is - # recommended to use `textEdit` instead since it avoids additional client - # side interpretation. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#142 - def insert_text; end - - # The format of the insert text. The format applies to both the - # `insertText` property and the `newText` property of a provided - # `textEdit`. If omitted defaults to `InsertTextFormat.PlainText`. - # - # Please note that the insertTextFormat doesn't apply to - # `additionalTextEdits`. - # - # @return [InsertTextFormat] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#155 - def insert_text_format; end - - # How whitespace and indentation is handled during completion - # item insertion. If not provided the client's default value depends on - # the `textDocument.completion.insertTextMode` client capability. - # - # @return [InsertTextMode] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#165 - def insert_text_mode; end - - # The kind of this completion item. Based of the kind - # an icon is chosen by the editor. The standardized set - # of available values is defined in `CompletionItemKind`. - # - # @return [CompletionItemKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#59 - def kind; end - - # The label of this completion item. - # - # The label property is also by default the text that - # is inserted when selecting this completion. - # - # If label details are provided the label itself should - # be an unqualified name of the completion item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#41 - def label; end - - # Additional details for the label - # - # @return [CompletionItemLabelDetails] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#49 - def label_details; end - - # Select this item when showing. - # - # *Note* that only one completion item can be selected and that the - # tool / client decides which item that is. The rule is that the *first* - # item of those that match best is selected. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#104 - def preselect; end - - # A string that should be used when comparing this item - # with other items. When omitted the label is used - # as the sort text for this item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#114 - def sort_text; end - - # Tags for this completion item. - # - # @return [1[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#67 - def tags; end - - # An edit which is applied to a document when selecting this completion. - # When an edit is provided the value of `insertText` is ignored. - # - # *Note:* The range of the edit must be a single line range and it must - # contain the position at which completion has been requested. - # - # Most editors support two different operations when accepting a completion - # item. One is to insert a completion text and the other is to replace an - # existing text with a completion text. Since this can usually not be - # predetermined by a server it can report both ranges. Clients need to - # signal support for `InsertReplaceEdit`s via the - # `textDocument.completion.completionItem.insertReplaceSupport` client - # capability property. - # - # *Note 1:* The text edit's range as well as both ranges from an insert - # replace edit must be a [single line] and they must contain the position - # at which completion has been requested. - # *Note 2:* If an `InsertReplaceEdit` is returned the edit's insert range - # must be a prefix of the edit's replace range, that means it must be - # contained and starting at the same position. - # - # @return [TextEdit | InsertReplaceEdit] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#192 - def text_edit; end - - # The edit text used if the completion item is part of a CompletionList and - # CompletionList defines an item default for the text edit range. - # - # Clients will only honor this property if they opt into completion list - # item defaults using the capability `completionList.itemDefaults`. - # - # If not provided and a list's default range is provided the label - # property is used as a text. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#207 - def text_edit_text; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#257 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#261 - def to_json(*args); end -end - -# Additional details for a completion item label. -# -# source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#7 -class LanguageServer::Protocol::Interface::CompletionItemLabelDetails - # @return [CompletionItemLabelDetails] a new instance of CompletionItemLabelDetails - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#8 - def initialize(detail: T.unsafe(nil), description: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#37 - def attributes; end - - # An optional string which is rendered less prominently after - # {@link CompletionItemLabelDetails.detail}. Should be used for fully qualified - # names or file path. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#33 - def description; end - - # An optional string which is rendered less prominently directly after - # {@link CompletionItem.label label}, without any spacing. Should be - # used for function signatures or type annotations. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#23 - def detail; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#43 - def to_json(*args); end -end - -# Represents a collection of [completion items](#CompletionItem) to be -# presented in the editor. -# -# source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#8 -class LanguageServer::Protocol::Interface::CompletionList - # @return [CompletionList] a new instance of CompletionList - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#9 - def initialize(is_incomplete:, items:, item_defaults: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#57 - def attributes; end - - # This list is not complete. Further typing should result in recomputing - # this list. - # - # Recomputed lists have all their items replaced (not appended) in the - # incomplete completion sessions. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#27 - def is_incomplete; end - - # In many cases the items of an actual completion result share the same - # value for properties like `commitCharacters` or the range of a text - # edit. A completion list can therefore define item defaults which will - # be used if a completion item itself doesn't specify the value. - # - # If a completion list specifies a default value and a completion item - # also specifies a corresponding value the one from the item is used. - # - # Servers are only allowed to return default values if the client - # signals support for this via the `completionList.itemDefaults` - # capability. - # - # @return [{ commitCharacters?: string[]; editRange?: Range | { insert: Range; replace: Range; }; insertTextFormat?: InsertTextFormat; insertTextMode?: InsertTextMode; data?: LSPAny; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#45 - def item_defaults; end - - # The completion items. - # - # @return [CompletionItem[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#53 - def items; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#59 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#63 - def to_json(*args); end -end - -# Completion options. -# -# source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#7 -class LanguageServer::Protocol::Interface::CompletionOptions - # @return [CompletionOptions] a new instance of CompletionOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#8 - def initialize(work_done_progress: T.unsafe(nil), trigger_characters: T.unsafe(nil), all_commit_characters: T.unsafe(nil), resolve_provider: T.unsafe(nil), completion_item: T.unsafe(nil)); end - - # The list of all possible characters that commit a completion. This field - # can be used if clients don't support individual commit characters per - # completion item. See client capability - # `completion.completionItem.commitCharactersSupport`. - # - # If a server provides both `allCommitCharacters` and commit characters on - # an individual completion item the ones on the completion item win. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#53 - def all_commit_characters; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#75 - def attributes; end - - # The server supports the following `CompletionItem` specific - # capabilities. - # - # @return [{ labelDetailsSupport?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#71 - def completion_item; end - - # The server provides support to resolve additional - # information for a completion item. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#62 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#77 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#81 - def to_json(*args); end - - # The additional characters, beyond the defaults provided by the client (typically - # [a-zA-Z]), that should automatically trigger a completion request. For example - # `.` in JavaScript represents the beginning of an object property or method and is - # thus a good candidate for triggering a completion request. - # - # Most tools trigger a completion request automatically without explicitly - # requesting it using a keyboard shortcut (e.g. Ctrl+Space). Typically they - # do so when the user starts to type an identifier. For example if the user - # types `c` in a JavaScript file code complete will automatically pop up - # present `console` besides others as a completion item. Characters that - # make up identifiers don't need to be listed here. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#39 - def trigger_characters; end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#21 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#4 -class LanguageServer::Protocol::Interface::CompletionParams - # @return [CompletionParams] a new instance of CompletionParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil), context: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#60 - def attributes; end - - # The completion context. This is only available if the client specifies - # to send this using the client capability - # `completion.contextSupport === true` - # - # @return [CompletionContext] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#56 - def context; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#46 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#29 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#21 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#62 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#66 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#37 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#4 -class LanguageServer::Protocol::Interface::CompletionRegistrationOptions - # @return [CompletionRegistrationOptions] a new instance of CompletionRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), trigger_characters: T.unsafe(nil), all_commit_characters: T.unsafe(nil), resolve_provider: T.unsafe(nil), completion_item: T.unsafe(nil)); end - - # The list of all possible characters that commit a completion. This field - # can be used if clients don't support individual commit characters per - # completion item. See client capability - # `completion.completionItem.commitCharactersSupport`. - # - # If a server provides both `allCommitCharacters` and commit characters on - # an individual completion item the ones on the completion item win. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#60 - def all_commit_characters; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#82 - def attributes; end - - # The server supports the following `CompletionItem` specific - # capabilities. - # - # @return [{ labelDetailsSupport?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#78 - def completion_item; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#23 - def document_selector; end - - # The server provides support to resolve additional - # information for a completion item. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#69 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#84 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#88 - def to_json(*args); end - - # The additional characters, beyond the defaults provided by the client (typically - # [a-zA-Z]), that should automatically trigger a completion request. For example - # `.` in JavaScript represents the beginning of an object property or method and is - # thus a good candidate for triggering a completion request. - # - # Most tools trigger a completion request automatically without explicitly - # requesting it using a keyboard shortcut (e.g. Ctrl+Space). Typically they - # do so when the user starts to type an identifier. For example if the user - # types `c` in a JavaScript file code complete will automatically pop up - # present `console` besides others as a completion item. Characters that - # make up identifiers don't need to be listed here. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#46 - def trigger_characters; end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#28 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#4 -class LanguageServer::Protocol::Interface::ConfigurationItem - # @return [ConfigurationItem] a new instance of ConfigurationItem - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#5 - def initialize(scope_uri: T.unsafe(nil), section: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#30 - def attributes; end - - # The scope to get the configuration section for. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#18 - def scope_uri; end - - # The configuration section asked for. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#26 - def section; end - - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#4 -class LanguageServer::Protocol::Interface::ConfigurationParams - # @return [ConfigurationParams] a new instance of ConfigurationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#5 - def initialize(items:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#18 - def attributes; end - - # @return [ConfigurationItem[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#14 - def items; end - - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#24 - def to_json(*args); end -end - -# Create file operation -# -# source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#7 -class LanguageServer::Protocol::Interface::CreateFile - # @return [CreateFile] a new instance of CreateFile - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#8 - def initialize(kind:, uri:, options: T.unsafe(nil), annotation_id: T.unsafe(nil)); end - - # An optional annotation identifier describing the operation. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#47 - def annotation_id; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#51 - def attributes; end - - # A create - # - # @return ["create"] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#23 - def kind; end - - # Additional options - # - # @return [CreateFileOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#39 - def options; end - - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#57 - def to_json(*args); end - - # The resource to create. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#31 - def uri; end -end - -# Options to create a file. -# -# source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#7 -class LanguageServer::Protocol::Interface::CreateFileOptions - # @return [CreateFileOptions] a new instance of CreateFileOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#8 - def initialize(overwrite: T.unsafe(nil), ignore_if_exists: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#33 - def attributes; end - - # Ignore if exists. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#29 - def ignore_if_exists; end - - # Overwrite existing file. Overwrite wins over `ignoreIfExists` - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#21 - def overwrite; end - - # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#39 - def to_json(*args); end -end - -# The parameters sent in notifications/requests for user-initiated creation -# of files. -# -# source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#8 -class LanguageServer::Protocol::Interface::CreateFilesParams - # @return [CreateFilesParams] a new instance of CreateFilesParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#9 - def initialize(files:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#25 - def attributes; end - - # An array of all files/folders created in this operation. - # - # @return [FileCreate[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#21 - def files; end - - # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#27 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#31 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DeclarationClientCapabilities - # @return [DeclarationClientCapabilities] a new instance of DeclarationClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), link_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#32 - def attributes; end - - # Whether declaration supports dynamic registration. If this is set to - # `true` the client supports the new `DeclarationRegistrationOptions` - # return value for the corresponding server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#20 - def dynamic_registration; end - - # The client supports additional metadata in the form of declaration links. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#28 - def link_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#38 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#4 -class LanguageServer::Protocol::Interface::DeclarationOptions - # @return [DeclarationOptions] a new instance of DeclarationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#4 -class LanguageServer::Protocol::Interface::DeclarationParams - # @return [DeclarationParams] a new instance of DeclarationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#45 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DeclarationRegistrationOptions - # @return [DeclarationRegistrationOptions] a new instance of DeclarationRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#25 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#16 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DefinitionClientCapabilities - # @return [DefinitionClientCapabilities] a new instance of DefinitionClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), link_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#30 - def attributes; end - - # Whether definition supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#18 - def dynamic_registration; end - - # The client supports additional metadata in the form of definition links. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#26 - def link_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#4 -class LanguageServer::Protocol::Interface::DefinitionOptions - # @return [DefinitionOptions] a new instance of DefinitionOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#4 -class LanguageServer::Protocol::Interface::DefinitionParams - # @return [DefinitionParams] a new instance of DefinitionParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#45 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DefinitionRegistrationOptions - # @return [DefinitionRegistrationOptions] a new instance of DefinitionRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#24 - def work_done_progress; end -end - -# Delete file operation -# -# source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#7 -class LanguageServer::Protocol::Interface::DeleteFile - # @return [DeleteFile] a new instance of DeleteFile - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#8 - def initialize(kind:, uri:, options: T.unsafe(nil), annotation_id: T.unsafe(nil)); end - - # An optional annotation identifier describing the operation. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#47 - def annotation_id; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#51 - def attributes; end - - # A delete - # - # @return ["delete"] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#23 - def kind; end - - # Delete options. - # - # @return [DeleteFileOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#39 - def options; end - - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#57 - def to_json(*args); end - - # The file to delete. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#31 - def uri; end -end - -# Delete file options -# -# source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#7 -class LanguageServer::Protocol::Interface::DeleteFileOptions - # @return [DeleteFileOptions] a new instance of DeleteFileOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#8 - def initialize(recursive: T.unsafe(nil), ignore_if_not_exists: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#33 - def attributes; end - - # Ignore the operation if the file doesn't exist. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#29 - def ignore_if_not_exists; end - - # Delete the content recursively if a folder is denoted. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#21 - def recursive; end - - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#39 - def to_json(*args); end -end - -# The parameters sent in notifications/requests for user-initiated deletes -# of files. -# -# source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#8 -class LanguageServer::Protocol::Interface::DeleteFilesParams - # @return [DeleteFilesParams] a new instance of DeleteFilesParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#9 - def initialize(files:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#25 - def attributes; end - - # An array of all files/folders deleted in this operation. - # - # @return [FileDelete[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#21 - def files; end - - # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#27 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#31 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#4 -class LanguageServer::Protocol::Interface::Diagnostic - # @return [Diagnostic] a new instance of Diagnostic - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#5 - def initialize(range:, message:, severity: T.unsafe(nil), code: T.unsafe(nil), code_description: T.unsafe(nil), source: T.unsafe(nil), tags: T.unsafe(nil), related_information: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#98 - def attributes; end - - # The diagnostic's code, which might appear in the user interface. - # - # @return [string | number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#42 - def code; end - - # An optional property to describe the error code. - # - # @return [CodeDescription] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#50 - def code_description; end - - # A data entry field that is preserved between a - # `textDocument/publishDiagnostics` notification and - # `textDocument/codeAction` request. - # - # @return [unknown] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#94 - def data; end - - # The diagnostic's message. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#67 - def message; end - - # The range at which the message applies. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#25 - def range; end - - # An array of related diagnostic information, e.g. when symbol-names within - # a scope collide all definitions can be marked via this property. - # - # @return [DiagnosticRelatedInformation[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#84 - def related_information; end - - # The diagnostic's severity. Can be omitted. If omitted it is up to the - # client to interpret diagnostics as error, warning, info or hint. - # - # @return [DiagnosticSeverity] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#34 - def severity; end - - # A human-readable string describing the source of this - # diagnostic, e.g. 'typescript' or 'super lint'. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#59 - def source; end - - # Additional metadata about the diagnostic. - # - # @return [DiagnosticTag[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#75 - def tags; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#100 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#104 - def to_json(*args); end -end - -# Client capabilities specific to diagnostic pull requests. -# -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::DiagnosticClientCapabilities - # @return [DiagnosticClientCapabilities] a new instance of DiagnosticClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#8 - def initialize(dynamic_registration: T.unsafe(nil), related_document_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#37 - def attributes; end - - # Whether implementation supports dynamic registration. If this is set to - # `true` the client supports the new - # `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` - # return value for the corresponding server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#24 - def dynamic_registration; end - - # Whether the clients supports related documents for document diagnostic - # pulls. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#33 - def related_document_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#43 - def to_json(*args); end -end - -# Diagnostic options. -# -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#7 -class LanguageServer::Protocol::Interface::DiagnosticOptions - # @return [DiagnosticOptions] a new instance of DiagnosticOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#8 - def initialize(inter_file_dependencies:, workspace_diagnostics:, work_done_progress: T.unsafe(nil), identifier: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#52 - def attributes; end - - # An optional identifier under which the diagnostics are - # managed by the client. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#29 - def identifier; end - - # Whether the language has inter file dependencies meaning that - # editing code in one file can result in a different diagnostic - # set in another file. Inter file dependencies are common for - # most programming languages and typically uncommon for linters. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#40 - def inter_file_dependencies; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#54 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#58 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#20 - def work_done_progress; end - - # The server provides support for workspace diagnostics as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#48 - def workspace_diagnostics; end -end - -# Diagnostic registration options. -# -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#7 -class LanguageServer::Protocol::Interface::DiagnosticRegistrationOptions - # @return [DiagnosticRegistrationOptions] a new instance of DiagnosticRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#8 - def initialize(document_selector:, inter_file_dependencies:, workspace_diagnostics:, work_done_progress: T.unsafe(nil), identifier: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#72 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#26 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#68 - def id; end - - # An optional identifier under which the diagnostics are - # managed by the client. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#40 - def identifier; end - - # Whether the language has inter file dependencies meaning that - # editing code in one file can result in a different diagnostic - # set in another file. Inter file dependencies are common for - # most programming languages and typically uncommon for linters. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#51 - def inter_file_dependencies; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#74 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#78 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#31 - def work_done_progress; end - - # The server provides support for workspace diagnostics as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#59 - def workspace_diagnostics; end -end - -# Represents a related message and source code location for a diagnostic. -# This should be used to point to code locations that cause or are related to -# a diagnostics, e.g when duplicating a symbol in a scope. -# -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#9 -class LanguageServer::Protocol::Interface::DiagnosticRelatedInformation - # @return [DiagnosticRelatedInformation] a new instance of DiagnosticRelatedInformation - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#10 - def initialize(location:, message:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#35 - def attributes; end - - # The location of this related diagnostic information. - # - # @return [Location] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#23 - def location; end - - # The message of this related diagnostic information. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#31 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#37 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#41 - def to_json(*args); end -end - -# Cancellation data returned from a diagnostic request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#7 -class LanguageServer::Protocol::Interface::DiagnosticServerCancellationData - # @return [DiagnosticServerCancellationData] a new instance of DiagnosticServerCancellationData - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#8 - def initialize(retrigger_request:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#21 - def attributes; end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#17 - def retrigger_request; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#27 - def to_json(*args); end -end - -# Workspace client capabilities specific to diagnostic pull requests. -# -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::DiagnosticWorkspaceClientCapabilities - # @return [DiagnosticWorkspaceClientCapabilities] a new instance of DiagnosticWorkspaceClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#8 - def initialize(refresh_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#30 - def attributes; end - - # Whether the client implementation supports a refresh request sent from - # the server to the client. - # - # Note that this event is global and will force the client to refresh all - # pulled diagnostics currently shown. It should be used with absolute care - # and is useful for situation where a server for example detects a project - # wide change that requires such a calculation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#26 - def refresh_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DidChangeConfigurationClientCapabilities - # @return [DidChangeConfigurationClientCapabilities] a new instance of DidChangeConfigurationClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#21 - def attributes; end - - # Did change configuration notification supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#4 -class LanguageServer::Protocol::Interface::DidChangeConfigurationParams - # @return [DidChangeConfigurationParams] a new instance of DidChangeConfigurationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#5 - def initialize(settings:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#21 - def attributes; end - - # The actual changed settings - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#17 - def settings; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#27 - def to_json(*args); end -end - -# The params sent in a change notebook document notification. -# -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#7 -class LanguageServer::Protocol::Interface::DidChangeNotebookDocumentParams - # @return [DidChangeNotebookDocumentParams] a new instance of DidChangeNotebookDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#8 - def initialize(notebook_document:, change:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#44 - def attributes; end - - # The actual changes to the notebook document. - # - # The change describes single state change to the notebook document. - # So it moves a notebook document, its cells and its cell text document - # contents from state S to S'. - # - # To mirror the content of a notebook using change events use the - # following approach: - # - start with the same initial content - # - apply the 'notebookDocument/didChange' notifications in the order - # you receive them. - # - # @return [NotebookDocumentChangeEvent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#40 - def change; end - - # The notebook document that did change. The version number points - # to the version after all provided changes have been applied. - # - # @return [VersionedNotebookDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#22 - def notebook_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#50 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#4 -class LanguageServer::Protocol::Interface::DidChangeTextDocumentParams - # @return [DidChangeTextDocumentParams] a new instance of DidChangeTextDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#5 - def initialize(text_document:, content_changes:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#44 - def attributes; end - - # The actual content changes. The content changes describe single state - # changes to the document. So if there are two content changes c1 (at - # array index 0) and c2 (at array index 1) for a document in state S then - # c1 moves the document from S to S' and c2 from S' to S''. So c1 is - # computed on the state S and c2 is computed on the state S'. - # - # To mirror the content of a document using change events use the following - # approach: - # - start with the same initial content - # - apply the 'textDocument/didChange' notifications in the order you - # receive them. - # - apply the `TextDocumentContentChangeEvent`s in a single notification - # in the order you receive them. - # - # @return [TextDocumentContentChangeEvent[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#40 - def content_changes; end - - # The document that did change. The version number points - # to the version after all provided content changes have - # been applied. - # - # @return [VersionedTextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#50 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DidChangeWatchedFilesClientCapabilities - # @return [DidChangeWatchedFilesClientCapabilities] a new instance of DidChangeWatchedFilesClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), relative_pattern_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#33 - def attributes; end - - # Did change watched files notification supports dynamic registration. - # Please note that the current protocol doesn't support static - # configuration for file changes from the server side. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#20 - def dynamic_registration; end - - # Whether the client has support for relative patterns - # or not. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#29 - def relative_pattern_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#39 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#4 -class LanguageServer::Protocol::Interface::DidChangeWatchedFilesParams - # @return [DidChangeWatchedFilesParams] a new instance of DidChangeWatchedFilesParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#5 - def initialize(changes:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#21 - def attributes; end - - # The actual file events. - # - # @return [FileEvent[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#17 - def changes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#27 - def to_json(*args); end -end - -# Describe options to be used when registering for file system change events. -# -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#7 -class LanguageServer::Protocol::Interface::DidChangeWatchedFilesRegistrationOptions - # @return [DidChangeWatchedFilesRegistrationOptions] a new instance of DidChangeWatchedFilesRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#8 - def initialize(watchers:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#24 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#30 - def to_json(*args); end - - # The watchers to register. - # - # @return [FileSystemWatcher[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#20 - def watchers; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#4 -class LanguageServer::Protocol::Interface::DidChangeWorkspaceFoldersParams - # @return [DidChangeWorkspaceFoldersParams] a new instance of DidChangeWorkspaceFoldersParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#5 - def initialize(event:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#21 - def attributes; end - - # The actual workspace folder change event. - # - # @return [WorkspaceFoldersChangeEvent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#17 - def event; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#27 - def to_json(*args); end -end - -# The params sent in a close notebook document notification. -# -# source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#7 -class LanguageServer::Protocol::Interface::DidCloseNotebookDocumentParams - # @return [DidCloseNotebookDocumentParams] a new instance of DidCloseNotebookDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#8 - def initialize(notebook_document:, cell_text_documents:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#34 - def attributes; end - - # The text documents that represent the content - # of a notebook cell that got closed. - # - # @return [TextDocumentIdentifier[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#30 - def cell_text_documents; end - - # The notebook document that got closed. - # - # @return [NotebookDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#21 - def notebook_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#40 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#4 -class LanguageServer::Protocol::Interface::DidCloseTextDocumentParams - # @return [DidCloseTextDocumentParams] a new instance of DidCloseTextDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#5 - def initialize(text_document:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#21 - def attributes; end - - # The document that was closed. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#17 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#27 - def to_json(*args); end -end - -# The params sent in an open notebook document notification. -# -# source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#7 -class LanguageServer::Protocol::Interface::DidOpenNotebookDocumentParams - # @return [DidOpenNotebookDocumentParams] a new instance of DidOpenNotebookDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#8 - def initialize(notebook_document:, cell_text_documents:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#34 - def attributes; end - - # The text documents that represent the content - # of a notebook cell. - # - # @return [TextDocumentItem[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#30 - def cell_text_documents; end - - # The notebook document that got opened. - # - # @return [NotebookDocument] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#21 - def notebook_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#40 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#4 -class LanguageServer::Protocol::Interface::DidOpenTextDocumentParams - # @return [DidOpenTextDocumentParams] a new instance of DidOpenTextDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#5 - def initialize(text_document:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#21 - def attributes; end - - # The document that was opened. - # - # @return [TextDocumentItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#17 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#27 - def to_json(*args); end -end - -# The params sent in a save notebook document notification. -# -# source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#7 -class LanguageServer::Protocol::Interface::DidSaveNotebookDocumentParams - # @return [DidSaveNotebookDocumentParams] a new instance of DidSaveNotebookDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#8 - def initialize(notebook_document:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#24 - def attributes; end - - # The notebook document that got saved. - # - # @return [NotebookDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#20 - def notebook_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#4 -class LanguageServer::Protocol::Interface::DidSaveTextDocumentParams - # @return [DidSaveTextDocumentParams] a new instance of DidSaveTextDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#5 - def initialize(text_document:, text: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#31 - def attributes; end - - # Optional the content when saved. Depends on the includeText value - # when the save notification was requested. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#27 - def text; end - - # The document that was saved. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#18 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#37 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentColorClientCapabilities - # @return [DocumentColorClientCapabilities] a new instance of DocumentColorClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#21 - def attributes; end - - # Whether document color supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentColorOptions - # @return [DocumentColorOptions] a new instance of DocumentColorOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentColorParams - # @return [DocumentColorParams] a new instance of DocumentColorParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#5 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#40 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#28 - def partial_result_token; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#36 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#46 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentColorRegistrationOptions - # @return [DocumentColorRegistrationOptions] a new instance of DocumentColorRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#5 - def initialize(document_selector:, id: T.unsafe(nil), work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#29 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#34 - def work_done_progress; end -end - -# Parameters of the document diagnostic request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#7 -class LanguageServer::Protocol::Interface::DocumentDiagnosticParams - # @return [DocumentDiagnosticParams] a new instance of DocumentDiagnosticParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#8 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil), identifier: T.unsafe(nil), previous_result_id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#61 - def attributes; end - - # The additional identifier provided during registration. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#49 - def identifier; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#33 - def partial_result_token; end - - # The result id of a previous response if provided. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#57 - def previous_result_id; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#41 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#63 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#67 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#24 - def work_done_token; end -end - -# A partial result for a document diagnostic report. -# -# source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#7 -class LanguageServer::Protocol::Interface::DocumentDiagnosticReportPartialResult - # @return [DocumentDiagnosticReportPartialResult] a new instance of DocumentDiagnosticReportPartialResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#8 - def initialize(related_documents:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#21 - def attributes; end - - # @return [{ [uri: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#17 - def related_documents; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#4 -class LanguageServer::Protocol::Interface::DocumentFilter - # @return [DocumentFilter] a new instance of DocumentFilter - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#5 - def initialize(language: T.unsafe(nil), scheme: T.unsafe(nil), pattern: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#51 - def attributes; end - - # A language id, like `typescript`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#19 - def language; end - - # A glob pattern, like `*.{ts,js}`. - # - # Glob patterns can have the following syntax: - # - `*` to match one or more characters in a path segment - # - `?` to match on one character in a path segment - # - `**` to match any number of path segments, including none - # - `{}` to group sub patterns into an OR expression. (e.g. `**​/*.{ts,js}` - # matches all TypeScript and JavaScript files) - # - `[]` to declare a range of characters to match in a path segment - # (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …) - # - `[!...]` to negate a range of characters to match in a path segment - # (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but - # not `example.0`) - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#47 - def pattern; end - - # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#27 - def scheme; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#57 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentFormattingClientCapabilities - # @return [DocumentFormattingClientCapabilities] a new instance of DocumentFormattingClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#21 - def attributes; end - - # Whether formatting supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentFormattingOptions - # @return [DocumentFormattingOptions] a new instance of DocumentFormattingOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentFormattingParams - # @return [DocumentFormattingParams] a new instance of DocumentFormattingParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#5 - def initialize(text_document:, options:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#39 - def attributes; end - - # The format options. - # - # @return [FormattingOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#35 - def options; end - - # The document to format. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#27 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentFormattingRegistrationOptions - # @return [DocumentFormattingRegistrationOptions] a new instance of DocumentFormattingRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#24 - def work_done_progress; end -end - -# A document highlight is a range inside a text document which deserves -# special attention. Usually a document highlight is visualized by changing -# the background color of its range. -# -# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#9 -class LanguageServer::Protocol::Interface::DocumentHighlight - # @return [DocumentHighlight] a new instance of DocumentHighlight - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#10 - def initialize(range:, kind: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#35 - def attributes; end - - # The highlight kind, default is DocumentHighlightKind.Text. - # - # @return [DocumentHighlightKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#31 - def kind; end - - # The range this highlight applies to. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#23 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#37 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#41 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentHighlightClientCapabilities - # @return [DocumentHighlightClientCapabilities] a new instance of DocumentHighlightClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#21 - def attributes; end - - # Whether document highlight supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentHighlightOptions - # @return [DocumentHighlightOptions] a new instance of DocumentHighlightOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentHighlightParams - # @return [DocumentHighlightParams] a new instance of DocumentHighlightParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#45 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentHighlightRegistrationOptions - # @return [DocumentHighlightRegistrationOptions] a new instance of DocumentHighlightRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#24 - def work_done_progress; end -end - -# A document link is a range in a text document that links to an internal or -# external resource, like another text document or a web site. -# -# source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#8 -class LanguageServer::Protocol::Interface::DocumentLink - # @return [DocumentLink] a new instance of DocumentLink - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#9 - def initialize(range:, target: T.unsafe(nil), tooltip: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#58 - def attributes; end - - # A data entry field that is preserved on a document link between a - # DocumentLinkRequest and a DocumentLinkResolveRequest. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#54 - def data; end - - # The range this link applies to. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#24 - def range; end - - # The uri this link points to. If missing a resolve request is sent later. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#32 - def target; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#60 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#64 - def to_json(*args); end - - # The tooltip text when you hover over this link. - # - # If a tooltip is provided, is will be displayed in a string that includes - # instructions on how to trigger the link, such as `{0} (ctrl + click)`. - # The specific instructions vary depending on OS, user settings, and - # localization. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#45 - def tooltip; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentLinkClientCapabilities - # @return [DocumentLinkClientCapabilities] a new instance of DocumentLinkClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), tooltip_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#30 - def attributes; end - - # Whether document link supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#18 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#36 - def to_json(*args); end - - # Whether the client supports the `tooltip` property on `DocumentLink`. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#26 - def tooltip_support; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentLinkOptions - # @return [DocumentLinkOptions] a new instance of DocumentLinkOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#27 - def attributes; end - - # Document links have a resolve provider as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#23 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#29 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#33 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#15 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentLinkParams - # @return [DocumentLinkParams] a new instance of DocumentLinkParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#5 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#40 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#28 - def partial_result_token; end - - # The document to provide document links for. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#36 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#46 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentLinkRegistrationOptions - # @return [DocumentLinkRegistrationOptions] a new instance of DocumentLinkRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#37 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#20 - def document_selector; end - - # Document links have a resolve provider as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#33 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#43 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentOnTypeFormattingClientCapabilities - # @return [DocumentOnTypeFormattingClientCapabilities] a new instance of DocumentOnTypeFormattingClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#21 - def attributes; end - - # Whether on type formatting supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentOnTypeFormattingOptions - # @return [DocumentOnTypeFormattingOptions] a new instance of DocumentOnTypeFormattingOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#5 - def initialize(first_trigger_character:, more_trigger_character: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#30 - def attributes; end - - # A character on which formatting should be triggered, like `{`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#18 - def first_trigger_character; end - - # More trigger characters. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#26 - def more_trigger_character; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentOnTypeFormattingParams - # @return [DocumentOnTypeFormattingParams] a new instance of DocumentOnTypeFormattingParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#5 - def initialize(text_document:, position:, ch:, options:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#53 - def attributes; end - - # The character that has been typed that triggered the formatting - # on type request. That is not necessarily the last character that - # got inserted into the document since the client could auto insert - # characters as well (e.g. like automatic brace completion). - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#41 - def ch; end - - # The formatting options. - # - # @return [FormattingOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#49 - def options; end - - # The position around which the on type formatting should happen. - # This is not necessarily the exact position where the character denoted - # by the property `ch` got typed. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#30 - def position; end - - # The document to format. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#55 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#59 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentOnTypeFormattingRegistrationOptions - # @return [DocumentOnTypeFormattingRegistrationOptions] a new instance of DocumentOnTypeFormattingRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#5 - def initialize(document_selector:, first_trigger_character:, more_trigger_character: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#40 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#20 - def document_selector; end - - # A character on which formatting should be triggered, like `{`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#28 - def first_trigger_character; end - - # More trigger characters. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#36 - def more_trigger_character; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#46 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentRangeFormattingClientCapabilities - # @return [DocumentRangeFormattingClientCapabilities] a new instance of DocumentRangeFormattingClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#21 - def attributes; end - - # Whether formatting supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentRangeFormattingOptions - # @return [DocumentRangeFormattingOptions] a new instance of DocumentRangeFormattingOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentRangeFormattingParams - # @return [DocumentRangeFormattingParams] a new instance of DocumentRangeFormattingParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#5 - def initialize(text_document:, range:, options:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#48 - def attributes; end - - # The format options - # - # @return [FormattingOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#44 - def options; end - - # The range to format - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#36 - def range; end - - # The document to format. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#28 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#50 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#54 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#20 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentRangeFormattingRegistrationOptions - # @return [DocumentRangeFormattingRegistrationOptions] a new instance of DocumentRangeFormattingRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#24 - def work_done_progress; end -end - -# Represents programming constructs like variables, classes, interfaces etc. -# that appear in a document. Document symbols can be hierarchical and they -# have two ranges: one that encloses its definition and one that points to its -# most interesting range, e.g. the range of an identifier. -# -# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#10 -class LanguageServer::Protocol::Interface::DocumentSymbol - # @return [DocumentSymbol] a new instance of DocumentSymbol - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#11 - def initialize(name:, kind:, range:, selection_range:, detail: T.unsafe(nil), tags: T.unsafe(nil), deprecated: T.unsafe(nil), children: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#96 - def attributes; end - - # Children of this symbol, e.g. properties of a class. - # - # @return [DocumentSymbol[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#92 - def children; end - - # Indicates if this symbol is deprecated. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#64 - def deprecated; end - - # More detail for this symbol, e.g the signature of a function. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#40 - def detail; end - - # The kind of this symbol. - # - # @return [SymbolKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#48 - def kind; end - - # The name of this symbol. Will be displayed in the user interface and - # therefore must not be an empty string or a string only consisting of - # white spaces. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#32 - def name; end - - # The range enclosing this symbol not including leading/trailing whitespace - # but everything else like comments. This information is typically used to - # determine if the clients cursor is inside the symbol to reveal in the - # symbol in the UI. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#75 - def range; end - - # The range that should be selected and revealed when this symbol is being - # picked, e.g. the name of a function. Must be contained by the `range`. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#84 - def selection_range; end - - # Tags for this document symbol. - # - # @return [1[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#56 - def tags; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#98 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#102 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentSymbolClientCapabilities - # @return [DocumentSymbolClientCapabilities] a new instance of DocumentSymbolClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), symbol_kind: T.unsafe(nil), hierarchical_document_symbol_support: T.unsafe(nil), tag_support: T.unsafe(nil), label_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#61 - def attributes; end - - # Whether document symbol supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#21 - def dynamic_registration; end - - # The client supports hierarchical document symbols. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#38 - def hierarchical_document_symbol_support; end - - # The client supports an additional label presented in the UI when - # registering a document symbol provider. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#57 - def label_support; end - - # Specific capabilities for the `SymbolKind` in the - # `textDocument/documentSymbol` request. - # - # @return [{ valueSet?: SymbolKind[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#30 - def symbol_kind; end - - # The client supports tags on `SymbolInformation`. Tags are supported on - # `DocumentSymbol` if `hierarchicalDocumentSymbolSupport` is set to true. - # Clients supporting tags have to handle unknown tags gracefully. - # - # @return [{ valueSet: 1[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#48 - def tag_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#63 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#67 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentSymbolOptions - # @return [DocumentSymbolOptions] a new instance of DocumentSymbolOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), label: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#28 - def attributes; end - - # A human-readable string that is shown when multiple outlines trees - # are shown for the same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#24 - def label; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#15 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentSymbolParams - # @return [DocumentSymbolParams] a new instance of DocumentSymbolParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#5 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#40 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#28 - def partial_result_token; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#36 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#46 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentSymbolRegistrationOptions - # @return [DocumentSymbolRegistrationOptions] a new instance of DocumentSymbolRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), label: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#20 - def document_selector; end - - # A human-readable string that is shown when multiple outlines trees - # are shown for the same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#34 - def label; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::ExecuteCommandClientCapabilities - # @return [ExecuteCommandClientCapabilities] a new instance of ExecuteCommandClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#21 - def attributes; end - - # Execute command supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#4 -class LanguageServer::Protocol::Interface::ExecuteCommandOptions - # @return [ExecuteCommandOptions] a new instance of ExecuteCommandOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#5 - def initialize(commands:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#27 - def attributes; end - - # The commands to be executed on the server - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#23 - def commands; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#29 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#33 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#15 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#4 -class LanguageServer::Protocol::Interface::ExecuteCommandParams - # @return [ExecuteCommandParams] a new instance of ExecuteCommandParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#5 - def initialize(command:, work_done_token: T.unsafe(nil), arguments: T.unsafe(nil)); end - - # Arguments that the command should be invoked with. - # - # @return [LSPAny[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#35 - def arguments; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#39 - def attributes; end - - # The identifier of the actual command handler. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#27 - def command; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#19 - def work_done_token; end -end - -# Execute command registration options. -# -# source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#7 -class LanguageServer::Protocol::Interface::ExecuteCommandRegistrationOptions - # @return [ExecuteCommandRegistrationOptions] a new instance of ExecuteCommandRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#8 - def initialize(commands:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#30 - def attributes; end - - # The commands to be executed on the server - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#26 - def commands; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#36 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#18 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#4 -class LanguageServer::Protocol::Interface::ExecutionSummary - # @return [ExecutionSummary] a new instance of ExecutionSummary - # - # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#5 - def initialize(execution_order:, success: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#33 - def attributes; end - - # A strict monotonically increasing value - # indicating the execution order of a cell - # inside a notebook. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#20 - def execution_order; end - - # Whether the execution was successful or - # not if known by the client. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#29 - def success; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#39 - def to_json(*args); end -end - -# Represents information on a file/folder create. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#7 -class LanguageServer::Protocol::Interface::FileCreate - # @return [FileCreate] a new instance of FileCreate - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#8 - def initialize(uri:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#24 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#30 - def to_json(*args); end - - # A file:// URI for the location of the file/folder being created. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#20 - def uri; end -end - -# Represents information on a file/folder delete. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#7 -class LanguageServer::Protocol::Interface::FileDelete - # @return [FileDelete] a new instance of FileDelete - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#8 - def initialize(uri:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#24 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#30 - def to_json(*args); end - - # A file:// URI for the location of the file/folder being deleted. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#20 - def uri; end -end - -# An event describing a file change. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#7 -class LanguageServer::Protocol::Interface::FileEvent - # @return [FileEvent] a new instance of FileEvent - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#8 - def initialize(uri:, type:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#33 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#39 - def to_json(*args); end - - # The change type. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#29 - def type; end - - # The file's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#21 - def uri; end -end - -# A filter to describe in which file operation requests or notifications -# the server is interested in. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#8 -class LanguageServer::Protocol::Interface::FileOperationFilter - # @return [FileOperationFilter] a new instance of FileOperationFilter - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#9 - def initialize(pattern:, scheme: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#34 - def attributes; end - - # The actual file operation pattern. - # - # @return [FileOperationPattern] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#30 - def pattern; end - - # A Uri like `file` or `untitled`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#22 - def scheme; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#40 - def to_json(*args); end -end - -# A pattern to describe in which file operation requests or notifications -# the server is interested in. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#8 -class LanguageServer::Protocol::Interface::FileOperationPattern - # @return [FileOperationPattern] a new instance of FileOperationPattern - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#9 - def initialize(glob:, matches: T.unsafe(nil), options: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#55 - def attributes; end - - # The glob pattern to match. Glob patterns can have the following syntax: - # - `*` to match one or more characters in a path segment - # - `?` to match on one character in a path segment - # - `**` to match any number of path segments, including none - # - `{}` to group sub patterns into an OR expression. (e.g. `**​/*.{ts,js}` - # matches all TypeScript and JavaScript files) - # - `[]` to declare a range of characters to match in a path segment - # (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …) - # - `[!...]` to negate a range of characters to match in a path segment - # (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but - # not `example.0`) - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#33 - def glob; end - - # Whether to match files or folders with this pattern. - # - # Matches both if undefined. - # - # @return [FileOperationPatternKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#43 - def matches; end - - # Additional options used during matching. - # - # @return [FileOperationPatternOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#51 - def options; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#57 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#61 - def to_json(*args); end -end - -# Matching options for the file operation pattern. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#7 -class LanguageServer::Protocol::Interface::FileOperationPatternOptions - # @return [FileOperationPatternOptions] a new instance of FileOperationPatternOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#8 - def initialize(ignore_case: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#24 - def attributes; end - - # The pattern should be matched ignoring casing. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#20 - def ignore_case; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#30 - def to_json(*args); end -end - -# The options to register for file operations. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#7 -class LanguageServer::Protocol::Interface::FileOperationRegistrationOptions - # @return [FileOperationRegistrationOptions] a new instance of FileOperationRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#8 - def initialize(filters:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#24 - def attributes; end - - # The actual filters. - # - # @return [FileOperationFilter[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#20 - def filters; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#30 - def to_json(*args); end -end - -# Represents information on a file/folder rename. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#7 -class LanguageServer::Protocol::Interface::FileRename - # @return [FileRename] a new instance of FileRename - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#8 - def initialize(old_uri:, new_uri:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#33 - def attributes; end - - # A file:// URI for the new location of the file/folder being renamed. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#29 - def new_uri; end - - # A file:// URI for the original location of the file/folder being renamed. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#21 - def old_uri; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#39 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#4 -class LanguageServer::Protocol::Interface::FileSystemWatcher - # @return [FileSystemWatcher] a new instance of FileSystemWatcher - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#5 - def initialize(glob_pattern:, kind: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#33 - def attributes; end - - # The glob pattern to watch. See {@link GlobPattern glob pattern} - # for more detail. - # - # @return [GlobPattern] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#19 - def glob_pattern; end - - # The kind of events of interest. If omitted it defaults - # to WatchKind.Create | WatchKind.Change | WatchKind.Delete - # which is 7. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#29 - def kind; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#39 - def to_json(*args); end -end - -# Represents a folding range. To be valid, start and end line must be bigger -# than zero and smaller than the number of lines in the document. Clients -# are free to ignore invalid ranges. -# -# source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#9 -class LanguageServer::Protocol::Interface::FoldingRange - # @return [FoldingRange] a new instance of FoldingRange - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#10 - def initialize(start_line:, end_line:, start_character: T.unsafe(nil), end_character: T.unsafe(nil), kind: T.unsafe(nil), collapsed_text: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#82 - def attributes; end - - # The text that the client should show when the specified range is - # collapsed. If not defined or not supported by the client, a default - # will be chosen by the client. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#78 - def collapsed_text; end - - # The zero-based character offset before the folded range ends. If not - # defined, defaults to the length of the end line. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#57 - def end_character; end - - # The zero-based end line of the range to fold. The folded area ends with - # the line's last character. To be valid, the end must be zero or larger - # and smaller than the number of lines in the document. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#48 - def end_line; end - - # Describes the kind of the folding range such as `comment` or `region`. - # The kind is used to categorize folding ranges and used by commands like - # 'Fold all comments'. See [FoldingRangeKind](#FoldingRangeKind) for an - # enumeration of standardized kinds. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#68 - def kind; end - - # The zero-based character offset from where the folded range starts. If - # not defined, defaults to the length of the start line. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#38 - def start_character; end - - # The zero-based start line of the range to fold. The folded area starts - # after the line's last character. To be valid, the end must be zero or - # larger and smaller than the number of lines in the document. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#29 - def start_line; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#84 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#88 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::FoldingRangeClientCapabilities - # @return [FoldingRangeClientCapabilities] a new instance of FoldingRangeClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), range_limit: T.unsafe(nil), line_folding_only: T.unsafe(nil), folding_range_kind: T.unsafe(nil), folding_range: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#64 - def attributes; end - - # Whether implementation supports dynamic registration for folding range - # providers. If this is set to `true` the client supports the new - # `FoldingRangeRegistrationOptions` return value for the corresponding - # server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#24 - def dynamic_registration; end - - # Specific options for the folding range. - # - # @return [{ collapsedText?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#60 - def folding_range; end - - # Specific options for the folding range kind. - # - # @return [{ valueSet?: string[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#52 - def folding_range_kind; end - - # If set, the client signals that it only supports folding complete lines. - # If set, client will ignore specified `startCharacter` and `endCharacter` - # properties in a FoldingRange. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#44 - def line_folding_only; end - - # The maximum number of folding ranges that the client prefers to receive - # per document. The value serves as a hint, servers are free to follow the - # limit. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#34 - def range_limit; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#66 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#70 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#4 -class LanguageServer::Protocol::Interface::FoldingRangeOptions - # @return [FoldingRangeOptions] a new instance of FoldingRangeOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#4 -class LanguageServer::Protocol::Interface::FoldingRangeParams - # @return [FoldingRangeParams] a new instance of FoldingRangeParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#5 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#40 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#28 - def partial_result_token; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#36 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#46 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#4 -class LanguageServer::Protocol::Interface::FoldingRangeRegistrationOptions - # @return [FoldingRangeRegistrationOptions] a new instance of FoldingRangeRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#25 - def work_done_progress; end -end - -# Value-object describing what options formatting should use. -# -# source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#7 -class LanguageServer::Protocol::Interface::FormattingOptions - # @return [FormattingOptions] a new instance of FormattingOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#8 - def initialize(tab_size:, insert_spaces:, trim_trailing_whitespace: T.unsafe(nil), insert_final_newline: T.unsafe(nil), trim_final_newlines: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#60 - def attributes; end - - # Insert a newline character at the end of the file if one does not exist. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#48 - def insert_final_newline; end - - # Prefer spaces over tabs. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#32 - def insert_spaces; end - - # Size of a tab in spaces. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#24 - def tab_size; end - - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#62 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#66 - def to_json(*args); end - - # Trim all newlines after the final newline at the end of the file. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#56 - def trim_final_newlines; end - - # Trim trailing whitespace on a line. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#40 - def trim_trailing_whitespace; end -end - -# A diagnostic report with a full set of problems. -# -# source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#7 -class LanguageServer::Protocol::Interface::FullDocumentDiagnosticReport - # @return [FullDocumentDiagnosticReport] a new instance of FullDocumentDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#8 - def initialize(kind:, items:, result_id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#44 - def attributes; end - - # The actual items. - # - # @return [Diagnostic[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#40 - def items; end - - # A full document diagnostic report. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#22 - def kind; end - - # An optional result id. If provided it will - # be sent on the next diagnostic request for the - # same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#32 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#50 - def to_json(*args); end -end - -# The result of a hover request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#7 -class LanguageServer::Protocol::Interface::Hover - # @return [Hover] a new instance of Hover - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#8 - def initialize(contents:, range: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#34 - def attributes; end - - # The hover's content - # - # @return [MarkupContent | MarkedString | MarkedString[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#21 - def contents; end - - # An optional range is a range inside a text document - # that is used to visualize a hover, e.g. by changing the background color. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#30 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#40 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::HoverClientCapabilities - # @return [HoverClientCapabilities] a new instance of HoverClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), content_format: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#32 - def attributes; end - - # Client supports the follow content formats if the content - # property refers to a `literal of type MarkupContent`. - # The order describes the preferred format of the client. - # - # @return [MarkupKind[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#28 - def content_format; end - - # Whether hover supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#18 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#38 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#4 -class LanguageServer::Protocol::Interface::HoverOptions - # @return [HoverOptions] a new instance of HoverOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#4 -class LanguageServer::Protocol::Interface::HoverParams - # @return [HoverParams] a new instance of HoverParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#39 - def attributes; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#27 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#19 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#35 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#4 -class LanguageServer::Protocol::Interface::HoverRegistrationOptions - # @return [HoverRegistrationOptions] a new instance of HoverRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#24 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#4 -class LanguageServer::Protocol::Interface::HoverResult - # @return [HoverResult] a new instance of HoverResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#5 - def initialize(value:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#24 - def to_json(*args); end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#14 - def value; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::ImplementationClientCapabilities - # @return [ImplementationClientCapabilities] a new instance of ImplementationClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), link_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#32 - def attributes; end - - # Whether implementation supports dynamic registration. If this is set to - # `true` the client supports the new `ImplementationRegistrationOptions` - # return value for the corresponding server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#20 - def dynamic_registration; end - - # The client supports additional metadata in the form of definition links. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#28 - def link_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#38 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#4 -class LanguageServer::Protocol::Interface::ImplementationOptions - # @return [ImplementationOptions] a new instance of ImplementationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#4 -class LanguageServer::Protocol::Interface::ImplementationParams - # @return [ImplementationParams] a new instance of ImplementationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#45 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#4 -class LanguageServer::Protocol::Interface::ImplementationRegistrationOptions - # @return [ImplementationRegistrationOptions] a new instance of ImplementationRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#4 -class LanguageServer::Protocol::Interface::InitializeError - # @return [InitializeError] a new instance of InitializeError - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#5 - def initialize(retry:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#24 - def attributes; end - - # Indicates whether the client execute the following retry logic: - # (1) show the message provided by the ResponseError to the user - # (2) user selects retry or cancel - # (3) if user selected retry the initialize method is sent again. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#20 - def retry; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#4 -class LanguageServer::Protocol::Interface::InitializeParams - # @return [InitializeParams] a new instance of InitializeParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#5 - def initialize(process_id:, root_uri:, capabilities:, work_done_token: T.unsafe(nil), client_info: T.unsafe(nil), locale: T.unsafe(nil), root_path: T.unsafe(nil), initialization_options: T.unsafe(nil), trace: T.unsafe(nil), workspace_folders: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#116 - def attributes; end - - # The capabilities provided by the client (editor or tool) - # - # @return [ClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#93 - def capabilities; end - - # Information about the client - # - # @return [{ name: string; version?: string; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#45 - def client_info; end - - # User provided initialization options. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#85 - def initialization_options; end - - # The locale the client is currently showing the user interface - # in. This must not necessarily be the locale of the operating - # system. - # - # Uses IETF language tags as the value's syntax - # (See https://en.wikipedia.org/wiki/IETF_language_tag) - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#58 - def locale; end - - # The process Id of the parent process that started the server. Is null if - # the process has not been started by another process. If the parent - # process is not alive then the server should exit (see exit notification) - # its process. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#37 - def process_id; end - - # The rootPath of the workspace. Is null - # if no folder is open. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#67 - def root_path; end - - # The rootUri of the workspace. Is null if no - # folder is open. If both `rootPath` and `rootUri` are set - # `rootUri` wins. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#77 - def root_uri; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#118 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#122 - def to_json(*args); end - - # The initial trace setting. If omitted trace is disabled ('off'). - # - # @return [TraceValue] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#101 - def trace; end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#26 - def work_done_token; end - - # The workspace folders configured in the client when the server starts. - # This property is only available if the client supports workspace folders. - # It can be `null` if the client supports workspace folders but none are - # configured. - # - # @return [WorkspaceFolder[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#112 - def workspace_folders; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#4 -class LanguageServer::Protocol::Interface::InitializeResult - # @return [InitializeResult] a new instance of InitializeResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#5 - def initialize(capabilities:, server_info: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#30 - def attributes; end - - # The capabilities the language server provides. - # - # @return [ServerCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#18 - def capabilities; end - - # Information about the server. - # - # @return [{ name: string; version?: string; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#26 - def server_info; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#4 -class LanguageServer::Protocol::Interface::InitializedParams - # @return [InitializedParams] a new instance of InitializedParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#5 - def initialize; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#12 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#14 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#18 - def to_json(*args); end -end - -# Inlay hint information. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#7 -class LanguageServer::Protocol::Interface::InlayHint - # @return [InlayHint] a new instance of InlayHint - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#8 - def initialize(position:, label:, kind: T.unsafe(nil), text_edits: T.unsafe(nil), tooltip: T.unsafe(nil), padding_left: T.unsafe(nil), padding_right: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#110 - def attributes; end - - # A data entry field that is preserved on an inlay hint between - # a `textDocument/inlayHint` and a `inlayHint/resolve` request. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#106 - def data; end - - # The kind of this hint. Can be omitted in which case the client - # should fall back to a reasonable default. - # - # @return [InlayHintKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#47 - def kind; end - - # The label of this hint. A human readable string or an array of - # InlayHintLabelPart label parts. - # - # *Note* that neither the string nor the label part can be empty. - # - # @return [string | InlayHintLabelPart[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#38 - def label; end - - # Render padding before the hint. - # - # Note: Padding should use the editor's background color, not the - # background color of the hint itself. That means padding can be used - # to visually align/separate an inlay hint. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#85 - def padding_left; end - - # Render padding after the hint. - # - # Note: Padding should use the editor's background color, not the - # background color of the hint itself. That means padding can be used - # to visually align/separate an inlay hint. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#97 - def padding_right; end - - # The position of this hint. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#27 - def position; end - - # Optional text edits that are performed when accepting this inlay hint. - # - # *Note* that edits are expected to change the document so that the inlay - # hint (or its nearest variant) is now part of the document and the inlay - # hint itself is now obsolete. - # - # Depending on the client capability `inlayHint.resolveSupport` clients - # might resolve this property late using the resolve request. - # - # @return [TextEdit[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#62 - def text_edits; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#112 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#116 - def to_json(*args); end - - # The tooltip text when you hover over this item. - # - # Depending on the client capability `inlayHint.resolveSupport` clients - # might resolve this property late using the resolve request. - # - # @return [string | MarkupContent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#73 - def tooltip; end -end - -# Inlay hint client capabilities. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::InlayHintClientCapabilities - # @return [InlayHintClientCapabilities] a new instance of InlayHintClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#8 - def initialize(dynamic_registration: T.unsafe(nil), resolve_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#34 - def attributes; end - - # Whether inlay hints support dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#21 - def dynamic_registration; end - - # Indicates which properties a client can resolve lazily on an inlay - # hint. - # - # @return [{ properties: string[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#30 - def resolve_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#40 - def to_json(*args); end -end - -# An inlay hint label part allows for interactive and composite labels -# of inlay hints. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#8 -class LanguageServer::Protocol::Interface::InlayHintLabelPart - # @return [InlayHintLabelPart] a new instance of InlayHintLabelPart - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#9 - def initialize(value:, tooltip: T.unsafe(nil), location: T.unsafe(nil), command: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#67 - def attributes; end - - # An optional command for this label part. - # - # Depending on the client capability `inlayHint.resolveSupport` clients - # might resolve this property late using the resolve request. - # - # @return [Command] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#63 - def command; end - - # An optional source code location that represents this - # label part. - # - # The editor will use this location for the hover and for code navigation - # features: This part will become a clickable link that resolves to the - # definition of the symbol at the given location (not necessarily the - # location itself), it shows the hover that shows at the given location, - # and it shows a context menu with further code navigation commands. - # - # Depending on the client capability `inlayHint.resolveSupport` clients - # might resolve this property late using the resolve request. - # - # @return [Location] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#52 - def location; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#69 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#73 - def to_json(*args); end - - # The tooltip text when you hover over this label part. Depending on - # the client capability `inlayHint.resolveSupport` clients might resolve - # this property late using the resolve request. - # - # @return [string | MarkupContent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#34 - def tooltip; end - - # The value of this label part. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#24 - def value; end -end - -# Inlay hint options used during static registration. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#7 -class LanguageServer::Protocol::Interface::InlayHintOptions - # @return [InlayHintOptions] a new instance of InlayHintOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#8 - def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#31 - def attributes; end - - # The server provides support to resolve additional - # information for an inlay hint item. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#27 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#37 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#18 - def work_done_progress; end -end - -# A parameter literal used in inlay hint requests. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#7 -class LanguageServer::Protocol::Interface::InlayHintParams - # @return [InlayHintParams] a new instance of InlayHintParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#8 - def initialize(text_document:, range:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#42 - def attributes; end - - # The visible document range for which inlay hints should be computed. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#38 - def range; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#30 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#44 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#48 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#22 - def work_done_token; end -end - -# Inlay hint options used during static or dynamic registration. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#7 -class LanguageServer::Protocol::Interface::InlayHintRegistrationOptions - # @return [InlayHintRegistrationOptions] a new instance of InlayHintRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#8 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#51 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#38 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#47 - def id; end - - # The server provides support to resolve additional - # information for an inlay hint item. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#29 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#57 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#20 - def work_done_progress; end -end - -# Client workspace capabilities specific to inlay hints. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::InlayHintWorkspaceClientCapabilities - # @return [InlayHintWorkspaceClientCapabilities] a new instance of InlayHintWorkspaceClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#8 - def initialize(refresh_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#30 - def attributes; end - - # Whether the client implementation supports a refresh request sent from - # the server to the client. - # - # Note that this event is global and will force the client to refresh all - # inlay hints currently shown. It should be used with absolute care and - # is useful for situation where a server for example detects a project wide - # change that requires such a calculation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#26 - def refresh_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#36 - def to_json(*args); end -end - -# Client capabilities specific to inline values. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::InlineValueClientCapabilities - # @return [InlineValueClientCapabilities] a new instance of InlineValueClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#8 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#25 - def attributes; end - - # Whether implementation supports dynamic registration for inline - # value providers. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#21 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#27 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#31 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#4 -class LanguageServer::Protocol::Interface::InlineValueContext - # @return [InlineValueContext] a new instance of InlineValueContext - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#5 - def initialize(frame_id:, stopped_location:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#32 - def attributes; end - - # The stack frame (as a DAP Id) where the execution has stopped. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#18 - def frame_id; end - - # The document range where execution has stopped. - # Typically the end position of the range denotes the line where the - # inline values are shown. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#28 - def stopped_location; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#38 - def to_json(*args); end -end - -# Provide an inline value through an expression evaluation. -# -# If only a range is specified, the expression will be extracted from the -# underlying document. -# -# An optional expression can be used to override the extracted expression. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#12 -class LanguageServer::Protocol::Interface::InlineValueEvaluatableExpression - # @return [InlineValueEvaluatableExpression] a new instance of InlineValueEvaluatableExpression - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#13 - def initialize(range:, expression: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#40 - def attributes; end - - # If specified the expression overrides the extracted expression. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#36 - def expression; end - - # The document range for which the inline value applies. - # The range is used to extract the evaluatable expression from the - # underlying document. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#28 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#46 - def to_json(*args); end -end - -# Inline value options used during static registration. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#7 -class LanguageServer::Protocol::Interface::InlineValueOptions - # @return [InlineValueOptions] a new instance of InlineValueOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#8 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#21 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#27 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#17 - def work_done_progress; end -end - -# A parameter literal used in inline value requests. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#7 -class LanguageServer::Protocol::Interface::InlineValueParams - # @return [InlineValueParams] a new instance of InlineValueParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#8 - def initialize(text_document:, range:, context:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#52 - def attributes; end - - # Additional information about the context in which inline values were - # requested. - # - # @return [InlineValueContext] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#48 - def context; end - - # The document range for which inline values should be computed. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#39 - def range; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#31 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#54 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#58 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#23 - def work_done_token; end -end - -# Inline value options used during static or dynamic registration. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#7 -class LanguageServer::Protocol::Interface::InlineValueRegistrationOptions - # @return [InlineValueRegistrationOptions] a new instance of InlineValueRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#8 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#41 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#28 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#37 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#43 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#47 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#19 - def work_done_progress; end -end - -# Provide inline value as text. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#7 -class LanguageServer::Protocol::Interface::InlineValueText - # @return [InlineValueText] a new instance of InlineValueText - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#8 - def initialize(range:, text:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#33 - def attributes; end - - # The document range for which the inline value applies. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#21 - def range; end - - # The text of the inline value. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#29 - def text; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#39 - def to_json(*args); end -end - -# Provide inline value through a variable lookup. -# -# If only a range is specified, the variable name will be extracted from -# the underlying document. -# -# An optional variable name can be used to override the extracted name. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#12 -class LanguageServer::Protocol::Interface::InlineValueVariableLookup - # @return [InlineValueVariableLookup] a new instance of InlineValueVariableLookup - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#13 - def initialize(range:, case_sensitive_lookup:, variable_name: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#49 - def attributes; end - - # How to perform the lookup. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#45 - def case_sensitive_lookup; end - - # The document range for which the inline value applies. - # The range is used to extract the variable name from the underlying - # document. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#29 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#55 - def to_json(*args); end - - # If specified the name of the variable to look up. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#37 - def variable_name; end -end - -# Client workspace capabilities specific to inline values. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::InlineValueWorkspaceClientCapabilities - # @return [InlineValueWorkspaceClientCapabilities] a new instance of InlineValueWorkspaceClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#8 - def initialize(refresh_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#30 - def attributes; end - - # Whether the client implementation supports a refresh request sent from - # the server to the client. - # - # Note that this event is global and will force the client to refresh all - # inline values currently shown. It should be used with absolute care and - # is useful for situation where a server for example detect a project wide - # change that requires such a calculation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#26 - def refresh_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#36 - def to_json(*args); end -end - -# A special text edit to provide an insert and a replace operation. -# -# source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#7 -class LanguageServer::Protocol::Interface::InsertReplaceEdit - # @return [InsertReplaceEdit] a new instance of InsertReplaceEdit - # - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#8 - def initialize(new_text:, insert:, replace:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#42 - def attributes; end - - # The range if the insert is requested - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#30 - def insert; end - - # The string to be inserted. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#22 - def new_text; end - - # The range if the replace is requested. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#38 - def replace; end - - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#44 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#48 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::LinkedEditingRangeClientCapabilities - # @return [LinkedEditingRangeClientCapabilities] a new instance of LinkedEditingRangeClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#24 - def attributes; end - - # Whether the implementation supports dynamic registration. - # If this is set to `true` the client supports the new - # `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` - # return value for the corresponding server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#20 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#4 -class LanguageServer::Protocol::Interface::LinkedEditingRangeOptions - # @return [LinkedEditingRangeOptions] a new instance of LinkedEditingRangeOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#4 -class LanguageServer::Protocol::Interface::LinkedEditingRangeParams - # @return [LinkedEditingRangeParams] a new instance of LinkedEditingRangeParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#39 - def attributes; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#27 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#19 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#35 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#4 -class LanguageServer::Protocol::Interface::LinkedEditingRangeRegistrationOptions - # @return [LinkedEditingRangeRegistrationOptions] a new instance of LinkedEditingRangeRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#4 -class LanguageServer::Protocol::Interface::LinkedEditingRanges - # @return [LinkedEditingRanges] a new instance of LinkedEditingRanges - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#5 - def initialize(ranges:, word_pattern: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#34 - def attributes; end - - # A list of ranges that can be renamed together. The ranges must have - # identical length and contain identical text content. The ranges cannot - # overlap. - # - # @return [Range[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#20 - def ranges; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#40 - def to_json(*args); end - - # An optional word pattern (regular expression) that describes valid - # contents for the given ranges. If no pattern is provided, the client - # configuration's word pattern will be used. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#30 - def word_pattern; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/location.rb#4 -class LanguageServer::Protocol::Interface::Location - # @return [Location] a new instance of Location - # - # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#5 - def initialize(uri:, range:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#24 - def attributes; end - - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#20 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#30 - def to_json(*args); end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#15 - def uri; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#4 -class LanguageServer::Protocol::Interface::LocationLink - # @return [LocationLink] a new instance of LocationLink - # - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#5 - def initialize(target_uri:, target_range:, target_selection_range:, origin_selection_range: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#56 - def attributes; end - - # Span of the origin of this link. - # - # Used as the underlined span for mouse interaction. Defaults to the word - # range at the mouse position. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#23 - def origin_selection_range; end - - # The full target range of this link. If the target for example is a symbol - # then target range is the range enclosing this symbol not including - # leading/trailing whitespace but everything else like comments. This - # information is typically used to highlight the range in the editor. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#42 - def target_range; end - - # The range that should be selected and revealed when this link is being - # followed, e.g the name of a function. Must be contained by the - # `targetRange`. See also `DocumentSymbol#range` - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#52 - def target_selection_range; end - - # The target resource identifier of this link. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#31 - def target_uri; end - - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#58 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#62 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#4 -class LanguageServer::Protocol::Interface::LogMessageParams - # @return [LogMessageParams] a new instance of LogMessageParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#5 - def initialize(type:, message:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#30 - def attributes; end - - # The actual message - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#26 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#36 - def to_json(*args); end - - # The message type. See {@link MessageType} - # - # @return [MessageType] - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#18 - def type; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#4 -class LanguageServer::Protocol::Interface::LogTraceParams - # @return [LogTraceParams] a new instance of LogTraceParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#5 - def initialize(message:, verbose: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#31 - def attributes; end - - # The message to be logged. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#18 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#37 - def to_json(*args); end - - # Additional information that can be computed if the `trace` configuration - # is set to `'verbose'` - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#27 - def verbose; end -end - -# A `MarkupContent` literal represents a string value which content is -# interpreted base on its kind flag. Currently the protocol supports -# `plaintext` and `markdown` as markup kinds. -# -# If the kind is `markdown` then the value can contain fenced code blocks like -# in GitHub issues. -# -# Here is an example how such a string can be constructed using -# JavaScript / TypeScript: -# ```typescript -# let markdown: MarkdownContent = { -# kind: MarkupKind.Markdown, -# value: [ -# '# Header', -# 'Some text', -# '```typescript', -# 'someCode();', -# '```' -# ].join('\n') -# }; -# ``` -# -# *Please Note* that clients might sanitize the return markdown. A client could -# decide to remove HTML from the markdown to avoid script execution. -# -# source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#30 -class LanguageServer::Protocol::Interface::MarkupContent - # @return [MarkupContent] a new instance of MarkupContent - # - # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#31 - def initialize(kind:, value:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#56 - def attributes; end - - # The type of the Markup - # - # @return [MarkupKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#44 - def kind; end - - # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#58 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#62 - def to_json(*args); end - - # The content itself - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#52 - def value; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/message.rb#4 -class LanguageServer::Protocol::Interface::Message - # @return [Message] a new instance of Message - # - # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#5 - def initialize(jsonrpc:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#18 - def attributes; end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#14 - def jsonrpc; end - - # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#24 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#4 -class LanguageServer::Protocol::Interface::MessageActionItem - # @return [MessageActionItem] a new instance of MessageActionItem - # - # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#5 - def initialize(title:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#21 - def attributes; end - - # A short title like 'Retry', 'Open Log' etc. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#17 - def title; end - - # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#27 - def to_json(*args); end -end - -# Moniker definition to match LSIF 0.5 moniker definition. -# -# source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#7 -class LanguageServer::Protocol::Interface::Moniker - # @return [Moniker] a new instance of Moniker - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#8 - def initialize(scheme:, identifier:, unique:, kind: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#52 - def attributes; end - - # The identifier of the moniker. The value is opaque in LSIF however - # schema owners are allowed to define the structure if they want. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#32 - def identifier; end - - # The moniker kind if known. - # - # @return [MonikerKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#48 - def kind; end - - # The scheme of the moniker. For example tsc or .Net - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#23 - def scheme; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#54 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#58 - def to_json(*args); end - - # The scope in which the moniker is unique - # - # @return [UniquenessLevel] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#40 - def unique; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::MonikerClientCapabilities - # @return [MonikerClientCapabilities] a new instance of MonikerClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#24 - def attributes; end - - # Whether implementation supports dynamic registration. If this is set to - # `true` the client supports the new `(TextDocumentRegistrationOptions & - # StaticRegistrationOptions)` return value for the corresponding server - # capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#20 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#4 -class LanguageServer::Protocol::Interface::MonikerOptions - # @return [MonikerOptions] a new instance of MonikerOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#4 -class LanguageServer::Protocol::Interface::MonikerParams - # @return [MonikerParams] a new instance of MonikerParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#45 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#4 -class LanguageServer::Protocol::Interface::MonikerRegistrationOptions - # @return [MonikerRegistrationOptions] a new instance of MonikerRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#24 - def work_done_progress; end -end - -# A notebook cell. -# -# A cell's document URI must be unique across ALL notebook -# cells and can therefore be used to uniquely identify a -# notebook cell or the cell's text document. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#11 -class LanguageServer::Protocol::Interface::NotebookCell - # @return [NotebookCell] a new instance of NotebookCell - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#12 - def initialize(kind:, document:, metadata: T.unsafe(nil), execution_summary: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#57 - def attributes; end - - # The URI of the cell's text document - # content. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#36 - def document; end - - # Additional execution summary information - # if supported by the client. - # - # @return [ExecutionSummary] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#53 - def execution_summary; end - - # The cell's kind - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#27 - def kind; end - - # Additional metadata stored with the cell. - # - # @return [LSPObject] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#44 - def metadata; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#59 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#63 - def to_json(*args); end -end - -# A change describing how to move a `NotebookCell` -# array from state S to S'. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#8 -class LanguageServer::Protocol::Interface::NotebookCellArrayChange - # @return [NotebookCellArrayChange] a new instance of NotebookCellArrayChange - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#9 - def initialize(start:, delete_count:, cells: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#43 - def attributes; end - - # The new cells, if any - # - # @return [NotebookCell[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#39 - def cells; end - - # The deleted cells - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#31 - def delete_count; end - - # The start offset of the cell that changed. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#23 - def start; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#45 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#49 - def to_json(*args); end -end - -# A notebook cell text document filter denotes a cell text -# document by different properties. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#8 -class LanguageServer::Protocol::Interface::NotebookCellTextDocumentFilter - # @return [NotebookCellTextDocumentFilter] a new instance of NotebookCellTextDocumentFilter - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#9 - def initialize(notebook:, language: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#40 - def attributes; end - - # A language id like `python`. - # - # Will be matched against the language id of the - # notebook cell document. '*' matches every language. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#36 - def language; end - - # A filter that matches against the notebook - # containing the notebook cell. If a string - # value is provided it matches against the - # notebook type. '*' matches every notebook. - # - # @return [string | NotebookDocumentFilter] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#25 - def notebook; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#46 - def to_json(*args); end -end - -# A notebook document. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#7 -class LanguageServer::Protocol::Interface::NotebookDocument - # @return [NotebookDocument] a new instance of NotebookDocument - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#8 - def initialize(uri:, notebook_type:, version:, cells:, metadata: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#62 - def attributes; end - - # The cells of a notebook. - # - # @return [NotebookCell[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#58 - def cells; end - - # Additional metadata stored with the notebook - # document. - # - # @return [LSPObject] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#50 - def metadata; end - - # The type of the notebook. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#32 - def notebook_type; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#64 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#68 - def to_json(*args); end - - # The notebook document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#24 - def uri; end - - # The version number of this document (it will increase after each - # change, including undo/redo). - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#41 - def version; end -end - -# A change event for a notebook document. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#7 -class LanguageServer::Protocol::Interface::NotebookDocumentChangeEvent - # @return [NotebookDocumentChangeEvent] a new instance of NotebookDocumentChangeEvent - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#8 - def initialize(metadata: T.unsafe(nil), cells: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#33 - def attributes; end - - # Changes to cells - # - # @return [{ structure?: { array: NotebookCellArrayChange; didOpen?: TextDocumentItem[]; didClose?: TextDocumentIdentifier[]; }; data?: NotebookCell[]; textContent?: { ...; }[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#29 - def cells; end - - # The changed meta data if any. - # - # @return [LSPObject] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#21 - def metadata; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#39 - def to_json(*args); end -end - -# Capabilities specific to the notebook document support. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::NotebookDocumentClientCapabilities - # @return [NotebookDocumentClientCapabilities] a new instance of NotebookDocumentClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#8 - def initialize(synchronization:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#24 - def attributes; end - - # Capabilities specific to notebook document synchronization - # - # @return [NotebookDocumentSyncClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#20 - def synchronization; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#30 - def to_json(*args); end -end - -# A notebook document filter denotes a notebook document by -# different properties. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#8 -class LanguageServer::Protocol::Interface::NotebookDocumentFilter - # @return [NotebookDocumentFilter] a new instance of NotebookDocumentFilter - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#9 - def initialize(notebook_type: T.unsafe(nil), scheme: T.unsafe(nil), pattern: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#67 - def attributes; end - - # The type of the enclosing notebook. - # - # --- OR --- - # - # The type of the enclosing notebook. - # - # --- OR --- - # - # The type of the enclosing notebook. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#31 - def notebook_type; end - - # A glob pattern. - # - # --- OR --- - # - # A glob pattern. - # - # --- OR --- - # - # A glob pattern. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#63 - def pattern; end - - # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. - # - # --- OR --- - # - # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. - # - # --- OR --- - # - # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#47 - def scheme; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#69 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#73 - def to_json(*args); end -end - -# A literal to identify a notebook document in the client. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#7 -class LanguageServer::Protocol::Interface::NotebookDocumentIdentifier - # @return [NotebookDocumentIdentifier] a new instance of NotebookDocumentIdentifier - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#8 - def initialize(uri:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#24 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#30 - def to_json(*args); end - - # The notebook document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#20 - def uri; end -end - -# Notebook specific client capabilities. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::NotebookDocumentSyncClientCapabilities - # @return [NotebookDocumentSyncClientCapabilities] a new instance of NotebookDocumentSyncClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#8 - def initialize(dynamic_registration: T.unsafe(nil), execution_summary_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#36 - def attributes; end - - # Whether implementation supports dynamic registration. If this is - # set to `true` the client supports the new - # `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` - # return value for the corresponding server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#24 - def dynamic_registration; end - - # The client supports sending execution summary data per cell. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#32 - def execution_summary_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#38 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#42 - def to_json(*args); end -end - -# Options specific to a notebook plus its cells -# to be synced to the server. -# -# If a selector provides a notebook document -# filter but no cell selector all cells of a -# matching notebook document will be synced. -# -# If a selector provides no notebook document -# filter but only a cell selector all notebook -# documents that contain at least one matching -# cell will be synced. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#17 -class LanguageServer::Protocol::Interface::NotebookDocumentSyncOptions - # @return [NotebookDocumentSyncOptions] a new instance of NotebookDocumentSyncOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#18 - def initialize(notebook_selector:, save: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#44 - def attributes; end - - # The notebooks to be synced - # - # @return [({ notebook: string | NotebookDocumentFilter; cells?: { language: string; }[]; } | { notebook?: string | NotebookDocumentFilter; cells: { ...; }[]; })[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#31 - def notebook_selector; end - - # Whether save notification should be forwarded to - # the server. Will only be honored if mode === `notebook`. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#40 - def save; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#50 - def to_json(*args); end -end - -# Registration options specific to a notebook. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#7 -class LanguageServer::Protocol::Interface::NotebookDocumentSyncRegistrationOptions - # @return [NotebookDocumentSyncRegistrationOptions] a new instance of NotebookDocumentSyncRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#8 - def initialize(notebook_selector:, save: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#44 - def attributes; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#40 - def id; end - - # The notebooks to be synced - # - # @return [({ notebook: string | NotebookDocumentFilter; cells?: { language: string; }[]; } | { notebook?: string | NotebookDocumentFilter; cells: { ...; }[]; })[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#22 - def notebook_selector; end - - # Whether save notification should be forwarded to - # the server. Will only be honored if mode === `notebook`. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#31 - def save; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#50 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#4 -class LanguageServer::Protocol::Interface::NotificationMessage - # @return [NotificationMessage] a new instance of NotificationMessage - # - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#5 - def initialize(jsonrpc:, method:, params: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#36 - def attributes; end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#16 - def jsonrpc; end - - # The method to be invoked. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#24 - def method; end - - # The notification's params. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#32 - def params; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#38 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#42 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#4 -class LanguageServer::Protocol::Interface::OptionalVersionedTextDocumentIdentifier - # @return [OptionalVersionedTextDocumentIdentifier] a new instance of OptionalVersionedTextDocumentIdentifier - # - # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#5 - def initialize(uri:, version:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#38 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#44 - def to_json(*args); end - - # The text document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#18 - def uri; end - - # The version number of this document. If an optional versioned text document - # identifier is sent from the server to the client and the file is not - # open in the editor (the server has not received an open notification - # before) the server can send `null` to indicate that the version is - # known and the content on disk is the master (as specified with document - # content ownership). - # - # The version number of a document will increase after each change, - # including undo/redo. The number doesn't need to be consecutive. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#34 - def version; end -end - -# Represents a parameter of a callable-signature. A parameter can -# have a label and a doc-comment. -# -# source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#8 -class LanguageServer::Protocol::Interface::ParameterInformation - # @return [ParameterInformation] a new instance of ParameterInformation - # - # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#9 - def initialize(label:, documentation: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#44 - def attributes; end - - # The human-readable doc-comment of this parameter. Will be shown - # in the UI but can be omitted. - # - # @return [string | MarkupContent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#40 - def documentation; end - - # The label of this parameter information. - # - # Either a string or an inclusive start and exclusive end offsets within - # its containing signature label. (see SignatureInformation.label). The - # offsets are based on a UTF-16 string representation as `Position` and - # `Range` does. - # - # *Note*: a label of type string should be a substring of its containing - # signature label. Its intended use case is to highlight the parameter - # label part in the `SignatureInformation.label`. - # - # @return [string | [number, number]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#31 - def label; end - - # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#50 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#4 -class LanguageServer::Protocol::Interface::PartialResultParams - # @return [PartialResultParams] a new instance of PartialResultParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#5 - def initialize(partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#22 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#18 - def partial_result_token; end - - # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#24 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#28 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/position.rb#4 -class LanguageServer::Protocol::Interface::Position - # @return [Position] a new instance of Position - # - # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#5 - def initialize(line:, character:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#34 - def attributes; end - - # Character offset on a line in a document (zero-based). The meaning of this - # offset is determined by the negotiated `PositionEncodingKind`. - # - # If the character value is greater than the line length it defaults back - # to the line length. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#30 - def character; end - - # Line position in a document (zero-based). - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#18 - def line; end - - # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#40 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#4 -class LanguageServer::Protocol::Interface::PrepareRenameParams - # @return [PrepareRenameParams] a new instance of PrepareRenameParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#39 - def attributes; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#27 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#19 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#35 - def work_done_token; end -end - -# A previous result id in a workspace pull request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#7 -class LanguageServer::Protocol::Interface::PreviousResultId - # @return [PreviousResultId] a new instance of PreviousResultId - # - # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#8 - def initialize(uri:, value:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#34 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#40 - def to_json(*args); end - - # The URI for which the client knows a - # result id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#22 - def uri; end - - # The value of the previous result id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#30 - def value; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#4 -class LanguageServer::Protocol::Interface::ProgressParams - # @return [ProgressParams] a new instance of ProgressParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#5 - def initialize(token:, value:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#30 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#36 - def to_json(*args); end - - # The progress token provided by the client or server. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#18 - def token; end - - # The progress data. - # - # @return [T] - # - # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#26 - def value; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::PublishDiagnosticsClientCapabilities - # @return [PublishDiagnosticsClientCapabilities] a new instance of PublishDiagnosticsClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#5 - def initialize(related_information: T.unsafe(nil), tag_support: T.unsafe(nil), version_support: T.unsafe(nil), code_description_support: T.unsafe(nil), data_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#61 - def attributes; end - - # Client supports a codeDescription property - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#47 - def code_description_support; end - - # Whether code action supports the `data` property which is - # preserved between a `textDocument/publishDiagnostics` and - # `textDocument/codeAction` request. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#57 - def data_support; end - - # Whether the clients accepts diagnostics with related information. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#21 - def related_information; end - - # Client supports the tag property to provide meta data about a diagnostic. - # Clients supporting tags have to handle unknown tags gracefully. - # - # @return [{ valueSet: DiagnosticTag[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#30 - def tag_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#63 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#67 - def to_json(*args); end - - # Whether the client interprets the version property of the - # `textDocument/publishDiagnostics` notification's parameter. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#39 - def version_support; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#4 -class LanguageServer::Protocol::Interface::PublishDiagnosticsParams - # @return [PublishDiagnosticsParams] a new instance of PublishDiagnosticsParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#5 - def initialize(uri:, diagnostics:, version: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#40 - def attributes; end - - # An array of diagnostic information items. - # - # @return [Diagnostic[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#36 - def diagnostics; end - - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#46 - def to_json(*args); end - - # The URI for which diagnostic information is reported. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#19 - def uri; end - - # Optional the version number of the document the diagnostics are published - # for. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#28 - def version; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/range.rb#4 -class LanguageServer::Protocol::Interface::Range - # @return [Range] a new instance of Range - # - # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#5 - def initialize(start:, end:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#30 - def attributes; end - - # The range's end position. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#26 - def end; end - - # The range's start position. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#18 - def start; end - - # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::ReferenceClientCapabilities - # @return [ReferenceClientCapabilities] a new instance of ReferenceClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#21 - def attributes; end - - # Whether references supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#4 -class LanguageServer::Protocol::Interface::ReferenceContext - # @return [ReferenceContext] a new instance of ReferenceContext - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#5 - def initialize(include_declaration:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#21 - def attributes; end - - # Include the declaration of the current symbol. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#17 - def include_declaration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#4 -class LanguageServer::Protocol::Interface::ReferenceOptions - # @return [ReferenceOptions] a new instance of ReferenceOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#4 -class LanguageServer::Protocol::Interface::ReferenceParams - # @return [ReferenceParams] a new instance of ReferenceParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#5 - def initialize(text_document:, position:, context:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#55 - def attributes; end - - # @return [ReferenceContext] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#51 - def context; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#46 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#29 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#21 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#57 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#61 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#37 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#4 -class LanguageServer::Protocol::Interface::ReferenceRegistrationOptions - # @return [ReferenceRegistrationOptions] a new instance of ReferenceRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#24 - def work_done_progress; end -end - -# General parameters to register for a capability. -# -# source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#7 -class LanguageServer::Protocol::Interface::Registration - # @return [Registration] a new instance of Registration - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#8 - def initialize(id:, method:, register_options: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#43 - def attributes; end - - # The id used to register the request. The id can be used to deregister - # the request again. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#23 - def id; end - - # The method / capability to register for. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#31 - def method; end - - # Options necessary for the registration. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#39 - def register_options; end - - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#45 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#49 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#4 -class LanguageServer::Protocol::Interface::RegistrationParams - # @return [RegistrationParams] a new instance of RegistrationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#5 - def initialize(registrations:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#18 - def attributes; end - - # @return [Registration[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#14 - def registrations; end - - # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#24 - def to_json(*args); end -end - -# Client capabilities specific to regular expressions. -# -# source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::RegularExpressionsClientCapabilities - # @return [RegularExpressionsClientCapabilities] a new instance of RegularExpressionsClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#8 - def initialize(engine:, version: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#33 - def attributes; end - - # The engine's name. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#21 - def engine; end - - # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#39 - def to_json(*args); end - - # The engine's version. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#29 - def version; end -end - -# A full diagnostic report with a set of related documents. -# -# source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#7 -class LanguageServer::Protocol::Interface::RelatedFullDocumentDiagnosticReport - # @return [RelatedFullDocumentDiagnosticReport] a new instance of RelatedFullDocumentDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#8 - def initialize(kind:, items:, result_id: T.unsafe(nil), related_documents: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#57 - def attributes; end - - # The actual items. - # - # @return [Diagnostic[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#41 - def items; end - - # A full document diagnostic report. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#23 - def kind; end - - # Diagnostics of related documents. This information is useful - # in programming languages where code in a file A can generate - # diagnostics in a file B which A depends on. An example of - # such a language is C/C++ where marco definitions in a file - # a.cpp and result in errors in a header file b.hpp. - # - # @return [{ [uri: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#53 - def related_documents; end - - # An optional result id. If provided it will - # be sent on the next diagnostic request for the - # same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#33 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#59 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#63 - def to_json(*args); end -end - -# An unchanged diagnostic report with a set of related documents. -# -# source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#7 -class LanguageServer::Protocol::Interface::RelatedUnchangedDocumentDiagnosticReport - # @return [RelatedUnchangedDocumentDiagnosticReport] a new instance of RelatedUnchangedDocumentDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#8 - def initialize(kind:, result_id:, related_documents: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#50 - def attributes; end - - # A document diagnostic report indicating - # no changes to the last result. A server can - # only return `unchanged` if result ids are - # provided. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#25 - def kind; end - - # Diagnostics of related documents. This information is useful - # in programming languages where code in a file A can generate - # diagnostics in a file B which A depends on. An example of - # such a language is C/C++ where marco definitions in a file - # a.cpp and result in errors in a header file b.hpp. - # - # @return [{ [uri: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#46 - def related_documents; end - - # A result id which will be sent on the next - # diagnostic request for the same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#34 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#52 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#56 - def to_json(*args); end -end - -# A relative pattern is a helper to construct glob patterns that are matched -# relatively to a base URI. The common value for a `baseUri` is a workspace -# folder root, but it can be another absolute URI as well. -# -# source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#9 -class LanguageServer::Protocol::Interface::RelativePattern - # @return [RelativePattern] a new instance of RelativePattern - # - # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#10 - def initialize(base_uri:, pattern:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#36 - def attributes; end - - # A workspace folder or a base URI to which this pattern will be matched - # against relatively. - # - # @return [string | WorkspaceFolder] - # - # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#24 - def base_uri; end - - # The actual glob pattern; - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#32 - def pattern; end - - # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#38 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#42 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::RenameClientCapabilities - # @return [RenameClientCapabilities] a new instance of RenameClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), prepare_support: T.unsafe(nil), prepare_support_default_behavior: T.unsafe(nil), honors_change_annotations: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#57 - def attributes; end - - # Whether rename supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#20 - def dynamic_registration; end - - # Whether the client honors the change annotations in - # text edits and resource operations returned via the - # rename request's workspace edit by for example presenting - # the workspace edit in the user interface and asking - # for confirmation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#53 - def honors_change_annotations; end - - # Client supports testing for validity of rename operations - # before execution. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#29 - def prepare_support; end - - # Client supports the default behavior result - # (`{ defaultBehavior: boolean }`). - # - # The value indicates the default behavior used by the - # client. - # - # @return [1] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#41 - def prepare_support_default_behavior; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#59 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#63 - def to_json(*args); end -end - -# Rename file operation -# -# source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#7 -class LanguageServer::Protocol::Interface::RenameFile - # @return [RenameFile] a new instance of RenameFile - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#8 - def initialize(kind:, old_uri:, new_uri:, options: T.unsafe(nil), annotation_id: T.unsafe(nil)); end - - # An optional annotation identifier describing the operation. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#56 - def annotation_id; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#60 - def attributes; end - - # A rename - # - # @return ["rename"] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#24 - def kind; end - - # The new location. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#40 - def new_uri; end - - # The old (existing) location. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#32 - def old_uri; end - - # Rename options. - # - # @return [RenameFileOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#48 - def options; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#62 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#66 - def to_json(*args); end -end - -# Rename file options -# -# source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#7 -class LanguageServer::Protocol::Interface::RenameFileOptions - # @return [RenameFileOptions] a new instance of RenameFileOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#8 - def initialize(overwrite: T.unsafe(nil), ignore_if_exists: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#33 - def attributes; end - - # Ignores if target exists. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#29 - def ignore_if_exists; end - - # Overwrite target if existing. Overwrite wins over `ignoreIfExists` - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#21 - def overwrite; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#39 - def to_json(*args); end -end - -# The parameters sent in notifications/requests for user-initiated renames -# of files. -# -# source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#8 -class LanguageServer::Protocol::Interface::RenameFilesParams - # @return [RenameFilesParams] a new instance of RenameFilesParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#9 - def initialize(files:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#26 - def attributes; end - - # An array of all files/folders renamed in this operation. When a folder - # is renamed, only the folder will be included, and not its children. - # - # @return [FileRename[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#22 - def files; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#28 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#32 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#4 -class LanguageServer::Protocol::Interface::RenameOptions - # @return [RenameOptions] a new instance of RenameOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), prepare_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#27 - def attributes; end - - # Renames should be checked and tested before being executed. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#23 - def prepare_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#29 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#33 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#15 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#4 -class LanguageServer::Protocol::Interface::RenameParams - # @return [RenameParams] a new instance of RenameParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#5 - def initialize(text_document:, position:, new_name:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#50 - def attributes; end - - # The new name of the symbol. If the given name is not valid the - # request must return a [ResponseError](#ResponseError) with an - # appropriate message set. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#46 - def new_name; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#52 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#56 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#4 -class LanguageServer::Protocol::Interface::RenameRegistrationOptions - # @return [RenameRegistrationOptions] a new instance of RenameRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), prepare_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#37 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#20 - def document_selector; end - - # Renames should be checked and tested before being executed. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#33 - def prepare_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#43 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#4 -class LanguageServer::Protocol::Interface::RequestMessage - # @return [RequestMessage] a new instance of RequestMessage - # - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#5 - def initialize(jsonrpc:, id:, method:, params: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#45 - def attributes; end - - # The request id. - # - # @return [string | number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#25 - def id; end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#17 - def jsonrpc; end - - # The method to be invoked. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#33 - def method; end - - # The method's params. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#41 - def params; end - - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#47 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#51 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#4 -class LanguageServer::Protocol::Interface::ResponseError - # @return [ResponseError] a new instance of ResponseError - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#5 - def initialize(code:, message:, data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#40 - def attributes; end - - # A number indicating the error type that occurred. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#19 - def code; end - - # A primitive or structured value that contains additional - # information about the error. Can be omitted. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#36 - def data; end - - # A string providing a short description of the error. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#27 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#46 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#4 -class LanguageServer::Protocol::Interface::ResponseMessage - # @return [ResponseMessage] a new instance of ResponseMessage - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#5 - def initialize(jsonrpc:, id:, result: T.unsafe(nil), error: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#46 - def attributes; end - - # The error object in case a request fails. - # - # @return [ResponseError] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#42 - def error; end - - # The request id. - # - # @return [string | number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#25 - def id; end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#17 - def jsonrpc; end - - # The result of a request. This member is REQUIRED on success. - # This member MUST NOT exist if there was an error invoking the method. - # - # @return [string | number | boolean | object] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#34 - def result; end - - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#48 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#52 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#4 -class LanguageServer::Protocol::Interface::SaveOptions - # @return [SaveOptions] a new instance of SaveOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#5 - def initialize(include_text: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#21 - def attributes; end - - # The client is supposed to include the content on save. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#17 - def include_text; end - - # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#4 -class LanguageServer::Protocol::Interface::SelectionRange - # @return [SelectionRange] a new instance of SelectionRange - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#5 - def initialize(range:, parent: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#31 - def attributes; end - - # The parent selection range containing this range. Therefore - # `parent.range` must contain `this.range`. - # - # @return [SelectionRange] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#27 - def parent; end - - # The [range](#Range) of this selection range. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#18 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#37 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::SelectionRangeClientCapabilities - # @return [SelectionRangeClientCapabilities] a new instance of SelectionRangeClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#24 - def attributes; end - - # Whether implementation supports dynamic registration for selection range - # providers. If this is set to `true` the client supports the new - # `SelectionRangeRegistrationOptions` return value for the corresponding - # server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#20 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#4 -class LanguageServer::Protocol::Interface::SelectionRangeOptions - # @return [SelectionRangeOptions] a new instance of SelectionRangeOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#4 -class LanguageServer::Protocol::Interface::SelectionRangeParams - # @return [SelectionRangeParams] a new instance of SelectionRangeParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#5 - def initialize(text_document:, positions:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#29 - def partial_result_token; end - - # The positions inside the text document. - # - # @return [Position[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#45 - def positions; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#37 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#20 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#4 -class LanguageServer::Protocol::Interface::SelectionRangeRegistrationOptions - # @return [SelectionRangeRegistrationOptions] a new instance of SelectionRangeRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#25 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#16 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokens - # @return [SemanticTokens] a new instance of SemanticTokens - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#5 - def initialize(data:, result_id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#33 - def attributes; end - - # The actual tokens. - # - # @return [number[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#29 - def data; end - - # An optional result id. If provided and clients support delta updating - # the client will include the result id in the next semantic token request. - # A server can then instead of computing all semantic tokens again simply - # send a delta. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#21 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#39 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensClientCapabilities - # @return [SemanticTokensClientCapabilities] a new instance of SemanticTokensClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#5 - def initialize(requests:, token_types:, token_modifiers:, formats:, dynamic_registration: T.unsafe(nil), overlapping_token_support: T.unsafe(nil), multiline_token_support: T.unsafe(nil), server_cancel_support: T.unsafe(nil), augments_syntax_tokens: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#113 - def attributes; end - - # Whether the client uses semantic tokens to augment existing - # syntax tokens. If set to `true` client side created syntax - # tokens and semantic tokens are both used for colorization. If - # set to `false` the client only uses the returned semantic tokens - # for colorization. - # - # If the value is `undefined` then the client behavior is not - # specified. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#109 - def augments_syntax_tokens; end - - # Whether implementation supports dynamic registration. If this is set to - # `true` the client supports the new `(TextDocumentRegistrationOptions & - # StaticRegistrationOptions)` return value for the corresponding server - # capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#28 - def dynamic_registration; end - - # The formats the clients supports. - # - # @return ["relative"[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#67 - def formats; end - - # Whether the client supports tokens that can span multiple lines. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#83 - def multiline_token_support; end - - # Whether the client supports tokens that can overlap each other. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#75 - def overlapping_token_support; end - - # Which requests the client supports and might send to the server - # depending on the server's capability. Please note that clients might not - # show semantic tokens or degrade some of the user experience if a range - # or full request is advertised by the client but not provided by the - # server. If for example the client capability `requests.full` and - # `request.range` are both set to true but the server only provides a - # range provider the client might not render a minimap correctly or might - # even decide to not show any semantic tokens at all. - # - # @return [{ range?: boolean | {}; full?: boolean | { delta?: boolean; }; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#43 - def requests; end - - # Whether the client allows the server to actively cancel a - # semantic token request, e.g. supports returning - # ErrorCodes.ServerCancelled. If a server does the client - # needs to retrigger the request. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#94 - def server_cancel_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#115 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#119 - def to_json(*args); end - - # The token modifiers that the client supports. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#59 - def token_modifiers; end - - # The token types that the client supports. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#51 - def token_types; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensDelta - # @return [SemanticTokensDelta] a new instance of SemanticTokensDelta - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#5 - def initialize(edits:, result_id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#28 - def attributes; end - - # The semantic token edits to transform a previous result into a new - # result. - # - # @return [SemanticTokensEdit[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#24 - def edits; end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#15 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#34 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensDeltaParams - # @return [SemanticTokensDeltaParams] a new instance of SemanticTokensDeltaParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#5 - def initialize(text_document:, previous_result_id:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#50 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#29 - def partial_result_token; end - - # The result id of a previous response. The result Id can either point to - # a full response or a delta response depending on what was received last. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#46 - def previous_result_id; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#37 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#52 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#56 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#20 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensDeltaPartialResult - # @return [SemanticTokensDeltaPartialResult] a new instance of SemanticTokensDeltaPartialResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#5 - def initialize(edits:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#18 - def attributes; end - - # @return [SemanticTokensEdit[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#14 - def edits; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#24 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensEdit - # @return [SemanticTokensEdit] a new instance of SemanticTokensEdit - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#5 - def initialize(start:, delete_count:, data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#39 - def attributes; end - - # The elements to insert. - # - # @return [number[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#35 - def data; end - - # The count of elements to remove. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#27 - def delete_count; end - - # The start offset of the edit. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#19 - def start; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#45 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensLegend - # @return [SemanticTokensLegend] a new instance of SemanticTokensLegend - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#5 - def initialize(token_types:, token_modifiers:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#30 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#36 - def to_json(*args); end - - # The token modifiers a server uses. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#26 - def token_modifiers; end - - # The token types a server uses. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#18 - def token_types; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensOptions - # @return [SemanticTokensOptions] a new instance of SemanticTokensOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#5 - def initialize(legend:, work_done_progress: T.unsafe(nil), range: T.unsafe(nil), full: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#46 - def attributes; end - - # Server supports providing semantic tokens for a full document. - # - # @return [boolean | { delta?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#42 - def full; end - - # The legend used by the server - # - # @return [SemanticTokensLegend] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#25 - def legend; end - - # Server supports providing semantic tokens for a specific range - # of a document. - # - # @return [boolean | {}] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#34 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#48 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#52 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#17 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensParams - # @return [SemanticTokensParams] a new instance of SemanticTokensParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#5 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#40 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#28 - def partial_result_token; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#36 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#46 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensPartialResult - # @return [SemanticTokensPartialResult] a new instance of SemanticTokensPartialResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#5 - def initialize(data:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#18 - def attributes; end - - # @return [number[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#14 - def data; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#24 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensRangeParams - # @return [SemanticTokensRangeParams] a new instance of SemanticTokensRangeParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#5 - def initialize(text_document:, range:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#29 - def partial_result_token; end - - # The range the semantic tokens are requested for. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#45 - def range; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#37 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#20 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensRegistrationOptions - # @return [SemanticTokensRegistrationOptions] a new instance of SemanticTokensRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#5 - def initialize(document_selector:, legend:, work_done_progress: T.unsafe(nil), range: T.unsafe(nil), full: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#66 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#23 - def document_selector; end - - # Server supports providing semantic tokens for a full document. - # - # @return [boolean | { delta?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#53 - def full; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#62 - def id; end - - # The legend used by the server - # - # @return [SemanticTokensLegend] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#36 - def legend; end - - # Server supports providing semantic tokens for a specific range - # of a document. - # - # @return [boolean | {}] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#45 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#68 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#72 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#28 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensWorkspaceClientCapabilities - # @return [SemanticTokensWorkspaceClientCapabilities] a new instance of SemanticTokensWorkspaceClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#5 - def initialize(refresh_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#27 - def attributes; end - - # Whether the client implementation supports a refresh request sent from - # the server to the client. - # - # Note that this event is global and will force the client to refresh all - # semantic tokens currently shown. It should be used with absolute care - # and is useful for situation where a server for example detect a project - # wide change that requires such a calculation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#23 - def refresh_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#29 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#33 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#4 -class LanguageServer::Protocol::Interface::ServerCapabilities - # @return [ServerCapabilities] a new instance of ServerCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#5 - def initialize(position_encoding: T.unsafe(nil), text_document_sync: T.unsafe(nil), notebook_document_sync: T.unsafe(nil), completion_provider: T.unsafe(nil), hover_provider: T.unsafe(nil), signature_help_provider: T.unsafe(nil), declaration_provider: T.unsafe(nil), definition_provider: T.unsafe(nil), type_definition_provider: T.unsafe(nil), implementation_provider: T.unsafe(nil), references_provider: T.unsafe(nil), document_highlight_provider: T.unsafe(nil), document_symbol_provider: T.unsafe(nil), code_action_provider: T.unsafe(nil), code_lens_provider: T.unsafe(nil), document_link_provider: T.unsafe(nil), color_provider: T.unsafe(nil), document_formatting_provider: T.unsafe(nil), document_range_formatting_provider: T.unsafe(nil), document_on_type_formatting_provider: T.unsafe(nil), rename_provider: T.unsafe(nil), folding_range_provider: T.unsafe(nil), execute_command_provider: T.unsafe(nil), selection_range_provider: T.unsafe(nil), linked_editing_range_provider: T.unsafe(nil), call_hierarchy_provider: T.unsafe(nil), semantic_tokens_provider: T.unsafe(nil), moniker_provider: T.unsafe(nil), type_hierarchy_provider: T.unsafe(nil), inline_value_provider: T.unsafe(nil), inlay_hint_provider: T.unsafe(nil), diagnostic_provider: T.unsafe(nil), workspace_symbol_provider: T.unsafe(nil), workspace: T.unsafe(nil), experimental: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#340 - def attributes; end - - # The server provides call hierarchy support. - # - # @return [boolean | CallHierarchyOptions | CallHierarchyRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#264 - def call_hierarchy_provider; end - - # The server provides code actions. The `CodeActionOptions` return type is - # only valid if the client signals code action literal support via the - # property `textDocument.codeAction.codeActionLiteralSupport`. - # - # @return [boolean | CodeActionOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#166 - def code_action_provider; end - - # The server provides code lens. - # - # @return [CodeLensOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#174 - def code_lens_provider; end - - # The server provides color provider support. - # - # @return [boolean | DocumentColorOptions | DocumentColorRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#190 - def color_provider; end - - # The server provides completion support. - # - # @return [CompletionOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#84 - def completion_provider; end - - # The server provides go to declaration support. - # - # @return [boolean | DeclarationOptions | DeclarationRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#108 - def declaration_provider; end - - # The server provides goto definition support. - # - # @return [boolean | DefinitionOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#116 - def definition_provider; end - - # The server has support for pull model diagnostics. - # - # @return [DiagnosticOptions | DiagnosticRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#312 - def diagnostic_provider; end - - # The server provides document formatting. - # - # @return [boolean | DocumentFormattingOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#198 - def document_formatting_provider; end - - # The server provides document highlight support. - # - # @return [boolean | DocumentHighlightOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#148 - def document_highlight_provider; end - - # The server provides document link support. - # - # @return [DocumentLinkOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#182 - def document_link_provider; end - - # The server provides document formatting on typing. - # - # @return [DocumentOnTypeFormattingOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#214 - def document_on_type_formatting_provider; end - - # The server provides document range formatting. - # - # @return [boolean | DocumentRangeFormattingOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#206 - def document_range_formatting_provider; end - - # The server provides document symbol support. - # - # @return [boolean | DocumentSymbolOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#156 - def document_symbol_provider; end - - # The server provides execute command support. - # - # @return [ExecuteCommandOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#240 - def execute_command_provider; end - - # Experimental server capabilities. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#336 - def experimental; end - - # The server provides folding provider support. - # - # @return [boolean | FoldingRangeOptions | FoldingRangeRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#232 - def folding_range_provider; end - - # The server provides hover support. - # - # @return [boolean | HoverOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#92 - def hover_provider; end - - # The server provides goto implementation support. - # - # @return [boolean | ImplementationOptions | ImplementationRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#132 - def implementation_provider; end - - # The server provides inlay hints. - # - # @return [boolean | InlayHintOptions | InlayHintRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#304 - def inlay_hint_provider; end - - # The server provides inline values. - # - # @return [boolean | InlineValueOptions | InlineValueRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#296 - def inline_value_provider; end - - # The server provides linked editing range support. - # - # @return [boolean | LinkedEditingRangeOptions | LinkedEditingRangeRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#256 - def linked_editing_range_provider; end - - # Whether server provides moniker support. - # - # @return [boolean | MonikerOptions | MonikerRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#280 - def moniker_provider; end - - # Defines how notebook documents are synced. - # - # @return [NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#76 - def notebook_document_sync; end - - # The position encoding the server picked from the encodings offered - # by the client via the client capability `general.positionEncodings`. - # - # If the client didn't provide any position encodings the only valid - # value that a server can return is 'utf-16'. - # - # If omitted it defaults to 'utf-16'. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#57 - def position_encoding; end - - # The server provides find references support. - # - # @return [boolean | ReferenceOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#140 - def references_provider; end - - # The server provides rename support. RenameOptions may only be - # specified if the client states that it supports - # `prepareSupport` in its initial `initialize` request. - # - # @return [boolean | RenameOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#224 - def rename_provider; end - - # The server provides selection range support. - # - # @return [boolean | SelectionRangeOptions | SelectionRangeRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#248 - def selection_range_provider; end - - # The server provides semantic tokens support. - # - # @return [SemanticTokensOptions | SemanticTokensRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#272 - def semantic_tokens_provider; end - - # The server provides signature help support. - # - # @return [SignatureHelpOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#100 - def signature_help_provider; end - - # Defines how text documents are synced. Is either a detailed structure - # defining each notification or for backwards compatibility the - # TextDocumentSyncKind number. If omitted it defaults to - # `TextDocumentSyncKind.None`. - # - # @return [TextDocumentSyncOptions | TextDocumentSyncKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#68 - def text_document_sync; end - - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#342 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#346 - def to_json(*args); end - - # The server provides goto type definition support. - # - # @return [boolean | TypeDefinitionOptions | TypeDefinitionRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#124 - def type_definition_provider; end - - # The server provides type hierarchy support. - # - # @return [boolean | TypeHierarchyOptions | TypeHierarchyRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#288 - def type_hierarchy_provider; end - - # Workspace specific server capabilities - # - # @return [{ workspaceFolders?: WorkspaceFoldersServerCapabilities; fileOperations?: { didCreate?: FileOperationRegistrationOptions; ... 4 more ...; willDelete?: FileOperationRegistrationOptions; }; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#328 - def workspace; end - - # The server provides workspace symbol support. - # - # @return [boolean | WorkspaceSymbolOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#320 - def workspace_symbol_provider; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#4 -class LanguageServer::Protocol::Interface::SetTraceParams - # @return [SetTraceParams] a new instance of SetTraceParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#5 - def initialize(value:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#21 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#27 - def to_json(*args); end - - # The new value that should be assigned to the trace setting. - # - # @return [TraceValue] - # - # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#17 - def value; end -end - -# Client capabilities for the show document request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::ShowDocumentClientCapabilities - # @return [ShowDocumentClientCapabilities] a new instance of ShowDocumentClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#8 - def initialize(support:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#25 - def attributes; end - - # The client has support for the show document - # request. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#21 - def support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#27 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#31 - def to_json(*args); end -end - -# Params to show a resource. -# -# source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#7 -class LanguageServer::Protocol::Interface::ShowDocumentParams - # @return [ShowDocumentParams] a new instance of ShowDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#8 - def initialize(uri:, external: T.unsafe(nil), take_focus: T.unsafe(nil), selection: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#59 - def attributes; end - - # Indicates to show the resource in an external program. - # To show, for example, `https://code.visualstudio.com/` - # in the default WEB browser set `external` to `true`. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#33 - def external; end - - # An optional selection range if the document is a text - # document. Clients might ignore the property if an - # external program is started or the file is not a text - # file. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#55 - def selection; end - - # An optional property to indicate whether the editor - # showing the document should take focus or not. - # Clients might ignore this property if an external - # program is started. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#44 - def take_focus; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#61 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#65 - def to_json(*args); end - - # The uri to show. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#23 - def uri; end -end - -# The result of an show document request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#7 -class LanguageServer::Protocol::Interface::ShowDocumentResult - # @return [ShowDocumentResult] a new instance of ShowDocumentResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#8 - def initialize(success:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#24 - def attributes; end - - # A boolean indicating if the show was successful. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#20 - def success; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#4 -class LanguageServer::Protocol::Interface::ShowMessageParams - # @return [ShowMessageParams] a new instance of ShowMessageParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#5 - def initialize(type:, message:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#30 - def attributes; end - - # The actual message. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#26 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#36 - def to_json(*args); end - - # The message type. See {@link MessageType}. - # - # @return [MessageType] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#18 - def type; end -end - -# Show message request client capabilities -# -# source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::ShowMessageRequestClientCapabilities - # @return [ShowMessageRequestClientCapabilities] a new instance of ShowMessageRequestClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#8 - def initialize(message_action_item: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#24 - def attributes; end - - # Capabilities specific to the `MessageActionItem` type. - # - # @return [{ additionalPropertiesSupport?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#20 - def message_action_item; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#4 -class LanguageServer::Protocol::Interface::ShowMessageRequestParams - # @return [ShowMessageRequestParams] a new instance of ShowMessageRequestParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#5 - def initialize(type:, message:, actions: T.unsafe(nil)); end - - # The message action items to present. - # - # @return [MessageActionItem[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#35 - def actions; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#39 - def attributes; end - - # The actual message - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#27 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#45 - def to_json(*args); end - - # The message type. See {@link MessageType} - # - # @return [MessageType] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#19 - def type; end -end - -# Signature help represents the signature of something -# callable. There can be multiple signature but only one -# active and only one active parameter. -# -# source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#9 -class LanguageServer::Protocol::Interface::SignatureHelp - # @return [SignatureHelp] a new instance of SignatureHelp - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#10 - def initialize(signatures:, active_signature: T.unsafe(nil), active_parameter: T.unsafe(nil)); end - - # The active parameter of the active signature. If omitted or the value - # lies outside the range of `signatures[activeSignature].parameters` - # defaults to 0 if the active signature has parameters. If - # the active signature has no parameters it is ignored. - # In future version of the protocol this property might become - # mandatory to better express the active parameter if the - # active signature does have any. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#55 - def active_parameter; end - - # The active signature. If omitted or the value lies outside the - # range of `signatures` the value defaults to zero or is ignore if - # the `SignatureHelp` as no signatures. - # - # Whenever possible implementors should make an active decision about - # the active signature and shouldn't rely on a default value. - # - # In future version of the protocol this property might become - # mandatory to better express this. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#41 - def active_signature; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#59 - def attributes; end - - # One or more signatures. If no signatures are available the signature help - # request should return `null`. - # - # @return [SignatureInformation[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#25 - def signatures; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#61 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#65 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::SignatureHelpClientCapabilities - # @return [SignatureHelpClientCapabilities] a new instance of SignatureHelpClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), signature_information: T.unsafe(nil), context_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#43 - def attributes; end - - # The client supports to send additional context information for a - # `textDocument/signatureHelp` request. A client that opts into - # contextSupport will also support the `retriggerCharacters` on - # `SignatureHelpOptions`. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#39 - def context_support; end - - # Whether signature help supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#19 - def dynamic_registration; end - - # The client supports the following `SignatureInformation` - # specific properties. - # - # @return [{ documentationFormat?: MarkupKind[]; parameterInformation?: { labelOffsetSupport?: boolean; }; activeParameterSupport?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#28 - def signature_information; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#45 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#49 - def to_json(*args); end -end - -# Additional information about the context in which a signature help request -# was triggered. -# -# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#8 -class LanguageServer::Protocol::Interface::SignatureHelpContext - # @return [SignatureHelpContext] a new instance of SignatureHelpContext - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#9 - def initialize(trigger_kind:, is_retrigger:, trigger_character: T.unsafe(nil), active_signature_help: T.unsafe(nil)); end - - # The currently active `SignatureHelp`. - # - # The `activeSignatureHelp` has its `SignatureHelp.activeSignature` field - # updated based on the user navigating through available signatures. - # - # @return [SignatureHelp] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#58 - def active_signature_help; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#62 - def attributes; end - - # `true` if signature help was already showing when it was triggered. - # - # Retriggers occur when the signature help is already active and can be - # caused by actions such as typing a trigger character, a cursor move, or - # document content changes. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#47 - def is_retrigger; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#64 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#68 - def to_json(*args); end - - # Character that caused signature help to be triggered. - # - # This is undefined when triggerKind !== - # SignatureHelpTriggerKind.TriggerCharacter - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#35 - def trigger_character; end - - # Action that caused signature help to be triggered. - # - # @return [SignatureHelpTriggerKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#24 - def trigger_kind; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#4 -class LanguageServer::Protocol::Interface::SignatureHelpOptions - # @return [SignatureHelpOptions] a new instance of SignatureHelpOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), trigger_characters: T.unsafe(nil), retrigger_characters: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#41 - def attributes; end - - # List of characters that re-trigger signature help. - # - # These trigger characters are only active when signature help is already - # showing. All trigger characters are also counted as re-trigger - # characters. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#37 - def retrigger_characters; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#43 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#47 - def to_json(*args); end - - # The characters that trigger signature help - # automatically. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#25 - def trigger_characters; end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#16 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#4 -class LanguageServer::Protocol::Interface::SignatureHelpParams - # @return [SignatureHelpParams] a new instance of SignatureHelpParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), context: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#50 - def attributes; end - - # The signature help context. This is only available if the client - # specifies to send this using the client capability - # `textDocument.signatureHelp.contextSupport === true` - # - # @return [SignatureHelpContext] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#46 - def context; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#52 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#56 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#4 -class LanguageServer::Protocol::Interface::SignatureHelpRegistrationOptions - # @return [SignatureHelpRegistrationOptions] a new instance of SignatureHelpRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), trigger_characters: T.unsafe(nil), retrigger_characters: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#51 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#21 - def document_selector; end - - # List of characters that re-trigger signature help. - # - # These trigger characters are only active when signature help is already - # showing. All trigger characters are also counted as re-trigger - # characters. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#47 - def retrigger_characters; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#57 - def to_json(*args); end - - # The characters that trigger signature help - # automatically. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#35 - def trigger_characters; end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#26 - def work_done_progress; end -end - -# Represents the signature of something callable. A signature -# can have a label, like a function-name, a doc-comment, and -# a set of parameters. -# -# source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#9 -class LanguageServer::Protocol::Interface::SignatureInformation - # @return [SignatureInformation] a new instance of SignatureInformation - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#10 - def initialize(label:, documentation: T.unsafe(nil), parameters: T.unsafe(nil), active_parameter: T.unsafe(nil)); end - - # The index of the active parameter. - # - # If provided, this is used in place of `SignatureHelp.activeParameter`. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#53 - def active_parameter; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#57 - def attributes; end - - # The human-readable doc-comment of this signature. Will be shown - # in the UI but can be omitted. - # - # @return [string | MarkupContent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#35 - def documentation; end - - # The label of this signature. Will be shown in - # the UI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#26 - def label; end - - # The parameters of this signature. - # - # @return [ParameterInformation[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#43 - def parameters; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#59 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#63 - def to_json(*args); end -end - -# Static registration options to be returned in the initialize request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#7 -class LanguageServer::Protocol::Interface::StaticRegistrationOptions - # @return [StaticRegistrationOptions] a new instance of StaticRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#8 - def initialize(id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#25 - def attributes; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#21 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#27 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#31 - def to_json(*args); end -end - -# Represents information about programming constructs like variables, classes, -# interfaces etc. -# -# source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#8 -class LanguageServer::Protocol::Interface::SymbolInformation - # @return [SymbolInformation] a new instance of SymbolInformation - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#9 - def initialize(name:, kind:, location:, tags: T.unsafe(nil), deprecated: T.unsafe(nil), container_name: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#81 - def attributes; end - - # The name of the symbol containing this symbol. This information is for - # user interface purposes (e.g. to render a qualifier in the user interface - # if necessary). It can't be used to re-infer a hierarchy for the document - # symbols. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#77 - def container_name; end - - # Indicates if this symbol is deprecated. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#50 - def deprecated; end - - # The kind of this symbol. - # - # @return [SymbolKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#34 - def kind; end - - # The location of this symbol. The location's range is used by a tool - # to reveal the location in the editor. If the symbol is selected in the - # tool the range's start information is used to position the cursor. So - # the range usually spans more then the actual symbol's name and does - # normally include things like visibility modifiers. - # - # The range doesn't have to denote a node range in the sense of an abstract - # syntax tree. It can therefore not be used to re-construct a hierarchy of - # the symbols. - # - # @return [Location] - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#66 - def location; end - - # The name of this symbol. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#26 - def name; end - - # Tags for this symbol. - # - # @return [1[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#42 - def tags; end - - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#83 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#87 - def to_json(*args); end -end - -# Describe options to be used when registering for text document change events. -# -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#7 -class LanguageServer::Protocol::Interface::TextDocumentChangeRegistrationOptions - # @return [TextDocumentChangeRegistrationOptions] a new instance of TextDocumentChangeRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#8 - def initialize(document_selector:, sync_kind:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#35 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#22 - def document_selector; end - - # How documents are synced to the server. See TextDocumentSyncKind.Full - # and TextDocumentSyncKind.Incremental. - # - # @return [TextDocumentSyncKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#31 - def sync_kind; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#37 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#41 - def to_json(*args); end -end - -# Text document specific client capabilities. -# -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::TextDocumentClientCapabilities - # @return [TextDocumentClientCapabilities] a new instance of TextDocumentClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#8 - def initialize(synchronization: T.unsafe(nil), completion: T.unsafe(nil), hover: T.unsafe(nil), signature_help: T.unsafe(nil), declaration: T.unsafe(nil), definition: T.unsafe(nil), type_definition: T.unsafe(nil), implementation: T.unsafe(nil), references: T.unsafe(nil), document_highlight: T.unsafe(nil), document_symbol: T.unsafe(nil), code_action: T.unsafe(nil), code_lens: T.unsafe(nil), document_link: T.unsafe(nil), color_provider: T.unsafe(nil), formatting: T.unsafe(nil), range_formatting: T.unsafe(nil), on_type_formatting: T.unsafe(nil), rename: T.unsafe(nil), publish_diagnostics: T.unsafe(nil), folding_range: T.unsafe(nil), selection_range: T.unsafe(nil), linked_editing_range: T.unsafe(nil), call_hierarchy: T.unsafe(nil), semantic_tokens: T.unsafe(nil), moniker: T.unsafe(nil), type_hierarchy: T.unsafe(nil), inline_value: T.unsafe(nil), inlay_hint: T.unsafe(nil), diagnostic: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#285 - def attributes; end - - # Capabilities specific to the various call hierarchy requests. - # - # @return [CallHierarchyClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#233 - def call_hierarchy; end - - # Capabilities specific to the `textDocument/codeAction` request. - # - # @return [CodeActionClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#134 - def code_action; end - - # Capabilities specific to the `textDocument/codeLens` request. - # - # @return [CodeLensClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#142 - def code_lens; end - - # Capabilities specific to the `textDocument/documentColor` and the - # `textDocument/colorPresentation` request. - # - # @return [DocumentColorClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#159 - def color_provider; end - - # Capabilities specific to the `textDocument/completion` request. - # - # @return [CompletionClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#54 - def completion; end - - # Capabilities specific to the `textDocument/declaration` request. - # - # @return [DeclarationClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#78 - def declaration; end - - # Capabilities specific to the `textDocument/definition` request. - # - # @return [DefinitionClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#86 - def definition; end - - # Capabilities specific to the diagnostic pull model. - # - # @return [DiagnosticClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#281 - def diagnostic; end - - # Capabilities specific to the `textDocument/documentHighlight` request. - # - # @return [DocumentHighlightClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#118 - def document_highlight; end - - # Capabilities specific to the `textDocument/documentLink` request. - # - # @return [DocumentLinkClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#150 - def document_link; end - - # Capabilities specific to the `textDocument/documentSymbol` request. - # - # @return [DocumentSymbolClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#126 - def document_symbol; end - - # Capabilities specific to the `textDocument/foldingRange` request. - # - # @return [FoldingRangeClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#209 - def folding_range; end - - # Capabilities specific to the `textDocument/formatting` request. - # - # @return [DocumentFormattingClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#167 - def formatting; end - - # Capabilities specific to the `textDocument/hover` request. - # - # @return [HoverClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#62 - def hover; end - - # Capabilities specific to the `textDocument/implementation` request. - # - # @return [ImplementationClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#102 - def implementation; end - - # Capabilities specific to the `textDocument/inlayHint` request. - # - # @return [InlayHintClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#273 - def inlay_hint; end - - # Capabilities specific to the `textDocument/inlineValue` request. - # - # @return [InlineValueClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#265 - def inline_value; end - - # Capabilities specific to the `textDocument/linkedEditingRange` request. - # - # @return [LinkedEditingRangeClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#225 - def linked_editing_range; end - - # Capabilities specific to the `textDocument/moniker` request. - # - # @return [MonikerClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#249 - def moniker; end - - # request. - # Capabilities specific to the `textDocument/onTypeFormatting` request. - # - # @return [DocumentOnTypeFormattingClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#184 - def on_type_formatting; end - - # Capabilities specific to the `textDocument/publishDiagnostics` - # notification. - # - # @return [PublishDiagnosticsClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#201 - def publish_diagnostics; end - - # Capabilities specific to the `textDocument/rangeFormatting` request. - # - # @return [DocumentRangeFormattingClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#175 - def range_formatting; end - - # Capabilities specific to the `textDocument/references` request. - # - # @return [ReferenceClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#110 - def references; end - - # Capabilities specific to the `textDocument/rename` request. - # - # @return [RenameClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#192 - def rename; end - - # Capabilities specific to the `textDocument/selectionRange` request. - # - # @return [SelectionRangeClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#217 - def selection_range; end - - # Capabilities specific to the various semantic token requests. - # - # @return [SemanticTokensClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#241 - def semantic_tokens; end - - # Capabilities specific to the `textDocument/signatureHelp` request. - # - # @return [SignatureHelpClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#70 - def signature_help; end - - # @return [TextDocumentSyncClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#46 - def synchronization; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#287 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#291 - def to_json(*args); end - - # Capabilities specific to the `textDocument/typeDefinition` request. - # - # @return [TypeDefinitionClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#94 - def type_definition; end - - # Capabilities specific to the various type hierarchy requests. - # - # @return [TypeHierarchyClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#257 - def type_hierarchy; end -end - -# An event describing a change to a text document. If only a text is provided -# it is considered to be the full content of the document. -# -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#8 -class LanguageServer::Protocol::Interface::TextDocumentContentChangeEvent - # @return [TextDocumentContentChangeEvent] a new instance of TextDocumentContentChangeEvent - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#9 - def initialize(text:, range: T.unsafe(nil), range_length: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#47 - def attributes; end - - # The range of the document that changed. - # - # @return [Range, nil] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#23 - def range; end - - # The optional length of the range that got replaced. - # - # @return [number, nil] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#31 - def range_length; end - - # The new text for the provided range. - # - # --- OR --- - # - # The new text of the whole document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#43 - def text; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#49 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#53 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentEdit - # @return [TextDocumentEdit] a new instance of TextDocumentEdit - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#5 - def initialize(text_document:, edits:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#30 - def attributes; end - - # The edits to be applied. - # - # @return [(TextEdit | AnnotatedTextEdit)[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#26 - def edits; end - - # The text document to change. - # - # @return [OptionalVersionedTextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#18 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentIdentifier - # @return [TextDocumentIdentifier] a new instance of TextDocumentIdentifier - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#5 - def initialize(uri:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#21 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#27 - def to_json(*args); end - - # The text document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#17 - def uri; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentItem - # @return [TextDocumentItem] a new instance of TextDocumentItem - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#5 - def initialize(uri:, language_id:, version:, text:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#49 - def attributes; end - - # The text document's language identifier. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#28 - def language_id; end - - # The content of the opened text document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#45 - def text; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#55 - def to_json(*args); end - - # The text document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#20 - def uri; end - - # The version number of this document (it will increase after each - # change, including undo/redo). - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#37 - def version; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentPositionParams - # @return [TextDocumentPositionParams] a new instance of TextDocumentPositionParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#5 - def initialize(text_document:, position:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#30 - def attributes; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#26 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#18 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#36 - def to_json(*args); end -end - -# General text document registration options. -# -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#7 -class LanguageServer::Protocol::Interface::TextDocumentRegistrationOptions - # @return [TextDocumentRegistrationOptions] a new instance of TextDocumentRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#8 - def initialize(document_selector:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#25 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#21 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#27 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#31 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentSaveRegistrationOptions - # @return [TextDocumentSaveRegistrationOptions] a new instance of TextDocumentSaveRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#5 - def initialize(document_selector:, include_text: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#31 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#19 - def document_selector; end - - # The client is supposed to include the content on save. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#27 - def include_text; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#37 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentSyncClientCapabilities - # @return [TextDocumentSyncClientCapabilities] a new instance of TextDocumentSyncClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), will_save: T.unsafe(nil), will_save_wait_until: T.unsafe(nil), did_save: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#50 - def attributes; end - - # The client supports did save notifications. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#46 - def did_save; end - - # Whether text document synchronization supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#20 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#52 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#56 - def to_json(*args); end - - # The client supports sending will save notifications. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#28 - def will_save; end - - # The client supports sending a will save request and - # waits for a response providing text edits which will - # be applied to the document before it is saved. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#38 - def will_save_wait_until; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentSyncOptions - # @return [TextDocumentSyncOptions] a new instance of TextDocumentSyncOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#5 - def initialize(open_close: T.unsafe(nil), change: T.unsafe(nil), will_save: T.unsafe(nil), will_save_wait_until: T.unsafe(nil), save: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#66 - def attributes; end - - # Change notifications are sent to the server. See - # TextDocumentSyncKind.None, TextDocumentSyncKind.Full and - # TextDocumentSyncKind.Incremental. If omitted it defaults to - # TextDocumentSyncKind.None. - # - # @return [TextDocumentSyncKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#35 - def change; end - - # Open and close notifications are sent to the server. If omitted open - # close notifications should not be sent. - # Open and close notifications are sent to the server. If omitted open - # close notification should not be sent. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#24 - def open_close; end - - # If present save notifications are sent to the server. If omitted the - # notification should not be sent. - # - # @return [boolean | SaveOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#62 - def save; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#68 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#72 - def to_json(*args); end - - # If present will save notifications are sent to the server. If omitted - # the notification should not be sent. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#44 - def will_save; end - - # If present will save wait until requests are sent to the server. If - # omitted the request should not be sent. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#53 - def will_save_wait_until; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#4 -class LanguageServer::Protocol::Interface::TextEdit - # @return [TextEdit] a new instance of TextEdit - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#5 - def initialize(range:, new_text:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#32 - def attributes; end - - # The string to be inserted. For delete operations use an - # empty string. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#28 - def new_text; end - - # The range of the text document to be manipulated. To insert - # text into a document create a range where start === end. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#19 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#38 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::TypeDefinitionClientCapabilities - # @return [TypeDefinitionClientCapabilities] a new instance of TypeDefinitionClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), link_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#32 - def attributes; end - - # Whether implementation supports dynamic registration. If this is set to - # `true` the client supports the new `TypeDefinitionRegistrationOptions` - # return value for the corresponding server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#20 - def dynamic_registration; end - - # The client supports additional metadata in the form of definition links. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#28 - def link_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#38 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#4 -class LanguageServer::Protocol::Interface::TypeDefinitionOptions - # @return [TypeDefinitionOptions] a new instance of TypeDefinitionOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#4 -class LanguageServer::Protocol::Interface::TypeDefinitionParams - # @return [TypeDefinitionParams] a new instance of TypeDefinitionParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#45 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#4 -class LanguageServer::Protocol::Interface::TypeDefinitionRegistrationOptions - # @return [TypeDefinitionRegistrationOptions] a new instance of TypeDefinitionRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#4 -class LanguageServer::Protocol::Interface::TypeHierarchyItem - # @return [TypeHierarchyItem] a new instance of TypeHierarchyItem - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#5 - def initialize(name:, kind:, uri:, range:, selection_range:, tags: T.unsafe(nil), detail: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#90 - def attributes; end - - # A data entry field that is preserved between a type hierarchy prepare and - # supertypes or subtypes requests. It could also be used to identify the - # type hierarchy in the server, helping improve the performance on - # resolving supertypes and subtypes. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#86 - def data; end - - # More detail for this item, e.g. the signature of a function. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#48 - def detail; end - - # The kind of this item. - # - # @return [SymbolKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#32 - def kind; end - - # The name of this item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#24 - def name; end - - # The range enclosing this symbol not including leading/trailing whitespace - # but everything else, e.g. comments and code. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#65 - def range; end - - # The range that should be selected and revealed when this symbol is being - # picked, e.g. the name of a function. Must be contained by the - # [`range`](#TypeHierarchyItem.range). - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#75 - def selection_range; end - - # Tags for this item. - # - # @return [1[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#40 - def tags; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#92 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#96 - def to_json(*args); end - - # The resource identifier of this item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#56 - def uri; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#4 -class LanguageServer::Protocol::Interface::TypeHierarchyOptions - # @return [TypeHierarchyOptions] a new instance of TypeHierarchyOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#4 -class LanguageServer::Protocol::Interface::TypeHierarchyPrepareParams - # @return [TypeHierarchyPrepareParams] a new instance of TypeHierarchyPrepareParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#39 - def attributes; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#27 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#19 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#35 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#4 -class LanguageServer::Protocol::Interface::TypeHierarchyRegistrationOptions - # @return [TypeHierarchyRegistrationOptions] a new instance of TypeHierarchyRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#4 -class LanguageServer::Protocol::Interface::TypeHierarchySubtypesParams - # @return [TypeHierarchySubtypesParams] a new instance of TypeHierarchySubtypesParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#5 - def initialize(item:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#37 - def attributes; end - - # @return [TypeHierarchyItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#33 - def item; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#28 - def partial_result_token; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#43 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#4 -class LanguageServer::Protocol::Interface::TypeHierarchySupertypesParams - # @return [TypeHierarchySupertypesParams] a new instance of TypeHierarchySupertypesParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#5 - def initialize(item:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#37 - def attributes; end - - # @return [TypeHierarchyItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#33 - def item; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#28 - def partial_result_token; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#43 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#19 - def work_done_token; end -end - -# A diagnostic report indicating that the last returned -# report is still accurate. -# -# source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#8 -class LanguageServer::Protocol::Interface::UnchangedDocumentDiagnosticReport - # @return [UnchangedDocumentDiagnosticReport] a new instance of UnchangedDocumentDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#9 - def initialize(kind:, result_id:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#38 - def attributes; end - - # A document diagnostic report indicating - # no changes to the last result. A server can - # only return `unchanged` if result ids are - # provided. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#25 - def kind; end - - # A result id which will be sent on the next - # diagnostic request for the same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#34 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#44 - def to_json(*args); end -end - -# General parameters to unregister a capability. -# -# source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#7 -class LanguageServer::Protocol::Interface::Unregistration - # @return [Unregistration] a new instance of Unregistration - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#8 - def initialize(id:, method:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#34 - def attributes; end - - # The id used to unregister the request or notification. Usually an id - # provided during the register request. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#22 - def id; end - - # The method / capability to unregister for. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#30 - def method; end - - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#40 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#4 -class LanguageServer::Protocol::Interface::UnregistrationParams - # @return [UnregistrationParams] a new instance of UnregistrationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#5 - def initialize(unregisterations:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#24 - def to_json(*args); end - - # @return [Unregistration[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#14 - def unregisterations; end -end - -# A versioned notebook document identifier. -# -# source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#7 -class LanguageServer::Protocol::Interface::VersionedNotebookDocumentIdentifier - # @return [VersionedNotebookDocumentIdentifier] a new instance of VersionedNotebookDocumentIdentifier - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#8 - def initialize(version:, uri:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#33 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#39 - def to_json(*args); end - - # The notebook document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#29 - def uri; end - - # The version number of this notebook document. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#21 - def version; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#4 -class LanguageServer::Protocol::Interface::VersionedTextDocumentIdentifier - # @return [VersionedTextDocumentIdentifier] a new instance of VersionedTextDocumentIdentifier - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#5 - def initialize(uri:, version:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#33 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#39 - def to_json(*args); end - - # The text document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#18 - def uri; end - - # The version number of this document. - # - # The version number of a document will increase after each change, - # including undo/redo. The number doesn't need to be consecutive. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#29 - def version; end -end - -# The parameters send in a will save text document notification. -# -# source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#7 -class LanguageServer::Protocol::Interface::WillSaveTextDocumentParams - # @return [WillSaveTextDocumentParams] a new instance of WillSaveTextDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#8 - def initialize(text_document:, reason:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#33 - def attributes; end - - # The 'TextDocumentSaveReason'. - # - # @return [TextDocumentSaveReason] - # - # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#29 - def reason; end - - # The document that will be saved. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#21 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#39 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressBegin - # @return [WorkDoneProgressBegin] a new instance of WorkDoneProgressBegin - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#5 - def initialize(kind:, title:, cancellable: T.unsafe(nil), message: T.unsafe(nil), percentage: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#68 - def attributes; end - - # Controls if a cancel button should show to allow the user to cancel the - # long running operation. Clients that don't support cancellation are - # allowed to ignore the setting. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#39 - def cancellable; end - - # @return ["begin"] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#18 - def kind; end - - # Optional, more detailed associated progress message. Contains - # complementary information to the `title`. - # - # Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". - # If unset, the previous progress message (if any) is still valid. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#51 - def message; end - - # Optional progress percentage to display (value 100 is considered 100%). - # If not provided infinite progress is assumed and clients are allowed - # to ignore the `percentage` value in subsequent in report notifications. - # - # The value should be steadily rising. Clients are free to ignore values - # that are not following this rule. The value range is [0, 100] - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#64 - def percentage; end - - # Mandatory title of the progress operation. Used to briefly inform about - # the kind of operation being performed. - # - # Examples: "Indexing" or "Linking dependencies". - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#29 - def title; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#70 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#74 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressCancelParams - # @return [WorkDoneProgressCancelParams] a new instance of WorkDoneProgressCancelParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#5 - def initialize(token:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#21 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#27 - def to_json(*args); end - - # The token to be used to report progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#17 - def token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressCreateParams - # @return [WorkDoneProgressCreateParams] a new instance of WorkDoneProgressCreateParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#5 - def initialize(token:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#21 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#27 - def to_json(*args); end - - # The token to be used to report progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#17 - def token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressEnd - # @return [WorkDoneProgressEnd] a new instance of WorkDoneProgressEnd - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#5 - def initialize(kind:, message: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#28 - def attributes; end - - # @return ["end"] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#15 - def kind; end - - # Optional, a final message indicating to for example indicate the outcome - # of the operation. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#24 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#34 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressOptions - # @return [WorkDoneProgressOptions] a new instance of WorkDoneProgressOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressParams - # @return [WorkDoneProgressParams] a new instance of WorkDoneProgressParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#5 - def initialize(work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#21 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#27 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#17 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressReport - # @return [WorkDoneProgressReport] a new instance of WorkDoneProgressReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#5 - def initialize(kind:, cancellable: T.unsafe(nil), message: T.unsafe(nil), percentage: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#58 - def attributes; end - - # Controls enablement state of a cancel button. This property is only valid - # if a cancel button got requested in the `WorkDoneProgressBegin` payload. - # - # Clients that don't support cancellation or don't support control the - # button's enablement state are allowed to ignore the setting. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#29 - def cancellable; end - - # @return ["report"] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#17 - def kind; end - - # Optional, more detailed associated progress message. Contains - # complementary information to the `title`. - # - # Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". - # If unset, the previous progress message (if any) is still valid. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#41 - def message; end - - # Optional progress percentage to display (value 100 is considered 100%). - # If not provided infinite progress is assumed and clients are allowed - # to ignore the `percentage` value in subsequent in report notifications. - # - # The value should be steadily rising. Clients are free to ignore values - # that are not following this rule. The value range is [0, 100] - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#54 - def percentage; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#60 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#64 - def to_json(*args); end -end - -# Parameters of the workspace diagnostic request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceDiagnosticParams - # @return [WorkspaceDiagnosticParams] a new instance of WorkspaceDiagnosticParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#8 - def initialize(previous_result_ids:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil), identifier: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#53 - def attributes; end - - # The additional identifier provided during registration. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#40 - def identifier; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#32 - def partial_result_token; end - - # The currently known diagnostic reports with their - # previous result ids. - # - # @return [PreviousResultId[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#49 - def previous_result_ids; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#55 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#59 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#23 - def work_done_token; end -end - -# A workspace diagnostic report. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceDiagnosticReport - # @return [WorkspaceDiagnosticReport] a new instance of WorkspaceDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#8 - def initialize(items:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#21 - def attributes; end - - # @return [WorkspaceDocumentDiagnosticReport[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#17 - def items; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#27 - def to_json(*args); end -end - -# A partial result for a workspace diagnostic report. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceDiagnosticReportPartialResult - # @return [WorkspaceDiagnosticReportPartialResult] a new instance of WorkspaceDiagnosticReportPartialResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#8 - def initialize(items:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#21 - def attributes; end - - # @return [WorkspaceDocumentDiagnosticReport[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#17 - def items; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceEdit - # @return [WorkspaceEdit] a new instance of WorkspaceEdit - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#5 - def initialize(changes: T.unsafe(nil), document_changes: T.unsafe(nil), change_annotations: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#56 - def attributes; end - - # A map of change annotations that can be referenced in - # `AnnotatedTextEdit`s or create, rename and delete file / folder - # operations. - # - # Whether clients honor this property depends on the client capability - # `workspace.changeAnnotationSupport`. - # - # @return [{ [id: string]: ChangeAnnotation; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#52 - def change_annotations; end - - # Holds changes to existing resources. - # - # @return [{}] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#19 - def changes; end - - # Depending on the client capability - # `workspace.workspaceEdit.resourceOperations` document changes are either - # an array of `TextDocumentEdit`s to express changes to n different text - # documents where each text document edit addresses a specific version of - # a text document. Or it can contain above `TextDocumentEdit`s mixed with - # create, rename and delete file / folder operations. - # - # Whether a client supports versioned document edits is expressed via - # `workspace.workspaceEdit.documentChanges` client capability. - # - # If a client neither supports `documentChanges` nor - # `workspace.workspaceEdit.resourceOperations` then only plain `TextEdit`s - # using the `changes` property are supported. - # - # @return [TextDocumentEdit[] | (TextDocumentEdit | CreateFile | RenameFile | DeleteFile)[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#39 - def document_changes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#58 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#62 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceEditClientCapabilities - # @return [WorkspaceEditClientCapabilities] a new instance of WorkspaceEditClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#5 - def initialize(document_changes: T.unsafe(nil), resource_operations: T.unsafe(nil), failure_handling: T.unsafe(nil), normalizes_line_endings: T.unsafe(nil), change_annotation_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#63 - def attributes; end - - # Whether the client in general supports change annotations on text edits, - # create file, rename file and delete file changes. - # - # @return [{ groupsOnLabel?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#59 - def change_annotation_support; end - - # The client supports versioned document changes in `WorkspaceEdit`s - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#21 - def document_changes; end - - # The failure handling strategy of a client if applying the workspace edit - # fails. - # - # @return [FailureHandlingKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#39 - def failure_handling; end - - # Whether the client normalizes line endings to the client specific - # setting. - # If set to `true` the client will normalize line ending characters - # in a workspace edit to the client specific new line character(s). - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#50 - def normalizes_line_endings; end - - # The resource operations the client supports. Clients should at least - # support 'create', 'rename' and 'delete' files and folders. - # - # @return [ResourceOperationKind[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#30 - def resource_operations; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#65 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#69 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceFolder - # @return [WorkspaceFolder] a new instance of WorkspaceFolder - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#5 - def initialize(uri:, name:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#31 - def attributes; end - - # The name of the workspace folder. Used to refer to this - # workspace folder in the user interface. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#27 - def name; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#37 - def to_json(*args); end - - # The associated URI for this workspace folder. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#18 - def uri; end -end - -# The workspace folder change event. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceFoldersChangeEvent - # @return [WorkspaceFoldersChangeEvent] a new instance of WorkspaceFoldersChangeEvent - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#8 - def initialize(added:, removed:); end - - # The array of added workspace folders - # - # @return [WorkspaceFolder[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#21 - def added; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#33 - def attributes; end - - # The array of the removed workspace folders - # - # @return [WorkspaceFolder[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#29 - def removed; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#39 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceFoldersServerCapabilities - # @return [WorkspaceFoldersServerCapabilities] a new instance of WorkspaceFoldersServerCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#5 - def initialize(supported: T.unsafe(nil), change_notifications: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#36 - def attributes; end - - # Whether the server wants to receive workspace folder - # change notifications. - # - # If a string is provided, the string is treated as an ID - # under which the notification is registered on the client - # side. The ID can be used to unregister for these events - # using the `client/unregisterCapability` request. - # - # @return [string | boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#32 - def change_notifications; end - - # The server has support for workspace folders - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#18 - def supported; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#38 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#42 - def to_json(*args); end -end - -# A full document diagnostic report for a workspace diagnostic result. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceFullDocumentDiagnosticReport - # @return [WorkspaceFullDocumentDiagnosticReport] a new instance of WorkspaceFullDocumentDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#8 - def initialize(kind:, items:, uri:, version:, result_id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#63 - def attributes; end - - # The actual items. - # - # @return [Diagnostic[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#42 - def items; end - - # A full document diagnostic report. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#24 - def kind; end - - # An optional result id. If provided it will - # be sent on the next diagnostic request for the - # same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#34 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#65 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#69 - def to_json(*args); end - - # The URI for which diagnostic information is reported. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#50 - def uri; end - - # The version number for which the diagnostics are reported. - # If the document is not marked as open `null` can be provided. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#59 - def version; end -end - -# A special workspace symbol that supports locations without a range -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceSymbol - # @return [WorkspaceSymbol] a new instance of WorkspaceSymbol - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#8 - def initialize(name:, kind:, location:, tags: T.unsafe(nil), container_name: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#77 - def attributes; end - - # The name of the symbol containing this symbol. This information is for - # user interface purposes (e.g. to render a qualifier in the user interface - # if necessary). It can't be used to re-infer a hierarchy for the document - # symbols. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#52 - def container_name; end - - # A data entry field that is preserved on a workspace symbol between a - # workspace symbol request and a workspace symbol resolve request. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#73 - def data; end - - # The kind of this symbol. - # - # @return [SymbolKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#33 - def kind; end - - # The location of this symbol. Whether a server is allowed to - # return a location without a range depends on the client - # capability `workspace.symbol.resolveSupport`. - # - # See also `SymbolInformation.location`. - # - # @return [Location | { uri: string; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#64 - def location; end - - # The name of this symbol. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#25 - def name; end - - # Tags for this completion item. - # - # @return [1[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#41 - def tags; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#79 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#83 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceSymbolClientCapabilities - # @return [WorkspaceSymbolClientCapabilities] a new instance of WorkspaceSymbolClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), symbol_kind: T.unsafe(nil), tag_support: T.unsafe(nil), resolve_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#52 - def attributes; end - - # Symbol request supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#20 - def dynamic_registration; end - - # The client support partial workspace symbols. The client will send the - # request `workspaceSymbol/resolve` to the server to resolve additional - # properties. - # - # @return [{ properties: string[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#48 - def resolve_support; end - - # Specific capabilities for the `SymbolKind` in the `workspace/symbol` - # request. - # - # @return [{ valueSet?: SymbolKind[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#29 - def symbol_kind; end - - # The client supports tags on `SymbolInformation` and `WorkspaceSymbol`. - # Clients supporting tags have to handle unknown tags gracefully. - # - # @return [{ valueSet: 1[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#38 - def tag_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#54 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#58 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceSymbolOptions - # @return [WorkspaceSymbolOptions] a new instance of WorkspaceSymbolOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#28 - def attributes; end - - # The server provides support to resolve additional - # information for a workspace symbol. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#24 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#15 - def work_done_progress; end -end - -# The parameters of a Workspace Symbol Request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceSymbolParams - # @return [WorkspaceSymbolParams] a new instance of WorkspaceSymbolParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#8 - def initialize(query:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#44 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#31 - def partial_result_token; end - - # A query string to filter symbols by. Clients may send an empty - # string here to request all symbols. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#40 - def query; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#50 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#22 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceSymbolRegistrationOptions - # @return [WorkspaceSymbolRegistrationOptions] a new instance of WorkspaceSymbolRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#28 - def attributes; end - - # The server provides support to resolve additional - # information for a workspace symbol. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#24 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#15 - def work_done_progress; end -end - -# An unchanged document diagnostic report for a workspace diagnostic result. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceUnchangedDocumentDiagnosticReport - # @return [WorkspaceUnchangedDocumentDiagnosticReport] a new instance of WorkspaceUnchangedDocumentDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#8 - def initialize(kind:, result_id:, uri:, version:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#56 - def attributes; end - - # A document diagnostic report indicating - # no changes to the last result. A server can - # only return `unchanged` if result ids are - # provided. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#26 - def kind; end - - # A result id which will be sent on the next - # diagnostic request for the same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#35 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#58 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#62 - def to_json(*args); end - - # The URI for which diagnostic information is reported. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#43 - def uri; end - - # The version number for which the diagnostics are reported. - # If the document is not marked as open `null` can be provided. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#52 - def version; end -end - -# source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#7 -module LanguageServer::Protocol::Transport; end - -# source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#8 -module LanguageServer::Protocol::Transport::Io; end - -# source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#9 -class LanguageServer::Protocol::Transport::Io::Reader - # @return [Reader] a new instance of Reader - # - # source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#10 - def initialize(io); end - - # source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#24 - def close; end - - # source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#15 - def read(&block); end - - private - - # Returns the value of attribute io. - # - # source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#30 - def io; end -end - -# source://language_server-protocol//lib/language_server/protocol/transport/io/writer.rb#5 -class LanguageServer::Protocol::Transport::Io::Writer - # @return [Writer] a new instance of Writer - # - # source://language_server-protocol//lib/language_server/protocol/transport/io/writer.rb#8 - def initialize(io); end - - # source://language_server-protocol//lib/language_server/protocol/transport/io/writer.rb#32 - def close; end - - # Returns the value of attribute io. - # - # source://language_server-protocol//lib/language_server/protocol/transport/io/writer.rb#6 - def io; end - - # source://language_server-protocol//lib/language_server/protocol/transport/io/writer.rb#13 - def write(response); end -end - -# source://language_server-protocol//lib/language_server/protocol/transport/stdio/reader.rb#4 -module LanguageServer::Protocol::Transport::Stdio; end - -# source://language_server-protocol//lib/language_server/protocol/transport/stdio/reader.rb#5 -class LanguageServer::Protocol::Transport::Stdio::Reader < ::LanguageServer::Protocol::Transport::Io::Reader - # @return [Reader] a new instance of Reader - # - # source://language_server-protocol//lib/language_server/protocol/transport/stdio/reader.rb#6 - def initialize; end -end - -# source://language_server-protocol//lib/language_server/protocol/transport/stdio/writer.rb#5 -class LanguageServer::Protocol::Transport::Stdio::Writer < ::LanguageServer::Protocol::Transport::Io::Writer - # @return [Writer] a new instance of Writer - # - # source://language_server-protocol//lib/language_server/protocol/transport/stdio/writer.rb#6 - def initialize; end -end - -# source://language_server-protocol//lib/language_server/protocol/version.rb#3 -LanguageServer::Protocol::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi b/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi new file mode 100644 index 00000000..5f91e74f --- /dev/null +++ b/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `language_server-protocol` gem. +# Please instead update this file by running `bin/tapioca gem language_server-protocol`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/lint_roller@1.1.0.rbi b/sorbet/rbi/gems/lint_roller@1.1.0.rbi index ef073b8c..db4caf61 100644 --- a/sorbet/rbi/gems/lint_roller@1.1.0.rbi +++ b/sorbet/rbi/gems/lint_roller@1.1.0.rbi @@ -13,52 +13,77 @@ class LintRoller::About < ::Struct # Returns the value of attribute description # # @return [Object] the current value of description + # + # source://lint_roller//lib/lint_roller/about.rb#2 def description; end # Sets the attribute description # # @param value [Object] the value to set the attribute description to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/about.rb#2 def description=(_); end # Returns the value of attribute homepage # # @return [Object] the current value of homepage + # + # source://lint_roller//lib/lint_roller/about.rb#2 def homepage; end # Sets the attribute homepage # # @param value [Object] the value to set the attribute homepage to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/about.rb#2 def homepage=(_); end # Returns the value of attribute name # # @return [Object] the current value of name + # + # source://lint_roller//lib/lint_roller/about.rb#2 def name; end # Sets the attribute name # # @param value [Object] the value to set the attribute name to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/about.rb#2 def name=(_); end # Returns the value of attribute version # # @return [Object] the current value of version + # + # source://lint_roller//lib/lint_roller/about.rb#2 def version; end # Sets the attribute version # # @param value [Object] the value to set the attribute version to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/about.rb#2 def version=(_); end class << self + # source://lint_roller//lib/lint_roller/about.rb#2 def [](*_arg0); end + + # source://lint_roller//lib/lint_roller/about.rb#2 def inspect; end + + # source://lint_roller//lib/lint_roller/about.rb#2 def keyword_init?; end + + # source://lint_roller//lib/lint_roller/about.rb#2 def members; end + + # source://lint_roller//lib/lint_roller/about.rb#2 def new(*_arg0); end end end @@ -68,74 +93,107 @@ class LintRoller::Context < ::Struct # Returns the value of attribute engine # # @return [Object] the current value of engine + # + # source://lint_roller//lib/lint_roller/context.rb#2 def engine; end # Sets the attribute engine # # @param value [Object] the value to set the attribute engine to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/context.rb#2 def engine=(_); end # Returns the value of attribute engine_version # # @return [Object] the current value of engine_version + # + # source://lint_roller//lib/lint_roller/context.rb#2 def engine_version; end # Sets the attribute engine_version # # @param value [Object] the value to set the attribute engine_version to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/context.rb#2 def engine_version=(_); end # Returns the value of attribute rule_format # # @return [Object] the current value of rule_format + # + # source://lint_roller//lib/lint_roller/context.rb#2 def rule_format; end # Sets the attribute rule_format # # @param value [Object] the value to set the attribute rule_format to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/context.rb#2 def rule_format=(_); end # Returns the value of attribute runner # # @return [Object] the current value of runner + # + # source://lint_roller//lib/lint_roller/context.rb#2 def runner; end # Sets the attribute runner # # @param value [Object] the value to set the attribute runner to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/context.rb#2 def runner=(_); end # Returns the value of attribute runner_version # # @return [Object] the current value of runner_version + # + # source://lint_roller//lib/lint_roller/context.rb#2 def runner_version; end # Sets the attribute runner_version # # @param value [Object] the value to set the attribute runner_version to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/context.rb#2 def runner_version=(_); end # Returns the value of attribute target_ruby_version # # @return [Object] the current value of target_ruby_version + # + # source://lint_roller//lib/lint_roller/context.rb#2 def target_ruby_version; end # Sets the attribute target_ruby_version # # @param value [Object] the value to set the attribute target_ruby_version to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/context.rb#2 def target_ruby_version=(_); end class << self + # source://lint_roller//lib/lint_roller/context.rb#2 def [](*_arg0); end + + # source://lint_roller//lib/lint_roller/context.rb#2 def inspect; end + + # source://lint_roller//lib/lint_roller/context.rb#2 def keyword_init?; end + + # source://lint_roller//lib/lint_roller/context.rb#2 def members; end + + # source://lint_roller//lib/lint_roller/context.rb#2 def new(*_arg0); end end end @@ -177,52 +235,77 @@ class LintRoller::Rules < ::Struct # Returns the value of attribute config_format # # @return [Object] the current value of config_format + # + # source://lint_roller//lib/lint_roller/rules.rb#2 def config_format; end # Sets the attribute config_format # # @param value [Object] the value to set the attribute config_format to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/rules.rb#2 def config_format=(_); end # Returns the value of attribute error # # @return [Object] the current value of error + # + # source://lint_roller//lib/lint_roller/rules.rb#2 def error; end # Sets the attribute error # # @param value [Object] the value to set the attribute error to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/rules.rb#2 def error=(_); end # Returns the value of attribute type # # @return [Object] the current value of type + # + # source://lint_roller//lib/lint_roller/rules.rb#2 def type; end # Sets the attribute type # # @param value [Object] the value to set the attribute type to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/rules.rb#2 def type=(_); end # Returns the value of attribute value # # @return [Object] the current value of value + # + # source://lint_roller//lib/lint_roller/rules.rb#2 def value; end # Sets the attribute value # # @param value [Object] the value to set the attribute value to. # @return [Object] the newly set value + # + # source://lint_roller//lib/lint_roller/rules.rb#2 def value=(_); end class << self + # source://lint_roller//lib/lint_roller/rules.rb#2 def [](*_arg0); end + + # source://lint_roller//lib/lint_roller/rules.rb#2 def inspect; end + + # source://lint_roller//lib/lint_roller/rules.rb#2 def keyword_init?; end + + # source://lint_roller//lib/lint_roller/rules.rb#2 def members; end + + # source://lint_roller//lib/lint_roller/rules.rb#2 def new(*_arg0); end end end diff --git a/sorbet/rbi/gems/logger@1.7.0.rbi b/sorbet/rbi/gems/logger@1.7.0.rbi index a616dbdd..a17ebf0f 100644 --- a/sorbet/rbi/gems/logger@1.7.0.rbi +++ b/sorbet/rbi/gems/logger@1.7.0.rbi @@ -692,7 +692,7 @@ class Logger # - #fatal. # - #unknown. # - # source://logger//lib/logger.rb#675 + # source://logger//lib/logger.rb#695 def log(severity, message = T.unsafe(nil), progname = T.unsafe(nil)); end # Program name to include in log messages. @@ -733,7 +733,7 @@ class Logger # Logging severity threshold (e.g. Logger::INFO). # - # source://logger//lib/logger.rb#383 + # source://logger//lib/logger.rb#475 def sev_threshold; end # Sets the log level; returns +severity+. @@ -748,7 +748,7 @@ class Logger # # Logger#sev_threshold= is an alias for Logger#level=. # - # source://logger//lib/logger.rb#399 + # source://logger//lib/logger.rb#476 def sev_threshold=(severity); end # Equivalent to calling #add with severity Logger::UNKNOWN. diff --git a/sorbet/rbi/gems/lograge@0.14.0.rbi b/sorbet/rbi/gems/lograge@0.14.0.rbi index 9f73a7f5..f5a9d17c 100644 --- a/sorbet/rbi/gems/lograge@0.14.0.rbi +++ b/sorbet/rbi/gems/lograge@0.14.0.rbi @@ -90,7 +90,7 @@ module Lograge # source://lograge//lib/lograge.rb#90 def ignore_nothing; end - # source://lograge//lib/lograge.rb#82 + # source://lograge//lib/lograge.rb#28 def ignore_tests; end # source://lograge//lib/lograge.rb#197 @@ -200,7 +200,7 @@ module Lograge # source://lograge//lib/lograge.rb#90 def ignore_nothing; end - # source://lograge//lib/lograge.rb#82 + # source://lograge//lib/lograge.rb#28 def ignore_tests; end # source://lograge//lib/lograge.rb#28 @@ -501,7 +501,7 @@ class Lograge::LogSubscribers::Base < ::ActiveSupport::LogSubscriber # source://lograge//lib/lograge/log_subscribers/base.rb#41 def extract_runtimes(*_arg); end - # source://lograge//lib/lograge/log_subscribers/base.rb#44 + # source://lograge//lib/lograge/log_subscribers/base.rb#41 def extract_status(payload); end # source://lograge//lib/lograge/log_subscribers/base.rb#41 diff --git a/sorbet/rbi/gems/loofah@2.24.0.rbi b/sorbet/rbi/gems/loofah@2.24.1.rbi similarity index 97% rename from sorbet/rbi/gems/loofah@2.24.0.rbi rename to sorbet/rbi/gems/loofah@2.24.1.rbi index 08fe8afd..2038bcd4 100644 --- a/sorbet/rbi/gems/loofah@2.24.0.rbi +++ b/sorbet/rbi/gems/loofah@2.24.1.rbi @@ -39,14 +39,14 @@ module Loofah # # This method accepts the same parameters as Nokogiri::HTML4::Document.parse # - # source://loofah//lib/loofah.rb#76 + # source://loofah//lib/loofah.rb#139 def document(*args, &block); end # Shortcut for Loofah::HTML4::DocumentFragment.parse(*args, &block) # # This method accepts the same parameters as Nokogiri::HTML4::DocumentFragment.parse # - # source://loofah//lib/loofah.rb#83 + # source://loofah//lib/loofah.rb#140 def fragment(*args, &block); end # Shortcut for Loofah::HTML4::Document.parse(*args, &block) @@ -81,12 +81,12 @@ module Loofah # Shortcut for Loofah::HTML4::Document.parse(string_or_io).scrub!(method) # - # source://loofah//lib/loofah.rb#88 + # source://loofah//lib/loofah.rb#141 def scrub_document(string_or_io, method); end # Shortcut for Loofah::HTML4::DocumentFragment.parse(string_or_io).scrub!(method) # - # source://loofah//lib/loofah.rb#93 + # source://loofah//lib/loofah.rb#142 def scrub_fragment(string_or_io, method); end # Shortcut for Loofah::HTML4::Document.parse(string_or_io).scrub!(method) @@ -337,70 +337,70 @@ Loofah::HTML5::SafeList::TAGS_SAFE_WITH_LIBXML2 = T.let(T.unsafe(nil), Set) # source://loofah//lib/loofah/html5/safelist.rb#1034 Loofah::HTML5::SafeList::VOID_ELEMENTS = T.let(T.unsafe(nil), Set) -# source://loofah//lib/loofah/html5/scrub.rb#8 +# source://loofah//lib/loofah/html5/scrub.rb#9 module Loofah::HTML5::Scrub class << self # @return [Boolean] # - # source://loofah//lib/loofah/html5/scrub.rb#18 + # source://loofah//lib/loofah/html5/scrub.rb#19 def allowed_element?(element_name); end - # source://loofah//lib/loofah/html5/scrub.rb#192 + # source://loofah//lib/loofah/html5/scrub.rb#193 def cdata_escape(node); end # @return [Boolean] # - # source://loofah//lib/loofah/html5/scrub.rb#187 + # source://loofah//lib/loofah/html5/scrub.rb#188 def cdata_needs_escaping?(node); end - # source://loofah//lib/loofah/html5/scrub.rb#207 + # source://loofah//lib/loofah/html5/scrub.rb#208 def escape_tags(string); end # libxml2 >= 2.9.2 fails to escape comments within some attributes. # # see comments about CVE-2018-8048 within the tests for more information # - # source://loofah//lib/loofah/html5/scrub.rb#166 + # source://loofah//lib/loofah/html5/scrub.rb#167 def force_correct_attribute_escaping!(node); end - # source://loofah//lib/loofah/html5/scrub.rb#123 + # source://loofah//lib/loofah/html5/scrub.rb#124 def scrub_attribute_that_allows_local_ref(attr_node); end # alternative implementation of the html5lib attribute scrubbing algorithm # - # source://loofah//lib/loofah/html5/scrub.rb#23 + # source://loofah//lib/loofah/html5/scrub.rb#24 def scrub_attributes(node); end - # source://loofah//lib/loofah/html5/scrub.rb#72 + # source://loofah//lib/loofah/html5/scrub.rb#73 def scrub_css(style); end - # source://loofah//lib/loofah/html5/scrub.rb#67 + # source://loofah//lib/loofah/html5/scrub.rb#68 def scrub_css_attribute(node); end - # source://loofah//lib/loofah/html5/scrub.rb#142 + # source://loofah//lib/loofah/html5/scrub.rb#143 def scrub_uri_attribute(attr_node); end end end -# source://loofah//lib/loofah/html5/scrub.rb#9 +# source://loofah//lib/loofah/html5/scrub.rb#10 Loofah::HTML5::Scrub::CONTROL_CHARACTERS = T.let(T.unsafe(nil), Regexp) -# source://loofah//lib/loofah/html5/scrub.rb#11 +# source://loofah//lib/loofah/html5/scrub.rb#12 Loofah::HTML5::Scrub::CRASS_SEMICOLON = T.let(T.unsafe(nil), Hash) -# source://loofah//lib/loofah/html5/scrub.rb#12 +# source://loofah//lib/loofah/html5/scrub.rb#13 Loofah::HTML5::Scrub::CSS_IMPORTANT = T.let(T.unsafe(nil), String) -# source://loofah//lib/loofah/html5/scrub.rb#10 +# source://loofah//lib/loofah/html5/scrub.rb#11 Loofah::HTML5::Scrub::CSS_KEYWORDISH = T.let(T.unsafe(nil), Regexp) -# source://loofah//lib/loofah/html5/scrub.rb#14 +# source://loofah//lib/loofah/html5/scrub.rb#15 Loofah::HTML5::Scrub::CSS_PROPERTY_STRING_WITHOUT_EMBEDDED_QUOTES = T.let(T.unsafe(nil), Regexp) -# source://loofah//lib/loofah/html5/scrub.rb#13 +# source://loofah//lib/loofah/html5/scrub.rb#14 Loofah::HTML5::Scrub::CSS_WHITESPACE = T.let(T.unsafe(nil), String) -# source://loofah//lib/loofah/html5/scrub.rb#15 +# source://loofah//lib/loofah/html5/scrub.rb#16 Loofah::HTML5::Scrub::DATA_ATTRIBUTE_NAME = T.let(T.unsafe(nil), Regexp) # source://loofah//lib/loofah/html5/safelist.rb#1051 @@ -446,7 +446,7 @@ end module Loofah::HtmlFragmentBehavior mixes_in_class_methods ::Loofah::HtmlFragmentBehavior::ClassMethods - # source://loofah//lib/loofah/concerns.rb#197 + # source://loofah//lib/loofah/concerns.rb#201 def serialize; end # source://loofah//lib/loofah/concerns.rb#203 @@ -1014,7 +1014,7 @@ module Loofah::TextBehavior # # decidedly not ok for browser: # frag.text(:encode_special_chars => false) # => "" # - # source://loofah//lib/loofah/concerns.rb#94 + # source://loofah//lib/loofah/concerns.rb#107 def inner_text(options = T.unsafe(nil)); end # Returns a plain-text version of the markup contained by the document, with HTML entities @@ -1058,7 +1058,7 @@ module Loofah::TextBehavior # # decidedly not ok for browser: # frag.text(:encode_special_chars => false) # => "" # - # source://loofah//lib/loofah/concerns.rb#94 + # source://loofah//lib/loofah/concerns.rb#108 def to_str(options = T.unsafe(nil)); end # Returns a plain-text version of the markup contained by the fragment, with HTML entities diff --git a/sorbet/rbi/gems/mail@2.8.1.rbi b/sorbet/rbi/gems/mail@2.8.1.rbi index a797d992..30657af8 100644 --- a/sorbet/rbi/gems/mail@2.8.1.rbi +++ b/sorbet/rbi/gems/mail@2.8.1.rbi @@ -821,29 +821,40 @@ Mail::CcField::NAME = T.let(T.unsafe(nil), String) # source://mail//lib/mail/check_delivery_params.rb#5 module Mail::CheckDeliveryParams class << self - # source://mail//lib/mail/check_delivery_params.rb#10 + # source://mail//lib/mail/check_delivery_params.rb#16 def _deprecated_check(mail); end - # source://mail//lib/mail/check_delivery_params.rb#32 + # source://mail//lib/mail/check_delivery_params.rb#36 def _deprecated_check_addr(addr_name, addr); end - # source://mail//lib/mail/check_delivery_params.rb#18 + # source://mail//lib/mail/check_delivery_params.rb#22 def _deprecated_check_from(addr); end - # source://mail//lib/mail/check_delivery_params.rb#53 + # source://mail//lib/mail/check_delivery_params.rb#62 def _deprecated_check_message(message); end - # source://mail//lib/mail/check_delivery_params.rb#24 + # source://mail//lib/mail/check_delivery_params.rb#30 def _deprecated_check_to(addrs); end - # source://mail//lib/mail/check_delivery_params.rb#38 + # source://mail//lib/mail/check_delivery_params.rb#51 def _deprecated_validate_smtp_addr(addr); end + # source://mail//lib/mail/check_delivery_params.rb#10 def check(*args, **_arg1, &block); end + + # source://mail//lib/mail/check_delivery_params.rb#32 def check_addr(*args, **_arg1, &block); end + + # source://mail//lib/mail/check_delivery_params.rb#18 def check_from(*args, **_arg1, &block); end + + # source://mail//lib/mail/check_delivery_params.rb#53 def check_message(*args, **_arg1, &block); end + + # source://mail//lib/mail/check_delivery_params.rb#24 def check_to(*args, **_arg1, &block); end + + # source://mail//lib/mail/check_delivery_params.rb#38 def validate_smtp_addr(*args, **_arg1, &block); end end end @@ -1166,7 +1177,10 @@ class Mail::Configuration class << self private + # source://mail//lib/mail/configuration.rb#16 def allocate; end + + # source://mail//lib/mail/configuration.rb#16 def new(*_arg0); end end end @@ -1519,7 +1533,7 @@ class Mail::ContentTypeField < ::Mail::NamedStructuredField # source://mail//lib/mail/fields/content_type_field.rb#47 def attempt_to_clean; end - # source://mail//lib/mail/fields/content_type_field.rb#63 + # source://mail//lib/mail/fields/content_type_field.rb#66 def content_type; end # source://mail//lib/mail/fields/content_type_field.rb#101 @@ -2318,7 +2332,7 @@ class Mail::Field::SyntaxError < ::Mail::Field::FieldError; end # # source://mail//lib/mail/field_list.rb#8 class Mail::FieldList < ::Array - # source://mail//lib/mail/field_list.rb#22 + # source://mail//lib/mail/field_list.rb#29 def <<(field); end # source://mail//lib/mail/field_list.rb#22 @@ -2804,7 +2818,7 @@ class Mail::IndifferentHash < ::Hash # # @return [Boolean] # - # source://mail//lib/mail/indifferent_hash.rb#71 + # source://mail//lib/mail/indifferent_hash.rb#76 def has_key?(key); end # Checks the hash for a key matching the argument passed in: @@ -2816,7 +2830,7 @@ class Mail::IndifferentHash < ::Hash # # @return [Boolean] # - # source://mail//lib/mail/indifferent_hash.rb#71 + # source://mail//lib/mail/indifferent_hash.rb#75 def include?(key); end # Checks the hash for a key matching the argument passed in: @@ -2840,7 +2854,7 @@ class Mail::IndifferentHash < ::Hash # # @return [Boolean] # - # source://mail//lib/mail/indifferent_hash.rb#71 + # source://mail//lib/mail/indifferent_hash.rb#77 def member?(key); end # Merges the instantized and the specified hashes together, giving precedence to the values from the second hash @@ -2859,10 +2873,13 @@ class Mail::IndifferentHash < ::Hash # # hash_1.update(hash_2) # => {"key"=>"New Value!"} # - # source://mail//lib/mail/indifferent_hash.rb#57 + # source://mail//lib/mail/indifferent_hash.rb#62 def merge!(other_hash); end + # source://mail//lib/mail/indifferent_hash.rb#34 def regular_update(*_arg0); end + + # source://mail//lib/mail/indifferent_hash.rb#33 def regular_writer(_arg0, _arg1); end # Performs the opposite of merge, with the keys and values from the first hash taking precedence over the second. @@ -2879,7 +2896,7 @@ class Mail::IndifferentHash < ::Hash # hash = HashWithIndifferentAccess.new # hash[:key] = "value" # - # source://mail//lib/mail/indifferent_hash.rb#41 + # source://mail//lib/mail/indifferent_hash.rb#45 def store(key, value); end # source://mail//lib/mail/indifferent_hash.rb#122 @@ -5210,7 +5227,7 @@ class Mail::Multibyte::Chars # Example: # Mail::Multibyte.mb_chars('こんにちは').slice(2..3).to_s # => "にち" # - # source://mail//lib/mail/multibyte/chars.rb#148 + # source://mail//lib/mail/multibyte/chars.rb#169 def [](*args); end # Like String#[]=, except instead of byte offsets you specify character offsets. @@ -5367,7 +5384,7 @@ class Mail::Multibyte::Chars # Mail::Multibyte.mb_chars("ÉL QUE SE ENTERÓ").titleize # => "Él Que Se Enteró" # Mail::Multibyte.mb_chars("日本語").titleize # => "日本語" # - # source://mail//lib/mail/multibyte/chars.rb#210 + # source://mail//lib/mail/multibyte/chars.rb#213 def titlecase; end # Capitalizes the first letter of every word, when possible. @@ -5381,12 +5398,12 @@ class Mail::Multibyte::Chars # Returns the value of attribute wrapped_string. # - # source://mail//lib/mail/multibyte/chars.rb#37 + # source://mail//lib/mail/multibyte/chars.rb#38 def to_s; end # Returns the value of attribute wrapped_string. # - # source://mail//lib/mail/multibyte/chars.rb#37 + # source://mail//lib/mail/multibyte/chars.rb#39 def to_str; end # Convert characters in the string to uppercase. @@ -5693,31 +5710,31 @@ class Mail::Multibyte::Unicode::UnicodeDatabase # source://mail//lib/mail/multibyte/unicode.rb#335 def initialize; end - # source://mail//lib/mail/multibyte/unicode.rb#346 + # source://mail//lib/mail/multibyte/unicode.rb#345 def boundary; end # source://mail//lib/mail/multibyte/unicode.rb#333 def boundary=(_arg0); end - # source://mail//lib/mail/multibyte/unicode.rb#346 + # source://mail//lib/mail/multibyte/unicode.rb#345 def codepoints; end # source://mail//lib/mail/multibyte/unicode.rb#333 def codepoints=(_arg0); end - # source://mail//lib/mail/multibyte/unicode.rb#346 + # source://mail//lib/mail/multibyte/unicode.rb#345 def composition_exclusion; end # source://mail//lib/mail/multibyte/unicode.rb#333 def composition_exclusion=(_arg0); end - # source://mail//lib/mail/multibyte/unicode.rb#346 + # source://mail//lib/mail/multibyte/unicode.rb#345 def composition_map; end # source://mail//lib/mail/multibyte/unicode.rb#333 def composition_map=(_arg0); end - # source://mail//lib/mail/multibyte/unicode.rb#346 + # source://mail//lib/mail/multibyte/unicode.rb#345 def cp1252; end # source://mail//lib/mail/multibyte/unicode.rb#333 @@ -5989,46 +6006,106 @@ end # source://mail//lib/mail/parsers/address_lists_parser.rb#13 class Mail::Parsers::AddressListsParser::AddressListStruct < ::Struct + # source://mail//lib/mail/parsers/address_lists_parser.rb#13 def addresses; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#13 def addresses=(_); end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#13 def error; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#13 def error=(_); end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#13 def group_names; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#13 def group_names=(_); end class << self + # source://mail//lib/mail/parsers/address_lists_parser.rb#13 def [](*_arg0); end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#13 def inspect; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#13 def keyword_init?; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#13 def members; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#13 def new(*_arg0); end end end # source://mail//lib/mail/parsers/address_lists_parser.rb#14 class Mail::Parsers::AddressListsParser::AddressStruct < ::Struct + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def comments; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def comments=(_); end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def display_name; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def display_name=(_); end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def domain; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def domain=(_); end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def error; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def error=(_); end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def group; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def group=(_); end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def local; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def local=(_); end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def obs_domain_list; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def obs_domain_list=(_); end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def raw; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def raw=(_); end class << self + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def [](*_arg0); end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def inspect; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def keyword_init?; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def members; end + + # source://mail//lib/mail/parsers/address_lists_parser.rb#14 def new(*_arg0); end end end @@ -6119,18 +6196,38 @@ end # source://mail//lib/mail/parsers/content_disposition_parser.rb#13 class Mail::Parsers::ContentDispositionParser::ContentDispositionStruct < ::Struct + # source://mail//lib/mail/parsers/content_disposition_parser.rb#13 def disposition_type; end + + # source://mail//lib/mail/parsers/content_disposition_parser.rb#13 def disposition_type=(_); end + + # source://mail//lib/mail/parsers/content_disposition_parser.rb#13 def error; end + + # source://mail//lib/mail/parsers/content_disposition_parser.rb#13 def error=(_); end + + # source://mail//lib/mail/parsers/content_disposition_parser.rb#13 def parameters; end + + # source://mail//lib/mail/parsers/content_disposition_parser.rb#13 def parameters=(_); end class << self + # source://mail//lib/mail/parsers/content_disposition_parser.rb#13 def [](*_arg0); end + + # source://mail//lib/mail/parsers/content_disposition_parser.rb#13 def inspect; end + + # source://mail//lib/mail/parsers/content_disposition_parser.rb#13 def keyword_init?; end + + # source://mail//lib/mail/parsers/content_disposition_parser.rb#13 def members; end + + # source://mail//lib/mail/parsers/content_disposition_parser.rb#13 def new(*_arg0); end end end @@ -6221,16 +6318,32 @@ end # source://mail//lib/mail/parsers/content_location_parser.rb#13 class Mail::Parsers::ContentLocationParser::ContentLocationStruct < ::Struct + # source://mail//lib/mail/parsers/content_location_parser.rb#13 def error; end + + # source://mail//lib/mail/parsers/content_location_parser.rb#13 def error=(_); end + + # source://mail//lib/mail/parsers/content_location_parser.rb#13 def location; end + + # source://mail//lib/mail/parsers/content_location_parser.rb#13 def location=(_); end class << self + # source://mail//lib/mail/parsers/content_location_parser.rb#13 def [](*_arg0); end + + # source://mail//lib/mail/parsers/content_location_parser.rb#13 def inspect; end + + # source://mail//lib/mail/parsers/content_location_parser.rb#13 def keyword_init?; end + + # source://mail//lib/mail/parsers/content_location_parser.rb#13 def members; end + + # source://mail//lib/mail/parsers/content_location_parser.rb#13 def new(*_arg0); end end end @@ -6321,16 +6434,32 @@ end # source://mail//lib/mail/parsers/content_transfer_encoding_parser.rb#13 class Mail::Parsers::ContentTransferEncodingParser::ContentTransferEncodingStruct < ::Struct + # source://mail//lib/mail/parsers/content_transfer_encoding_parser.rb#13 def encoding; end + + # source://mail//lib/mail/parsers/content_transfer_encoding_parser.rb#13 def encoding=(_); end + + # source://mail//lib/mail/parsers/content_transfer_encoding_parser.rb#13 def error; end + + # source://mail//lib/mail/parsers/content_transfer_encoding_parser.rb#13 def error=(_); end class << self + # source://mail//lib/mail/parsers/content_transfer_encoding_parser.rb#13 def [](*_arg0); end + + # source://mail//lib/mail/parsers/content_transfer_encoding_parser.rb#13 def inspect; end + + # source://mail//lib/mail/parsers/content_transfer_encoding_parser.rb#13 def keyword_init?; end + + # source://mail//lib/mail/parsers/content_transfer_encoding_parser.rb#13 def members; end + + # source://mail//lib/mail/parsers/content_transfer_encoding_parser.rb#13 def new(*_arg0); end end end @@ -6421,20 +6550,44 @@ end # source://mail//lib/mail/parsers/content_type_parser.rb#13 class Mail::Parsers::ContentTypeParser::ContentTypeStruct < ::Struct + # source://mail//lib/mail/parsers/content_type_parser.rb#13 def error; end + + # source://mail//lib/mail/parsers/content_type_parser.rb#13 def error=(_); end + + # source://mail//lib/mail/parsers/content_type_parser.rb#13 def main_type; end + + # source://mail//lib/mail/parsers/content_type_parser.rb#13 def main_type=(_); end + + # source://mail//lib/mail/parsers/content_type_parser.rb#13 def parameters; end + + # source://mail//lib/mail/parsers/content_type_parser.rb#13 def parameters=(_); end + + # source://mail//lib/mail/parsers/content_type_parser.rb#13 def sub_type; end + + # source://mail//lib/mail/parsers/content_type_parser.rb#13 def sub_type=(_); end class << self + # source://mail//lib/mail/parsers/content_type_parser.rb#13 def [](*_arg0); end + + # source://mail//lib/mail/parsers/content_type_parser.rb#13 def inspect; end + + # source://mail//lib/mail/parsers/content_type_parser.rb#13 def keyword_init?; end + + # source://mail//lib/mail/parsers/content_type_parser.rb#13 def members; end + + # source://mail//lib/mail/parsers/content_type_parser.rb#13 def new(*_arg0); end end end @@ -6525,18 +6678,38 @@ end # source://mail//lib/mail/parsers/date_time_parser.rb#13 class Mail::Parsers::DateTimeParser::DateTimeStruct < ::Struct + # source://mail//lib/mail/parsers/date_time_parser.rb#13 def date_string; end + + # source://mail//lib/mail/parsers/date_time_parser.rb#13 def date_string=(_); end + + # source://mail//lib/mail/parsers/date_time_parser.rb#13 def error; end + + # source://mail//lib/mail/parsers/date_time_parser.rb#13 def error=(_); end + + # source://mail//lib/mail/parsers/date_time_parser.rb#13 def time_string; end + + # source://mail//lib/mail/parsers/date_time_parser.rb#13 def time_string=(_); end class << self + # source://mail//lib/mail/parsers/date_time_parser.rb#13 def [](*_arg0); end + + # source://mail//lib/mail/parsers/date_time_parser.rb#13 def inspect; end + + # source://mail//lib/mail/parsers/date_time_parser.rb#13 def keyword_init?; end + + # source://mail//lib/mail/parsers/date_time_parser.rb#13 def members; end + + # source://mail//lib/mail/parsers/date_time_parser.rb#13 def new(*_arg0); end end end @@ -6627,18 +6800,38 @@ end # source://mail//lib/mail/parsers/envelope_from_parser.rb#13 class Mail::Parsers::EnvelopeFromParser::EnvelopeFromStruct < ::Struct + # source://mail//lib/mail/parsers/envelope_from_parser.rb#13 def address; end + + # source://mail//lib/mail/parsers/envelope_from_parser.rb#13 def address=(_); end + + # source://mail//lib/mail/parsers/envelope_from_parser.rb#13 def ctime_date; end + + # source://mail//lib/mail/parsers/envelope_from_parser.rb#13 def ctime_date=(_); end + + # source://mail//lib/mail/parsers/envelope_from_parser.rb#13 def error; end + + # source://mail//lib/mail/parsers/envelope_from_parser.rb#13 def error=(_); end class << self + # source://mail//lib/mail/parsers/envelope_from_parser.rb#13 def [](*_arg0); end + + # source://mail//lib/mail/parsers/envelope_from_parser.rb#13 def inspect; end + + # source://mail//lib/mail/parsers/envelope_from_parser.rb#13 def keyword_init?; end + + # source://mail//lib/mail/parsers/envelope_from_parser.rb#13 def members; end + + # source://mail//lib/mail/parsers/envelope_from_parser.rb#13 def new(*_arg0); end end end @@ -6729,16 +6922,32 @@ end # source://mail//lib/mail/parsers/message_ids_parser.rb#13 class Mail::Parsers::MessageIdsParser::MessageIdsStruct < ::Struct + # source://mail//lib/mail/parsers/message_ids_parser.rb#13 def error; end + + # source://mail//lib/mail/parsers/message_ids_parser.rb#13 def error=(_); end + + # source://mail//lib/mail/parsers/message_ids_parser.rb#13 def message_ids; end + + # source://mail//lib/mail/parsers/message_ids_parser.rb#13 def message_ids=(_); end class << self + # source://mail//lib/mail/parsers/message_ids_parser.rb#13 def [](*_arg0); end + + # source://mail//lib/mail/parsers/message_ids_parser.rb#13 def inspect; end + + # source://mail//lib/mail/parsers/message_ids_parser.rb#13 def keyword_init?; end + + # source://mail//lib/mail/parsers/message_ids_parser.rb#13 def members; end + + # source://mail//lib/mail/parsers/message_ids_parser.rb#13 def new(*_arg0); end end end @@ -6829,18 +7038,38 @@ end # source://mail//lib/mail/parsers/mime_version_parser.rb#13 class Mail::Parsers::MimeVersionParser::MimeVersionStruct < ::Struct + # source://mail//lib/mail/parsers/mime_version_parser.rb#13 def error; end + + # source://mail//lib/mail/parsers/mime_version_parser.rb#13 def error=(_); end + + # source://mail//lib/mail/parsers/mime_version_parser.rb#13 def major; end + + # source://mail//lib/mail/parsers/mime_version_parser.rb#13 def major=(_); end + + # source://mail//lib/mail/parsers/mime_version_parser.rb#13 def minor; end + + # source://mail//lib/mail/parsers/mime_version_parser.rb#13 def minor=(_); end class << self + # source://mail//lib/mail/parsers/mime_version_parser.rb#13 def [](*_arg0); end + + # source://mail//lib/mail/parsers/mime_version_parser.rb#13 def inspect; end + + # source://mail//lib/mail/parsers/mime_version_parser.rb#13 def keyword_init?; end + + # source://mail//lib/mail/parsers/mime_version_parser.rb#13 def members; end + + # source://mail//lib/mail/parsers/mime_version_parser.rb#13 def new(*_arg0); end end end @@ -6931,16 +7160,32 @@ end # source://mail//lib/mail/parsers/phrase_lists_parser.rb#13 class Mail::Parsers::PhraseListsParser::PhraseListsStruct < ::Struct + # source://mail//lib/mail/parsers/phrase_lists_parser.rb#13 def error; end + + # source://mail//lib/mail/parsers/phrase_lists_parser.rb#13 def error=(_); end + + # source://mail//lib/mail/parsers/phrase_lists_parser.rb#13 def phrases; end + + # source://mail//lib/mail/parsers/phrase_lists_parser.rb#13 def phrases=(_); end class << self + # source://mail//lib/mail/parsers/phrase_lists_parser.rb#13 def [](*_arg0); end + + # source://mail//lib/mail/parsers/phrase_lists_parser.rb#13 def inspect; end + + # source://mail//lib/mail/parsers/phrase_lists_parser.rb#13 def keyword_init?; end + + # source://mail//lib/mail/parsers/phrase_lists_parser.rb#13 def members; end + + # source://mail//lib/mail/parsers/phrase_lists_parser.rb#13 def new(*_arg0); end end end @@ -7031,20 +7276,44 @@ end # source://mail//lib/mail/parsers/received_parser.rb#13 class Mail::Parsers::ReceivedParser::ReceivedStruct < ::Struct + # source://mail//lib/mail/parsers/received_parser.rb#13 def date; end + + # source://mail//lib/mail/parsers/received_parser.rb#13 def date=(_); end + + # source://mail//lib/mail/parsers/received_parser.rb#13 def error; end + + # source://mail//lib/mail/parsers/received_parser.rb#13 def error=(_); end + + # source://mail//lib/mail/parsers/received_parser.rb#13 def info; end + + # source://mail//lib/mail/parsers/received_parser.rb#13 def info=(_); end + + # source://mail//lib/mail/parsers/received_parser.rb#13 def time; end + + # source://mail//lib/mail/parsers/received_parser.rb#13 def time=(_); end class << self + # source://mail//lib/mail/parsers/received_parser.rb#13 def [](*_arg0); end + + # source://mail//lib/mail/parsers/received_parser.rb#13 def inspect; end + + # source://mail//lib/mail/parsers/received_parser.rb#13 def keyword_init?; end + + # source://mail//lib/mail/parsers/received_parser.rb#13 def members; end + + # source://mail//lib/mail/parsers/received_parser.rb#13 def new(*_arg0); end end end @@ -7167,7 +7436,7 @@ class Mail::PartsList # source://mail//lib/mail/parts_list.rb#47 def inspect_structure(parent_id = T.unsafe(nil)); end - # source://mail//lib/mail/parts_list.rb#28 + # source://mail//lib/mail/parts_list.rb#37 def map; end # @raise [NoMethodError] diff --git a/sorbet/rbi/gems/marcel@1.0.4.rbi b/sorbet/rbi/gems/marcel@1.0.4.rbi index 861f2c1c..9c22bc05 100644 --- a/sorbet/rbi/gems/marcel@1.0.4.rbi +++ b/sorbet/rbi/gems/marcel@1.0.4.rbi @@ -36,7 +36,7 @@ class Marcel::Magic # # @return [Boolean] # - # source://marcel//lib/marcel/magic.rb#103 + # source://marcel//lib/marcel/magic.rb#111 def ==(other); end # @return [Boolean] diff --git a/sorbet/rbi/gems/matrix@0.4.2.rbi b/sorbet/rbi/gems/matrix@0.4.3.rbi similarity index 86% rename from sorbet/rbi/gems/matrix@0.4.2.rbi rename to sorbet/rbi/gems/matrix@0.4.3.rbi index 5fb50907..164ac4ea 100644 --- a/sorbet/rbi/gems/matrix@0.4.2.rbi +++ b/sorbet/rbi/gems/matrix@0.4.3.rbi @@ -1,4 +1,4 @@ -# typed: true +# typed: false # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `matrix` gem. @@ -69,13 +69,14 @@ class Matrix # Matrix exponentiation. # Equivalent to multiplying the matrix by itself N times. - # Non integer exponents will be handled by diagonalizing the matrix. + # Non-integer exponents will be handled by diagonalizing the matrix; + # this is not supported for Complex matrices. # # Matrix[[7,6], [3,9]] ** 2 # # => 67 96 # # 48 99 # - # source://matrix//lib/matrix.rb#1237 + # source://matrix//lib/matrix.rb#1238 def **(exp); end # Matrix addition. @@ -88,7 +89,7 @@ class Matrix # source://matrix//lib/matrix.rb#1093 def +(m); end - # source://matrix//lib/matrix.rb#1283 + # source://matrix//lib/matrix.rb#1284 def +@; end # Matrix subtraction. @@ -107,7 +108,7 @@ class Matrix # # => -1 -5 # # -4 -2 # - # source://matrix//lib/matrix.rb#1292 + # source://matrix//lib/matrix.rb#1293 def -@; end # Matrix division (multiplication by the inverse). @@ -143,7 +144,7 @@ class Matrix # Returns the absolute value elementwise # - # source://matrix//lib/matrix.rb#1299 + # source://matrix//lib/matrix.rb#1300 def abs; end # Returns the adjoint of the matrix. @@ -152,7 +153,7 @@ class Matrix # # => -i 2 # # 1 i # - # source://matrix//lib/matrix.rb#1595 + # source://matrix//lib/matrix.rb#1597 def adjoint; end # Returns the adjugate of the matrix. @@ -181,7 +182,7 @@ class Matrix # type between the two operands of the operator. # See also Numeric#coerce. # - # source://matrix//lib/matrix.rb#1648 + # source://matrix//lib/matrix.rb#1650 def coerce(other); end # Returns the (row, column) cofactor which is obtained by multiplying @@ -205,7 +206,7 @@ class Matrix # # @raise [ErrDimensionMismatch] # - # source://matrix//lib/matrix.rb#810 + # source://matrix//lib/matrix.rb#828 def cofactor_expansion(row: T.unsafe(nil), column: T.unsafe(nil)); end # Returns a matrix that is the result of iteration of the given block over all @@ -255,12 +256,12 @@ class Matrix # Returns the number of columns. # - # source://matrix//lib/matrix.rb#456 + # source://matrix//lib/matrix.rb#457 def column_size; end # Returns an array of the column vectors of the matrix. See Vector. # - # source://matrix//lib/matrix.rb#1669 + # source://matrix//lib/matrix.rb#1671 def column_vectors; end # :call-seq: @@ -278,7 +279,7 @@ class Matrix # Returns element (+i+,+j+) of the matrix. That is: row +i+, column +j+. # - # source://matrix//lib/matrix.rb#337 + # source://matrix//lib/matrix.rb#341 def component(i, j); end # Returns the conjugate of the matrix. @@ -289,7 +290,7 @@ class Matrix # # => 1-2i -i 0 # # 1 2 3 # - # source://matrix//lib/matrix.rb#1583 + # source://matrix//lib/matrix.rb#1588 def conj; end # Returns the conjugate of the matrix. @@ -300,7 +301,7 @@ class Matrix # # => 1-2i -i 0 # # 1 2 3 # - # source://matrix//lib/matrix.rb#1583 + # source://matrix//lib/matrix.rb#1585 def conjugate; end # Returns the determinant of the matrix. @@ -314,12 +315,12 @@ class Matrix # # @raise [ErrDimensionMismatch] # - # source://matrix//lib/matrix.rb#1317 + # source://matrix//lib/matrix.rb#1356 def det; end # deprecated; use Matrix#determinant # - # source://matrix//lib/matrix.rb#1398 + # source://matrix//lib/matrix.rb#1403 def det_e; end # Returns the determinant of the matrix. @@ -333,12 +334,12 @@ class Matrix # # @raise [ErrDimensionMismatch] # - # source://matrix//lib/matrix.rb#1317 + # source://matrix//lib/matrix.rb#1318 def determinant; end # deprecated; use Matrix#determinant # - # source://matrix//lib/matrix.rb#1398 + # source://matrix//lib/matrix.rb#1399 def determinant_e; end # Returns +true+ if this is a diagonal matrix. @@ -389,7 +390,9 @@ class Matrix # v.inv == v_inv # => true # (v * d * v_inv).round(5) == m # => true # - # source://matrix//lib/matrix.rb#1550 + # This is not supported for Complex matrices + # + # source://matrix//lib/matrix.rb#1555 def eigen; end # Returns the Eigensystem of the matrix; see +EigenvalueDecomposition+. @@ -399,33 +402,35 @@ class Matrix # v.inv == v_inv # => true # (v * d * v_inv).round(5) == m # => true # - # source://matrix//lib/matrix.rb#1550 + # This is not supported for Complex matrices + # + # source://matrix//lib/matrix.rb#1552 def eigensystem; end # Returns element (+i+,+j+) of the matrix. That is: row +i+, column +j+. # - # source://matrix//lib/matrix.rb#337 + # source://matrix//lib/matrix.rb#340 def element(i, j); end # Deprecated. # # Use map(&:to_f) # - # source://matrix//lib/matrix.rb#1692 + # source://matrix//lib/matrix.rb#1694 def elements_to_f; end # Deprecated. # # Use map(&:to_i) # - # source://matrix//lib/matrix.rb#1700 + # source://matrix//lib/matrix.rb#1702 def elements_to_i; end # Deprecated. # # Use map(&:to_r) # - # source://matrix//lib/matrix.rb#1708 + # source://matrix//lib/matrix.rb#1710 def elements_to_r; end # Returns +true+ if this is an empty matrix, i.e. if the number of rows @@ -441,7 +446,7 @@ class Matrix # # => 1 4 # # 9 8 # - # source://matrix//lib/matrix.rb#1167 + # source://matrix//lib/matrix.rb#1170 def entrywise_product(m); end # @return [Boolean] @@ -462,7 +467,7 @@ class Matrix # # @raise [ArgumentError] # - # source://matrix//lib/matrix.rb#679 + # source://matrix//lib/matrix.rb#695 def find_index(*args); end # Returns the submatrix obtained by deleting the specified row and column. @@ -509,7 +514,7 @@ class Matrix # y = Matrix[[5, 6], [7, 8]] # x.hstack(y) # => Matrix[[1, 2, 5, 6], [3, 4, 7, 8]] # - # source://matrix//lib/matrix.rb#1412 + # source://matrix//lib/matrix.rb#1413 def hstack(*matrices); end # Returns the imaginary part of the matrix. @@ -520,7 +525,7 @@ class Matrix # # => 2i i 0 # # 0 0 0 # - # source://matrix//lib/matrix.rb#1608 + # source://matrix//lib/matrix.rb#1613 def imag; end # Returns the imaginary part of the matrix. @@ -531,7 +536,7 @@ class Matrix # # => 2i i 0 # # 0 0 0 # - # source://matrix//lib/matrix.rb#1608 + # source://matrix//lib/matrix.rb#1610 def imaginary; end # :call-seq: @@ -552,7 +557,7 @@ class Matrix # Overrides Object#inspect # - # source://matrix//lib/matrix.rb#1733 + # source://matrix//lib/matrix.rb#1735 def inspect; end # Returns the inverse of the matrix. @@ -562,7 +567,7 @@ class Matrix # # @raise [ErrDimensionMismatch] # - # source://matrix//lib/matrix.rb#1178 + # source://matrix//lib/matrix.rb#1182 def inv; end # Returns the inverse of the matrix. @@ -604,7 +609,7 @@ class Matrix # l * u == p * a # => true # a.lup.solve([2, 5]) # => Vector[(1/1), (1/2)] # - # source://matrix//lib/matrix.rb#1565 + # source://matrix//lib/matrix.rb#1567 def lup; end # Returns the LUP decomposition of the matrix; see +LUPDecomposition+. @@ -616,7 +621,7 @@ class Matrix # l * u == p * a # => true # a.lup.solve([2, 5]) # => Vector[(1/1), (1/2)] # - # source://matrix//lib/matrix.rb#1565 + # source://matrix//lib/matrix.rb#1570 def lup_decomposition; end # Returns a matrix that is the result of iteration of the given block over all @@ -633,7 +638,7 @@ class Matrix # # => 1 4 # # 9 16 # - # source://matrix//lib/matrix.rb#508 + # source://matrix//lib/matrix.rb#512 def map(which = T.unsafe(nil), &block); end # Invokes the given block for each element of matrix, replacing the element with the value @@ -649,7 +654,7 @@ class Matrix # # @raise [FrozenError] # - # source://matrix//lib/matrix.rb#526 + # source://matrix//lib/matrix.rb#532 def map!(which = T.unsafe(nil)); end # Returns a section of the matrix. The parameters are either: @@ -702,12 +707,12 @@ class Matrix # Matrix[[7,6], [3,9]].rank # # => 2 # - # source://matrix//lib/matrix.rb#1425 + # source://matrix//lib/matrix.rb#1426 def rank; end # deprecated; use Matrix#rank # - # source://matrix//lib/matrix.rb#1456 + # source://matrix//lib/matrix.rb#1457 def rank_e; end # Returns the real part of the matrix. @@ -718,7 +723,7 @@ class Matrix # # => 1 0 0 # # 1 2 3 # - # source://matrix//lib/matrix.rb#1622 + # source://matrix//lib/matrix.rb#1624 def real; end # Returns +true+ if all entries of the matrix are real. @@ -733,7 +738,7 @@ class Matrix # # m.rect == [m.real, m.imag] # ==> true for all matrices m # - # source://matrix//lib/matrix.rb#1632 + # source://matrix//lib/matrix.rb#1634 def rect; end # Returns an array containing matrices corresponding to the real and imaginary @@ -741,7 +746,7 @@ class Matrix # # m.rect == [m.real, m.imag] # ==> true for all matrices m # - # source://matrix//lib/matrix.rb#1632 + # source://matrix//lib/matrix.rb#1637 def rectangular; end # Returns +true+ if this is a regular (i.e. non-singular) matrix. @@ -762,13 +767,13 @@ class Matrix # r = m.rotate_entries(:clockwise) # # => Matrix[[3, 1], [4, 2]] # - # source://matrix//lib/matrix.rb#1473 + # source://matrix//lib/matrix.rb#1474 def rotate_entries(rotation = T.unsafe(nil)); end # Returns a matrix with entries rounded to the given precision # (see Float#round) # - # source://matrix//lib/matrix.rb#1493 + # source://matrix//lib/matrix.rb#1494 def round(ndigits = T.unsafe(nil)); end # Returns row vector number +i+ of the matrix as a Vector (starting at 0 like @@ -784,12 +789,12 @@ class Matrix # Returns the number of rows. # - # source://matrix//lib/matrix.rb#448 + # source://matrix//lib/matrix.rb#452 def row_size; end # Returns an array of the row vectors of the matrix. See Vector. # - # source://matrix//lib/matrix.rb#1660 + # source://matrix//lib/matrix.rb#1662 def row_vectors; end # Returns +true+ if this is a singular matrix. @@ -805,7 +810,7 @@ class Matrix # @raise [ErrDimensionMismatch] # @return [Boolean] # - # source://matrix//lib/matrix.rb#973 + # source://matrix//lib/matrix.rb#980 def skew_symmetric?; end # Returns +true+ if this is a square matrix. @@ -833,22 +838,22 @@ class Matrix # # => 1 3 5 # # 2 4 6 # - # source://matrix//lib/matrix.rb#1520 + # source://matrix//lib/matrix.rb#1525 def t; end # Returns an array of arrays that describe the rows of the matrix. # - # source://matrix//lib/matrix.rb#1685 + # source://matrix//lib/matrix.rb#1687 def to_a; end # Explicit conversion to a Matrix. Returns self # - # source://matrix//lib/matrix.rb#1678 + # source://matrix//lib/matrix.rb#1680 def to_matrix; end # Overrides Object#to_s # - # source://matrix//lib/matrix.rb#1720 + # source://matrix//lib/matrix.rb#1722 def to_s; end # Returns the trace (sum of diagonal elements) of the matrix. @@ -857,7 +862,7 @@ class Matrix # # @raise [ErrDimensionMismatch] # - # source://matrix//lib/matrix.rb#1502 + # source://matrix//lib/matrix.rb#1509 def tr; end # Returns the trace (sum of diagonal elements) of the matrix. @@ -866,7 +871,7 @@ class Matrix # # @raise [ErrDimensionMismatch] # - # source://matrix//lib/matrix.rb#1502 + # source://matrix//lib/matrix.rb#1503 def trace; end # Returns the transpose of the matrix. @@ -878,7 +883,7 @@ class Matrix # # => 1 3 5 # # 2 4 6 # - # source://matrix//lib/matrix.rb#1520 + # source://matrix//lib/matrix.rb#1521 def transpose; end # Returns +true+ if this is a unitary matrix @@ -904,7 +909,7 @@ class Matrix # y = Matrix[[5, 6], [7, 8]] # x.vstack(y) # => Matrix[[1, 2], [3, 4], [5, 6], [7, 8]] # - # source://matrix//lib/matrix.rb#1534 + # source://matrix//lib/matrix.rb#1535 def vstack(*matrices); end # Returns +true+ if this is a matrix with only zero elements @@ -916,7 +921,7 @@ class Matrix protected - # source://matrix//lib/matrix.rb#1257 + # source://matrix//lib/matrix.rb#1258 def power_int(exp); end # Returns the value of attribute rows. @@ -944,7 +949,7 @@ class Matrix # with smaller bignums (if any), while a matrix of Float will usually have # intermediate results with better precision. # - # source://matrix//lib/matrix.rb#1368 + # source://matrix//lib/matrix.rb#1369 def determinant_bareiss; end # Called for dup & clone. @@ -976,7 +981,7 @@ class Matrix # # @raise [FrozenError] # - # source://matrix//lib/matrix.rb#351 + # source://matrix//lib/matrix.rb#366 def set_component(i, j, v); end # :call-seq: @@ -989,7 +994,7 @@ class Matrix # # @raise [FrozenError] # - # source://matrix//lib/matrix.rb#351 + # source://matrix//lib/matrix.rb#365 def set_element(i, j, v); end # source://matrix//lib/matrix.rb#387 @@ -1009,7 +1014,7 @@ class Matrix # # => 1 0 # # 0 1 # - # source://matrix//lib/matrix.rb#171 + # source://matrix//lib/matrix.rb#176 def I(n); end # Creates a matrix where each argument is a row. @@ -1140,7 +1145,7 @@ class Matrix # # => 1 0 # # 0 1 # - # source://matrix//lib/matrix.rb#171 + # source://matrix//lib/matrix.rb#175 def unit(n); end # Create a matrix by stacking matrices vertically @@ -1159,27 +1164,32 @@ class Matrix # # source://matrix//lib/matrix.rb#185 def zero(row_count, column_count = T.unsafe(nil)); end + + private + + # source://matrix//lib/matrix.rb#68 + def new(*_arg0); end end end -# source://matrix//lib/matrix.rb#1768 +# source://matrix//lib/matrix.rb#1770 module Matrix::CoercionHelper private # Applies the operator +oper+ with argument +obj+ # through coercion of +obj+ # - # source://matrix//lib/matrix.rb#1773 + # source://matrix//lib/matrix.rb#1775 def apply_through_coercion(obj, oper); end class << self - # source://matrix//lib/matrix.rb#1820 + # source://matrix//lib/matrix.rb#1822 def check_int(val, count, kind); end # Returns `nil` for non Ranges # Checks range validity, return canonical range with 0 <= begin <= end < count # - # source://matrix//lib/matrix.rb#1810 + # source://matrix//lib/matrix.rb#1812 def check_range(val, count, kind); end # Helper method to coerce a value into a specific class. @@ -1189,24 +1199,24 @@ module Matrix::CoercionHelper # # @raise [TypeError] # - # source://matrix//lib/matrix.rb#1787 + # source://matrix//lib/matrix.rb#1789 def coerce_to(obj, cls, meth); end - # source://matrix//lib/matrix.rb#1800 + # source://matrix//lib/matrix.rb#1802 def coerce_to_int(obj); end - # source://matrix//lib/matrix.rb#1804 + # source://matrix//lib/matrix.rb#1806 def coerce_to_matrix(obj); end end end # Private helper modules # -# source://matrix//lib/matrix.rb#1743 +# source://matrix//lib/matrix.rb#1745 module Matrix::ConversionHelper private - # source://matrix//lib/matrix.rb#1748 + # source://matrix//lib/matrix.rb#1750 def convert_to_array(obj, copy = T.unsafe(nil)); end end @@ -1220,94 +1230,94 @@ end # # If A is symmetric, then V is orthogonal and thus A = V*D*V.t # -# source://matrix//lib/matrix/eigenvalue_decomposition.rb#15 +# source://matrix//lib/matrix/eigenvalue_decomposition.rb#16 class Matrix::EigenvalueDecomposition # Constructs the eigenvalue decomposition for a square matrix +A+ # # @raise [TypeError] # @return [EigenvalueDecomposition] a new instance of EigenvalueDecomposition # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#19 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#20 def initialize(a); end # Returns the block diagonal eigenvalue matrix +D+ # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#73 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#77 def d; end # Returns the block diagonal eigenvalue matrix +D+ # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#73 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#74 def eigenvalue_matrix; end # Returns the eigenvalues in an array # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#59 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#60 def eigenvalues; end # Returns the eigenvector matrix +V+ # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#43 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#44 def eigenvector_matrix; end # Returns the inverse of the eigenvector matrix +V+ # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#50 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#51 def eigenvector_matrix_inv; end # Returns an array of the eigenvectors # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#67 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#68 def eigenvectors; end # Returns [eigenvector_matrix, eigenvalue_matrix, eigenvector_matrix_inv] # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#80 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#84 def to_a; end # Returns [eigenvector_matrix, eigenvalue_matrix, eigenvector_matrix_inv] # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#80 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#81 def to_ary; end # Returns the eigenvector matrix +V+ # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#43 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#47 def v; end # Returns the inverse of the eigenvector matrix +V+ # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#50 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#56 def v_inv; end private - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#86 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#87 def build_eigenvectors; end # Complex scalar division. # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#102 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#103 def cdiv(xr, xi, yr, yi); end # Symmetric tridiagonal QL algorithm. # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#235 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#236 def diagonalize; end # Nonsymmetric reduction from Hessenberg to real Schur form. # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#446 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#447 def hessenberg_to_real_schur; end # Nonsymmetric reduction to Hessenberg form. # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#354 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#355 def reduce_to_hessenberg; end # Symmetric Householder reduction to tridiagonal form. # - # source://matrix//lib/matrix/eigenvalue_decomposition.rb#117 + # source://matrix//lib/matrix/eigenvalue_decomposition.rb#118 def tridiagonalize; end end @@ -1340,7 +1350,7 @@ class Matrix::LUPDecomposition # Returns the determinant of +A+, calculated efficiently # from the factorization. # - # source://matrix//lib/matrix/lup_decomposition.rb#79 + # source://matrix//lib/matrix/lup_decomposition.rb#89 def determinant; end # source://matrix//lib/matrix/lup_decomposition.rb#22 @@ -1372,7 +1382,7 @@ class Matrix::LUPDecomposition # Returns +L+, +U+, +P+ in an array # - # source://matrix//lib/matrix/lup_decomposition.rb#56 + # source://matrix//lib/matrix/lup_decomposition.rb#59 def to_a; end # Returns +L+, +U+, +P+ in an array @@ -1391,31 +1401,31 @@ Matrix::SELECTORS = T.let(T.unsafe(nil), Hash) # Private CLASS # -# source://matrix//lib/matrix.rb#1833 +# source://matrix//lib/matrix.rb#1835 class Matrix::Scalar < ::Numeric include ::ExceptionForMatrix include ::Matrix::CoercionHelper # @return [Scalar] a new instance of Scalar # - # source://matrix//lib/matrix.rb#1837 + # source://matrix//lib/matrix.rb#1839 def initialize(value); end - # source://matrix//lib/matrix.rb#1864 + # source://matrix//lib/matrix.rb#1866 def *(other); end - # source://matrix//lib/matrix.rb#1888 + # source://matrix//lib/matrix.rb#1890 def **(other); end # ARITHMETIC # - # source://matrix//lib/matrix.rb#1842 + # source://matrix//lib/matrix.rb#1844 def +(other); end - # source://matrix//lib/matrix.rb#1853 + # source://matrix//lib/matrix.rb#1855 def -(other); end - # source://matrix//lib/matrix.rb#1875 + # source://matrix//lib/matrix.rb#1877 def /(other); end end @@ -1481,7 +1491,7 @@ Matrix::VERSION = T.let(T.unsafe(nil), String) # * #to_s # * #inspect # -# source://matrix//lib/matrix.rb#1966 +# source://matrix//lib/matrix.rb#1968 class Vector include ::ExceptionForMatrix include ::Enumerable @@ -1492,38 +1502,38 @@ class Vector # # @return [Vector] a new instance of Vector # - # source://matrix//lib/matrix.rb#2020 + # source://matrix//lib/matrix.rb#2022 def initialize(array); end # Multiplies the vector by +x+, where +x+ is a number or a matrix. # - # source://matrix//lib/matrix.rb#2222 + # source://matrix//lib/matrix.rb#2224 def *(x); end # Vector addition. # - # source://matrix//lib/matrix.rb#2239 + # source://matrix//lib/matrix.rb#2241 def +(v); end - # source://matrix//lib/matrix.rb#2287 + # source://matrix//lib/matrix.rb#2289 def +@; end # Vector subtraction. # - # source://matrix//lib/matrix.rb#2257 + # source://matrix//lib/matrix.rb#2259 def -(v); end - # source://matrix//lib/matrix.rb#2291 + # source://matrix//lib/matrix.rb#2293 def -@; end # Vector division. # - # source://matrix//lib/matrix.rb#2275 + # source://matrix//lib/matrix.rb#2277 def /(x); end # Returns whether the two vectors have the same elements in the same order. # - # source://matrix//lib/matrix.rb#2198 + # source://matrix//lib/matrix.rb#2200 def ==(other); end # :call-seq: @@ -1532,7 +1542,7 @@ class Vector # # Returns element or elements of the vector. # - # source://matrix//lib/matrix.rb#2034 + # source://matrix//lib/matrix.rb#2036 def [](i); end # :call-seq: @@ -1545,7 +1555,7 @@ class Vector # # @raise [FrozenError] # - # source://matrix//lib/matrix.rb#2049 + # source://matrix//lib/matrix.rb#2051 def []=(i, v); end # Returns an angle with another vector. Result is within the [0..Math::PI]. @@ -1554,7 +1564,7 @@ class Vector # # @raise [TypeError] # - # source://matrix//lib/matrix.rb#2407 + # source://matrix//lib/matrix.rb#2409 def angle_with(v); end # The coerce method provides support for Ruby type coercion. @@ -1563,19 +1573,19 @@ class Vector # type between the two operands of the operator. # See also Numeric#coerce. # - # source://matrix//lib/matrix.rb#2467 + # source://matrix//lib/matrix.rb#2469 def coerce(other); end # Like Array#collect. # - # source://matrix//lib/matrix.rb#2351 + # source://matrix//lib/matrix.rb#2353 def collect(&block); end # Like Array#collect! # # @raise [FrozenError] # - # source://matrix//lib/matrix.rb#2361 + # source://matrix//lib/matrix.rb#2363 def collect!(&block); end # Collects (as in Enumerable#collect) over the elements of this vector and +v+ @@ -1583,7 +1593,7 @@ class Vector # # @raise [TypeError] # - # source://matrix//lib/matrix.rb#2123 + # source://matrix//lib/matrix.rb#2125 def collect2(v); end # :call-seq: @@ -1592,12 +1602,12 @@ class Vector # # Returns element or elements of the vector. # - # source://matrix//lib/matrix.rb#2034 + # source://matrix//lib/matrix.rb#2040 def component(i); end # Creates a single-row matrix from this vector. # - # source://matrix//lib/matrix.rb#2427 + # source://matrix//lib/matrix.rb#2429 def covector; end # Returns the cross product of this vector with the others. @@ -1613,7 +1623,7 @@ class Vector # # @raise [ErrOperationNotDefined] # - # source://matrix//lib/matrix.rb#2326 + # source://matrix//lib/matrix.rb#2348 def cross(*vs); end # Returns the cross product of this vector with the others. @@ -1629,7 +1639,7 @@ class Vector # # @raise [ErrOperationNotDefined] # - # source://matrix//lib/matrix.rb#2326 + # source://matrix//lib/matrix.rb#2328 def cross_product(*vs); end # Returns the inner product of this vector with the other. @@ -1637,19 +1647,19 @@ class Vector # # @raise [ErrDimensionMismatch] # - # source://matrix//lib/matrix.rb#2303 + # source://matrix//lib/matrix.rb#2314 def dot(v); end # Iterate over the elements of this vector # - # source://matrix//lib/matrix.rb#2100 + # source://matrix//lib/matrix.rb#2102 def each(&block); end # Iterate over the elements of this vector and +v+ in conjunction. # # @raise [TypeError] # - # source://matrix//lib/matrix.rb#2109 + # source://matrix//lib/matrix.rb#2111 def each2(v); end # :call-seq: @@ -1658,31 +1668,31 @@ class Vector # # Returns element or elements of the vector. # - # source://matrix//lib/matrix.rb#2034 + # source://matrix//lib/matrix.rb#2039 def element(i); end - # source://matrix//lib/matrix.rb#2445 + # source://matrix//lib/matrix.rb#2447 def elements_to_f; end - # source://matrix//lib/matrix.rb#2450 + # source://matrix//lib/matrix.rb#2452 def elements_to_i; end - # source://matrix//lib/matrix.rb#2455 + # source://matrix//lib/matrix.rb#2457 def elements_to_r; end # @return [Boolean] # - # source://matrix//lib/matrix.rb#2203 + # source://matrix//lib/matrix.rb#2205 def eql?(other); end # Makes the matrix frozen and Ractor-shareable # - # source://matrix//lib/matrix.rb#2177 + # source://matrix//lib/matrix.rb#2179 def freeze; end # Returns a hash-code for the vector. # - # source://matrix//lib/matrix.rb#2211 + # source://matrix//lib/matrix.rb#2213 def hash; end # Returns whether all of vectors are linearly independent. @@ -1695,7 +1705,7 @@ class Vector # # @return [Boolean] # - # source://matrix//lib/matrix.rb#2163 + # source://matrix//lib/matrix.rb#2165 def independent?(*vs); end # Returns the inner product of this vector with the other. @@ -1703,41 +1713,41 @@ class Vector # # @raise [ErrDimensionMismatch] # - # source://matrix//lib/matrix.rb#2303 + # source://matrix//lib/matrix.rb#2305 def inner_product(v); end # Overrides Object#inspect # - # source://matrix//lib/matrix.rb#2490 + # source://matrix//lib/matrix.rb#2492 def inspect; end # Returns the modulus (Pythagorean distance) of the vector. # Vector[5,8,2].r # => 9.643650761 # - # source://matrix//lib/matrix.rb#2373 + # source://matrix//lib/matrix.rb#2375 def magnitude; end # Like Array#collect. # - # source://matrix//lib/matrix.rb#2351 + # source://matrix//lib/matrix.rb#2358 def map(&block); end # Like Array#collect! # # @raise [FrozenError] # - # source://matrix//lib/matrix.rb#2361 + # source://matrix//lib/matrix.rb#2369 def map!(&block); end # Like Vector#collect2, but returns a Vector instead of an Array. # - # source://matrix//lib/matrix.rb#2382 + # source://matrix//lib/matrix.rb#2384 def map2(v, &block); end # Returns the modulus (Pythagorean distance) of the vector. # Vector[5,8,2].r # => 9.643650761 # - # source://matrix//lib/matrix.rb#2373 + # source://matrix//lib/matrix.rb#2379 def norm; end # Returns a new vector with the same direction but with norm 1. @@ -1747,60 +1757,60 @@ class Vector # # @raise [ZeroVectorError] # - # source://matrix//lib/matrix.rb#2396 + # source://matrix//lib/matrix.rb#2398 def normalize; end # Returns the modulus (Pythagorean distance) of the vector. # Vector[5,8,2].r # => 9.643650761 # - # source://matrix//lib/matrix.rb#2373 + # source://matrix//lib/matrix.rb#2378 def r; end # Returns a vector with entries rounded to the given precision # (see Float#round) # - # source://matrix//lib/matrix.rb#2082 + # source://matrix//lib/matrix.rb#2084 def round(ndigits = T.unsafe(nil)); end # Returns the number of elements in the vector. # - # source://matrix//lib/matrix.rb#2089 + # source://matrix//lib/matrix.rb#2091 def size; end # Returns the elements of the vector in an array. # - # source://matrix//lib/matrix.rb#2434 + # source://matrix//lib/matrix.rb#2436 def to_a; end # Return a single-column matrix from this vector # - # source://matrix//lib/matrix.rb#2441 + # source://matrix//lib/matrix.rb#2443 def to_matrix; end # Overrides Object#to_s # - # source://matrix//lib/matrix.rb#2483 + # source://matrix//lib/matrix.rb#2485 def to_s; end # Returns whether all elements are zero. # # @return [Boolean] # - # source://matrix//lib/matrix.rb#2170 + # source://matrix//lib/matrix.rb#2172 def zero?; end protected # Returns the value of attribute elements. # - # source://matrix//lib/matrix.rb#1974 + # source://matrix//lib/matrix.rb#1976 def elements; end private # Called for dup & clone. # - # source://matrix//lib/matrix.rb#2185 + # source://matrix//lib/matrix.rb#2187 def initialize_copy(v); end # :call-seq: @@ -1813,7 +1823,7 @@ class Vector # # @raise [FrozenError] # - # source://matrix//lib/matrix.rb#2049 + # source://matrix//lib/matrix.rb#2062 def set_component(i, v); end # :call-seq: @@ -1826,20 +1836,20 @@ class Vector # # @raise [FrozenError] # - # source://matrix//lib/matrix.rb#2049 + # source://matrix//lib/matrix.rb#2061 def set_element(i, v); end - # source://matrix//lib/matrix.rb#2067 + # source://matrix//lib/matrix.rb#2069 def set_range(range, value); end - # source://matrix//lib/matrix.rb#2063 + # source://matrix//lib/matrix.rb#2065 def set_value(index, value); end class << self # Creates a Vector from a list of elements. # Vector[7, 4, ...] # - # source://matrix//lib/matrix.rb#1981 + # source://matrix//lib/matrix.rb#1983 def [](*array); end # Returns a standard basis +n+-vector, where k is the index. @@ -1848,13 +1858,13 @@ class Vector # # @raise [ArgumentError] # - # source://matrix//lib/matrix.rb#1998 + # source://matrix//lib/matrix.rb#2000 def basis(size:, index:); end # Creates a vector from an Array. The optional second argument specifies # whether the array itself or a copy is used internally. # - # source://matrix//lib/matrix.rb#1989 + # source://matrix//lib/matrix.rb#1991 def elements(array, copy = T.unsafe(nil)); end # Returns whether all of vectors are linearly independent. @@ -1867,7 +1877,7 @@ class Vector # # @return [Boolean] # - # source://matrix//lib/matrix.rb#2145 + # source://matrix//lib/matrix.rb#2147 def independent?(*vs); end # Return a zero vector. @@ -1876,10 +1886,15 @@ class Vector # # @raise [ArgumentError] # - # source://matrix//lib/matrix.rb#2011 + # source://matrix//lib/matrix.rb#2013 def zero(size); end + + private + + # source://matrix//lib/matrix.rb#1975 + def new(*_arg0); end end end -# source://matrix//lib/matrix.rb#2388 +# source://matrix//lib/matrix.rb#2390 class Vector::ZeroVectorError < ::StandardError; end diff --git a/sorbet/rbi/gems/method_source@1.1.0.rbi b/sorbet/rbi/gems/method_source@1.1.0.rbi index 2f1a7412..f3d99723 100644 --- a/sorbet/rbi/gems/method_source@1.1.0.rbi +++ b/sorbet/rbi/gems/method_source@1.1.0.rbi @@ -197,7 +197,7 @@ module MethodSource::MethodExtensions # @raise SourceNotFoundException # @return [String] The method's comments as a string # - # source://method_source//lib/method_source.rb#139 + # source://method_source//lib/method_source.rb#159 def module_comment; end # Return the sourcecode for the method as a string diff --git a/sorbet/rbi/gems/mini_portile2@2.8.8.rbi b/sorbet/rbi/gems/mini_portile2@2.8.9.rbi similarity index 100% rename from sorbet/rbi/gems/mini_portile2@2.8.8.rbi rename to sorbet/rbi/gems/mini_portile2@2.8.9.rbi diff --git a/sorbet/rbi/gems/msgpack@1.8.0.rbi b/sorbet/rbi/gems/msgpack@1.8.0.rbi index c80c8f79..9a9aa735 100644 --- a/sorbet/rbi/gems/msgpack@1.8.0.rbi +++ b/sorbet/rbi/gems/msgpack@1.8.0.rbi @@ -65,7 +65,7 @@ Integer::GMP_VERSION = T.let(T.unsafe(nil), String) module MessagePack private - # source://msgpack//lib/msgpack.rb#39 + # source://msgpack//lib/msgpack.rb#44 def dump(v, io = T.unsafe(nil), options = T.unsafe(nil)); end # source://msgpack//lib/msgpack.rb#22 @@ -74,24 +74,78 @@ module MessagePack # source://msgpack//lib/msgpack.rb#39 def pack(v, io = T.unsafe(nil), options = T.unsafe(nil)); end - # source://msgpack//lib/msgpack.rb#22 + # source://msgpack//lib/msgpack.rb#34 def unpack(src, param = T.unsafe(nil)); end class << self - # source://msgpack//lib/msgpack.rb#39 + # source://msgpack//lib/msgpack.rb#47 def dump(v, io = T.unsafe(nil), options = T.unsafe(nil)); end - # source://msgpack//lib/msgpack.rb#22 + # source://msgpack//lib/msgpack.rb#36 def load(src, param = T.unsafe(nil)); end - # source://msgpack//lib/msgpack.rb#39 + # source://msgpack//lib/msgpack.rb#46 def pack(v, io = T.unsafe(nil), options = T.unsafe(nil)); end - # source://msgpack//lib/msgpack.rb#22 + # source://msgpack//lib/msgpack.rb#37 def unpack(src, param = T.unsafe(nil)); end end end +# source://msgpack//lib/msgpack/buffer.rb#2 +class MessagePack::Buffer + # source://msgpack//lib/msgpack.rb#7 + def initialize(*_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def <<(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def clear; end + + # source://msgpack//lib/msgpack.rb#7 + def close; end + + # source://msgpack//lib/msgpack.rb#7 + def empty?; end + + # source://msgpack//lib/msgpack.rb#7 + def flush; end + + # source://msgpack//lib/msgpack.rb#7 + def io; end + + # source://msgpack//lib/msgpack.rb#7 + def read(*_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def read_all(*_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def size; end + + # source://msgpack//lib/msgpack.rb#7 + def skip(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def skip_all(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def to_a; end + + # source://msgpack//lib/msgpack.rb#7 + def to_s; end + + # source://msgpack//lib/msgpack.rb#7 + def to_str; end + + # source://msgpack//lib/msgpack.rb#7 + def write(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_to(_arg0); end +end + # source://msgpack//lib/msgpack/core_ext.rb#2 module MessagePack::CoreExt # source://msgpack//lib/msgpack/core_ext.rb#3 @@ -102,23 +156,64 @@ end class MessagePack::ExtensionValue < ::Struct include ::MessagePack::CoreExt + # source://msgpack//lib/msgpack.rb#7 + def payload; end + + # source://msgpack//lib/msgpack.rb#7 + def payload=(_); end + + # source://msgpack//lib/msgpack.rb#7 + def type; end + + # source://msgpack//lib/msgpack.rb#7 + def type=(_); end + private # source://msgpack//lib/msgpack/core_ext.rb#134 def to_msgpack_with_packer(packer); end + + class << self + # source://msgpack//lib/msgpack.rb#7 + def [](*_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def inspect; end + + # source://msgpack//lib/msgpack.rb#7 + def keyword_init?; end + + # source://msgpack//lib/msgpack.rb#7 + def members; end + + # source://msgpack//lib/msgpack.rb#7 + def new(*_arg0); end + end end # source://msgpack//lib/msgpack/factory.rb#2 class MessagePack::Factory + # source://msgpack//lib/msgpack.rb#7 + def initialize(*_arg0); end + # source://msgpack//lib/msgpack/factory.rb#113 def dump(v, *rest); end + # source://msgpack//lib/msgpack.rb#7 + def dup; end + + # source://msgpack//lib/msgpack.rb#7 + def freeze; end + # source://msgpack//lib/msgpack/factory.rb#99 def load(src, param = T.unsafe(nil)); end - # source://msgpack//lib/msgpack/factory.rb#113 + # source://msgpack//lib/msgpack/factory.rb#118 def pack(v, *rest); end + # source://msgpack//lib/msgpack.rb#7 + def packer(*_arg0); end + # source://msgpack//lib/msgpack/factory.rb#120 def pool(size = T.unsafe(nil), **options); end @@ -139,8 +234,19 @@ class MessagePack::Factory # source://msgpack//lib/msgpack/factory.rb#86 def type_registered?(klass_or_type, selector = T.unsafe(nil)); end - # source://msgpack//lib/msgpack/factory.rb#99 + # source://msgpack//lib/msgpack/factory.rb#111 def unpack(src, param = T.unsafe(nil)); end + + # source://msgpack//lib/msgpack.rb#7 + def unpacker(*_arg0); end + + private + + # source://msgpack//lib/msgpack.rb#7 + def register_type_internal(_arg0, _arg1, _arg2); end + + # source://msgpack//lib/msgpack.rb#7 + def registered_types_internal; end end # source://msgpack//lib/msgpack/factory.rb#128 @@ -178,18 +284,119 @@ class MessagePack::HeldBuffer < ::BasicObject; end # source://msgpack//lib/msgpack/packer.rb#2 class MessagePack::Packer + # source://msgpack//lib/msgpack.rb#7 + def initialize(*_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def buffer; end + + # source://msgpack//lib/msgpack.rb#7 + def clear; end + + # source://msgpack//lib/msgpack.rb#7 + def compatibility_mode?; end + + # source://msgpack//lib/msgpack.rb#7 + def empty?; end + + # source://msgpack//lib/msgpack.rb#7 + def flush; end + + # source://msgpack//lib/msgpack.rb#7 + def full_pack; end + + # source://msgpack//lib/msgpack.rb#7 + def pack(_arg0); end + # @raise [ArgumentError] # # source://msgpack//lib/msgpack/packer.rb#9 def register_type(type, klass, method_name = T.unsafe(nil), &block); end + # source://msgpack//lib/msgpack.rb#7 + def register_type_internal(_arg0, _arg1, _arg2); end + # source://msgpack//lib/msgpack/packer.rb#14 def registered_types; end + # source://msgpack//lib/msgpack.rb#7 + def reset; end + + # source://msgpack//lib/msgpack.rb#7 + def size; end + + # source://msgpack//lib/msgpack.rb#7 + def to_a; end + + # source://msgpack//lib/msgpack.rb#7 + def to_s; end + + # source://msgpack//lib/msgpack.rb#7 + def to_str; end + # @return [Boolean] # # source://msgpack//lib/msgpack/packer.rb#24 def type_registered?(klass_or_type); end + + # source://msgpack//lib/msgpack.rb#7 + def write(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_array(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_array_header(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_bin(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_bin_header(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_ext(_arg0, _arg1); end + + # source://msgpack//lib/msgpack.rb#7 + def write_extension(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_false; end + + # source://msgpack//lib/msgpack.rb#7 + def write_float(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_float32(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_hash(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_int(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_map_header(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_nil; end + + # source://msgpack//lib/msgpack.rb#7 + def write_string(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_symbol(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_to(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def write_true; end + + private + + # source://msgpack//lib/msgpack.rb#7 + def registered_types_internal; end end # source://msgpack//lib/msgpack/time.rb#5 @@ -260,16 +467,75 @@ end # source://msgpack//lib/msgpack/unpacker.rb#2 class MessagePack::Unpacker + # source://msgpack//lib/msgpack.rb#7 + def initialize(*_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def allow_unknown_ext?; end + + # source://msgpack//lib/msgpack.rb#7 + def buffer; end + + # source://msgpack//lib/msgpack.rb#7 + def each; end + + # source://msgpack//lib/msgpack.rb#7 + def feed(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def feed_each(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def feed_reference(_arg0); end + + # source://msgpack//lib/msgpack.rb#7 + def freeze?; end + + # source://msgpack//lib/msgpack.rb#7 + def full_unpack; end + + # source://msgpack//lib/msgpack.rb#7 + def read; end + + # source://msgpack//lib/msgpack.rb#7 + def read_array_header; end + + # source://msgpack//lib/msgpack.rb#7 + def read_map_header; end + # source://msgpack//lib/msgpack/unpacker.rb#9 def register_type(type, klass = T.unsafe(nil), method_name = T.unsafe(nil), &block); end # source://msgpack//lib/msgpack/unpacker.rb#18 def registered_types; end + # source://msgpack//lib/msgpack.rb#7 + def reset; end + + # source://msgpack//lib/msgpack.rb#7 + def skip; end + + # source://msgpack//lib/msgpack.rb#7 + def skip_nil; end + + # source://msgpack//lib/msgpack.rb#7 + def symbolize_keys?; end + # @return [Boolean] # # source://msgpack//lib/msgpack/unpacker.rb#28 def type_registered?(klass_or_type); end + + # source://msgpack//lib/msgpack.rb#7 + def unpack; end + + private + + # source://msgpack//lib/msgpack.rb#7 + def register_type_internal(_arg0, _arg1, _arg2); end + + # source://msgpack//lib/msgpack.rb#7 + def registered_types_internal; end end # source://msgpack//lib/msgpack/core_ext.rb#17 @@ -298,6 +564,9 @@ class Symbol include ::Comparable include ::MessagePack::CoreExt + # source://msgpack//lib/msgpack/symbol.rb#7 + def to_msgpack_ext; end + private # source://msgpack//lib/msgpack/core_ext.rb#91 diff --git a/sorbet/rbi/gems/multi_json@1.15.0.rbi b/sorbet/rbi/gems/multi_json@1.17.0.rbi similarity index 65% rename from sorbet/rbi/gems/multi_json@1.15.0.rbi rename to sorbet/rbi/gems/multi_json@1.17.0.rbi index 64c3c0c7..d2314bfd 100644 --- a/sorbet/rbi/gems/multi_json@1.15.0.rbi +++ b/sorbet/rbi/gems/multi_json@1.17.0.rbi @@ -13,7 +13,7 @@ module MultiJson # Get the current adapter class. # - # source://multi_json//lib/multi_json.rb#70 + # source://multi_json//lib/multi_json.rb#60 def adapter; end # Set the JSON parser utilizing a symbol, string, or class. @@ -24,17 +24,16 @@ module MultiJson # * :json_pure # * :ok_json # * :yajl - # * :nsjsonserialization (MacRuby only) # * :gson (JRuby only) # * :jr_jackson (JRuby only) # - # source://multi_json//lib/multi_json.rb#90 + # source://multi_json//lib/multi_json.rb#84 def adapter=(new_adapter); end - # source://multi_json//lib/multi_json.rb#26 + # source://multi_json//lib/multi_json.rb#24 def cached_options(*_arg0); end - # source://multi_json//lib/multi_json.rb#129 + # source://multi_json//lib/multi_json.rb#118 def current_adapter(options = T.unsafe(nil)); end # Decode a JSON string into Ruby. @@ -44,26 +43,22 @@ module MultiJson # :symbolize_keys :: If true, will use symbols instead of strings for the keys. # :adapter :: If set, the selected adapter will be used for this call. # - # source://multi_json//lib/multi_json.rb#119 + # source://multi_json//lib/multi_json.rb#116 def decode(string, options = T.unsafe(nil)); end # The default adapter based on what you currently - # have loaded and installed. First checks to see - # if any adapters are already loaded, then checks - # to see which are installed if none are loaded. + # have loaded and installed. # - # source://multi_json//lib/multi_json.rb#46 + # source://multi_json//lib/multi_json.rb#42 def default_adapter; end # The default adapter based on what you currently - # have loaded and installed. First checks to see - # if any adapters are already loaded, then checks - # to see which are installed if none are loaded. + # have loaded and installed. # - # source://multi_json//lib/multi_json.rb#46 + # source://multi_json//lib/multi_json.rb#57 def default_engine; end - # source://multi_json//lib/multi_json.rb#18 + # source://multi_json//lib/multi_json.rb#17 def default_options; end # source://multi_json//lib/multi_json.rb#11 @@ -71,17 +66,17 @@ module MultiJson # Encodes a Ruby object as JSON. # - # source://multi_json//lib/multi_json.rb#138 + # source://multi_json//lib/multi_json.rb#127 def dump(object, options = T.unsafe(nil)); end # Encodes a Ruby object as JSON. # - # source://multi_json//lib/multi_json.rb#138 + # source://multi_json//lib/multi_json.rb#130 def encode(object, options = T.unsafe(nil)); end # Get the current adapter class. # - # source://multi_json//lib/multi_json.rb#70 + # source://multi_json//lib/multi_json.rb#67 def engine; end # Set the JSON parser utilizing a symbol, string, or class. @@ -92,11 +87,10 @@ module MultiJson # * :json_pure # * :ok_json # * :yajl - # * :nsjsonserialization (MacRuby only) # * :gson (JRuby only) # * :jr_jackson (JRuby only) # - # source://multi_json//lib/multi_json.rb#90 + # source://multi_json//lib/multi_json.rb#85 def engine=(new_adapter); end # Decode a JSON string into Ruby. @@ -106,13 +100,13 @@ module MultiJson # :symbolize_keys :: If true, will use symbols instead of strings for the keys. # :adapter :: If set, the selected adapter will be used for this call. # - # source://multi_json//lib/multi_json.rb#119 + # source://multi_json//lib/multi_json.rb#108 def load(string, options = T.unsafe(nil)); end - # source://multi_json//lib/multi_json.rb#98 + # source://multi_json//lib/multi_json.rb#87 def load_adapter(new_adapter); end - # source://multi_json//lib/multi_json.rb#26 + # source://multi_json//lib/multi_json.rb#24 def reset_cached_options!(*_arg0); end # Set the JSON parser utilizing a symbol, string, or class. @@ -123,41 +117,50 @@ module MultiJson # * :json_pure # * :ok_json # * :yajl - # * :nsjsonserialization (MacRuby only) # * :gson (JRuby only) # * :jr_jackson (JRuby only) # - # source://multi_json//lib/multi_json.rb#90 + # source://multi_json//lib/multi_json.rb#79 def use(new_adapter); end # Executes passed block using specified adapter. # - # source://multi_json//lib/multi_json.rb#144 + # source://multi_json//lib/multi_json.rb#133 def with_adapter(new_adapter); end # Executes passed block using specified adapter. # - # source://multi_json//lib/multi_json.rb#144 + # source://multi_json//lib/multi_json.rb#140 def with_engine(new_adapter); end private - # source://multi_json//lib/multi_json.rb#155 + # Attempts to load and return the first installable adapter + # + # source://multi_json//lib/multi_json.rb#156 + def installable_adapter; end + + # source://multi_json//lib/multi_json.rb#166 def load_adapter_from_string_name(name); end + + # Checks for already loaded adapters and returns the first match + # + # source://multi_json//lib/multi_json.rb#145 + def loaded_adapter; end end -# source://multi_json//lib/multi_json.rb#31 +# source://multi_json//lib/multi_json.rb#29 MultiJson::ALIASES = T.let(T.unsafe(nil), Hash) # source://multi_json//lib/multi_json/adapter_error.rb#2 class MultiJson::AdapterError < ::ArgumentError - # Returns the value of attribute cause. + # @return [AdapterError] a new instance of AdapterError # # source://multi_json//lib/multi_json/adapter_error.rb#3 - def cause; end + def initialize(message = T.unsafe(nil), cause: T.unsafe(nil)); end class << self - # source://multi_json//lib/multi_json/adapter_error.rb#5 + # source://multi_json//lib/multi_json/adapter_error.rb#8 def build(original_exception); end end end @@ -194,22 +197,49 @@ module MultiJson::Options # source://multi_json//lib/multi_json/options.rb#31 def get_options(options, *args); end + + # source://multi_json//lib/multi_json/options.rb#41 + def handle_callable_options(options, *args); end + + # source://multi_json//lib/multi_json/options.rb#45 + def handle_hashable_options(options); end + + # @return [Boolean] + # + # source://multi_json//lib/multi_json/options.rb#37 + def options_callable?(options); end end # source://multi_json//lib/multi_json/options_cache.rb#2 module MultiJson::OptionsCache - extend ::MultiJson::OptionsCache + class << self + # Returns the value of attribute dump. + # + # source://multi_json//lib/multi_json/options_cache.rb#43 + def dump; end - # source://multi_json//lib/multi_json/options_cache.rb#10 - def fetch(type, key, &block); end + # Returns the value of attribute load. + # + # source://multi_json//lib/multi_json/options_cache.rb#43 + def load; end - # source://multi_json//lib/multi_json/options_cache.rb#5 - def reset; end + # source://multi_json//lib/multi_json/options_cache.rb#45 + def reset; end + end +end - private +# source://multi_json//lib/multi_json/options_cache.rb#3 +class MultiJson::OptionsCache::Store + # @return [Store] a new instance of Store + # + # source://multi_json//lib/multi_json/options_cache.rb#12 + def initialize; end + + # source://multi_json//lib/multi_json/options_cache.rb#23 + def fetch(key, &block); end - # source://multi_json//lib/multi_json/options_cache.rb#24 - def write(cache, key); end + # source://multi_json//lib/multi_json/options_cache.rb#17 + def reset; end end # Normally MultiJson is used with a few option sets for both dump/load @@ -218,15 +248,15 @@ end # this, we just reset the cache every time the number of keys outgrows # 1000. # -# source://multi_json//lib/multi_json/options_cache.rb#22 -MultiJson::OptionsCache::MAX_CACHE_SIZE = T.let(T.unsafe(nil), Integer) +# source://multi_json//lib/multi_json/options_cache.rb#9 +MultiJson::OptionsCache::Store::MAX_CACHE_SIZE = T.let(T.unsafe(nil), Integer) # source://multi_json//lib/multi_json/parse_error.rb#2 class MultiJson::ParseError < ::StandardError - # Returns the value of attribute cause. + # @return [ParseError] a new instance of ParseError # - # source://multi_json//lib/multi_json/parse_error.rb#3 - def cause; end + # source://multi_json//lib/multi_json/parse_error.rb#5 + def initialize(message = T.unsafe(nil), data: T.unsafe(nil), cause: T.unsafe(nil)); end # Returns the value of attribute data. # @@ -234,13 +264,13 @@ class MultiJson::ParseError < ::StandardError def data; end class << self - # source://multi_json//lib/multi_json/parse_error.rb#5 + # source://multi_json//lib/multi_json/parse_error.rb#11 def build(original_exception, data); end end end -# source://multi_json//lib/multi_json.rb#33 -MultiJson::REQUIREMENT_MAP = T.let(T.unsafe(nil), Array) +# source://multi_json//lib/multi_json.rb#31 +MultiJson::REQUIREMENT_MAP = T.let(T.unsafe(nil), Hash) # source://multi_json//lib/multi_json/version.rb#16 MultiJson::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/net-http@0.6.0.rbi b/sorbet/rbi/gems/net-http@0.6.0.rbi index 1d30b536..e10ad206 100644 --- a/sorbet/rbi/gems/net-http@0.6.0.rbi +++ b/sorbet/rbi/gems/net-http@0.6.0.rbi @@ -727,7 +727,7 @@ class Net::HTTP < ::Net::Protocol # # @return [Boolean] # - # source://net-http//lib/net/http.rb#1490 + # source://net-http//lib/net/http.rb#1494 def active?; end # Returns the string host name or host IP given as argument +address+ in ::new. @@ -922,7 +922,7 @@ class Net::HTTP < ::Net::Protocol # # # # - # source://net-http//lib/net/http.rb#2254 + # source://net-http//lib/net/http.rb#2312 def get2(path, initheader = T.unsafe(nil), &block); end # Sends a HEAD request to the server; @@ -951,7 +951,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.head('/todos/1') # => # # - # source://net-http//lib/net/http.rb#2267 + # source://net-http//lib/net/http.rb#2313 def head2(path, initheader = T.unsafe(nil), &block); end # Sets or returns whether to ignore end-of-file when reading a response body @@ -1277,7 +1277,7 @@ class Net::HTTP < ::Net::Protocol # # "{\n \"xyzzy\": \"\",\n \"id\": 201\n}" # - # source://net-http//lib/net/http.rb#2294 + # source://net-http//lib/net/http.rb#2314 def post2(path, data, initheader = T.unsafe(nil), &block); end # Sends a PROPFIND request to the server; @@ -1393,13 +1393,13 @@ class Net::HTTP < ::Net::Protocol # Returns the address of the proxy server, if defined, +nil+ otherwise; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//lib/net/http.rb#1880 + # source://net-http//lib/net/http.rb#1920 def proxyaddr; end # Returns the port number of the proxy server, if defined, +nil+ otherwise; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//lib/net/http.rb#1890 + # source://net-http//lib/net/http.rb#1921 def proxyport; end # Sends a PUT request to the server; @@ -1430,7 +1430,7 @@ class Net::HTTP < ::Net::Protocol # http.put('/todos/1', 'xyzzy') # # => # # - # source://net-http//lib/net/http.rb#2308 + # source://net-http//lib/net/http.rb#2315 def put2(path, data, initheader = T.unsafe(nil), &block); end # Returns the numeric (\Integer or \Float) number of seconds @@ -1856,7 +1856,7 @@ class Net::HTTP < ::Net::Protocol # Adds a message to debugging output # - # source://net-http//lib/net/http.rb#2553 + # source://net-http//lib/net/http.rb#2559 def D(msg); end # source://net-http//lib/net/http.rb#2545 @@ -2045,14 +2045,14 @@ class Net::HTTP < ::Net::Protocol # # @return [Boolean] # - # source://net-http//lib/net/http.rb#754 + # source://net-http//lib/net/http.rb#759 def is_version_1_1?; end # Returns +true+; retained for compatibility. # # @return [Boolean] # - # source://net-http//lib/net/http.rb#749 + # source://net-http//lib/net/http.rb#760 def is_version_1_2?; end # Returns a new \Net::HTTP object +http+ @@ -2087,6 +2087,9 @@ class Net::HTTP < ::Net::Protocol # source://net-http//lib/net/http.rb#1106 def new(address, port = T.unsafe(nil), p_addr = T.unsafe(nil), p_port = T.unsafe(nil), p_user = T.unsafe(nil), p_pass = T.unsafe(nil), p_no_proxy = T.unsafe(nil), p_use_ssl = T.unsafe(nil)); end + # source://net-http//lib/net/http.rb#1074 + def newobj(*_arg0); end + # Posts data to a host; returns a Net::HTTPResponse object. # # Argument +url+ must be a URL; @@ -2399,6 +2402,11 @@ module Net::HTTPExceptions # source://net-http//lib/net/http/exceptions.rb#7 def initialize(msg, res); end + # Returns the value of attribute response. + # + # source://net-http//lib/net/http/exceptions.rb#12 + def data; end + # Returns the value of attribute response. # # source://net-http//lib/net/http/exceptions.rb#11 @@ -2847,7 +2855,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#canonical_each is an alias for Net::HTTPHeader#each_capitalized. # - # source://net-http//lib/net/http/header.rb#484 + # source://net-http//lib/net/http/header.rb#491 def canonical_each; end # Returns +true+ if field 'Transfer-Encoding' @@ -2941,7 +2949,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#content_type= is an alias for Net::HTTPHeader#set_content_type. # - # source://net-http//lib/net/http/header.rb#772 + # source://net-http//lib/net/http/header.rb#776 def content_type=(type, params = T.unsafe(nil)); end # Removes the header for the given case-insensitive +key+ @@ -2974,7 +2982,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#each is an alias for Net::HTTPHeader#each_header. # - # source://net-http//lib/net/http/header.rb#364 + # source://net-http//lib/net/http/header.rb#371 def each; end # Like #each_header, but the keys are returned in capitalized form. @@ -3048,7 +3056,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#each_name is an alias for Net::HTTPHeader#each_key. # - # source://net-http//lib/net/http/header.rb#391 + # source://net-http//lib/net/http/header.rb#396 def each_key(&block); end # Calls the block with each field key: @@ -3158,7 +3166,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#form_data= is an alias for Net::HTTPHeader#set_form_data. # - # source://net-http//lib/net/http/header.rb#812 + # source://net-http//lib/net/http/header.rb#819 def form_data=(params, sep = T.unsafe(nil)); end # Returns the array field value for the given +key+, @@ -3186,7 +3194,7 @@ module Net::HTTPHeader # source://net-http//lib/net/http/header.rb#463 def key?(key); end - # source://net-http//lib/net/http/header.rb#208 + # source://net-http//lib/net/http/header.rb#212 def length; end # Returns the leading ('type') part of the @@ -3252,7 +3260,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#range= is an alias for Net::HTTPHeader#set_range. # - # source://net-http//lib/net/http/header.rb#576 + # source://net-http//lib/net/http/header.rb#605 def range=(r, e = T.unsafe(nil)); end # Returns the integer representing length of the value of field @@ -3955,7 +3963,7 @@ class Net::HTTPResponse # "{\n \"userId\": 1,\n \"id\": 1,\n \"title\": \"delectus aut autem\",\n \"completed\": false\n}" # nil # - # source://net-http//lib/net/http/response.rb#400 + # source://net-http//lib/net/http/response.rb#409 def entity; end # @raise [error_type()] @@ -3996,7 +4004,7 @@ class Net::HTTPResponse # The HTTP result message sent by the server. For example, 'Not Found'. # - # source://net-http//lib/net/http/response.rb#216 + # source://net-http//lib/net/http/response.rb#217 def msg; end # Gets the entity body returned by the remote HTTP server. diff --git a/sorbet/rbi/gems/net-imap@0.5.6.rbi b/sorbet/rbi/gems/net-imap@0.5.10.rbi similarity index 84% rename from sorbet/rbi/gems/net-imap@0.5.6.rbi rename to sorbet/rbi/gems/net-imap@0.5.10.rbi index e444d41c..d019d15f 100644 --- a/sorbet/rbi/gems/net-imap@0.5.6.rbi +++ b/sorbet/rbi/gems/net-imap@0.5.10.rbi @@ -5,7 +5,7 @@ # Please instead update this file by running `bin/tapioca gem net-imap`. -# source://net-imap//lib/net/imap.rb#746 +# source://net-imap//lib/net/imap.rb#790 class Net::IMAP < ::Net::Protocol include ::Net::IMAP::DeprecatedClientOptions include ::MonitorMixin @@ -13,297 +13,306 @@ class Net::IMAP < ::Net::Protocol include ::OpenSSL::SSL extend ::Net::IMAP::Authenticators - # source://net-imap//lib/net/imap/deprecated_client_options.rb#72 + # source://net-imap//lib/net/imap.rb#1082 def initialize(host, port_or_options = T.unsafe(nil), *deprecated, **options); end - # source://net-imap//lib/net/imap.rb#3150 + # source://net-imap//lib/net/imap.rb#3315 def add_response_handler(handler = T.unsafe(nil), &block); end - # source://net-imap//lib/net/imap.rb#1875 + # source://net-imap//lib/net/imap.rb#2034 def append(mailbox, message, flags = T.unsafe(nil), date_time = T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#1078 + # source://net-imap//lib/net/imap.rb#1229 def auth_capable?(mechanism); end - # source://net-imap//lib/net/imap.rb#1061 + # source://net-imap//lib/net/imap.rb#1212 def auth_mechanisms; end - # source://net-imap//lib/net/imap.rb#1369 + # source://net-imap//lib/net/imap.rb#1524 def authenticate(*args, sasl_ir: T.unsafe(nil), **props, &callback); end - # source://net-imap//lib/net/imap.rb#1037 + # source://net-imap//lib/net/imap.rb#1188 def capabilities; end - # source://net-imap//lib/net/imap.rb#1088 + # source://net-imap//lib/net/imap.rb#1239 def capabilities_cached?; end - # source://net-imap//lib/net/imap.rb#1126 + # source://net-imap//lib/net/imap.rb#1277 def capability; end - # source://net-imap//lib/net/imap.rb#1023 + # source://net-imap//lib/net/imap.rb#1175 def capability?(capability); end - # source://net-imap//lib/net/imap.rb#1023 + # source://net-imap//lib/net/imap.rb#1174 def capable?(capability); end - # source://net-imap//lib/net/imap.rb#1891 + # source://net-imap//lib/net/imap.rb#2050 def check; end - # source://net-imap//lib/net/imap.rb#1101 + # source://net-imap//lib/net/imap.rb#1252 def clear_cached_capabilities; end - # source://net-imap//lib/net/imap.rb#3083 + # source://net-imap//lib/net/imap.rb#3244 def clear_responses(type = T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#1901 + # source://net-imap//lib/net/imap.rb#2060 def close; end - # source://net-imap//lib/net/imap.rb#799 + # source://net-imap//lib/net/imap.rb#865 def config; end - # source://net-imap//lib/net/imap.rb#2628 + # source://net-imap//lib/net/imap.rb#970 + def connection_state; end + + # source://net-imap//lib/net/imap.rb#2789 def copy(set, mailbox); end - # source://net-imap//lib/net/imap.rb#1475 + # source://net-imap//lib/net/imap.rb#1634 def create(mailbox); end - # source://net-imap//lib/net/imap.rb#1487 + # source://net-imap//lib/net/imap.rb#1646 def delete(mailbox); end - # source://net-imap//lib/net/imap.rb#984 + # source://net-imap//lib/net/imap.rb#1138 def disconnect; end - # source://net-imap//lib/net/imap.rb#1009 + # source://net-imap//lib/net/imap.rb#1160 def disconnected?; end - # source://net-imap//lib/net/imap.rb#2858 + # source://net-imap//lib/net/imap.rb#3019 def enable(*capabilities); end - # source://net-imap//lib/net/imap.rb#1459 + # source://net-imap//lib/net/imap.rb#1616 def examine(mailbox, condstore: T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#1947 + # source://net-imap//lib/net/imap.rb#2108 def expunge; end - # source://net-imap//lib/net/imap.rb#3107 + # source://net-imap//lib/net/imap.rb#3268 def extract_responses(type); end - # source://net-imap//lib/net/imap.rb#2472 + # source://net-imap//lib/net/imap.rb#2633 def fetch(*_arg0, **_arg1, &_arg2); end - # source://net-imap//lib/net/imap.rb#1755 + # source://net-imap//lib/net/imap.rb#1914 def getacl(mailbox); end - # source://net-imap//lib/net/imap.rb#1699 + # source://net-imap//lib/net/imap.rb#1858 def getquota(mailbox); end - # source://net-imap//lib/net/imap.rb#1678 + # source://net-imap//lib/net/imap.rb#1837 def getquotaroot(mailbox); end - # source://net-imap//lib/net/imap.rb#793 + # source://net-imap//lib/net/imap.rb#859 def greeting; end - # source://net-imap//lib/net/imap.rb#810 + # source://net-imap//lib/net/imap.rb#891 def host; end - # source://net-imap//lib/net/imap.rb#1155 + # source://net-imap//lib/net/imap.rb#1306 def id(client_id = T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#2902 + # source://net-imap//lib/net/imap.rb#3063 def idle(timeout = T.unsafe(nil), &response_handler); end - # source://net-imap//lib/net/imap.rb#2938 + # source://net-imap//lib/net/imap.rb#3099 def idle_done; end - # source://net-imap//lib/net/imap.rb#807 + # source://net-imap//lib/net/imap.rb#885 def idle_response_timeout; end - # source://net-imap//lib/net/imap.rb#1559 + # source://net-imap//lib/net/imap.rb#1718 def list(refname, mailbox); end - # source://net-imap//lib/net/imap.rb#1400 + # source://net-imap//lib/net/imap.rb#1555 def login(user, password); end - # source://net-imap//lib/net/imap.rb#1183 + # source://net-imap//lib/net/imap.rb#1334 def logout; end - # source://net-imap//lib/net/imap.rb#1200 + # source://net-imap//lib/net/imap.rb#1351 def logout!; end - # source://net-imap//lib/net/imap.rb#1770 + # source://net-imap//lib/net/imap.rb#1929 def lsub(refname, mailbox); end - # source://net-imap//lib/net/imap.rb#2669 + # source://net-imap//lib/net/imap.rb#886 + def max_response_size; end + + # source://net-imap//lib/net/imap.rb#887 + def max_response_size=(val); end + + # source://net-imap//lib/net/imap.rb#2830 def move(set, mailbox); end - # source://net-imap//lib/net/imap.rb#1616 + # source://net-imap//lib/net/imap.rb#1775 def namespace; end - # source://net-imap//lib/net/imap.rb#1174 + # source://net-imap//lib/net/imap.rb#1325 def noop; end - # source://net-imap//lib/net/imap.rb#804 + # source://net-imap//lib/net/imap.rb#884 def open_timeout; end - # source://net-imap//lib/net/imap.rb#813 + # source://net-imap//lib/net/imap.rb#894 def port; end - # source://net-imap//lib/net/imap.rb#3160 + # source://net-imap//lib/net/imap.rb#3325 def remove_response_handler(handler); end - # source://net-imap//lib/net/imap.rb#1500 + # source://net-imap//lib/net/imap.rb#1659 def rename(mailbox, newname); end - # source://net-imap//lib/net/imap.rb#3133 + # source://net-imap//lib/net/imap.rb#3294 def response_handlers; end - # source://net-imap//lib/net/imap.rb#3049 + # source://net-imap//lib/net/imap.rb#3210 def responses(type = T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#2391 + # source://net-imap//lib/net/imap.rb#2552 def search(*_arg0, **_arg1, &_arg2); end - # source://net-imap//lib/net/imap.rb#1441 + # source://net-imap//lib/net/imap.rb#1596 def select(mailbox, condstore: T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#1737 + # source://net-imap//lib/net/imap.rb#1896 def setacl(mailbox, user, rights); end - # source://net-imap//lib/net/imap.rb#1717 + # source://net-imap//lib/net/imap.rb#1876 def setquota(mailbox, quota); end - # source://net-imap//lib/net/imap.rb#2717 + # source://net-imap//lib/net/imap.rb#2878 def sort(sort_keys, search_keys, charset); end - # source://net-imap//lib/net/imap.rb#821 + # source://net-imap//lib/net/imap.rb#902 def ssl_ctx; end - # source://net-imap//lib/net/imap.rb#828 + # source://net-imap//lib/net/imap.rb#909 def ssl_ctx_params; end - # source://net-imap//lib/net/imap/deprecated_client_options.rb#106 + # source://net-imap//lib/net/imap.rb#1395 def starttls(*deprecated, **options); end - # source://net-imap//lib/net/imap.rb#1837 + # source://net-imap//lib/net/imap.rb#1996 def status(mailbox, attr); end - # source://net-imap//lib/net/imap.rb#2584 + # source://net-imap//lib/net/imap.rb#2745 def store(set, attr, flags, unchangedsince: T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#1512 + # source://net-imap//lib/net/imap.rb#1671 def subscribe(mailbox); end - # source://net-imap//lib/net/imap.rb#2757 + # source://net-imap//lib/net/imap.rb#2918 def thread(algorithm, search_keys, charset); end - # source://net-imap//lib/net/imap.rb#979 + # source://net-imap//lib/net/imap.rb#1130 def tls_verified?; end - # source://net-imap//lib/net/imap.rb#2644 + # source://net-imap//lib/net/imap.rb#2805 def uid_copy(set, mailbox); end - # source://net-imap//lib/net/imap.rb#1977 + # source://net-imap//lib/net/imap.rb#2138 def uid_expunge(uid_set); end - # source://net-imap//lib/net/imap.rb#2534 + # source://net-imap//lib/net/imap.rb#2695 def uid_fetch(*_arg0, **_arg1, &_arg2); end - # source://net-imap//lib/net/imap.rb#2691 + # source://net-imap//lib/net/imap.rb#2852 def uid_move(set, mailbox); end - # source://net-imap//lib/net/imap.rb#2418 + # source://net-imap//lib/net/imap.rb#2579 def uid_search(*_arg0, **_arg1, &_arg2); end - # source://net-imap//lib/net/imap.rb#2732 + # source://net-imap//lib/net/imap.rb#2893 def uid_sort(sort_keys, search_keys, charset); end - # source://net-imap//lib/net/imap.rb#2607 + # source://net-imap//lib/net/imap.rb#2768 def uid_store(set, attr, flags, unchangedsince: T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#2771 + # source://net-imap//lib/net/imap.rb#2932 def uid_thread(algorithm, search_keys, charset); end - # source://net-imap//lib/net/imap.rb#1917 + # source://net-imap//lib/net/imap.rb#2077 def unselect; end - # source://net-imap//lib/net/imap.rb#1525 + # source://net-imap//lib/net/imap.rb#1684 def unsubscribe(mailbox); end - # source://net-imap//lib/net/imap.rb#1660 + # source://net-imap//lib/net/imap.rb#1819 def xlist(refname, mailbox); end private - # source://net-imap//lib/net/imap.rb#3603 + # source://net-imap//lib/net/imap.rb#3766 def build_ssl_ctx(ssl); end - # source://net-imap//lib/net/imap.rb#3339 + # source://net-imap//lib/net/imap.rb#3502 def capabilities_from_resp_code(resp); end - # source://net-imap//lib/net/imap.rb#3585 + # source://net-imap//lib/net/imap.rb#3748 def coerce_search_arg_to_seqset?(obj); end - # source://net-imap//lib/net/imap.rb#3594 + # source://net-imap//lib/net/imap.rb#3757 def coerce_search_array_arg_to_seqset?(obj); end - # source://net-imap//lib/net/imap.rb#3470 + # source://net-imap//lib/net/imap.rb#3633 def convert_return_opts(unconverted); end - # source://net-imap//lib/net/imap.rb#3554 + # source://net-imap//lib/net/imap.rb#3717 def copy_internal(cmd, set, mailbox); end - # source://net-imap//lib/net/imap.rb#3408 + # source://net-imap//lib/net/imap.rb#3571 def enforce_logindisabled?; end - # source://net-imap//lib/net/imap.rb#3416 + # source://net-imap//lib/net/imap.rb#3579 def expunge_internal(*_arg0, **_arg1, &_arg2); end - # source://net-imap//lib/net/imap.rb#3511 + # source://net-imap//lib/net/imap.rb#3674 def fetch_internal(cmd, set, attr, mod = T.unsafe(nil), partial: T.unsafe(nil), changedsince: T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#3388 + # source://net-imap//lib/net/imap.rb#3551 def generate_tag; end - # source://net-imap//lib/net/imap.rb#3302 + # source://net-imap//lib/net/imap.rb#3478 def get_response; end - # source://net-imap//lib/net/imap.rb#3181 + # source://net-imap//lib/net/imap.rb#3348 def get_server_greeting; end - # source://net-imap//lib/net/imap.rb#3274 + # source://net-imap//lib/net/imap.rb#3450 def get_tagged_response(tag, cmd, timeout = T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#3574 + # source://net-imap//lib/net/imap.rb#3737 def normalize_searching_criteria(criteria); end - # source://net-imap//lib/net/imap.rb#3393 + # source://net-imap//lib/net/imap.rb#3556 def put_string(str); end - # source://net-imap//lib/net/imap.rb#3207 + # source://net-imap//lib/net/imap.rb#3377 def receive_responses; end - # source://net-imap//lib/net/imap.rb#3326 + # source://net-imap//lib/net/imap.rb#3489 def record_untagged_response(resp); end - # source://net-imap//lib/net/imap.rb#3332 + # source://net-imap//lib/net/imap.rb#3495 def record_untagged_response_code(resp); end - # source://net-imap//lib/net/imap.rb#3632 + # source://net-imap//lib/net/imap.rb#3833 def sasl_adapter; end - # source://net-imap//lib/net/imap.rb#3436 + # source://net-imap//lib/net/imap.rb#3599 def search_args(keys, charset_arg = T.unsafe(nil), return: T.unsafe(nil), charset: T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#3485 + # source://net-imap//lib/net/imap.rb#3648 def search_internal(cmd, *_arg1, **_arg2, &_arg3); end - # source://net-imap//lib/net/imap.rb#3360 + # source://net-imap//lib/net/imap.rb#3523 def send_command(cmd, *args, &block); end - # source://net-imap//lib/net/imap.rb#3543 + # source://net-imap//lib/net/imap.rb#3706 def send_command_returning_fetch_results(*_arg0, **_arg1, &_arg2); end - # source://net-imap//lib/net/imap.rb#3351 + # source://net-imap//lib/net/imap.rb#3514 def send_command_with_continuations(cmd, *args); end # source://net-imap//lib/net/imap/command_data.rb#34 @@ -333,38 +342,56 @@ class Net::IMAP < ::Net::Protocol # source://net-imap//lib/net/imap/command_data.rb#117 def send_time_data(time); end - # source://net-imap//lib/net/imap.rb#3558 + # source://net-imap//lib/net/imap.rb#3721 def sort_internal(cmd, sort_keys, search_keys, charset); end - # source://net-imap//lib/net/imap.rb#3172 + # source://net-imap//lib/net/imap.rb#3337 def start_imap_connection; end - # source://net-imap//lib/net/imap.rb#3189 + # source://net-imap//lib/net/imap.rb#3359 def start_receiver_thread; end - # source://net-imap//lib/net/imap.rb#3618 + # source://net-imap//lib/net/imap.rb#3781 def start_tls_session; end - # source://net-imap//lib/net/imap.rb#3535 + # source://net-imap//lib/net/imap.rb#3796 + def state_authenticated!(resp = T.unsafe(nil)); end + + # source://net-imap//lib/net/imap.rb#3815 + def state_logout!; end + + # source://net-imap//lib/net/imap.rb#3803 + def state_selected!; end + + # source://net-imap//lib/net/imap.rb#3809 + def state_unselected!; end + + # source://net-imap//lib/net/imap.rb#3698 def store_internal(cmd, set, attr, flags, unchangedsince: T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#3198 + # source://net-imap//lib/net/imap.rb#3368 def tcp_socket(host, port); end - # source://net-imap//lib/net/imap.rb#3566 + # source://net-imap//lib/net/imap.rb#3729 def thread_internal(cmd, algorithm, search_keys, charset); end + # source://net-imap//lib/net/imap.rb#3824 + def try_state_logout?; end + # source://net-imap//lib/net/imap/command_data.rb#13 def validate_data(data); end class << self - # source://net-imap//lib/net/imap.rb#766 + # source://net-imap//lib/net/imap.rb#825 + def SequenceSet(set = T.unsafe(nil)); end + + # source://net-imap//lib/net/imap.rb#830 def config; end - # source://net-imap//lib/net/imap.rb#769 + # source://net-imap//lib/net/imap.rb#834 def debug; end - # source://net-imap//lib/net/imap.rb#772 + # source://net-imap//lib/net/imap.rb#838 def debug=(val); end # :call-seq: decode_date(string) -> Date @@ -412,19 +439,19 @@ class Net::IMAP < ::Net::Protocol # source://net-imap//lib/net/imap/data_encoding.rb#57 def decode_utf7(s); end - # source://net-imap//lib/net/imap.rb#777 + # source://net-imap//lib/net/imap.rb#853 def default_imap_port; end - # source://net-imap//lib/net/imap.rb#782 + # source://net-imap//lib/net/imap.rb#854 def default_imaps_port; end - # source://net-imap//lib/net/imap.rb#777 + # source://net-imap//lib/net/imap.rb#843 def default_port; end - # source://net-imap//lib/net/imap.rb#782 + # source://net-imap//lib/net/imap.rb#855 def default_ssl_port; end - # source://net-imap//lib/net/imap.rb#782 + # source://net-imap//lib/net/imap.rb#848 def default_tls_port; end # Formats +time+ as an IMAP4 date. @@ -443,7 +470,7 @@ class Net::IMAP < ::Net::Protocol # # Formats +time+ as an IMAP4 date-time. # - # source://net-imap//lib/net/imap/data_encoding.rb#98 + # source://net-imap//lib/net/imap/data_encoding.rb#132 def encode_time(time); end # Encode a string from UTF-8 format to modified UTF-7. @@ -453,7 +480,7 @@ class Net::IMAP < ::Net::Protocol # Formats +time+ as an IMAP4 date. # - # source://net-imap//lib/net/imap/data_encoding.rb#80 + # source://net-imap//lib/net/imap/data_encoding.rb#133 def format_date(date); end # DEPRECATED:: The original version returned incorrectly formatted strings. @@ -471,7 +498,7 @@ class Net::IMAP < ::Net::Protocol # # Formats +time+ as an IMAP4 date-time. # - # source://net-imap//lib/net/imap/data_encoding.rb#98 + # source://net-imap//lib/net/imap/data_encoding.rb#134 def format_time(time); end # :call-seq: decode_date(string) -> Date @@ -481,7 +508,7 @@ class Net::IMAP < ::Net::Protocol # Double quotes are optional. Day of month may be padded with zero or # space. See STRFDATE. # - # source://net-imap//lib/net/imap/data_encoding.rb#90 + # source://net-imap//lib/net/imap/data_encoding.rb#135 def parse_date(string); end # :call-seq: decode_datetime(string) -> DateTime @@ -495,7 +522,7 @@ class Net::IMAP < ::Net::Protocol # # See STRFTIME. # - # source://net-imap//lib/net/imap/data_encoding.rb#112 + # source://net-imap//lib/net/imap/data_encoding.rb#136 def parse_datetime(string); end # :call-seq: decode_time(string) -> Time @@ -504,10 +531,10 @@ class Net::IMAP < ::Net::Protocol # # Same as +decode_datetime+, but returning a Time instead. # - # source://net-imap//lib/net/imap/data_encoding.rb#124 + # source://net-imap//lib/net/imap/data_encoding.rb#137 def parse_time(string); end - # source://net-imap//lib/net/imap.rb#3642 + # source://net-imap//lib/net/imap.rb#3843 def saslprep(string, **opts); end end end @@ -600,7 +627,7 @@ end # should use BodyTypeBasic. # BodyTypeMultipart:: for multipart/* parts # -# source://net-imap//lib/net/imap/response_data.rb#787 +# source://net-imap//lib/net/imap/response_data.rb#786 module Net::IMAP::BodyStructure; end # Net::IMAP::BodyTypeBasic represents basic body structures of messages and @@ -612,7 +639,7 @@ module Net::IMAP::BodyStructure; end # for full description of all +BODYSTRUCTURE+ fields, and also # Net::IMAP@Message+envelope+and+body+structure for other relevant RFCs. # -# source://net-imap//lib/net/imap/response_data.rb#804 +# source://net-imap//lib/net/imap/response_data.rb#803 class Net::IMAP::BodyTypeBasic < ::Struct include ::Net::IMAP::BodyStructure @@ -627,7 +654,7 @@ class Net::IMAP::BodyTypeBasic < ::Struct # for something else? # ++ # - # source://net-imap//lib/net/imap/response_data.rb#915 + # source://net-imap//lib/net/imap/response_data.rb#914 def media_subtype; end # :call-seq: multipart? -> false @@ -636,7 +663,7 @@ class Net::IMAP::BodyTypeBasic < ::Struct # # @return [Boolean] # - # source://net-imap//lib/net/imap/response_data.rb#901 + # source://net-imap//lib/net/imap/response_data.rb#900 def multipart?; end end @@ -654,7 +681,7 @@ end # * encoding[rdoc-ref:BodyTypeBasic#encoding] # * size[rdoc-ref:BodyTypeBasic#size] # -# source://net-imap//lib/net/imap/response_data.rb#987 +# source://net-imap//lib/net/imap/response_data.rb#986 class Net::IMAP::BodyTypeMessage < ::Struct include ::Net::IMAP::BodyStructure @@ -662,7 +689,7 @@ class Net::IMAP::BodyTypeMessage < ::Struct # generate a warning message to +stderr+, then return # the value of +subtype+. # - # source://net-imap//lib/net/imap/response_data.rb#1013 + # source://net-imap//lib/net/imap/response_data.rb#1012 def media_subtype; end # :call-seq: multipart? -> false @@ -671,14 +698,14 @@ class Net::IMAP::BodyTypeMessage < ::Struct # # @return [Boolean] # - # source://net-imap//lib/net/imap/response_data.rb#1006 + # source://net-imap//lib/net/imap/response_data.rb#1005 def multipart?; end end # Net::IMAP::BodyTypeMultipart represents body structures of messages and # message parts, when Content-Type is multipart/*. # -# source://net-imap//lib/net/imap/response_data.rb#1025 +# source://net-imap//lib/net/imap/response_data.rb#1024 class Net::IMAP::BodyTypeMultipart < ::Struct include ::Net::IMAP::BodyStructure @@ -686,7 +713,7 @@ class Net::IMAP::BodyTypeMultipart < ::Struct # generate a warning message to +stderr+, then return # the value of +subtype+. # - # source://net-imap//lib/net/imap/response_data.rb#1089 + # source://net-imap//lib/net/imap/response_data.rb#1088 def media_subtype; end # :call-seq: multipart? -> true @@ -695,7 +722,7 @@ class Net::IMAP::BodyTypeMultipart < ::Struct # # @return [Boolean] # - # source://net-imap//lib/net/imap/response_data.rb#1081 + # source://net-imap//lib/net/imap/response_data.rb#1080 def multipart?; end end @@ -712,7 +739,7 @@ end # * encoding[rdoc-ref:BodyTypeBasic#encoding] # * size[rdoc-ref:BodyTypeBasic#size] # -# source://net-imap//lib/net/imap/response_data.rb#941 +# source://net-imap//lib/net/imap/response_data.rb#940 class Net::IMAP::BodyTypeText < ::Struct include ::Net::IMAP::BodyStructure @@ -720,7 +747,7 @@ class Net::IMAP::BodyTypeText < ::Struct # generate a warning message to +stderr+, then return # the value of +subtype+. # - # source://net-imap//lib/net/imap/response_data.rb#961 + # source://net-imap//lib/net/imap/response_data.rb#960 def media_subtype; end # :call-seq: multipart? -> false @@ -729,7 +756,7 @@ class Net::IMAP::BodyTypeText < ::Struct # # @return [Boolean] # - # source://net-imap//lib/net/imap/response_data.rb#954 + # source://net-imap//lib/net/imap/response_data.rb#953 def multipart?; end end @@ -751,11 +778,28 @@ class Net::IMAP::ClientID < ::Net::IMAP::CommandData end class Net::IMAP::CommandData < ::Net::IMAP::DataLite + # source://net-imap//lib/net/imap/command_data.rb#123 + def data; end + # source://net-imap//lib/net/imap/command_data.rb#124 def send_data(imap, tag); end # source://net-imap//lib/net/imap/command_data.rb#128 def validate; end + + class << self + # source://net-imap//lib/net/imap/command_data.rb#123 + def [](*_arg0); end + + # source://net-imap//lib/net/imap/command_data.rb#123 + def inspect; end + + # source://net-imap//lib/net/imap/command_data.rb#123 + def members; end + + # source://net-imap//lib/net/imap/command_data.rb#123 + def new(*_arg0); end + end end # Net::IMAP::Config (available since +v0.4.13+) stores @@ -889,7 +933,7 @@ class Net::IMAP::Config # @yield [_self] # @yieldparam _self [Net::IMAP::Config] the object that the method was called on # - # source://net-imap//lib/net/imap/config.rb#356 + # source://net-imap//lib/net/imap/config.rb#409 def initialize(parent = T.unsafe(nil), **attrs); end # :call-seq: load_defaults(version) -> self @@ -902,20 +946,20 @@ class Net::IMAP::Config # # See Config@Versioned+defaults and Config@Named+defaults. # - # source://net-imap//lib/net/imap/config.rb#407 + # source://net-imap//lib/net/imap/config.rb#460 def load_defaults(version); end - # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + # source://net-imap//lib/net/imap/config.rb#335 def responses_without_args; end - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#50 + # source://net-imap//lib/net/imap/config.rb#336 def responses_without_args=(val); end # :call-seq: to_h -> hash # # Returns all config attributes in a hash. # - # source://net-imap//lib/net/imap/config.rb#416 + # source://net-imap//lib/net/imap/config.rb#469 def to_h; end # :call-seq: update(**attrs) -> self @@ -929,7 +973,7 @@ class Net::IMAP::Config # *NOTE:* #update is not atomic. If an exception is raised due to an # invalid attribute value, +attrs+ may be partially applied. # - # source://net-imap//lib/net/imap/config.rb#372 + # source://net-imap//lib/net/imap/config.rb#425 def update(**attrs); end # :call-seq: @@ -943,12 +987,12 @@ class Net::IMAP::Config # # If +self+ is frozen, the copy will also be frozen. # - # source://net-imap//lib/net/imap/config.rb#390 + # source://net-imap//lib/net/imap/config.rb#443 def with(**attrs); end protected - # source://net-imap//lib/net/imap/config.rb#420 + # source://net-imap//lib/net/imap/config.rb#473 def defaults_hash; end class << self @@ -969,7 +1013,7 @@ class Net::IMAP::Config # # Given a config, returns that same config. # - # source://net-imap//lib/net/imap/config.rb#153 + # source://net-imap//lib/net/imap/config.rb#170 def [](config); end # The default config, which is hardcoded and frozen. @@ -983,8 +1027,18 @@ class Net::IMAP::Config def global; end # A hash of hard-coded configurations, indexed by version number or name. + # Values can be accessed with any object that responds to +to_sym+ or + # +to_r+/+to_f+ with a non-zero number. + # + # Config::[] gets named or numbered versions from this hash. + # + # For example: + # Net::IMAP::Config.version_defaults[0.5] == Net::IMAP::Config[0.5] + # Net::IMAP::Config[0.5] == Net::IMAP::Config[0.5r] # => true + # Net::IMAP::Config["current"] == Net::IMAP::Config[:current] # => true + # Net::IMAP::Config["0.5.6"] == Net::IMAP::Config[0.5r] # => true # - # source://net-imap//lib/net/imap/config.rb#134 + # source://net-imap//lib/net/imap/config.rb#144 def version_defaults; end end end @@ -1008,16 +1062,16 @@ module Net::IMAP::Config::AttrAccessors # source://net-imap//lib/net/imap/config/attr_accessors.rb#45 def initialize; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#203 def debug(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#203 def debug=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#267 def enforce_logindisabled(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#267 def enforce_logindisabled=(*args, **_arg1, &block); end # Freezes the internal attributes struct, in addition to +self+. @@ -1025,40 +1079,46 @@ module Net::IMAP::Config::AttrAccessors # source://net-imap//lib/net/imap/config/attr_accessors.rb#51 def freeze; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#229 def idle_response_timeout(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#229 def idle_response_timeout=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#303 + def max_response_size(*args, **_arg1, &block); end + + # source://net-imap//lib/net/imap/config.rb#303 + def max_response_size=(*args, **_arg1, &block); end + + # source://net-imap//lib/net/imap/config.rb#221 def open_timeout(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#221 def open_timeout=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#402 def parser_max_deprecated_uidplus_data_size(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#402 def parser_max_deprecated_uidplus_data_size=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#376 def parser_use_deprecated_uidplus_data(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#376 def parser_use_deprecated_uidplus_data=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#331 def responses_without_block(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#331 def responses_without_block=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#245 def sasl_ir(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/config.rb#245 def sasl_ir=(*args, **_arg1, &block); end protected @@ -1099,30 +1159,76 @@ module Net::IMAP::Config::AttrAccessors::Macros def attr_accessor(name); end end -# source://net-imap//lib/net/imap/config.rb#0 +# source://net-imap//lib/net/imap/config.rb#410 class Net::IMAP::Config::AttrAccessors::Struct < ::Struct + # source://net-imap//lib/net/imap/config.rb#410 def debug; end + + # source://net-imap//lib/net/imap/config.rb#410 def debug=(_); end + + # source://net-imap//lib/net/imap/config.rb#410 def enforce_logindisabled; end + + # source://net-imap//lib/net/imap/config.rb#410 def enforce_logindisabled=(_); end + + # source://net-imap//lib/net/imap/config.rb#410 def idle_response_timeout; end + + # source://net-imap//lib/net/imap/config.rb#410 def idle_response_timeout=(_); end + + # source://net-imap//lib/net/imap/config.rb#410 + def max_response_size; end + + # source://net-imap//lib/net/imap/config.rb#410 + def max_response_size=(_); end + + # source://net-imap//lib/net/imap/config.rb#410 def open_timeout; end + + # source://net-imap//lib/net/imap/config.rb#410 def open_timeout=(_); end + + # source://net-imap//lib/net/imap/config.rb#410 def parser_max_deprecated_uidplus_data_size; end + + # source://net-imap//lib/net/imap/config.rb#410 def parser_max_deprecated_uidplus_data_size=(_); end + + # source://net-imap//lib/net/imap/config.rb#410 def parser_use_deprecated_uidplus_data; end + + # source://net-imap//lib/net/imap/config.rb#410 def parser_use_deprecated_uidplus_data=(_); end + + # source://net-imap//lib/net/imap/config.rb#410 def responses_without_block; end + + # source://net-imap//lib/net/imap/config.rb#410 def responses_without_block=(_); end + + # source://net-imap//lib/net/imap/config.rb#410 def sasl_ir; end + + # source://net-imap//lib/net/imap/config.rb#410 def sasl_ir=(_); end class << self + # source://net-imap//lib/net/imap/config.rb#410 def [](*_arg0); end + + # source://net-imap//lib/net/imap/config.rb#410 def inspect; end + + # source://net-imap//lib/net/imap/config.rb#410 def keyword_init?; end + + # source://net-imap//lib/net/imap/config.rb#410 def members; end + + # source://net-imap//lib/net/imap/config.rb#410 def new(*_arg0); end end end @@ -1156,13 +1262,13 @@ module Net::IMAP::Config::AttrInheritance # source://net-imap//lib/net/imap/config/attr_inheritance.rb#48 def initialize(parent = T.unsafe(nil)); end - # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + # source://net-imap//lib/net/imap/config.rb#203 def debug; end - # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + # source://net-imap//lib/net/imap/config.rb#267 def enforce_logindisabled; end - # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + # source://net-imap//lib/net/imap/config.rb#229 def idle_response_timeout; end # Returns +true+ if +attr+ is inherited from #parent and not overridden @@ -1173,12 +1279,15 @@ module Net::IMAP::Config::AttrInheritance # source://net-imap//lib/net/imap/config/attr_inheritance.rb#59 def inherited?(attr); end + # source://net-imap//lib/net/imap/config.rb#303 + def max_response_size; end + # Creates a new config, which inherits from +self+. # # source://net-imap//lib/net/imap/config/attr_inheritance.rb#55 def new(**attrs); end - # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + # source://net-imap//lib/net/imap/config.rb#221 def open_timeout; end # The parent Config object @@ -1186,10 +1295,10 @@ module Net::IMAP::Config::AttrInheritance # source://net-imap//lib/net/imap/config/attr_inheritance.rb#46 def parent; end - # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + # source://net-imap//lib/net/imap/config.rb#402 def parser_max_deprecated_uidplus_data_size; end - # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + # source://net-imap//lib/net/imap/config.rb#376 def parser_use_deprecated_uidplus_data; end # :call-seq: @@ -1203,10 +1312,10 @@ module Net::IMAP::Config::AttrInheritance # source://net-imap//lib/net/imap/config/attr_inheritance.rb#68 def reset(attr = T.unsafe(nil)); end - # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + # source://net-imap//lib/net/imap/config.rb#331 def responses_without_block; end - # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + # source://net-imap//lib/net/imap/config.rb#245 def sasl_ir; end private @@ -1248,71 +1357,211 @@ end module Net::IMAP::Config::AttrTypeCoercion mixes_in_class_methods ::Net::IMAP::Config::AttrTypeCoercion::Macros - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#39 + # source://net-imap//lib/net/imap/config.rb#203 def debug=(val); end - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#40 + # source://net-imap//lib/net/imap/config.rb#203 def debug?; end - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#50 + # source://net-imap//lib/net/imap/config.rb#267 def enforce_logindisabled=(val); end - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#44 + # source://net-imap//lib/net/imap/config.rb#229 def idle_response_timeout=(val); end - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#44 + # source://net-imap//lib/net/imap/config.rb#303 + def max_response_size=(val); end + + # source://net-imap//lib/net/imap/config.rb#221 def open_timeout=(val); end - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#44 + # source://net-imap//lib/net/imap/config.rb#402 def parser_max_deprecated_uidplus_data_size=(val); end - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#50 + # source://net-imap//lib/net/imap/config.rb#376 def parser_use_deprecated_uidplus_data=(val); end - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#50 + # source://net-imap//lib/net/imap/config.rb#331 def responses_without_block=(val); end - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#39 + # source://net-imap//lib/net/imap/config.rb#245 def sasl_ir=(val); end - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#40 + # source://net-imap//lib/net/imap/config.rb#245 def sasl_ir?; end class << self - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#29 + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#42 def attr_accessor(attr, type: T.unsafe(nil)); end - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#38 - def boolean(attr); end - - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#47 - def enum(attr, enum); end - - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#43 - def integer(attr); end - private # @private # - # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#24 + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#26 def included(mod); end + + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#32 + def safe(*_arg0, **_arg1, &_arg2); end end end +# source://net-imap//lib/net/imap/config/attr_type_coercion.rb#39 +Net::IMAP::Config::AttrTypeCoercion::Boolean = T.let(T.unsafe(nil), Proc) + +# source://net-imap//lib/net/imap/config/attr_type_coercion.rb#50 +Net::IMAP::Config::AttrTypeCoercion::Enum = T.let(T.unsafe(nil), Proc) + # :stopdoc: internal APIs only # # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#16 module Net::IMAP::Config::AttrTypeCoercion::Macros # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#17 def attr_accessor(attr, type: T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#22 + def Integer?; end + + class << self + # @return [Boolean] + # + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#22 + def Integer?; end + end end +# source://net-imap//lib/net/imap/config/attr_type_coercion.rb#48 +Net::IMAP::Config::AttrTypeCoercion::NilOrInteger = T.let(T.unsafe(nil), Proc) + +# source://net-imap//lib/net/imap/config/attr_type_coercion.rb#38 +Net::IMAP::Config::AttrTypeCoercion::Types = T.let(T.unsafe(nil), Hash) + # Array of attribute names that are _not_ loaded by #load_defaults. # # source://net-imap//lib/net/imap/config.rb#124 Net::IMAP::Config::DEFAULT_TO_INHERIT = T.let(T.unsafe(nil), Array) +# source://net-imap//lib/net/imap/connection_state.rb#5 +class Net::IMAP::ConnectionState < ::Net::IMAP::DataLite + # @return [Boolean] + # + # source://net-imap//lib/net/imap/connection_state.rb#32 + def authenticated?; end + + # source://net-imap//lib/net/imap/connection_state.rb#17 + def deconstruct; end + + # source://net-imap//lib/net/imap/connection_state.rb#19 + def deconstruct_keys(names); end + + # @return [Boolean] + # + # source://net-imap//lib/net/imap/connection_state.rb#34 + def logout?; end + + # source://net-imap//lib/net/imap/connection_state.rb#14 + def name; end + + # @return [Boolean] + # + # source://net-imap//lib/net/imap/connection_state.rb#31 + def not_authenticated?; end + + # @return [Boolean] + # + # source://net-imap//lib/net/imap/connection_state.rb#33 + def selected?; end + + # source://net-imap//lib/net/imap/connection_state.rb#13 + def symbol; end + + # source://net-imap//lib/net/imap/connection_state.rb#26 + def to_h(&block); end + + # source://net-imap//lib/net/imap/connection_state.rb#15 + def to_sym; end +end + +class Net::IMAP::ConnectionState::Authenticated < ::Net::IMAP::ConnectionState + class << self + # source://net-imap//lib/net/imap/connection_state.rb#8 + def [](*_arg0); end + + # source://net-imap//lib/net/imap/connection_state.rb#8 + def inspect; end + + # source://net-imap//lib/net/imap/connection_state.rb#8 + def members; end + + # source://net-imap//lib/net/imap/connection_state.rb#8 + def new(*_arg0); end + end +end + +# source://net-imap//lib/net/imap/connection_state.rb#9 +Net::IMAP::ConnectionState::Authenticated::NAME = T.let(T.unsafe(nil), Symbol) + +class Net::IMAP::ConnectionState::Logout < ::Net::IMAP::ConnectionState + class << self + # source://net-imap//lib/net/imap/connection_state.rb#8 + def [](*_arg0); end + + # source://net-imap//lib/net/imap/connection_state.rb#8 + def inspect; end + + # source://net-imap//lib/net/imap/connection_state.rb#8 + def members; end + + # source://net-imap//lib/net/imap/connection_state.rb#8 + def new(*_arg0); end + end +end + +# source://net-imap//lib/net/imap/connection_state.rb#9 +Net::IMAP::ConnectionState::Logout::NAME = T.let(T.unsafe(nil), Symbol) + +class Net::IMAP::ConnectionState::NotAuthenticated < ::Net::IMAP::ConnectionState + class << self + # source://net-imap//lib/net/imap/connection_state.rb#8 + def [](*_arg0); end + + # source://net-imap//lib/net/imap/connection_state.rb#8 + def inspect; end + + # source://net-imap//lib/net/imap/connection_state.rb#8 + def members; end + + # source://net-imap//lib/net/imap/connection_state.rb#8 + def new(*_arg0); end + end +end + +# source://net-imap//lib/net/imap/connection_state.rb#9 +Net::IMAP::ConnectionState::NotAuthenticated::NAME = T.let(T.unsafe(nil), Symbol) + +class Net::IMAP::ConnectionState::Selected < ::Net::IMAP::ConnectionState + class << self + # source://net-imap//lib/net/imap/connection_state.rb#8 + def [](*_arg0); end + + # source://net-imap//lib/net/imap/connection_state.rb#8 + def inspect; end + + # source://net-imap//lib/net/imap/connection_state.rb#8 + def members; end + + # source://net-imap//lib/net/imap/connection_state.rb#8 + def new(*_arg0); end + end +end + +# source://net-imap//lib/net/imap/connection_state.rb#9 +Net::IMAP::ConnectionState::Selected::NAME = T.let(T.unsafe(nil), Symbol) + # >>> # *NOTE:* CopyUIDData will replace UIDPlusData for +COPYUID+ in the # +0.6.0+ release. To use CopyUIDData before +0.6.0+, set @@ -1358,7 +1607,7 @@ class Net::IMAP::CopyUIDData < ::Net::IMAP::DataLite # # Related: source_uid_for, each_uid_pair, uid_mapping # - # source://net-imap//lib/net/imap/uidplus_data.rb#186 + # source://net-imap//lib/net/imap/uidplus_data.rb#190 def [](source_uid); end # :call-seq: @@ -1386,7 +1635,7 @@ class Net::IMAP::CopyUIDData < ::Net::IMAP::DataLite # # Related: uid_mapping, assigned_uid_for, source_uid_for # - # source://net-imap//lib/net/imap/uidplus_data.rb#216 + # source://net-imap//lib/net/imap/uidplus_data.rb#225 def each; end # Yields a pair of UIDs for each copied message. The first is the @@ -1400,7 +1649,7 @@ class Net::IMAP::CopyUIDData < ::Net::IMAP::DataLite # # Related: uid_mapping, assigned_uid_for, source_uid_for # - # source://net-imap//lib/net/imap/uidplus_data.rb#216 + # source://net-imap//lib/net/imap/uidplus_data.rb#224 def each_pair; end # Yields a pair of UIDs for each copied message. The first is the @@ -1563,7 +1812,7 @@ module Net::IMAP::DeprecatedClientOptions def create_ssl_params(certs = T.unsafe(nil), verify = T.unsafe(nil)); end end -# source://net-imap//lib/net/imap.rb#750 +# source://net-imap//lib/net/imap.rb#794 Net::IMAP::ENABLE_ALIASES = T.let(T.unsafe(nil), Hash) # An "extended search" response (+ESEARCH+). ESearchResult should be @@ -1698,6 +1947,7 @@ class Net::IMAP::ESearchResult < ::Net::IMAP::DataLite # source://net-imap//lib/net/imap/esearch_result.rb#47 def to_a; end + # source://net-imap//lib/net/imap/esearch_result.rb#63 def uid?; end end @@ -1734,7 +1984,7 @@ end # # See also: UnparsedData, UnparsedNumericResponseData, IgnoredResponse # -# source://net-imap//lib/net/imap/response_data.rb#126 +# source://net-imap//lib/net/imap/response_data.rb#125 class Net::IMAP::ExtensionData < ::Struct; end # Net::IMAP::FetchStruct is the superclass for FetchData and UIDFetchData. @@ -1913,7 +2163,7 @@ class Net::IMAP::FetchStruct < ::Struct # This is the same as getting the value for "BODYSTRUCTURE" from # #attr. # - # source://net-imap//lib/net/imap/fetch_data.rb#295 + # source://net-imap//lib/net/imap/fetch_data.rb#297 def body_structure; end # :call-seq: @@ -2051,7 +2301,7 @@ class Net::IMAP::FetchStruct < ::Struct # attr["INTERNALDATE"] returns a string, and this method # returns a Time object. # - # source://net-imap//lib/net/imap/fetch_data.rb#335 + # source://net-imap//lib/net/imap/fetch_data.rb#339 def internal_date; end # :call-seq: internaldate -> Time or nil @@ -2325,7 +2575,7 @@ Net::IMAP::HAS_NO_CHILDREN = T.let(T.unsafe(nil), Symbol) # # It matches no IMAP standard. # -# source://net-imap//lib/net/imap/response_data.rb#71 +# source://net-imap//lib/net/imap/response_data.rb#70 class Net::IMAP::IgnoredResponse < ::Net::IMAP::UntaggedResponse; end # Error raised when the server sends an invalid response. @@ -2339,7 +2589,7 @@ class Net::IMAP::IgnoredResponse < ::Net::IMAP::UntaggedResponse; end # can be raised before the response is fully parsed. A related # ResponseParseError or ResponseError may be the #cause. # -# source://net-imap//lib/net/imap/errors.rb#66 +# source://net-imap//lib/net/imap/errors.rb#99 class Net::IMAP::InvalidResponseError < ::Net::IMAP::Error; end # Mailbox attribute indicating that this mailbox is where messages deemed to @@ -2431,7 +2681,7 @@ Net::IMAP::NO_SELECT = T.let(T.unsafe(nil), Symbol) # Requires either +NAMESPACE+ [RFC2342[https://www.rfc-editor.org/rfc/rfc2342]] # or +IMAP4rev2+ capability. # -# source://net-imap//lib/net/imap/response_data.rb#467 +# source://net-imap//lib/net/imap/response_data.rb#466 class Net::IMAP::Namespace < ::Struct; end # Namespaces represents the data of an untagged +NAMESPACE+ response, @@ -2443,7 +2693,7 @@ class Net::IMAP::Namespace < ::Struct; end # Requires either +NAMESPACE+ [RFC2342[https://www.rfc-editor.org/rfc/rfc2342]] # or +IMAP4rev2+ capability. # -# source://net-imap//lib/net/imap/response_data.rb#496 +# source://net-imap//lib/net/imap/response_data.rb#495 class Net::IMAP::Namespaces < ::Struct; end # Common validators of number and nz_number types @@ -2562,16 +2812,16 @@ end # source://net-imap//lib/net/imap/flags.rb#176 Net::IMAP::REMOTE = T.let(T.unsafe(nil), Symbol) -# source://net-imap//lib/net/imap.rb#2947 +# source://net-imap//lib/net/imap.rb#3108 Net::IMAP::RESPONSES_DEPRECATION_MSG = T.let(T.unsafe(nil), String) -# source://net-imap//lib/net/imap/errors.rb#80 +# source://net-imap//lib/net/imap/errors.rb#113 Net::IMAP::RESPONSE_ERRORS = T.let(T.unsafe(nil), Hash) -# source://net-imap//lib/net/imap.rb#3433 +# source://net-imap//lib/net/imap.rb#3596 Net::IMAP::RETURN_START = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap.rb#3432 +# source://net-imap//lib/net/imap.rb#3595 Net::IMAP::RETURN_WHOLE = T.let(T.unsafe(nil), Regexp) # source://net-imap//lib/net/imap/command_data.rb#132 @@ -2583,21 +2833,21 @@ end # Superclass of all errors used to encapsulate "fail" responses # from the server. # -# source://net-imap//lib/net/imap/errors.rb#26 +# source://net-imap//lib/net/imap/errors.rb#59 class Net::IMAP::ResponseError < ::Net::IMAP::Error # @return [ResponseError] a new instance of ResponseError # - # source://net-imap//lib/net/imap/errors.rb#31 + # source://net-imap//lib/net/imap/errors.rb#64 def initialize(response); end # The response that caused this error # - # source://net-imap//lib/net/imap/errors.rb#29 + # source://net-imap//lib/net/imap/errors.rb#62 def response; end # The response that caused this error # - # source://net-imap//lib/net/imap/errors.rb#29 + # source://net-imap//lib/net/imap/errors.rb#62 def response=(_arg0); end end @@ -2619,47 +2869,47 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser.rb#20 def initialize(config: T.unsafe(nil)); end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#477 def CRLF!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#96 + # source://net-imap//lib/net/imap/response_parser.rb#477 def CRLF?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#478 def EOF!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#96 + # source://net-imap//lib/net/imap/response_parser.rb#478 def EOF?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#460 def NIL!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#96 + # source://net-imap//lib/net/imap/response_parser.rb#460 def NIL?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#46 + # source://net-imap//lib/net/imap/response_parser.rb#430 def PLUS!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#35 + # source://net-imap//lib/net/imap/response_parser.rb#430 def PLUS?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#46 + # source://net-imap//lib/net/imap/response_parser.rb#429 def SP!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#35 + # source://net-imap//lib/net/imap/response_parser.rb#429 def SP?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#46 + # source://net-imap//lib/net/imap/response_parser.rb#431 def STAR!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#35 + # source://net-imap//lib/net/imap/response_parser.rb#431 def STAR?; end # RFC-3501 & RFC-9051: # body-fld-enc = (DQUOTE ("7BIT" / "8BIT" / "BINARY" / "BASE64"/ # "QUOTED-PRINTABLE") DQUOTE) / string # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#1263 def body_fld_enc; end # valid number ranges are not enforced by parser @@ -2668,16 +2918,16 @@ class Net::IMAP::ResponseParser # ; (0 <= n <= 9,223,372,036,854,775,807) # number in 3501, number64 in 9051 # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#1256 def body_fld_lines; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#1258 def body_fld_octets; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#454 def case_insensitive__string; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#96 + # source://net-imap//lib/net/imap/response_parser.rb#454 def case_insensitive__string?; end # Returns the value of attribute config. @@ -2688,81 +2938,81 @@ class Net::IMAP::ResponseParser # date-time = DQUOTE date-day-fixed "-" date-month "-" date-year # SP time SP zone DQUOTE # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#1048 def date_time; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#46 + # source://net-imap//lib/net/imap/response_parser.rb#436 def lbra; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#35 + # source://net-imap//lib/net/imap/response_parser.rb#436 def lbra?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#86 + # source://net-imap//lib/net/imap/response_parser.rb#477 def lookahead_CRLF!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#86 + # source://net-imap//lib/net/imap/response_parser.rb#478 def lookahead_EOF!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#86 + # source://net-imap//lib/net/imap/response_parser.rb#460 def lookahead_NIL!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#25 + # source://net-imap//lib/net/imap/response_parser.rb#430 def lookahead_PLUS?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#25 + # source://net-imap//lib/net/imap/response_parser.rb#429 def lookahead_SP?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#25 + # source://net-imap//lib/net/imap/response_parser.rb#431 def lookahead_STAR?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#25 + # source://net-imap//lib/net/imap/response_parser.rb#1060 def lookahead_body?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#86 + # source://net-imap//lib/net/imap/response_parser.rb#454 def lookahead_case_insensitive__string!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#25 + # source://net-imap//lib/net/imap/response_parser.rb#436 def lookahead_lbra?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#25 + # source://net-imap//lib/net/imap/response_parser.rb#433 def lookahead_lpar?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#86 + # source://net-imap//lib/net/imap/response_parser.rb#443 def lookahead_number!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#86 + # source://net-imap//lib/net/imap/response_parser.rb#445 def lookahead_quoted!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#25 + # source://net-imap//lib/net/imap/response_parser.rb#437 def lookahead_rbra?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#25 + # source://net-imap//lib/net/imap/response_parser.rb#434 def lookahead_rpar?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#86 + # source://net-imap//lib/net/imap/response_parser.rb#448 def lookahead_string!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#86 + # source://net-imap//lib/net/imap/response_parser.rb#451 def lookahead_string8!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#86 + # source://net-imap//lib/net/imap/response_parser.rb#475 def lookahead_tagged_ext_label!; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#25 + # source://net-imap//lib/net/imap/response_parser.rb#1628 def lookahead_thread_list?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#25 + # source://net-imap//lib/net/imap/response_parser.rb#1629 def lookahead_thread_nested?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#46 + # source://net-imap//lib/net/imap/response_parser.rb#433 def lpar; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#35 + # source://net-imap//lib/net/imap/response_parser.rb#433 def lpar?; end # text/* # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#1184 def media_subtype; end # valid number ranges are not enforced by parser @@ -2779,7 +3029,7 @@ class Net::IMAP::ResponseParser # ;; (mod-sequence) # ;; (1 <= n <= 9,223,372,036,854,775,807). # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#2130 def mod_sequence_value; end # valid number ranges are not enforced by parser @@ -2789,10 +3039,10 @@ class Net::IMAP::ResponseParser # RFC7162: # mod-sequence-valzer = "0" / mod-sequence-value # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#2139 def mod_sequence_valzer; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#443 def number; end # valid number ranges are not enforced by parser @@ -2800,13 +3050,13 @@ class Net::IMAP::ResponseParser # ; Unsigned 63-bit integer # ; (0 <= n <= 9,223,372,036,854,775,807) # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#643 def number64; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#96 + # source://net-imap//lib/net/imap/response_parser.rb#644 def number64?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#96 + # source://net-imap//lib/net/imap/response_parser.rb#443 def number?; end # valid number ranges are not enforced by parser @@ -2814,7 +3064,7 @@ class Net::IMAP::ResponseParser # ; Non-zero unsigned 32-bit integer # ; (0 < n < 4,294,967,296) # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#650 def nz_number; end # valid number ranges are not enforced by parser @@ -2826,10 +3076,10 @@ class Net::IMAP::ResponseParser # ; Unsigned 63-bit integer # ; (0 < n <= 9,223,372,036,854,775,807) # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#657 def nz_number64; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#96 + # source://net-imap//lib/net/imap/response_parser.rb#651 def nz_number?; end # :call-seq: @@ -2842,25 +3092,25 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser.rb#35 def parse(str); end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#30 + # source://net-imap//lib/net/imap/response_parser.rb#430 def peek_PLUS?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#30 + # source://net-imap//lib/net/imap/response_parser.rb#429 def peek_SP?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#30 + # source://net-imap//lib/net/imap/response_parser.rb#431 def peek_STAR?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#30 + # source://net-imap//lib/net/imap/response_parser.rb#436 def peek_lbra?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#30 + # source://net-imap//lib/net/imap/response_parser.rb#433 def peek_lpar?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#30 + # source://net-imap//lib/net/imap/response_parser.rb#437 def peek_rbra?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#30 + # source://net-imap//lib/net/imap/response_parser.rb#434 def peek_rpar?; end # valid number ranges are not enforced by parser @@ -2880,7 +3130,7 @@ class Net::IMAP::ResponseParser # permsg-modsequence = mod-sequence-value # ;; Per-message mod-sequence. # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#2135 def permsg_modsequence; end # Used when servers erroneously send an extra SP. @@ -2888,48 +3138,48 @@ class Net::IMAP::ResponseParser # As of 2023-11-28, Outlook.com (still) sends SP # between +address+ in env-* lists. # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#35 + # source://net-imap//lib/net/imap/response_parser.rb#1044 def quirky_SP?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#445 def quoted; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#96 + # source://net-imap//lib/net/imap/response_parser.rb#445 def quoted?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#46 + # source://net-imap//lib/net/imap/response_parser.rb#437 def rbra; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#35 + # source://net-imap//lib/net/imap/response_parser.rb#437 def rbra?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#46 + # source://net-imap//lib/net/imap/response_parser.rb#434 def rpar; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#35 + # source://net-imap//lib/net/imap/response_parser.rb#434 def rpar?; end # search-modifier-name = tagged-ext-label # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#1597 def search_modifier_name; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#448 def string; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#451 def string8; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#96 + # source://net-imap//lib/net/imap/response_parser.rb#451 def string8?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#96 + # source://net-imap//lib/net/imap/response_parser.rb#448 def string?; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#475 def tagged_ext_label; end - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#96 + # source://net-imap//lib/net/imap/response_parser.rb#475 def tagged_ext_label?; end # valid number ranges are not enforced by parser @@ -2940,7 +3190,7 @@ class Net::IMAP::ResponseParser # uniqueid = nz-number # ; Strictly ascending # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#662 def uniqueid; end # valid number ranges are not enforced by parser @@ -2948,7 +3198,7 @@ class Net::IMAP::ResponseParser # a 64-bit unsigned integer and is the decimal equivalent for the ID hex # string used in the web interface and the Gmail API. # - # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 + # source://net-imap//lib/net/imap/response_parser.rb#668 def x_gm_id; end private @@ -2979,22 +3229,22 @@ class Net::IMAP::ResponseParser # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#568 + # source://net-imap//lib/net/imap/response_parser.rb#2067 def addr_adl; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#568 + # source://net-imap//lib/net/imap/response_parser.rb#2068 def addr_host; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#568 + # source://net-imap//lib/net/imap/response_parser.rb#2069 def addr_mailbox; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#568 + # source://net-imap//lib/net/imap/response_parser.rb#2070 def addr_name; end # address = "(" addr-name SP addr-adl SP addr-mailbox SP @@ -3093,7 +3343,7 @@ class Net::IMAP::ResponseParser # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#568 + # source://net-imap//lib/net/imap/response_parser.rb#1253 def body_fld_desc; end # body-fld-dsp = "(" string SP body-fld-param ")" / nil @@ -3103,7 +3353,7 @@ class Net::IMAP::ResponseParser # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#568 + # source://net-imap//lib/net/imap/response_parser.rb#1254 def body_fld_id; end # body-fld-lang = nstring / "(" string *(SP string) ")" @@ -3113,12 +3363,12 @@ class Net::IMAP::ResponseParser # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#568 + # source://net-imap//lib/net/imap/response_parser.rb#1255 def body_fld_loc; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#568 + # source://net-imap//lib/net/imap/response_parser.rb#1257 def body_fld_md5; end # RFC3501, RFC9051: @@ -3171,14 +3421,14 @@ class Net::IMAP::ResponseParser # ; registered with IANA as standard or # ; standards-track # - # source://net-imap//lib/net/imap/response_parser.rb#520 + # source://net-imap//lib/net/imap/response_parser.rb#1776 def capability; end # Returns atom?&.upcase # # @return [Boolean] # - # source://net-imap//lib/net/imap/response_parser.rb#523 + # source://net-imap//lib/net/imap/response_parser.rb#1777 def capability?; end # As a workaround for buggy servers, allow a trailing SP: @@ -3230,7 +3480,7 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser.rb#1989 def charset__list; end - # source://net-imap//lib/net/imap/response_parser.rb#773 + # source://net-imap//lib/net/imap/response_parser.rb#798 def comparator_data(klass = T.unsafe(nil)); end # RFC3501 & RFC9051: @@ -3256,7 +3506,7 @@ class Net::IMAP::ResponseParser # env-cc = "(" 1*address ")" / nil # env-bcc = "(" 1*address ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#1027 + # source://net-imap//lib/net/imap/response_parser.rb#1038 def env_bcc; end # env-from = "(" 1*address ")" / nil @@ -3266,7 +3516,7 @@ class Net::IMAP::ResponseParser # env-cc = "(" 1*address ")" / nil # env-bcc = "(" 1*address ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#1027 + # source://net-imap//lib/net/imap/response_parser.rb#1037 def env_cc; end # nstring = string / nil @@ -3275,7 +3525,7 @@ class Net::IMAP::ResponseParser # env-in-reply-to = nstring # env-message-id = nstring # - # source://net-imap//lib/net/imap/response_parser.rb#568 + # source://net-imap//lib/net/imap/response_parser.rb#1016 def env_date; end # env-from = "(" 1*address ")" / nil @@ -3285,17 +3535,17 @@ class Net::IMAP::ResponseParser # env-cc = "(" 1*address ")" / nil # env-bcc = "(" 1*address ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#1027 + # source://net-imap//lib/net/imap/response_parser.rb#1033 def env_from; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#568 + # source://net-imap//lib/net/imap/response_parser.rb#1018 def env_in_reply_to; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#568 + # source://net-imap//lib/net/imap/response_parser.rb#1019 def env_message_id; end # env-from = "(" 1*address ")" / nil @@ -3305,7 +3555,7 @@ class Net::IMAP::ResponseParser # env-cc = "(" 1*address ")" / nil # env-bcc = "(" 1*address ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#1027 + # source://net-imap//lib/net/imap/response_parser.rb#1035 def env_reply_to; end # env-from = "(" 1*address ")" / nil @@ -3315,12 +3565,12 @@ class Net::IMAP::ResponseParser # env-cc = "(" 1*address ")" / nil # env-bcc = "(" 1*address ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#1027 + # source://net-imap//lib/net/imap/response_parser.rb#1034 def env_sender; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#568 + # source://net-imap//lib/net/imap/response_parser.rb#1017 def env_subject; end # env-from = "(" 1*address ")" / nil @@ -3330,7 +3580,7 @@ class Net::IMAP::ResponseParser # env-cc = "(" 1*address ")" / nil # env-bcc = "(" 1*address ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#1027 + # source://net-imap//lib/net/imap/response_parser.rb#1036 def env_to; end # RFC3501 & RFC9051: @@ -3377,7 +3627,7 @@ class Net::IMAP::ResponseParser # TODO: handle atom, astring_chars, and tag entirely inside the lexer # this represents the partial size for BODY or BINARY # - # source://net-imap//lib/net/imap/response_parser.rb#512 + # source://net-imap//lib/net/imap/response_parser.rb#987 def gt__number__lt; end # astring = 1*ASTRING-CHAR / string @@ -3398,7 +3648,7 @@ class Net::IMAP::ResponseParser # %d59-126 ; characters not including # ; ":". # - # source://net-imap//lib/net/imap/response_parser.rb#528 + # source://net-imap//lib/net/imap/response_parser.rb#1373 def header_fld_name; end # header-list = "(" header-fld-name *(SP header-fld-name) ")" @@ -3418,7 +3668,7 @@ class Net::IMAP::ResponseParser # *note*: doesn't match seq-last-command # TODO: replace with uid_set # - # source://net-imap//lib/net/imap/response_parser.rb#493 + # source://net-imap//lib/net/imap/response_parser.rb#884 def known_uids; end # Use #label or #label_in to assert specific known labels @@ -3433,10 +3683,10 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser.rb#545 def label_in(*labels); end - # source://net-imap//lib/net/imap/response_parser.rb#773 + # source://net-imap//lib/net/imap/response_parser.rb#797 def language_data(klass = T.unsafe(nil)); end - # source://net-imap//lib/net/imap/response_parser.rb#773 + # source://net-imap//lib/net/imap/response_parser.rb#794 def listrights_data(klass = T.unsafe(nil)); end # astring = 1*ASTRING-CHAR / string @@ -3449,10 +3699,10 @@ class Net::IMAP::ResponseParser # ; Refer to section 5.1 for further # ; semantic details of mailbox names. # - # source://net-imap//lib/net/imap/response_parser.rb#528 + # source://net-imap//lib/net/imap/response_parser.rb#637 def mailbox; end - # source://net-imap//lib/net/imap/response_parser.rb#862 + # source://net-imap//lib/net/imap/response_parser.rb#869 def mailbox_data__exists; end # mailbox-data = "FLAGS" SP flag-list / "LIST" SP mailbox-list / @@ -3466,10 +3716,10 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser.rb#1386 def mailbox_data__list; end - # source://net-imap//lib/net/imap/response_parser.rb#1386 + # source://net-imap//lib/net/imap/response_parser.rb#1391 def mailbox_data__lsub; end - # source://net-imap//lib/net/imap/response_parser.rb#862 + # source://net-imap//lib/net/imap/response_parser.rb#870 def mailbox_data__recent; end # RFC3501: @@ -3495,7 +3745,7 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser.rb#1669 def mailbox_data__status; end - # source://net-imap//lib/net/imap/response_parser.rb#1386 + # source://net-imap//lib/net/imap/response_parser.rb#1392 def mailbox_data__xlist; end # mailbox-list = "(" [mbx-list-flags] ")" SP @@ -3532,7 +3782,7 @@ class Net::IMAP::ResponseParser # media-subtype = string # TODO: check types # - # source://net-imap//lib/net/imap/response_parser.rb#1172 + # source://net-imap//lib/net/imap/response_parser.rb#1180 def media_basic; end # n.b. this handles both type and subtype @@ -3555,7 +3805,7 @@ class Net::IMAP::ResponseParser # media-subtype = string # */* --- catchall # - # source://net-imap//lib/net/imap/response_parser.rb#1172 + # source://net-imap//lib/net/imap/response_parser.rb#1181 def media_message; end # n.b. this handles both type and subtype @@ -3578,7 +3828,7 @@ class Net::IMAP::ResponseParser # media-subtype = string # message/rfc822, message/global # - # source://net-imap//lib/net/imap/response_parser.rb#1172 + # source://net-imap//lib/net/imap/response_parser.rb#1182 def media_text; end # n.b. this handles both type and subtype @@ -3603,10 +3853,10 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser.rb#1172 def media_type; end - # source://net-imap//lib/net/imap/response_parser.rb#773 + # source://net-imap//lib/net/imap/response_parser.rb#799 def message_data__converted(klass = T.unsafe(nil)); end - # source://net-imap//lib/net/imap/response_parser.rb#862 + # source://net-imap//lib/net/imap/response_parser.rb#868 def message_data__expunge; end # message-data = nz-number SP ("EXPUNGE" / ("FETCH" SP msg-att)) @@ -3614,7 +3864,7 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser.rb#847 def message_data__fetch; end - # source://net-imap//lib/net/imap/response_parser.rb#773 + # source://net-imap//lib/net/imap/response_parser.rb#796 def metadata_resp(klass = T.unsafe(nil)); end # RFC3501 & RFC9051: @@ -3673,7 +3923,7 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser.rb#970 def msg_att__label; end - # source://net-imap//lib/net/imap/response_parser.rb#773 + # source://net-imap//lib/net/imap/response_parser.rb#795 def myrights_data(klass = T.unsafe(nil)); end # namespace = nil / "(" 1*namespace-descr ")" @@ -3705,7 +3955,7 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser.rb#1849 def namespace_response_extensions; end - # source://net-imap//lib/net/imap/response_parser.rb#576 + # source://net-imap//lib/net/imap/response_parser.rb#1049 def ndatetime; end # source://net-imap//lib/net/imap/response_parser.rb#2184 @@ -3744,7 +3994,7 @@ class Net::IMAP::ResponseParser # ; characters in object identifiers are case # ; significant # - # source://net-imap//lib/net/imap/response_parser.rb#512 + # source://net-imap//lib/net/imap/response_parser.rb#2147 def objectid; end # source://net-imap//lib/net/imap/response_parser.rb#2141 @@ -3787,7 +4037,7 @@ class Net::IMAP::ResponseParser # As a workaround for buggy servers, allow a trailing SP: # *(SP capability) [SP] # - # source://net-imap//lib/net/imap/response_parser.rb#1766 + # source://net-imap//lib/net/imap/response_parser.rb#1770 def resp_code__capability; end # already matched: "APPENDUID" @@ -3935,7 +4185,7 @@ class Net::IMAP::ResponseParser # Returns atom.upcase # - # source://net-imap//lib/net/imap/response_parser.rb#520 + # source://net-imap//lib/net/imap/response_parser.rb#1981 def resp_text_code__name; end # [RFC3501 & RFC9051:] @@ -3984,7 +4234,7 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser.rb#791 def response_data__ignored; end - # source://net-imap//lib/net/imap/response_parser.rb#791 + # source://net-imap//lib/net/imap/response_parser.rb#792 def response_data__noop; end # source://net-imap//lib/net/imap/response_parser.rb#862 @@ -4057,7 +4307,7 @@ class Net::IMAP::ResponseParser # ; body part reference. # ; Allows for accessing nested body parts. # - # source://net-imap//lib/net/imap/response_parser.rb#512 + # source://net-imap//lib/net/imap/response_parser.rb#1355 def section_part; end # section-spec = section-msgtext / (section-part ["." section-text]) @@ -4105,7 +4355,7 @@ class Net::IMAP::ResponseParser # mailbox-data = obsolete-search-response / ... # obsolete-search-response = "SEARCH" *(SP nz-number) # - # source://net-imap//lib/net/imap/response_parser.rb#1498 + # source://net-imap//lib/net/imap/response_parser.rb#1510 def sort_data; end # RFC3501 @@ -4166,7 +4416,7 @@ class Net::IMAP::ResponseParser # tag-string = astring # ; represented as # - # source://net-imap//lib/net/imap/response_parser.rb#528 + # source://net-imap//lib/net/imap/response_parser.rb#1615 def tag_string; end # tagged-ext-comp = astring / @@ -4853,11 +5103,176 @@ Net::IMAP::ResponseParser::TAG_TOKENS = T.let(T.unsafe(nil), Array) # source://net-imap//lib/net/imap/response_parser.rb#64 Net::IMAP::ResponseParser::T_LITERAL8 = T.let(T.unsafe(nil), Symbol) +# source://net-imap//lib/net/imap/response_parser.rb#427 +class Net::IMAP::ResponseParser::Token < ::Struct + # Returns the value of attribute symbol + # + # @return [Object] the current value of symbol + # + # source://net-imap//lib/net/imap/response_parser.rb#427 + def symbol; end + + # Sets the attribute symbol + # + # @param value [Object] the value to set the attribute symbol to. + # @return [Object] the newly set value + # + # source://net-imap//lib/net/imap/response_parser.rb#427 + def symbol=(_); end + + # Returns the value of attribute value + # + # @return [Object] the current value of value + # + # source://net-imap//lib/net/imap/response_parser.rb#427 + def value; end + + # Sets the attribute value + # + # @param value [Object] the value to set the attribute value to. + # @return [Object] the newly set value + # + # source://net-imap//lib/net/imap/response_parser.rb#427 + def value=(_); end + + class << self + # source://net-imap//lib/net/imap/response_parser.rb#427 + def [](*_arg0); end + + # source://net-imap//lib/net/imap/response_parser.rb#427 + def inspect; end + + # source://net-imap//lib/net/imap/response_parser.rb#427 + def keyword_init?; end + + # source://net-imap//lib/net/imap/response_parser.rb#427 + def members; end + + # source://net-imap//lib/net/imap/response_parser.rb#427 + def new(*_arg0); end + end +end + +# Error raised when the socket cannot be read, due to a Config limit. +# +# source://net-imap//lib/net/imap/errors.rb#21 +class Net::IMAP::ResponseReadError < ::Net::IMAP::Error; end + +# See https://www.rfc-editor.org/rfc/rfc9051#section-2.2.2 +# +# source://net-imap//lib/net/imap/response_reader.rb#6 +class Net::IMAP::ResponseReader + # @return [ResponseReader] a new instance of ResponseReader + # + # source://net-imap//lib/net/imap/response_reader.rb#9 + def initialize(client, sock); end + + # source://net-imap//lib/net/imap/response_reader.rb#7 + def client; end + + # source://net-imap//lib/net/imap/response_reader.rb#13 + def read_response_buffer; end + + private + + # Returns the value of attribute buff. + # + # source://net-imap//lib/net/imap/response_reader.rb#29 + def buff; end + + # source://net-imap//lib/net/imap/response_reader.rb#31 + def bytes_read; end + + # @return [Boolean] + # + # source://net-imap//lib/net/imap/response_reader.rb#33 + def done?; end + + # @return [Boolean] + # + # source://net-imap//lib/net/imap/response_reader.rb#32 + def empty?; end + + # source://net-imap//lib/net/imap/response_reader.rb#35 + def get_literal_size; end + + # @return [Boolean] + # + # source://net-imap//lib/net/imap/response_reader.rb#34 + def line_done?; end + + # Returns the value of attribute literal_size. + # + # source://net-imap//lib/net/imap/response_reader.rb#29 + def literal_size; end + + # source://net-imap//lib/net/imap/response_reader.rb#56 + def max_response_remaining; end + + # @raise [ResponseTooLargeError] + # + # source://net-imap//lib/net/imap/response_reader.rb#64 + def max_response_remaining!; end + + # source://net-imap//lib/net/imap/response_reader.rb#55 + def max_response_size; end + + # source://net-imap//lib/net/imap/response_reader.rb#60 + def min_response_remaining; end + + # source://net-imap//lib/net/imap/response_reader.rb#58 + def min_response_size; end + + # source://net-imap//lib/net/imap/response_reader.rb#51 + def read_limit(limit = T.unsafe(nil)); end + + # source://net-imap//lib/net/imap/response_reader.rb#37 + def read_line; end + + # source://net-imap//lib/net/imap/response_reader.rb#42 + def read_literal; end + + # @return [Boolean] + # + # source://net-imap//lib/net/imap/response_reader.rb#57 + def response_too_large?; end +end + # Used to avoid an allocation when ResponseText is empty # -# source://net-imap//lib/net/imap/response_data.rb#182 +# source://net-imap//lib/net/imap/response_data.rb#181 Net::IMAP::ResponseText::EMPTY = T.let(T.unsafe(nil), Net::IMAP::ResponseText) +# Error raised when a response is larger than IMAP#max_response_size. +# +# source://net-imap//lib/net/imap/errors.rb#25 +class Net::IMAP::ResponseTooLargeError < ::Net::IMAP::ResponseReadError + # @return [ResponseTooLargeError] a new instance of ResponseTooLargeError + # + # source://net-imap//lib/net/imap/errors.rb#29 + def initialize(msg = T.unsafe(nil), *args, bytes_read: T.unsafe(nil), literal_size: T.unsafe(nil), max_response_size: T.unsafe(nil), **kwargs); end + + # Returns the value of attribute bytes_read. + # + # source://net-imap//lib/net/imap/errors.rb#26 + def bytes_read; end + + # Returns the value of attribute literal_size. + # + # source://net-imap//lib/net/imap/errors.rb#26 + def literal_size; end + + # Returns the value of attribute max_response_size. + # + # source://net-imap//lib/net/imap/errors.rb#27 + def max_response_size; end + + private + + # source://net-imap//lib/net/imap/errors.rb#46 + def response_size_msg; end +end + # Pluggable authentication mechanisms for protocols which support SASL # (Simple Authentication and Security Layer), such as IMAP4, SMTP, LDAP, and # XMPP. {RFC-4422}[https://www.rfc-editor.org/rfc/rfc4422] specifies the @@ -5304,7 +5719,7 @@ class Net::IMAP::SASL::Authenticators # only. Protocol client users should see refer to their client's # documentation, e.g. Net::IMAP#authenticate. # - # source://net-imap//lib/net/imap/sasl/authenticators.rb#111 + # source://net-imap//lib/net/imap/sasl/authenticators.rb#118 def new(mechanism, *_arg1, **_arg2, &_arg3); end # Removes the authenticator registered for +name+ @@ -5357,7 +5772,7 @@ class Net::IMAP::SASL::ClientAdapter # source://net-imap//lib/net/imap/sasl/client_adapter.rb#56 def initialize(client, &command_proc); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/sasl/client_adapter.rb#76 def auth_capable?(*args, **_arg1, &block); end # Attempt to authenticate #client to the server. @@ -5392,16 +5807,16 @@ class Net::IMAP::SASL::ClientAdapter # source://net-imap//lib/net/imap/sasl/client_adapter.rb#51 def command_proc; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/sasl/client_adapter.rb#113 def drop_connection(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/sasl/client_adapter.rb#118 def drop_connection!(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/sasl/client_adapter.rb#99 def host(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/sasl/client_adapter.rb#104 def port(*args, **_arg1, &block); end # Returns an array of server responses errors raised by run_command. @@ -5426,7 +5841,7 @@ class Net::IMAP::SASL::ClientAdapter # source://net-imap//lib/net/imap/sasl/client_adapter.rb#90 def run_command(mechanism, initial_response = T.unsafe(nil), &continuations_handler); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://net-imap//lib/net/imap/sasl/client_adapter.rb#69 def sasl_ir_capable?(*args, **_arg1, &block); end end @@ -5530,7 +5945,7 @@ class Net::IMAP::SASL::DigestMD5Authenticator # RFC-4616[https://www.rfc-editor.org/rfc/rfc4616] and many later RFCs abbreviate # this to +authcid+. # - # source://net-imap//lib/net/imap/sasl/digest_md5_authenticator.rb#45 + # source://net-imap//lib/net/imap/sasl/digest_md5_authenticator.rb#46 def authcid; end # Authorization identity: an identity to act as or on behalf of. The identity @@ -5849,7 +6264,7 @@ class Net::IMAP::SASL::ExternalAuthenticator # # imap.authenticate "PLAIN", "root", passwd, authzid: "user" # - # source://net-imap//lib/net/imap/sasl/external_authenticator.rb#27 + # source://net-imap//lib/net/imap/sasl/external_authenticator.rb#28 def username; end end @@ -6103,7 +6518,7 @@ class Net::IMAP::SASL::OAuthAuthenticator # The query string. (optional) # - # source://net-imap//lib/net/imap/sasl/oauthbearer_authenticator.rb#48 + # source://net-imap//lib/net/imap/sasl/oauthbearer_authenticator.rb#49 def query; end # Authorization identity: an identity to act as or on behalf of. The @@ -6118,7 +6533,7 @@ class Net::IMAP::SASL::OAuthAuthenticator # # imap.authenticate "PLAIN", "root", passwd, authzid: "user" # - # source://net-imap//lib/net/imap/sasl/oauthbearer_authenticator.rb#29 + # source://net-imap//lib/net/imap/sasl/oauthbearer_authenticator.rb#30 def username; end end @@ -6196,7 +6611,7 @@ class Net::IMAP::SASL::OAuthBearerAuthenticator < ::Net::IMAP::SASL::OAuthAuthen # An OAuth 2.0 bearer token. See {RFC-6750}[https://www.rfc-editor.org/rfc/rfc6750] # - # source://net-imap//lib/net/imap/sasl/oauthbearer_authenticator.rb#141 + # source://net-imap//lib/net/imap/sasl/oauthbearer_authenticator.rb#142 def secret; end end @@ -6250,7 +6665,7 @@ class Net::IMAP::SASL::PlainAuthenticator # RFC-4616[https://www.rfc-editor.org/rfc/rfc4616] and many later RFCs # abbreviate this to +authcid+. # - # source://net-imap//lib/net/imap/sasl/plain_authenticator.rb#24 + # source://net-imap//lib/net/imap/sasl/plain_authenticator.rb#25 def authcid; end # Authorization identity: an identity to act as or on behalf of. The identity @@ -6299,7 +6714,7 @@ class Net::IMAP::SASL::PlainAuthenticator # A password or passphrase that matches the #username. # - # source://net-imap//lib/net/imap/sasl/plain_authenticator.rb#28 + # source://net-imap//lib/net/imap/sasl/plain_authenticator.rb#29 def secret; end # Authentication identity: the identity that matches the #password. @@ -6576,7 +6991,7 @@ class Net::IMAP::SASL::ScramAuthenticator # RFC-4616[https://www.rfc-editor.org/rfc/rfc4616] and many later RFCs # abbreviate this to +authcid+. # - # source://net-imap//lib/net/imap/sasl/scram_authenticator.rb#107 + # source://net-imap//lib/net/imap/sasl/scram_authenticator.rb#108 def authcid; end # Authorization identity: an identity to act as or on behalf of. The @@ -6601,7 +7016,7 @@ class Net::IMAP::SASL::ScramAuthenticator # >>> # *TODO:* implement channel binding, appending +cbind-data+ here. # - # source://net-imap//lib/net/imap/sasl/gs2_header.rb#37 + # source://net-imap//lib/net/imap/sasl/scram_authenticator.rb#251 def cbind_input; end # The client nonce, generated by SecureRandom @@ -6661,7 +7076,7 @@ class Net::IMAP::SASL::ScramAuthenticator # A password or passphrase that matches the #username. # - # source://net-imap//lib/net/imap/sasl/scram_authenticator.rb#111 + # source://net-imap//lib/net/imap/sasl/scram_authenticator.rb#112 def secret; end # An error reported by the server during the \SASL exchange. @@ -6830,7 +7245,7 @@ class Net::IMAP::SASL::XOAuth2Authenticator # authorization identity and not the authentication identity. The # authenticated identity is established for the client by the #oauth2_token. # - # source://net-imap//lib/net/imap/sasl/xoauth2_authenticator.rb#35 + # source://net-imap//lib/net/imap/sasl/xoauth2_authenticator.rb#40 def authzid; end # Returns true when the initial client response was sent. @@ -6868,7 +7283,7 @@ class Net::IMAP::SASL::XOAuth2Authenticator # An OAuth2 access token which has been authorized with the appropriate OAuth2 # scopes to use the service for #username. # - # source://net-imap//lib/net/imap/sasl/xoauth2_authenticator.rb#44 + # source://net-imap//lib/net/imap/sasl/xoauth2_authenticator.rb#45 def secret; end # It is unclear from {Google's original XOAUTH2 @@ -7104,21 +7519,9 @@ end # # == Creating sequence sets # -# SequenceSet.new with no arguments creates an empty sequence set. Note -# that an empty sequence set is invalid in the \IMAP grammar. -# -# set = Net::IMAP::SequenceSet.new -# set.empty? #=> true -# set.valid? #=> false -# set.valid_string #!> raises DataFormatError -# set << 1..10 -# set.empty? #=> false -# set.valid? #=> true -# set.valid_string #=> "1:10" -# # SequenceSet.new may receive a single optional argument: a non-zero 32 bit # unsigned integer, a range, a sequence-set formatted string, -# another sequence set, a Set (containing only numbers or *), or an +# another SequenceSet, a Set (containing only numbers or *), or an # Array containing any of these (array inputs may be nested). # # set = Net::IMAP::SequenceSet.new(1) @@ -7134,30 +7537,114 @@ end # set = Net::IMAP::SequenceSet.new(1, 2, 3..7, 5, 6..10, 2048, 1024) # set.valid_string #=> "1:10,55,1024:2048" # -# Use ::[] with one or more arguments to create a frozen SequenceSet. An -# invalid (empty) set cannot be created with ::[]. +# SequenceSet.new with no arguments creates an empty sequence set. Note +# that an empty sequence set is invalid in the \IMAP grammar. +# +# set = Net::IMAP::SequenceSet.new +# set.empty? #=> true +# set.valid? #=> false +# set.valid_string #!> raises DataFormatError +# set << 1..10 +# set.empty? #=> false +# set.valid? #=> true +# set.valid_string #=> "1:10" +# +# Using SequenceSet.new with another SequenceSet input behaves the same as +# calling #dup on the other set. The input's #string will be preserved. +# +# input = Net::IMAP::SequenceSet.new("1,2,3:7,5,6:10,2048,1024") +# copy = Net::IMAP::SequenceSet.new(input) +# input.valid_string #=> "1,2,3:7,5,6:10,2048,1024" +# copy.valid_string #=> "1,2,3:7,5,6:10,2048,1024" +# copy2 = input.dup # same as calling new with a SequenceSet input +# copy == input #=> true, same set membership +# copy.eql? input #=> true, same string value +# copy.equal? input #=> false, different objects +# +# copy.normalize! +# copy.valid_string #=> "1:10,1024,2048" +# copy == input #=> true, same set membership +# copy.eql? input #=> false, different string value +# +# copy << 999 +# copy.valid_string #=> "1:10,999,1024,2048" +# copy == input #=> false, different set membership +# copy.eql? input #=> false, different string value +# +# Use Net::IMAP::SequenceSet() to coerce a single (optional) input. +# A SequenceSet input is returned without duplication, even when frozen. +# +# set = Net::IMAP::SequenceSet() +# set.string #=> nil +# set.frozen? #=> false +# +# # String order is preserved +# set = Net::IMAP::SequenceSet("1,2,3:7,5,6:10,2048,1024") +# set.valid_string #=> "1,2,3:7,5,6:10,2048,1024" +# set.frozen? #=> false # +# # Other inputs are normalized +# set = Net::IMAP::SequenceSet([1, 2, [3..7, 5], 6..10, 2048, 1024]) +# set.valid_string #=> "1:10,1024,2048" +# set.frozen? #=> false +# +# unfrozen = set +# frozen = set.dup.freeze +# unfrozen.equal? Net::IMAP::SequenceSet(unfrozen) #=> true +# frozen.equal? Net::IMAP::SequenceSet(frozen) #=> true +# +# Use ::[] to coerce one or more arguments into a valid frozen SequenceSet. +# A valid frozen SequenceSet is returned directly, without allocating a new +# object. ::[] will not create an invalid (empty) set. +# +# Net::IMAP::SequenceSet[] #!> raises ArgumentError +# Net::IMAP::SequenceSet[nil] #!> raises DataFormatError +# Net::IMAP::SequenceSet[""] #!> raises DataFormatError +# +# # String order is preserved # set = Net::IMAP::SequenceSet["1,2,3:7,5,6:10,2048,1024"] # set.valid_string #=> "1,2,3:7,5,6:10,2048,1024" +# set.frozen? #=> true +# +# # Other inputs are normalized # set = Net::IMAP::SequenceSet[1, 2, [3..7, 5], 6..10, 2048, 1024] -# set.valid_string #=> "1:10,55,1024:2048" +# set.valid_string #=> "1:10,1024,2048" +# set.frozen? #=> true +# +# frozen = set +# unfrozen = set.dup +# frozen.equal? Net::IMAP::SequenceSet[frozen] #=> true +# unfrozen.equal? Net::IMAP::SequenceSet[unfrozen] #=> false +# +# Objects which respond to +to_sequence_set+ (such as SearchResult and +# ThreadMember) can be coerced to a SequenceSet with ::new, ::try_convert, +# ::[], or Net::IMAP::SequenceSet. +# +# search = imap.uid_search(["SUBJECT", "hello", "NOT", "SEEN"]) +# seqset = Net::IMAP::SequenceSet(search) - already_fetched +# fetch = imap.uid_fetch(seqset, "FAST") # # == Ordered and Normalized sets # # Sometimes the order of the set's members is significant, such as with the # +ESORT+, CONTEXT=SORT, and +UIDPLUS+ extensions. So, when a -# sequence set is created by the parser or with a single string value, that -# #string representation is preserved. -# -# Internally, SequenceSet stores a normalized representation which sorts all -# entries, de-duplicates numbers, and coalesces adjacent or overlapping -# ranges. Most methods use this normalized representation to achieve -# O(lg n) porformance. Use #entries or #each_entry to enumerate -# the set in its original order. -# -# Most modification methods convert #string to its normalized form. To -# preserve #string order while modifying a set, use #append, #string=, or -# #replace. +# sequence set is created from a single string (such as by the parser), that +# #string representation is preserved. Assigning a string with #string= or +# #replace will also preserve that string. Use #each_entry, #entries, or +# #each_ordered_number to enumerate the entries in their #string order. +# Hash equality (using #eql?) is based on the string representation. +# +# Internally, SequenceSet uses a normalized uint32 set representation which +# sorts and de-duplicates all numbers and coalesces adjacent or overlapping +# entries. Many methods use this sorted set representation for O(lg +# n) searches. Use #each_element, #elements, #each_range, #ranges, +# #each_number, or #numbers to enumerate the set in sorted order. Basic +# object equality (using #==) is based on set membership, without regard to +# #entry order or #string normalization. +# +# Most modification methods reset #string to its #normalized form, so that +# #entries and #elements are identical. Use #append to preserve #entries +# order while modifying a set. # # == Using * # @@ -7194,11 +7681,15 @@ end # When a set includes *, some methods may have surprising behavior. # # For example, #complement treats * as its own number. This way, -# the #intersection of a set and its #complement will always be empty. -# This is not how an \IMAP server interprets the set: it will convert -# * to either the number of messages in the mailbox or +UIDNEXT+, -# as appropriate. And there _will_ be overlap between a set and its -# complement after #limit is applied to each: +# the #intersection of a set and its #complement will always be empty. And +# * is sorted as greater than any other number in the set. This is +# not how an \IMAP server interprets the set: it will convert * to +# the number of messages in the mailbox, the +UID+ of the last message in +# the mailbox, or +UIDNEXT+, as appropriate. Several methods have an +# argument for how * should be interpreted. +# +# But, for example, this means that there may be overlap between a set and +# its complement after #limit is applied to each: # # ~Net::IMAP::SequenceSet["*"] == Net::IMAP::SequenceSet[1..(2**32-1)] # ~Net::IMAP::SequenceSet[1..5] == Net::IMAP::SequenceSet["6:*"] @@ -7235,6 +7726,7 @@ end # * ::new: Creates a new mutable sequence set, which may be empty (invalid). # * ::try_convert: Calls +to_sequence_set+ on an object and verifies that # the result is a SequenceSet. +# * Net::IMAP::SequenceSet(): Coerce an input using ::try_convert or ::new. # * ::empty: Returns a frozen empty (invalid) SequenceSet. # * ::full: Returns a frozen SequenceSet containing every possible number. # @@ -7260,14 +7752,13 @@ end # # Set membership: # - #include? (aliased as #member?): -# Returns whether a given object (nz-number, range, or *) is -# contained by the set. +# Returns whether a given element is contained by the set. # - #include_star?: Returns whether the set contains *. # # Minimum and maximum value elements: -# - #min: Returns the minimum number in the set. -# - #max: Returns the maximum number in the set. -# - #minmax: Returns the minimum and maximum numbers in the set. +# - #min: Returns one or more of the lowest numbers in the set. +# - #max: Returns one or more of the highest numbers in the set. +# - #minmax: Returns the lowest and highest numbers in the set. # # Accessing value by offset in sorted set: # - #[] (aliased as #slice): Returns the number or consecutive subset at a @@ -7325,15 +7816,19 @@ end # These methods do not modify +self+. # # - #| (aliased as #union and #+): Returns a new set combining all members -# from +self+ with all members from the other object. +# from +self+ with all members from the other set. # - #& (aliased as #intersection): Returns a new set containing all members -# common to +self+ and the other object. +# common to +self+ and the other set. # - #- (aliased as #difference): Returns a copy of +self+ with all members -# in the other object removed. +# in the other set removed. # - #^ (aliased as #xor): Returns a new set containing all members from -# +self+ and the other object except those common to both. +# +self+ and the other set except those common to both. # - #~ (aliased as #complement): Returns a new set containing all members # that are not in +self+ +# - #above: Return a copy of +self+ which only contains numbers above a +# given number. +# - #below: Return a copy of +self+ which only contains numbers below a +# given value. # - #limit: Returns a copy of +self+ which has replaced * with a # given maximum value and removed all members over that maximum. # @@ -7344,17 +7839,17 @@ end # # These methods always update #string to be fully sorted and coalesced. # -# - #add (aliased as #<<): Adds a given object to the set; returns +self+. -# - #add?: If the given object is not an element in the set, adds it and +# - #add (aliased as #<<): Adds a given element to the set; returns +self+. +# - #add?: If the given element is not fully included the set, adds it and # returns +self+; otherwise, returns +nil+. -# - #merge: Merges multiple elements into the set; returns +self+. +# - #merge: Adds all members of the given sets into this set; returns +self+. # - #complement!: Replaces the contents of the set with its own #complement. # # Order preserving: # # These methods _may_ cause #string to not be sorted or coalesced. # -# - #append: Adds a given object to the set, appending it to the existing +# - #append: Adds the given entry to the set, appending it to the existing # string, and returns +self+. # - #string=: Assigns a new #string value and replaces #elements to match. # - #replace: Replaces the contents of the set with the contents @@ -7365,13 +7860,14 @@ end # sorted and coalesced. # # - #clear: Removes all elements in the set; returns +self+. -# - #delete: Removes a given object from the set; returns +self+. -# - #delete?: If the given object is an element in the set, removes it and +# - #delete: Removes a given element from the set; returns +self+. +# - #delete?: If the given element is included in the set, removes it and # returns it; otherwise, returns +nil+. # - #delete_at: Removes the number at a given offset. # - #slice!: Removes the number or consecutive numbers at a given offset or # range of offsets. -# - #subtract: Removes each given object from the set; returns +self+. +# - #subtract: Removes all members of the given sets from this set; returns +# +self+. # - #limit!: Replaces * with a given maximum value and removes all # members over that maximum; returns +self+. # @@ -7389,17 +7885,78 @@ end # - #normalize!: Updates #string to its normalized +sequence-set+ # representation and returns +self+. # -# source://net-imap//lib/net/imap/sequence_set.rb#306 +# source://net-imap//lib/net/imap/sequence_set.rb#387 class Net::IMAP::SequenceSet # Create a new SequenceSet object from +input+, which may be another - # SequenceSet, an IMAP formatted +sequence-set+ string, a number, a - # range, :*, or an enumerable of these. - # - # Use ::[] to create a frozen (non-empty) SequenceSet. + # SequenceSet, an IMAP formatted +sequence-set+ string, a non-zero 32 bit + # unsigned integer, a range, :*, a Set of numbers or *, + # an object that responds to +to_sequence_set+ (such as SearchResult) or + # an Array of these (array inputs may be nested). + # + # set = Net::IMAP::SequenceSet.new(1) + # set.valid_string #=> "1" + # set = Net::IMAP::SequenceSet.new(1..100) + # set.valid_string #=> "1:100" + # set = Net::IMAP::SequenceSet.new(1...100) + # set.valid_string #=> "1:99" + # set = Net::IMAP::SequenceSet.new([1, 2, 5..]) + # set.valid_string #=> "1:2,5:*" + # set = Net::IMAP::SequenceSet.new("1,2,3:7,5,6:10,2048,1024") + # set.valid_string #=> "1,2,3:7,5,6:10,2048,1024" + # set = Net::IMAP::SequenceSet.new(1, 2, 3..7, 5, 6..10, 2048, 1024) + # set.valid_string #=> "1:10,1024,2048" + # + # With no arguments (or +nil+) creates an empty sequence set. Note that + # an empty sequence set is invalid in the \IMAP grammar. + # + # set = Net::IMAP::SequenceSet.new + # set.empty? #=> true + # set.valid? #=> false + # set.valid_string #!> raises DataFormatError + # set << 1..10 + # set.empty? #=> false + # set.valid? #=> true + # set.valid_string #=> "1:10" + # + # When +input+ is a SequenceSet, ::new behaves the same as calling #dup on + # that other set. The input's #string will be preserved. + # + # input = Net::IMAP::SequenceSet.new("1,2,3:7,5,6:10,2048,1024") + # copy = Net::IMAP::SequenceSet.new(input) + # input.valid_string #=> "1,2,3:7,5,6:10,2048,1024" + # copy.valid_string #=> "1,2,3:7,5,6:10,2048,1024" + # copy2 = input.dup # same as calling new with a SequenceSet input + # copy == input #=> true, same set membership + # copy.eql? input #=> true, same string value + # copy.equal? input #=> false, different objects + # + # copy.normalize! + # copy.valid_string #=> "1:10,1024,2048" + # copy == input #=> true, same set membership + # copy.eql? input #=> false, different string value + # + # copy << 999 + # copy.valid_string #=> "1:10,999,1024,2048" + # copy == input #=> false, different set membership + # copy.eql? input #=> false, different string value + # + # === Alternative set creation methods + # + # * ::[] returns a frozen validated (non-empty) SequenceSet, without + # allocating a new object when the input is already a valid frozen + # SequenceSet. + # * Net::IMAP::SequenceSet() coerces an input to SequenceSet, without + # allocating a new object when the input is already a SequenceSet. + # * ::try_convert calls +to_sequence_set+ on inputs that support it and + # returns +nil+ for inputs that don't. + # * ::empty and ::full both return frozen singleton sets which can be + # combined with set operations (#|, #&, #^, #-, etc) to make new sets. + # + # See SequenceSet@Creating+sequence+sets. # # @return [SequenceSet] a new instance of SequenceSet # - # source://net-imap//lib/net/imap/sequence_set.rb#371 + # source://net-imap//lib/net/imap/sequence_set.rb#534 def initialize(input = T.unsafe(nil)); end # :call-seq: @@ -7409,16 +7966,24 @@ class Net::IMAP::SequenceSet # Returns a new sequence set containing only the numbers common to this # set and +other+. # - # +other+ may be any object that would be accepted by ::new: a non-zero 32 - # bit unsigned integer, range, sequence-set formatted string, - # another sequence set, or an enumerable containing any of these. + # +other+ may be any object that would be accepted by ::new. # # Net::IMAP::SequenceSet[1..5] & [2, 4, 6] # #=> Net::IMAP::SequenceSet["2,4"] # - # (seqset & other) is equivalent to (seqset - ~other). + # Related: #intersect?, #|, #-, #^, #~ + # + # ==== Set identities # - # source://net-imap//lib/net/imap/sequence_set.rb#650 + # lhs & rhs is equivalent to: + # * rhs & lhs (commutative) + # * ~(~lhs | ~rhs) (De Morgan's Law) + # * lhs - ~rhs + # * lhs - (lhs - rhs) + # * lhs - (lhs ^ rhs) + # * lhs ^ (lhs - rhs) + # + # source://net-imap//lib/net/imap/sequence_set.rb#876 def &(other); end # :call-seq: @@ -7429,16 +7994,21 @@ class Net::IMAP::SequenceSet # Returns a new sequence set that has every number in the +other+ object # added. # - # +other+ may be any object that would be accepted by ::new: a non-zero 32 - # bit unsigned integer, range, sequence-set formatted string, - # another sequence set, or an enumerable containing any of these. + # +other+ may be any object that would be accepted by ::new. # # Net::IMAP::SequenceSet["1:5"] | 2 | [4..6, 99] # #=> Net::IMAP::SequenceSet["1:6,99"] # - # Related: #add, #merge + # Related: #add, #merge, #&, #-, #^, #~ + # + # ==== Set identities # - # source://net-imap//lib/net/imap/sequence_set.rb#613 + # lhs | rhs is equivalent to: + # * rhs | lhs (commutative) + # * ~(~lhs & ~rhs) (De Morgan's Law) + # * (lhs & rhs) ^ (lhs ^ rhs) + # + # source://net-imap//lib/net/imap/sequence_set.rb#824 def +(other); end # :call-seq: @@ -7448,30 +8018,41 @@ class Net::IMAP::SequenceSet # Returns a new sequence set built by duplicating this set and removing # every number that appears in +other+. # - # +other+ may be any object that would be accepted by ::new: a non-zero 32 - # bit unsigned integer, range, sequence-set formatted string, - # another sequence set, or an enumerable containing any of these. + # +other+ may be any object that would be accepted by ::new. # # Net::IMAP::SequenceSet[1..5] - 2 - 4 - 6 # #=> Net::IMAP::SequenceSet["1,3,5"] # - # Related: #subtract + # Related: #subtract, #|, #&, #^, #~ + # + # ==== Set identities # - # source://net-imap//lib/net/imap/sequence_set.rb#632 + # lhs - rhs is equivalent to: + # * ~rhs - ~lhs + # * lhs & ~rhs + # * ~(~lhs | rhs) + # * lhs & (lhs ^ rhs) + # * lhs ^ (lhs & rhs) + # * rhs ^ (lhs | rhs) + # + # source://net-imap//lib/net/imap/sequence_set.rb#850 def -(other); end # :call-seq: - # add(object) -> self + # add(element) -> self # self << other -> self # # Adds a range or number to the set and returns +self+. # # #string will be regenerated. Use #merge to add many elements at once. # - # Related: #add?, #merge, #union + # Use #append to append new elements to #string. See + # SequenceSet@Ordered+and+Normalized+sets. + # + # Related: #add?, #merge, #union, #append # - # source://net-imap//lib/net/imap/sequence_set.rb#701 - def <<(object); end + # source://net-imap//lib/net/imap/sequence_set.rb#946 + def <<(element); end # :call-seq: self == other -> true or false # @@ -7490,17 +8071,18 @@ class Net::IMAP::SequenceSet # # Related: #eql?, #normalize # - # source://net-imap//lib/net/imap/sequence_set.rb#468 + # source://net-imap//lib/net/imap/sequence_set.rb#642 def ==(other); end # :call-seq: self === other -> true | false | nil # - # Returns whether +other+ is contained within the set. Returns +nil+ if a - # StandardError is raised while converting +other+ to a comparable type. + # Returns whether +other+ is contained within the set. +other+ may be any + # object that would be accepted by ::new. Returns +nil+ if StandardError + # is raised while converting +other+ to a comparable type. # # Related: #cover?, #include?, #include_star? # - # source://net-imap//lib/net/imap/sequence_set.rb#498 + # source://net-imap//lib/net/imap/sequence_set.rb#673 def ===(other); end # :call-seq: @@ -7543,7 +8125,7 @@ class Net::IMAP::SequenceSet # # Related: #at # - # source://net-imap//lib/net/imap/sequence_set.rb#1220 + # source://net-imap//lib/net/imap/sequence_set.rb#1464 def [](index, length = T.unsafe(nil)); end # :call-seq: @@ -7553,36 +8135,64 @@ class Net::IMAP::SequenceSet # Returns a new sequence set containing numbers that are exclusive between # this set and +other+. # - # +other+ may be any object that would be accepted by ::new: a non-zero 32 - # bit unsigned integer, range, sequence-set formatted string, - # another sequence set, or an enumerable containing any of these. + # +other+ may be any object that would be accepted by ::new. # # Net::IMAP::SequenceSet[1..5] ^ [2, 4, 6] # #=> Net::IMAP::SequenceSet["1,3,5:6"] # - # (seqset ^ other) is equivalent to ((seqset | other) - - # (seqset & other)). + # Related: #|, #&, #-, #~ # - # source://net-imap//lib/net/imap/sequence_set.rb#671 + # ==== Set identities + # + # lhs ^ rhs is equivalent to: + # * rhs ^ lhs (commutative) + # * ~lhs ^ ~rhs + # * (lhs | rhs) - (lhs & rhs) + # * (lhs - rhs) | (rhs - lhs) + # * (lhs ^ other) ^ (other ^ rhs) + # + # source://net-imap//lib/net/imap/sequence_set.rb#903 def ^(other); end + # Returns a copy of +self+ which only contains the numbers above +num+. + # + # Net::IMAP::SequenceSet["5,10:22,50"].above(10) # to_s => "11:22,50" + # Net::IMAP::SequenceSet["5,10:22,50"].above(20) # to_s => "21:22,50 + # Net::IMAP::SequenceSet["5,10:22,50"].above(30) # to_s => "50" + # + # This returns the same result as #intersection with ((num+1)..) + # or #difference with (..num). + # + # Net::IMAP::SequenceSet["5,10:22,50"] & (11..) # to_s => "11:22,50" + # Net::IMAP::SequenceSet["5,10:22,50"] - (..10) # to_s => "11:22,50" + # Net::IMAP::SequenceSet["5,10:22,50"] & (21..) # to_s => "21:22,50" + # Net::IMAP::SequenceSet["5,10:22,50"] - (..20) # to_s => "21:22,50" + # + # Related: #above, #-, #& + # + # source://net-imap//lib/net/imap/sequence_set.rb#1519 + def above(num); end + # :call-seq: - # add(object) -> self + # add(element) -> self # self << other -> self # # Adds a range or number to the set and returns +self+. # # #string will be regenerated. Use #merge to add many elements at once. # - # Related: #add?, #merge, #union + # Use #append to append new elements to #string. See + # SequenceSet@Ordered+and+Normalized+sets. + # + # Related: #add?, #merge, #union, #append # - # source://net-imap//lib/net/imap/sequence_set.rb#701 - def add(object); end + # source://net-imap//lib/net/imap/sequence_set.rb#941 + def add(element); end - # :call-seq: add?(object) -> self or nil + # :call-seq: add?(element) -> self or nil # # Adds a range or number to the set and returns +self+. Returns +nil+ - # when the object is already included in the set. + # when the element is already included in the set. # # #string will be regenerated. Use #merge to add many elements at once. # @@ -7590,16 +8200,20 @@ class Net::IMAP::SequenceSet # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#729 - def add?(object); end + # source://net-imap//lib/net/imap/sequence_set.rb#974 + def add?(element); end # Adds a range or number to the set and returns +self+. # # Unlike #add, #merge, or #union, the new value is appended to #string. # This may result in a #string which has duplicates or is out-of-order. # - # source://net-imap//lib/net/imap/sequence_set.rb#711 - def append(object); end + # See SequenceSet@Ordered+and+Normalized+sets. + # + # Related: #add, #merge, #union + # + # source://net-imap//lib/net/imap/sequence_set.rb#956 + def append(entry); end # :call-seq: at(index) -> integer or nil # @@ -7611,12 +8225,41 @@ class Net::IMAP::SequenceSet # # Related: #[], #slice, #ordered_at # - # source://net-imap//lib/net/imap/sequence_set.rb#1150 + # source://net-imap//lib/net/imap/sequence_set.rb#1394 def at(index); end + # Returns a copy of +self+ which only contains numbers below +num+. + # + # Net::IMAP::SequenceSet["5,10:22,50"].below(10) # to_s => "5" + # Net::IMAP::SequenceSet["5,10:22,50"].below(20) # to_s => "5,10:19" + # Net::IMAP::SequenceSet["5,10:22,50"].below(30) # to_s => "5,10:22" + # + # This returns the same result as #intersection with (..(num-1)) + # or #difference with (num..). + # + # Net::IMAP::SequenceSet["5,10:22,50"] & (..9) # to_s => "5" + # Net::IMAP::SequenceSet["5,10:22,50"] - (10..) # to_s => "5" + # Net::IMAP::SequenceSet["5,10:22,50"] & (..19) # to_s => "5,10:19" + # Net::IMAP::SequenceSet["5,10:22,50"] - (20..) # to_s => "5,10:19" + # + # When the set does not contain *, #below is identical to #limit + # with max: num - 1. When the set does contain *, + # #below always drops it from the result. Use #limit when the IMAP + # semantics for * must be enforced. + # + # Net::IMAP::SequenceSet["5,10:22,50"].below(30) # to_s => "5,10:22" + # Net::IMAP::SequenceSet["5,10:22,50"].limit(max: 29) # to_s => "5,10:22" + # Net::IMAP::SequenceSet["5,10:22,*"].below(30) # to_s => "5,10:22" + # Net::IMAP::SequenceSet["5,10:22,*"].limit(max: 29) # to_s => "5,10:22,29" + # + # Related: #above, #-, #&, #limit + # + # source://net-imap//lib/net/imap/sequence_set.rb#1550 + def below(num); end + # Removes all elements and returns self. # - # source://net-imap//lib/net/imap/sequence_set.rb#374 + # source://net-imap//lib/net/imap/sequence_set.rb#537 def clear; end # :call-seq: @@ -7633,9 +8276,14 @@ class Net::IMAP::SequenceSet # ~Net::IMAP::SequenceSet["6:99,223:*"] # #=> Net::IMAP::SequenceSet["1:5,100:222"] # - # Related: #complement! + # Related: #complement!, #|, #&, #-, #^ + # + # ==== Set identities + # + # ~set is equivalent to: + # * full - set, where "full" is Net::IMAP::SequenceSet.full # - # source://net-imap//lib/net/imap/sequence_set.rb#689 + # source://net-imap//lib/net/imap/sequence_set.rb#927 def complement; end # :call-seq: complement! -> self @@ -7645,7 +8293,7 @@ class Net::IMAP::SequenceSet # # Related: #complement # - # source://net-imap//lib/net/imap/sequence_set.rb#1300 + # source://net-imap//lib/net/imap/sequence_set.rb#1602 def complement!; end # Returns the count of #numbers in the set. @@ -7655,7 +8303,7 @@ class Net::IMAP::SequenceSet # # Related: #count_with_duplicates # - # source://net-imap//lib/net/imap/sequence_set.rb#1045 + # source://net-imap//lib/net/imap/sequence_set.rb#1289 def count; end # Returns the count of repeated numbers in the ordered #entries, the @@ -7665,7 +8313,7 @@ class Net::IMAP::SequenceSet # # Related: #entries, #count_with_duplicates, #has_duplicates? # - # source://net-imap//lib/net/imap/sequence_set.rb#1074 + # source://net-imap//lib/net/imap/sequence_set.rb#1318 def count_duplicates; end # Returns the count of numbers in the ordered #entries, including any @@ -7678,7 +8326,7 @@ class Net::IMAP::SequenceSet # # Related: #entries, #count_duplicates, #has_duplicates? # - # source://net-imap//lib/net/imap/sequence_set.rb#1061 + # source://net-imap//lib/net/imap/sequence_set.rb#1305 def count_with_duplicates; end # :call-seq: cover?(other) -> true | false | nil @@ -7686,20 +8334,20 @@ class Net::IMAP::SequenceSet # Returns whether +other+ is contained within the set. +other+ may be any # object that would be accepted by ::new. # - # Related: #===, #include?, #include_star? + # Related: #===, #include?, #include_star?, #intersect? # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#510 + # source://net-imap//lib/net/imap/sequence_set.rb#685 def cover?(other); end # Returns an array with #normalized_string when valid and an empty array # otherwise. # - # source://net-imap//lib/net/imap/sequence_set.rb#417 + # source://net-imap//lib/net/imap/sequence_set.rb#587 def deconstruct; end - # :call-seq: delete(object) -> self + # :call-seq: delete(element) -> self # # Deletes the given range or number from the set and returns +self+. # @@ -7708,8 +8356,8 @@ class Net::IMAP::SequenceSet # # Related: #delete?, #delete_at, #subtract, #difference # - # source://net-imap//lib/net/imap/sequence_set.rb#741 - def delete(object); end + # source://net-imap//lib/net/imap/sequence_set.rb#987 + def delete(element); end # :call-seq: # delete?(number) -> integer or nil @@ -7746,8 +8394,8 @@ class Net::IMAP::SequenceSet # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#778 - def delete?(object); end + # source://net-imap//lib/net/imap/sequence_set.rb#1025 + def delete?(element); end # :call-seq: delete_at(index) -> number or :* or nil # @@ -7758,7 +8406,7 @@ class Net::IMAP::SequenceSet # # Related: #delete, #delete?, #slice!, #subtract, #difference # - # source://net-imap//lib/net/imap/sequence_set.rb#801 + # source://net-imap//lib/net/imap/sequence_set.rb#1049 def delete_at(index); end # :call-seq: @@ -7768,16 +8416,24 @@ class Net::IMAP::SequenceSet # Returns a new sequence set built by duplicating this set and removing # every number that appears in +other+. # - # +other+ may be any object that would be accepted by ::new: a non-zero 32 - # bit unsigned integer, range, sequence-set formatted string, - # another sequence set, or an enumerable containing any of these. + # +other+ may be any object that would be accepted by ::new. # # Net::IMAP::SequenceSet[1..5] - 2 - 4 - 6 # #=> Net::IMAP::SequenceSet["1,3,5"] # - # Related: #subtract + # Related: #subtract, #|, #&, #^, #~ # - # source://net-imap//lib/net/imap/sequence_set.rb#632 + # ==== Set identities + # + # lhs - rhs is equivalent to: + # * ~rhs - ~lhs + # * lhs & ~rhs + # * ~(~lhs | rhs) + # * lhs & (lhs ^ rhs) + # * lhs ^ (lhs & rhs) + # * rhs ^ (lhs | rhs) + # + # source://net-imap//lib/net/imap/sequence_set.rb#851 def difference(other); end # Returns +true+ if the set and a given object have no common elements, @@ -7790,18 +8446,18 @@ class Net::IMAP::SequenceSet # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#562 + # source://net-imap//lib/net/imap/sequence_set.rb#740 def disjoint?(other); end # Yields each number or range (or :*) in #elements to the block # and returns self. Returns an enumerator when called without a block. # # The returned numbers are sorted and de-duplicated, even when the input - # #string is not. See #normalize. + # #string is not. See #normalize, SequenceSet@Ordered+and+Normalized+sets. # # Related: #elements, #each_entry # - # source://net-imap//lib/net/imap/sequence_set.rb#951 + # source://net-imap//lib/net/imap/sequence_set.rb#1195 def each_element; end # Yields each number or range in #string to the block and returns +self+. @@ -7811,9 +8467,11 @@ class Net::IMAP::SequenceSet # no sorting, deduplication, or coalescing. When #string is in its # normalized form, this will yield the same values as #each_element. # + # See SequenceSet@Ordered+and+Normalized+sets. + # # Related: #entries, #each_element # - # source://net-imap//lib/net/imap/sequence_set.rb#939 + # source://net-imap//lib/net/imap/sequence_set.rb#1183 def each_entry(&block); end # Yields each number in #numbers to the block and returns self. @@ -7826,7 +8484,7 @@ class Net::IMAP::SequenceSet # # @raise [RangeError] # - # source://net-imap//lib/net/imap/sequence_set.rb#1001 + # source://net-imap//lib/net/imap/sequence_set.rb#1245 def each_number(&block); end # Yields each number in #entries to the block and returns self. @@ -7839,7 +8497,7 @@ class Net::IMAP::SequenceSet # # @raise [RangeError] # - # source://net-imap//lib/net/imap/sequence_set.rb#1015 + # source://net-imap//lib/net/imap/sequence_set.rb#1259 def each_ordered_number(&block); end # Yields each range in #ranges to the block and returns self. @@ -7847,36 +8505,39 @@ class Net::IMAP::SequenceSet # # Related: #ranges # - # source://net-imap//lib/net/imap/sequence_set.rb#983 + # source://net-imap//lib/net/imap/sequence_set.rb#1227 def each_range; end # Returns an array of ranges and integers and :*. # # The returned elements are sorted and coalesced, even when the input - # #string is not. * will sort last. See #normalize. + # #string is not. * will sort last. See #normalize, + # SequenceSet@Ordered+and+Normalized+sets. # # By itself, * translates to :*. A range containing # * translates to an endless range. Use #limit to translate both # cases to a maximum value. # - # The returned elements will be sorted and coalesced, even when the input - # #string is not. * will sort last. See #normalize. - # # Net::IMAP::SequenceSet["2,5:9,6,*,12:11"].elements # #=> [2, 5..9, 11..12, :*] # # Related: #each_element, #ranges, #numbers # - # source://net-imap//lib/net/imap/sequence_set.rb#880 + # source://net-imap//lib/net/imap/sequence_set.rb#1124 def elements; end # Returns true if the set contains no elements # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#592 + # source://net-imap//lib/net/imap/sequence_set.rb#797 def empty?; end + # For YAML serialization + # + # source://net-imap//lib/net/imap/sequence_set.rb#1725 + def encode_with(coder); end + # Returns an array of ranges and integers and :*. # # The entries are in the same order they appear in #string, with no @@ -7885,9 +8546,11 @@ class Net::IMAP::SequenceSet # This is useful when the given order is significant, for example in a # ESEARCH response to IMAP#sort. # + # See SequenceSet@Ordered+and+Normalized+sets. + # # Related: #each_entry, #elements # - # source://net-imap//lib/net/imap/sequence_set.rb#862 + # source://net-imap//lib/net/imap/sequence_set.rb#1108 def entries; end # :call-seq: eql?(other) -> true or false @@ -7907,7 +8570,7 @@ class Net::IMAP::SequenceSet # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#487 + # source://net-imap//lib/net/imap/sequence_set.rb#661 def eql?(other); end # Returns the (sorted and deduplicated) index of +number+ in the set, or @@ -7915,7 +8578,7 @@ class Net::IMAP::SequenceSet # # Related: #[], #at, #find_ordered_index # - # source://net-imap//lib/net/imap/sequence_set.rb#1095 + # source://net-imap//lib/net/imap/sequence_set.rb#1339 def find_index(number); end # Returns the first index of +number+ in the ordered #entries, or @@ -7923,19 +8586,19 @@ class Net::IMAP::SequenceSet # # Related: #find_index # - # source://net-imap//lib/net/imap/sequence_set.rb#1108 + # source://net-imap//lib/net/imap/sequence_set.rb#1352 def find_ordered_index(number); end # Freezes and returns the set. A frozen SequenceSet is Ractor-safe. # - # source://net-imap//lib/net/imap/sequence_set.rb#445 + # source://net-imap//lib/net/imap/sequence_set.rb#619 def freeze; end # Returns true if the set contains every possible element. # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#595 + # source://net-imap//lib/net/imap/sequence_set.rb#800 def full?; end # :call-seq: has_duplicates? -> true | false @@ -7948,17 +8611,17 @@ class Net::IMAP::SequenceSet # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#1086 + # source://net-imap//lib/net/imap/sequence_set.rb#1330 def has_duplicates?; end # See #eql? # - # source://net-imap//lib/net/imap/sequence_set.rb#490 + # source://net-imap//lib/net/imap/sequence_set.rb#664 def hash; end # Returns +true+ when a given number or range is in +self+, and +false+ - # otherwise. Returns +false+ unless +number+ is an Integer, Range, or - # *. + # otherwise. Returns +nil+ when +number+ isn't a valid SequenceSet + # element (Integer, Range, *, +sequence-set+ string). # # set = Net::IMAP::SequenceSet["5:10,100,111:115"] # set.include? 1 #=> false @@ -7966,8 +8629,8 @@ class Net::IMAP::SequenceSet # set.include? 11..20 #=> false # set.include? 100 #=> true # set.include? 6 #=> true, covered by "5:10" - # set.include? 4..9 #=> true, covered by "5:10" - # set.include? "4:9" #=> true, strings are parsed + # set.include? 6..9 #=> true, covered by "5:10" + # set.include? "6:9" #=> true, strings are parsed # set.include? 4..9 #=> false, intersection is not sufficient # set.include? "*" #=> false, use #limit to re-interpret "*" # set.include? -1 #=> false, -1 is interpreted as "*" @@ -7976,24 +8639,53 @@ class Net::IMAP::SequenceSet # set.include? :* #=> true # set.include? "*" #=> true # set.include? -1 #=> true - # set.include? 200.. #=> true - # set.include? 100.. #=> false + # set.include?(200..) #=> true + # set.include?(100..) #=> false # - # Related: #include_star?, #cover?, #=== + # Related: #include_star?, #cover?, #===, #intersect? # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#536 + # source://net-imap//lib/net/imap/sequence_set.rb#711 def include?(element); end # Returns +true+ when the set contains *. # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#541 + # source://net-imap//lib/net/imap/sequence_set.rb#719 def include_star?; end - # source://net-imap//lib/net/imap/sequence_set.rb#1346 + # For YAML deserialization + # + # source://net-imap//lib/net/imap/sequence_set.rb#1731 + def init_with(coder); end + + # Returns an inspection string for the SequenceSet. + # + # Net::IMAP::SequenceSet.new.inspect + # #=> "Net::IMAP::SequenceSet()" + # + # Net::IMAP::SequenceSet(1..5, 1024, 15, 2000).inspect + # #=> 'Net::IMAP::SequenceSet("1:5,15,1024,2000")' + # + # Frozen sets have slightly different output: + # + # Net::IMAP::SequenceSet.empty.inspect + # #=> "Net::IMAP::SequenceSet.empty" + # + # Net::IMAP::SequenceSet[1..5, 1024, 15, 2000].inspect + # #=> 'Net::IMAP::SequenceSet["1:5,15,1024,2000"]' + # + # Large sets (by number of #entries) have abridged output, with only the + # first and last entries: + # + # Net::IMAP::SequenceSet(((1..5000) % 2).to_a).inspect + # #=> # + # + # Related: #to_s, #string + # + # source://net-imap//lib/net/imap/sequence_set.rb#1676 def inspect; end # Returns +true+ if the set and a given object have any common elements, @@ -8002,11 +8694,11 @@ class Net::IMAP::SequenceSet # Net::IMAP::SequenceSet["5:10"].intersect? "7,9,11" #=> true # Net::IMAP::SequenceSet["5:10"].intersect? "11:33" #=> false # - # Related: #intersection, #disjoint? + # Related: #intersection, #disjoint?, #cover?, #include? # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#550 + # source://net-imap//lib/net/imap/sequence_set.rb#728 def intersect?(other); end # :call-seq: @@ -8016,16 +8708,24 @@ class Net::IMAP::SequenceSet # Returns a new sequence set containing only the numbers common to this # set and +other+. # - # +other+ may be any object that would be accepted by ::new: a non-zero 32 - # bit unsigned integer, range, sequence-set formatted string, - # another sequence set, or an enumerable containing any of these. + # +other+ may be any object that would be accepted by ::new. # # Net::IMAP::SequenceSet[1..5] & [2, 4, 6] # #=> Net::IMAP::SequenceSet["2,4"] # - # (seqset & other) is equivalent to (seqset - ~other). + # Related: #intersect?, #|, #-, #^, #~ + # + # ==== Set identities # - # source://net-imap//lib/net/imap/sequence_set.rb#650 + # lhs & rhs is equivalent to: + # * rhs & lhs (commutative) + # * ~(~lhs | ~rhs) (De Morgan's Law) + # * lhs - ~rhs + # * lhs - (lhs - rhs) + # * lhs - (lhs ^ rhs) + # * lhs ^ (lhs - rhs) + # + # source://net-imap//lib/net/imap/sequence_set.rb#879 def intersection(other); end # Returns a frozen SequenceSet with * converted to +max+, numbers @@ -8045,7 +8745,9 @@ class Net::IMAP::SequenceSet # Net::IMAP::SequenceSet["500:*"].limit(max: 37) # #=> Net::IMAP::SequenceSet["37"] # - # source://net-imap//lib/net/imap/sequence_set.rb#1273 + # Related: #limit! + # + # source://net-imap//lib/net/imap/sequence_set.rb#1574 def limit(max:); end # Removes all members over +max+ and returns self. If * is a @@ -8053,20 +8755,28 @@ class Net::IMAP::SequenceSet # # Related: #limit # - # source://net-imap//lib/net/imap/sequence_set.rb#1286 + # source://net-imap//lib/net/imap/sequence_set.rb#1587 def limit!(max:); end - # :call-seq: max(star: :*) => integer or star or nil + # :call-seq: + # max(star: :*) => integer or star or nil + # max(count) => SequenceSet # # Returns the maximum value in +self+, +star+ when the set includes # *, or +nil+ when the set is empty. # - # source://net-imap//lib/net/imap/sequence_set.rb#570 - def max(star: T.unsafe(nil)); end + # When +count+ is given, a new SequenceSet is returned, containing only + # the last +count+ numbers. An empty SequenceSet is returned when +self+ + # is empty. (+star+ is ignored when +count+ is given.) + # + # Related: #min, #minmax, #slice + # + # source://net-imap//lib/net/imap/sequence_set.rb#756 + def max(count = T.unsafe(nil), star: T.unsafe(nil)); end # Returns +true+ when a given number or range is in +self+, and +false+ - # otherwise. Returns +false+ unless +number+ is an Integer, Range, or - # *. + # otherwise. Returns +nil+ when +number+ isn't a valid SequenceSet + # element (Integer, Range, *, +sequence-set+ string). # # set = Net::IMAP::SequenceSet["5:10,100,111:115"] # set.include? 1 #=> false @@ -8074,8 +8784,8 @@ class Net::IMAP::SequenceSet # set.include? 11..20 #=> false # set.include? 100 #=> true # set.include? 6 #=> true, covered by "5:10" - # set.include? 4..9 #=> true, covered by "5:10" - # set.include? "4:9" #=> true, strings are parsed + # set.include? 6..9 #=> true, covered by "5:10" + # set.include? "6:9" #=> true, strings are parsed # set.include? 4..9 #=> false, intersection is not sufficient # set.include? "*" #=> false, use #limit to re-interpret "*" # set.include? -1 #=> false, -1 is interpreted as "*" @@ -8084,84 +8794,95 @@ class Net::IMAP::SequenceSet # set.include? :* #=> true # set.include? "*" #=> true # set.include? -1 #=> true - # set.include? 200.. #=> true - # set.include? 100.. #=> false + # set.include?(200..) #=> true + # set.include?(100..) #=> false # - # Related: #include_star?, #cover?, #=== + # Related: #include_star?, #cover?, #===, #intersect? # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#536 + # source://net-imap//lib/net/imap/sequence_set.rb#716 def member?(element); end - # Merges all of the elements that appear in any of the +inputs+ into the + # Merges all of the elements that appear in any of the +sets+ into the # set, and returns +self+. # - # The +inputs+ may be any objects that would be accepted by ::new: - # non-zero 32 bit unsigned integers, ranges, sequence-set - # formatted strings, other sequence sets, or enumerables containing any of - # these. + # The +sets+ may be any objects that would be accepted by ::new. # - # #string will be regenerated after all inputs have been merged. + # #string will be regenerated after all sets have been merged. # # Related: #add, #add?, #union # - # source://net-imap//lib/net/imap/sequence_set.rb#834 - def merge(*inputs); end + # source://net-imap//lib/net/imap/sequence_set.rb#1080 + def merge(*sets); end - # :call-seq: min(star: :*) => integer or star or nil + # :call-seq: + # min(star: :*) => integer or star or nil + # min(count) => SequenceSet # # Returns the minimum value in +self+, +star+ when the only value in the # set is *, or +nil+ when the set is empty. # - # source://net-imap//lib/net/imap/sequence_set.rb#578 - def min(star: T.unsafe(nil)); end + # When +count+ is given, a new SequenceSet is returned, containing only + # the first +count+ numbers. An empty SequenceSet is returned when +self+ + # is empty. (+star+ is ignored when +count+ is given.) + # + # Related: #max, #minmax, #slice + # + # source://net-imap//lib/net/imap/sequence_set.rb#776 + def min(count = T.unsafe(nil), star: T.unsafe(nil)); end - # :call-seq: minmax(star: :*) => nil or [integer, integer or star] + # :call-seq: minmax(star: :*) => [min, max] or nil # # Returns a 2-element array containing the minimum and maximum numbers in - # +self+, or +nil+ when the set is empty. + # +self+, or +nil+ when the set is empty. +star+ is handled the same way + # as by #min and #max. # - # source://net-imap//lib/net/imap/sequence_set.rb#586 + # Related: #min, #max + # + # source://net-imap//lib/net/imap/sequence_set.rb#791 def minmax(star: T.unsafe(nil)); end # Returns a new SequenceSet with a normalized string representation. # # The returned set's #string is sorted and deduplicated. Adjacent or # overlapping elements will be merged into a single larger range. + # See SequenceSet@Ordered+and+Normalized+sets. # # Net::IMAP::SequenceSet["1:5,3:7,10:9,10:11"].normalize # #=> Net::IMAP::SequenceSet["1:7,9:11"] # # Related: #normalize!, #normalized_string # - # source://net-imap//lib/net/imap/sequence_set.rb#1319 + # source://net-imap//lib/net/imap/sequence_set.rb#1623 def normalize; end # Resets #string to be sorted, deduplicated, and coalesced. Returns - # +self+. + # +self+. See SequenceSet@Ordered+and+Normalized+sets. # # Related: #normalize, #normalized_string # - # source://net-imap//lib/net/imap/sequence_set.rb#1329 + # source://net-imap//lib/net/imap/sequence_set.rb#1633 def normalize!; end # Returns a normalized +sequence-set+ string representation, sorted # and deduplicated. Adjacent or overlapping elements will be merged into - # a single larger range. Returns +nil+ when the set is empty. + # a single larger range. See SequenceSet@Ordered+and+Normalized+sets. # # Net::IMAP::SequenceSet["1:5,3:7,10:9,10:11"].normalized_string # #=> "1:7,9:11" # - # Related: #normalize!, #normalize + # Returns +nil+ when the set is empty. + # + # Related: #normalize!, #normalize, #string, #to_s # - # source://net-imap//lib/net/imap/sequence_set.rb#1342 + # source://net-imap//lib/net/imap/sequence_set.rb#1649 def normalized_string; end # Returns a sorted array of all of the number values in the sequence set. # # The returned numbers are sorted and de-duplicated, even when the input - # #string is not. See #normalize. + # #string is not. See #normalize, SequenceSet@Ordered+and+Normalized+sets. # # Net::IMAP::SequenceSet["2,5:9,6,12:11"].numbers # #=> [2, 5, 6, 7, 8, 9, 11, 12] @@ -8185,7 +8906,7 @@ class Net::IMAP::SequenceSet # # Related: #elements, #ranges, #to_set # - # source://net-imap//lib/net/imap/sequence_set.rb#929 + # source://net-imap//lib/net/imap/sequence_set.rb#1171 def numbers; end # :call-seq: ordered_at(index) -> integer or nil @@ -8198,7 +8919,7 @@ class Net::IMAP::SequenceSet # # Related: #[], #slice, #ordered_at # - # source://net-imap//lib/net/imap/sequence_set.rb#1163 + # source://net-imap//lib/net/imap/sequence_set.rb#1407 def ordered_at(index); end # Returns +true+ if the set and a given object have any common elements, @@ -8207,25 +8928,23 @@ class Net::IMAP::SequenceSet # Net::IMAP::SequenceSet["5:10"].intersect? "7,9,11" #=> true # Net::IMAP::SequenceSet["5:10"].intersect? "11:33" #=> false # - # Related: #intersection, #disjoint? + # Related: #intersection, #disjoint?, #cover?, #include? # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#550 + # source://net-imap//lib/net/imap/sequence_set.rb#731 def overlap?(other); end # Returns an array of ranges # # The returned elements are sorted and coalesced, even when the input - # #string is not. * will sort last. See #normalize. + # #string is not. * will sort last. See #normalize, + # SequenceSet@Ordered+and+Normalized+sets. # # * translates to an endless range. By itself, * # translates to :*... Use #limit to set * to a maximum # value. # - # The returned ranges will be sorted and coalesced, even when the input - # #string is not. * will sort last. See #normalize. - # # Net::IMAP::SequenceSet["2,5:9,6,*,12:11"].ranges # #=> [2..2, 5..9, 11..12, :*..] # Net::IMAP::SequenceSet["123,999:*,456:789"].ranges @@ -8233,21 +8952,21 @@ class Net::IMAP::SequenceSet # # Related: #each_range, #elements, #numbers, #to_set # - # source://net-imap//lib/net/imap/sequence_set.rb#901 + # source://net-imap//lib/net/imap/sequence_set.rb#1143 def ranges; end # Replace the contents of the set with the contents of +other+ and returns # +self+. # - # +other+ may be another SequenceSet, or it may be an IMAP +sequence-set+ - # string, a number, a range, *, or an enumerable of these. + # +other+ may be another SequenceSet or any other object that would be + # accepted by ::new. # - # source://net-imap//lib/net/imap/sequence_set.rb#381 + # source://net-imap//lib/net/imap/sequence_set.rb#548 def replace(other); end # Unstable API: for internal use only (Net::IMAP#send_data) # - # source://net-imap//lib/net/imap/sequence_set.rb#1366 + # source://net-imap//lib/net/imap/sequence_set.rb#1720 def send_data(imap, tag); end # Returns the count of #numbers in the set. @@ -8257,7 +8976,7 @@ class Net::IMAP::SequenceSet # # Related: #count_with_duplicates # - # source://net-imap//lib/net/imap/sequence_set.rb#1045 + # source://net-imap//lib/net/imap/sequence_set.rb#1294 def size; end # :call-seq: @@ -8300,7 +9019,7 @@ class Net::IMAP::SequenceSet # # Related: #at # - # source://net-imap//lib/net/imap/sequence_set.rb#1220 + # source://net-imap//lib/net/imap/sequence_set.rb#1471 def slice(index, length = T.unsafe(nil)); end # :call-seq: @@ -8317,7 +9036,7 @@ class Net::IMAP::SequenceSet # # Related: #slice, #delete_at, #delete, #delete?, #subtract, #difference # - # source://net-imap//lib/net/imap/sequence_set.rb#818 + # source://net-imap//lib/net/imap/sequence_set.rb#1066 def slice!(index, length = T.unsafe(nil)); end # Returns the \IMAP +sequence-set+ string representation, or +nil+ when @@ -8330,65 +9049,61 @@ class Net::IMAP::SequenceSet # If the set was created from a single string, it is not normalized. If # the set is updated the string will be normalized. # - # Related: #valid_string, #normalized_string, #to_s + # Related: #valid_string, #normalized_string, #to_s, #inspect # - # source://net-imap//lib/net/imap/sequence_set.rb#413 + # source://net-imap//lib/net/imap/sequence_set.rb#583 def string; end - # Assigns a new string to #string and resets #elements to match. It - # cannot be set to an empty string—assign +nil+ or use #clear instead. - # The string is validated but not normalized. + # Assigns a new string to #string and resets #elements to match. + # Assigning +nil+ or an empty string are equivalent to calling #clear. # - # Use #add or #merge to add a string to an existing set. + # Non-empty strings are validated but not normalized. + # + # Use #add, #merge, or #append to add a string to an existing set. # # Related: #replace, #clear # - # source://net-imap//lib/net/imap/sequence_set.rb#426 - def string=(str); end + # source://net-imap//lib/net/imap/sequence_set.rb#597 + def string=(input); end - # Removes all of the elements that appear in any of the given +objects+ - # from the set, and returns +self+. + # Removes all of the elements that appear in any of the given +sets+ from + # the set, and returns +self+. # - # The +objects+ may be any objects that would be accepted by ::new: - # non-zero 32 bit unsigned integers, ranges, sequence-set - # formatted strings, other sequence sets, or enumerables containing any of - # these. + # The +sets+ may be any objects that would be accepted by ::new. # # Related: #difference # - # source://net-imap//lib/net/imap/sequence_set.rb#848 - def subtract(*objects); end + # source://net-imap//lib/net/imap/sequence_set.rb#1092 + def subtract(*sets); end # Returns an array of ranges and integers and :*. # # The returned elements are sorted and coalesced, even when the input - # #string is not. * will sort last. See #normalize. + # #string is not. * will sort last. See #normalize, + # SequenceSet@Ordered+and+Normalized+sets. # # By itself, * translates to :*. A range containing # * translates to an endless range. Use #limit to translate both # cases to a maximum value. # - # The returned elements will be sorted and coalesced, even when the input - # #string is not. * will sort last. See #normalize. - # # Net::IMAP::SequenceSet["2,5:9,6,*,12:11"].elements # #=> [2, 5..9, 11..12, :*] # # Related: #each_element, #ranges, #numbers # - # source://net-imap//lib/net/imap/sequence_set.rb#880 + # source://net-imap//lib/net/imap/sequence_set.rb#1125 def to_a; end # Returns the \IMAP +sequence-set+ string representation, or an empty # string when the set is empty. Note that an empty set is invalid in the # \IMAP syntax. # - # Related: #valid_string, #normalized_string, #to_s + # Related: #string, #valid_string, #normalized_string, #inspect # - # source://net-imap//lib/net/imap/sequence_set.rb#442 + # source://net-imap//lib/net/imap/sequence_set.rb#616 def to_s; end - # Returns self + # source://net-imap//lib/net/imap/sequence_set.rb#1711 def to_sequence_set; end # Returns a Set with all of the #numbers in the sequence set. @@ -8399,7 +9114,7 @@ class Net::IMAP::SequenceSet # # Related: #elements, #ranges, #numbers # - # source://net-imap//lib/net/imap/sequence_set.rb#1037 + # source://net-imap//lib/net/imap/sequence_set.rb#1281 def to_set; end # :call-seq: @@ -8410,23 +9125,28 @@ class Net::IMAP::SequenceSet # Returns a new sequence set that has every number in the +other+ object # added. # - # +other+ may be any object that would be accepted by ::new: a non-zero 32 - # bit unsigned integer, range, sequence-set formatted string, - # another sequence set, or an enumerable containing any of these. + # +other+ may be any object that would be accepted by ::new. # # Net::IMAP::SequenceSet["1:5"] | 2 | [4..6, 99] # #=> Net::IMAP::SequenceSet["1:6,99"] # - # Related: #add, #merge + # Related: #add, #merge, #&, #-, #^, #~ # - # source://net-imap//lib/net/imap/sequence_set.rb#613 + # ==== Set identities + # + # lhs | rhs is equivalent to: + # * rhs | lhs (commutative) + # * ~(~lhs & ~rhs) (De Morgan's Law) + # * (lhs & rhs) ^ (lhs ^ rhs) + # + # source://net-imap//lib/net/imap/sequence_set.rb#825 def union(other); end # Returns false when the set is empty. # # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#589 + # source://net-imap//lib/net/imap/sequence_set.rb#794 def valid?; end # Returns the \IMAP +sequence-set+ string representation, or raises a @@ -8439,12 +9159,12 @@ class Net::IMAP::SequenceSet # # @raise [DataFormatError] # - # source://net-imap//lib/net/imap/sequence_set.rb#397 + # source://net-imap//lib/net/imap/sequence_set.rb#567 def valid_string; end # Unstable API: currently for internal use only (Net::IMAP#validate_data) # - # source://net-imap//lib/net/imap/sequence_set.rb#1360 + # source://net-imap//lib/net/imap/sequence_set.rb#1714 def validate; end # :call-seq: @@ -8454,17 +9174,23 @@ class Net::IMAP::SequenceSet # Returns a new sequence set containing numbers that are exclusive between # this set and +other+. # - # +other+ may be any object that would be accepted by ::new: a non-zero 32 - # bit unsigned integer, range, sequence-set formatted string, - # another sequence set, or an enumerable containing any of these. + # +other+ may be any object that would be accepted by ::new. # # Net::IMAP::SequenceSet[1..5] ^ [2, 4, 6] # #=> Net::IMAP::SequenceSet["1,3,5:6"] # - # (seqset ^ other) is equivalent to ((seqset | other) - - # (seqset & other)). + # Related: #|, #&, #-, #~ + # + # ==== Set identities # - # source://net-imap//lib/net/imap/sequence_set.rb#671 + # lhs ^ rhs is equivalent to: + # * rhs ^ lhs (commutative) + # * ~lhs ^ ~rhs + # * (lhs | rhs) - (lhs & rhs) + # * (lhs - rhs) | (rhs - lhs) + # * (lhs ^ other) ^ (other ^ rhs) + # + # source://net-imap//lib/net/imap/sequence_set.rb#904 def xor(other); end # :call-seq: @@ -8475,16 +9201,21 @@ class Net::IMAP::SequenceSet # Returns a new sequence set that has every number in the +other+ object # added. # - # +other+ may be any object that would be accepted by ::new: a non-zero 32 - # bit unsigned integer, range, sequence-set formatted string, - # another sequence set, or an enumerable containing any of these. + # +other+ may be any object that would be accepted by ::new. # # Net::IMAP::SequenceSet["1:5"] | 2 | [4..6, 99] # #=> Net::IMAP::SequenceSet["1:6,99"] # - # Related: #add, #merge + # Related: #add, #merge, #&, #-, #^, #~ + # + # ==== Set identities + # + # lhs | rhs is equivalent to: + # * rhs | lhs (commutative) + # * ~(~lhs & ~rhs) (De Morgan's Law) + # * (lhs & rhs) ^ (lhs ^ rhs) # - # source://net-imap//lib/net/imap/sequence_set.rb#613 + # source://net-imap//lib/net/imap/sequence_set.rb#823 def |(other); end # :call-seq: @@ -8501,98 +9232,115 @@ class Net::IMAP::SequenceSet # ~Net::IMAP::SequenceSet["6:99,223:*"] # #=> Net::IMAP::SequenceSet["1:5,100:222"] # - # Related: #complement! + # Related: #complement!, #|, #&, #-, #^ # - # source://net-imap//lib/net/imap/sequence_set.rb#689 + # ==== Set identities + # + # ~set is equivalent to: + # * full - set, where "full" is Net::IMAP::SequenceSet.full + # + # source://net-imap//lib/net/imap/sequence_set.rb#926 def ~; end protected - # source://net-imap//lib/net/imap/sequence_set.rb#1372 + # source://net-imap//lib/net/imap/sequence_set.rb#1740 + def deep_copy_tuples; end + + # source://net-imap//lib/net/imap/sequence_set.rb#1738 def tuples; end private - # source://net-imap//lib/net/imap/sequence_set.rb#959 + # source://net-imap//lib/net/imap/sequence_set.rb#1698 + def count_entries; end + + # source://net-imap//lib/net/imap/sequence_set.rb#1203 def each_entry_tuple(&block); end - # source://net-imap//lib/net/imap/sequence_set.rb#1021 + # source://net-imap//lib/net/imap/sequence_set.rb#1265 def each_number_in_tuple(min, max, &block); end - # source://net-imap//lib/net/imap/sequence_set.rb#1120 + # source://net-imap//lib/net/imap/sequence_set.rb#1364 def each_tuple_with_index(tuples); end - # source://net-imap//lib/net/imap/sequence_set.rb#1436 + # source://net-imap//lib/net/imap/sequence_set.rb#1806 + def export_string_entries(entries); end + + # source://net-imap//lib/net/imap/sequence_set.rb#1804 def from_tuple_int(num); end # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#1445 + # source://net-imap//lib/net/imap/sequence_set.rb#1817 def include_tuple?(_arg0); end # frozen clones are shallow copied # - # source://net-imap//lib/net/imap/sequence_set.rb#1379 + # source://net-imap//lib/net/imap/sequence_set.rb#1748 def initialize_clone(other); end - # source://net-imap//lib/net/imap/sequence_set.rb#1383 + # source://net-imap//lib/net/imap/sequence_set.rb#1753 def initialize_dup(other); end - # source://net-imap//lib/net/imap/sequence_set.rb#1389 - def input_to_tuple(obj); end + # source://net-imap//lib/net/imap/sequence_set.rb#1758 + def input_to_tuple(entry); end - # source://net-imap//lib/net/imap/sequence_set.rb#1400 - def input_to_tuples(obj); end + # source://net-imap//lib/net/imap/sequence_set.rb#1769 + def input_to_tuples(set); end # unlike SequenceSet#try_convert, this returns an Integer, Range, # String, Set, Array, or... any type of object. # - # source://net-imap//lib/net/imap/sequence_set.rb#1418 + # source://net-imap//lib/net/imap/sequence_set.rb#1786 def input_try_convert(input); end # @return [Boolean] # - # source://net-imap//lib/net/imap/sequence_set.rb#1447 + # source://net-imap//lib/net/imap/sequence_set.rb#1819 def intersect_tuple?(_arg0); end - # source://net-imap//lib/net/imap/sequence_set.rb#1167 + # source://net-imap//lib/net/imap/sequence_set.rb#1411 def lookup_number_by_tuple_index(tuples, index); end - # source://net-imap//lib/net/imap/sequence_set.rb#1452 + # source://net-imap//lib/net/imap/sequence_set.rb#1824 def modifying!; end - # source://net-imap//lib/net/imap/sequence_set.rb#1549 + # source://net-imap//lib/net/imap/sequence_set.rb#1921 def nz_number(num); end - # source://net-imap//lib/net/imap/sequence_set.rb#1544 + # source://net-imap//lib/net/imap/sequence_set.rb#1916 def range_gte_to(num); end - # source://net-imap//lib/net/imap/sequence_set.rb#1425 + # source://net-imap//lib/net/imap/sequence_set.rb#1793 def range_to_tuple(range); end - # source://net-imap//lib/net/imap/sequence_set.rb#1376 + # source://net-imap//lib/net/imap/sequence_set.rb#1744 def remain_frozen(set); end - # source://net-imap//lib/net/imap/sequence_set.rb#1130 + # source://net-imap//lib/net/imap/sequence_set.rb#1745 + def remain_frozen_empty; end + + # source://net-imap//lib/net/imap/sequence_set.rb#1374 def reverse_each_tuple_with_index(tuples); end # @raise [ArgumentError] # - # source://net-imap//lib/net/imap/sequence_set.rb#1231 + # source://net-imap//lib/net/imap/sequence_set.rb#1475 def slice_length(start, length); end - # source://net-imap//lib/net/imap/sequence_set.rb#1239 + # source://net-imap//lib/net/imap/sequence_set.rb#1483 def slice_range(range); end # @raise [DataFormatError] # - # source://net-imap//lib/net/imap/sequence_set.rb#1440 + # source://net-imap//lib/net/imap/sequence_set.rb#1812 def str_to_tuple(str); end - # source://net-imap//lib/net/imap/sequence_set.rb#1439 + # source://net-imap//lib/net/imap/sequence_set.rb#1811 def str_to_tuples(str); end - # source://net-imap//lib/net/imap/sequence_set.rb#1435 + # source://net-imap//lib/net/imap/sequence_set.rb#1803 def to_tuple_int(obj); end # --|=====| |=====new tuple=====| append @@ -8605,13 +9353,13 @@ class Net::IMAP::SequenceSet # ---------??===lower==|--|==|----|===upper===|-- join until upper # ---------??===lower==|--|==|--|=====upper===|-- join to upper # - # source://net-imap//lib/net/imap/sequence_set.rb#1471 + # source://net-imap//lib/net/imap/sequence_set.rb#1843 def tuple_add(tuple); end - # source://net-imap//lib/net/imap/sequence_set.rb#1481 + # source://net-imap//lib/net/imap/sequence_set.rb#1853 def tuple_coalesce(lower, lower_idx, min, max); end - # source://net-imap//lib/net/imap/sequence_set.rb#1540 + # source://net-imap//lib/net/imap/sequence_set.rb#1912 def tuple_gte_with_index(num); end # |====tuple================| @@ -8628,49 +9376,54 @@ class Net::IMAP::SequenceSet # -------??=====lower====|--|====|---|====upper====|-- 7. delete until # -------??=====lower====|--|====|--|=====upper====|-- 8. delete and trim # - # source://net-imap//lib/net/imap/sequence_set.rb#1508 + # source://net-imap//lib/net/imap/sequence_set.rb#1880 def tuple_subtract(tuple); end - # source://net-imap//lib/net/imap/sequence_set.rb#969 + # source://net-imap//lib/net/imap/sequence_set.rb#1213 def tuple_to_entry(_arg0); end - # source://net-imap//lib/net/imap/sequence_set.rb#1438 + # source://net-imap//lib/net/imap/sequence_set.rb#1810 def tuple_to_str(tuple); end - # source://net-imap//lib/net/imap/sequence_set.rb#1519 + # source://net-imap//lib/net/imap/sequence_set.rb#1891 def tuple_trim_or_split(lower, idx, tmin, tmax); end - # source://net-imap//lib/net/imap/sequence_set.rb#1458 + # source://net-imap//lib/net/imap/sequence_set.rb#1830 def tuples_add(tuples); end - # source://net-imap//lib/net/imap/sequence_set.rb#1459 + # source://net-imap//lib/net/imap/sequence_set.rb#1831 def tuples_subtract(tuples); end - # source://net-imap//lib/net/imap/sequence_set.rb#1526 + # source://net-imap//lib/net/imap/sequence_set.rb#1898 def tuples_trim_or_delete(lower, lower_idx, tmin, tmax); end class << self # :call-seq: - # SequenceSet[*values] -> valid frozen sequence set + # SequenceSet[*inputs] -> valid frozen sequence set + # + # Returns a frozen SequenceSet, constructed from +inputs+. # - # Returns a frozen SequenceSet, constructed from +values+. + # When only a single valid frozen SequenceSet is given, that same set is + # returned. # # An empty SequenceSet is invalid and will raise a DataFormatError. # # Use ::new to create a mutable or empty SequenceSet. # - # source://net-imap//lib/net/imap/sequence_set.rb#328 + # Related: ::new, Net::IMAP::SequenceSet(), ::try_convert + # + # source://net-imap//lib/net/imap/sequence_set.rb#431 def [](first, *rest); end # Returns a frozen empty set singleton. Note that valid \IMAP sequence # sets cannot be empty, so this set is _invalid_. # - # source://net-imap//lib/net/imap/sequence_set.rb#359 + # source://net-imap//lib/net/imap/sequence_set.rb#461 def empty; end # Returns a frozen full set singleton: "1:*" # - # source://net-imap//lib/net/imap/sequence_set.rb#362 + # source://net-imap//lib/net/imap/sequence_set.rb#464 def full; end # :call-seq: @@ -8683,34 +9436,48 @@ class Net::IMAP::SequenceSet # If +obj.to_sequence_set+ doesn't return a SequenceSet, an exception is # raised. # + # Related: Net::IMAP::SequenceSet(), ::new, ::[] + # # @raise [DataFormatError] # - # source://net-imap//lib/net/imap/sequence_set.rb#349 + # source://net-imap//lib/net/imap/sequence_set.rb#451 def try_convert(obj); end end end # intentionally defined after the class implementation # -# source://net-imap//lib/net/imap/sequence_set.rb#1559 +# source://net-imap//lib/net/imap/sequence_set.rb#1931 Net::IMAP::SequenceSet::EMPTY = T.let(T.unsafe(nil), Net::IMAP::SequenceSet) -# source://net-imap//lib/net/imap/sequence_set.rb#1560 +# source://net-imap//lib/net/imap/sequence_set.rb#1932 Net::IMAP::SequenceSet::FULL = T.let(T.unsafe(nil), Net::IMAP::SequenceSet) +# source://net-imap//lib/net/imap/sequence_set.rb#412 +Net::IMAP::SequenceSet::INSPECT_ABRIDGED_HEAD_RE = T.let(T.unsafe(nil), Regexp) + +# source://net-imap//lib/net/imap/sequence_set.rb#413 +Net::IMAP::SequenceSet::INSPECT_ABRIDGED_TAIL_RE = T.let(T.unsafe(nil), Regexp) + +# source://net-imap//lib/net/imap/sequence_set.rb#399 +Net::IMAP::SequenceSet::INSPECT_MAX_LEN = T.let(T.unsafe(nil), Integer) + +# source://net-imap//lib/net/imap/sequence_set.rb#400 +Net::IMAP::SequenceSet::INSPECT_TRUNCATE_LEN = T.let(T.unsafe(nil), Integer) + # valid inputs for "*" # -# source://net-imap//lib/net/imap/sequence_set.rb#315 +# source://net-imap//lib/net/imap/sequence_set.rb#396 Net::IMAP::SequenceSet::STARS = T.let(T.unsafe(nil), Array) # represents "*" internally, to simplify sorting (etc) # -# source://net-imap//lib/net/imap/sequence_set.rb#311 +# source://net-imap//lib/net/imap/sequence_set.rb#392 Net::IMAP::SequenceSet::STAR_INT = T.let(T.unsafe(nil), Integer) # The largest possible non-zero unsigned 32-bit integer # -# source://net-imap//lib/net/imap/sequence_set.rb#308 +# source://net-imap//lib/net/imap/sequence_set.rb#389 Net::IMAP::SequenceSet::UINT32_MAX = T.let(T.unsafe(nil), Integer) # source://net-imap//lib/net/imap/command_data.rb#286 @@ -9410,17 +10177,17 @@ Net::IMAP::TRASH = T.let(T.unsafe(nil), Symbol) # Net::IMAP::ThreadMember represents a thread-node returned # by Net::IMAP#thread. # -# source://net-imap//lib/net/imap/response_data.rb#738 +# source://net-imap//lib/net/imap/response_data.rb#737 class Net::IMAP::ThreadMember < ::Struct # Returns a SequenceSet containing #seqno and all #children's seqno, # recursively. # - # source://net-imap//lib/net/imap/response_data.rb#754 + # source://net-imap//lib/net/imap/response_data.rb#753 def to_sequence_set; end protected - # source://net-imap//lib/net/imap/response_data.rb#760 + # source://net-imap//lib/net/imap/response_data.rb#759 def all_seqnos(node = T.unsafe(nil)); end end @@ -9494,7 +10261,7 @@ end # unhandled extensions. The connection may still be usable, # but—depending on context—it may be prudent to disconnect. # -# source://net-imap//lib/net/imap/errors.rb#77 +# source://net-imap//lib/net/imap/errors.rb#110 class Net::IMAP::UnknownResponseError < ::Net::IMAP::ResponseError; end # **Note:** This represents an intentionally _unstable_ API. Where @@ -9507,7 +10274,7 @@ class Net::IMAP::UnknownResponseError < ::Net::IMAP::ResponseError; end # # See also: UnparsedNumericResponseData, ExtensionData, IgnoredResponse # -# source://net-imap//lib/net/imap/response_data.rb#83 +# source://net-imap//lib/net/imap/response_data.rb#82 class Net::IMAP::UnparsedData < ::Struct; end # **Note:** This represents an intentionally _unstable_ API. Where @@ -9519,10 +10286,10 @@ class Net::IMAP::UnparsedData < ::Struct; end # # See also: UnparsedData, ExtensionData, IgnoredResponse # -# source://net-imap//lib/net/imap/response_data.rb#99 +# source://net-imap//lib/net/imap/response_data.rb#98 class Net::IMAP::UnparsedNumericResponseData < ::Struct; end -# source://net-imap//lib/net/imap.rb#747 +# source://net-imap//lib/net/imap.rb#791 Net::IMAP::VERSION = T.let(T.unsafe(nil), String) # Net::IMAP::VanishedData represents the contents of a +VANISHED+ response, @@ -9548,6 +10315,8 @@ class Net::IMAP::VanishedData < ::Net::IMAP::DataLite def initialize(uids:, earlier:); end # rdoc doesn't handle attr aliases nicely. :( + # + # source://net-imap//lib/net/imap/vanished_data.rb#43 def earlier?; end # Returns an Array of all of the UIDs in #uids. diff --git a/sorbet/rbi/gems/net-pop@0.1.2.rbi b/sorbet/rbi/gems/net-pop@0.1.2.rbi index 0157b1a8..10283be3 100644 --- a/sorbet/rbi/gems/net-pop@0.1.2.rbi +++ b/sorbet/rbi/gems/net-pop@0.1.2.rbi @@ -199,7 +199,7 @@ class Net::POP3 < ::Net::Protocol # # @return [Boolean] # - # source://net-pop//lib/net/pop.rb#514 + # source://net-pop//lib/net/pop.rb#518 def active?; end # The address to connect to. @@ -256,7 +256,7 @@ class Net::POP3 < ::Net::Protocol # # This method raises a POPError if an error occurs. # - # source://net-pop//lib/net/pop.rb#668 + # source://net-pop//lib/net/pop.rb#672 def each(&block); end # Yields each message to the passed-in block in turn. @@ -729,7 +729,7 @@ class Net::POPMail # # This method raises a POPError if an error occurs. # - # source://net-pop//lib/net/pop.rb#805 + # source://net-pop//lib/net/pop.rb#817 def all(dest = T.unsafe(nil), &block); end # Marks a message for deletion on the server. Deletion does not @@ -775,7 +775,7 @@ class Net::POPMail # end # end # - # source://net-pop//lib/net/pop.rb#861 + # source://net-pop//lib/net/pop.rb#866 def delete!; end # True if the mail has been deleted. @@ -841,7 +841,7 @@ class Net::POPMail # # This method raises a POPError if an error occurs. # - # source://net-pop//lib/net/pop.rb#805 + # source://net-pop//lib/net/pop.rb#818 def mail(dest = T.unsafe(nil), &block); end # The sequence number of the message on the server. @@ -891,7 +891,7 @@ class Net::POPMail # The length of the message in octets. # - # source://net-pop//lib/net/pop.rb#759 + # source://net-pop//lib/net/pop.rb#760 def size; end # Fetches the message header and +lines+ lines of body. @@ -911,7 +911,7 @@ class Net::POPMail # # This method raises a POPError if an error occurs. # - # source://net-pop//lib/net/pop.rb#877 + # source://net-pop//lib/net/pop.rb#883 def uidl; end # Returns the unique-id of the message. diff --git a/sorbet/rbi/gems/net-protocol@0.2.2.rbi b/sorbet/rbi/gems/net-protocol@0.2.2.rbi index 7014c6f2..58318b5b 100644 --- a/sorbet/rbi/gems/net-protocol@0.2.2.rbi +++ b/sorbet/rbi/gems/net-protocol@0.2.2.rbi @@ -12,7 +12,7 @@ class Net::BufferedIO # source://net-protocol//lib/net/protocol.rb#116 def initialize(io, read_timeout: T.unsafe(nil), write_timeout: T.unsafe(nil), continue_timeout: T.unsafe(nil), debug_output: T.unsafe(nil)); end - # source://net-protocol//lib/net/protocol.rb#285 + # source://net-protocol//lib/net/protocol.rb#291 def <<(*strs); end # source://net-protocol//lib/net/protocol.rb#145 @@ -259,7 +259,7 @@ class Net::WriteAdapter # source://net-protocol//lib/net/protocol.rb#491 def inspect; end - # source://net-protocol//lib/net/protocol.rb#495 + # source://net-protocol//lib/net/protocol.rb#499 def print(str); end # source://net-protocol//lib/net/protocol.rb#510 diff --git a/sorbet/rbi/gems/net-smtp@0.5.1.rbi b/sorbet/rbi/gems/net-smtp@0.5.1.rbi index 965c6971..29bc748b 100644 --- a/sorbet/rbi/gems/net-smtp@0.5.1.rbi +++ b/sorbet/rbi/gems/net-smtp@0.5.1.rbi @@ -271,7 +271,7 @@ class Net::SMTP < ::Net::Protocol # Disables SMTP/TLS for this object. Must be called before the # connection is established to have any effect. # - # source://net-smtp//lib/net/smtp.rb#364 + # source://net-smtp//lib/net/smtp.rb#369 def disable_ssl; end # Disables SMTP/TLS (STARTTLS) for this object. Must be called @@ -295,7 +295,7 @@ class Net::SMTP < ::Net::Protocol # # @raise [ArgumentError] # - # source://net-smtp//lib/net/smtp.rb#353 + # source://net-smtp//lib/net/smtp.rb#360 def enable_ssl(context = T.unsafe(nil)); end # Enables SMTP/TLS (STARTTLS) for this object. @@ -348,7 +348,7 @@ class Net::SMTP < ::Net::Protocol # retry (but not vice versa). # +true+ if the SMTP object uses ESMTP (which it does by default). # - # source://net-smtp//lib/net/smtp.rb#289 + # source://net-smtp//lib/net/smtp.rb#292 def esmtp?; end # Finishes the SMTP session and closes TCP connection. @@ -514,7 +514,7 @@ class Net::SMTP < ::Net::Protocol # # @raise [IOError] # - # source://net-smtp//lib/net/smtp.rb#849 + # source://net-smtp//lib/net/smtp.rb#857 def ready(from_addr, *to_addrs, &block); end # Aborts the current mail transaction @@ -559,7 +559,7 @@ class Net::SMTP < ::Net::Protocol # # @raise [IOError] # - # source://net-smtp//lib/net/smtp.rb#794 + # source://net-smtp//lib/net/smtp.rb#802 def send_mail(msgstr, from_addr, *to_addrs); end # Sends +msgstr+ as a message. Single CR ("\r") and LF ("\n") found @@ -640,7 +640,7 @@ class Net::SMTP < ::Net::Protocol # # @raise [IOError] # - # source://net-smtp//lib/net/smtp.rb#794 + # source://net-smtp//lib/net/smtp.rb#803 def sendmail(msgstr, from_addr, *to_addrs); end # WARNING: This method causes serious security holes. @@ -656,14 +656,14 @@ class Net::SMTP < ::Net::Protocol # .... # end # - # source://net-smtp//lib/net/smtp.rb#450 + # source://net-smtp//lib/net/smtp.rb#454 def set_debug_output(arg); end # true if this object uses SMTP/TLS (SMTPS). # # @return [Boolean] # - # source://net-smtp//lib/net/smtp.rb#344 + # source://net-smtp//lib/net/smtp.rb#348 def ssl?; end # Hash for additional SSLContext parameters. @@ -869,7 +869,7 @@ class Net::SMTP < ::Net::Protocol # The default SMTPS port number, 465. # - # source://net-smtp//lib/net/smtp.rb#208 + # source://net-smtp//lib/net/smtp.rb#213 def default_ssl_port; end # The default mail submission port number, 587. diff --git a/sorbet/rbi/gems/netrc@0.11.0.rbi b/sorbet/rbi/gems/netrc@0.11.0.rbi index 4ae989b9..8a4c7837 100644 --- a/sorbet/rbi/gems/netrc@0.11.0.rbi +++ b/sorbet/rbi/gems/netrc@0.11.0.rbi @@ -108,32 +108,50 @@ class Netrc::Entry < ::Struct # Returns the value of attribute login # # @return [Object] the current value of login + # + # source://netrc//lib/netrc.rb#244 def login; end # Sets the attribute login # # @param value [Object] the value to set the attribute login to. # @return [Object] the newly set value + # + # source://netrc//lib/netrc.rb#244 def login=(_); end # Returns the value of attribute password # # @return [Object] the current value of password + # + # source://netrc//lib/netrc.rb#244 def password; end # Sets the attribute password # # @param value [Object] the value to set the attribute password to. # @return [Object] the newly set value + # + # source://netrc//lib/netrc.rb#244 def password=(_); end + # source://netrc//lib/netrc.rb#245 def to_ary; end class << self + # source://netrc//lib/netrc.rb#244 def [](*_arg0); end + + # source://netrc//lib/netrc.rb#244 def inspect; end + + # source://netrc//lib/netrc.rb#244 def keyword_init?; end + + # source://netrc//lib/netrc.rb#244 def members; end + + # source://netrc//lib/netrc.rb#244 def new(*_arg0); end end end diff --git a/sorbet/rbi/gems/newrelic_rpm@9.18.0.rbi b/sorbet/rbi/gems/newrelic_rpm@9.21.0.rbi similarity index 94% rename from sorbet/rbi/gems/newrelic_rpm@9.18.0.rbi rename to sorbet/rbi/gems/newrelic_rpm@9.21.0.rbi index 11094367..0ac0d288 100644 --- a/sorbet/rbi/gems/newrelic_rpm@9.18.0.rbi +++ b/sorbet/rbi/gems/newrelic_rpm@9.21.0.rbi @@ -70,16 +70,16 @@ class DependencyDetection::Dependent # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#41 def config_name=(_arg0); end - # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#195 + # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#194 def config_value; end # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#65 def configure_as_unsatisfied; end - # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#205 + # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#204 def configure_with(new_config_name); end - # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#213 + # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#212 def conflicts_with_prepend(&block); end # Returns the value of attribute dependencies. @@ -114,7 +114,7 @@ class DependencyDetection::Dependent # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#45 def executed!; end - # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#209 + # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#208 def executes(&block); end # Extracts the instrumented library name from the instrumenting module's name @@ -145,7 +145,7 @@ class DependencyDetection::Dependent # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#40 def name=(_arg0); end - # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#201 + # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#200 def named(new_name); end # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#167 @@ -158,7 +158,7 @@ class DependencyDetection::Dependent # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#221 + # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#220 def prepend_conflicts?; end # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#94 @@ -170,12 +170,12 @@ class DependencyDetection::Dependent # update any :auto config value to be either :prepend or :chain after auto # determination has selected one of those to use # - # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#188 + # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#187 def update_config_value(use_prepend); end # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#217 + # source://newrelic_rpm//lib/new_relic/dependency_detection.rb#216 def use_prepend?; end # returns only a valid value for instrumentation configuration @@ -217,70 +217,13 @@ module NewRelic::Agent extend ::Forwardable extend ::NewRelic::SupportabilityHelper - # Add attributes to the transaction trace, Insights Transaction event, and - # any traced errors recorded for the current transaction. - # - # If Browser Monitoring is enabled, and the - # browser_monitoring.attributes.enabled configuration setting is true, - # these custom attributes will also be present in the script injected into - # the response body, making them available on Insights PageView events. - # - # @api public - # @param params [Hash] A Hash of attributes to be attached to the transaction event. - # Keys should be strings or symbols, and values - # may be strings, symbols, numeric values or - # booleans. - # - # source://newrelic_rpm//lib/new_relic/agent.rb#803 + # source://newrelic_rpm//lib/new_relic/agent.rb#824 def add_custom_attributes(params); end - # Add global custom attributes to log events for the current agent instance. As these attributes are global to the - # agent instance, they will be attached to all log events generated by the agent, and this methods usage isn't - # suitable for setting dynamic values. - # - # @api public - # @param params [Hash] A Hash of attributes to attach to log - # events. The agent accepts up to 240 custom - # log event attributes. - # - # Keys will be coerced into Strings and must - # be less than 256 characters. Keys longer - # than 255 characters will be truncated. - # - # Values may be Strings, Symbols, numeric - # values or Booleans and must be less than - # 4095 characters. If the value is a String - # or a Symbol, values longer than 4094 - # characters will be truncated. If the value - # exceeds 4094 characters and is of a - # different class, the attribute pair will - # be dropped. - # - # This API can be called multiple times. - # If the same key is passed more than once, - # the value associated with the last call - # will be preserved. - # - # Attribute pairs with empty or nil contents - # will be dropped. - # - # source://newrelic_rpm//lib/new_relic/agent.rb#883 + # source://newrelic_rpm//lib/new_relic/agent.rb#906 def add_custom_log_attributes(params); end - # Add custom attributes to the span event for the current span. Attributes will be visible on spans in the - # New Relic Distributed Tracing UI and on span events in New Relic Insights. - # - # Custom attributes will not be transmitted when +high_security+ setting is enabled or - # +custom_attributes+ setting is disabled. - # - # @api public - # @param params [Hash] A Hash of attributes to be attached to the span event. - # Keys should be strings or symbols, and values - # may be strings, symbols, numeric values or - # booleans. - # @see https://docs.newrelic.com/docs/using-new-relic/welcome-new-relic/get-started/glossary#span - # - # source://newrelic_rpm//lib/new_relic/agent.rb#842 + # source://newrelic_rpm//lib/new_relic/agent.rb#864 def add_custom_span_attributes(params); end # @api private @@ -288,21 +231,12 @@ module NewRelic::Agent # source://newrelic_rpm//lib/new_relic/agent.rb#259 def add_deferred_method_tracers_now; end - # Add instrumentation files to the agent. The argument should be - # a glob matching ruby scripts which will be executed at the time - # instrumentation is loaded. Since instrumentation is not loaded - # when the agent is not running it's better to use this method to - # register instrumentation than just loading the files directly, - # although that probably also works. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#665 + # source://newrelic_rpm//lib/new_relic/agent.rb#678 def add_instrumentation(file_pattern); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent.rb#821 + # source://newrelic_rpm//lib/new_relic/agent.rb#842 def add_new_segment_attributes(params, segment); end # A third-party class may call add_method_tracer before the agent @@ -314,32 +248,7 @@ module NewRelic::Agent # source://newrelic_rpm//lib/new_relic/agent.rb#161 def add_or_defer_method_tracer(receiver, method_name, metric_name, options); end - # Register this method as a callback for processes that fork - # jobs. - # - # If the master/parent connects to the agent prior to forking the - # agent in the forked process will use that agent_run. Otherwise - # the forked process will establish a new connection with the - # server. - # - # Use this especially when you fork the process to run background - # jobs or other work. If you are doing this with a web dispatcher - # that forks worker processes then you will need to force the - # agent to reconnect, which it won't do by default. Passenger and - # Unicorn are already handled, nothing special needed for them. - # - # Options: - # * :force_reconnect => true to force the spawned process to - # establish a new connection, such as when forking a long running process. - # The default is false--it will only connect to the server if the parent - # had not connected. - # * :keep_retrying => false if we try to initiate a new - # connection, this tells me to only try it once so this method returns - # quickly if there is some kind of latency with the server. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#628 + # source://newrelic_rpm//lib/new_relic/agent.rb#638 def after_fork(options = T.unsafe(nil)); end # The singleton Agent instance. Used internally. @@ -358,25 +267,10 @@ module NewRelic::Agent # # @api public # - # source://newrelic_rpm//lib/new_relic/agent.rb#321 + # source://newrelic_rpm//lib/new_relic/agent.rb#322 def base_name(klass_name); end - # This method returns a string suitable for inclusion in a page - known as - # 'manual instrumentation' for Real User Monitoring. Can return either a - # script tag with associated javascript, or in the case of disabled Real - # User Monitoring, an empty string - # - # This is the header string - it should be placed as high in the page as is - # reasonably possible - that is, before any style or javascript inclusions, - # but after any header-related meta tags - # - # In previous agents there was a corresponding footer required, but all the - # work is now done by this single method. - # - # @api public - # @param nonce [String] The nonce to use in the javascript tag for browser instrumentation - # - # source://newrelic_rpm//lib/new_relic/agent.rb#1049 + # source://newrelic_rpm//lib/new_relic/agent.rb#1077 def browser_timing_header(nonce = T.unsafe(nil)); end # @api public @@ -384,36 +278,13 @@ module NewRelic::Agent # source://newrelic_rpm//lib/new_relic/agent.rb#269 def config; end - # Yield to the block without collecting any metrics or traces in - # any of the subsequent calls. If executed recursively, will keep - # track of the first entry point and turn on tracing again after - # leaving that block. This uses the thread local Tracer::State. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#741 + # source://newrelic_rpm//lib/new_relic/agent.rb#760 def disable_all_tracing; end - # This method sets the state of sql recording in the transaction - # sampler feature. Within the given block, no sql will be recorded - # - # usage: - # - # NewRelic::Agent.disable_sql_recording do - # ... - # end - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#765 + # source://newrelic_rpm//lib/new_relic/agent.rb#785 def disable_sql_recording; end - # Clear out any data the agent has buffered but has not yet transmitted - # to the collector. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#650 + # source://newrelic_rpm//lib/new_relic/agent.rb#662 def drop_buffered_data; end # 60 = try about twice a second for 30 seconds @@ -423,90 +294,32 @@ module NewRelic::Agent # source://newrelic_rpm//lib/new_relic/agent.rb#120 def error_group_callback; end - # Get the name of the current running transaction. This is useful if you - # want to modify the default name. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#952 + # source://newrelic_rpm//lib/new_relic/agent.rb#978 def get_transaction_name; end - # This method disables the recording of Apdex metrics in the current - # transaction. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#719 + # source://newrelic_rpm//lib/new_relic/agent.rb#736 def ignore_apdex; end - # This method disables browser monitoring javascript injection in the - # current transaction. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#729 + # source://newrelic_rpm//lib/new_relic/agent.rb#747 def ignore_enduser; end - # Set a filter to be applied to errors that the Ruby agent will - # track. The block should evaluate to the exception to track - # (which could be different from the original exception) or nil to - # ignore this exception. - # - # The block is yielded to with the exception to filter. - # - # Return the new block or the existing filter Proc if no block is passed. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#365 + # source://newrelic_rpm//lib/new_relic/agent.rb#368 def ignore_error_filter(&block); end - # This method disables the recording of the current transaction. No metrics, - # traced errors, transaction traces, Insights events, slow SQL traces, - # or RUM injection will happen for this transaction. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#709 + # source://newrelic_rpm//lib/new_relic/agent.rb#725 def ignore_transaction; end - # Increment a simple counter metric. - # - # +metric_name+ should follow a slash separated path convention. Application - # specific metrics should begin with "Custom/". - # - # This method is safe to use from any thread. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#338 + # source://newrelic_rpm//lib/new_relic/agent.rb#340 def increment_metric(metric_name, amount = T.unsafe(nil)); end # The singleton Agent instance. Used internally. # # @api public # - # source://newrelic_rpm//lib/new_relic/agent.rb#132 + # source://newrelic_rpm//lib/new_relic/agent.rb#145 def instance; end - # Returns a new hash containing trace and entity metadata that can be used - # to relate data to a trace or to an entity in APM. - # - # This hash includes: - # * trace.id - The current trace id, if there is a current trace id. This - # value may be omitted. - # * span.id - The current span id, if there is a current span. This - # value may be omitted. - # * entity.name - The name of the current application. This is read from - # the +app_name+ key in your config. If there are multiple application - # names, the first one is used. - # * entity.type - The entity type is hardcoded to the string +'SERVICE'+. - # * entity.guid - The guid of the current entity. - # * hostname - The fully qualified hostname. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#1022 + # source://newrelic_rpm//lib/new_relic/agent.rb#1049 def linking_metadata; end # @api public @@ -527,51 +340,10 @@ module NewRelic::Agent # source://newrelic_rpm//lib/new_relic/agent.rb#153 def logger=(log); end - # Call this to manually start the agent in situations where the agent does - # not auto-start. - # - # When the app environment loads, so does the agent. However, the - # agent will only connect to the service if a web front-end is found. If - # you want to selectively monitor ruby processes that don't use - # web plugins, then call this method in your code and the agent - # will fire up and start reporting to the service. - # - # Options are passed in as overrides for values in the - # newrelic.yml, such as app_name. In addition, the option +log+ - # will take a logger that will be used instead of the standard - # file logger. The setting for the newrelic.yml section to use - # (ie, RAILS_ENV) can be overridden with an :env argument. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#596 + # source://newrelic_rpm//lib/new_relic/agent.rb#605 def manual_start(options = T.unsafe(nil)); end - # Send an error to New Relic. - # - # Any option keys other than the ones listed here are treated as - # :custom_params. - # - # *Note:* Previous versions of the agent allowed passing - # :request_params, but those are now ignored. If you - # need to record the request parameters, call this method inside a - # transaction or pass the information in - # :custom_params. - # - # Most of the time, you do not need to specify the - # :uri or :metric options; only pass - # them if you are calling notice_error outside a - # transaction. - # - # @api public - # @option options - # @option options - # @option options - # @option options - # @param exception [Exception] Error you wish to send - # @param options [Hash] Modify how New Relic processes the error - # - # source://newrelic_rpm//lib/new_relic/agent.rb#403 + # source://newrelic_rpm//lib/new_relic/agent.rb#407 def notice_error(exception, options = T.unsafe(nil)); end # Fire an event of the specified +event_type+, passing it an the given +args+ @@ -579,92 +351,32 @@ module NewRelic::Agent # # @api public # - # source://newrelic_rpm//lib/new_relic/agent.rb#989 + # source://newrelic_rpm//lib/new_relic/agent.rb#1015 def notify(event_type, *args); end - # Record a custom event to be sent to New Relic Insights. - # The recorded event will be buffered in memory until the next time the - # agent sends data to New Relic's servers. - # - # If you want to be able to tie the information recorded via this call back - # to the web request or background job that it happened in, you may want to - # instead use the add_custom_attributes API call to attach attributes to - # the Transaction event that will automatically be generated for the - # request. - # - # A timestamp will be automatically added to the recorded event when this - # method is called. - # - # @api public - # @param event_type [Symbol or String] The name of the event type to record. Event - # types must consist of only alphanumeric - # characters, '_', ':', or ' '. - # @param event_attrs [Hash] A Hash of attributes to be attached to the event. - # Keys should be strings or symbols, and values - # may be strings, symbols, numeric values or - # booleans. - # - # source://newrelic_rpm//lib/new_relic/agent.rb#479 + # source://newrelic_rpm//lib/new_relic/agent.rb#485 def record_custom_event(event_type, event_attrs); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent.rb#316 + # source://newrelic_rpm//lib/new_relic/agent.rb#317 def record_instrumentation_invocation(library); end - # Records user feedback events for LLM applications. This API must pass - # the current trace id as a parameter, which can be obtained using: - # - # NewRelic::Agent::Tracer.current_trace_id - # - # @api public - # @param ID [String] of the trace where the chat completion(s) related - # to the feedback occurred. - # @param Rating [String or Integer] provided by an end user - # (ex: “Good", "Bad”, 1, 2, 5, 8, 10). - # @param Category [optional, String] of the feedback as provided by the - # end user (ex: “informative”, “inaccurate”). - # @param start_time [optional, String] Freeform text feedback from an - # end user. - # @param Set [optional, Hash] of key-value pairs to store any other - # desired data to submit with the feedback event. - # - # source://newrelic_rpm//lib/new_relic/agent.rb#511 + # source://newrelic_rpm//lib/new_relic/agent.rb#518 def record_llm_feedback_event(trace_id:, rating:, category: T.unsafe(nil), message: T.unsafe(nil), metadata: T.unsafe(nil)); end - # Record a value for the given metric name. - # - # This method should be used to record event-based metrics such as method - # calls that are associated with a specific duration or magnitude. - # - # +metric_name+ should follow a slash separated path convention. Application - # specific metrics should begin with "Custom/". - # - # +value+ should be either a single Numeric value representing the duration/ - # magnitude of the event being recorded, or a Hash containing :count, - # :total, :min, :max, and :sum_of_squares keys. The latter form is useful - # for recording pre-aggregated metrics collected externally. - # - # This method is safe to use from any thread. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#297 + # source://newrelic_rpm//lib/new_relic/agent.rb#298 def record_metric(metric_name, value); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent.rb#310 + # source://newrelic_rpm//lib/new_relic/agent.rb#311 def record_metric_once(metric_name, value = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://newrelic_rpm//lib/new_relic/agent.rb#1087 def register_report_channel(*args, **_arg1, &block); end - # Require agent testing helper methods - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#673 + # source://newrelic_rpm//lib/new_relic/agent.rb#687 def require_test_helper; end # For testing @@ -675,123 +387,22 @@ module NewRelic::Agent # source://newrelic_rpm//lib/new_relic/agent.rb#275 def reset_config; end - # Set a callback proc for determining an error's error group name - # - # Typically this method should be called only once to set a callback for - # use with all noticed errors. If it is called multiple times, each new - # callback given will replace the old one. - # - # The proc will be called with a single hash as its input argument and is - # expected to return a string representing the desired error group. - # - # see https://docs.newrelic.com/docs/errors-inbox/errors-inbox/#groups - # - # The hash passed to the customer defined callback proc has the following - # keys: - # - # :error => The Ruby error class instance, likely inheriting from - # StandardError. Call `#class`, `#message`, and `#backtrace` on - # the error object to retrieve the error's class, message, and - # backtrace. - # :customAttributes => Any customer defined custom attributes that have been - # associated with the current transaction. - # :'request.uri' => The current request URI if available - # :'http.statusCode' => The HTTP status code (200, 404, etc.) if available - # :'http.method' => The HTTP method (GET, PUT, etc.) if available - # :'error.expected' => Whether (true) or not (false) the error was expected - # :options => The options hash passed to `NewRelic::Agent.notice_error` - # - # @api public - # @param callback_proc [Proc] the callback proc - # - # source://newrelic_rpm//lib/new_relic/agent.rb#440 + # source://newrelic_rpm//lib/new_relic/agent.rb#445 def set_error_group_callback(callback_proc); end - # Set a callback proc for calculating `token_count` attributes for - # LlmEmbedding and LlmChatCompletionMessage events - # - # This method should be called only once to set a callback for - # use with all LLM token calculations. If it is called multiple times, each - # new callback will replace the old one. - # - # The proc will be called with a single hash as its input argument and - # must return an Integer representing the number of tokens used for that - # particular prompt, completion message, or embedding. Values less than or - # equal to 0 will not be attached to an event. - # - # The hash has the following keys: - # - # :model => [String] The name of the LLM model - # :content => [String] The message content or prompt - # - # @api public - # @param callback_proc [Proc] the callback proc - # - # source://newrelic_rpm//lib/new_relic/agent.rb#564 + # source://newrelic_rpm//lib/new_relic/agent.rb#572 def set_llm_token_count_callback(callback_proc); end - # This method sets the block sent to this method as a sql - # obfuscator. The block will be called with a single String SQL - # statement to obfuscate. The method must return the obfuscated - # String SQL. If chaining of obfuscators is required, use type = - # :before or :after - # - # type = :before, :replace, :after - # - # Example: - # - # NewRelic::Agent.set_sql_obfuscator(:replace) do |sql| - # my_obfuscator(sql) - # end - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#694 + # source://newrelic_rpm//lib/new_relic/agent.rb#709 def set_sql_obfuscator(type = T.unsafe(nil), &block); end - # Set the name of the current running transaction. The agent will - # apply a reasonable default based on framework routing, but in - # cases where this is insufficient, this can be used to manually - # control the name of the transaction. - # - # The category of transaction can be specified via the +:category+ option. - # The following are the only valid categories: - # - # * :category => :controller indicates that this is a - # controller action and will appear with all the other actions. - # * :category => :task indicates that this is a - # background task and will show up in New Relic with other background - # tasks instead of in the controllers list - # * :category => :middleware if you are instrumenting a rack - # middleware call. The :name is optional, useful if you - # have more than one potential transaction in the #call. - # * :category => :uri indicates that this is a - # web transaction whose name is a normalized URI, where 'normalized' - # means the URI does not have any elements with data in them such - # as in many REST URIs. - # - # The default category is the same as the running transaction. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent.rb#942 + # source://newrelic_rpm//lib/new_relic/agent.rb#967 def set_transaction_name(name, options = T.unsafe(nil)); end - # Set the user id for the current transaction. When present, this value will be included in the agent attributes for transaction and error events as 'enduser.id'. - # - # @api public - # @param user_id [String] The user id to add to the current transaction attributes - # - # source://newrelic_rpm//lib/new_relic/agent.rb#898 + # source://newrelic_rpm//lib/new_relic/agent.rb#922 def set_user_id(user_id); end - # Shutdown the agent. Call this before exiting. Sends any queued data - # and kills the background thread. - # - # @api public - # @param options [Hash] Unused options Hash, for back compatibility only - # - # source://newrelic_rpm//lib/new_relic/agent.rb#641 + # source://newrelic_rpm//lib/new_relic/agent.rb#652 def shutdown(options = T.unsafe(nil)); end # Subscribe to events of +event_type+, calling the given +handler+ @@ -799,7 +410,7 @@ module NewRelic::Agent # # @api public # - # source://newrelic_rpm//lib/new_relic/agent.rb#983 + # source://newrelic_rpm//lib/new_relic/agent.rb#1009 def subscribe(event_type, &handler); end # Check to see if we are capturing metrics currently on this thread. @@ -807,7 +418,7 @@ module NewRelic::Agent # @api public # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent.rb#781 + # source://newrelic_rpm//lib/new_relic/agent.rb#801 def tl_is_execution_traced?; end # Yield to a block that is run with a database metric name context. This means @@ -820,7 +431,7 @@ module NewRelic::Agent # @param model [String, Class, #to_s] the DB model class # @param method [String] the name of the finder method or other method to # - # source://newrelic_rpm//lib/new_relic/agent.rb#973 + # source://newrelic_rpm//lib/new_relic/agent.rb#999 def with_database_metric_name(model, method = T.unsafe(nil), product = T.unsafe(nil), &block); end class << self @@ -906,7 +517,7 @@ end # in realtime as the application runs, and periodically sends that # data to the NewRelic server. # -# source://newrelic_rpm//lib/new_relic/agent/agent.rb#56 +# source://newrelic_rpm//lib/new_relic/agent/agent.rb#57 class NewRelic::Agent::Agent include ::NewRelic::Agent::AgentHelpers::Connect include ::NewRelic::Agent::AgentHelpers::Harvest @@ -920,51 +531,51 @@ class NewRelic::Agent::Agent # @return [Agent] a new instance of Agent # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#69 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#70 def initialize; end - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#128 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#130 def refresh_attribute_filter; end private - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#78 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#79 def init_basics; end - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#91 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#92 def init_components; end - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#105 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#107 def init_event_handlers; end - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#118 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#120 def setup_attribute_filter; end class << self - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#57 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#58 def config; end end end # contains all the class-level methods for NewRelic::Agent::Agent # -# source://newrelic_rpm//lib/new_relic/agent/agent.rb#133 +# source://newrelic_rpm//lib/new_relic/agent/agent.rb#135 module NewRelic::Agent::Agent::ClassMethods # Should only be called by NewRelic::Control - returns a # memoized singleton instance of the agent, creating one if needed # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#136 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#138 def instance; end end # Holds all the methods defined on NewRelic::Agent::Agent # instances # -# source://newrelic_rpm//lib/new_relic/agent/agent.rb#143 +# source://newrelic_rpm//lib/new_relic/agent/agent.rb#145 module NewRelic::Agent::Agent::InstanceMethods # Returns the value of attribute adaptive_sampler. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#180 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#182 def adaptive_sampler; end # This method should be called in a forked process after a fork. @@ -987,90 +598,90 @@ module NewRelic::Agent::Agent::InstanceMethods # connection, this tells me to only try it once so this method returns # quickly if there is some kind of latency with the server. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#214 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#216 def after_fork(options = T.unsafe(nil)); end - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#191 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#193 def agent_id=(agent_id); end # Returns the value of attribute attribute_filter. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#179 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#181 def attribute_filter; end # cross application tracing ids and encoding # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#158 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#160 def cross_process_id; end # Returns the value of attribute custom_event_aggregator. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#175 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#177 def custom_event_aggregator; end # Clear out the metric data, errors, and transaction traces, etc. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#295 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#297 def drop_buffered_data; end # error collector is a simple collection of recorded errors # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#152 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#154 def error_collector; end # Global events dispatcher. This will provides our primary mechanism # for agent-wide events, such as finishing configuration, error notification # and request before/after from Rack. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#164 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#166 def events; end # used only by resque # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#317 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#319 def flush_pipe_data; end # the agent control health check file generator # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#145 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#147 def health_check; end - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#245 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#247 def install_pipe_service(channel_id); end # builder for JS agent scripts to inject # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#156 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#158 def javascript_instrumentor; end # Returns the value of attribute log_event_aggregator. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#177 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#179 def log_event_aggregator; end - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#344 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#346 def merge_data_for_endpoint(endpoint, data); end # listens and responds to events that need to process headers # for synthetics and distributed tracing # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#168 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#170 def monitors; end # GC::Profiler.total_time is not monotonic so we wrap it. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#174 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#176 def monotonic_gc_profiler; end # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#229 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#231 def needs_after_fork_work?; end # Pop the current trace execution status. Restore trace execution status # to what it was before we pushed the current flag. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#290 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#292 def pop_trace_execution_flag; end # Push flag indicating whether we should be tracing in this @@ -1078,97 +689,97 @@ module NewRelic::Agent::Agent::InstanceMethods # children of a transaction without affecting the tracing of # the whole transaction # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#284 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#286 def push_trace_execution_flag(should_trace = T.unsafe(nil)); end # whether we should record raw, obfuscated, or no sql # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#154 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#156 def record_sql; end # Clear out state for any objects that we know lock from our parents # This is necessary for cases where we're in a forked child and Ruby # might be holding locks for background thread that aren't there anymore. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#313 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#315 def reset_objects_with_locks; end - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#256 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#258 def revert_to_default_configuration; end # Returns the value of attribute serverless_handler. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#181 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#183 def serverless_handler; end # service for communicating with collector # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#160 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#162 def service; end # Sets a thread local variable as to whether we should or # should not record sql in the current thread. Returns the # previous value, if there is one # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#273 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#275 def set_record_sql(should_record); end # Returns the value of attribute span_event_aggregator. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#176 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#178 def span_event_aggregator; end # Returns the value of attribute sql_sampler. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#150 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#152 def sql_sampler; end # the statistics engine that holds all the timeslice data # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#147 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#149 def stats_engine; end - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#187 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#189 def synthetics_event_aggregator; end - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#183 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#185 def transaction_event_aggregator; end # Returns the value of attribute transaction_event_recorder. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#178 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#180 def transaction_event_recorder; end # Transaction and metric renaming rules as provided by the # collector on connect. The former are applied during txns, # the latter during harvest. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#172 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#174 def transaction_rules; end # Transaction and metric renaming rules as provided by the # collector on connect. The former are applied during txns, # the latter during harvest. # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#172 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#174 def transaction_rules=(_arg0); end # the transaction sampler that handles recording transactions # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#149 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#151 def transaction_sampler; end - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#261 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#263 def trap_signals_for_litespeed; end private - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#330 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#332 def container_for_endpoint(endpoint); end # A shorthand for NewRelic::Control.instance # - # source://newrelic_rpm//lib/new_relic/agent/agent.rb#326 + # source://newrelic_rpm//lib/new_relic/agent/agent.rb#328 def control; end end @@ -2539,7 +2150,7 @@ class NewRelic::Agent::Configuration::DefaultSource # source://newrelic_rpm//lib/new_relic/agent/configuration/default_source.rb#52 def initialize; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://newrelic_rpm//lib/new_relic/agent/configuration/default_source.rb#50 def [](*args, **_arg1, &block); end # source://newrelic_rpm//lib/new_relic/agent/configuration/default_source.rb#56 @@ -2550,22 +2161,22 @@ class NewRelic::Agent::Configuration::DefaultSource # source://newrelic_rpm//lib/new_relic/agent/configuration/default_source.rb#47 def defaults; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://newrelic_rpm//lib/new_relic/agent/configuration/default_source.rb#50 def delete(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://newrelic_rpm//lib/new_relic/agent/configuration/default_source.rb#50 def each(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://newrelic_rpm//lib/new_relic/agent/configuration/default_source.rb#50 def has_key?(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://newrelic_rpm//lib/new_relic/agent/configuration/default_source.rb#50 def keys(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://newrelic_rpm//lib/new_relic/agent/configuration/default_source.rb#50 def merge(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://newrelic_rpm//lib/new_relic/agent/configuration/default_source.rb#50 def to_hash(*args, **_arg1, &block); end class << self @@ -2833,13 +2444,13 @@ class NewRelic::Agent::Configuration::Manager # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#303 def break_label_string_into_pairs(labels); end - # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#447 + # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#450 def config_classes_for_testing; end # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#189 def default_source; end - # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#432 + # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#435 def delete_all_configs_for_testing; end # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#164 @@ -2879,13 +2490,13 @@ class NewRelic::Agent::Configuration::Manager # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#361 def limit_number_of_labels(pairs); end - # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#421 + # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#422 def log_config(direction, source); end # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#328 def make_label_hash(pairs, labels = T.unsafe(nil)); end - # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#417 + # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#418 def new_cache; end # This event is intended to be fired once during the entire lifespan of @@ -2903,7 +2514,7 @@ class NewRelic::Agent::Configuration::Manager # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#226 def notify_server_source_added; end - # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#443 + # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#446 def num_configs_for_testing; end # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#376 @@ -2937,7 +2548,7 @@ class NewRelic::Agent::Configuration::Manager # reset the configuration hash, but do not replace previously auto # determined dependency detection values with nil or 'auto' # - # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#397 + # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#398 def reset_cache; end # Generally only useful during initial construction and tests @@ -2969,7 +2580,7 @@ class NewRelic::Agent::Configuration::Manager private - # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#453 + # source://newrelic_rpm//lib/new_relic/agent/configuration/manager.rb#456 def config_stack; end end @@ -3676,7 +3287,10 @@ class NewRelic::Agent::Database::ConnectionManager class << self private + # source://newrelic_rpm//lib/new_relic/agent/database.rb#173 def allocate; end + + # source://newrelic_rpm//lib/new_relic/agent/database.rb#173 def new(*_arg0); end end end @@ -3855,7 +3469,10 @@ class NewRelic::Agent::Database::Obfuscator class << self private + # source://newrelic_rpm//lib/new_relic/agent/database/obfuscator.rb#12 def allocate; end + + # source://newrelic_rpm//lib/new_relic/agent/database/obfuscator.rb#12 def new(*_arg0); end end end @@ -4468,7 +4085,7 @@ class NewRelic::Agent::DistributedTracePayload # @api public # - # source://newrelic_rpm//lib/new_relic/agent/distributed_tracing/distributed_trace_payload.rb#106 + # source://newrelic_rpm//lib/new_relic/agent/distributed_tracing/distributed_trace_payload.rb#118 def sampled?; end # Represent this payload as a raw JSON string. @@ -4669,58 +4286,10 @@ module NewRelic::Agent::DistributedTracing extend ::NewRelic::SupportabilityHelper extend ::NewRelic::Agent::DistributedTracing - # Accepts distributed tracing headers from any source that has been packaged - # as a Ruby Hash, thereby allowing the user to manually inject distributed - # tracing headers. It is optimized to process +HTTP_TRACEPARENT+, +HTTP_TRACESTATE+, - # and +HTTP_NEWRELIC+ as the given Hash keys. which is the most common scenario - # from Rack middleware in most Ruby applications. However, the Hash keys are - # case-insensitive and the "HTTP_" prefixes may also be omitted. - # - # Calling this method is not necessary in a typical HTTP trace as - # distributed tracing is already handled by the agent. - # - # When used, invoke this method as early as possible in a transaction's life-cycle - # as calling after the headers are already created will have no effect. - # - # This method accepts both W3C trace context and New Relic distributed tracing headers. - # When both are present, only the W3C headers are utilized. When W3C trace context - # headers are present, New Relic headers are ignored regardless if W3C trace context - # headers are valid and parsable. - # - # @api public - # @param headers [Hash] Incoming distributed trace headers as a Ruby - # Hash object. Hash keys are expected to be one of - # +TRACEPARENT+, +TRACESTATE+, +NEWRELIC+ and are - # case-insensitive, with or without "HTTP_" prefixes. - # - # either as a JSON string or as a - # header-friendly string returned from - # {DistributedTracePayload#http_safe} - # @param transport_type [String] May be one of: +HTTP+, +HTTPS+, +Kafka+, +JMS+, - # +IronMQ+, +AMQP+, +Queue+, +Other+. Values are - # case sensitive. All other values result in +Unknown+ - # @return [Transaction] if successful, +nil+ otherwise - # - # source://newrelic_rpm//lib/new_relic/agent/distributed_tracing.rb#98 + # source://newrelic_rpm//lib/new_relic/agent/distributed_tracing.rb#100 def accept_distributed_trace_headers(headers, transport_type = T.unsafe(nil)); end - # Adds the Distributed Trace headers so that the downstream service can participate in a - # distributed trace. This method should be called every time an outbound call is made - # since the header payload contains a timestamp. - # - # Distributed Tracing must be enabled to use this method. - # - # +insert_distributed_trace_headers+ always inserts W3C trace context headers and inserts - # New Relic distributed tracing header by default. New Relic headers may be suppressed by - # setting +exclude_new_relic_header+ to +true+ in your configuration file. - # - # @api public - # @param headers [Hash] Is a Hash to which the distributed trace headers - # will be inserted. - # @return [Transaction] The transaction the headers were inserted from, - # or +nil+ if headers were not inserted. - # - # source://newrelic_rpm//lib/new_relic/agent/distributed_tracing.rb#44 + # source://newrelic_rpm//lib/new_relic/agent/distributed_tracing.rb#45 def insert_distributed_trace_headers(headers = T.unsafe(nil)); end private @@ -4728,12 +4297,12 @@ module NewRelic::Agent::DistributedTracing # @api public # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/distributed_tracing.rb#139 + # source://newrelic_rpm//lib/new_relic/agent/distributed_tracing.rb#141 def has_variant_key?(key, variants); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/distributed_tracing.rb#143 + # source://newrelic_rpm//lib/new_relic/agent/distributed_tracing.rb#145 def variant_key_value(headers, variants); end end @@ -5016,22 +4585,22 @@ NewRelic::Agent::DistributedTracing::TraceContext::VERSION_KEY = T.let(T.unsafe( # @api public # -# source://newrelic_rpm//lib/new_relic/agent.rb#1001 +# source://newrelic_rpm//lib/new_relic/agent.rb#1027 NewRelic::Agent::ENTITY_GUID_KEY = T.let(T.unsafe(nil), String) # @api public # -# source://newrelic_rpm//lib/new_relic/agent.rb#999 +# source://newrelic_rpm//lib/new_relic/agent.rb#1025 NewRelic::Agent::ENTITY_NAME_KEY = T.let(T.unsafe(nil), String) # @api public # -# source://newrelic_rpm//lib/new_relic/agent.rb#1004 +# source://newrelic_rpm//lib/new_relic/agent.rb#1030 NewRelic::Agent::ENTITY_TYPE = T.let(T.unsafe(nil), String) # @api public # -# source://newrelic_rpm//lib/new_relic/agent.rb#1000 +# source://newrelic_rpm//lib/new_relic/agent.rb#1026 NewRelic::Agent::ENTITY_TYPE_KEY = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/encoding_normalizer.rb#9 @@ -5470,7 +5039,7 @@ class NewRelic::Agent::EventAggregator # enabled. Multiple keys will be &&'d and the enabled status of the # aggregator will be reset when agent configuration changes. # - # source://newrelic_rpm//lib/new_relic/agent/event_aggregator.rb#23 + # source://newrelic_rpm//lib/new_relic/agent/event_aggregator.rb#32 def enabled_key(*keys); end # An aggregator can specify one or more keys to check to see if it is @@ -5699,31 +5268,17 @@ end module NewRelic::Agent::External extend ::NewRelic::Agent::External - # Obtain an obfuscated +String+ suitable for delivery across public networks that carries transaction - # information from this application to a calling application which is also running a New Relic agent. - # This +String+ can be processed by +process_response_metadata+ on the calling application. - # - # @api public - # @return [String] obfuscated response metadata to send - # - # source://newrelic_rpm//lib/new_relic/agent/external.rb#79 + # source://newrelic_rpm//lib/new_relic/agent/external.rb#81 def get_response_metadata; end - # Process obfuscated +String+ identifying a calling application and transaction that is also running a - # New Relic agent and save information in current transaction for inclusion in a trace. The +String+ is - # generated by +get_request_metadata+ on the calling application. - # - # @api public - # @param request_metadata [String] received obfuscated request metadata - # - # source://newrelic_rpm//lib/new_relic/agent/external.rb#34 + # source://newrelic_rpm//lib/new_relic/agent/external.rb#35 def process_request_metadata(request_metadata); end private # @api public # - # source://newrelic_rpm//lib/new_relic/agent/external.rb#105 + # source://newrelic_rpm//lib/new_relic/agent/external.rb#107 def obfuscator; end end @@ -5799,7 +5354,7 @@ NewRelic::Agent::GuidGenerator::MAX_RAND_32 = T.let(T.unsafe(nil), Integer) # @api public # -# source://newrelic_rpm//lib/new_relic/agent.rb#1002 +# source://newrelic_rpm//lib/new_relic/agent.rb#1028 NewRelic::Agent::HOSTNAME_KEY = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/http_clients/uri_util.rb#14 @@ -5984,7 +5539,7 @@ class NewRelic::Agent::Heap # source://newrelic_rpm//lib/new_relic/agent/heap.rb#26 def initialize(items = T.unsafe(nil), &priority_fn); end - # source://newrelic_rpm//lib/new_relic/agent/heap.rb#61 + # source://newrelic_rpm//lib/new_relic/agent/heap.rb#66 def <<(item); end # source://newrelic_rpm//lib/new_relic/agent/heap.rb#33 @@ -6190,7 +5745,7 @@ module NewRelic::Agent::Instrumentation::ControllerInstrumentation # # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#354 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#358 def perform_action_with_newrelic_trace(*args, &block); end protected @@ -6202,7 +5757,7 @@ module NewRelic::Agent::Instrumentation::ControllerInstrumentation # @api public # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#423 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#427 def do_not_trace?; end # overridable method to determine whether to trace an action @@ -6213,30 +5768,30 @@ module NewRelic::Agent::Instrumentation::ControllerInstrumentation # @api public # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#431 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#435 def ignore_apdex?; end # @api public # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#435 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#439 def ignore_enduser?; end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#396 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#400 def newrelic_request(args); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#410 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#414 def newrelic_request_headers(request); end # Should be implemented in the dispatcher class # # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#408 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#412 def newrelic_response_code; end private @@ -6247,17 +5802,17 @@ module NewRelic::Agent::Instrumentation::ControllerInstrumentation # @api public # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#459 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#463 def _is_filtered?(key); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#441 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#445 def create_transaction_options(trace_options, category, state, queue_start_time); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#473 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#477 def detect_queue_start_time(request); end class << self @@ -6272,109 +5827,42 @@ end # # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#53 module NewRelic::Agent::Instrumentation::ControllerInstrumentation::ClassMethods - # Add transaction tracing to the given method. This will treat - # the given method as a main entrypoint for instrumentation, just - # like controller actions are treated by default. Useful especially - # for background tasks. - # - # Example for background job: - # class Job - # include NewRelic::Agent::Instrumentation::ControllerInstrumentation - # def run(task) - # ... - # end - # # Instrument run so tasks show up under task.name. Note single - # # quoting to defer eval to runtime. - # add_transaction_tracer :run, :name => '#{args[0].name}' - # end - # - # Here's an example of a controller that uses a dispatcher - # action to invoke operations which you want treated as top - # level actions, so they aren't all lumped into the invoker - # action. - # - # MyController < ActionController::Base - # include NewRelic::Agent::Instrumentation::ControllerInstrumentation - # # dispatch the given op to the method given by the service parameter. - # def invoke_operation - # op = params['operation'] - # send op - # end - # # Ignore the invoker to avoid double counting - # newrelic_ignore :only => 'invoke_operation' - # # Instrument the operations: - # add_transaction_tracer :print - # add_transaction_tracer :show - # add_transaction_tracer :forward - # end - # - # Here's an example of how to pass contextual information into the transaction - # so it will appear in transaction traces: - # - # class Job - # include NewRelic::Agent::Instrumentation::ControllerInstrumentation - # def process(account) - # ... - # end - # # Include the account name in the transaction details. Note the single - # # quotes to defer eval until call time. - # add_transaction_tracer :process, :params => '{ :account_name => args[0].name }' - # end - # - # See NewRelic::Agent::Instrumentation::ControllerInstrumentation#perform_action_with_newrelic_trace - # for the full list of available options. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#164 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#168 def add_transaction_tracer(method, options = T.unsafe(nil)); end # @api public # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#222 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#226 def already_added_transaction_tracer?(target, with_method_name); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#217 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#221 def build_method_names(traced_method, punctuation); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#203 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#207 def generate_argument_list(options); end - # Have NewRelic ignore actions in this controller. Specify the actions as hash options - # using :except and :only. If no actions are specified, all actions are ignored. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#59 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#60 def newrelic_ignore(specifiers = T.unsafe(nil)); end - # Have NewRelic omit apdex measurements on the given actions. Typically used for - # actions that are not user facing or that skew your overall apdex measurement. - # Accepts :except and :only options, as with #newrelic_ignore. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#70 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#72 def newrelic_ignore_apdex(specifiers = T.unsafe(nil)); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#81 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#84 def newrelic_ignore_aspect(property, specifiers = T.unsafe(nil)); end - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#76 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#79 def newrelic_ignore_enduser(specifiers = T.unsafe(nil)); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#106 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#109 def newrelic_read_attr(attr_name); end # Should be monkey patched into the controller class implemented @@ -6382,12 +5870,12 @@ module NewRelic::Agent::Instrumentation::ControllerInstrumentation::ClassMethods # # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#102 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#105 def newrelic_write_attr(attr_name, value); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#199 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#203 def parse_punctuation(method); end end @@ -6455,27 +5943,27 @@ end # @api public # -# source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#229 +# source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#233 class NewRelic::Agent::Instrumentation::ControllerInstrumentation::TransactionNamer class << self # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#274 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#278 def class_name(traced_obj, options = T.unsafe(nil)); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#230 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#234 def name_for(txn, traced_obj, category, options = T.unsafe(nil)); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#257 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#261 def path_name(traced_obj, options = T.unsafe(nil)); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#236 + # source://newrelic_rpm//lib/new_relic/agent/instrumentation/controller_instrumentation.rb#240 def prefix_for_category(txn, category = T.unsafe(nil)); end end end @@ -7751,7 +7239,7 @@ class NewRelic::Agent::Logging::DecoratingLogger < ::ActiveSupport::Logger # @api public # - # source://logger/1.7.0/lib/logger.rb#720 + # source://newrelic_rpm//lib/new_relic/agent/logging.rb#163 def write(progname = T.unsafe(nil), &block); end end @@ -7865,30 +7353,10 @@ end module NewRelic::Agent::MethodTracer mixes_in_class_methods ::NewRelic::Agent::MethodTracer::ClassMethods - # Trace a given block with stats and keep track of the caller. - # See NewRelic::Agent::MethodTracer::ClassMethods#add_method_tracer for a description of the arguments. - # +metric_names+ is either a single name or an array of metric names. - # If more than one metric is passed, the +produce_metric+ option only applies to the first. The - # others are always recorded. Only the first metric is pushed onto the scope stack. - # - # Generally you pass an array of metric names if you want to record the metric under additional - # categories, but generally this *should never ever be done*. Most of the time you can aggregate - # on the server. - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#70 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#71 def trace_execution_scoped(metric_names, options = T.unsafe(nil)); end - # Trace a given block with stats assigned to the given metric_name. It does not - # provide scoped measurements, meaning whatever is being traced will not 'blame the - # Controller'--that is to say appear in the breakdown chart. - # - # * metric_names is a single name or an array of names of metrics - # - # @api public - # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#86 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#88 def trace_execution_unscoped(metric_names, options = T.unsafe(nil)); end class << self @@ -7910,61 +7378,11 @@ end # # @api public # -# source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#101 +# source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#103 module NewRelic::Agent::MethodTracer::ClassMethods include ::NewRelic::Agent::MethodTracer::ClassMethods::AddMethodTracer - # Add a method tracer to the specified method. - # - # By default, this will cause invocations of the traced method to be - # recorded in transaction traces, and in a metric named after the class - # and method. It will also make the method show up in transaction-level - # breakdown charts and tables. - # - # === Overriding the metric name - # - # +metric_name+ is a String or Proc. If a Proc is given, it is bound to - # the object that called the traced method. For example: - # - # add_method_tracer :foo, -> { "Custom/#{self.class.name}/foo" } - # - # This would name the metric according to the class of the runtime - # instance, as opposed to the class where +foo+ is defined. - # - # If not provided, the metric name will be Custom/ClassName/method_name. - # - # @api public - # @example - # add_method_tracer :foo - # - # # With a custom metric name - # add_method_tracer :foo, "Custom/MyClass/foo" - # add_method_tracer :bar, -> { "Custom/#{self.class.name}/bar" } - # - # # Instrument foo only for custom dashboards (not in transaction - # # traces or breakdown charts) - # add_method_tracer :foo, 'Custom/foo', :push_scope => false - # - # # Instrument foo in transaction traces only - # add_method_tracer :foo, 'Custom/foo', :metric => false - # @option options - # @option options - # @option options - # @option options - # @param method_name [Symbol] the name of the method to trace - # @param metric_name [String, Proc, Array] the metric name to record calls to - # the traced method under. This may be either a String, or a Proc - # to be evaluated at call-time in order to determine the metric - # name dynamically. - # This method also accepts an array of Strings/Procs, in which case the - # first metric given will be scoped, while the remaining metrics will be - # recorded as though passed with :push_scope => false. If an Array of - # metric names is given with :push_scope => false, all metrics will be - # unscoped. - # @param options [Hash] additional options controlling how the method is - # traced. - # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#246 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#249 def add_method_tracer(method_name, metric_name = T.unsafe(nil), options = T.unsafe(nil)); end # For tests only because tracers must be removed in reverse-order @@ -7973,19 +7391,19 @@ module NewRelic::Agent::MethodTracer::ClassMethods # # @api public # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#253 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#256 def remove_method_tracer(method_name); end private # @api public # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#266 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#269 def _nr_add_method_tracer_now(method_name, metric_name, options); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#303 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#306 def _nr_define_traced_method(method_name, scoped_metric: T.unsafe(nil), unscoped_metrics: T.unsafe(nil), code_header: T.unsafe(nil), code_footer: T.unsafe(nil), record_metrics: T.unsafe(nil), visibility: T.unsafe(nil), code_information: T.unsafe(nil)); end # See #add_method_tracer; if multiple metric names are given, the first is @@ -7994,7 +7412,7 @@ module NewRelic::Agent::MethodTracer::ClassMethods # # @api public # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#293 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#296 def _nr_scoped_unscoped_metrics(metric_name, method_name, push_scope: T.unsafe(nil)); end end @@ -8002,13 +7420,13 @@ end # # @api public # -# source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#103 +# source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#105 module NewRelic::Agent::MethodTracer::ClassMethods::AddMethodTracer # for testing only # # @api public # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#165 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#167 def _nr_clear_traced_methods!; end # Default to the class where the method is defined. @@ -8018,19 +7436,19 @@ module NewRelic::Agent::MethodTracer::ClassMethods::AddMethodTracer # # @api public # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#135 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#137 def _nr_default_metric_name(method_name); end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#171 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#173 def _nr_derived_class_name; end # Returns an anonymous module that stores prepended trace methods. # # @api public # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#160 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#162 def _nr_traced_method_module; end # Checks the provided options to make sure that they make @@ -8040,7 +7458,7 @@ module NewRelic::Agent::MethodTracer::ClassMethods::AddMethodTracer # # @api public # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#112 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#114 def _nr_validate_method_tracer_options(method_name, options); end # Checks to see if we have already traced a method with a @@ -8051,7 +7469,7 @@ module NewRelic::Agent::MethodTracer::ClassMethods::AddMethodTracer # @api public # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#153 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#155 def method_traced?(method_name); end # Checks to see if the method we are attempting to trace @@ -8061,18 +7479,18 @@ module NewRelic::Agent::MethodTracer::ClassMethods::AddMethodTracer # @api public # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#143 + # source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#145 def newrelic_method_exists?(method_name); end end # @api public # -# source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#104 +# source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#106 NewRelic::Agent::MethodTracer::ClassMethods::AddMethodTracer::ALLOWED_KEYS = T.let(T.unsafe(nil), Array) # @api public # -# source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#106 +# source://newrelic_rpm//lib/new_relic/agent/method_tracer.rb#108 NewRelic::Agent::MethodTracer::ClassMethods::AddMethodTracer::DEFAULT_SETTINGS = T.let(T.unsafe(nil), Hash) # source://newrelic_rpm//lib/new_relic/agent/method_tracer_helpers.rb#7 @@ -8711,6 +8129,19 @@ NewRelic::Agent::Obfuscator::EMPTY_KEY_BYTES = T.let(T.unsafe(nil), Array) # source://newrelic_rpm//lib/new_relic/agent/obfuscator.rb#11 NewRelic::Agent::Obfuscator::PACK_FORMAT = T.let(T.unsafe(nil), String) +# source://newrelic_rpm//lib/new_relic/agent/opentelemetry_bridge.rb#7 +class NewRelic::Agent::OpenTelemetryBridge + # @return [OpenTelemetryBridge] a new instance of OpenTelemetryBridge + # + # source://newrelic_rpm//lib/new_relic/agent/opentelemetry_bridge.rb#8 + def initialize; end + + class << self + # source://newrelic_rpm//lib/new_relic/agent/opentelemetry_bridge.rb#18 + def install; end + end +end + # source://newrelic_rpm//lib/new_relic/agent/payload_metric_mapping.rb#8 module NewRelic::Agent::PayloadMetricMapping class << self @@ -9093,7 +8524,7 @@ class NewRelic::Agent::PrioritySampledBuffer < ::NewRelic::Agent::EventBuffer # expects priority and a block, or an event as a hash with a `priority` key. # - # source://newrelic_rpm//lib/new_relic/agent/priority_sampled_buffer.rb#28 + # source://newrelic_rpm//lib/new_relic/agent/priority_sampled_buffer.rb#49 def append_event(priority: T.unsafe(nil), event: T.unsafe(nil), &blk); end # source://newrelic_rpm//lib/new_relic/agent/priority_sampled_buffer.rb#51 @@ -9149,19 +8580,19 @@ class NewRelic::Agent::RulesEngine # source://newrelic_rpm//lib/new_relic/agent/rules_engine.rb#62 def apply_rules(rules, string); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://newrelic_rpm//lib/new_relic/agent/rules_engine.rb#18 def clear(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://newrelic_rpm//lib/new_relic/agent/rules_engine.rb#18 def each(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://newrelic_rpm//lib/new_relic/agent/rules_engine.rb#18 def inspect(*args, **_arg1, &block); end # source://newrelic_rpm//lib/new_relic/agent/rules_engine.rb#72 def rename(original_string); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://newrelic_rpm//lib/new_relic/agent/rules_engine.rb#18 def size(*args, **_arg1, &block); end class << self @@ -9316,12 +8747,12 @@ NewRelic::Agent::RulesEngine::SegmentTermsRule::TERMS_KEY = T.let(T.unsafe(nil), # @api public # -# source://newrelic_rpm//lib/new_relic/agent.rb#998 +# source://newrelic_rpm//lib/new_relic/agent.rb#1024 NewRelic::Agent::SPAN_ID_KEY = T.let(T.unsafe(nil), String) # @api public # -# source://newrelic_rpm//lib/new_relic/agent.rb#327 +# source://newrelic_rpm//lib/new_relic/agent.rb#328 NewRelic::Agent::SUPPORTABILITY_INCREMENT_METRIC = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/sampler.rb#15 @@ -9733,109 +9164,109 @@ class NewRelic::Agent::ServerlessHandler # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#32 def initialize; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#87 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#93 def error_data(errors); end # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#38 def invoke_lambda_function_with_new_relic(event:, context:, method_name:, namespace: T.unsafe(nil)); end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#61 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#67 def metric_data(stats_hash); end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#55 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#61 def store_payload(method, payload); end private - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#367 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#373 def add_agent_attribute(attribute, value); end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#243 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#249 def add_agent_attributes; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#288 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#294 def add_event_source_attributes; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#254 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#260 def add_http_attributes; end # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#271 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#277 def api_gateway_event?; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#122 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#128 def category; end # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#382 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#388 def cold?; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#155 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#161 def determine_api_gateway_version; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#314 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#320 def event_source_arn; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#349 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#355 def event_source_arn_for_records; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#337 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#343 def event_source_event_info; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#118 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#124 def function_name; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#99 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#105 def harvest!; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#233 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#239 def headers_from_event; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#186 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#192 def http_uri(info); end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#213 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#219 def info_for_api_gateway_v1; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#203 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#209 def info_for_api_gateway_v2; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#105 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#111 def metadata; end # New Relic serverless payload v1 # - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#138 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#144 def payload_v1; end # New Relic serverless payload v2 # - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#147 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#153 def payload_v2; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#93 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#99 def prep_transaction; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#175 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#181 def process_api_gateway_info; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#221 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#227 def process_headers; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#371 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#377 def process_response(response); end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#389 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#395 def reset!; end # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#237 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#243 def use_named_pipe?; end - # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#127 + # source://newrelic_rpm//lib/new_relic/agent/serverless_handler.rb#133 def write_output; end class << self @@ -9985,57 +9416,57 @@ module NewRelic::Agent::SpanEventPrimitive # Builds a Hash of error attributes as well as the Span ID when # an error is present. Otherwise, returns nil when no error present. # - # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#59 + # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#61 def error_attributes(segment); end - # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#93 + # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#95 def for_datastore_segment(segment); end - # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#73 + # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#75 def for_external_request_segment(segment); end - # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#66 + # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#68 def for_segment(segment); end private - # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#188 + # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#195 def agent_attributes(segment); end # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#219 + # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#226 def allowed?(key); end - # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#171 + # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#178 def custom_attributes(segment); end - # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#129 + # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#135 def intrinsics_for(segment); end - # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#181 + # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#188 def merge_hashes(hash1, hash2); end - # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#206 + # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#213 def milliseconds_since_epoch(segment); end - # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#198 + # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#205 def parent_guid(segment); end - # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#210 + # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#217 def truncate(value, max_size = T.unsafe(nil)); end end # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#29 NewRelic::Agent::SpanEventPrimitive::CATEGORY_KEY = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#53 +# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#55 NewRelic::Agent::SpanEventPrimitive::CLIENT = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#34 NewRelic::Agent::SpanEventPrimitive::COMPONENT_KEY = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#52 +# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#54 NewRelic::Agent::SpanEventPrimitive::DATASTORE_CATEGORY = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#35 @@ -10044,7 +9475,7 @@ NewRelic::Agent::SpanEventPrimitive::DB_INSTANCE_KEY = T.let(T.unsafe(nil), Stri # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#36 NewRelic::Agent::SpanEventPrimitive::DB_STATEMENT_KEY = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#55 +# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#57 NewRelic::Agent::SpanEventPrimitive::DB_STATEMENT_MAX_BYTES = T.let(T.unsafe(nil), Integer) # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#37 @@ -10058,21 +9489,21 @@ NewRelic::Agent::SpanEventPrimitive::DURATION_KEY = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#18 NewRelic::Agent::SpanEventPrimitive::ELLIPSIS = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#43 +# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#44 NewRelic::Agent::SpanEventPrimitive::ENTRY_POINT_KEY = T.let(T.unsafe(nil), String) # Strings for static values of the event structure # -# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#49 +# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#51 NewRelic::Agent::SpanEventPrimitive::EVENT_TYPE = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#50 +# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#52 NewRelic::Agent::SpanEventPrimitive::GENERIC_CATEGORY = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#21 NewRelic::Agent::SpanEventPrimitive::GUID_KEY = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#51 +# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#53 NewRelic::Agent::SpanEventPrimitive::HTTP_CATEGORY = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#31 @@ -10114,22 +9545,28 @@ NewRelic::Agent::SpanEventPrimitive::SERVER_PORT_KEY = T.let(T.unsafe(nil), Stri # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#42 NewRelic::Agent::SpanEventPrimitive::SPAN_KIND_KEY = T.let(T.unsafe(nil), String) +# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#43 +NewRelic::Agent::SpanEventPrimitive::STACKTRACE_KEY = T.let(T.unsafe(nil), String) + +# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#48 +NewRelic::Agent::SpanEventPrimitive::THREAD_ID_KEY = T.let(T.unsafe(nil), String) + # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#26 NewRelic::Agent::SpanEventPrimitive::TIMESTAMP_KEY = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#20 NewRelic::Agent::SpanEventPrimitive::TRACE_ID_KEY = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#45 +# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#46 NewRelic::Agent::SpanEventPrimitive::TRACING_VENDORS_KEY = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#23 NewRelic::Agent::SpanEventPrimitive::TRANSACTION_ID_KEY = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#46 +# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#47 NewRelic::Agent::SpanEventPrimitive::TRANSACTION_NAME_KEY = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#44 +# source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#45 NewRelic::Agent::SpanEventPrimitive::TRUSTED_PARENT_KEY = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/span_event_primitive.rb#19 @@ -10370,7 +9807,10 @@ class NewRelic::Agent::StartupLogger < ::NewRelic::Agent::MemoryLogger class << self private + # source://newrelic_rpm//lib/new_relic/agent/agent_logger.rb#191 def allocate; end + + # source://newrelic_rpm//lib/new_relic/agent/agent_logger.rb#191 def new(*_arg0); end end end @@ -10387,18 +9827,18 @@ class NewRelic::Agent::Stats # Returns the value of attribute total_exclusive_time. # - # source://newrelic_rpm//lib/new_relic/agent/stats.rb#14 + # source://newrelic_rpm//lib/new_relic/agent/stats.rb#140 def apdex_f; end # Returns the value of attribute call_count. # Apdex-related accessors # - # source://newrelic_rpm//lib/new_relic/agent/stats.rb#10 + # source://newrelic_rpm//lib/new_relic/agent/stats.rb#138 def apdex_s; end # Returns the value of attribute total_call_time. # - # source://newrelic_rpm//lib/new_relic/agent/stats.rb#13 + # source://newrelic_rpm//lib/new_relic/agent/stats.rb#139 def apdex_t; end # Returns the value of attribute call_count. @@ -10532,7 +9972,7 @@ class NewRelic::Agent::Stats # will aggregate all data points collected over a specified period and upload # its data to the NewRelic server # - # source://newrelic_rpm//lib/new_relic/agent/stats.rb#96 + # source://newrelic_rpm//lib/new_relic/agent/stats.rb#109 def trace_call(value, exclusive_time = T.unsafe(nil)); end protected @@ -10731,30 +10171,47 @@ class NewRelic::Agent::StatsEngine::GCProfiler::GCSnapshot < ::Struct # Returns the value of attribute gc_call_count # # @return [Object] the current value of gc_call_count + # + # source://newrelic_rpm//lib/new_relic/agent/stats_engine/gc_profiler.rb#9 def gc_call_count; end # Sets the attribute gc_call_count # # @param value [Object] the value to set the attribute gc_call_count to. # @return [Object] the newly set value + # + # source://newrelic_rpm//lib/new_relic/agent/stats_engine/gc_profiler.rb#9 def gc_call_count=(_); end # Returns the value of attribute gc_time_s # # @return [Object] the current value of gc_time_s + # + # source://newrelic_rpm//lib/new_relic/agent/stats_engine/gc_profiler.rb#9 def gc_time_s; end # Sets the attribute gc_time_s # # @param value [Object] the value to set the attribute gc_time_s to. # @return [Object] the newly set value + # + # source://newrelic_rpm//lib/new_relic/agent/stats_engine/gc_profiler.rb#9 def gc_time_s=(_); end class << self + # source://newrelic_rpm//lib/new_relic/agent/stats_engine/gc_profiler.rb#9 def [](*_arg0); end + + # source://newrelic_rpm//lib/new_relic/agent/stats_engine/gc_profiler.rb#9 def inspect; end + + # source://newrelic_rpm//lib/new_relic/agent/stats_engine/gc_profiler.rb#9 def keyword_init?; end + + # source://newrelic_rpm//lib/new_relic/agent/stats_engine/gc_profiler.rb#9 def members; end + + # source://newrelic_rpm//lib/new_relic/agent/stats_engine/gc_profiler.rb#9 def new(*_arg0); end end end @@ -11053,7 +10510,7 @@ NewRelic::Agent::SystemInfo::DOCKER_CGROUPS_V2_PATTERN = T.let(T.unsafe(nil), Re # @api public # -# source://newrelic_rpm//lib/new_relic/agent.rb#997 +# source://newrelic_rpm//lib/new_relic/agent.rb#1023 NewRelic::Agent::TRACE_ID_KEY = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/threading/backtrace_service.rb#7 @@ -11612,7 +11069,7 @@ class NewRelic::Agent::TraceContextPayload # Returns the value of attribute sampled. # - # source://newrelic_rpm//lib/new_relic/agent/distributed_tracing/trace_context_payload.rb#74 + # source://newrelic_rpm//lib/new_relic/agent/distributed_tracing/trace_context_payload.rb#84 def sampled?; end # Returns the value of attribute timestamp. @@ -11788,14 +11245,14 @@ class NewRelic::Agent::Tracer # @api public # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#68 + # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#74 def sampled?; end # Returns the id of the current span, or +nil+ if none exists. # # @api public # - # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#57 + # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#62 def span_id; end # Creates and starts a datastore segment used to time @@ -11937,12 +11394,12 @@ class NewRelic::Agent::Tracer # @api public # - # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#407 + # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#411 def tl_clear; end # @api public # - # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#21 + # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#25 def tl_get; end # This method should only be used by Tracer for access to the @@ -11952,7 +11409,7 @@ class NewRelic::Agent::Tracer # # @api public # - # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#394 + # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#405 def tl_state_for(thread); end # Returns the trace_id of the current_transaction, or +nil+ if @@ -11960,7 +11417,7 @@ class NewRelic::Agent::Tracer # # @api public # - # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#47 + # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#52 def trace_id; end # Returns +true+ unless called from within an @@ -12082,7 +11539,7 @@ class NewRelic::Agent::Tracer::State # @api public # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#496 + # source://newrelic_rpm//lib/new_relic/agent/tracer.rb#500 def tracing_enabled?; end # Execution tracing on current thread @@ -12837,7 +12294,7 @@ class NewRelic::Agent::Transaction # # @api public # - # source://newrelic_rpm//lib/new_relic/agent/transaction.rb#381 + # source://newrelic_rpm//lib/new_relic/agent/transaction.rb#389 def transaction_name; end # @api public @@ -13027,7 +12484,7 @@ class NewRelic::Agent::Transaction::AbstractSegment # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#128 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#129 def all_code_information_present?; end # Returns the value of attribute children_time. @@ -13044,18 +12501,18 @@ class NewRelic::Agent::Transaction::AbstractSegment # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#111 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#112 def children_time_ranges?; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#132 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#133 def code_attributes; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#119 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#120 def code_information=(info = T.unsafe(nil)); end # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#115 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#116 def concurrent_children?; end # This class is the base class for all segments. It is responsible for @@ -13100,15 +12557,15 @@ class NewRelic::Agent::Transaction::AbstractSegment # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#22 def exclusive_duration; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#93 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#94 def finalize; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#65 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#66 def finish; end # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#77 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#78 def finished?; end # This class is the base class for all segments. It is responsible for @@ -13125,7 +12582,7 @@ class NewRelic::Agent::Transaction::AbstractSegment # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#22 def guid; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#143 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#144 def inspect; end # Returns the value of attribute llm_event. @@ -13152,7 +12609,7 @@ class NewRelic::Agent::Transaction::AbstractSegment # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#23 def name=(_arg0); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#164 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#165 def notice_error(exception, options = T.unsafe(nil)); end # Returns the value of attribute noticed_error. @@ -13160,15 +12617,15 @@ class NewRelic::Agent::Transaction::AbstractSegment # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#25 def noticed_error; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#175 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#176 def noticed_error_attributes; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#99 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#100 def params; end # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#103 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#104 def params?; end # Returns the value of attribute parent. @@ -13192,7 +12649,7 @@ class NewRelic::Agent::Transaction::AbstractSegment # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#81 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#82 def record_metrics?; end # Sets the attribute record_on_finish @@ -13204,7 +12661,7 @@ class NewRelic::Agent::Transaction::AbstractSegment # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#89 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#90 def record_on_finish?; end # Sets the attribute record_scoped_metric @@ -13216,13 +12673,13 @@ class NewRelic::Agent::Transaction::AbstractSegment # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#85 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#86 def record_scoped_metric?; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#154 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#155 def set_noticed_error(noticed_error); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#58 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#59 def start; end # This class is the base class for all segments. It is responsible for @@ -13253,7 +12710,21 @@ class NewRelic::Agent::Transaction::AbstractSegment # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#22 def starting_segment_key; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#107 + # This class is the base class for all segments. It is responsible for + # timing, naming, and defining lifecycle callbacks. One of the more + # complex responsibilities of this class is computing exclusive duration. + # One of the reasons for this complexity is that exclusive time will be + # computed using time ranges or by recording an aggregate value for + # a segments children time. The reason for this is that computing + # exclusive duration using time ranges is expensive and it's only + # necessary if a segment's children run concurrently, or a segment ends + # after its parent. We will use the optimized exclusive duration + # calculation in all other cases. + # + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#22 + def thread_id; end + + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#108 def time_range; end # Returns the value of attribute transaction. @@ -13270,7 +12741,7 @@ class NewRelic::Agent::Transaction::AbstractSegment # callback for subclasses to override # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#151 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#152 def transaction_assigned; end # Returns the value of attribute transaction_name. @@ -13287,10 +12758,10 @@ class NewRelic::Agent::Transaction::AbstractSegment protected - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#196 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#197 def child_complete(segment); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#189 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#190 def child_start(segment); end # When a child segment completes after its parent, we need to propagate @@ -13300,35 +12771,35 @@ class NewRelic::Agent::Transaction::AbstractSegment # we can stop the propagation. We pass along the direct child so we can # make any corrections needed for exclusive time calculation. # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#212 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#213 def descendant_complete(child, descendant); end # Sets the attribute range_recorded # # @param value the value to set the attribute range_recorded to. # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#183 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#184 def range_recorded=(_arg0); end # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#185 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#186 def range_recorded?; end private - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#230 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#231 def add_child_timing(segment); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#234 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#235 def force_finish; end # for segment callback usage info, see self.set_segment_callback # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#336 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#337 def invoke_callback; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#278 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#279 def metric_cache; end # Child segments operating concurrently with this segment may have @@ -13347,43 +12818,43 @@ class NewRelic::Agent::Transaction::AbstractSegment # segment's own time range. Keep a running sum of all of the overlap # amounts and then return it. # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#307 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#308 def overlapping_duration; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#286 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#287 def range_overlap(range); end # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#282 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#283 def ranges_intersect?(r1, r2); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#255 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#256 def record_child_time(child); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#268 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#269 def record_child_time_as_number(child); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#263 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#264 def record_child_time_as_range(child); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#272 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#273 def record_exclusive_duration; end # @raise [NotImplementedError] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#247 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#248 def record_metrics; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#241 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#242 def run_complete_callbacks; end # callback for subclasses to override # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#252 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#253 def segment_complete; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#327 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#328 def transaction_state; end class << self @@ -13417,7 +12888,7 @@ class NewRelic::Agent::Transaction::AbstractSegment # in non-production environments before being introduced to production # environments. # - # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#375 + # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#376 def set_segment_callback(callback_proc); end end end @@ -13425,7 +12896,7 @@ end # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#27 NewRelic::Agent::Transaction::AbstractSegment::CALLBACK = T.let(T.unsafe(nil), Symbol) -# source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#141 +# source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#142 NewRelic::Agent::Transaction::AbstractSegment::INSPECT_IGNORE = T.let(T.unsafe(nil), Array) # source://newrelic_rpm//lib/new_relic/agent/transaction/abstract_segment.rb#28 @@ -14179,25 +13650,25 @@ class NewRelic::Agent::Transaction::RequestAttributes # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#148 + # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#143 def allow_other_headers?; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#142 + # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#137 def attribute_from_env(request, key); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#124 + # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#119 def attribute_from_request(request, attribute_method); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#112 + # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#107 def content_length_from_request(request); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#130 + # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#125 def content_type_attribute_from_request(request); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#164 + # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#159 def formatted_header(raw_name); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#152 + # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#147 def other_headers_from_request(request); end # In practice we expect req to be a Rack::Request or ActionController::AbstractRequest @@ -14208,16 +13679,16 @@ class NewRelic::Agent::Transaction::RequestAttributes # rails construct the PATH_INFO enviroment variable improperly and we're generally # being defensive. # - # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#106 + # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#101 def path_from_request(request); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#118 + # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#113 def port_from_request(request); end # Make a safe attempt to get the referer from a request object, generally successful when # it's a Rack request. # - # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#92 + # source://newrelic_rpm//lib/new_relic/agent/transaction/request_attributes.rb#87 def referer_from_request(request); end end @@ -14528,14 +13999,20 @@ module NewRelic::Agent::Transaction::TraceContext # source://newrelic_rpm//lib/new_relic/agent/transaction/trace_context.rb#96 def create_trace_state_payload; end + # source://newrelic_rpm//lib/new_relic/agent/transaction/trace_context.rb#149 + def determine_sampling_decision(payload, trace_flags); end + # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/trace_context.rb#151 + # source://newrelic_rpm//lib/new_relic/agent/transaction/trace_context.rb#180 def ignore_trace_context?; end # source://newrelic_rpm//lib/new_relic/agent/transaction/trace_context.rb#58 def insert_trace_context_header(header, format = T.unsafe(nil)); end + # source://newrelic_rpm//lib/new_relic/agent/transaction/trace_context.rb#168 + def set_priority_and_sampled(config, payload); end + # Returns the value of attribute trace_context_header_data. # # source://newrelic_rpm//lib/new_relic/agent/transaction/trace_context.rb#39 @@ -14550,7 +14027,7 @@ module NewRelic::Agent::Transaction::TraceContext # @return [Boolean] # - # source://newrelic_rpm//lib/new_relic/agent/transaction/trace_context.rb#162 + # source://newrelic_rpm//lib/new_relic/agent/transaction/trace_context.rb#191 def trace_context_inserted?; end # @return [Boolean] @@ -14563,6 +14040,9 @@ module NewRelic::Agent::Transaction::TraceContext # source://newrelic_rpm//lib/new_relic/agent/transaction/trace_context.rb#40 def trace_state_payload; end + # source://newrelic_rpm//lib/new_relic/agent/transaction/trace_context.rb#161 + def use_nr_tracestate_sampled(payload); end + private # source://newrelic_rpm//lib/new_relic/agent/transaction/trace_context.rb#46 @@ -14768,10 +14248,10 @@ module NewRelic::Agent::Transaction::Tracing # source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#9 def current_segment_by_thread; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#51 + # source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#52 def segment_complete(segment); end - # source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#60 + # source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#61 def segment_limit; end # source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#42 @@ -14789,17 +14269,17 @@ module NewRelic::Agent::Transaction::Tracing private - # source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#66 + # source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#67 def finalize_segments; end - # source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#73 + # source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#74 def record_total_time_metrics; end end -# source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#71 +# source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#72 NewRelic::Agent::Transaction::Tracing::OTHER_TRANSACTION_TOTAL_TIME = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#70 +# source://newrelic_rpm//lib/new_relic/agent/transaction/tracing.rb#71 NewRelic::Agent::Transaction::Tracing::WEB_TRANSACTION_TOTAL_TIME = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/transaction/transaction_sample_buffer.rb#8 @@ -15302,16 +14782,16 @@ module NewRelic::Agent::TransactionTimeAggregator def transaction_stop(timestamp = T.unsafe(nil), starting_thread_id = T.unsafe(nil)); end class << self - # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#44 + # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#77 def harvest!(timestamp = T.unsafe(nil)); end - # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#24 + # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#77 def reset!(timestamp = T.unsafe(nil)); end - # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#29 + # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#77 def transaction_start(timestamp = T.unsafe(nil)); end - # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#35 + # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#77 def transaction_stop(timestamp = T.unsafe(nil), starting_thread_id = T.unsafe(nil)); end private @@ -15361,30 +14841,47 @@ class NewRelic::Agent::TransactionTimeAggregator::TransactionStats < ::Struct # Returns the value of attribute elapsed_transaction_time # # @return [Object] the current value of elapsed_transaction_time + # + # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#15 def elapsed_transaction_time; end # Sets the attribute elapsed_transaction_time # # @param value [Object] the value to set the attribute elapsed_transaction_time to. # @return [Object] the newly set value + # + # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#15 def elapsed_transaction_time=(_); end # Returns the value of attribute transaction_started_at # # @return [Object] the current value of transaction_started_at + # + # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#15 def transaction_started_at; end # Sets the attribute transaction_started_at # # @param value [Object] the value to set the attribute transaction_started_at to. # @return [Object] the newly set value + # + # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#15 def transaction_started_at=(_); end class << self + # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#15 def [](*_arg0); end + + # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#15 def inspect; end + + # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#15 def keyword_init?; end + + # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#15 def members; end + + # source://newrelic_rpm//lib/new_relic/agent/transaction_time_aggregator.rb#15 def new(*_arg0); end end end @@ -15440,6 +14937,18 @@ NewRelic::Agent::Utilization::AWS::TOKEN_READ_TIMEOUT_SECS = T.let(T.unsafe(nil) # source://newrelic_rpm//lib/new_relic/agent/utilization/azure.rb#8 class NewRelic::Agent::Utilization::Azure < ::NewRelic::Agent::Utilization::Vendor; end +# source://newrelic_rpm//lib/new_relic/agent/utilization/ecs.rb#10 +class NewRelic::Agent::Utilization::ECS < ::NewRelic::Agent::Utilization::Vendor + # source://newrelic_rpm//lib/new_relic/agent/utilization/ecs.rb#16 + def transform_key(key); end +end + +# source://newrelic_rpm//lib/new_relic/agent/utilization/ecs_v4.rb#10 +class NewRelic::Agent::Utilization::ECSV4 < ::NewRelic::Agent::Utilization::Vendor + # source://newrelic_rpm//lib/new_relic/agent/utilization/ecs_v4.rb#16 + def transform_key(key); end +end + # source://newrelic_rpm//lib/new_relic/agent/utilization/gcp.rb#10 class NewRelic::Agent::Utilization::GCP < ::NewRelic::Agent::Utilization::Vendor # source://newrelic_rpm//lib/new_relic/agent/utilization/gcp.rb#20 @@ -15553,33 +15062,36 @@ NewRelic::Agent::Utilization::Vendor::SUCCESS = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/agent/utilization/vendor.rb#130 NewRelic::Agent::Utilization::Vendor::VALID_CHARS = T.let(T.unsafe(nil), Regexp) -# source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#12 +# source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#14 class NewRelic::Agent::UtilizationData - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#124 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#149 def append_boot_id(collector_hash); end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#120 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#145 def append_configured_values(collector_hash); end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#111 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#136 def append_docker_info(collector_hash); end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#148 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#89 + def append_ecs_info(collector_hash); end + + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#173 def append_full_hostname(collector_hash); end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#130 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#155 def append_ip_address(collector_hash); end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#137 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#162 def append_kubernetes_info(collector_hash); end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#87 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#108 def append_vendor_info(collector_hash); end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#155 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#180 def config_hash; end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#47 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#49 def configured_hostname; end # this is slightly ugly, but if a string value is passed in @@ -15588,44 +15100,44 @@ class NewRelic::Agent::UtilizationData # which is not a reasonable value for logical_processes and should # not be sent up # - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#56 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#58 def configured_logical_processors; end # see comment above as the situation is the same for: # NEW_RELIC_UTILIZATION_TOTAL_RAM_MIB # - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#63 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#65 def configured_total_ram_mib; end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#34 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#36 def container_id; end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#38 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#40 def cpu_count; end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#26 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#28 def fqdn; end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#22 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#24 def hostname; end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#30 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#32 def ip_addresses; end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#43 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#45 def ram_in_mib; end - # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#68 + # source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#70 def to_collector_hash; end end -# source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#135 +# source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#160 NewRelic::Agent::UtilizationData::KUBERNETES_SERVICE_HOST = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#13 +# source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#15 NewRelic::Agent::UtilizationData::METADATA_VERSION = T.let(T.unsafe(nil), Integer) -# source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#15 +# source://newrelic_rpm//lib/new_relic/agent/utilization_data.rb#17 NewRelic::Agent::UtilizationData::VENDORS = T.let(T.unsafe(nil), Hash) # source://newrelic_rpm//lib/new_relic/agent/vm/monotonic_gc_profiler.rb#15 @@ -15959,10 +15471,10 @@ module NewRelic::Base64 def strict_encode64(bin); end end -# source://newrelic_rpm//lib/new_relic/constants.rb#24 +# source://newrelic_rpm//lib/new_relic/constants.rb#25 NewRelic::CANDIDATE_NEWRELIC_KEYS = T.let(T.unsafe(nil), Array) -# source://newrelic_rpm//lib/new_relic/constants.rb#40 +# source://newrelic_rpm//lib/new_relic/constants.rb#41 NewRelic::CONNECT_RETRY_PERIODS = T.let(T.unsafe(nil), Array) # This class is used by NewRelic::Agent.set_sql_obfuscator to chain multiple @@ -16378,7 +15890,10 @@ class NewRelic::Control::SecurityInterface class << self private + # source://newrelic_rpm//lib/new_relic/control/security_interface.rb#10 def allocate; end + + # source://newrelic_rpm//lib/new_relic/control/security_interface.rb#10 def new(*_arg0); end end end @@ -16519,10 +16034,10 @@ class NewRelic::EnvironmentReport end end -# source://newrelic_rpm//lib/new_relic/constants.rb#20 +# source://newrelic_rpm//lib/new_relic/constants.rb#21 NewRelic::FORMAT_NON_RACK = T.let(T.unsafe(nil), Integer) -# source://newrelic_rpm//lib/new_relic/constants.rb#21 +# source://newrelic_rpm//lib/new_relic/constants.rb#22 NewRelic::FORMAT_RACK = T.let(T.unsafe(nil), Integer) # source://newrelic_rpm//lib/new_relic/constants.rb#16 @@ -16531,13 +16046,13 @@ NewRelic::HTTP = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/constants.rb#17 NewRelic::HTTPS = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/constants.rb#38 +# source://newrelic_rpm//lib/new_relic/constants.rb#39 NewRelic::HTTP_NEWRELIC_KEY = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/constants.rb#36 +# source://newrelic_rpm//lib/new_relic/constants.rb#37 NewRelic::HTTP_TRACEPARENT_KEY = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/constants.rb#37 +# source://newrelic_rpm//lib/new_relic/constants.rb#38 NewRelic::HTTP_TRACESTATE_KEY = T.let(T.unsafe(nil), String) # A singleton for shared generic helper methods @@ -16580,7 +16095,7 @@ module NewRelic::Helper # # @api private # - # source://newrelic_rpm//lib/new_relic/helper.rb#91 + # source://newrelic_rpm//lib/new_relic/helper.rb#98 def rubygems_specs; end # source://newrelic_rpm//lib/new_relic/helper.rb#49 @@ -16588,6 +16103,11 @@ module NewRelic::Helper # source://newrelic_rpm//lib/new_relic/helper.rb#45 def time_to_millis(time); end + + # @return [Boolean] + # + # source://newrelic_rpm//lib/new_relic/helper.rb#86 + def version_satisfied?(left, operator, right); end end # source://newrelic_rpm//lib/new_relic/constants.rb#14 @@ -16764,7 +16284,7 @@ class NewRelic::LocalEnvironment def jruby_rack?; end end -# source://newrelic_rpm//lib/new_relic/constants.rb#41 +# source://newrelic_rpm//lib/new_relic/constants.rb#42 NewRelic::MAX_RETRY_PERIOD = T.let(T.unsafe(nil), Integer) # source://newrelic_rpm//lib/new_relic/metric_data.rb#8 @@ -16880,7 +16400,7 @@ NewRelic::MetricSpec::LENGTH_RANGE = T.let(T.unsafe(nil), Range) # source://newrelic_rpm//lib/new_relic/metric_spec.rb#11 NewRelic::MetricSpec::MAX_LENGTH = T.let(T.unsafe(nil), Integer) -# source://newrelic_rpm//lib/new_relic/constants.rb#23 +# source://newrelic_rpm//lib/new_relic/constants.rb#24 NewRelic::NEWRELIC_KEY = T.let(T.unsafe(nil), String) # This class encapsulates an error that was noticed by New Relic in a managed app. @@ -17167,16 +16687,16 @@ NewRelic::NoticedError::USER_ATTRIBUTES = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/constants.rb#8 NewRelic::PRIORITY_PRECISION = T.let(T.unsafe(nil), Integer) -# source://newrelic_rpm//lib/new_relic/constants.rb#44 +# source://newrelic_rpm//lib/new_relic/constants.rb#45 NewRelic::ROOT = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/newrelic_rpm.rb#22 class NewRelic::Railtie < ::Rails::Railtie; end -# source://newrelic_rpm//lib/new_relic/constants.rb#43 +# source://newrelic_rpm//lib/new_relic/constants.rb#44 NewRelic::SLASH = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/constants.rb#34 +# source://newrelic_rpm//lib/new_relic/constants.rb#35 NewRelic::STANDARD_OUT = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/supportability_helper.rb#6 @@ -17199,10 +16719,10 @@ NewRelic::SupportabilityHelper::API_SUPPORTABILITY_METRICS = T.let(T.unsafe(nil) # source://newrelic_rpm//lib/new_relic/supportability_helper.rb#7 NewRelic::SupportabilityHelper::API_SUPPORTABILITY_PREFIX = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/constants.rb#31 +# source://newrelic_rpm//lib/new_relic/constants.rb#32 NewRelic::TRACEPARENT_KEY = T.let(T.unsafe(nil), String) -# source://newrelic_rpm//lib/new_relic/constants.rb#32 +# source://newrelic_rpm//lib/new_relic/constants.rb#33 NewRelic::TRACESTATE_KEY = T.let(T.unsafe(nil), String) # source://newrelic_rpm//lib/new_relic/thread_local_storage.rb#6 @@ -17253,6 +16773,9 @@ end # source://newrelic_rpm//lib/new_relic/constants.rb#18 NewRelic::UNKNOWN = T.let(T.unsafe(nil), String) +# source://newrelic_rpm//lib/new_relic/constants.rb#19 +NewRelic::UNKNOWN_LOWER = T.let(T.unsafe(nil), String) + # source://newrelic_rpm//lib/new_relic/version.rb#7 module NewRelic::VERSION; end diff --git a/sorbet/rbi/gems/nio4r@2.7.4.rbi b/sorbet/rbi/gems/nio4r@2.7.4.rbi index 1b9cda88..c08827a1 100644 --- a/sorbet/rbi/gems/nio4r@2.7.4.rbi +++ b/sorbet/rbi/gems/nio4r@2.7.4.rbi @@ -35,6 +35,8 @@ class NIO::ByteBuffer # @param capacity [Integer] size of buffer in bytes # @raise [TypeError] # @return [NIO::ByteBuffer] + # + # source://nio4r//lib/nio.rb#51 def initialize(_arg0); end # Add a String to the buffer @@ -43,35 +45,51 @@ class NIO::ByteBuffer # @raise [TypeError] given a non-string type # @raise [NIO::ByteBuffer::OverflowError] buffer is full # @return [self] + # + # source://nio4r//lib/nio.rb#51 def <<(_arg0); end # Obtain the byte at a given index in the buffer as an Integer # # @raise [ArgumentError] index is invalid (either negative or larger than limit) # @return [Integer] byte at the given index + # + # source://nio4r//lib/nio.rb#51 def [](_arg0); end # Returns the value of attribute capacity. + # + # source://nio4r//lib/nio.rb#51 def capacity; end # Clear the buffer, resetting it to the default state + # + # source://nio4r//lib/nio.rb#51 def clear; end # Move data between the position and limit to the beginning of the buffer # Sets the position to the end of the moved data, and the limit to the capacity + # + # source://nio4r//lib/nio.rb#51 def compact; end # Iterate over the bytes in the buffer (as Integers) # # @return [self] + # + # source://nio4r//lib/nio.rb#51 def each; end # Set the buffer's current position as the limit and set the position to 0 + # + # source://nio4r//lib/nio.rb#51 def flip; end # Does the ByteBuffer have any space remaining? # # @return [true, false] + # + # source://nio4r//lib/nio.rb#51 def full?; end # Obtain the requested number of bytes from the buffer, advancing the position. @@ -79,14 +97,20 @@ class NIO::ByteBuffer # # @raise [NIO::ByteBuffer::UnderflowError] not enough data remaining in buffer # @return [String] bytes read from buffer + # + # source://nio4r//lib/nio.rb#51 def get(*_arg0); end # Inspect the state of the buffer # # @return [String] string describing the state of the buffer + # + # source://nio4r//lib/nio.rb#51 def inspect; end # Returns the value of attribute limit. + # + # source://nio4r//lib/nio.rb#51 def limit; end # Set the limit to the given value. New limit must be less than capacity. @@ -95,12 +119,18 @@ class NIO::ByteBuffer # # @param new_limit [Integer] position in the buffer # @raise [ArgumentError] new limit was invalid + # + # source://nio4r//lib/nio.rb#51 def limit=(_arg0); end # Mark a position to return to using the `#reset` method + # + # source://nio4r//lib/nio.rb#51 def mark; end # Returns the value of attribute position. + # + # source://nio4r//lib/nio.rb#51 def position; end # Set the position to the given value. New position must be less than limit. @@ -108,6 +138,8 @@ class NIO::ByteBuffer # # @param new_position [Integer] position in the buffer # @raise [ArgumentError] new position was invalid + # + # source://nio4r//lib/nio.rb#51 def position=(_arg0); end # Perform a non-blocking read from the given IO object into the buffer @@ -116,21 +148,30 @@ class NIO::ByteBuffer # @param Ruby [IO] IO object to read from # @raise [OverflowError] # @return [Integer] number of bytes read (0 if none were available) + # + # source://nio4r//lib/nio.rb#51 def read_from(_arg0); end # Number of bytes remaining in the buffer before the limit # # @return [Integer] number of bytes remaining + # + # source://nio4r//lib/nio.rb#51 def remaining; end # Reset position to the previously marked location # # @raise [NIO::ByteBuffer::MarkUnsetError] mark has not been set (call `#mark` first) + # + # source://nio4r//lib/nio.rb#51 def reset; end # Set the buffer's current position to 0, leaving the limit unchanged + # + # source://nio4r//lib/nio.rb#51 def rewind; end + # source://nio4r//lib/nio.rb#51 def size; end # Perform a non-blocking write of the buffer's contents to the given I/O object @@ -139,6 +180,8 @@ class NIO::ByteBuffer # @param Ruby [IO] IO object to write to # @raise [UnderflowError] # @return [Integer] number of bytes written (0 if the write would block) + # + # source://nio4r//lib/nio.rb#51 def write_to(_arg0); end end @@ -157,23 +200,33 @@ NIO::ENGINE = T.let(T.unsafe(nil), String) # Monitors watch IO objects for specific events class NIO::Monitor # @return [Monitor] a new instance of Monitor + # + # source://nio4r//lib/nio.rb#51 def initialize(_arg0, _arg1, _arg2); end # Add new interests to the existing interest set # # @param interests [:r, :w, :rw] new I/O interests (read/write/readwrite) # @return [self] + # + # source://nio4r//lib/nio.rb#51 def add_interest(_arg0); end # Deactivate this monitor + # + # source://nio4r//lib/nio.rb#51 def close(*_arg0); end # Is this monitor closed? # # @return [Boolean] + # + # source://nio4r//lib/nio.rb#51 def closed?; end # Returns the value of attribute interests. + # + # source://nio4r//lib/nio.rb#51 def interests; end # Replace the existing interest set with a new one @@ -181,44 +234,64 @@ class NIO::Monitor # @param interests [:r, :w, :rw, nil] I/O readiness we're interested in (read/write/readwrite) # @raise [EOFError] # @return [Symbol] new interests + # + # source://nio4r//lib/nio.rb#51 def interests=(_arg0); end # Returns the value of attribute io. + # + # source://nio4r//lib/nio.rb#51 def io; end # Is the IO object readable? # # @return [Boolean] + # + # source://nio4r//lib/nio.rb#51 def readable?; end # Returns the value of attribute readiness. + # + # source://nio4r//lib/nio.rb#51 def readiness; end # Remove interests from the existing interest set # # @param interests [:r, :w, :rw] I/O interests to remove (read/write/readwrite) # @return [self] + # + # source://nio4r//lib/nio.rb#51 def remove_interest(_arg0); end # Returns the value of attribute selector. + # + # source://nio4r//lib/nio.rb#51 def selector; end # Returns the value of attribute value. + # + # source://nio4r//lib/nio.rb#51 def value; end # Sets the attribute value # # @param value the value to set the attribute value to. + # + # source://nio4r//lib/nio.rb#51 def value=(_arg0); end # Is the IO object writable? # # @return [Boolean] + # + # source://nio4r//lib/nio.rb#51 def writable?; end # Is the IO object writable? # # @return [Boolean] + # + # source://nio4r//lib/nio.rb#51 def writeable?; end end @@ -228,6 +301,8 @@ class NIO::Selector # # @raise [ArgumentError] # @return [Selector] a new instance of Selector + # + # source://nio4r//lib/nio.rb#51 def initialize(*_arg0); end # Return a symbol representing the backend I/O multiplexing mechanism used. @@ -242,20 +317,30 @@ class NIO::Selector # * :linuxaio - libev w\ Linux AIO io_submit (experimental) # * :io_uring - libev w\ Linux io_uring (experimental) # * :unknown - libev w\ unknown backend + # + # source://nio4r//lib/nio.rb#51 def backend; end # Close this selector and free its resources + # + # source://nio4r//lib/nio.rb#51 def close; end # Is this selector closed? # # @return [Boolean] + # + # source://nio4r//lib/nio.rb#51 def closed?; end # Deregister the given IO object from the selector + # + # source://nio4r//lib/nio.rb#51 def deregister(_arg0); end # @return [Boolean] + # + # source://nio4r//lib/nio.rb#51 def empty?; end # Register interest in an IO object with the selector for the given types @@ -263,14 +348,20 @@ class NIO::Selector # * :r - is the IO readable? # * :w - is the IO writeable? # * :rw - is the IO either readable or writeable? + # + # source://nio4r//lib/nio.rb#51 def register(_arg0, _arg1); end # Is the given IO object registered with the selector? # # @return [Boolean] + # + # source://nio4r//lib/nio.rb#51 def registered?(_arg0); end # Select which monitors are ready + # + # source://nio4r//lib/nio.rb#51 def select(*_arg0); end # Wake up a thread that's in the middle of selecting on this selector, if @@ -279,12 +370,16 @@ class NIO::Selector # Invoking this method more than once between two successive select calls # has the same effect as invoking it just once. In other words, it provides # level-triggered behavior. + # + # source://nio4r//lib/nio.rb#51 def wakeup; end class << self # Return supported backends as symbols # # See `#backend` method definition for all possible backends + # + # source://nio4r//lib/nio.rb#51 def backends; end end end diff --git a/sorbet/rbi/gems/nokogiri@1.18.7.rbi b/sorbet/rbi/gems/nokogiri@1.18.9.rbi similarity index 93% rename from sorbet/rbi/gems/nokogiri@1.18.7.rbi rename to sorbet/rbi/gems/nokogiri@1.18.9.rbi index eec082c6..3f40d227 100644 --- a/sorbet/rbi/gems/nokogiri@1.18.7.rbi +++ b/sorbet/rbi/gems/nokogiri@1.18.9.rbi @@ -37,7 +37,7 @@ # source://nokogiri//lib/nokogiri.rb#38 module Nokogiri class << self - # source://nokogiri//lib/nokogiri/html4.rb#7 + # source://nokogiri//lib/nokogiri/html.rb#16 def HTML(*_arg0, **_arg1, &_arg2); end # Convenience method for Nokogiri::HTML4::Document.parse @@ -553,7 +553,7 @@ class Nokogiri::CSS::Tokenizer # source://nokogiri//lib/nokogiri/css/tokenizer.rb#49 def next_token; end - # source://nokogiri//lib/nokogiri/css/tokenizer.rb#30 + # source://nokogiri//lib/nokogiri/css/tokenizer.rb#34 def scan(str); end # source://nokogiri//lib/nokogiri/css/tokenizer.rb#43 @@ -640,7 +640,7 @@ class Nokogiri::CSS::XPathVisitor # source://nokogiri//lib/nokogiri/css/xpath_visitor.rb#175 def visit_attribute_condition(node); end - # source://nokogiri//lib/nokogiri/css/xpath_visitor.rb#256 + # source://nokogiri//lib/nokogiri/css/xpath_visitor.rb#255 def visit_child_selector(node); end # source://nokogiri//lib/nokogiri/css/xpath_visitor.rb#237 @@ -652,16 +652,16 @@ class Nokogiri::CSS::XPathVisitor # source://nokogiri//lib/nokogiri/css/xpath_visitor.rb#262 def visit_conditional_selector(node); end - # source://nokogiri//lib/nokogiri/css/xpath_visitor.rb#256 + # source://nokogiri//lib/nokogiri/css/xpath_visitor.rb#255 def visit_descendant_selector(node); end - # source://nokogiri//lib/nokogiri/css/xpath_visitor.rb#256 + # source://nokogiri//lib/nokogiri/css/xpath_visitor.rb#255 def visit_direct_adjacent_selector(node); end # source://nokogiri//lib/nokogiri/css/xpath_visitor.rb#267 def visit_element_name(node); end - # source://nokogiri//lib/nokogiri/css/xpath_visitor.rb#256 + # source://nokogiri//lib/nokogiri/css/xpath_visitor.rb#255 def visit_following_selector(node); end # :stopdoc: @@ -829,12 +829,21 @@ Nokogiri::Decorators::Slop::XPATH_PREFIX = T.let(T.unsafe(nil), String) # source://nokogiri//lib/nokogiri/encoding_handler.rb#5 class Nokogiri::EncodingHandler # Returns the value of attribute name. + # + # source://nokogiri//lib/nokogiri/extension.rb#7 def name; end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def [](_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def alias(_arg0, _arg1); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def clear_aliases!; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def delete(_arg0); end # source://nokogiri//lib/nokogiri/encoding_handler.rb#15 @@ -850,7 +859,10 @@ Nokogiri::EncodingHandler::USEFUL_ALIASES = T.let(T.unsafe(nil), Hash) # source://nokogiri//lib/nokogiri/gumbo.rb#4 module Nokogiri::Gumbo class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def fragment(*_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def parse(*_arg0); end end end @@ -999,6 +1011,7 @@ class Nokogiri::HTML4::Document < ::Nokogiri::XML::Document # source://nokogiri//lib/nokogiri/html4/document.rb#85 def title=(text); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def type; end # :call-seq: @@ -1020,6 +1033,7 @@ class Nokogiri::HTML4::Document < ::Nokogiri::XML::Document def set_metadata_element(element); end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def new(*_arg0); end # :call-seq: @@ -1051,7 +1065,10 @@ class Nokogiri::HTML4::Document < ::Nokogiri::XML::Document # source://nokogiri//lib/nokogiri/html4/document.rb#189 def parse(input, url_ = T.unsafe(nil), encoding_ = T.unsafe(nil), options_ = T.unsafe(nil), url: T.unsafe(nil), encoding: T.unsafe(nil), options: T.unsafe(nil)); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def read_io(_arg0, _arg1, _arg2, _arg3); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def read_memory(_arg0, _arg1, _arg2, _arg3); end end end @@ -1157,21 +1174,34 @@ class Nokogiri::HTML4::ElementDescription # source://nokogiri//lib/nokogiri/html4/element_description.rb#8 def block?; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def default_sub_element; end # @return [Boolean] + # + # source://nokogiri//lib/nokogiri/extension.rb#7 def deprecated?; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def deprecated_attributes; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def description; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def empty?; end # @return [Boolean] + # + # source://nokogiri//lib/nokogiri/extension.rb#7 def implied_end_tag?; end # @return [Boolean] + # + # source://nokogiri//lib/nokogiri/extension.rb#7 def implied_start_tag?; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def inline?; end # Inspection information @@ -1179,13 +1209,21 @@ class Nokogiri::HTML4::ElementDescription # source://nokogiri//lib/nokogiri/html4/element_description.rb#20 def inspect; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def name; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def optional_attributes; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def required_attributes; end # @return [Boolean] + # + # source://nokogiri//lib/nokogiri/extension.rb#7 def save_end_tag?; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def sub_elements; end # Convert this description to a string @@ -1199,6 +1237,7 @@ class Nokogiri::HTML4::ElementDescription def default_desc; end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def [](_arg0); end end end @@ -1612,6 +1651,7 @@ class Nokogiri::HTML4::EntityLookup # source://nokogiri//lib/nokogiri/html4/entity_lookup.rb#10 def [](name); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def get(_arg0); end end @@ -1660,6 +1700,7 @@ module Nokogiri::HTML4::SAX; end class Nokogiri::HTML4::SAX::Parser < ::Nokogiri::XML::SAX::Parser private + # source://nokogiri//lib/nokogiri/extension.rb#7 def initialize_native; end end @@ -1670,10 +1711,14 @@ end # # source://nokogiri//lib/nokogiri/html4/sax/parser_context.rb#11 class Nokogiri::HTML4::SAX::ParserContext < ::Nokogiri::XML::SAX::ParserContext + # source://nokogiri//lib/nokogiri/extension.rb#7 def parse_with(_arg0); end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def native_file(_arg0, _arg1); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def native_memory(_arg0, _arg1); end end end @@ -1688,7 +1733,7 @@ class Nokogiri::HTML4::SAX::PushParser < ::Nokogiri::XML::SAX::PushParser # Write a +chunk+ of HTML to the PushParser. Any callback methods # that can be called will be called immediately. # - # source://nokogiri//lib/nokogiri/html4/sax/push_parser.rb#23 + # source://nokogiri//lib/nokogiri/html4/sax/push_parser.rb#26 def <<(chunk, last_chunk = T.unsafe(nil)); end # The Nokogiri::HTML4::SAX::Document on which the PushParser will be @@ -1717,7 +1762,10 @@ class Nokogiri::HTML4::SAX::PushParser < ::Nokogiri::XML::SAX::PushParser private + # source://nokogiri//lib/nokogiri/extension.rb#7 def initialize_native(_arg0, _arg1, _arg2); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def native_write(_arg0, _arg1); end end @@ -2370,6 +2418,7 @@ class Nokogiri::SyntaxError < ::StandardError; end module Nokogiri::Test class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def __foreign_error_handler; end end end @@ -2460,7 +2509,10 @@ class Nokogiri::VersionInfo class << self private + # source://nokogiri//lib/nokogiri/version/info.rb#8 def allocate; end + + # source://nokogiri//lib/nokogiri/version/info.rb#8 def new(*_arg0); end end end @@ -2505,6 +2557,7 @@ end # source://nokogiri//lib/nokogiri/xml/attr.rb#6 class Nokogiri::XML::Attr < ::Nokogiri::XML::Node + # source://nokogiri//lib/nokogiri/xml/attr.rb#9 def content=(_arg0); end # :call-seq: deconstruct_keys(array_of_names) → Hash @@ -2553,8 +2606,13 @@ class Nokogiri::XML::Attr < ::Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/attr.rb#55 def deconstruct_keys(keys); end + # source://nokogiri//lib/nokogiri/xml/attr.rb#8 def to_s; end + + # source://nokogiri//lib/nokogiri/xml/attr.rb#7 def value; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def value=(_arg0); end private @@ -2563,6 +2621,7 @@ class Nokogiri::XML::Attr < ::Nokogiri::XML::Node def inspect_attributes; end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def new(*_arg0); end end end @@ -2571,8 +2630,13 @@ end # # source://nokogiri//lib/nokogiri/xml/attribute_decl.rb#7 class Nokogiri::XML::AttributeDecl < ::Nokogiri::XML::Node + # source://nokogiri//lib/nokogiri/extension.rb#7 def attribute_type; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def default; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def enumeration; end private @@ -2981,6 +3045,7 @@ class Nokogiri::XML::CDATA < ::Nokogiri::XML::Text def name; end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def new(*_arg0); end end end @@ -2992,19 +3057,26 @@ end class Nokogiri::XML::Comment < ::Nokogiri::XML::CharacterData class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def new(*_arg0); end end end # source://nokogiri//lib/nokogiri/xml/dtd.rb#5 class Nokogiri::XML::DTD < ::Nokogiri::XML::Node + # source://nokogiri//lib/nokogiri/extension.rb#7 def attributes; end # source://nokogiri//lib/nokogiri/xml/dtd.rb#17 def each; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def elements; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def entities; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def external_id; end # @return [Boolean] @@ -3020,8 +3092,13 @@ class Nokogiri::XML::DTD < ::Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/dtd.rb#13 def keys; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def notations; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def system_id; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def validate(_arg0); end end @@ -3039,12 +3116,13 @@ class Nokogiri::XML::Document < ::Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/document.rb#190 def initialize(*args); end - # source://nokogiri//lib/nokogiri/xml/document.rb#437 + # source://nokogiri//lib/nokogiri/xml/document.rb#449 def <<(node_or_tags); end # source://nokogiri//lib/nokogiri/xml/document.rb#437 def add_child(node_or_tags); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def canonicalize(*_arg0); end # :call-seq: @@ -3160,6 +3238,7 @@ class Nokogiri::XML::Document < ::Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/document.rb#276 def create_element(name, *contents_or_attrs, &block); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def create_entity(*_arg0); end # Create a Text Node with +string+ @@ -3237,7 +3316,10 @@ class Nokogiri::XML::Document < ::Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/document.rb#207 def dup(level = T.unsafe(nil)); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def encoding; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def encoding=(_arg0); end # The errors found while parsing a document. @@ -3368,8 +3450,13 @@ class Nokogiri::XML::Document < ::Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/document.rb#422 def namespaces; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def remove_namespaces!; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def root; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def root=(_arg0); end # Explore a document with shortcut methods. See Nokogiri::Slop for details. @@ -3390,9 +3477,10 @@ class Nokogiri::XML::Document < ::Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/document.rb#398 def slop!; end - # source://nokogiri//lib/nokogiri/xml/node.rb#1364 + # source://nokogiri//lib/nokogiri/xml/document.rb#419 def to_xml(*args, &block); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def url; end # Validate this Document against its DTD. Returns a list of errors on @@ -3401,6 +3489,7 @@ class Nokogiri::XML::Document < ::Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/document.rb#376 def validate; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def version; end # :call-seq: @@ -3415,6 +3504,7 @@ class Nokogiri::XML::Document < ::Nokogiri::XML::Node protected + # source://nokogiri//lib/nokogiri/extension.rb#7 def initialize_copy_with_args(_arg0, _arg1); end private @@ -3423,6 +3513,7 @@ class Nokogiri::XML::Document < ::Nokogiri::XML::Node def inspect_attributes; end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def new(*_arg0); end # call-seq: @@ -3458,7 +3549,10 @@ class Nokogiri::XML::Document < ::Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/document.rb#56 def parse(string_or_io, url_ = T.unsafe(nil), encoding_ = T.unsafe(nil), options_ = T.unsafe(nil), url: T.unsafe(nil), encoding: T.unsafe(nil), options: T.unsafe(nil)); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def read_io(_arg0, _arg1, _arg2, _arg3); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def read_memory(_arg0, _arg1, _arg2, _arg3); end private @@ -3630,7 +3724,7 @@ class Nokogiri::XML::DocumentFragment < ::Nokogiri::XML::Node # Convert this DocumentFragment to a string # - # source://nokogiri//lib/nokogiri/xml/document_fragment.rb#131 + # source://nokogiri//lib/nokogiri/xml/document_fragment.rb#204 def serialize; end # Convert this DocumentFragment to html @@ -3664,6 +3758,7 @@ class Nokogiri::XML::DocumentFragment < ::Nokogiri::XML::Node def namespace_declarations(ctx); end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def native_new(_arg0); end # Wrapper method to separate the concerns of: @@ -3726,14 +3821,24 @@ class Nokogiri::XML::ElementContent # source://nokogiri//lib/nokogiri/xml/element_content.rb#31 def document; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def name; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def occur; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def prefix; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def type; end private + # source://nokogiri//lib/nokogiri/extension.rb#7 def c1; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def c2; end # source://nokogiri//lib/nokogiri/xml/element_content.rb#41 @@ -3770,8 +3875,13 @@ Nokogiri::XML::ElementContent::SEQ = T.let(T.unsafe(nil), Integer) # source://nokogiri//lib/nokogiri/xml/element_decl.rb#5 class Nokogiri::XML::ElementDecl < ::Nokogiri::XML::Node + # source://nokogiri//lib/nokogiri/extension.rb#7 def content; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def element_type; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def prefix; end private @@ -3782,10 +3892,19 @@ end # source://nokogiri//lib/nokogiri/xml/entity_decl.rb#5 class Nokogiri::XML::EntityDecl < ::Nokogiri::XML::Node + # source://nokogiri//lib/nokogiri/extension.rb#7 def content; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def entity_type; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def external_id; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def original_content; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def system_id; end private @@ -3815,6 +3934,7 @@ class Nokogiri::XML::EntityReference < ::Nokogiri::XML::Node def inspect_attributes; end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def new(*_arg0); end end end @@ -3866,7 +3986,10 @@ class Nokogiri::XML::Namespace # source://nokogiri//lib/nokogiri/xml/namespace.rb#8 def document; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def href; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def prefix; end private @@ -4111,7 +4234,10 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#790 def add_class(names); end + # source://nokogiri//lib/nokogiri/xml/node.rb#544 def add_namespace(_arg0, _arg1); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def add_namespace_definition(_arg0, _arg1); end # Insert +node_or_tags+ after this Node (as a sibling). @@ -4234,11 +4360,16 @@ class Nokogiri::XML::Node # doc.at_css("child").attribute_with_ns("size", "http://example.com/widths").value # # => "broad" # - # source://nokogiri//lib/nokogiri/xml/node.rb#587 + # source://nokogiri//lib/nokogiri/xml/node.rb#1082 def attr(name); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def attribute(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def attribute_nodes; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def attribute_with_ns(_arg0, _arg1); end # :call-seq: attributes() → Hash @@ -4310,6 +4441,7 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#340 def before(node_or_tags); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def blank?; end # source://nokogiri//lib/nokogiri/xml/node.rb#1492 @@ -4322,7 +4454,10 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#1214 def cdata?; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def child; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def children; end # Set the content for this Node +node_or_tags+ @@ -4380,6 +4515,7 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#1209 def comment?; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def content; end # call-seq: @@ -4427,7 +4563,10 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#487 def content=(string); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def create_external_subset(_arg0, _arg1, _arg2); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def create_internal_subset(_arg0, _arg1, _arg2); end # Get the path to this node as a CSS expression @@ -4435,6 +4574,7 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#1284 def css_path; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def data_ptr?; end # :call-seq: deconstruct_keys(array_of_names) → Hash @@ -4505,7 +4645,7 @@ class Nokogiri::XML::Node # Remove the attribute named +name+ # - # source://nokogiri//lib/nokogiri/xml/node.rb#718 + # source://nokogiri//lib/nokogiri/xml/node.rb#1080 def delete(name); end # Fetch the Nokogiri::HTML4::ElementDescription for this node. Returns @@ -4523,6 +4663,7 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#530 def do_xinclude(options = T.unsafe(nil)); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def document; end # Returns true if this is a Document @@ -4557,7 +4698,7 @@ class Nokogiri::XML::Node # # @return [Boolean] # - # source://nokogiri//lib/nokogiri/xml/node.rb#1265 + # source://nokogiri//lib/nokogiri/xml/node.rb#1269 def elem?; end # Returns true if this is an Element node @@ -4567,16 +4708,25 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#1265 def element?; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def element_children; end + + # source://nokogiri//lib/nokogiri/xml/node.rb#553 def elements; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def encode_special_chars(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def external_subset; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def first_element_child; end # Create a DocumentFragment containing +tags+ that is relative to _this_ # context node. # - # source://nokogiri//lib/nokogiri/html5/node.rb#70 + # source://nokogiri//lib/nokogiri/xml/node.rb#1097 def fragment(tags); end # Returns true if this is a DocumentFragment @@ -4616,9 +4766,10 @@ class Nokogiri::XML::Node # doc.at_css("child").attribute_with_ns("size", "http://example.com/widths").value # # => "broad" # - # source://nokogiri//lib/nokogiri/xml/node.rb#587 + # source://nokogiri//lib/nokogiri/xml/node.rb#1081 def get_attribute(name); end + # source://nokogiri//lib/nokogiri/xml/node.rb#1084 def has_attribute?(_arg0); end # Returns true if this is an HTML4::Document or HTML5::Document node @@ -4630,7 +4781,7 @@ class Nokogiri::XML::Node # Get the inner_html for this node's Node#children # - # source://nokogiri//lib/nokogiri/html5/node.rb#31 + # source://nokogiri//lib/nokogiri/xml/node.rb#1279 def inner_html(options = T.unsafe(nil)); end # Set the content for this Node to +node_or_tags+. @@ -4652,9 +4803,14 @@ class Nokogiri::XML::Node def inner_html=(node_or_tags); end # :section: + # + # source://nokogiri//lib/nokogiri/xml/node.rb#548 def inner_text; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def internal_subset; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def key?(_arg0); end # Get the attribute names for this Node. @@ -4833,10 +4989,19 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#913 def kwattr_values(attribute_name); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def lang; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def lang=(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def last_element_child; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def line; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def line=(_arg0); end # Returns true if this Node matches +selector+ @@ -4846,8 +5011,13 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#1090 def matches?(selector); end + # source://nokogiri//lib/nokogiri/xml/node.rb#551 def name; end + + # source://nokogiri//lib/nokogiri/xml/node.rb#543 def name=(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def namespace; end # Set the default namespace on this node (as would be defined with an @@ -4859,8 +5029,13 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#513 def namespace=(ns); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def namespace_definitions; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def namespace_scopes; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def namespaced_key?(_arg0, _arg1); end # :call-seq: @@ -4902,7 +5077,10 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#1200 def namespaces; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def native_content=(_arg0); end + + # source://nokogiri//lib/nokogiri/xml/node.rb#538 def next; end # Insert +node_or_tags+ after this Node (as a sibling). @@ -4917,14 +5095,25 @@ class Nokogiri::XML::Node # # @raise [ArgumentError] # - # source://nokogiri//lib/nokogiri/xml/node.rb#324 + # source://nokogiri//lib/nokogiri/xml/node.rb#540 def next=(node_or_tags); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def next_element; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def next_sibling; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def node_name; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def node_name=(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def node_type; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def parent; end # Set the parent Node for this Node @@ -4941,7 +5130,10 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#1105 def parse(string_or_io, options = T.unsafe(nil)); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def path; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def pointer_id; end # Add +node_or_tags+ as the first child of this Node. @@ -4957,6 +5149,7 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#204 def prepend_child(node_or_tags); end + # source://nokogiri//lib/nokogiri/xml/node.rb#539 def previous; end # Insert +node_or_tags+ before this Node (as a sibling). @@ -4971,10 +5164,13 @@ class Nokogiri::XML::Node # # @raise [ArgumentError] # - # source://nokogiri//lib/nokogiri/xml/node.rb#307 + # source://nokogiri//lib/nokogiri/xml/node.rb#541 def previous=(node_or_tags); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def previous_element; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def previous_sibling; end # Returns true if this is a ProcessingInstruction node @@ -4991,6 +5187,7 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#1259 def read_only?; end + # source://nokogiri//lib/nokogiri/xml/node.rb#542 def remove; end # Remove the attribute named +name+ @@ -5109,7 +5306,7 @@ class Nokogiri::XML::Node # # " \n" + # # "\n" # - # source://nokogiri//lib/nokogiri/xml/node.rb#625 + # source://nokogiri//lib/nokogiri/xml/node.rb#1083 def set_attribute(name, value); end # Swap this Node for +node_or_tags+ @@ -5124,6 +5321,7 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#439 def swap(node_or_tags); end + # source://nokogiri//lib/nokogiri/xml/node.rb#549 def text; end # Returns true if this is a Text node @@ -5149,6 +5347,7 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#1274 def to_s; end + # source://nokogiri//lib/nokogiri/xml/node.rb#550 def to_str; end # Serialize this Node to XHTML using +options+ @@ -5175,7 +5374,10 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#1317 def traverse(&block); end + # source://nokogiri//lib/nokogiri/xml/node.rb#552 def type; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def unlink; end # Does this Node's attributes include @@ -5268,7 +5470,7 @@ class Nokogiri::XML::Node # # @yield [config] # - # source://nokogiri//lib/nokogiri/html5/node.rb#39 + # source://nokogiri//lib/nokogiri/xml/node.rb#1440 def write_to(io, *options); end # Write Node as XHTML to +io+ with +options+ @@ -5301,25 +5503,39 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#1567 def coerce(data); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def initialize_copy_with_args(_arg0, _arg1, _arg2); end private + # source://nokogiri//lib/nokogiri/extension.rb#7 def add_child_node(_arg0); end - # source://nokogiri//lib/nokogiri/html5/node.rb#83 + # source://nokogiri//lib/nokogiri/xml/node.rb#1639 def add_child_node_and_reparent_attrs(node); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def add_next_sibling_node(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def add_previous_sibling_node(_arg0); end # source://nokogiri//lib/nokogiri/xml/node.rb#1601 def add_sibling(next_or_previous, node_or_tags); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def compare(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def dump_html; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def get(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def html_standard_serialize(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def in_context(_arg0, _arg1); end # source://nokogiri//lib/nokogiri/xml/node.rb#1633 @@ -5328,11 +5544,22 @@ class Nokogiri::XML::Node # source://nokogiri//lib/nokogiri/xml/node.rb#1589 def keywordify(keywords); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def native_write_to(_arg0, _arg1, _arg2, _arg3); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def prepend_newline?; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def process_xincludes(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def replace_node(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def set(_arg0, _arg1); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def set_namespace(_arg0); end # source://nokogiri//lib/nokogiri/xml/node.rb#1623 @@ -5342,6 +5569,7 @@ class Nokogiri::XML::Node def write_format_to(save_option, io, options); end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def new(*_arg0); end end end @@ -5457,67 +5685,67 @@ class Nokogiri::XML::Node::SaveOptions # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#47 def initialize(options = T.unsafe(nil)); end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#53 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def as_html; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#58 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def as_html?; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#53 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def as_xhtml; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#58 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def as_xhtml?; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#53 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def as_xml; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#58 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def as_xml?; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#53 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def default_html; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#58 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def default_html?; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#53 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def default_xhtml; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#58 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def default_xhtml?; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#53 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def default_xml; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#58 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def default_xml?; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#53 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def format; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#58 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def format?; end # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#66 def inspect; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#53 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def no_declaration; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#58 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def no_declaration?; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#53 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def no_empty_tags; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#58 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def no_empty_tags?; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#53 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def no_xhtml; end - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#58 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#52 def no_xhtml?; end # Integer representation of the SaveOptions @@ -5527,7 +5755,7 @@ class Nokogiri::XML::Node::SaveOptions # Integer representation of the SaveOptions # - # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#44 + # source://nokogiri//lib/nokogiri/xml/node/save_options.rb#64 def to_i; end end @@ -5629,12 +5857,19 @@ class Nokogiri::XML::NodeSet # # node_set.at(3) # same as node_set[3] # - # source://nokogiri//lib/nokogiri/xml/node_set.rb#121 + # source://nokogiri//lib/nokogiri/xml/node_set.rb#128 def %(*args); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def &(_arg0); end + + # source://nokogiri//lib/nokogiri/xml/node_set.rb#433 def +(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def -(_arg0); end + + # source://nokogiri//lib/nokogiri/xml/node_set.rb#75 def <<(_arg0); end # Equality -- Two NodeSets are equal if the contain the same number @@ -5644,6 +5879,7 @@ class Nokogiri::XML::NodeSet # source://nokogiri//lib/nokogiri/xml/node_set.rb#395 def ==(other); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def [](*_arg0); end # Add the class attribute +name+ to all Node objects in the @@ -5748,7 +5984,7 @@ class Nokogiri::XML::NodeSet # # node_set.attr("class") { |node| node.name } # - # source://nokogiri//lib/nokogiri/xml/node_set.rb#205 + # source://nokogiri//lib/nokogiri/xml/node_set.rb#221 def attribute(key, value = T.unsafe(nil), &block); end # Insert +datum+ before the first Node in this NodeSet @@ -5781,6 +6017,7 @@ class Nokogiri::XML::NodeSet # source://nokogiri//lib/nokogiri/xml/node_set.rb#442 def deconstruct; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def delete(_arg0); end # The Document this NodeSet is associated with @@ -5815,6 +6052,7 @@ class Nokogiri::XML::NodeSet # source://nokogiri//lib/nokogiri/xml/node_set.rb#31 def first(n = T.unsafe(nil)); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def include?(_arg0); end # Returns the index of the first node in self that is == to +node+ or meets the given block. Returns nil if no match is found. @@ -5853,6 +6091,7 @@ class Nokogiri::XML::NodeSet # source://nokogiri//lib/nokogiri/xml/node_set.rb#41 def last; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def length; end # Removes the last element from set and returns it, or +nil+ if @@ -5861,7 +6100,10 @@ class Nokogiri::XML::NodeSet # source://nokogiri//lib/nokogiri/xml/node_set.rb#376 def pop; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def push(_arg0); end + + # source://nokogiri//lib/nokogiri/xml/node_set.rb#76 def remove; end # Remove the attributed named +name+ from all Node objects in the NodeSet @@ -5871,7 +6113,7 @@ class Nokogiri::XML::NodeSet # Remove the attributed named +name+ from all Node objects in the NodeSet # - # source://nokogiri//lib/nokogiri/xml/node_set.rb#225 + # source://nokogiri//lib/nokogiri/xml/node_set.rb#229 def remove_attribute(name); end # Remove the class attribute +name+ from all Node objects in the @@ -5920,7 +6162,7 @@ class Nokogiri::XML::NodeSet # # node_set.attr("class") { |node| node.name } # - # source://nokogiri//lib/nokogiri/xml/node_set.rb#205 + # source://nokogiri//lib/nokogiri/xml/node_set.rb#220 def set(key, value = T.unsafe(nil), &block); end # Returns the first element of the NodeSet and removes it. Returns @@ -5929,7 +6171,10 @@ class Nokogiri::XML::NodeSet # source://nokogiri//lib/nokogiri/xml/node_set.rb#385 def shift; end + # source://nokogiri//lib/nokogiri/xml/node_set.rb#370 def size; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def slice(*_arg0); end # Get the inner text of all contained Node objects @@ -5945,10 +6190,13 @@ class Nokogiri::XML::NodeSet # # See Nokogiri::XML::Node#content for more information. # - # source://nokogiri//lib/nokogiri/xml/node_set.rb#255 + # source://nokogiri//lib/nokogiri/xml/node_set.rb#258 def text; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def to_a; end + + # source://nokogiri//lib/nokogiri/xml/node_set.rb#371 def to_ary; end # Convert this NodeSet to HTML @@ -5971,6 +6219,7 @@ class Nokogiri::XML::NodeSet # source://nokogiri//lib/nokogiri/xml/node_set.rb#366 def to_xml(*args); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def unlink; end # :call-seq: @@ -6050,10 +6299,12 @@ class Nokogiri::XML::NodeSet # source://nokogiri//lib/nokogiri/xml/node_set.rb#101 def xpath(*args); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def |(_arg0); end private + # source://nokogiri//lib/nokogiri/extension.rb#7 def initialize_copy(_arg0); end end @@ -6160,208 +6411,208 @@ class Nokogiri::XML::ParseOptions # source://nokogiri//lib/nokogiri/xml/parse_options.rb#198 def ==(other); end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def big_lines; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def big_lines?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def compact; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def compact?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def default_html; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def default_html?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def default_schema; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def default_schema?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def default_xml; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def default_xml?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def default_xslt; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def default_xslt?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def dtdattr; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def dtdattr?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def dtdload; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def dtdload?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def dtdvalid; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def dtdvalid?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def huge; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def huge?; end # source://nokogiri//lib/nokogiri/xml/parse_options.rb#204 def inspect; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nobasefix; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nobasefix?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nobig_lines; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def noblanks; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def noblanks?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nocdata; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nocdata?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nocompact; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nodefault_html; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nodefault_schema; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nodefault_xml; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nodefault_xslt; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nodict; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nodict?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nodtdattr; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nodtdload; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nodtdvalid; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def noent; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def noent?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def noerror; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def noerror?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nohuge; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nonet; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nonet?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nonobasefix; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nonoblanks; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nonocdata; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nonodict; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nonoent; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nonoerror; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nononet; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nonowarning; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nonoxincnode; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nonsclean; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def noold10; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nopedantic; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def norecover; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nosax1; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nowarning; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nowarning?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#178 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def noxinclude; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def noxincnode; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def noxincnode?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nsclean; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def nsclean?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def old10; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def old10?; end # Returns the value of attribute options. @@ -6376,22 +6627,22 @@ class Nokogiri::XML::ParseOptions # source://nokogiri//lib/nokogiri/xml/parse_options.rb#163 def options=(_arg0); end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def pedantic; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def pedantic?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def recover; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def recover?; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def sax1; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def sax1?; end # source://nokogiri//lib/nokogiri/xml/parse_options.rb#189 @@ -6404,13 +6655,13 @@ class Nokogiri::XML::ParseOptions # Returns the value of attribute options. # - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#163 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#202 def to_i; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#173 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def xinclude; end - # source://nokogiri//lib/nokogiri/xml/parse_options.rb#183 + # source://nokogiri//lib/nokogiri/xml/parse_options.rb#172 def xinclude?; end end @@ -6569,6 +6820,7 @@ class Nokogiri::XML::ProcessingInstruction < ::Nokogiri::XML::Node def initialize(document, name, content); end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def new(*_arg0); end end end @@ -6611,9 +6863,16 @@ class Nokogiri::XML::Reader # source://nokogiri//lib/nokogiri/xml/reader.rb#114 def initialize(source, url = T.unsafe(nil), encoding = T.unsafe(nil)); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def attribute(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def attribute_at(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def attribute_count; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def attribute_hash; end # Get the attributes and namespaces of the current node as a Hash. @@ -6626,9 +6885,16 @@ class Nokogiri::XML::Reader # source://nokogiri//lib/nokogiri/xml/reader.rb#126 def attributes; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def attributes?; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def base_uri; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def default?; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def depth; end # Move the cursor through the document yielding the cursor to the block @@ -6636,7 +6902,10 @@ class Nokogiri::XML::Reader # source://nokogiri//lib/nokogiri/xml/reader.rb#132 def each; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def empty_element?; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def encoding; end # A list of errors encountered while parsing @@ -6649,16 +6918,37 @@ class Nokogiri::XML::Reader # source://nokogiri//lib/nokogiri/xml/reader.rb#74 def errors=(_arg0); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def inner_xml; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def lang; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def local_name; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def name; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def namespace_uri; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def namespaces; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def node_type; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def outer_xml; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def prefix; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def read; end + + # source://nokogiri//lib/nokogiri/xml/reader.rb#79 def self_closing?; end # The \XML source @@ -6666,13 +6956,23 @@ class Nokogiri::XML::Reader # source://nokogiri//lib/nokogiri/xml/reader.rb#77 def source; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def state; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def value; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def value?; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def xml_version; end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def from_io(*_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def from_memory(*_arg0); end # :call-seq: @@ -6817,9 +7117,11 @@ Nokogiri::XML::Reader::TYPE_XML_DECLARATION = T.let(T.unsafe(nil), Integer) class Nokogiri::XML::RelaxNG < ::Nokogiri::XML::Schema private + # source://nokogiri//lib/nokogiri/extension.rb#7 def validate_document(_arg0); end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def from_document(*_arg0); end # :call-seq: @@ -6939,13 +7241,7 @@ module Nokogiri::XML::SAX; end # 💡 For more information on entity types, see [Wikipedia's page on # DTDs](https://en.wikipedia.org/wiki/Document_type_definition#Entity_declarations). # -# | Entity type | #characters | #reference | # |--------------------------------------|------------------------------------|-------------------------------------| -# | Char ref (e.g., ) | always | never | -# | Predefined (e.g., &) | always | never | -# | Undeclared † | never | #replace_entities == false | -# | Internal | always | #replace_entities == false | -# | External † | #replace_entities == true | #replace_entities == false | # #   # @@ -7288,6 +7584,7 @@ class Nokogiri::XML::SAX::Parser private + # source://nokogiri//lib/nokogiri/extension.rb#7 def initialize_native; end end @@ -7311,12 +7608,25 @@ Nokogiri::XML::SAX::Parser::REVERSE_ENCODINGS = T.let(T.unsafe(nil), Hash) # # source://nokogiri//lib/nokogiri/xml/sax/parser_context.rb#11 class Nokogiri::XML::SAX::ParserContext + # source://nokogiri//lib/nokogiri/extension.rb#7 def column; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def line; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def parse_with(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def recovery; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def recovery=(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def replace_entities; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def replace_entities=(_arg0); end class << self @@ -7377,8 +7687,13 @@ class Nokogiri::XML::SAX::ParserContext # source://nokogiri//lib/nokogiri/xml/sax/parser_context.rb#77 def memory(input, encoding = T.unsafe(nil)); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def native_file(_arg0, _arg1); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def native_io(_arg0, _arg1); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def native_memory(_arg0, _arg1); end # :call-seq: @@ -7442,7 +7757,7 @@ class Nokogiri::XML::SAX::PushParser # Write a +chunk+ of XML to the PushParser. Any callback methods # that can be called will be called immediately. # - # source://nokogiri//lib/nokogiri/xml/sax/push_parser.rb#47 + # source://nokogiri//lib/nokogiri/xml/sax/push_parser.rb#50 def <<(chunk, last_chunk = T.unsafe(nil)); end # The Nokogiri::XML::SAX::Document on which the PushParser will be @@ -7466,9 +7781,16 @@ class Nokogiri::XML::SAX::PushParser # source://nokogiri//lib/nokogiri/xml/sax/push_parser.rb#58 def finish; end + # source://nokogiri//lib/nokogiri/extension.rb#7 def options; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def options=(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def replace_entities; end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def replace_entities=(_arg0); end # Write a +chunk+ of XML to the PushParser. Any callback methods @@ -7479,7 +7801,10 @@ class Nokogiri::XML::SAX::PushParser private + # source://nokogiri//lib/nokogiri/extension.rb#7 def initialize_native(_arg0, _arg1); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def native_write(_arg0, _arg1); end end @@ -7592,10 +7917,14 @@ class Nokogiri::XML::Schema private + # source://nokogiri//lib/nokogiri/extension.rb#7 def validate_document(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def validate_file(_arg0); end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def from_document(*_arg0); end # :call-seq: @@ -7641,7 +7970,7 @@ module Nokogiri::XML::Searchable # # See Searchable#search for more information. # - # source://nokogiri//lib/nokogiri/xml/searchable.rb#74 + # source://nokogiri//lib/nokogiri/xml/searchable.rb#78 def %(*args); end # call-seq: @@ -7678,7 +8007,7 @@ module Nokogiri::XML::Searchable # # See Searchable#xpath and Searchable#css for further usage help. # - # source://nokogiri//lib/nokogiri/xml/searchable.rb#54 + # source://nokogiri//lib/nokogiri/xml/searchable.rb#64 def /(*args); end # :call-seq: @@ -7994,6 +8323,7 @@ class Nokogiri::XML::Text < ::Nokogiri::XML::CharacterData def content=(string); end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def new(*_arg0); end end end @@ -8044,7 +8374,10 @@ end # source://nokogiri//lib/nokogiri/xml/xpath_context.rb#5 class Nokogiri::XML::XPathContext + # source://nokogiri//lib/nokogiri/extension.rb#7 def evaluate(*_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def node=(_arg0); end # Register namespaces in +namespaces+ @@ -8052,13 +8385,17 @@ class Nokogiri::XML::XPathContext # source://nokogiri//lib/nokogiri/xml/xpath_context.rb#8 def register_namespaces(namespaces); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def register_ns(_arg0, _arg1); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def register_variable(_arg0, _arg1); end # source://nokogiri//lib/nokogiri/xml/xpath_context.rb#16 def register_variables(binds); end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def new(_arg0); end end end @@ -8139,6 +8476,7 @@ module Nokogiri::XSLT # source://nokogiri//lib/nokogiri/xslt.rb#94 def quote_params(params); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def register(_arg0, _arg1); end end end @@ -8187,10 +8525,14 @@ class Nokogiri::XSLT::Stylesheet # source://nokogiri//lib/nokogiri/xslt/stylesheet.rb#44 def apply_to(document, params = T.unsafe(nil)); end + # source://nokogiri//lib/nokogiri/extension.rb#7 def serialize(_arg0); end + + # source://nokogiri//lib/nokogiri/extension.rb#7 def transform(*_arg0); end class << self + # source://nokogiri//lib/nokogiri/extension.rb#7 def parse_stylesheet_doc(_arg0); end end end diff --git a/sorbet/rbi/gems/openssl-signature_algorithm@1.3.0.rbi b/sorbet/rbi/gems/openssl-signature_algorithm@1.3.0.rbi index bbe8bff5..88a28118 100644 --- a/sorbet/rbi/gems/openssl-signature_algorithm@1.3.0.rbi +++ b/sorbet/rbi/gems/openssl-signature_algorithm@1.3.0.rbi @@ -9,17 +9,7 @@ class OpenSSL::Config include ::Enumerable end -class OpenSSL::Provider - def inspect; end - def name; end - def unload; end - - class << self - def load(_arg0); end - def provider_names; end - end -end - +class OpenSSL::Provider; end class OpenSSL::Provider::ProviderError < ::OpenSSL::OpenSSLError; end # source://openssl-signature_algorithm//lib/openssl/signature_algorithm/error.rb#4 @@ -180,6 +170,7 @@ class OpenSSL::SignatureAlgorithm::RSA::VerifyKey def serialize; end class << self + # source://openssl-signature_algorithm//lib/openssl/signature_algorithm/rsa.rb#22 def deserialize(*_arg0); end end end @@ -212,67 +203,8 @@ OpenSSL::SignatureAlgorithm::VERSION = T.let(T.unsafe(nil), String) class OpenSSL::SignatureAlgorithm::VerifyKeyError < ::OpenSSL::SignatureAlgorithm::Error; end module OpenSSL::Timestamp; end - -class OpenSSL::Timestamp::Factory - def additional_certs; end - def additional_certs=(_arg0); end - def allowed_digests; end - def allowed_digests=(_arg0); end - def create_timestamp(_arg0, _arg1, _arg2); end - def default_policy_id; end - def default_policy_id=(_arg0); end - def gen_time; end - def gen_time=(_arg0); end - def serial_number; end - def serial_number=(_arg0); end -end - -class OpenSSL::Timestamp::Request - def initialize(*_arg0); end - - def algorithm; end - def algorithm=(_arg0); end - def cert_requested=(_arg0); end - def cert_requested?; end - def message_imprint; end - def message_imprint=(_arg0); end - def nonce; end - def nonce=(_arg0); end - def policy_id; end - def policy_id=(_arg0); end - def to_der; end - def to_text; end - def version; end - def version=(_arg0); end -end - -class OpenSSL::Timestamp::Response - def initialize(_arg0); end - - def failure_info; end - def status; end - def status_text; end - def to_der; end - def to_text; end - def token; end - def token_info; end - def tsa_certificate; end - def verify(*_arg0); end -end - +class OpenSSL::Timestamp::Factory; end +class OpenSSL::Timestamp::Request; end +class OpenSSL::Timestamp::Response; end class OpenSSL::Timestamp::TimestampError < ::OpenSSL::OpenSSLError; end - -class OpenSSL::Timestamp::TokenInfo - def initialize(_arg0); end - - def algorithm; end - def gen_time; end - def message_imprint; end - def nonce; end - def ordering; end - def policy_id; end - def serial_number; end - def to_der; end - def to_text; end - def version; end -end +class OpenSSL::Timestamp::TokenInfo; end diff --git a/sorbet/rbi/gems/openssl@3.3.0.rbi b/sorbet/rbi/gems/openssl@3.3.0.rbi index 8b27ae66..d410e2cd 100644 --- a/sorbet/rbi/gems/openssl@3.3.0.rbi +++ b/sorbet/rbi/gems/openssl@3.3.0.rbi @@ -38,6 +38,21 @@ module OpenSSL # source://openssl//lib/openssl/digest.rb#63 def Digest(name); end + # source://openssl//lib/openssl.rb#13 + def debug; end + + # source://openssl//lib/openssl.rb#13 + def debug=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def errors; end + + # source://openssl//lib/openssl.rb#13 + def fips_mode; end + + # source://openssl//lib/openssl.rb#13 + def fips_mode=(_arg0); end + class << self # Returns a Digest subclass by _name_ # @@ -49,9 +64,27 @@ module OpenSSL # Digest("Foo") # # => NameError: wrong constant name Foo # - # source://openssl//lib/openssl/digest.rb#63 + # source://openssl//lib/openssl/digest.rb#67 def Digest(name); end + # source://openssl//lib/openssl.rb#13 + def debug; end + + # source://openssl//lib/openssl.rb#13 + def debug=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def errors; end + + # source://openssl//lib/openssl.rb#13 + def fips_mode; end + + # source://openssl//lib/openssl.rb#13 + def fips_mode=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def fixed_length_secure_compare(_arg0, _arg1); end + # call-seq: # OpenSSL.secure_compare(string, string) -> boolean # @@ -66,9 +99,167 @@ end # source://openssl//lib/openssl/asn1.rb#12 module OpenSSL::ASN1 + private + + # source://openssl//lib/openssl.rb#13 + def BMPString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def BitString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def Boolean(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def EndOfContent(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def Enumerated(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def GeneralString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def GeneralizedTime(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def GraphicString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def IA5String(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ISO64String(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def Integer(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def Null(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def NumericString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ObjectId(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def OctetString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def PrintableString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def Sequence(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def Set(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def T61String(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def UTCTime(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def UTF8String(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def UniversalString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def VideotexString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def decode(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def decode_all(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def traverse(_arg0); end + class << self + # source://openssl//lib/openssl.rb#13 + def BMPString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def BitString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def Boolean(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def EndOfContent(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def Enumerated(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def GeneralString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def GeneralizedTime(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def GraphicString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def IA5String(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ISO64String(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def Integer(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def Null(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def NumericString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ObjectId(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def OctetString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def PrintableString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def Sequence(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def Set(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def T61String(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def UTCTime(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def UTF8String(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def UniversalString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def VideotexString(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def decode(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def decode_all(_arg0); end + # source://openssl//lib/openssl/asn1.rb#176 def take_default_tag(klass); end + + # source://openssl//lib/openssl.rb#13 + def traverse(_arg0); end end end @@ -149,7 +340,7 @@ class OpenSSL::ASN1::ASN1Data # encoding, but also primitive types such as e.g. OCTET STRINGS or # BIT STRINGS may leverage this functionality (cf. ITU-T X.690). # - # source://openssl//lib/openssl/asn1.rb#45 + # source://openssl//lib/openssl/asn1.rb#47 def infinite_length; end # Never +nil+. A boolean value indicating whether the encoding uses @@ -168,7 +359,7 @@ class OpenSSL::ASN1::ASN1Data # encoding, but also primitive types such as e.g. OCTET STRINGS or # BIT STRINGS may leverage this functionality (cf. ITU-T X.690). # - # source://openssl//lib/openssl/asn1.rb#45 + # source://openssl//lib/openssl/asn1.rb#48 def infinite_length=(_arg0); end # An Integer representing the tag number of this ASN1Data. Never +nil+. @@ -193,6 +384,9 @@ class OpenSSL::ASN1::ASN1Data # source://openssl//lib/openssl/asn1.rb#26 def tag_class=(_arg0); end + # source://openssl//lib/openssl.rb#13 + def to_der; end + # Carries the value of a ASN.1 type. # Please confer Constructive and Primitive for the mappings between # ASN.1 data types and Ruby classes. @@ -249,6 +443,9 @@ class OpenSSL::ASN1::Constructive < ::OpenSSL::ASN1::ASN1Data # # source://openssl//lib/openssl/asn1.rb#148 def each(&blk); end + + # source://openssl//lib/openssl.rb#13 + def to_der; end end # source://openssl//lib/openssl/asn1.rb#169 @@ -257,11 +454,42 @@ class OpenSSL::ASN1::EndOfContent < ::OpenSSL::ASN1::ASN1Data # # source://openssl//lib/openssl/asn1.rb#170 def initialize; end + + # source://openssl//lib/openssl.rb#13 + def to_der; end +end + +class OpenSSL::ASN1::ObjectId < ::OpenSSL::ASN1::Primitive + # source://openssl//lib/openssl.rb#13 + def ==(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ln; end + + # source://openssl//lib/openssl.rb#13 + def long_name; end + + # source://openssl//lib/openssl.rb#13 + def oid; end + + # source://openssl//lib/openssl.rb#13 + def short_name; end + + # source://openssl//lib/openssl.rb#13 + def sn; end + + class << self + # source://openssl//lib/openssl.rb#13 + def register(_arg0, _arg1, _arg2); end + end end # source://openssl//lib/openssl/asn1.rb#125 class OpenSSL::ASN1::Primitive < ::OpenSSL::ASN1::ASN1Data include ::OpenSSL::ASN1::TaggedASN1Data + + # source://openssl//lib/openssl.rb#13 + def to_der; end end # source://openssl//lib/openssl/asn1.rb#76 @@ -314,8 +542,180 @@ end class OpenSSL::BN include ::Comparable + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def %(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def *(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def **(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def +(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def +@; end + + # source://openssl//lib/openssl.rb#13 + def -(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def -@; end + + # source://openssl//lib/openssl.rb#13 + def /(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def <<(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def <=>(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ==(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ===(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def >>(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def abs; end + + # source://openssl//lib/openssl.rb#13 + def bit_set?(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def clear_bit!(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def cmp(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def coerce(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def copy(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def eql?(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def gcd(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def get_flags(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def hash; end + + # source://openssl//lib/openssl.rb#13 + def lshift!(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def mask_bits!(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def mod_add(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def mod_exp(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def mod_inverse(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def mod_mul(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def mod_sqr(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def mod_sqrt(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def mod_sub(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def negative?; end + + # source://openssl//lib/openssl.rb#13 + def num_bits; end + + # source://openssl//lib/openssl.rb#13 + def num_bytes; end + + # source://openssl//lib/openssl.rb#13 + def odd?; end + + # source://openssl//lib/openssl.rb#13 + def one?; end + # source://openssl//lib/openssl/bn.rb#20 def pretty_print(q); end + + # source://openssl//lib/openssl.rb#13 + def prime?(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def prime_fasttest?(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def rshift!(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def set_bit!(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def set_flags(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def sqr; end + + # source://openssl//lib/openssl.rb#13 + def to_bn; end + + # source://openssl//lib/openssl.rb#13 + def to_i; end + + # source://openssl//lib/openssl.rb#13 + def to_int; end + + # source://openssl//lib/openssl.rb#13 + def to_s(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ucmp(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def zero?; end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end + + class << self + # source://openssl//lib/openssl.rb#13 + def generate_prime(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def pseudo_rand(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def pseudo_rand_range(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def rand(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def rand_range(_arg0); end + end end OpenSSL::BN::CONSTTIME = T.let(T.unsafe(nil), Integer) @@ -366,7 +766,7 @@ module OpenSSL::Buffering # # See also #gets # - # source://openssl//lib/openssl/buffering.rb#266 + # source://openssl//lib/openssl/buffering.rb#271 def each_line(eol = T.unsafe(nil)); end # Returns true if the stream is at file which means there is no more data to @@ -374,7 +774,7 @@ module OpenSSL::Buffering # # @return [Boolean] # - # source://openssl//lib/openssl/buffering.rb#338 + # source://openssl//lib/openssl/buffering.rb#342 def eof; end # Returns true if the stream is at file which means there is no more data to @@ -622,7 +1022,7 @@ class OpenSSL::Buffering::Buffer < ::String # source://openssl//lib/openssl/buffering.rb#35 def <<(string); end - # source://openssl//lib/openssl/buffering.rb#35 + # source://openssl//lib/openssl/buffering.rb#45 def concat(string); end end @@ -631,6 +1031,66 @@ OpenSSL::Buffering::Buffer::BINARY = T.let(T.unsafe(nil), Encoding) # source://openssl//lib/openssl/cipher.rb#16 class OpenSSL::Cipher + # source://openssl//lib/openssl.rb#13 + def initialize(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def auth_data=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def auth_tag(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def auth_tag=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def auth_tag_len=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def authenticated?; end + + # source://openssl//lib/openssl.rb#13 + def block_size; end + + # source://openssl//lib/openssl.rb#13 + def ccm_data_len=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def decrypt(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def encrypt(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def final; end + + # source://openssl//lib/openssl.rb#13 + def iv=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def iv_len; end + + # source://openssl//lib/openssl.rb#13 + def iv_len=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def key=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def key_len; end + + # source://openssl//lib/openssl.rb#13 + def key_len=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def name; end + + # source://openssl//lib/openssl.rb#13 + def padding=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def pkcs5_keyivgen(*_arg0); end + # call-seq: # cipher.random_iv -> iv # @@ -652,6 +1112,25 @@ class OpenSSL::Cipher # # source://openssl//lib/openssl/cipher.rb#43 def random_key; end + + # source://openssl//lib/openssl.rb#13 + def reset; end + + # source://openssl//lib/openssl.rb#13 + def update(*_arg0); end + + private + + # source://openssl//lib/openssl.rb#13 + def ciphers; end + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end + + class << self + # source://openssl//lib/openssl.rb#13 + def ciphers; end + end end # source://openssl//lib/openssl/cipher.rb#18 @@ -730,10 +1209,79 @@ end class OpenSSL::Config include ::Enumerable + + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def [](_arg0); end + + # source://openssl//lib/openssl.rb#13 + def each; end + + # source://openssl//lib/openssl.rb#13 + def get_value(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def inspect; end + + # source://openssl//lib/openssl.rb#13 + def sections; end + + # source://openssl//lib/openssl.rb#13 + def to_s; end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end + + class << self + # source://openssl//lib/openssl.rb#13 + def load(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def parse(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def parse_config(_arg0); end + end end # source://openssl//lib/openssl/digest.rb#16 class OpenSSL::Digest < ::Digest::Class + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def <<(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def block_length; end + + # source://openssl//lib/openssl.rb#13 + def digest_length; end + + # source://openssl//lib/openssl.rb#13 + def name; end + + # source://openssl//lib/openssl.rb#13 + def reset; end + + # source://openssl//lib/openssl.rb#13 + def update(_arg0); end + + private + + # source://openssl//lib/openssl.rb#13 + def digests; end + + # source://openssl//lib/openssl.rb#13 + def finish; end + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end + class << self # Return the hash value computed with _name_ Digest. _name_ is either the # long name or short name of a supported digest algorithm. @@ -744,6 +1292,9 @@ class OpenSSL::Digest < ::Digest::Class # # source://openssl//lib/openssl/digest.rb#25 def digest(name, data); end + + # source://openssl//lib/openssl.rb#13 + def digests; end end end @@ -869,6 +1420,12 @@ end # source://openssl//lib/openssl/hmac.rb#4 class OpenSSL::HMAC + # source://openssl//lib/openssl.rb#13 + def initialize(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def <<(_arg0); end + # Securely compare with another HMAC instance in constant time. # # source://openssl//lib/openssl/hmac.rb#6 @@ -882,6 +1439,29 @@ class OpenSSL::HMAC # source://openssl//lib/openssl/hmac.rb#17 def base64digest; end + # source://openssl//lib/openssl.rb#13 + def digest; end + + # source://openssl//lib/openssl.rb#13 + def hexdigest; end + + # source://openssl//lib/openssl.rb#13 + def inspect; end + + # source://openssl//lib/openssl.rb#13 + def reset; end + + # source://openssl//lib/openssl.rb#13 + def to_s; end + + # source://openssl//lib/openssl.rb#13 + def update(_arg0); end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end + class << self # :call-seq: # HMAC.base64digest(digest, key, data) -> aString @@ -936,6 +1516,30 @@ class OpenSSL::HMAC end end +module OpenSSL::KDF + private + + # source://openssl//lib/openssl.rb#13 + def hkdf(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def pbkdf2_hmac(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def scrypt(*_arg0); end + + class << self + # source://openssl//lib/openssl.rb#13 + def hkdf(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def pbkdf2_hmac(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def scrypt(*_arg0); end + end +end + # source://openssl//lib/openssl/marshal.rb#15 module OpenSSL::Marshal mixes_in_class_methods ::OpenSSL::Marshal::ClassMethods @@ -957,26 +1561,257 @@ module OpenSSL::Marshal::ClassMethods def _load(string); end end -OpenSSL::PKCS12::KEY_EX = T.let(T.unsafe(nil), Integer) -OpenSSL::PKCS12::KEY_SIG = T.let(T.unsafe(nil), Integer) +class OpenSSL::Netscape::SPKI + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end -# source://openssl//lib/openssl/pkcs5.rb#8 -module OpenSSL::PKCS5 - private + # source://openssl//lib/openssl.rb#13 + def challenge; end - # OpenSSL::PKCS5.pbkdf2_hmac has been renamed to OpenSSL::KDF.pbkdf2_hmac. - # This method is provided for backwards compatibility. - # - # source://openssl//lib/openssl/pkcs5.rb#13 - def pbkdf2_hmac(pass, salt, iter, keylen, digest); end + # source://openssl//lib/openssl.rb#13 + def challenge=(_arg0); end - # source://openssl//lib/openssl/pkcs5.rb#18 - def pbkdf2_hmac_sha1(pass, salt, iter, keylen); end + # source://openssl//lib/openssl.rb#13 + def public_key; end - class << self - # OpenSSL::PKCS5.pbkdf2_hmac has been renamed to OpenSSL::KDF.pbkdf2_hmac. - # This method is provided for backwards compatibility. - # + # source://openssl//lib/openssl.rb#13 + def public_key=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def sign(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def to_pem; end + + # source://openssl//lib/openssl.rb#13 + def to_s; end + + # source://openssl//lib/openssl.rb#13 + def to_text; end + + # source://openssl//lib/openssl.rb#13 + def verify(_arg0); end +end + +class OpenSSL::OCSP::BasicResponse + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_nonce(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_status(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6); end + + # source://openssl//lib/openssl.rb#13 + def copy_nonce(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def find_response(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def responses; end + + # source://openssl//lib/openssl.rb#13 + def sign(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def status; end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def verify(*_arg0); end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end +end + +class OpenSSL::OCSP::CertificateId + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def cmp(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def cmp_issuer(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def hash_algorithm; end + + # source://openssl//lib/openssl.rb#13 + def issuer_key_hash; end + + # source://openssl//lib/openssl.rb#13 + def issuer_name_hash; end + + # source://openssl//lib/openssl.rb#13 + def serial; end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end +end + +class OpenSSL::OCSP::Request + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_certid(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_nonce(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def certid; end + + # source://openssl//lib/openssl.rb#13 + def check_nonce(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def sign(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def signed?; end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def verify(*_arg0); end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end +end + +class OpenSSL::OCSP::Response + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def basic; end + + # source://openssl//lib/openssl.rb#13 + def status; end + + # source://openssl//lib/openssl.rb#13 + def status_string; end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end + + class << self + # source://openssl//lib/openssl.rb#13 + def create(_arg0, _arg1); end + end +end + +class OpenSSL::OCSP::SingleResponse + # source://openssl//lib/openssl.rb#13 + def initialize(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def cert_status; end + + # source://openssl//lib/openssl.rb#13 + def certid; end + + # source://openssl//lib/openssl.rb#13 + def check_validity(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def extensions; end + + # source://openssl//lib/openssl.rb#13 + def next_update; end + + # source://openssl//lib/openssl.rb#13 + def revocation_reason; end + + # source://openssl//lib/openssl.rb#13 + def revocation_time; end + + # source://openssl//lib/openssl.rb#13 + def this_update; end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end +end + +class OpenSSL::PKCS12 + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ca_certs; end + + # source://openssl//lib/openssl.rb#13 + def certificate; end + + # source://openssl//lib/openssl.rb#13 + def key; end + + # source://openssl//lib/openssl.rb#13 + def set_mac(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end + + class << self + # source://openssl//lib/openssl.rb#13 + def create(*_arg0); end + end +end + +OpenSSL::PKCS12::KEY_EX = T.let(T.unsafe(nil), Integer) +OpenSSL::PKCS12::KEY_SIG = T.let(T.unsafe(nil), Integer) + +# source://openssl//lib/openssl/pkcs5.rb#8 +module OpenSSL::PKCS5 + private + + # OpenSSL::PKCS5.pbkdf2_hmac has been renamed to OpenSSL::KDF.pbkdf2_hmac. + # This method is provided for backwards compatibility. + # + # source://openssl//lib/openssl/pkcs5.rb#13 + def pbkdf2_hmac(pass, salt, iter, keylen, digest); end + + # source://openssl//lib/openssl/pkcs5.rb#18 + def pbkdf2_hmac_sha1(pass, salt, iter, keylen); end + + class << self + # OpenSSL::PKCS5.pbkdf2_hmac has been renamed to OpenSSL::KDF.pbkdf2_hmac. + # This method is provided for backwards compatibility. + # # source://openssl//lib/openssl/pkcs5.rb#13 def pbkdf2_hmac(pass, salt, iter, keylen, digest); end @@ -985,13 +1820,186 @@ module OpenSSL::PKCS5 end end +class OpenSSL::PKCS7 + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_certificate(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_crl(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_data(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_recipient(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_signer(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def certificates; end + + # source://openssl//lib/openssl.rb#13 + def certificates=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def cipher=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def crls; end + + # source://openssl//lib/openssl.rb#13 + def crls=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def data; end + + # source://openssl//lib/openssl.rb#13 + def data=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def decrypt(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def detached; end + + # source://openssl//lib/openssl.rb#13 + def detached=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def detached?; end + + # source://openssl//lib/openssl.rb#13 + def error_string; end + + # source://openssl//lib/openssl.rb#13 + def error_string=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def recipients; end + + # source://openssl//lib/openssl.rb#13 + def signers; end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def to_pem; end + + # source://openssl//lib/openssl.rb#13 + def to_s; end + + # source://openssl//lib/openssl.rb#13 + def to_text; end + + # source://openssl//lib/openssl.rb#13 + def type; end + + # source://openssl//lib/openssl.rb#13 + def type=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def verify(*_arg0); end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end + + class << self + # source://openssl//lib/openssl.rb#13 + def encrypt(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def read_smime(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def sign(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def write_smime(*_arg0); end + end +end + +class OpenSSL::PKCS7::RecipientInfo + # source://openssl//lib/openssl.rb#13 + def initialize(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def enc_key; end + + # source://openssl//lib/openssl.rb#13 + def issuer; end + + # source://openssl//lib/openssl.rb#13 + def serial; end +end + OpenSSL::PKCS7::Signer = OpenSSL::PKCS7::SignerInfo +class OpenSSL::PKCS7::SignerInfo + # source://openssl//lib/openssl.rb#13 + def initialize(_arg0, _arg1, _arg2); end + + # source://openssl//lib/openssl.rb#13 + def issuer; end + + # source://openssl//lib/openssl.rb#13 + def serial; end + + # source://openssl//lib/openssl.rb#13 + def signed_time; end +end + +# source://openssl//lib/openssl/pkey.rb#9 +module OpenSSL::PKey + private + + # source://openssl//lib/openssl.rb#13 + def generate_key(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def generate_parameters(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def new_raw_private_key(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def new_raw_public_key(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def read(*_arg0); end + + class << self + # source://openssl//lib/openssl.rb#13 + def generate_key(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def generate_parameters(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def new_raw_private_key(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def new_raw_public_key(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def read(*_arg0); end + end +end + # source://openssl//lib/openssl/pkey.rb#10 class OpenSSL::PKey::DH < ::OpenSSL::PKey::PKey include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + # :call-seq: # dh.compute_key(pub_bn) -> string # @@ -1008,6 +2016,12 @@ class OpenSSL::PKey::DH < ::OpenSSL::PKey::PKey # source://openssl//lib/openssl/pkey.rb#49 def compute_key(pub_bn); end + # source://openssl//lib/openssl.rb#13 + def export; end + + # source://openssl//lib/openssl.rb#13 + def g; end + # :call-seq: # dh.generate_key! -> self # @@ -1038,6 +2052,27 @@ class OpenSSL::PKey::DH < ::OpenSSL::PKey::PKey # source://openssl//lib/openssl/pkey.rb#91 def generate_key!; end + # source://openssl//lib/openssl.rb#13 + def p; end + + # source://openssl//lib/openssl.rb#13 + def params; end + + # source://openssl//lib/openssl.rb#13 + def params_ok?; end + + # source://openssl//lib/openssl.rb#13 + def priv_key; end + + # source://openssl//lib/openssl.rb#13 + def private?; end + + # source://openssl//lib/openssl.rb#13 + def pub_key; end + + # source://openssl//lib/openssl.rb#13 + def public?; end + # :call-seq: # dh.public_key -> dhnew # @@ -1062,6 +2097,24 @@ class OpenSSL::PKey::DH < ::OpenSSL::PKey::PKey # source://openssl//lib/openssl/pkey.rb#33 def public_key; end + # source://openssl//lib/openssl.rb#13 + def q; end + + # source://openssl//lib/openssl.rb#13 + def set_key(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def set_pqg(_arg0, _arg1, _arg2); end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def to_pem; end + + # source://openssl//lib/openssl.rb#13 + def to_s; end + class << self # :call-seq: # DH.generate(size, generator = 2) -> dh @@ -1093,6 +2146,33 @@ class OpenSSL::PKey::DSA < ::OpenSSL::PKey::PKey include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def export(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def g; end + + # source://openssl//lib/openssl.rb#13 + def p; end + + # source://openssl//lib/openssl.rb#13 + def params; end + + # source://openssl//lib/openssl.rb#13 + def priv_key; end + + # source://openssl//lib/openssl.rb#13 + def private?; end + + # source://openssl//lib/openssl.rb#13 + def pub_key; end + + # source://openssl//lib/openssl.rb#13 + def public?; end + # :call-seq: # dsa.public_key -> dsanew # @@ -1109,6 +2189,15 @@ class OpenSSL::PKey::DSA < ::OpenSSL::PKey::PKey # source://openssl//lib/openssl/pkey.rb#153 def public_key; end + # source://openssl//lib/openssl.rb#13 + def q; end + + # source://openssl//lib/openssl.rb#13 + def set_key(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def set_pqg(_arg0, _arg1, _arg2); end + # :call-seq: # dsa.syssign(string) -> string # @@ -1155,6 +2244,15 @@ class OpenSSL::PKey::DSA < ::OpenSSL::PKey::PKey # source://openssl//lib/openssl/pkey.rb#243 def sysverify(digest, sig); end + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def to_pem(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def to_s(*_arg0); end + class << self # :call-seq: # DSA.generate(size) -> dsa @@ -1184,6 +2282,12 @@ class OpenSSL::PKey::EC < ::OpenSSL::PKey::PKey include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def check_key; end + # :call-seq: # ec.dh_compute_key(pubkey) -> string # @@ -1213,12 +2317,159 @@ class OpenSSL::PKey::EC < ::OpenSSL::PKey::PKey # # source://openssl//lib/openssl/pkey.rb#270 def dsa_verify_asn1(data, sig); end + + # source://openssl//lib/openssl.rb#13 + def export(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def generate_key; end + + # source://openssl//lib/openssl.rb#13 + def generate_key!; end + + # source://openssl//lib/openssl.rb#13 + def group; end + + # source://openssl//lib/openssl.rb#13 + def group=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def private?; end + + # source://openssl//lib/openssl.rb#13 + def private_key; end + + # source://openssl//lib/openssl.rb#13 + def private_key=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def private_key?; end + + # source://openssl//lib/openssl.rb#13 + def public?; end + + # source://openssl//lib/openssl.rb#13 + def public_key; end + + # source://openssl//lib/openssl.rb#13 + def public_key=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def public_key?; end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def to_pem(*_arg0); end + + class << self + # source://openssl//lib/openssl.rb#13 + def builtin_curves; end + + # source://openssl//lib/openssl.rb#13 + def generate(_arg0); end + end end OpenSSL::PKey::EC::EXPLICIT_CURVE = T.let(T.unsafe(nil), Integer) +class OpenSSL::PKey::EC::Group + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ==(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def asn1_flag; end + + # source://openssl//lib/openssl.rb#13 + def asn1_flag=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def cofactor; end + + # source://openssl//lib/openssl.rb#13 + def curve_name; end + + # source://openssl//lib/openssl.rb#13 + def degree; end + + # source://openssl//lib/openssl.rb#13 + def eql?(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def generator; end + + # source://openssl//lib/openssl.rb#13 + def order; end + + # source://openssl//lib/openssl.rb#13 + def point_conversion_form; end + + # source://openssl//lib/openssl.rb#13 + def point_conversion_form=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def seed; end + + # source://openssl//lib/openssl.rb#13 + def seed=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def set_generator(_arg0, _arg1, _arg2); end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def to_pem; end + + # source://openssl//lib/openssl.rb#13 + def to_text; end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end +end + # source://openssl//lib/openssl/pkey.rb#296 class OpenSSL::PKey::EC::Point + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ==(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def eql?(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def group; end + + # source://openssl//lib/openssl.rb#13 + def infinity?; end + + # source://openssl//lib/openssl.rb#13 + def invert!; end + + # source://openssl//lib/openssl.rb#13 + def make_affine!; end + + # source://openssl//lib/openssl.rb#13 + def mul(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def on_curve?; end + + # source://openssl//lib/openssl.rb#13 + def set_to_infinity!; end + # :call-seq: # point.to_bn([conversion_form]) -> OpenSSL::BN # @@ -1232,6 +2483,78 @@ class OpenSSL::PKey::EC::Point # # source://openssl//lib/openssl/pkey.rb#307 def to_bn(conversion_form = T.unsafe(nil)); end + + # source://openssl//lib/openssl.rb#13 + def to_octet_string(_arg0); end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end +end + +class OpenSSL::PKey::PKey + # source://openssl//lib/openssl.rb#13 + def initialize; end + + # source://openssl//lib/openssl.rb#13 + def compare?(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def decrypt(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def derive(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def encrypt(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def inspect; end + + # source://openssl//lib/openssl.rb#13 + def oid; end + + # source://openssl//lib/openssl.rb#13 + def private_to_der(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def private_to_pem(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def public_to_der; end + + # source://openssl//lib/openssl.rb#13 + def public_to_pem; end + + # source://openssl//lib/openssl.rb#13 + def raw_private_key; end + + # source://openssl//lib/openssl.rb#13 + def raw_public_key; end + + # source://openssl//lib/openssl.rb#13 + def sign(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def sign_raw(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def to_text; end + + # source://openssl//lib/openssl.rb#13 + def verify(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def verify_raw(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def verify_recover(*_arg0); end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end end # source://openssl//lib/openssl/pkey.rb#313 @@ -1239,6 +2562,39 @@ class OpenSSL::PKey::RSA < ::OpenSSL::PKey::PKey include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def d; end + + # source://openssl//lib/openssl.rb#13 + def dmp1; end + + # source://openssl//lib/openssl.rb#13 + def dmq1; end + + # source://openssl//lib/openssl.rb#13 + def e; end + + # source://openssl//lib/openssl.rb#13 + def export(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def iqmp; end + + # source://openssl//lib/openssl.rb#13 + def n; end + + # source://openssl//lib/openssl.rb#13 + def p; end + + # source://openssl//lib/openssl.rb#13 + def params; end + + # source://openssl//lib/openssl.rb#13 + def private?; end + # :call-seq: # rsa.private_decrypt(string) -> String # rsa.private_decrypt(string, padding) -> String @@ -1269,6 +2625,9 @@ class OpenSSL::PKey::RSA < ::OpenSSL::PKey::PKey # source://openssl//lib/openssl/pkey.rb#373 def private_encrypt(string, padding = T.unsafe(nil)); end + # source://openssl//lib/openssl.rb#13 + def public?; end + # :call-seq: # rsa.public_decrypt(string) -> String # rsa.public_decrypt(string, padding) -> String @@ -1314,6 +2673,33 @@ class OpenSSL::PKey::RSA < ::OpenSSL::PKey::PKey # source://openssl//lib/openssl/pkey.rb#327 def public_key; end + # source://openssl//lib/openssl.rb#13 + def q; end + + # source://openssl//lib/openssl.rb#13 + def set_crt_params(_arg0, _arg1, _arg2); end + + # source://openssl//lib/openssl.rb#13 + def set_factors(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def set_key(_arg0, _arg1, _arg2); end + + # source://openssl//lib/openssl.rb#13 + def sign_pss(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def to_pem(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def to_s(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def verify_pss(*_arg0); end + private # source://openssl//lib/openssl/pkey.rb#456 @@ -1344,18 +2730,68 @@ class OpenSSL::PKey::RSA < ::OpenSSL::PKey::PKey end class OpenSSL::Provider + # source://openssl//lib/openssl.rb#13 def inspect; end + + # source://openssl//lib/openssl.rb#13 def name; end + + # source://openssl//lib/openssl.rb#13 def unload; end class << self + # source://openssl//lib/openssl.rb#13 def load(_arg0); end + + # source://openssl//lib/openssl.rb#13 def provider_names; end end end class OpenSSL::Provider::ProviderError < ::OpenSSL::OpenSSLError; end +module OpenSSL::Random + private + + # source://openssl//lib/openssl.rb#13 + def load_random_file(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def random_add(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def random_bytes(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def seed(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def status?; end + + # source://openssl//lib/openssl.rb#13 + def write_random_file(_arg0); end + + class << self + # source://openssl//lib/openssl.rb#13 + def load_random_file(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def random_add(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def random_bytes(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def seed(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def status?; end + + # source://openssl//lib/openssl.rb#13 + def write_random_file(_arg0); end + end +end + # source://openssl//lib/openssl/ssl.rb#22 module OpenSSL::SSL private @@ -1370,13 +2806,13 @@ module OpenSSL::SSL def verify_wildcard(domain_component, san_component); end class << self - # source://openssl//lib/openssl/ssl.rb#313 + # source://openssl//lib/openssl/ssl.rb#344 def verify_certificate_identity(cert, hostname); end - # source://openssl//lib/openssl/ssl.rb#346 + # source://openssl//lib/openssl/ssl.rb#377 def verify_hostname(hostname, san); end - # source://openssl//lib/openssl/ssl.rb#379 + # source://openssl//lib/openssl/ssl.rb#395 def verify_wildcard(domain_component, san_component); end end end @@ -1419,6 +2855,96 @@ class OpenSSL::SSL::SSLContext # source://openssl//lib/openssl/ssl.rb#127 def initialize(version = T.unsafe(nil)); end + # source://openssl//lib/openssl.rb#13 + def add_certificate(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def alpn_protocols; end + + # source://openssl//lib/openssl.rb#13 + def alpn_protocols=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def alpn_select_cb; end + + # source://openssl//lib/openssl.rb#13 + def alpn_select_cb=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ca_file; end + + # source://openssl//lib/openssl.rb#13 + def ca_file=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ca_path; end + + # source://openssl//lib/openssl.rb#13 + def ca_path=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def cert; end + + # source://openssl//lib/openssl.rb#13 + def cert=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def cert_store; end + + # source://openssl//lib/openssl.rb#13 + def cert_store=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ciphers; end + + # source://openssl//lib/openssl.rb#13 + def ciphers=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ciphersuites=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def client_ca; end + + # source://openssl//lib/openssl.rb#13 + def client_ca=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def client_cert_cb; end + + # source://openssl//lib/openssl.rb#13 + def client_cert_cb=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ecdh_curves=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def enable_fallback_scsv; end + + # source://openssl//lib/openssl.rb#13 + def extra_chain_cert; end + + # source://openssl//lib/openssl.rb#13 + def extra_chain_cert=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def flush_sessions(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def freeze; end + + # source://openssl//lib/openssl.rb#13 + def key; end + + # source://openssl//lib/openssl.rb#13 + def key=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def keylog_cb; end + + # source://openssl//lib/openssl.rb#13 + def keylog_cb=(_arg0); end + # call-seq: # ctx.max_version = OpenSSL::SSL::TLS1_2_VERSION # ctx.max_version = :TLS1_2 @@ -1454,6 +2980,36 @@ class OpenSSL::SSL::SSLContext # source://openssl//lib/openssl/ssl.rb#177 def min_version=(version); end + # source://openssl//lib/openssl.rb#13 + def npn_protocols; end + + # source://openssl//lib/openssl.rb#13 + def npn_protocols=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def npn_select_cb; end + + # source://openssl//lib/openssl.rb#13 + def npn_select_cb=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def options; end + + # source://openssl//lib/openssl.rb#13 + def options=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def renegotiation_cb; end + + # source://openssl//lib/openssl.rb#13 + def renegotiation_cb=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def security_level; end + + # source://openssl//lib/openssl.rb#13 + def security_level=(_arg0); end + # A callback invoked at connect time to distinguish between multiple # server names. # @@ -1472,6 +3028,51 @@ class OpenSSL::SSL::SSLContext # source://openssl//lib/openssl/ssl.rb#115 def servername_cb=(_arg0); end + # source://openssl//lib/openssl.rb#13 + def session_add(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def session_cache_mode; end + + # source://openssl//lib/openssl.rb#13 + def session_cache_mode=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def session_cache_size; end + + # source://openssl//lib/openssl.rb#13 + def session_cache_size=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def session_cache_stats; end + + # source://openssl//lib/openssl.rb#13 + def session_get_cb; end + + # source://openssl//lib/openssl.rb#13 + def session_get_cb=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def session_id_context; end + + # source://openssl//lib/openssl.rb#13 + def session_id_context=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def session_new_cb; end + + # source://openssl//lib/openssl.rb#13 + def session_new_cb=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def session_remove(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def session_remove_cb; end + + # source://openssl//lib/openssl.rb#13 + def session_remove_cb=(_arg0); end + # call-seq: # ctx.set_params(params = {}) -> params # @@ -1487,6 +3088,15 @@ class OpenSSL::SSL::SSLContext # source://openssl//lib/openssl/ssl.rb#145 def set_params(params = T.unsafe(nil)); end + # source://openssl//lib/openssl.rb#13 + def setup; end + + # source://openssl//lib/openssl.rb#13 + def ssl_timeout; end + + # source://openssl//lib/openssl.rb#13 + def ssl_timeout=(_arg0); end + # call-seq: # ctx.ssl_version = :TLSv1 # ctx.ssl_version = "SSLv23" @@ -1505,6 +3115,15 @@ class OpenSSL::SSL::SSLContext # source://openssl//lib/openssl/ssl.rb#208 def ssl_version=(meth); end + # source://openssl//lib/openssl.rb#13 + def timeout; end + + # source://openssl//lib/openssl.rb#13 + def timeout=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def tmp_dh=(_arg0); end + # A callback invoked when DH parameters are required for ephemeral DH key # exchange. # @@ -1534,6 +3153,35 @@ class OpenSSL::SSL::SSLContext # # source://openssl//lib/openssl/ssl.rb#108 def tmp_dh_callback=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def verify_callback; end + + # source://openssl//lib/openssl.rb#13 + def verify_callback=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def verify_depth; end + + # source://openssl//lib/openssl.rb#13 + def verify_depth=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def verify_hostname; end + + # source://openssl//lib/openssl.rb#13 + def verify_hostname=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def verify_mode; end + + # source://openssl//lib/openssl.rb#13 + def verify_mode=(_arg0); end + + private + + # source://openssl//lib/openssl.rb#13 + def set_minmax_proto_version(_arg0, _arg1); end end # source://openssl//lib/openssl/ssl.rb#48 @@ -1616,6 +3264,27 @@ class OpenSSL::SSL::SSLSocket include ::OpenSSL::Buffering include ::OpenSSL::SSL::SocketForwarder + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def accept; end + + # source://openssl//lib/openssl.rb#13 + def accept_nonblock(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def alpn_protocol; end + + # source://openssl//lib/openssl.rb#13 + def cert; end + + # source://openssl//lib/openssl.rb#13 + def cipher; end + + # source://openssl//lib/openssl.rb#13 + def client_ca; end + # Close the stream for reading. # This method is ignored by OpenSSL as there is no reasonable way to # implement it, but exists for compatibility with IO. @@ -1641,21 +3310,51 @@ class OpenSSL::SSL::SSLSocket # source://openssl//lib/openssl/ssl.rb#483 def close_write; end + # source://openssl//lib/openssl.rb#13 + def connect; end + + # source://openssl//lib/openssl.rb#13 + def connect_nonblock(*_arg0); end + # The SSLContext object used in this connection. # # source://openssl//lib/openssl/ssl.rb#408 def context; end + # source://openssl//lib/openssl.rb#13 + def export_keying_material(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def finished_message; end + # Returns the value of attribute hostname. # # source://openssl//lib/openssl/ssl.rb#401 def hostname; end + # source://openssl//lib/openssl.rb#13 + def hostname=(_arg0); end + # The underlying IO object. # # source://openssl//lib/openssl/ssl.rb#404 def io; end + # source://openssl//lib/openssl.rb#13 + def npn_protocol; end + + # source://openssl//lib/openssl.rb#13 + def peer_cert; end + + # source://openssl//lib/openssl.rb#13 + def peer_cert_chain; end + + # source://openssl//lib/openssl.rb#13 + def peer_finished_message; end + + # source://openssl//lib/openssl.rb#13 + def pending; end + # call-seq: # ssl.post_connection_check(hostname) -> true # @@ -1676,6 +3375,18 @@ class OpenSSL::SSL::SSLSocket # source://openssl//lib/openssl/ssl.rb#455 def session; end + # source://openssl//lib/openssl.rb#13 + def session=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def session_reused?; end + + # source://openssl//lib/openssl.rb#13 + def ssl_version; end + + # source://openssl//lib/openssl.rb#13 + def state; end + # Whether to close the underlying socket as well, when the SSL/TLS # connection is shut down. This defaults to +false+. # @@ -1699,11 +3410,23 @@ class OpenSSL::SSL::SSLSocket # source://openssl//lib/openssl/ssl.rb#421 def sysclose; end + # source://openssl//lib/openssl.rb#13 + def sysread(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def syswrite(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def tmp_key; end + # The underlying IO object. # - # source://openssl//lib/openssl/ssl.rb#404 + # source://openssl//lib/openssl/ssl.rb#405 def to_io; end + # source://openssl//lib/openssl.rb#13 + def verify_result; end + private # source://openssl//lib/openssl/ssl.rb#495 @@ -1715,6 +3438,15 @@ class OpenSSL::SSL::SSLSocket # source://openssl//lib/openssl/ssl.rb#503 def session_new_cb; end + # source://openssl//lib/openssl.rb#13 + def stop; end + + # source://openssl//lib/openssl.rb#13 + def sysread_nonblock(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def syswrite_nonblock(*_arg0); end + # source://openssl//lib/openssl/ssl.rb#499 def tmp_dh_callback; end @@ -1750,6 +3482,43 @@ class OpenSSL::SSL::SSLSocket end end +class OpenSSL::SSL::Session + # source://openssl//lib/openssl.rb#13 + def initialize(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ==(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def id; end + + # source://openssl//lib/openssl.rb#13 + def time; end + + # source://openssl//lib/openssl.rb#13 + def time=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def timeout; end + + # source://openssl//lib/openssl.rb#13 + def timeout=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def to_pem; end + + # source://openssl//lib/openssl.rb#13 + def to_text; end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end +end + # source://openssl//lib/openssl/ssl.rb#240 module OpenSSL::SSL::SocketForwarder # source://openssl//lib/openssl/ssl.rb#246 @@ -1814,49 +3583,116 @@ OpenSSL::SSL::TLS1_VERSION = T.let(T.unsafe(nil), Integer) module OpenSSL::Timestamp; end class OpenSSL::Timestamp::Factory + # source://openssl//lib/openssl.rb#13 def additional_certs; end + + # source://openssl//lib/openssl.rb#13 def additional_certs=(_arg0); end + + # source://openssl//lib/openssl.rb#13 def allowed_digests; end + + # source://openssl//lib/openssl.rb#13 def allowed_digests=(_arg0); end + + # source://openssl//lib/openssl.rb#13 def create_timestamp(_arg0, _arg1, _arg2); end + + # source://openssl//lib/openssl.rb#13 def default_policy_id; end + + # source://openssl//lib/openssl.rb#13 def default_policy_id=(_arg0); end + + # source://openssl//lib/openssl.rb#13 def gen_time; end + + # source://openssl//lib/openssl.rb#13 def gen_time=(_arg0); end + + # source://openssl//lib/openssl.rb#13 def serial_number; end + + # source://openssl//lib/openssl.rb#13 def serial_number=(_arg0); end end class OpenSSL::Timestamp::Request + # source://openssl//lib/openssl.rb#13 def initialize(*_arg0); end + # source://openssl//lib/openssl.rb#13 def algorithm; end + + # source://openssl//lib/openssl.rb#13 def algorithm=(_arg0); end + + # source://openssl//lib/openssl.rb#13 def cert_requested=(_arg0); end + + # source://openssl//lib/openssl.rb#13 def cert_requested?; end + + # source://openssl//lib/openssl.rb#13 def message_imprint; end + + # source://openssl//lib/openssl.rb#13 def message_imprint=(_arg0); end + + # source://openssl//lib/openssl.rb#13 def nonce; end + + # source://openssl//lib/openssl.rb#13 def nonce=(_arg0); end + + # source://openssl//lib/openssl.rb#13 def policy_id; end + + # source://openssl//lib/openssl.rb#13 def policy_id=(_arg0); end + + # source://openssl//lib/openssl.rb#13 def to_der; end + + # source://openssl//lib/openssl.rb#13 def to_text; end + + # source://openssl//lib/openssl.rb#13 def version; end + + # source://openssl//lib/openssl.rb#13 def version=(_arg0); end end class OpenSSL::Timestamp::Response + # source://openssl//lib/openssl.rb#13 def initialize(_arg0); end + # source://openssl//lib/openssl.rb#13 def failure_info; end + + # source://openssl//lib/openssl.rb#13 def status; end + + # source://openssl//lib/openssl.rb#13 def status_text; end + + # source://openssl//lib/openssl.rb#13 def to_der; end + + # source://openssl//lib/openssl.rb#13 def to_text; end + + # source://openssl//lib/openssl.rb#13 def token; end + + # source://openssl//lib/openssl.rb#13 def token_info; end + + # source://openssl//lib/openssl.rb#13 def tsa_certificate; end + + # source://openssl//lib/openssl.rb#13 def verify(*_arg0); end end @@ -1869,17 +3705,37 @@ OpenSSL::Timestamp::Response::WAITING = T.let(T.unsafe(nil), Integer) class OpenSSL::Timestamp::TimestampError < ::OpenSSL::OpenSSLError; end class OpenSSL::Timestamp::TokenInfo + # source://openssl//lib/openssl.rb#13 def initialize(_arg0); end + # source://openssl//lib/openssl.rb#13 def algorithm; end + + # source://openssl//lib/openssl.rb#13 def gen_time; end + + # source://openssl//lib/openssl.rb#13 def message_imprint; end + + # source://openssl//lib/openssl.rb#13 def nonce; end + + # source://openssl//lib/openssl.rb#13 def ordering; end + + # source://openssl//lib/openssl.rb#13 def policy_id; end + + # source://openssl//lib/openssl.rb#13 def serial_number; end + + # source://openssl//lib/openssl.rb#13 def to_der; end + + # source://openssl//lib/openssl.rb#13 def to_text; end + + # source://openssl//lib/openssl.rb#13 def version; end end @@ -1888,8 +3744,31 @@ class OpenSSL::X509::Attribute include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + # source://openssl//lib/openssl/x509.rb#330 def ==(other); end + + # source://openssl//lib/openssl.rb#13 + def oid; end + + # source://openssl//lib/openssl.rb#13 + def oid=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def value; end + + # source://openssl//lib/openssl.rb#13 + def value=(_arg0); end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end end # source://openssl//lib/openssl/x509.rb#365 @@ -1899,8 +3778,79 @@ class OpenSSL::X509::CRL include ::OpenSSL::X509::Extension::AuthorityKeyIdentifier extend ::OpenSSL::Marshal::ClassMethods + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + # source://openssl//lib/openssl/x509.rb#369 def ==(other); end + + # source://openssl//lib/openssl.rb#13 + def add_extension(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_revoked(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def extensions; end + + # source://openssl//lib/openssl.rb#13 + def extensions=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def issuer; end + + # source://openssl//lib/openssl.rb#13 + def issuer=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def last_update; end + + # source://openssl//lib/openssl.rb#13 + def last_update=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def next_update; end + + # source://openssl//lib/openssl.rb#13 + def next_update=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def revoked; end + + # source://openssl//lib/openssl.rb#13 + def revoked=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def sign(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def signature_algorithm; end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def to_pem; end + + # source://openssl//lib/openssl.rb#13 + def to_s; end + + # source://openssl//lib/openssl.rb#13 + def to_text; end + + # source://openssl//lib/openssl.rb#13 + def verify(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def version; end + + # source://openssl//lib/openssl.rb#13 + def version=(_arg0); end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end end # source://openssl//lib/openssl/x509.rb#342 @@ -1913,10 +3863,105 @@ class OpenSSL::X509::Certificate include ::OpenSSL::X509::Extension::AuthorityInfoAccess extend ::OpenSSL::Marshal::ClassMethods + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def ==(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_extension(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def check_private_key(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def extensions; end + + # source://openssl//lib/openssl.rb#13 + def extensions=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def inspect; end + + # source://openssl//lib/openssl.rb#13 + def issuer; end + + # source://openssl//lib/openssl.rb#13 + def issuer=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def not_after; end + + # source://openssl//lib/openssl.rb#13 + def not_after=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def not_before; end + + # source://openssl//lib/openssl.rb#13 + def not_before=(_arg0); end + # source://openssl//lib/openssl/x509.rb#349 def pretty_print(q); end + # source://openssl//lib/openssl.rb#13 + def public_key; end + + # source://openssl//lib/openssl.rb#13 + def public_key=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def serial; end + + # source://openssl//lib/openssl.rb#13 + def serial=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def sign(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def signature_algorithm; end + + # source://openssl//lib/openssl.rb#13 + def subject; end + + # source://openssl//lib/openssl.rb#13 + def subject=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def tbs_bytes; end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def to_pem; end + + # source://openssl//lib/openssl.rb#13 + def to_s; end + + # source://openssl//lib/openssl.rb#13 + def to_text; end + + # source://openssl//lib/openssl.rb#13 + def verify(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def version; end + + # source://openssl//lib/openssl.rb#13 + def version=(_arg0); end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end + class << self + # source://openssl//lib/openssl.rb#13 + def load(_arg0); end + # source://openssl//lib/openssl/x509.rb#360 def load_file(path); end end @@ -1927,12 +3972,30 @@ class OpenSSL::X509::Extension include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + # source://openssl//lib/openssl/x509.rb#48 def ==(other); end + # source://openssl//lib/openssl.rb#13 + def critical=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def critical?; end + + # source://openssl//lib/openssl.rb#13 + def oid; end + + # source://openssl//lib/openssl.rb#13 + def oid=(_arg0); end + # source://openssl//lib/openssl/x509.rb#64 def to_a; end + # source://openssl//lib/openssl.rb#13 + def to_der; end + # {"oid"=>sn|ln, "value"=>value, "critical"=>true|false} # # source://openssl//lib/openssl/x509.rb#60 @@ -1942,6 +4005,20 @@ class OpenSSL::X509::Extension # # source://openssl//lib/openssl/x509.rb#53 def to_s; end + + # source://openssl//lib/openssl.rb#13 + def value; end + + # source://openssl//lib/openssl.rb#13 + def value=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def value_der; end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end end # source://openssl//lib/openssl/x509.rb#154 @@ -2022,6 +4099,18 @@ end # source://openssl//lib/openssl/x509.rb#19 class OpenSSL::X509::ExtensionFactory + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def config; end + + # source://openssl//lib/openssl.rb#13 + def config=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def create_ext(*_arg0); end + # @raise [ExtensionError] # # source://openssl//lib/openssl/x509.rb#28 @@ -2037,6 +4126,30 @@ class OpenSSL::X509::ExtensionFactory # source://openssl//lib/openssl/x509.rb#20 def create_extension(*arg); end + + # source://openssl//lib/openssl.rb#13 + def crl; end + + # source://openssl//lib/openssl.rb#13 + def crl=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def issuer_certificate; end + + # source://openssl//lib/openssl.rb#13 + def issuer_certificate=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def subject_certificate; end + + # source://openssl//lib/openssl.rb#13 + def subject_certificate=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def subject_request; end + + # source://openssl//lib/openssl.rb#13 + def subject_request=(_arg0); end end # source://openssl//lib/openssl/x509.rb#204 @@ -2045,9 +4158,50 @@ class OpenSSL::X509::Name include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def <=>(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_entry(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def cmp(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def eql?(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def hash; end + + # source://openssl//lib/openssl.rb#13 + def hash_old; end + + # source://openssl//lib/openssl.rb#13 + def inspect; end + # source://openssl//lib/openssl/x509.rb#319 def pretty_print(q); end + # source://openssl//lib/openssl.rb#13 + def to_a; end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def to_s(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def to_utf8; end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end + class << self # Parses the string representation of a distinguished name. Two # different forms are supported: @@ -2064,7 +4218,7 @@ class OpenSSL::X509::Name # Use of this method is discouraged in new applications. See # Name.parse_rfc2253 and #to_utf8 for the alternative. # - # source://openssl//lib/openssl/x509.rb#305 + # source://openssl//lib/openssl/x509.rb#316 def parse(str, template = T.unsafe(nil)); end # Parses the string representation of a distinguished name. Two @@ -2131,20 +4285,197 @@ class OpenSSL::X509::Request include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + # source://openssl//lib/openssl/x509.rb#385 def ==(other); end + + # source://openssl//lib/openssl.rb#13 + def add_attribute(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def attributes; end + + # source://openssl//lib/openssl.rb#13 + def attributes=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def public_key; end + + # source://openssl//lib/openssl.rb#13 + def public_key=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def sign(_arg0, _arg1); end + + # source://openssl//lib/openssl.rb#13 + def signature_algorithm; end + + # source://openssl//lib/openssl.rb#13 + def subject; end + + # source://openssl//lib/openssl.rb#13 + def subject=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + # source://openssl//lib/openssl.rb#13 + def to_pem; end + + # source://openssl//lib/openssl.rb#13 + def to_s; end + + # source://openssl//lib/openssl.rb#13 + def to_text; end + + # source://openssl//lib/openssl.rb#13 + def verify(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def version; end + + # source://openssl//lib/openssl.rb#13 + def version=(_arg0); end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end end # source://openssl//lib/openssl/x509.rb#375 class OpenSSL::X509::Revoked + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + # source://openssl//lib/openssl/x509.rb#376 def ==(other); end + + # source://openssl//lib/openssl.rb#13 + def add_extension(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def extensions; end + + # source://openssl//lib/openssl.rb#13 + def extensions=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def serial; end + + # source://openssl//lib/openssl.rb#13 + def serial=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def time; end + + # source://openssl//lib/openssl.rb#13 + def time=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def to_der; end + + private + + # source://openssl//lib/openssl.rb#13 + def initialize_copy(_arg0); end +end + +class OpenSSL::X509::Store + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_cert(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_crl(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_file(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def add_path(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def chain; end + + # source://openssl//lib/openssl.rb#13 + def error; end + + # source://openssl//lib/openssl.rb#13 + def error_string; end + + # source://openssl//lib/openssl.rb#13 + def flags=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def purpose=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def set_default_paths; end + + # source://openssl//lib/openssl.rb#13 + def time=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def trust=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def verify(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def verify_callback; end + + # source://openssl//lib/openssl.rb#13 + def verify_callback=(_arg0); end end # source://openssl//lib/openssl/x509.rb#336 class OpenSSL::X509::StoreContext + # source://openssl//lib/openssl.rb#13 + def initialize(*_arg0); end + + # source://openssl//lib/openssl.rb#13 + def chain; end + # source://openssl//lib/openssl/x509.rb#337 def cleanup; end + + # source://openssl//lib/openssl.rb#13 + def current_cert; end + + # source://openssl//lib/openssl.rb#13 + def current_crl; end + + # source://openssl//lib/openssl.rb#13 + def error; end + + # source://openssl//lib/openssl.rb#13 + def error=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def error_depth; end + + # source://openssl//lib/openssl.rb#13 + def error_string; end + + # source://openssl//lib/openssl.rb#13 + def flags=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def purpose=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def time=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def trust=(_arg0); end + + # source://openssl//lib/openssl.rb#13 + def verify; end end OpenSSL::X509::V_ERR_CA_KEY_TOO_SMALL = T.let(T.unsafe(nil), Integer) diff --git a/sorbet/rbi/gems/os@1.1.4.rbi b/sorbet/rbi/gems/os@1.1.4.rbi index ee8bc8cd..93b5a3fb 100644 --- a/sorbet/rbi/gems/os@1.1.4.rbi +++ b/sorbet/rbi/gems/os@1.1.4.rbi @@ -45,7 +45,7 @@ class OS # # @return [Boolean] # - # source://os//lib/os.rb#17 + # source://os//lib/os.rb#301 def doze?; end # @return [Boolean] @@ -79,7 +79,7 @@ class OS # @return [Boolean] # - # source://os//lib/os.rb#101 + # source://os//lib/os.rb#302 def jruby?; end # true for linux, false for windows, os x, cygwin diff --git a/sorbet/rbi/gems/parallel@1.26.3.rbi b/sorbet/rbi/gems/parallel@1.27.0.rbi similarity index 100% rename from sorbet/rbi/gems/parallel@1.26.3.rbi rename to sorbet/rbi/gems/parallel@1.27.0.rbi diff --git a/sorbet/rbi/gems/parser@3.3.7.4.rbi b/sorbet/rbi/gems/parser@3.3.9.0.rbi similarity index 95% rename from sorbet/rbi/gems/parser@3.3.7.4.rbi rename to sorbet/rbi/gems/parser@3.3.9.0.rbi index 305c707b..579aa458 100644 --- a/sorbet/rbi/gems/parser@3.3.7.4.rbi +++ b/sorbet/rbi/gems/parser@3.3.9.0.rbi @@ -38,7 +38,7 @@ class Parser::AST::Node < ::AST::Node # @api public # @return [Parser::Source::Map] # - # source://parser//lib/parser/ast/node.rb#18 + # source://parser//lib/parser/ast/node.rb#20 def loc; end # Source map for this Node. @@ -58,33 +58,33 @@ class Parser::AST::Processor # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#179 def on_alias(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#222 def on_and(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#67 def on_and_asgn(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser//lib/parser/ast/processor.rb#122 def on_arg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#148 def on_arg_expr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#103 def on_args(node); end # @api public @@ -94,64 +94,64 @@ class Parser::AST::Processor # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#22 def on_array(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#258 def on_array_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#259 def on_array_pattern_with_tail(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser//lib/parser/ast/processor.rb#42 def on_back_ref(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#240 def on_begin(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#195 def on_block(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#151 def on_block_pass(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser//lib/parser/ast/processor.rb#125 def on_blockarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#150 def on_blockarg_expr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#213 def on_break(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#228 def on_case(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#246 def on_case_match(node); end # @api public @@ -161,7 +161,7 @@ class Parser::AST::Processor # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#157 def on_class(node); end # @api public @@ -171,24 +171,24 @@ class Parser::AST::Processor # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#261 def on_const_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#181 + # source://parser//lib/parser/ast/processor.rb#190 def on_csend(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser//lib/parser/ast/processor.rb#41 def on_cvar(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#58 + # source://parser//lib/parser/ast/processor.rb#65 def on_cvasgn(node); end # @api public @@ -198,7 +198,7 @@ class Parser::AST::Processor # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#219 def on_defined?(node); end # @api public @@ -208,17 +208,17 @@ class Parser::AST::Processor # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#16 def on_dstr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#17 def on_dsym(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#231 def on_eflipflop(node); end # @api public @@ -228,234 +228,234 @@ class Parser::AST::Processor # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#238 def on_ensure(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#27 def on_erange(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#262 def on_find_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#210 def on_for(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser//lib/parser/ast/processor.rb#130 def on_forward_arg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#154 def on_forwarded_kwrestarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#153 def on_forwarded_restarg(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser//lib/parser/ast/processor.rb#40 def on_gvar(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#58 + # source://parser//lib/parser/ast/processor.rb#64 def on_gvasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#24 def on_hash(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#260 def on_hash_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#225 def on_if(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#251 def on_if_guard(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#230 def on_iflipflop(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#247 def on_in_match(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#250 def on_in_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#192 def on_index(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#193 def on_indexasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#26 def on_irange(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser//lib/parser/ast/processor.rb#39 def on_ivar(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#58 + # source://parser//lib/parser/ast/processor.rb#63 def on_ivasgn(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser//lib/parser/ast/processor.rb#127 def on_kwarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#25 def on_kwargs(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#241 def on_kwbegin(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser//lib/parser/ast/processor.rb#128 def on_kwoptarg(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser//lib/parser/ast/processor.rb#129 def on_kwrestarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#21 def on_kwsplat(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#196 def on_lambda(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser//lib/parser/ast/processor.rb#38 def on_lvar(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#58 + # source://parser//lib/parser/ast/processor.rb#62 def on_lvasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#79 def on_masgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#256 def on_match_alt(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#257 def on_match_as(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#233 def on_match_current_line(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#248 def on_match_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#249 def on_match_pattern_p(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#254 def on_match_rest(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser//lib/parser/ast/processor.rb#253 def on_match_var(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#234 def on_match_with_lvasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#78 def on_mlhs(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#156 def on_module(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#214 def on_next(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#221 def on_not(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser//lib/parser/ast/processor.rb#43 def on_nth_ref(node); end # @api public @@ -471,37 +471,37 @@ class Parser::AST::Processor # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser//lib/parser/ast/processor.rb#123 def on_optarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#223 def on_or(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#68 def on_or_asgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#23 def on_pair(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#255 def on_pin(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#244 def on_postexe(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#243 def on_preexe(node); end # @api public @@ -511,48 +511,48 @@ class Parser::AST::Processor # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#215 def on_redo(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#18 def on_regexp(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#236 def on_resbody(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#237 def on_rescue(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser//lib/parser/ast/processor.rb#124 def on_restarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#149 def on_restarg_expr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#216 def on_retry(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#212 def on_return(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#158 def on_sclass(node); end # @api public @@ -563,37 +563,37 @@ class Parser::AST::Processor # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser//lib/parser/ast/processor.rb#126 def on_shadowarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#20 def on_splat(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#217 def on_super(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#178 def on_undef(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#252 def on_unless_guard(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#208 def on_until(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#209 def on_until_post(node); end # @api public @@ -608,33 +608,33 @@ class Parser::AST::Processor # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#227 def on_when(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#206 def on_while(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#207 def on_while_post(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#19 def on_xstr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser//lib/parser/ast/processor.rb#218 def on_yield(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#281 + # source://parser//lib/parser/ast/processor.rb#118 def process_argument_node(node); end # @api public @@ -645,13 +645,13 @@ class Parser::AST::Processor # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#273 + # source://parser//lib/parser/ast/processor.rb#58 def process_var_asgn_node(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#265 + # source://parser//lib/parser/ast/processor.rb#34 def process_variable_node(node); end end @@ -659,44 +659,44 @@ end # # @api public # -# source://parser//lib/parser/base.rb#16 +# source://parser//lib/parser/base.rb#19 class Parser::Base < ::Racc::Parser # @api public # @param builder [Parser::Builders::Default] The AST builder to use. # @return [Base] a new instance of Base # - # source://parser//lib/parser/base.rb#126 + # source://parser//lib/parser/base.rb#129 def initialize(builder = T.unsafe(nil)); end # @api public # - # source://parser//lib/parser/base.rb#114 + # source://parser//lib/parser/base.rb#117 def builder; end # @api public # - # source://parser//lib/parser/base.rb#117 + # source://parser//lib/parser/base.rb#120 def context; end # @api public # - # source://parser//lib/parser/base.rb#119 + # source://parser//lib/parser/base.rb#122 def current_arg_stack; end # @api public # @return [Parser::Diagnostic::Engine] # - # source://parser//lib/parser/base.rb#113 + # source://parser//lib/parser/base.rb#116 def diagnostics; end # @api public # - # source://parser//lib/parser/base.rb#112 + # source://parser//lib/parser/base.rb#115 def lexer; end # @api public # - # source://parser//lib/parser/base.rb#118 + # source://parser//lib/parser/base.rb#121 def max_numparam_stack; end # Parses a source buffer and returns the AST, or `nil` in case of a non fatal error. @@ -705,7 +705,7 @@ class Parser::Base < ::Racc::Parser # @param source_buffer [Parser::Source::Buffer] The source buffer to parse. # @return [Parser::AST::Node, nil] # - # source://parser//lib/parser/base.rb#186 + # source://parser//lib/parser/base.rb#189 def parse(source_buffer); end # Parses a source buffer and returns the AST and the source code comments. @@ -715,35 +715,35 @@ class Parser::Base < ::Racc::Parser # @see #parse # @see Parser::Source::Comment#associate # - # source://parser//lib/parser/base.rb#204 + # source://parser//lib/parser/base.rb#207 def parse_with_comments(source_buffer); end # @api public # - # source://parser//lib/parser/base.rb#121 + # source://parser//lib/parser/base.rb#124 def pattern_hash_keys; end # @api public # - # source://parser//lib/parser/base.rb#120 + # source://parser//lib/parser/base.rb#123 def pattern_variables; end # Resets the state of the parser. # # @api public # - # source://parser//lib/parser/base.rb#167 + # source://parser//lib/parser/base.rb#170 def reset; end # @api public # - # source://parser//lib/parser/base.rb#116 + # source://parser//lib/parser/base.rb#119 def source_buffer; end # @api public # @return [Parser::StaticEnvironment] # - # source://parser//lib/parser/base.rb#115 + # source://parser//lib/parser/base.rb#118 def static_env; end # Parses a source buffer and returns the AST, the source code comments, @@ -767,36 +767,36 @@ class Parser::Base < ::Racc::Parser # @param recover [Boolean] If true, recover from syntax errors. False by default. # @return [Array] # - # source://parser//lib/parser/base.rb#233 + # source://parser//lib/parser/base.rb#236 def tokenize(source_buffer, recover = T.unsafe(nil)); end private # @api public # - # source://parser//lib/parser/base.rb#257 + # source://parser//lib/parser/base.rb#260 def check_kwarg_name(name_t); end # @api public # - # source://parser//lib/parser/base.rb#266 + # source://parser//lib/parser/base.rb#269 def diagnostic(level, reason, arguments, location_t, highlights_ts = T.unsafe(nil)); end # @api public # - # source://parser//lib/parser/base.rb#251 + # source://parser//lib/parser/base.rb#254 def next_token; end # @api public # - # source://parser//lib/parser/base.rb#282 + # source://parser//lib/parser/base.rb#285 def on_error(error_token_id, error_value, value_stack); end class << self # @api public # @return [Parser::Base] parser with the default options set. # - # source://parser//lib/parser/base.rb#84 + # source://parser//lib/parser/base.rb#87 def default_parser; end # Parses a string of Ruby code and returns the AST. If the source @@ -811,7 +811,7 @@ class Parser::Base < ::Racc::Parser # @param line [Numeric] The initial line number. # @return [Parser::AST::Node] # - # source://parser//lib/parser/base.rb#30 + # source://parser//lib/parser/base.rb#33 def parse(string, file = T.unsafe(nil), line = T.unsafe(nil)); end # Parses Ruby source code by reading it from a file. If the source @@ -823,7 +823,7 @@ class Parser::Base < ::Racc::Parser # @return [Parser::AST::Node] # @see #parse # - # source://parser//lib/parser/base.rb#64 + # source://parser//lib/parser/base.rb#67 def parse_file(filename); end # Parses Ruby source code by reading it from a file and returns the AST and @@ -835,7 +835,7 @@ class Parser::Base < ::Racc::Parser # @return [Array] # @see #parse # - # source://parser//lib/parser/base.rb#77 + # source://parser//lib/parser/base.rb#80 def parse_file_with_comments(filename); end # Parses a string of Ruby code and returns the AST and comments. If the @@ -850,14 +850,14 @@ class Parser::Base < ::Racc::Parser # @param line [Numeric] The initial line number. # @return [Array] # - # source://parser//lib/parser/base.rb#49 + # source://parser//lib/parser/base.rb#52 def parse_with_comments(string, file = T.unsafe(nil), line = T.unsafe(nil)); end private # @api public # - # source://parser//lib/parser/base.rb#97 + # source://parser//lib/parser/base.rb#100 def setup_source_buffer(file, line, string, encoding); end end end @@ -2639,7 +2639,7 @@ class Parser::Lexer::StackState # source://parser//lib/parser/lexer/stack_state.rb#38 def empty?; end - # source://parser//lib/parser/lexer/stack_state.rb#42 + # source://parser//lib/parser/lexer/stack_state.rb#46 def inspect; end # source://parser//lib/parser/lexer/stack_state.rb#29 @@ -3594,7 +3594,7 @@ class Parser::Source::Comment # @api public # @return [Parser::Source::Range] # - # source://parser//lib/parser/source/comment.rb#20 + # source://parser//lib/parser/source/comment.rb#21 def loc; end # @api public @@ -3818,7 +3818,7 @@ class Parser::Source::Map # @api public # @return [Integer] # - # source://parser//lib/parser/source/map.rb#99 + # source://parser//lib/parser/source/map.rb#103 def first_line; end # A shortcut for `self.expression.last_column`. @@ -4294,6 +4294,8 @@ class Parser::Source::Range def end_pos; end # @api public + # + # source://parser//lib/parser/source/range.rb#308 def eql?(_arg0); end # Line number of the beginning of this range. By default, the first line @@ -4303,7 +4305,7 @@ class Parser::Source::Range # @return [Integer] line number of the beginning of this range. # @see Buffer # - # source://parser//lib/parser/source/range.rb#83 + # source://parser//lib/parser/source/range.rb#87 def first_line; end # Support for Ranges be used in as Hash indices and in Sets. @@ -4359,7 +4361,7 @@ class Parser::Source::Range # @api public # @return [Integer] amount of characters included in this range. # - # source://parser//lib/parser/source/range.rb#70 + # source://parser//lib/parser/source/range.rb#74 def length; end # Line number of the beginning of this range. By default, the first line @@ -4798,7 +4800,7 @@ class Parser::Source::Rewriter::Action # source://parser//lib/parser/source/rewriter/action.rb#12 def allow_multiple_insertions; end - # source://parser//lib/parser/source/rewriter/action.rb#12 + # source://parser//lib/parser/source/rewriter/action.rb#13 def allow_multiple_insertions?; end # source://parser//lib/parser/source/rewriter/action.rb#12 diff --git a/sorbet/rbi/gems/pdf-reader@2.14.1.rbi b/sorbet/rbi/gems/pdf-reader@2.15.0.rbi similarity index 63% rename from sorbet/rbi/gems/pdf-reader@2.14.1.rbi rename to sorbet/rbi/gems/pdf-reader@2.15.0.rbi index 53d1184d..d97e1f3c 100644 --- a/sorbet/rbi/gems/pdf-reader@2.14.1.rbi +++ b/sorbet/rbi/gems/pdf-reader@2.15.0.rbi @@ -5,8 +5,13 @@ # Please instead update this file by running `bin/tapioca gem pdf-reader`. +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `pdf-reader` gem. +# Please instead update this file by running `bundle exec spoom srb sigs export`. + # source://pdf-reader//lib/pdf/reader.rb#33 -# typed: strong module PDF; end # The Reader class serves as an entry point for parsing a PDF file. @@ -89,28 +94,30 @@ class PDF::Reader # Using this method directly is supported, but it's more common to use # `PDF::Reader.open` # - # @return [Reader] a new instance of Reader # - # source://pdf-reader//lib/pdf/reader.rb#118 - sig { params(input: T.any(String, Tempfile, IO, StringIO), opts: T::Hash[T.untyped, T.untyped]).void } + # source://pdf-reader//lib/pdf/reader.rb#120 + sig { params(input: T.any(::IO, ::String, ::StringIO, ::Tempfile), opts: T::Hash[T.untyped, T.untyped]).void } def initialize(input, opts = T.unsafe(nil)); end # Return a Hash with some basic information about the PDF file # - # source://pdf-reader//lib/pdf/reader.rb#126 + # + # source://pdf-reader//lib/pdf/reader.rb#131 sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) } def info; end # Return a String with extra XML metadata provided by the author of the PDF file. Not # always present. # - # source://pdf-reader//lib/pdf/reader.rb#134 - sig { returns(T.nilable(String)) } + # + # source://pdf-reader//lib/pdf/reader.rb#140 + sig { returns(T.nilable(::String)) } def metadata; end # lowlevel hash-like access to all objects in the underlying PDF # - # source://pdf-reader//lib/pdf/reader.rb#98 + # source://pdf-reader//lib/pdf/reader.rb#99 + sig { returns(::PDF::Reader::ObjectHash) } def objects; end # returns a single PDF::Reader::Page for the specified page. @@ -125,14 +132,16 @@ class PDF::Reader # See the docs for PDF::Reader::Page to read more about the # methods available on each page # - # source://pdf-reader//lib/pdf/reader.rb#216 - sig { params(num: Integer).returns(PDF::Reader::Page) } + # + # source://pdf-reader//lib/pdf/reader.rb#227 + sig { params(num: ::Integer).returns(::PDF::Reader::Page) } def page(num); end # To number of pages in this PDF # - # source://pdf-reader//lib/pdf/reader.rb#147 - sig { returns(Integer) } + # + # source://pdf-reader//lib/pdf/reader.rb#154 + sig { returns(::Integer) } def page_count; end # returns an array of PDF::Reader::Page objects, one for each @@ -149,45 +158,48 @@ class PDF::Reader # See the docs for PDF::Reader::Page to read more about the # methods available on each page # - # source://pdf-reader//lib/pdf/reader.rb#192 - sig { returns(T::Array[PDF::Reader::Page]) } + # + # source://pdf-reader//lib/pdf/reader.rb#202 + sig { returns(T::Array[::PDF::Reader::Page]) } def pages; end # The PDF version this file uses # - # source://pdf-reader//lib/pdf/reader.rb#157 - sig { returns(Float) } + # + # source://pdf-reader//lib/pdf/reader.rb#165 + sig { returns(::Float) } def pdf_version; end private # recursively convert strings from outside a content stream into UTF-8 # - # source://pdf-reader//lib/pdf/reader.rb#228 + # + # source://pdf-reader//lib/pdf/reader.rb#240 sig { params(obj: T.untyped).returns(T.untyped) } def doc_strings_to_utf8(obj); end - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader.rb#249 - sig { params(str: String).returns(T::Boolean) } + # source://pdf-reader//lib/pdf/reader.rb#262 + sig { params(str: ::String).returns(T::Boolean) } def has_utf16_bom?(str); end # TODO find a PDF I can use to spec this behaviour # - # source://pdf-reader//lib/pdf/reader.rb#259 - sig { params(obj: String).returns(String) } + # + # source://pdf-reader//lib/pdf/reader.rb#273 + sig { params(obj: ::String).returns(::String) } def pdfdoc_to_utf8(obj); end - # source://pdf-reader//lib/pdf/reader.rb#274 - sig { returns(T::Hash[Symbol, T.untyped]) } + # source://pdf-reader//lib/pdf/reader.rb#290 + sig { returns(T::Hash[::Symbol, T.untyped]) } def root; end # one day we'll all run on a 1.9 compatible VM and I can just do this with # String#encode # - # source://pdf-reader//lib/pdf/reader.rb#267 - sig { params(obj: String).returns(String) } + # + # source://pdf-reader//lib/pdf/reader.rb#282 + sig { params(obj: ::String).returns(::String) } def utf16_to_utf8(obj); end class << self @@ -204,14 +216,15 @@ class PDF::Reader # puts reader.pdf_version # end # + # # @yield [PDF::Reader.new(input, opts)] # - # source://pdf-reader//lib/pdf/reader.rb#174 + # source://pdf-reader//lib/pdf/reader.rb#183 sig do params( - input: T.any(String, Tempfile, IO), + input: T.any(::IO, ::String, ::Tempfile), opts: T::Hash[T.untyped, T.untyped], - block: T.proc.params(arg0: PDF::Reader).void + block: T.proc.params(arg0: ::PDF::Reader).void ).returns(T.untyped) end def open(input, opts = T.unsafe(nil), &block); end @@ -254,78 +267,84 @@ end # # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#39 class PDF::Reader::AdvancedTextRunFilter - # @return [AdvancedTextRunFilter] a new instance of AdvancedTextRunFilter - # - # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#61 - sig { params(text_runs: T::Array[PDF::Reader::TextRun], filter_hash: T::Hash[Symbol, T.untyped]).void } + # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#68 + sig { params(text_runs: T::Array[::PDF::Reader::TextRun], filter_hash: T::Hash[::Symbol, T.untyped]).void } def initialize(text_runs, filter_hash); end - # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#71 - sig { returns(T::Array[PDF::Reader::TextRun]) } + # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#80 + sig { returns(T::Array[::PDF::Reader::TextRun]) } def exclude; end - # Returns the value of attribute filter_hash. - # - # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#59 + # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#65 + sig { returns(T::Hash[::Symbol, T.untyped]) } def filter_hash; end - # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#66 - sig { returns(T::Array[PDF::Reader::TextRun]) } + # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#74 + sig { returns(T::Array[::PDF::Reader::TextRun]) } def only; end - # Returns the value of attribute text_runs. - # - # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#59 + # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#62 + sig { returns(T::Array[::PDF::Reader::TextRun]) } def text_runs; end private - # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#116 - sig { params(attribute_value: T.untyped, operator: Symbol, filter_value: T.untyped).returns(T::Boolean) } + # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#131 + sig { params(attribute_value: T.untyped, operator: ::Symbol, filter_value: T.untyped).returns(T::Boolean) } def apply_operator(attribute_value, operator, filter_value); end - # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#94 - sig { params(text_run: PDF::Reader::TextRun, conditions: T::Array[T::Hash[Symbol, T.untyped]]).returns(T::Boolean) } + # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#106 + sig do + params( + text_run: ::PDF::Reader::TextRun, + conditions: T::Array[T::Hash[::Symbol, T.untyped]] + ).returns(T::Boolean) + end def evaluate_and_filters(text_run, conditions); end - # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#106 + # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#120 sig do params( - text_run: PDF::Reader::TextRun, - attribute: Symbol, - conditions: T::Hash[Symbol, T.untyped] + text_run: ::PDF::Reader::TextRun, + attribute: ::Symbol, + conditions: T::Hash[::Symbol, T.untyped] ).returns(T::Boolean) end def evaluate_attribute_conditions(text_run, attribute, conditions); end - # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#78 - sig { params(text_run: PDF::Reader::TextRun).returns(T::Boolean) } + # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#88 + sig { params(text_run: ::PDF::Reader::TextRun).returns(T::Boolean) } def evaluate_filter(text_run); end - # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#100 - sig { params(text_run: PDF::Reader::TextRun, filter_hash: T::Hash[Symbol, T.untyped]).returns(T::Boolean) } + # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#113 + sig { params(text_run: ::PDF::Reader::TextRun, filter_hash: T::Hash[::Symbol, T.untyped]).returns(T::Boolean) } def evaluate_filters(text_run, filter_hash); end - # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#88 - sig { params(text_run: PDF::Reader::TextRun, conditions: T::Array[T::Hash[Symbol, T.untyped]]).returns(T::Boolean) } + # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#99 + sig do + params( + text_run: ::PDF::Reader::TextRun, + conditions: T::Array[T::Hash[::Symbol, T.untyped]] + ).returns(T::Boolean) + end def evaluate_or_filters(text_run, conditions); end class << self - # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#55 + # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#57 sig do params( - text_runs: T::Array[PDF::Reader::TextRun], - filter_hash: T::Hash[Symbol, T.untyped] - ).returns(T::Array[PDF::Reader::TextRun]) + text_runs: T::Array[::PDF::Reader::TextRun], + filter_hash: T::Hash[::Symbol, T.untyped] + ).returns(T::Array[::PDF::Reader::TextRun]) end def exclude(text_runs, filter_hash); end - # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#51 + # source://pdf-reader//lib/pdf/reader/advanced_text_run_filter.rb#52 sig do params( - text_runs: T::Array[PDF::Reader::TextRun], - filter_hash: T::Hash[Symbol, T.untyped] - ).returns(T::Array[PDF::Reader::TextRun]) + text_runs: T::Array[::PDF::Reader::TextRun], + filter_hash: T::Hash[::Symbol, T.untyped] + ).returns(T::Array[::PDF::Reader::TextRun]) end def only(text_runs, filter_hash); end end @@ -339,10 +358,8 @@ PDF::Reader::AdvancedTextRunFilter::VALID_OPERATORS = T.let(T.unsafe(nil), Array # # source://pdf-reader//lib/pdf/reader/aes_v2_security_handler.rb#12 class PDF::Reader::AesV2SecurityHandler - # @return [AesV2SecurityHandler] a new instance of AesV2SecurityHandler - # - # source://pdf-reader//lib/pdf/reader/aes_v2_security_handler.rb#14 - sig { params(key: String).void } + # source://pdf-reader//lib/pdf/reader/aes_v2_security_handler.rb#15 + sig { params(key: ::String).void } def initialize(key); end # 7.6.2 General Encryption Algorithm @@ -351,12 +368,23 @@ class PDF::Reader::AesV2SecurityHandler # # version == 4 and CFM == AESV2 # + # used to decrypt PDF streams (buf). Input data should be in bytesizes of + # a multiple of 16, anything else is an error. The first 16 bytes are the initialization + # vector, so any input of exactly 16 bytes decrypts to an empty string + # # buf - a string to decrypt # ref - a PDF::Reader::Reference for the object to decrypt # - # source://pdf-reader//lib/pdf/reader/aes_v2_security_handler.rb#27 - sig { params(buf: String, ref: PDF::Reader::Reference).returns(String) } + # + # source://pdf-reader//lib/pdf/reader/aes_v2_security_handler.rb#33 + sig { params(buf: ::String, ref: ::PDF::Reader::Reference).returns(::String) } def decrypt(buf, ref); end + + private + + # source://pdf-reader//lib/pdf/reader/aes_v2_security_handler.rb#56 + sig { params(buf: ::String, ref: ::PDF::Reader::Reference, padding: T::Boolean).returns(::String) } + def internal_decrypt(buf, ref, padding = T.unsafe(nil)); end end # Decrypts data using the AESV3 algorithim defined in the PDF 1.7, Extension Level 3 spec. @@ -364,24 +392,31 @@ end # # source://pdf-reader//lib/pdf/reader/aes_v3_security_handler.rb#13 class PDF::Reader::AesV3SecurityHandler - # @return [AesV3SecurityHandler] a new instance of AesV3SecurityHandler - # - # source://pdf-reader//lib/pdf/reader/aes_v3_security_handler.rb#15 - sig { params(key: String).void } + # source://pdf-reader//lib/pdf/reader/aes_v3_security_handler.rb#16 + sig { params(key: ::String).void } def initialize(key); end # 7.6.2 General Encryption Algorithm # # Algorithm 1: Encryption of data using the RC4 or AES algorithms # - # used to decrypt RC4/AES encrypted PDF streams (buf) + # used to decrypt RC4/AES encrypted PDF streams (buf). Input data should be in bytesizes of + # a multiple of 16, anything else is an error. The first 16 bytes are the initialization + # vector, so any input of exactly 16 bytes decrypts to an empty string # # buf - a string to decrypt # ref - a PDF::Reader::Reference for the object to decrypt # - # source://pdf-reader//lib/pdf/reader/aes_v3_security_handler.rb#29 - sig { params(buf: String, ref: PDF::Reader::Reference).returns(String) } + # + # source://pdf-reader//lib/pdf/reader/aes_v3_security_handler.rb#38 + sig { params(buf: ::String, ref: ::PDF::Reader::Reference).returns(::String) } def decrypt(buf, ref); end + + private + + # source://pdf-reader//lib/pdf/reader/aes_v3_security_handler.rb#61 + sig { params(buf: ::String, ref: ::PDF::Reader::Reference, padding: T::Boolean).returns(::String) } + def internal_decrypt(buf, ref, padding = T.unsafe(nil)); end end # Filter our text/characters that are positioned outside a rectangle. Usually the page @@ -390,12 +425,12 @@ end # source://pdf-reader//lib/pdf/reader/bounding_rectangle_runs_filter.rb#9 class PDF::Reader::BoundingRectangleRunsFilter class << self - # source://pdf-reader//lib/pdf/reader/bounding_rectangle_runs_filter.rb#11 + # source://pdf-reader//lib/pdf/reader/bounding_rectangle_runs_filter.rb#12 sig do params( - runs: T::Array[PDF::Reader::TextRun], - rect: PDF::Reader::Rectangle - ).returns(T::Array[PDF::Reader::TextRun]) + runs: T::Array[::PDF::Reader::TextRun], + rect: ::PDF::Reader::Rectangle + ).returns(T::Array[::PDF::Reader::TextRun]) end def runs_within_rect(runs, rect); end end @@ -423,31 +458,29 @@ class PDF::Reader::Buffer # :content_stream - set to true if buffer will be tokenising a # content stream. Defaults to false # - # @return [Buffer] a new instance of Buffer # - # source://pdf-reader//lib/pdf/reader/buffer.rb#79 - sig { params(io: T.any(StringIO, Tempfile, IO), opts: T::Hash[Symbol, T.untyped]).void } + # source://pdf-reader//lib/pdf/reader/buffer.rb#81 + sig { params(io: T.any(::IO, ::StringIO, ::Tempfile), opts: T::Hash[::Symbol, T.untyped]).void } def initialize(io, opts = T.unsafe(nil)); end # return true if there are no more tokens left # - # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/buffer.rb#90 + # source://pdf-reader//lib/pdf/reader/buffer.rb#93 sig { returns(T::Boolean) } def empty?; end # return the byte offset where the first XRef table in th source can be found. # + # # @raise [MalformedPDFError] # - # source://pdf-reader//lib/pdf/reader/buffer.rb#144 - sig { returns(Integer) } + # source://pdf-reader//lib/pdf/reader/buffer.rb#150 + sig { returns(::Integer) } def find_first_xref_offset; end - # Returns the value of attribute pos. - # - # source://pdf-reader//lib/pdf/reader/buffer.rb#65 + # source://pdf-reader//lib/pdf/reader/buffer.rb#66 + sig { returns(::Integer) } def pos; end # return raw bytes from the underlying IO stream. @@ -463,28 +496,28 @@ class PDF::Reader::Buffer # This is because the data may start with LF. # However we check for CRLF first, so the ambiguity is avoided. # - # source://pdf-reader//lib/pdf/reader/buffer.rb#108 - sig { params(bytes: Integer, opts: T::Hash[Symbol, T.untyped]).returns(T.nilable(String)) } + # source://pdf-reader//lib/pdf/reader/buffer.rb#112 + sig { params(bytes: ::Integer, opts: T::Hash[::Symbol, T.untyped]).returns(T.nilable(::String)) } def read(bytes, opts = T.unsafe(nil)); end # return the next token from the source. Returns a string if a token # is found, nil if there are no tokens left. # - # source://pdf-reader//lib/pdf/reader/buffer.rb#133 - sig { returns(T.any(NilClass, String, PDF::Reader::Reference)) } + # + # source://pdf-reader//lib/pdf/reader/buffer.rb#138 + sig { returns(T.nilable(T.any(::PDF::Reader::Reference, ::String))) } def token; end private - # source://pdf-reader//lib/pdf/reader/buffer.rb#167 + # source://pdf-reader//lib/pdf/reader/buffer.rb#174 sig { void } def check_size_is_non_zero; end # Returns true if this buffer is parsing a content stream # - # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/buffer.rb#176 + # source://pdf-reader//lib/pdf/reader/buffer.rb#184 sig { returns(T::Boolean) } def in_content_stream?; end @@ -500,21 +533,24 @@ class PDF::Reader::Buffer # indirect reference, so test for that case first and avoid the relatively # expensive regexp checks if possible. # - # source://pdf-reader//lib/pdf/reader/buffer.rb#239 + # + # source://pdf-reader//lib/pdf/reader/buffer.rb#252 sig { void } def merge_indirect_reference; end # peek at the next character in the io stream, leaving the stream position # untouched # - # source://pdf-reader//lib/pdf/reader/buffer.rb#438 - sig { returns(T.nilable(Integer)) } + # + # source://pdf-reader//lib/pdf/reader/buffer.rb#456 + sig { returns(T.nilable(::Integer)) } def peek_byte; end # if we're currently inside a hex string, read hex nibbles until # we find a closing > # - # source://pdf-reader//lib/pdf/reader/buffer.rb#302 + # + # source://pdf-reader//lib/pdf/reader/buffer.rb#317 sig { void } def prepare_hex_token; end @@ -523,7 +559,7 @@ class PDF::Reader::Buffer # The EI must followed by white-space or end of buffer # This is to reduce the chance of accidentally matching an embedded EI # - # source://pdf-reader//lib/pdf/reader/buffer.rb#256 + # source://pdf-reader//lib/pdf/reader/buffer.rb#270 sig { void } def prepare_inline_token; end @@ -536,7 +572,8 @@ class PDF::Reader::Buffer # processing to fix things like escaped new lines, but that's someone else's # problem. # - # source://pdf-reader//lib/pdf/reader/buffer.rb#331 + # + # source://pdf-reader//lib/pdf/reader/buffer.rb#347 sig { void } def prepare_literal_token; end @@ -545,34 +582,39 @@ class PDF::Reader::Buffer # What each byte means is complex, check out section "3.1.1 Character Set" of the 1.7 spec # to read up on it. # - # source://pdf-reader//lib/pdf/reader/buffer.rb#361 + # + # source://pdf-reader//lib/pdf/reader/buffer.rb#378 sig { void } def prepare_regular_token; end # attempt to prime the buffer with the next few tokens. # - # source://pdf-reader//lib/pdf/reader/buffer.rb#195 + # + # source://pdf-reader//lib/pdf/reader/buffer.rb#206 sig { void } def prepare_tokens; end # Some bastard moved our IO stream cursor. Restore it. # - # source://pdf-reader//lib/pdf/reader/buffer.rb#182 + # + # source://pdf-reader//lib/pdf/reader/buffer.rb#191 sig { void } def reset_pos; end # save the current position of the source IO stream. If someone else (like another buffer) # moves the cursor, we can then restore it. # - # source://pdf-reader//lib/pdf/reader/buffer.rb#189 + # + # source://pdf-reader//lib/pdf/reader/buffer.rb#199 sig { void } def save_pos; end # tokenising behaves slightly differently based on the current context. # Determine the current context/state by examining the last token we found # - # source://pdf-reader//lib/pdf/reader/buffer.rb#211 - sig { returns(Symbol) } + # + # source://pdf-reader//lib/pdf/reader/buffer.rb#223 + sig { returns(::Symbol) } def state; end end @@ -632,53 +674,51 @@ PDF::Reader::Buffer::WHITE_SPACE = T.let(T.unsafe(nil), Array) # # source://pdf-reader//lib/pdf/reader/cmap.rb#35 class PDF::Reader::CMap - # @return [CMap] a new instance of CMap - # - # source://pdf-reader//lib/pdf/reader/cmap.rb#51 - sig { params(data: String).void } + # source://pdf-reader//lib/pdf/reader/cmap.rb#53 + sig { params(data: ::String).void } def initialize(data); end # Convert a glyph code into one or more Codepoints. # # Returns an array of Integers. # - # source://pdf-reader//lib/pdf/reader/cmap.rb#64 - sig { params(c: Integer).returns(T::Array[Integer]) } + # + # source://pdf-reader//lib/pdf/reader/cmap.rb#68 + sig { params(c: ::Integer).returns(T::Array[::Integer]) } def decode(c); end - # Returns the value of attribute map. - # - # source://pdf-reader//lib/pdf/reader/cmap.rb#49 + # source://pdf-reader//lib/pdf/reader/cmap.rb#50 + sig { returns(T::Hash[::Integer, T::Array[::Integer]]) } def map; end - # source://pdf-reader//lib/pdf/reader/cmap.rb#56 - sig { returns(Integer) } + # source://pdf-reader//lib/pdf/reader/cmap.rb#59 + sig { returns(::Integer) } def size; end private - # source://pdf-reader//lib/pdf/reader/cmap.rb#158 - sig { params(start_code: String, end_code: String, dst: String).void } + # source://pdf-reader//lib/pdf/reader/cmap.rb#168 + sig { params(start_code: ::String, end_code: ::String, dst: ::String).void } def bfrange_type_one(start_code, end_code, dst); end - # source://pdf-reader//lib/pdf/reader/cmap.rb#171 - sig { params(start_code: String, end_code: String, dst: T::Array[String]).void } + # source://pdf-reader//lib/pdf/reader/cmap.rb#182 + sig { params(start_code: ::String, end_code: ::String, dst: T::Array[::String]).void } def bfrange_type_two(start_code, end_code, dst); end - # source://pdf-reader//lib/pdf/reader/cmap.rb#99 - sig { params(instructions: String).returns(PDF::Reader::Parser) } + # source://pdf-reader//lib/pdf/reader/cmap.rb#105 + sig { params(instructions: ::String).returns(::PDF::Reader::Parser) } def build_parser(instructions); end - # source://pdf-reader//lib/pdf/reader/cmap.rb#136 - sig { params(instructions: T::Array[String]).void } + # source://pdf-reader//lib/pdf/reader/cmap.rb#144 + sig { params(instructions: T::Array[::String]).void } def process_bfchar_instructions(instructions); end - # source://pdf-reader//lib/pdf/reader/cmap.rb#146 - sig { params(instructions: T::Array[T.any(T::Array[String], String)]).void } + # source://pdf-reader//lib/pdf/reader/cmap.rb#155 + sig { params(instructions: T::Array[T.any(::String, T::Array[::String])]).void } def process_bfrange_instructions(instructions); end - # source://pdf-reader//lib/pdf/reader/cmap.rb#70 - sig { params(data: String, initial_mode: Symbol).void } + # source://pdf-reader//lib/pdf/reader/cmap.rb#75 + sig { params(data: ::String, initial_mode: ::Symbol).void } def process_data(data, initial_mode = T.unsafe(nil)); end # The following includes some manual decoding of UTF-16BE strings into unicode codepoints. In @@ -689,8 +729,9 @@ class PDF::Reader::CMap # However, some cmaps contain broken surrogate pairs and the ruby encoding support raises an # exception when we try converting broken UTF-16 to UTF-8 # - # source://pdf-reader//lib/pdf/reader/cmap.rb#112 - sig { params(str: String).returns(T::Array[Integer]) } + # + # source://pdf-reader//lib/pdf/reader/cmap.rb#119 + sig { params(str: ::String).returns(T::Array[::Integer]) } def str_to_int(str); end end @@ -709,35 +750,35 @@ PDF::Reader::CMap::CMAP_KEYWORDS = T.let(T.unsafe(nil), Hash) class PDF::Reader::CidWidths extend ::Forwardable - # @return [CidWidths] a new instance of CidWidths - # - # source://pdf-reader//lib/pdf/reader/cid_widths.rb#21 - sig { params(default: Numeric, array: T::Array[Numeric]).void } + # source://pdf-reader//lib/pdf/reader/cid_widths.rb#22 + sig { params(default: ::Numeric, array: T::Array[::Numeric]).void } def initialize(default, array); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/cid_widths.rb#19 def [](*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/cid_widths.rb#19 def fetch(*args, **_arg1, &block); end private - # source://pdf-reader//lib/pdf/reader/cid_widths.rb#27 - sig { params(default: Numeric, array: T::Array[Numeric]).returns(T::Hash[Numeric, Numeric]) } + # source://pdf-reader//lib/pdf/reader/cid_widths.rb#29 + sig { params(default: ::Numeric, array: T::Array[::Numeric]).returns(T::Hash[::Numeric, ::Numeric]) } def parse_array(default, array); end # this is the form 10 [234 63 234 346 47 234] where width of index 10 is # 234, index 11 is 63, etc # - # source://pdf-reader//lib/pdf/reader/cid_widths.rb#46 - sig { params(first: Integer, widths: T::Array[Numeric]).returns(T::Hash[Numeric, Numeric]) } + # + # source://pdf-reader//lib/pdf/reader/cid_widths.rb#50 + sig { params(first: ::Integer, widths: T::Array[::Numeric]).returns(T::Hash[::Numeric, ::Numeric]) } def parse_first_form(first, widths); end # this is the form 10 20 123 where all index between 10 and 20 have width 123 # - # source://pdf-reader//lib/pdf/reader/cid_widths.rb#54 - sig { params(first: Integer, final: Integer, width: Numeric).returns(T::Hash[Numeric, Numeric]) } + # + # source://pdf-reader//lib/pdf/reader/cid_widths.rb#60 + sig { params(first: ::Integer, final: ::Integer, width: ::Numeric).returns(T::Hash[::Numeric, ::Numeric]) } def parse_second_form(first, final, width); end end @@ -746,14 +787,12 @@ end # # source://pdf-reader//lib/pdf/reader/encoding.rb#33 class PDF::Reader::Encoding - # @return [Encoding] a new instance of Encoding - # - # source://pdf-reader//lib/pdf/reader/encoding.rb#40 - sig { params(enc: T.untyped).void } + # source://pdf-reader//lib/pdf/reader/encoding.rb#42 + sig { params(enc: T.nilable(T.any(::Symbol, T::Hash[::Symbol, T.untyped]))).void } def initialize(enc); end - # source://pdf-reader//lib/pdf/reader/encoding.rb#88 - sig { returns(T::Hash[Integer, Integer]) } + # source://pdf-reader//lib/pdf/reader/encoding.rb#96 + sig { returns(T::Hash[::Integer, ::Integer]) } def differences; end # set the differences table for this encoding. should be an array in the following format: @@ -766,8 +805,8 @@ class PDF::Reader::Encoding # # [25, :A, :B] # - # source://pdf-reader//lib/pdf/reader/encoding.rb#71 - sig { params(diff: T::Array[T.any(Integer, Symbol)]).returns(T::Hash[Integer, Integer]) } + # source://pdf-reader//lib/pdf/reader/encoding.rb#78 + sig { params(diff: T::Array[T.any(::Integer, ::Symbol)]).returns(T::Hash[::Integer, ::Integer]) } def differences=(diff); end # convert an integer glyph code into an Adobe glyph name. @@ -775,12 +814,13 @@ class PDF::Reader::Encoding # int_to_name(65) # => [:A] # - # source://pdf-reader//lib/pdf/reader/encoding.rb#121 - sig { params(glyph_code: Integer).returns(T::Array[Symbol]) } + # + # source://pdf-reader//lib/pdf/reader/encoding.rb#132 + sig { params(glyph_code: ::Integer).returns(T::Array[::Symbol]) } def int_to_name(glyph_code); end - # source://pdf-reader//lib/pdf/reader/encoding.rb#112 - sig { params(glyph_code: Integer).returns(String) } + # source://pdf-reader//lib/pdf/reader/encoding.rb#122 + sig { params(glyph_code: ::Integer).returns(::String) } def int_to_utf8_string(glyph_code); end # convert the specified string to utf8 @@ -794,19 +834,19 @@ class PDF::Reader::Encoding # * pack the final array of Unicode codepoints into a utf-8 string # * mark the string as utf-8 if we're running on a M17N aware VM # - # source://pdf-reader//lib/pdf/reader/encoding.rb#104 - sig { params(str: String).returns(String) } + # + # source://pdf-reader//lib/pdf/reader/encoding.rb#113 + sig { params(str: ::String).returns(::String) } def to_utf8(str); end - # Returns the value of attribute unpack. - # - # source://pdf-reader//lib/pdf/reader/encoding.rb#38 + # source://pdf-reader//lib/pdf/reader/encoding.rb#39 + sig { returns(::String) } def unpack; end private - # source://pdf-reader//lib/pdf/reader/encoding.rb#168 - sig { params(str: String).returns(String) } + # source://pdf-reader//lib/pdf/reader/encoding.rb#189 + sig { params(str: ::String).returns(::String) } def convert_to_utf8(str); end # returns a hash that: @@ -815,37 +855,35 @@ class PDF::Reader::Encoding # # Each specific encoding will change this default as required for their glyphs # - # source://pdf-reader//lib/pdf/reader/encoding.rb#140 - sig { returns(T::Hash[Integer, Integer]) } + # source://pdf-reader//lib/pdf/reader/encoding.rb#157 + sig { returns(T::Hash[::Integer, ::Integer]) } def default_mapping; end - # source://pdf-reader//lib/pdf/reader/encoding.rb#183 - sig { params(enc: T.untyped).returns(T.nilable(String)) } + # source://pdf-reader//lib/pdf/reader/encoding.rb#206 + sig { params(enc: ::Symbol).returns(T.nilable(::String)) } def get_mapping_file(enc); end - # source://pdf-reader//lib/pdf/reader/encoding.rb#174 - sig { params(enc: T.untyped).returns(String) } + # source://pdf-reader//lib/pdf/reader/encoding.rb#196 + sig { params(enc: ::Symbol).returns(::String) } def get_unpack(enc); end - # source://pdf-reader//lib/pdf/reader/encoding.rb#204 - sig { returns(PDF::Reader::GlyphHash) } + # source://pdf-reader//lib/pdf/reader/encoding.rb#228 + sig { returns(::PDF::Reader::GlyphHash) } def glyphlist; end - # source://pdf-reader//lib/pdf/reader/encoding.rb#149 - sig { params(glyph_code: Integer).returns(String) } + # source://pdf-reader//lib/pdf/reader/encoding.rb#167 + sig { params(glyph_code: ::Integer).returns(::String) } def internal_int_to_utf8_string(glyph_code); end - # source://pdf-reader//lib/pdf/reader/encoding.rb#161 - sig { params(times: Integer).returns(String) } + # source://pdf-reader//lib/pdf/reader/encoding.rb#181 + sig { params(times: ::Integer).returns(::String) } def little_boxes(times); end - # source://pdf-reader//lib/pdf/reader/encoding.rb#208 - sig { params(file: String).void } + # source://pdf-reader//lib/pdf/reader/encoding.rb#233 + sig { params(file: ::String).void } def load_mapping(file); end - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/encoding.rb#157 + # source://pdf-reader//lib/pdf/reader/encoding.rb#176 sig { returns(T::Boolean) } def utf8_conversion_impossible?; end end @@ -853,15 +891,13 @@ end # source://pdf-reader//lib/pdf/reader/encoding.rb#34 PDF::Reader::Encoding::CONTROL_CHARS = T.let(T.unsafe(nil), Array) -# ▯ -# # source://pdf-reader//lib/pdf/reader/encoding.rb#36 PDF::Reader::Encoding::UNKNOWN_CHAR = T.let(T.unsafe(nil), Integer) # an exception that is raised when a PDF is encrypted and we don't have the # necessary data to decrypt it # -# source://pdf-reader//lib/pdf/reader/error.rb#84 +# source://pdf-reader//lib/pdf/reader/error.rb#90 class PDF::Reader::EncryptedPDFError < ::PDF::Reader::UnsupportedFeatureError; end # An internal PDF::Reader class that helps to verify various parts of the PDF file @@ -872,38 +908,38 @@ class PDF::Reader::Error class << self # @raise [MalformedPDFError] # - # source://pdf-reader//lib/pdf/reader/error.rb#46 + # source://pdf-reader//lib/pdf/reader/error.rb#49 sig { params(lvalue: T.untyped, rvalue: T.untyped).returns(T.untyped) } def assert_equal(lvalue, rvalue); end # @raise [MalformedPDFError] # - # source://pdf-reader//lib/pdf/reader/error.rb#34 + # source://pdf-reader//lib/pdf/reader/error.rb#35 sig { params(lvalue: T.untyped, rvalue: T.untyped, chars: T.untyped).returns(T.untyped) } def str_assert(lvalue, rvalue, chars = T.unsafe(nil)); end # @raise [MalformedPDFError] # - # source://pdf-reader//lib/pdf/reader/error.rb#40 + # source://pdf-reader//lib/pdf/reader/error.rb#42 sig { params(lvalue: T.untyped, rvalue: T.untyped, chars: T.untyped).returns(T.untyped) } def str_assert_not(lvalue, rvalue, chars = T.unsafe(nil)); end # @raise [ArgumentError] # - # source://pdf-reader//lib/pdf/reader/error.rb#58 - sig { params(object: Object, name: String).void } + # source://pdf-reader//lib/pdf/reader/error.rb#64 + sig { params(object: ::Object, name: ::String).void } def validate_not_nil(object, name); end # @raise [ArgumentError] # - # source://pdf-reader//lib/pdf/reader/error.rb#50 - sig { params(object: Object, name: String, klass: Module).void } + # source://pdf-reader//lib/pdf/reader/error.rb#54 + sig { params(object: ::Object, name: ::String, klass: ::Module).void } def validate_type(object, name, klass); end # @raise [MalformedPDFError] # - # source://pdf-reader//lib/pdf/reader/error.rb#54 - sig { params(object: Object, name: String, klass: Module).void } + # source://pdf-reader//lib/pdf/reader/error.rb#59 + sig { params(object: ::Object, name: ::String, klass: ::Module).void } def validate_type_as_malformed(object, name, klass); end end end @@ -911,28 +947,22 @@ end # Utility class used to avoid modifying the underlying TextRun objects while we're # looking for duplicates # -# source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#56 +# source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#58 class PDF::Reader::EventPoint - # @return [EventPoint] a new instance of EventPoint - # - # source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#62 - sig { params(x: Numeric, run: PDF::Reader::TextRun).void } + # source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#67 + sig { params(x: ::Numeric, run: ::PDF::Reader::TextRun).void } def initialize(x, run); end - # Returns the value of attribute run. - # - # source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#60 + # source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#64 + sig { returns(::PDF::Reader::TextRun) } def run; end - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#67 + # source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#73 sig { returns(T::Boolean) } def start?; end - # Returns the value of attribute x. - # - # source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#58 + # source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#61 + sig { returns(::Numeric) } def x; end end @@ -948,8 +978,9 @@ module PDF::Reader::Filter # Filters that are only used to encode image data are accepted, but the data is # returned untouched. At this stage PDF::Reader has no need to decode images. # - # source://pdf-reader//lib/pdf/reader/filter.rb#44 - sig { params(name: Symbol, options: T::Hash[T.untyped, T.untyped]).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/filter.rb#45 + sig { params(name: ::Symbol, options: T::Hash[T.untyped, T.untyped]).returns(T.untyped) } def with(name, options = T.unsafe(nil)); end end end @@ -958,17 +989,16 @@ end # # source://pdf-reader//lib/pdf/reader/filter/ascii85.rb#10 class PDF::Reader::Filter::Ascii85 - # @return [Ascii85] a new instance of Ascii85 - # - # source://pdf-reader//lib/pdf/reader/filter/ascii85.rb#12 + # source://pdf-reader//lib/pdf/reader/filter/ascii85.rb#13 sig { params(options: T::Hash[T.untyped, T.untyped]).void } def initialize(options = T.unsafe(nil)); end # Decode the specified data using the Ascii85 algorithm. Relies on the AScii85 # rubygem. # - # source://pdf-reader//lib/pdf/reader/filter/ascii85.rb#20 - sig { params(data: String).returns(String) } + # + # source://pdf-reader//lib/pdf/reader/filter/ascii85.rb#22 + sig { params(data: ::String).returns(::String) } def filter(data); end end @@ -976,16 +1006,15 @@ end # # source://pdf-reader//lib/pdf/reader/filter/ascii_hex.rb#9 class PDF::Reader::Filter::AsciiHex - # @return [AsciiHex] a new instance of AsciiHex - # - # source://pdf-reader//lib/pdf/reader/filter/ascii_hex.rb#11 + # source://pdf-reader//lib/pdf/reader/filter/ascii_hex.rb#12 sig { params(options: T::Hash[T.untyped, T.untyped]).void } def initialize(options = T.unsafe(nil)); end # Decode the specified data using the AsciiHex algorithm. # - # source://pdf-reader//lib/pdf/reader/filter/ascii_hex.rb#18 - sig { params(data: String).returns(String) } + # + # source://pdf-reader//lib/pdf/reader/filter/ascii_hex.rb#20 + sig { params(data: ::String).returns(::String) } def filter(data); end end @@ -994,27 +1023,26 @@ end # # source://pdf-reader//lib/pdf/reader/filter/depredict.rb#9 class PDF::Reader::Filter::Depredict - # @return [Depredict] a new instance of Depredict - # - # source://pdf-reader//lib/pdf/reader/filter/depredict.rb#11 + # source://pdf-reader//lib/pdf/reader/filter/depredict.rb#12 sig { params(options: T::Hash[T.untyped, T.untyped]).void } def initialize(options = T.unsafe(nil)); end # Streams can be preprocessed to improve compression. This reverses the # preprocessing # - # source://pdf-reader//lib/pdf/reader/filter/depredict.rb#19 - sig { params(data: String).returns(String) } + # + # source://pdf-reader//lib/pdf/reader/filter/depredict.rb#21 + sig { params(data: ::String).returns(::String) } def filter(data); end private - # source://pdf-reader//lib/pdf/reader/filter/depredict.rb#63 - sig { params(data: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/filter/depredict.rb#67 + sig { params(data: T.untyped).returns(::String) } def png_depredict(data); end - # source://pdf-reader//lib/pdf/reader/filter/depredict.rb#37 - sig { params(data: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/filter/depredict.rb#40 + sig { params(data: T.untyped).returns(::String) } def tiff_depredict(data); end end @@ -1022,32 +1050,26 @@ end # # source://pdf-reader//lib/pdf/reader/filter/flate.rb#11 class PDF::Reader::Filter::Flate - # @return [Flate] a new instance of Flate - # - # source://pdf-reader//lib/pdf/reader/filter/flate.rb#16 + # source://pdf-reader//lib/pdf/reader/filter/flate.rb#17 sig { params(options: T::Hash[T.untyped, T.untyped]).void } def initialize(options = T.unsafe(nil)); end # Decode the specified data with the Zlib compression algorithm # - # source://pdf-reader//lib/pdf/reader/filter/flate.rb#22 - sig { params(data: String).returns(String) } + # source://pdf-reader//lib/pdf/reader/filter/flate.rb#24 + sig { params(data: ::String).returns(::String) } def filter(data); end private - # source://pdf-reader//lib/pdf/reader/filter/flate.rb#34 + # source://pdf-reader//lib/pdf/reader/filter/flate.rb#37 sig { params(data: T.untyped).returns(T.untyped) } def zlib_inflate(data); end end -# Zlib::MAX_WBITS + 32 -# # source://pdf-reader//lib/pdf/reader/filter/flate.rb#13 PDF::Reader::Filter::Flate::ZLIB_AUTO_DETECT_ZLIB_OR_GZIP = T.let(T.unsafe(nil), Integer) -# Zlib::MAX_WBITS * -1 -# # source://pdf-reader//lib/pdf/reader/filter/flate.rb#14 PDF::Reader::Filter::Flate::ZLIB_RAW_DEFLATE = T.let(T.unsafe(nil), Integer) @@ -1055,16 +1077,14 @@ PDF::Reader::Filter::Flate::ZLIB_RAW_DEFLATE = T.let(T.unsafe(nil), Integer) # # source://pdf-reader//lib/pdf/reader/filter/lzw.rb#9 class PDF::Reader::Filter::Lzw - # @return [Lzw] a new instance of Lzw - # - # source://pdf-reader//lib/pdf/reader/filter/lzw.rb#11 + # source://pdf-reader//lib/pdf/reader/filter/lzw.rb#12 sig { params(options: T::Hash[T.untyped, T.untyped]).void } def initialize(options = T.unsafe(nil)); end # Decode the specified data with the LZW compression algorithm # - # source://pdf-reader//lib/pdf/reader/filter/lzw.rb#17 - sig { params(data: String).returns(String) } + # source://pdf-reader//lib/pdf/reader/filter/lzw.rb#19 + sig { params(data: ::String).returns(::String) } def filter(data); end end @@ -1072,14 +1092,12 @@ end # # source://pdf-reader//lib/pdf/reader/filter/null.rb#8 class PDF::Reader::Filter::Null - # @return [Null] a new instance of Null - # - # source://pdf-reader//lib/pdf/reader/filter/null.rb#9 + # source://pdf-reader//lib/pdf/reader/filter/null.rb#10 sig { params(options: T::Hash[T.untyped, T.untyped]).void } def initialize(options = T.unsafe(nil)); end - # source://pdf-reader//lib/pdf/reader/filter/null.rb#13 - sig { params(data: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/filter/null.rb#15 + sig { params(data: ::String).returns(::String) } def filter(data); end end @@ -1087,290 +1105,249 @@ end # # source://pdf-reader//lib/pdf/reader/filter/run_length.rb#9 class PDF::Reader::Filter::RunLength - # @return [RunLength] a new instance of RunLength - # - # source://pdf-reader//lib/pdf/reader/filter/run_length.rb#11 + # source://pdf-reader//lib/pdf/reader/filter/run_length.rb#12 sig { params(options: T::Hash[T.untyped, T.untyped]).void } def initialize(options = T.unsafe(nil)); end # Decode the specified data with the RunLengthDecode compression algorithm # - # source://pdf-reader//lib/pdf/reader/filter/run_length.rb#17 - sig { params(data: String).returns(String) } + # source://pdf-reader//lib/pdf/reader/filter/run_length.rb#19 + sig { params(data: ::String).returns(::String) } def filter(data); end end # Represents a single font PDF object and provides some useful methods # for extracting info. Mainly used for converting text to UTF-8. # -# source://pdf-reader//lib/pdf/reader/font.rb#36 +# source://pdf-reader//lib/pdf/reader/font.rb#37 class PDF::Reader::Font - # @return [Font] a new instance of Font - # - # source://pdf-reader//lib/pdf/reader/font.rb#41 - sig { params(ohash: PDF::Reader::ObjectHash, obj: T::Hash[Symbol, T.untyped]).void } + # source://pdf-reader//lib/pdf/reader/font.rb#80 + sig { params(ohash: ::PDF::Reader::ObjectHash, obj: T::Hash[::Symbol, T.untyped]).void } def initialize(ohash, obj); end - # Returns the value of attribute basefont. - # - # source://pdf-reader//lib/pdf/reader/font.rb#38 + # source://pdf-reader//lib/pdf/reader/font.rb#68 + sig { returns(T.nilable(::Symbol)) } def basefont; end - # Returns the value of attribute cid_default_width. - # - # source://pdf-reader//lib/pdf/reader/font.rb#38 + # source://pdf-reader//lib/pdf/reader/font.rb#77 + sig { returns(::Numeric) } def cid_default_width; end - # Returns the value of attribute cid_widths. - # - # source://pdf-reader//lib/pdf/reader/font.rb#38 + # source://pdf-reader//lib/pdf/reader/font.rb#74 + sig { returns(T::Array[::Numeric]) } def cid_widths; end - # Returns the value of attribute descendantfonts. - # - # source://pdf-reader//lib/pdf/reader/font.rb#37 + # source://pdf-reader//lib/pdf/reader/font.rb#53 + sig { returns(T::Array[::PDF::Reader::Font]) } def descendantfonts; end - # Sets the attribute descendantfonts - # - # @param value the value to set the attribute descendantfonts to. - # - # source://pdf-reader//lib/pdf/reader/font.rb#37 + # source://pdf-reader//lib/pdf/reader/font.rb#53 def descendantfonts=(_arg0); end - # Returns the value of attribute encoding. - # - # source://pdf-reader//lib/pdf/reader/font.rb#37 + # source://pdf-reader//lib/pdf/reader/font.rb#50 + sig { returns(::PDF::Reader::Encoding) } def encoding; end - # Sets the attribute encoding - # - # @param value the value to set the attribute encoding to. - # - # source://pdf-reader//lib/pdf/reader/font.rb#37 + # source://pdf-reader//lib/pdf/reader/font.rb#50 def encoding=(_arg0); end - # Returns the value of attribute first_char. - # - # source://pdf-reader//lib/pdf/reader/font.rb#38 + # source://pdf-reader//lib/pdf/reader/font.rb#62 + sig { returns(T.nilable(::Integer)) } def first_char; end - # Returns the value of attribute font_descriptor. - # - # source://pdf-reader//lib/pdf/reader/font.rb#38 + # source://pdf-reader//lib/pdf/reader/font.rb#71 + sig { returns(T.nilable(::PDF::Reader::FontDescriptor)) } def font_descriptor; end # looks up the specified codepoint and returns a value that is in (pdf) # glyph space, which is 1000 glyph units = 1 text space unit # - # source://pdf-reader//lib/pdf/reader/font.rb#68 - sig { params(code_point: T.any(String, Integer)).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/font.rb#119 + sig { params(code_point: T.any(::Integer, ::String)).returns(::Numeric) } def glyph_width(code_point); end # In most cases glyph width is converted into text space with a simple divide by 1000. # # However, Type3 fonts provide their own FontMatrix that's used for the transformation. # - # source://pdf-reader//lib/pdf/reader/font.rb#81 + # + # source://pdf-reader//lib/pdf/reader/font.rb#133 + sig { params(code_point: T.any(::Integer, ::String)).returns(::Numeric) } def glyph_width_in_text_space(code_point); end - # Returns the value of attribute last_char. - # - # source://pdf-reader//lib/pdf/reader/font.rb#38 + # source://pdf-reader//lib/pdf/reader/font.rb#65 + sig { returns(T.nilable(::Integer)) } def last_char; end - # Returns the value of attribute subtype. - # - # source://pdf-reader//lib/pdf/reader/font.rb#37 + # source://pdf-reader//lib/pdf/reader/font.rb#47 + sig { returns(T.nilable(::Symbol)) } def subtype; end - # Sets the attribute subtype - # - # @param value the value to set the attribute subtype to. - # - # source://pdf-reader//lib/pdf/reader/font.rb#37 + # source://pdf-reader//lib/pdf/reader/font.rb#47 def subtype=(_arg0); end - # source://pdf-reader//lib/pdf/reader/font.rb#54 - sig { params(params: T.any(Integer, String, T::Array[T.untyped])).returns(String) } + # source://pdf-reader//lib/pdf/reader/font.rb#103 + sig { params(params: T.any(::Integer, ::String, T::Array[T.any(::Integer, ::String)])).returns(::String) } def to_utf8(params); end - # Returns the value of attribute tounicode. - # - # source://pdf-reader//lib/pdf/reader/font.rb#37 + # source://pdf-reader//lib/pdf/reader/font.rb#56 + sig { returns(T.nilable(::PDF::Reader::CMap)) } def tounicode; end - # Sets the attribute tounicode - # - # @param value the value to set the attribute tounicode to. - # - # source://pdf-reader//lib/pdf/reader/font.rb#37 + # source://pdf-reader//lib/pdf/reader/font.rb#56 def tounicode=(_arg0); end - # source://pdf-reader//lib/pdf/reader/font.rb#62 - sig { params(data: String).returns(T::Array[T.nilable(T.any(Numeric, String))]) } + # source://pdf-reader//lib/pdf/reader/font.rb#112 + sig { params(data: ::String).returns(T.nilable(T::Array[T.nilable(T.any(::Float, ::Integer, ::String))])) } def unpack(data); end - # Returns the value of attribute widths. - # - # source://pdf-reader//lib/pdf/reader/font.rb#38 + # source://pdf-reader//lib/pdf/reader/font.rb#59 + sig { returns(T::Array[::Numeric]) } def widths; end private - # source://pdf-reader//lib/pdf/reader/font.rb#152 + # source://pdf-reader//lib/pdf/reader/font.rb#208 + sig { params(obj: T::Hash[::Symbol, T.untyped]).returns(::PDF::Reader::Encoding) } def build_encoding(obj); end - # source://pdf-reader//lib/pdf/reader/font.rb#126 - sig do - returns(T.any( - PDF::Reader::WidthCalculator::BuiltIn, - PDF::Reader::WidthCalculator::Composite, - PDF::Reader::WidthCalculator::TrueType, - PDF::Reader::WidthCalculator::TypeOneOrThree, - PDF::Reader::WidthCalculator::TypeZero, - )) - end + # source://pdf-reader//lib/pdf/reader/font.rb#181 + sig { returns(T.untyped) } def build_width_calculator; end - # source://pdf-reader//lib/pdf/reader/font.rb#115 - sig { params(font_name: Symbol).returns(PDF::Reader::Encoding) } + # source://pdf-reader//lib/pdf/reader/font.rb#169 + sig { params(font_name: T.nilable(T.any(::String, ::Symbol))).returns(::PDF::Reader::Encoding) } def default_encoding(font_name); end - # source://pdf-reader//lib/pdf/reader/font.rb#166 - sig { params(obj: T.untyped).void } + # source://pdf-reader//lib/pdf/reader/font.rb#223 + sig { params(obj: T::Hash[::Symbol, T.untyped]).void } def extract_base_info(obj); end - # source://pdf-reader//lib/pdf/reader/font.rb#207 - sig { params(obj: T.untyped).void } + # source://pdf-reader//lib/pdf/reader/font.rb#267 + sig { params(obj: T::Hash[::Symbol, T.untyped]).void } def extract_descendants(obj); end - # source://pdf-reader//lib/pdf/reader/font.rb#196 - sig { params(obj: T.untyped).void } + # source://pdf-reader//lib/pdf/reader/font.rb#255 + sig { params(obj: T::Hash[::Symbol, T.untyped]).void } def extract_descriptor(obj); end - # source://pdf-reader//lib/pdf/reader/font.rb#188 + # source://pdf-reader//lib/pdf/reader/font.rb#246 + sig { params(obj: T::Hash[::Symbol, T.untyped]).void } def extract_type3_info(obj); end # Only valid for Type3 fonts # - # source://pdf-reader//lib/pdf/reader/font.rb#96 + # source://pdf-reader//lib/pdf/reader/font.rb#149 + sig { params(x: ::Numeric, y: ::Numeric).returns([::Numeric, ::Numeric]) } def font_matrix_transform(x, y); end - # source://pdf-reader//lib/pdf/reader/font.rb#221 - sig { params(params: T.any(Integer, String, T::Array[T.untyped])).returns(String) } - def to_utf8_via_cmap(params); end + # source://pdf-reader//lib/pdf/reader/font.rb#282 + sig do + params( + params: T.any(::Integer, ::String, T::Array[T.any(::Integer, ::String)]), + cmap: ::PDF::Reader::CMap + ).returns(::String) + end + def to_utf8_via_cmap(params, cmap); end - # source://pdf-reader//lib/pdf/reader/font.rb#236 - sig { params(params: T.any(Integer, String, T::Array[T.untyped])).returns(String) } + # source://pdf-reader//lib/pdf/reader/font.rb#298 + sig { params(params: T.any(::Integer, ::String, T::Array[T.any(::Integer, ::String)])).returns(::String) } def to_utf8_via_encoding(params); end + + # source://pdf-reader//lib/pdf/reader/font.rb#314 + sig { params(unpack_me: ::String, unpack_arg: ::String).returns(T::Array[::Integer]) } + def unpack_string_to_array_of_ints(unpack_me, unpack_arg); end end # Font descriptors are outlined in Section 9.8, PDF 32000-1:2008, pp 281-288 # # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#10 class PDF::Reader::FontDescriptor - # @return [FontDescriptor] a new instance of FontDescriptor - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#17 - sig { params(ohash: PDF::Reader::ObjectHash, fd_hash: T::Hash[T.untyped, T.untyped]).void } + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#61 + sig { params(ohash: ::PDF::Reader::ObjectHash, fd_hash: T::Hash[T.untyped, T.untyped]).void } def initialize(ohash, fd_hash); end - # Returns the value of attribute ascent. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#31 + sig { returns(::Numeric) } def ascent; end - # Returns the value of attribute avg_width. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#40 + sig { returns(::Numeric) } def avg_width; end - # Returns the value of attribute cap_height. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#28 + sig { returns(::Numeric) } def cap_height; end - # Returns the value of attribute descent. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#34 + sig { returns(::Numeric) } def descent; end - # Returns the value of attribute font_bounding_box. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#25 + sig { returns(T::Array[::Numeric]) } def font_bounding_box; end - # Returns the value of attribute font_family. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#16 + sig { returns(T.nilable(::String)) } def font_family; end - # Returns the value of attribute font_flags. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#58 + sig { returns(::Integer) } def font_flags; end - # Returns the value of attribute font_name. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#13 + sig { returns(::String) } def font_name; end - # Returns the value of attribute font_stretch. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#19 + sig { returns(::Symbol) } def font_stretch; end - # Returns the value of attribute font_weight. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#22 + sig { returns(::Numeric) } def font_weight; end # PDF states that a glyph is 1000 units wide, true type doesn't enforce # any behavior, but uses units/em to define how wide the 'M' is (the widest letter) # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#68 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#118 + sig { returns(::Numeric) } def glyph_to_pdf_scale_factor; end - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#50 - sig { params(char_code: Integer).returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#99 + sig { params(char_code: ::Integer).returns(::Numeric) } def glyph_width(char_code); end - # Returns the value of attribute italic_angle. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#49 + sig { returns(T.nilable(::Numeric)) } def italic_angle; end - # Returns the value of attribute leading. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#37 + sig { returns(::Numeric) } def leading; end - # Returns the value of attribute max_width. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#43 + sig { returns(::Numeric) } def max_width; end - # Returns the value of attribute missing_width. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#46 + sig { returns(::Numeric) } def missing_width; end - # Returns the value of attribute stem_v. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#52 + sig { returns(T.nilable(::Numeric)) } def stem_v; end - # Returns the value of attribute x_height. - # - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#12 + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#55 + sig { returns(T.nilable(::Numeric)) } def x_height; end private - # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#79 - sig { returns(TTFunk::File) } + # @raise [MalformedPDFError] + # + # source://pdf-reader//lib/pdf/reader/font_descriptor.rb#130 + sig { returns(::TTFunk::File) } def ttf_program_stream; end end @@ -1385,13 +1362,11 @@ end class PDF::Reader::FormXObject extend ::Forwardable - # @return [FormXObject] a new instance of FormXObject - # - # source://pdf-reader//lib/pdf/reader/form_xobject.rb#31 - sig { params(page: T.untyped, xobject: T.untyped, options: T.untyped).void } + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#33 + sig { params(page: T.untyped, xobject: T.untyped, options: T::Hash[T.untyped, T.untyped]).void } def initialize(page, xobject, options = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#23 def color_spaces(*args, **_arg1, &block); end # return a hash of fonts used on this form. @@ -1401,33 +1376,35 @@ class PDF::Reader::FormXObject # The values are a PDF::Reader::Font instances that provide access # to most available metrics for each font. # - # source://pdf-reader//lib/pdf/reader/form_xobject.rb#45 + # + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#48 sig { returns(T.untyped) } def font_objects; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#24 def fonts(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#25 def graphic_states(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#26 def patterns(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#27 def procedure_sets(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#28 def properties(*args, **_arg1, &block); end # returns the raw content stream for this page. This is plumbing, nothing to # see here unless you're a PDF nerd like me. # - # source://pdf-reader//lib/pdf/reader/form_xobject.rb#67 + # + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#72 sig { returns(T.untyped) } def raw_content; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#29 def shadings(*args, **_arg1, &block); end # processes the raw content stream for this form in sequential order and @@ -1435,43 +1412,44 @@ class PDF::Reader::FormXObject # # See the comments on PDF::Reader::Page#walk for more detail. # - # source://pdf-reader//lib/pdf/reader/form_xobject.rb#57 + # + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#61 sig { params(receivers: T.untyped).returns(T.untyped) } def walk(*receivers); end - # Returns the value of attribute xobject. - # - # source://pdf-reader//lib/pdf/reader/form_xobject.rb#20 + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#21 + sig { returns(T.untyped) } def xobject; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#30 def xobjects(*args, **_arg1, &block); end private - # source://pdf-reader//lib/pdf/reader/form_xobject.rb#89 + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#98 sig { returns(T.untyped) } def cached_tokens_key; end - # source://pdf-reader//lib/pdf/reader/form_xobject.rb#79 - sig { params(receivers: T.untyped, name: T.untyped, params: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#86 + sig { params(receivers: T.untyped, name: T.untyped, params: T::Array[T.untyped]).returns(T.untyped) } def callback(receivers, name, params = T.unsafe(nil)); end - # source://pdf-reader//lib/pdf/reader/form_xobject.rb#105 + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#116 sig { params(receivers: T.untyped, instructions: T.untyped).returns(T.untyped) } def content_stream(receivers, instructions); end - # source://pdf-reader//lib/pdf/reader/form_xobject.rb#85 + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#93 sig { returns(T.untyped) } def content_stream_md5; end # Returns the resources that accompany this form. # - # source://pdf-reader//lib/pdf/reader/form_xobject.rb#75 + # + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#81 sig { returns(T.untyped) } def resources; end - # source://pdf-reader//lib/pdf/reader/form_xobject.rb#93 + # source://pdf-reader//lib/pdf/reader/form_xobject.rb#103 sig { returns(T.untyped) } def tokens; end end @@ -1481,12 +1459,7 @@ end # # source://pdf-reader//lib/pdf/reader/glyph_hash.rb#34 class PDF::Reader::GlyphHash - let T.unsafe(nil), T.nilable(T::Hash[Symbol, Integer]) - let T.unsafe(nil), T.nilable(T::Hash[Integer, T::Array[Symbol]]) - - # @return [GlyphHash] a new instance of GlyphHash - # - # source://pdf-reader//lib/pdf/reader/glyph_hash.rb#35 + # source://pdf-reader//lib/pdf/reader/glyph_hash.rb#54 sig { void } def initialize; end @@ -1510,8 +1483,9 @@ class PDF::Reader::GlyphHash # h.name_to_unicode(:34) # => 34 # - # source://pdf-reader//lib/pdf/reader/glyph_hash.rb#70 - sig { params(name: T.nilable(Symbol)).returns(T.nilable(Integer)) } + # + # source://pdf-reader//lib/pdf/reader/glyph_hash.rb#90 + sig { params(name: T.nilable(::Symbol)).returns(T.nilable(::Integer)) } def name_to_unicode(name); end # attempt to convert a Unicode code point to the equivilant PDF Name. Returns nil @@ -1528,8 +1502,9 @@ class PDF::Reader::GlyphHash # h.unicode_to_name(34) # => [:34] # - # source://pdf-reader//lib/pdf/reader/glyph_hash.rb#107 - sig { params(codepoint: T.nilable(Integer)).returns(T::Array[Symbol]) } + # + # source://pdf-reader//lib/pdf/reader/glyph_hash.rb#128 + sig { params(codepoint: ::Integer).returns(T::Array[::Symbol]) } def unicode_to_name(codepoint); end private @@ -1538,19 +1513,39 @@ class PDF::Reader::GlyphHash # a text file supplied by Adobe at: # https://github.com/adobe-type-tools/agl-aglfn # - # source://pdf-reader//lib/pdf/reader/glyph_hash.rb#116 - sig { returns([T::Hash[Symbol, Integer], T::Hash[Integer, T::Array[Symbol]]]) } + # source://pdf-reader//lib/pdf/reader/glyph_hash.rb#138 + sig { returns(::PDF::Reader::GlyphHash::ReturnData) } def load_adobe_glyph_mapping; end end +# An internal class for returning multiple pieces of data and keep sorbet happy +# +# source://pdf-reader//lib/pdf/reader/glyph_hash.rb#39 +class PDF::Reader::GlyphHash::ReturnData + # :(Hash[Symbol, Integer], Hash[Integer, Array[Symbol]]) -> void + # + # @return [ReturnData] a new instance of ReturnData + # + # source://pdf-reader//lib/pdf/reader/glyph_hash.rb#47 + def initialize(by_name, by_codepoint); end + + # source://pdf-reader//lib/pdf/reader/glyph_hash.rb#44 + sig { returns(T::Hash[::Integer, T::Array[::Symbol]]) } + def by_codepoint; end + + # source://pdf-reader//lib/pdf/reader/glyph_hash.rb#41 + sig { returns(T::Hash[::Symbol, ::Integer]) } + def by_name; end +end + # an exception that is raised when a PDF object appears to be invalid # -# source://pdf-reader//lib/pdf/reader/error.rb#74 +# source://pdf-reader//lib/pdf/reader/error.rb#80 class PDF::Reader::InvalidObjectError < ::PDF::Reader::MalformedPDFError; end # an exception that is raised when an invalid page number is used # -# source://pdf-reader//lib/pdf/reader/error.rb#70 +# source://pdf-reader//lib/pdf/reader/error.rb#76 class PDF::Reader::InvalidPageError < ::ArgumentError; end # Processes the Encrypt dict from an encrypted PDF and a user provided @@ -1562,10 +1557,8 @@ class PDF::Reader::InvalidPageError < ::ArgumentError; end # # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#17 class PDF::Reader::KeyBuilderV5 - # @return [KeyBuilderV5] a new instance of KeyBuilderV5 - # - # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#19 - sig { params(opts: T::Hash[Symbol, String]).void } + # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#20 + sig { params(opts: T::Hash[::Symbol, ::String]).void } def initialize(opts = T.unsafe(nil)); end # Takes a string containing a user provided password. @@ -1574,10 +1567,11 @@ class PDF::Reader::KeyBuilderV5 # decrypting the file will be returned. If the password doesn't match the file, # and exception will be raised. # + # # @raise [PDF::Reader::EncryptedPDFError] # - # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#41 - sig { params(pass: String).returns(String) } + # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#43 + sig { params(pass: ::String).returns(::String) } def key(pass); end private @@ -1588,31 +1582,32 @@ class PDF::Reader::KeyBuilderV5 # # if the string is a valid user/owner password, this will return the decryption key # - # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#61 - sig { params(password: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#64 + sig { params(password: ::String).returns(T.nilable(::String)) } def auth_owner_pass(password); end - # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#83 - sig { params(password: String).returns(T.nilable(String)) } + # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#88 + sig { params(password: ::String).returns(T.nilable(::String)) } def auth_owner_pass_r6(password); end - # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#72 - sig { params(password: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#76 + sig { params(password: ::String).returns(T.nilable(::String)) } def auth_user_pass(password); end - # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#94 - sig { params(password: String).returns(T.nilable(String)) } + # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#100 + sig { params(password: ::String).returns(T.nilable(::String)) } def auth_user_pass_r6(password); end # PDF 2.0 spec, 7.6.4.3.4 # Algorithm 2.B: Computing a hash (revision 6 and later) # - # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#107 - sig { params(password: String, salt: String, user_key: String).returns(String) } + # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#114 + sig { params(password: ::String, salt: ::String, user_key: ::String).returns(::String) } def r6_digest(password, salt, user_key = T.unsafe(nil)); end - # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#131 - sig { params(str: String).returns(Integer) } + # source://pdf-reader//lib/pdf/reader/key_builder_v5.rb#139 + sig { params(str: ::String).returns(::Integer) } def unpack_128bit_bigendian_int(str); end end @@ -1632,21 +1627,22 @@ class PDF::Reader::LZW class << self # Decompresses a LZW compressed string. # - # source://pdf-reader//lib/pdf/reader/lzw.rb#91 - sig { params(data: String).returns(String) } + # + # source://pdf-reader//lib/pdf/reader/lzw.rb#101 + sig { params(data: ::String).returns(::String) } def decode(data); end private # @raise [MalformedPDFError] # - # source://pdf-reader//lib/pdf/reader/lzw.rb#128 + # source://pdf-reader//lib/pdf/reader/lzw.rb#139 sig do params( - string_table: PDF::Reader::LZW::StringTable, - some_code: T.nilable(Integer), - other_code: T.nilable(Integer) - ).returns(String) + string_table: ::PDF::Reader::LZW::StringTable, + some_code: T.nilable(::Integer), + other_code: T.nilable(::Integer) + ).returns(::String) end def create_new_string(string_table, some_code, other_code); end end @@ -1656,63 +1652,54 @@ end # # source://pdf-reader//lib/pdf/reader/lzw.rb#23 class PDF::Reader::LZW::BitStream - # @return [BitStream] a new instance of BitStream - # - # source://pdf-reader//lib/pdf/reader/lzw.rb#25 - sig { params(data: String, bits_in_chunk: Integer).void } + # source://pdf-reader//lib/pdf/reader/lzw.rb#26 + sig { params(data: ::String, bits_in_chunk: ::Integer).void } def initialize(data, bits_in_chunk); end - # source://pdf-reader//lib/pdf/reader/lzw.rb#39 - sig { returns(Integer) } + # source://pdf-reader//lib/pdf/reader/lzw.rb#43 + sig { returns(::Integer) } def read; end # @raise [MalformedPDFError] # - # source://pdf-reader//lib/pdf/reader/lzw.rb#33 - sig { params(bits_in_chunk: Integer).void } + # source://pdf-reader//lib/pdf/reader/lzw.rb#36 + sig { params(bits_in_chunk: ::Integer).void } def set_bits_in_chunk(bits_in_chunk); end end -# clear table -# -# source://pdf-reader//lib/pdf/reader/lzw.rb#63 +# source://pdf-reader//lib/pdf/reader/lzw.rb#67 PDF::Reader::LZW::CODE_CLEAR_TABLE = T.let(T.unsafe(nil), Integer) -# end of data -# -# source://pdf-reader//lib/pdf/reader/lzw.rb#62 +# source://pdf-reader//lib/pdf/reader/lzw.rb#66 PDF::Reader::LZW::CODE_EOD = T.let(T.unsafe(nil), Integer) # stores de pairs code => string # -# source://pdf-reader//lib/pdf/reader/lzw.rb#66 +# source://pdf-reader//lib/pdf/reader/lzw.rb#70 class PDF::Reader::LZW::StringTable - # @return [StringTable] a new instance of StringTable - # - # source://pdf-reader//lib/pdf/reader/lzw.rb#69 + # source://pdf-reader//lib/pdf/reader/lzw.rb#75 sig { void } def initialize; end # if code less than 258 return fixed string # - # source://pdf-reader//lib/pdf/reader/lzw.rb#75 - sig { params(key: Integer).returns(T.nilable(String)) } + # source://pdf-reader//lib/pdf/reader/lzw.rb#83 + sig { params(key: ::Integer).returns(T.nilable(::String)) } def [](key); end - # source://pdf-reader//lib/pdf/reader/lzw.rb#83 - sig { params(string: String).void } + # source://pdf-reader//lib/pdf/reader/lzw.rb#92 + sig { params(string: ::String).void } def add(string); end - # Returns the value of attribute string_table_pos. - # - # source://pdf-reader//lib/pdf/reader/lzw.rb#67 + # source://pdf-reader//lib/pdf/reader/lzw.rb#72 + sig { returns(::Integer) } def string_table_pos; end end # an exception that is raised when we believe the current PDF is not following # the PDF spec and cannot be recovered # -# source://pdf-reader//lib/pdf/reader/error.rb#66 +# source://pdf-reader//lib/pdf/reader/error.rb#72 class PDF::Reader::MalformedPDFError < ::RuntimeError; end # There's no point rendering zero-width characters @@ -1720,8 +1707,8 @@ class PDF::Reader::MalformedPDFError < ::RuntimeError; end # source://pdf-reader//lib/pdf/reader/no_text_filter.rb#7 class PDF::Reader::NoTextFilter class << self - # source://pdf-reader//lib/pdf/reader/no_text_filter.rb#9 - sig { params(runs: T::Array[PDF::Reader::TextRun]).returns(T::Array[PDF::Reader::TextRun]) } + # source://pdf-reader//lib/pdf/reader/no_text_filter.rb#10 + sig { params(runs: T::Array[::PDF::Reader::TextRun]).returns(T::Array[::PDF::Reader::TextRun]) } def exclude_empty_strings(runs); end end end @@ -1730,8 +1717,8 @@ end # # source://pdf-reader//lib/pdf/reader/null_security_handler.rb#8 class PDF::Reader::NullSecurityHandler - # source://pdf-reader//lib/pdf/reader/null_security_handler.rb#10 - sig { params(buf: T.untyped, _ref: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/null_security_handler.rb#11 + sig { params(buf: ::String, _ref: ::PDF::Reader::Reference).returns(::String) } def decrypt(buf, _ref); end end @@ -1741,111 +1728,92 @@ end # # source://pdf-reader//lib/pdf/reader/object_cache.rb#13 class PDF::Reader::ObjectCache - # @return [ObjectCache] a new instance of ObjectCache - # - # source://pdf-reader//lib/pdf/reader/object_cache.rb#22 + # source://pdf-reader//lib/pdf/reader/object_cache.rb#27 sig { params(lru_size: T.untyped).void } def initialize(lru_size = T.unsafe(nil)); end - # source://pdf-reader//lib/pdf/reader/object_cache.rb#29 - sig { params(key: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#34 def [](key); end - # source://pdf-reader//lib/pdf/reader/object_cache.rb#34 - sig { params(key: T.untyped, value: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#39 def []=(key, value); end - # source://pdf-reader//lib/pdf/reader/object_cache.rb#47 - sig { params(block: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#52 def each(&block); end - # source://pdf-reader//lib/pdf/reader/object_cache.rb#53 - sig { params(block: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#58 def each_key(&block); end - # source://pdf-reader//lib/pdf/reader/object_cache.rb#47 + # source://pdf-reader//lib/pdf/reader/object_cache.rb#56 def each_pair(&block); end - # source://pdf-reader//lib/pdf/reader/object_cache.rb#58 - sig { params(block: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#63 def each_value(&block); end # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_cache.rb#68 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#73 def empty?; end - # source://pdf-reader//lib/pdf/reader/object_cache.rb#42 - sig { params(key: T.untyped, local_default: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#47 def fetch(key, local_default = T.unsafe(nil)); end # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_cache.rb#72 + # source://pdf-reader//lib/pdf/reader/object_cache.rb#80 def has_key?(key); end # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_cache.rb#79 - sig { params(value: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#84 def has_value?(value); end - # Returns the value of attribute hits. - # - # source://pdf-reader//lib/pdf/reader/object_cache.rb#20 + # source://pdf-reader//lib/pdf/reader/object_cache.rb#21 + sig { returns(T.untyped) } def hits; end # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_cache.rb#72 - sig { params(key: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#77 def include?(key); end # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_cache.rb#72 + # source://pdf-reader//lib/pdf/reader/object_cache.rb#81 def key?(key); end - # source://pdf-reader//lib/pdf/reader/object_cache.rb#87 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#92 def keys; end - # source://pdf-reader//lib/pdf/reader/object_cache.rb#63 + # source://pdf-reader//lib/pdf/reader/object_cache.rb#71 def length; end # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_cache.rb#72 + # source://pdf-reader//lib/pdf/reader/object_cache.rb#82 def member?(key); end - # Returns the value of attribute misses. - # - # source://pdf-reader//lib/pdf/reader/object_cache.rb#20 + # source://pdf-reader//lib/pdf/reader/object_cache.rb#24 + sig { returns(T.untyped) } def misses; end - # source://pdf-reader//lib/pdf/reader/object_cache.rb#63 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#68 def size; end - # source://pdf-reader//lib/pdf/reader/object_cache.rb#83 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#88 def to_s; end - # source://pdf-reader//lib/pdf/reader/object_cache.rb#91 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#96 def values; end private # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_cache.rb#105 - sig { params(obj: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#110 def cacheable?(obj); end - # source://pdf-reader//lib/pdf/reader/object_cache.rb#97 - sig { params(key: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_cache.rb#102 def update_stats(key); end end @@ -1883,7 +1851,6 @@ PDF::Reader::ObjectCache::CACHEABLE_TYPES = T.let(T.unsafe(nil), Array) # source://pdf-reader//lib/pdf/reader/object_hash.rb#32 class PDF::Reader::ObjectHash include ::Enumerable - include Enumerable # Creates a new ObjectHash object. Input can be a string with a valid filename # or an IO-like object. @@ -1892,10 +1859,9 @@ class PDF::Reader::ObjectHash # # :password - the user password to decrypt the source PDF # - # @return [ObjectHash] a new instance of ObjectHash # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#46 - sig { params(input: T.any(IO, Tempfile, StringIO, String), opts: T::Hash[Symbol, T.untyped]).void } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#63 + sig { params(input: T.any(::IO, ::String, ::StringIO, ::Tempfile), opts: T::Hash[::Symbol, T.untyped]).void } def initialize(input, opts = T.unsafe(nil)); end # Access an object from the PDF. key can be an int or a PDF::Reader::Reference @@ -1907,32 +1873,30 @@ class PDF::Reader::ObjectHash # If a PDF::Reader::Reference object is used the exact ID and generation number # can be specified. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#81 - sig { params(key: T.any(Integer, PDF::Reader::Reference)).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#103 + sig { params(key: T.any(::Integer, ::PDF::Reader::Reference)).returns(T.untyped) } def [](key); end - # Returns the value of attribute default. - # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#35 + # source://pdf-reader//lib/pdf/reader/object_hash.rb#44 + sig { returns(T.untyped) } def default; end - # Sets the attribute default - # - # @param value the value to set the attribute default to. - # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#35 + # source://pdf-reader//lib/pdf/reader/object_hash.rb#44 def default=(_arg0); end # If key is a PDF::Reader::Reference object, lookup the corresponding # object in the PDF and return it. Otherwise return key untouched. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#96 - def deref(key); end + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#122 + def deref(*args, **_arg1, &blk); end # Recursively dereferences the object refered to be +key+. If +key+ is not # a PDF::Reader::Reference, the key is returned unchanged. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#316 + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#350 sig { params(key: T.untyped).returns(T.untyped) } def deref!(key); end @@ -1943,11 +1907,11 @@ class PDF::Reader::ObjectHash # any other type then a MalformedPDFError exception will raise. Useful when # expecting an Array and no other type will do. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#107 + # source://pdf-reader//lib/pdf/reader/object_hash.rb#131 sig { params(key: T.untyped).returns(T.nilable(T::Array[T.untyped])) } def deref_array(key); end - # source://pdf-reader//lib/pdf/reader/object_hash.rb#320 + # source://pdf-reader//lib/pdf/reader/object_hash.rb#355 sig { params(key: T.untyped).returns(T.nilable(T::Array[T.untyped])) } def deref_array!(key); end @@ -1962,8 +1926,8 @@ class PDF::Reader::ObjectHash # # @raise [MalformedPDFError] # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#125 - sig { params(key: T.untyped).returns(T.nilable(T::Array[Numeric])) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#150 + sig { params(key: T.untyped).returns(T.nilable(T::Array[::Numeric])) } def deref_array_of_numbers(key); end # If key is a PDF::Reader::Reference object, lookup the corresponding @@ -1973,12 +1937,12 @@ class PDF::Reader::ObjectHash # any other type then a MalformedPDFError exception will raise. Useful when # expecting an Array and no other type will do. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#151 - sig { params(key: T.untyped).returns(T.nilable(T::Hash[Symbol, T.untyped])) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#177 + sig { params(key: T.untyped).returns(T.nilable(T::Hash[::Symbol, T.untyped])) } def deref_hash(key); end - # source://pdf-reader//lib/pdf/reader/object_hash.rb#328 - sig { params(key: T.untyped).returns(T.nilable(T::Hash[Symbol, T.untyped])) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#364 + sig { params(key: T.untyped).returns(T.nilable(T::Hash[::Symbol, T.untyped])) } def deref_hash!(key); end # If key is a PDF::Reader::Reference object, lookup the corresponding @@ -1990,8 +1954,8 @@ class PDF::Reader::ObjectHash # # Some effort to cast to an int is made when the reference points to a non-integer. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#193 - sig { params(key: T.untyped).returns(T.nilable(Integer)) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#221 + sig { params(key: T.untyped).returns(T.nilable(::Integer)) } def deref_integer(key); end # If key is a PDF::Reader::Reference object, lookup the corresponding @@ -2003,8 +1967,8 @@ class PDF::Reader::ObjectHash # # Some effort to cast to a symbol is made when the reference points to a non-symbol. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#169 - sig { params(key: T.untyped).returns(T.nilable(Symbol)) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#196 + sig { params(key: T.untyped).returns(T.nilable(::Symbol)) } def deref_name(key); end # If key is a PDF::Reader::Reference object, lookup the corresponding @@ -2014,8 +1978,8 @@ class PDF::Reader::ObjectHash # any other type then a MalformedPDFError exception will raise. Useful when # expecting a Name or Array and no other type will do. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#283 - sig { params(key: T.untyped).returns(T.any(Symbol, T::Array[T.untyped], NilClass)) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#315 + sig { params(key: T.untyped).returns(T.nilable(T.any(::Symbol, T::Array[T.untyped]))) } def deref_name_or_array(key); end # If key is a PDF::Reader::Reference object, lookup the corresponding @@ -2027,8 +1991,8 @@ class PDF::Reader::ObjectHash # # Some effort to cast to a number is made when the reference points to a non-number. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#217 - sig { params(key: T.untyped).returns(T.nilable(Numeric)) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#246 + sig { params(key: T.untyped).returns(T.nilable(::Numeric)) } def deref_number(key); end # If key is a PDF::Reader::Reference object, lookup the corresponding @@ -2038,8 +2002,8 @@ class PDF::Reader::ObjectHash # any other type then a MalformedPDFError exception will raise. Useful when # expecting a stream and no other type will do. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#241 - sig { params(key: T.untyped).returns(T.nilable(PDF::Reader::Stream)) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#271 + sig { params(key: T.untyped).returns(T.nilable(::PDF::Reader::Stream)) } def deref_stream(key); end # If key is a PDF::Reader::Reference object, lookup the corresponding @@ -2049,8 +2013,8 @@ class PDF::Reader::ObjectHash # any other type then a MalformedPDFError exception will raise. Useful when # expecting a stream or Array and no other type will do. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#301 - sig { params(key: T.untyped).returns(T.any(PDF::Reader::Stream, T::Array[T.untyped], NilClass)) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#334 + sig { params(key: T.untyped).returns(T.nilable(T.any(::PDF::Reader::Stream, T::Array[T.untyped]))) } def deref_stream_or_array(key); end # If key is a PDF::Reader::Reference object, lookup the corresponding @@ -2062,44 +2026,52 @@ class PDF::Reader::ObjectHash # # Some effort to cast to a string is made when the reference points to a non-string. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#261 - sig { params(key: T.untyped).returns(T.nilable(String)) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#292 + sig { params(key: T.untyped).returns(T.nilable(::String)) } def deref_string(key); end # iterate over each key, value. Just like a ruby hash. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#361 - sig { params(block: T.untyped).returns(T.untyped) } + # @override(allow_incompatible: true) + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#400 + sig do + override + .params( + block: T.proc.params(arg0: ::PDF::Reader::Reference, arg1: T.untyped).returns(T.untyped) + ).returns(T.untyped) + end def each(&block); end # iterate over each key. Just like a ruby hash. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#370 - sig { params(block: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#410 + sig { params(block: T.proc.params(arg0: ::PDF::Reader::Reference).returns(T.untyped)).returns(T.untyped) } def each_key(&block); end # iterate over each key, value. Just like a ruby hash. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#361 - def each_pair(&block); end + # @override(allow_incompatible: true) + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#405 + def each_pair(*args, **_arg1, &blk); end # iterate over each value. Just like a ruby hash. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#378 - sig { params(block: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#419 + sig { params(block: T.proc.params(arg0: T.untyped).returns(T.untyped)).returns(T.untyped) } def each_value(&block); end # return true if there are no objects in this file # - # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#393 + # source://pdf-reader//lib/pdf/reader/object_hash.rb#436 sig { returns(T::Boolean) } def empty?; end - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#476 + # source://pdf-reader//lib/pdf/reader/object_hash.rb#528 sig { returns(T::Boolean) } def encrypted?; end @@ -2115,73 +2087,77 @@ class PDF::Reader::ObjectHash # local_default is the object that will be returned if the requested key doesn't # exist. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#348 + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#385 sig { params(key: T.untyped, local_default: T.untyped).returns(T.untyped) } def fetch(key, local_default = T.unsafe(nil)); end # return true if the specified key exists in the file. key # can be an int or a PDF::Reader::Reference # - # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#400 + # source://pdf-reader//lib/pdf/reader/object_hash.rb#444 sig { params(check_key: T.untyped).returns(T::Boolean) } def has_key?(check_key); end # return true if the specifiedvalue exists in the file # - # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#417 + # source://pdf-reader//lib/pdf/reader/object_hash.rb#462 sig { params(value: T.untyped).returns(T::Boolean) } def has_value?(value); end # return true if the specified key exists in the file. key # can be an int or a PDF::Reader::Reference # + # # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#400 - def include?(check_key); end + # source://pdf-reader//lib/pdf/reader/object_hash.rb#455 + def include?(*args, **_arg1, &blk); end # return true if the specified key exists in the file. key # can be an int or a PDF::Reader::Reference # + # # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#400 - def key?(check_key); end + # source://pdf-reader//lib/pdf/reader/object_hash.rb#456 + def key?(*args, **_arg1, &blk); end # return an array of all keys in the file # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#432 - sig { returns(T::Array[PDF::Reader::Reference]) } + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#479 + sig { returns(T::Array[::PDF::Reader::Reference]) } def keys; end # return the number of objects in the file. An object with multiple generations # is counted once. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#386 - def length; end + # source://pdf-reader//lib/pdf/reader/object_hash.rb#431 + def length(*args, **_arg1, &blk); end # return true if the specified key exists in the file. key # can be an int or a PDF::Reader::Reference # + # # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#400 - def member?(check_key); end + # source://pdf-reader//lib/pdf/reader/object_hash.rb#457 + def member?(*args, **_arg1, &blk); end # returns the type of object a ref points to # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#61 - sig { params(ref: T.any(Integer, PDF::Reader::Reference)).returns(T.nilable(Symbol)) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#81 + sig { params(ref: T.any(::Integer, ::PDF::Reader::Reference)).returns(T.nilable(::Symbol)) } def obj_type(ref); end # If key is a PDF::Reader::Reference object, lookup the corresponding # object in the PDF and return it. Otherwise return key untouched. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#96 + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#119 sig { params(key: T.untyped).returns(T.untyped) } def object(key); end @@ -2191,136 +2167,156 @@ class PDF::Reader::ObjectHash # # Useful for apps that want to extract data from specific pages. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#468 - sig { returns(T::Array[T.any(PDF::Reader::Reference, T::Hash[Symbol, T.untyped])]) } + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#519 + sig { returns(T::Array[T.any(::PDF::Reader::Reference, T::Hash[::Symbol, T.untyped])]) } def page_references; end - # Returns the value of attribute pdf_version. - # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#36 + # source://pdf-reader//lib/pdf/reader/object_hash.rb#50 + sig { returns(::Float) } def pdf_version; end - # Returns the value of attribute sec_handler. - # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#37 + # source://pdf-reader//lib/pdf/reader/object_hash.rb#53 + sig { returns(T.untyped) } def sec_handler; end - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#480 + # source://pdf-reader//lib/pdf/reader/object_hash.rb#533 sig { returns(T::Boolean) } def sec_handler?; end # return the number of objects in the file. An object with multiple generations # is counted once. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#386 - sig { returns(Integer) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#428 + sig { returns(::Integer) } def size; end # returns true if the supplied references points to an object with a stream # - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#68 - sig { params(ref: T.any(Integer, PDF::Reader::Reference)).returns(T::Boolean) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#89 + sig { params(ref: T.any(::Integer, ::PDF::Reader::Reference)).returns(T::Boolean) } def stream?(ref); end # return an array of arrays. Each sub array contains a key/value pair. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#454 + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#504 sig { returns(T.untyped) } def to_a; end - # source://pdf-reader//lib/pdf/reader/object_hash.rb#426 - sig { returns(String) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#472 + sig { returns(::String) } def to_s; end - # Returns the value of attribute trailer. - # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#36 + # source://pdf-reader//lib/pdf/reader/object_hash.rb#47 + sig { returns(T::Hash[::Symbol, T.untyped]) } def trailer; end # return true if the specified key exists in the file. key # can be an int or a PDF::Reader::Reference # + # # @return [Boolean] # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#400 - def value?(check_key); end + # source://pdf-reader//lib/pdf/reader/object_hash.rb#469 + def value?(*args, **_arg1, &blk); end # return an array of all values in the file # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#440 + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#488 sig { returns(T.untyped) } def values; end # return an array of all values from the specified keys # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#448 + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#497 sig { params(ids: T.untyped).returns(T.untyped) } def values_at(*ids); end private - # source://pdf-reader//lib/pdf/reader/object_hash.rb#541 - sig { params(ref: T.untyped, obj: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#599 + sig do + params( + ref: ::PDF::Reader::Reference, + obj: T.untyped + ).returns(T.nilable(T.any(::Numeric, ::PDF::Reader::Reference, ::PDF::Reader::Stream, ::PDF::Reader::Token, ::String, ::Symbol, T::Array[T.untyped], T::Hash[T.untyped, T.untyped]))) + end def decrypt(ref, obj); end # Private implementation of deref!, which exists to ensure the `seen` argument # isn't publicly available. It's used to avoid endless loops in the recursion, and # doesn't need to be part of the public API. # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#512 - sig { params(key: T.untyped, seen: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#569 + sig do + params( + key: T.untyped, + seen: T::Hash[::Integer, T.untyped] + ).returns(T.nilable(T.any(::Numeric, ::PDF::Reader::Reference, ::PDF::Reader::Stream, ::PDF::Reader::Token, ::String, ::Symbol, T::Array[T.untyped], T::Hash[T.untyped, T.untyped]))) + end def deref_internal!(key, seen); end - # source://pdf-reader//lib/pdf/reader/object_hash.rb#601 - sig { params(input: T.any(IO, Tempfile, StringIO, String)).returns(T.any(IO, Tempfile, StringIO)) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#665 + sig { params(input: T.any(::IO, ::String, ::StringIO, ::Tempfile)).returns(T.any(::IO, ::StringIO, ::Tempfile)) } def extract_io_from(input); end # parse a traditional object from the PDF, starting from the byte offset indicated # in the xref table # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#489 - sig { params(key: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#543 + sig do + params( + key: ::PDF::Reader::Reference + ).returns(T.nilable(T.any(::Numeric, ::PDF::Reader::Reference, ::PDF::Reader::Stream, ::PDF::Reader::Token, ::String, ::Symbol, T::Array[T.untyped], T::Hash[T.untyped, T.untyped]))) + end def fetch_object(key); end # parse a object that's embedded in an object stream in the PDF # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#498 - sig { params(key: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#553 + sig do + params( + key: ::PDF::Reader::Reference + ).returns(T.nilable(T.any(::Numeric, ::PDF::Reader::Reference, ::PDF::Reader::Stream, ::PDF::Reader::Token, ::String, ::Symbol, T::Array[T.untyped], T::Hash[T.untyped, T.untyped]))) + end def fetch_object_stream(key); end # returns an array of object references for all pages in this object store. The ordering of # the Array is significant and matches the page ordering of the document # - # source://pdf-reader//lib/pdf/reader/object_hash.rb#577 + # + # source://pdf-reader//lib/pdf/reader/object_hash.rb#639 sig do params( - obj: T.any(PDF::Reader::Reference, T::Hash[Symbol, T.untyped]) - ).returns(T::Array[T.any(PDF::Reader::Reference, T::Hash[Symbol, T.untyped])]) + obj: T.any(::PDF::Reader::Reference, T::Hash[::Symbol, T.untyped]) + ).returns(T::Array[T.any(::PDF::Reader::Reference, T::Hash[::Symbol, T.untyped])]) end def get_page_objects(obj); end - # source://pdf-reader//lib/pdf/reader/object_hash.rb#562 - sig { params(offset: Integer).returns(PDF::Reader::Buffer) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#621 + sig { params(offset: ::Integer).returns(::PDF::Reader::Buffer) } def new_buffer(offset = T.unsafe(nil)); end - # source://pdf-reader//lib/pdf/reader/object_hash.rb#570 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#631 + sig { returns(T::Hash[::PDF::Reader::Reference, ::PDF::Reader::ObjectStream]) } def object_streams; end - # source://pdf-reader//lib/pdf/reader/object_hash.rb#611 - sig { params(input: String).returns(String) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#676 + sig { params(input: ::String).returns(::String) } def read_as_binary(input); end - # source://pdf-reader//lib/pdf/reader/object_hash.rb#594 - sig { returns(Float) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#657 + sig { returns(::Float) } def read_version; end - # source://pdf-reader//lib/pdf/reader/object_hash.rb#566 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/object_hash.rb#626 + sig { returns(PDF::Reader::XRef[::PDF::Reader::Reference]) } def xref; end end @@ -2329,36 +2325,34 @@ end # # source://pdf-reader//lib/pdf/reader/object_stream.rb#10 class PDF::Reader::ObjectStream - # @return [ObjectStream] a new instance of ObjectStream - # - # source://pdf-reader//lib/pdf/reader/object_stream.rb#11 - sig { params(stream: PDF::Reader::Stream).void } + # source://pdf-reader//lib/pdf/reader/object_stream.rb#12 + sig { params(stream: ::PDF::Reader::Stream).void } def initialize(stream); end - # source://pdf-reader//lib/pdf/reader/object_stream.rb#16 + # source://pdf-reader//lib/pdf/reader/object_stream.rb#20 sig do params( - objid: Integer - ).returns(T.any(PDF::Reader::Reference, PDF::Reader::Token, Numeric, String, Symbol, T::Array[T.untyped], T::Hash[T.untyped, T.untyped], NilClass)) + objid: ::Integer + ).returns(T.nilable(T.any(::Numeric, ::PDF::Reader::Reference, ::PDF::Reader::Token, ::String, ::Symbol, T::Array[T.untyped], T::Hash[T.untyped, T.untyped]))) end def [](objid); end - # source://pdf-reader//lib/pdf/reader/object_stream.rb#26 - sig { returns(Integer) } + # source://pdf-reader//lib/pdf/reader/object_stream.rb#31 + sig { returns(::Integer) } def size; end private - # source://pdf-reader//lib/pdf/reader/object_stream.rb#46 - sig { returns(PDF::Reader::Buffer) } + # source://pdf-reader//lib/pdf/reader/object_stream.rb#54 + sig { returns(::PDF::Reader::Buffer) } def buffer; end - # source://pdf-reader//lib/pdf/reader/object_stream.rb#42 - sig { returns(Integer) } + # source://pdf-reader//lib/pdf/reader/object_stream.rb#49 + sig { returns(::Integer) } def first; end - # source://pdf-reader//lib/pdf/reader/object_stream.rb#32 - sig { returns(T::Hash[Integer, Integer]) } + # source://pdf-reader//lib/pdf/reader/object_stream.rb#38 + sig { returns(T::Hash[::Integer, ::Integer]) } def offsets; end end @@ -2368,17 +2362,17 @@ end # source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#8 class PDF::Reader::OverlappingRunsFilter class << self - # source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#41 + # source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#43 sig do params( - sweep_line_status: T::Array[PDF::Reader::TextRun], - event_point: PDF::Reader::EventPoint + sweep_line_status: T::Array[::PDF::Reader::TextRun], + event_point: ::PDF::Reader::EventPoint ).returns(T::Boolean) end def detect_intersection(sweep_line_status, event_point); end - # source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#14 - sig { params(runs: T::Array[PDF::Reader::TextRun]).returns(T::Array[PDF::Reader::TextRun]) } + # source://pdf-reader//lib/pdf/reader/overlapping_runs_filter.rb#15 + sig { params(runs: T::Array[::PDF::Reader::TextRun]).returns(T::Array[::PDF::Reader::TextRun]) } def exclude_redundant_runs(runs); end end end @@ -2397,7 +2391,7 @@ PDF::Reader::OverlappingRunsFilter::OVERLAPPING_THRESHOLD = T.let(T.unsafe(nil), # the Page dictionary via the page_object accessor. You will need to use the # objects accessor to help walk the page dictionary in any useful way. # -# source://pdf-reader//lib/pdf/reader/page.rb#16 +# source://pdf-reader//lib/pdf/reader/page.rb#18 class PDF::Reader::Page extend ::Forwardable @@ -2406,17 +2400,17 @@ class PDF::Reader::Page # * objects - an ObjectHash instance that wraps a PDF file # * pagenum - an int specifying the page number to expose. 1 indexed. # - # @return [Page] a new instance of Page # - # source://pdf-reader//lib/pdf/reader/page.rb#44 - sig { params(objects: PDF::Reader::ObjectHash, pagenum: Integer, options: T::Hash[Symbol, T.untyped]).void } + # source://pdf-reader//lib/pdf/reader/page.rb#50 + sig { params(objects: ::PDF::Reader::ObjectHash, pagenum: ::Integer, options: T::Hash[::Symbol, T.untyped]).void } def initialize(objects, pagenum, options = T.unsafe(nil)); end # Returns the attributes that accompany this page, including # attributes inherited from parents. # - # source://pdf-reader//lib/pdf/reader/page.rb#69 - sig { returns(T::Hash[Symbol, T.untyped]) } + # + # source://pdf-reader//lib/pdf/reader/page.rb#83 + sig { returns(T::Hash[::Symbol, T.untyped]) } def attributes; end # returns the "boxes" that define the page object. @@ -2424,110 +2418,122 @@ class PDF::Reader::Page # # DEPRECATED. Recommend using Page#rectangles instead # - # source://pdf-reader//lib/pdf/reader/page.rb#191 - sig { returns(T::Hash[Symbol, T::Array[Numeric]]) } + # + # source://pdf-reader//lib/pdf/reader/page.rb#215 + sig { returns(T::Hash[::Symbol, T::Array[::Numeric]]) } def boxes; end # a Hash-like object for storing cached data. Generally this is scoped to # the current document and is used to avoid repeating expensive # operations # - # source://pdf-reader//lib/pdf/reader/page.rb#28 + # source://pdf-reader//lib/pdf/reader/page.rb#33 + sig { returns(T.any(::PDF::Reader::ObjectCache, T::Hash[T.untyped, T.untyped])) } def cache; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page.rb#35 def color_spaces(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page.rb#36 def fonts(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page.rb#37 def graphic_states(*args, **_arg1, &block); end - # source://pdf-reader//lib/pdf/reader/page.rb#81 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/page.rb#96 + sig { returns(::Numeric) } def height; end # return a friendly string representation of this page # - # source://pdf-reader//lib/pdf/reader/page.rb#62 - sig { returns(String) } + # + # source://pdf-reader//lib/pdf/reader/page.rb#75 + sig { returns(::String) } def inspect; end # return the number of this page within the full document # - # source://pdf-reader//lib/pdf/reader/page.rb#56 - sig { returns(Integer) } + # + # source://pdf-reader//lib/pdf/reader/page.rb#68 + sig { returns(::Integer) } def number; end # lowlevel hash-like access to all objects in the underlying PDF # - # source://pdf-reader//lib/pdf/reader/page.rb#20 + # source://pdf-reader//lib/pdf/reader/page.rb#23 + sig { returns(::PDF::Reader::ObjectHash) } def objects; end # Convenience method to identify the page's orientation. # - # source://pdf-reader//lib/pdf/reader/page.rb#102 - sig { returns(String) } + # + # source://pdf-reader//lib/pdf/reader/page.rb#120 + sig { returns(::String) } def orientation; end - # source://pdf-reader//lib/pdf/reader/page.rb#93 - sig { returns(T::Array[Numeric]) } + # source://pdf-reader//lib/pdf/reader/page.rb#110 + sig { returns(T::Array[::Numeric]) } def origin; end # the raw PDF object that defines this page # - # source://pdf-reader//lib/pdf/reader/page.rb#23 + # source://pdf-reader//lib/pdf/reader/page.rb#27 + sig { returns(T::Hash[::Symbol, T.untyped]) } def page_object; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page.rb#38 def patterns(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page.rb#39 def procedure_sets(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page.rb#40 def properties(*args, **_arg1, &block); end # returns the raw content stream for this page. This is plumbing, nothing to # see here unless you're a PDF nerd like me. # - # source://pdf-reader//lib/pdf/reader/page.rb#165 - sig { returns(String) } + # + # source://pdf-reader//lib/pdf/reader/page.rb#187 + sig { returns(::String) } def raw_content; end # returns the "boxes" that define the page object. # values are defaulted according to section 7.7.3.3 of the PDF Spec 1.7 # - # source://pdf-reader//lib/pdf/reader/page.rb#199 - sig { returns(T::Hash[Symbol, PDF::Reader::Rectangle]) } + # + # source://pdf-reader//lib/pdf/reader/page.rb#224 + sig { returns(T::Hash[::Symbol, ::PDF::Reader::Rectangle]) } def rectangles; end # returns the angle to rotate the page clockwise. Always 0, 90, 180 or 270 # - # source://pdf-reader//lib/pdf/reader/page.rb#176 - sig { returns(Integer) } + # + # source://pdf-reader//lib/pdf/reader/page.rb#199 + sig { returns(::Integer) } def rotate; end - # source://pdf-reader//lib/pdf/reader/page.rb#125 - sig { params(opts: T::Hash[Symbol, T.untyped]).returns(T::Array[PDF::Reader::TextRun]) } + # source://pdf-reader//lib/pdf/reader/page.rb#145 + sig { params(opts: T::Hash[::Symbol, T.untyped]).returns(T::Array[::PDF::Reader::TextRun]) } def runs(opts = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page.rb#41 def shadings(*args, **_arg1, &block); end # returns the plain text content of this page encoded as UTF-8. Any # characters that can't be translated will be returned as a ▯ # - # source://pdf-reader//lib/pdf/reader/page.rb#113 - sig { params(opts: T::Hash[Symbol, T.untyped]).returns(String) } + # + # source://pdf-reader//lib/pdf/reader/page.rb#132 + sig { params(opts: T::Hash[::Symbol, T.untyped]).returns(::String) } def text(opts = T.unsafe(nil)); end # returns the plain text content of this page encoded as UTF-8. Any # characters that can't be translated will be returned as a ▯ # - # source://pdf-reader//lib/pdf/reader/page.rb#113 - def to_s(opts = T.unsafe(nil)); end + # + # source://pdf-reader//lib/pdf/reader/page.rb#142 + def to_s(*args, **_arg1, &blk); end # processes the raw content stream for this page in sequential order and # passes callbacks to the receiver objects. @@ -2552,55 +2558,59 @@ class PDF::Reader::Page # a set of instructions and associated resources. Calling walk() executes # the program in the correct order and calls out to your implementation. # - # source://pdf-reader//lib/pdf/reader/page.rb#154 - sig { params(receivers: T.untyped).void } + # + # source://pdf-reader//lib/pdf/reader/page.rb#175 + sig { params(receivers: T.untyped).returns(T.untyped) } def walk(*receivers); end - # source://pdf-reader//lib/pdf/reader/page.rb#87 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/page.rb#103 + sig { returns(::Numeric) } def width; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page.rb#42 def xobjects(*args, **_arg1, &block); end private - # source://pdf-reader//lib/pdf/reader/page.rb#293 - sig { params(origin: T.untyped).returns(T.untyped) } - def ancestors(origin = T.unsafe(nil)); end + # source://pdf-reader//lib/pdf/reader/page.rb#324 + sig { params(origin: T.untyped, seen: T::Set[::Integer]).returns(T.untyped) } + def ancestors(origin = T.unsafe(nil), seen = T.unsafe(nil)); end # calls the name callback method on each receiver object with params as the arguments # # The silly style here is because sorbet won't let me use splat arguments # - # source://pdf-reader//lib/pdf/reader/page.rb#268 - sig { params(receivers: T::Array[Object], name: Symbol, params: T::Array[T.untyped]).void } + # + # source://pdf-reader//lib/pdf/reader/page.rb#297 + sig { params(receivers: T::Array[::Object], name: ::Symbol, params: T::Array[T.untyped]).void } def callback(receivers, name, params = T.unsafe(nil)); end - # source://pdf-reader//lib/pdf/reader/page.rb#247 - sig { params(receivers: T::Array[T.untyped], instructions: String).void } + # source://pdf-reader//lib/pdf/reader/page.rb#275 + sig { params(receivers: T::Array[T.untyped], instructions: ::String).void } def content_stream(receivers, instructions); end - # source://pdf-reader//lib/pdf/reader/page.rb#289 + # source://pdf-reader//lib/pdf/reader/page.rb#319 sig { returns(T.untyped) } def page_with_ancestors; end # Returns the resources that accompany this page. Includes # resources inherited from parents. # - # source://pdf-reader//lib/pdf/reader/page.rb#243 - sig { returns(PDF::Reader::Resources) } + # + # source://pdf-reader//lib/pdf/reader/page.rb#270 + sig { returns(::PDF::Reader::Resources) } def resources; end - # source://pdf-reader//lib/pdf/reader/page.rb#236 - sig { returns(T::Hash[Symbol, T.untyped]) } + # source://pdf-reader//lib/pdf/reader/page.rb#262 + sig { returns(T::Hash[::Symbol, T.untyped]) } def root; end # select the elements from a Pages dictionary that can be inherited by # child Page dictionaries. # - # source://pdf-reader//lib/pdf/reader/page.rb#308 - sig { params(obj: T::Hash[Symbol, T.untyped]).returns(T::Hash[Symbol, T.untyped]) } + # + # source://pdf-reader//lib/pdf/reader/page.rb#342 + sig { params(obj: T::Hash[::Symbol, T.untyped]).returns(T::Hash[::Symbol, T.untyped]) } def select_inheritable(obj); end end @@ -2612,29 +2622,26 @@ end # # source://pdf-reader//lib/pdf/reader/page_layout.rb#15 class PDF::Reader::PageLayout - # @return [PageLayout] a new instance of PageLayout - # - # source://pdf-reader//lib/pdf/reader/page_layout.rb#19 - sig { params(runs: T::Array[PDF::Reader::TextRun], mediabox: T.any(T::Array[Numeric], PDF::Reader::Rectangle)).void } + # source://pdf-reader//lib/pdf/reader/page_layout.rb#20 + sig do + params( + runs: T::Array[::PDF::Reader::TextRun], + mediabox: T.any(::PDF::Reader::Rectangle, T::Array[::Numeric]) + ).void + end def initialize(runs, mediabox); end - sig { params(chars: T::Array[PDF::Reader::TextRun]).returns(T::Array[PDF::Reader::TextRun]) } - def group_chars_into_runs(chars); end - - sig { params(runs: T.untyped).returns(T.untyped) } - def merge_runs(runs); end - - # source://pdf-reader//lib/pdf/reader/page_layout.rb#34 - sig { returns(String) } + # source://pdf-reader//lib/pdf/reader/page_layout.rb#40 + sig { returns(::String) } def to_s; end private - # source://pdf-reader//lib/pdf/reader/page_layout.rb#80 + # source://pdf-reader//lib/pdf/reader/page_layout.rb#91 sig { returns(T.untyped) } def col_count; end - # source://pdf-reader//lib/pdf/reader/page_layout.rb#88 + # source://pdf-reader//lib/pdf/reader/page_layout.rb#101 sig { returns(T.untyped) } def col_multiplier; end @@ -2644,39 +2651,40 @@ class PDF::Reader::PageLayout # interesting_rows([ "", "one", "two", "" ]) # => [ "one", "two" ] # - # source://pdf-reader//lib/pdf/reader/page_layout.rb#65 + # + # source://pdf-reader//lib/pdf/reader/page_layout.rb#74 sig { params(rows: T.untyped).returns(T.untyped) } def interesting_rows(rows); end - # source://pdf-reader//lib/pdf/reader/page_layout.rb#108 + # source://pdf-reader//lib/pdf/reader/page_layout.rb#124 sig { params(haystack: T.untyped, needle: T.untyped, index: T.untyped).returns(T.untyped) } def local_string_insert(haystack, needle, index); end - # source://pdf-reader//lib/pdf/reader/page_layout.rb#92 + # source://pdf-reader//lib/pdf/reader/page_layout.rb#106 sig { params(collection: T.untyped).returns(T.untyped) } def mean(collection); end - # source://pdf-reader//lib/pdf/reader/page_layout.rb#100 + # source://pdf-reader//lib/pdf/reader/page_layout.rb#115 sig { params(collection: T.untyped).returns(T.untyped) } def median(collection); end - # source://pdf-reader//lib/pdf/reader/page_layout.rb#55 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/page_layout.rb#63 + sig { returns(::Numeric) } def page_height; end - # source://pdf-reader//lib/pdf/reader/page_layout.rb#51 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/page_layout.rb#58 + sig { returns(::Numeric) } def page_width; end - # source://pdf-reader//lib/pdf/reader/page_layout.rb#112 + # source://pdf-reader//lib/pdf/reader/page_layout.rb#129 sig { params(mediabox: T.untyped).returns(T.untyped) } def process_mediabox(mediabox); end - # source://pdf-reader//lib/pdf/reader/page_layout.rb#76 + # source://pdf-reader//lib/pdf/reader/page_layout.rb#86 sig { returns(T.untyped) } def row_count; end - # source://pdf-reader//lib/pdf/reader/page_layout.rb#84 + # source://pdf-reader//lib/pdf/reader/page_layout.rb#96 sig { returns(T.untyped) } def row_multiplier; end end @@ -2692,16 +2700,13 @@ PDF::Reader::PageLayout::DEFAULT_FONT_SIZE = T.let(T.unsafe(nil), Integer) class PDF::Reader::PageState # starting a new page # - # @return [PageState] a new instance of PageState - # - # source://pdf-reader//lib/pdf/reader/page_state.rb#26 + # source://pdf-reader//lib/pdf/reader/page_state.rb#27 sig { params(page: T.untyped).void } def initialize(page); end # Text Object Operators # - # source://pdf-reader//lib/pdf/reader/page_state.rb#90 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#93 def begin_text_object; end # This returns a deep clone of the current state, ensuring changes are @@ -2710,8 +2715,7 @@ class PDF::Reader::PageState # Marshal is used to round-trip the state through a string to easily # perform the deep clone. Kinda hacky, but effective. # - # source://pdf-reader//lib/pdf/reader/page_state.rb#291 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#294 def clone_state; end # update the current transformation matrix. @@ -2721,71 +2725,58 @@ class PDF::Reader::PageState # If there's an existing CTM, then multiply the existing matrix # with the new matrix to form the updated matrix. # - # source://pdf-reader//lib/pdf/reader/page_state.rb#72 - sig { params(a: T.untyped, b: T.untyped, c: T.untyped, d: T.untyped, e: T.untyped, f: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#75 def concatenate_matrix(a, b, c, d, e, f); end # transform x and y co-ordinates from the current user space to the # underlying device space. # - # source://pdf-reader//lib/pdf/reader/page_state.rb#227 - sig { params(x: T.untyped, y: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#230 def ctm_transform(x, y); end - # source://pdf-reader//lib/pdf/reader/page_state.rb#252 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#255 def current_font; end - # source://pdf-reader//lib/pdf/reader/page_state.rb#96 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#99 def end_text_object; end - # source://pdf-reader//lib/pdf/reader/page_state.rb#263 - sig { params(label: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#266 def find_color_space(label); end - # source://pdf-reader//lib/pdf/reader/page_state.rb#256 - sig { params(label: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#259 def find_font(label); end - # source://pdf-reader//lib/pdf/reader/page_state.rb#270 - sig { params(label: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#273 def find_xobject(label); end - # source://pdf-reader//lib/pdf/reader/page_state.rb#117 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#120 def font_size; end # XObjects # # @raise [MalformedPDFError] # - # source://pdf-reader//lib/pdf/reader/page_state.rb#198 - sig { params(label: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#201 def invoke_xobject(label); end # Text Positioning Operators # - # source://pdf-reader//lib/pdf/reader/page_state.rb#145 - sig { params(x: T.untyped, y: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#148 def move_text_position(x, y); end # TD # - # source://pdf-reader//lib/pdf/reader/page_state.rb#158 - sig { params(x: T.untyped, y: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#161 def move_text_position_and_set_leading(x, y); end # ' # - # source://pdf-reader//lib/pdf/reader/page_state.rb#185 - sig { params(str: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#188 def move_to_next_line_and_show_text(str); end # T* # - # source://pdf-reader//lib/pdf/reader/page_state.rb#173 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#176 def move_to_start_of_next_line; end # after each glyph is painted onto the page the text matrix must be @@ -2810,13 +2801,13 @@ class PDF::Reader::PageState # reached. Depending on the current state extra space # may need to be added # - # source://pdf-reader//lib/pdf/reader/page_state.rb#321 - sig { params(w0: T.untyped, tj: T.untyped, word_boundary: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#324 def process_glyph_displacement(w0, tj, word_boundary); end # Restore the state to the previous value on the stack. # - # source://pdf-reader//lib/pdf/reader/page_state.rb#57 + # + # source://pdf-reader//lib/pdf/reader/page_state.rb#60 sig { returns(T.untyped) } def restore_graphics_state; end @@ -2824,64 +2815,54 @@ class PDF::Reader::PageState # Any changes that are subsequently made to the state can then by reversed # by calling restore_graphics_state. # - # source://pdf-reader//lib/pdf/reader/page_state.rb#51 + # + # source://pdf-reader//lib/pdf/reader/page_state.rb#53 sig { returns(T.untyped) } def save_graphics_state; end # Text State Operators # - # source://pdf-reader//lib/pdf/reader/page_state.rb#104 - sig { params(char_spacing: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#107 def set_character_spacing(char_spacing); end - # source://pdf-reader//lib/pdf/reader/page_state.rb#108 - sig { params(h_scaling: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#111 def set_horizontal_text_scaling(h_scaling); end # " # - # source://pdf-reader//lib/pdf/reader/page_state.rb#189 - sig { params(aw: T.untyped, ac: T.untyped, string: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#192 def set_spacing_next_line_show_text(aw, ac, string); end - # source://pdf-reader//lib/pdf/reader/page_state.rb#112 - sig { params(label: T.untyped, size: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#115 def set_text_font_and_size(label, size); end - # source://pdf-reader//lib/pdf/reader/page_state.rb#125 - sig { params(leading: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#128 def set_text_leading(leading); end # Tm # - # source://pdf-reader//lib/pdf/reader/page_state.rb#163 - sig { params(a: T.untyped, b: T.untyped, c: T.untyped, d: T.untyped, e: T.untyped, f: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#166 def set_text_matrix_and_text_line_matrix(a, b, c, d, e, f); end - # source://pdf-reader//lib/pdf/reader/page_state.rb#129 - sig { params(mode: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#132 def set_text_rendering_mode(mode); end - # source://pdf-reader//lib/pdf/reader/page_state.rb#133 - sig { params(rise: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#136 def set_text_rise(rise); end - # source://pdf-reader//lib/pdf/reader/page_state.rb#137 - sig { params(word_spacing: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#140 def set_word_spacing(word_spacing); end # Text Showing Operators # - # source://pdf-reader//lib/pdf/reader/page_state.rb#181 - sig { params(params: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#184 def show_text_with_positioning(params); end # when save_graphics_state is called, we need to push a new copy of the # current state onto the stack. That way any modifications to the state # will be undone once restore_graphics_state is called. # - # source://pdf-reader//lib/pdf/reader/page_state.rb#281 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#284 def stack_depth; end # transform x and y co-ordinates from the current text space to the @@ -2890,22 +2871,19 @@ class PDF::Reader::PageState # transforming (0,0) is a really common case, so optimise for it to # avoid unnecessary object allocations # - # source://pdf-reader//lib/pdf/reader/page_state.rb#240 - sig { params(x: T.untyped, y: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#243 def trm_transform(x, y); end private # wrap the raw PDF Font objects in handy ruby Font objects. # - # source://pdf-reader//lib/pdf/reader/page_state.rb#391 - sig { params(raw_fonts: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#394 def build_fonts(raw_fonts); end # return the current transformation matrix # - # source://pdf-reader//lib/pdf/reader/page_state.rb#381 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#384 def ctm; end # This class uses 3x3 matrices to represent geometric transformations @@ -2915,20 +2893,17 @@ class PDF::Reader::PageState # d e f # g h i # - # source://pdf-reader//lib/pdf/reader/page_state.rb#410 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#413 def identity_matrix; end - # source://pdf-reader//lib/pdf/reader/page_state.rb#385 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#388 def state; end # used for many and varied text positioning calculations. We potentially # need to access the results of this method many times when working with # text, so memoize it # - # source://pdf-reader//lib/pdf/reader/page_state.rb#359 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_state.rb#362 def text_rendering_matrix; end end @@ -2941,134 +2916,121 @@ PDF::Reader::PageState::DEFAULT_GRAPHICS_STATE = T.let(T.unsafe(nil), Hash) # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#14 class PDF::Reader::PageTextReceiver extend ::Forwardable - extend Forwardable - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#33 def begin_text_object(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#30 def concatenate_matrix(*args, **_arg1, &block); end # deprecated # - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#83 - sig { returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#87 def content; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#33 def end_text_object(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#37 def font_size(*args, **_arg1, &block); end # XObjects # - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#122 - sig { params(label: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#126 def invoke_xobject(label); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#42 def move_text_position(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#42 def move_text_position_and_set_leading(*args, **_arg1, &block); end # ' # - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#108 - sig { params(str: String).void } + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#112 def move_to_next_line_and_show_text(str); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#43 def move_to_start_of_next_line(*args, **_arg1, &block); end - # Returns the value of attribute options. - # - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#19 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#23 + sig { returns(T.untyped) } def options; end # starting a new page # - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#43 - sig { params(page: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#47 def page=(page); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#27 def restore_graphics_state(*args, **_arg1, &block); end - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#50 - sig { params(opts: T::Hash[Symbol, T.untyped]).returns(T::Array[PDF::Reader::TextRun]) } + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#54 def runs(opts = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#27 def save_graphics_state(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#36 def set_character_spacing(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#36 def set_horizontal_text_scaling(*args, **_arg1, &block); end # " # - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#113 - sig { params(aw: Numeric, ac: Numeric, string: String).void } + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#117 def set_spacing_next_line_show_text(aw, ac, string); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#37 def set_text_font_and_size(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#38 def set_text_leading(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#43 def set_text_matrix_and_text_line_matrix(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#38 def set_text_rendering_mode(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#39 def set_text_rise(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#39 def set_word_spacing(*args, **_arg1, &block); end # Text Showing Operators # # record text that is drawn on the page # - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#92 - sig { params(string: String).void } + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#96 def show_text(string); end # TJ [(A) 120 (WA) 20 (Y)] # - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#96 - sig { params(params: T::Array[T.untyped]).void } + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#100 def show_text_with_positioning(params); end - # Returns the value of attribute state. - # - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#19 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#20 + sig { returns(T.untyped) } def state; end private - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#158 - sig { params(x: T.untyped, y: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#162 def apply_rotation(x, y); end - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#184 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#188 def group_chars_into_runs(chars); end - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#133 - sig { params(string: String).void } + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#137 def internal_show_text(string); end # take a collection of TextRun objects and merge any that are in close # proximity # - # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#176 + # source://pdf-reader//lib/pdf/reader/page_text_receiver.rb#180 def merge_runs(runs); end end @@ -3167,10 +3129,8 @@ class PDF::Reader::Parser # buffer - a PDF::Reader::Buffer object that contains PDF data # objects - a PDF::Reader::ObjectHash object that can return objects from the PDF file # - # @return [Parser] a new instance of Parser - # - # source://pdf-reader//lib/pdf/reader/parser.rb#65 - sig { params(buffer: PDF::Reader::Buffer, objects: T.nilable(PDF::Reader::ObjectHash)).void } + # source://pdf-reader//lib/pdf/reader/parser.rb#66 + sig { params(buffer: ::PDF::Reader::Buffer, objects: T.nilable(::PDF::Reader::ObjectHash)).void } def initialize(buffer, objects = T.unsafe(nil)); end # Reads an entire PDF object from the buffer and returns it as a Ruby String. @@ -3180,12 +3140,12 @@ class PDF::Reader::Parser # id - the object ID to return # gen - the object revision number to return # - # source://pdf-reader//lib/pdf/reader/parser.rb#98 + # source://pdf-reader//lib/pdf/reader/parser.rb#104 sig do params( - id: Integer, - gen: Integer - ).returns(T.any(PDF::Reader::Reference, PDF::Reader::Token, PDF::Reader::Stream, Numeric, String, Symbol, T::Array[T.untyped], T::Hash[T.untyped, T.untyped], NilClass)) + id: ::Integer, + gen: ::Integer + ).returns(T.nilable(T.any(::Numeric, ::PDF::Reader::Reference, ::PDF::Reader::Stream, ::PDF::Reader::Token, ::String, ::Symbol, T::Array[T.untyped], T::Hash[T.untyped, T.untyped]))) end def object(id, gen); end @@ -3194,11 +3154,11 @@ class PDF::Reader::Parser # # operators - a hash of supported operators to read from the underlying buffer. # - # source://pdf-reader//lib/pdf/reader/parser.rb#74 + # source://pdf-reader//lib/pdf/reader/parser.rb#76 sig do params( - operators: T::Hash[T.any(String, PDF::Reader::Token), Symbol] - ).returns(T.any(PDF::Reader::Reference, PDF::Reader::Token, Numeric, String, Symbol, T::Array[T.untyped], T::Hash[T.untyped, T.untyped], NilClass)) + operators: T::Hash[T.any(::PDF::Reader::Token, ::String), ::Symbol] + ).returns(T.nilable(T.any(::Numeric, ::PDF::Reader::Reference, ::PDF::Reader::Token, ::String, ::Symbol, T::Array[T.untyped], T::Hash[T.untyped, T.untyped]))) end def parse_token(operators = T.unsafe(nil)); end @@ -3206,44 +3166,46 @@ class PDF::Reader::Parser # reads a PDF array from the buffer and converts it to a Ruby Array. # - # source://pdf-reader//lib/pdf/reader/parser.rb#150 + # source://pdf-reader//lib/pdf/reader/parser.rb#167 sig { returns(T::Array[T.untyped]) } def array; end # reads a PDF dict from the buffer and converts it to a Ruby Hash. # - # source://pdf-reader//lib/pdf/reader/parser.rb#123 - sig { returns(T::Hash[Symbol, T.untyped]) } + # source://pdf-reader//lib/pdf/reader/parser.rb#130 + sig { returns(T::Hash[::Symbol, T.untyped]) } def dictionary; end # Reads a PDF hex string from the buffer and converts it to a Ruby String # - # source://pdf-reader//lib/pdf/reader/parser.rb#164 - sig { returns(String) } + # source://pdf-reader//lib/pdf/reader/parser.rb#182 + sig { returns(::String) } def hex_string; end # reads a PDF name from the buffer and converts it to a Ruby Symbol # - # source://pdf-reader//lib/pdf/reader/parser.rb#141 - sig { returns(Symbol) } + # source://pdf-reader//lib/pdf/reader/parser.rb#149 + sig { returns(::Symbol) } def pdf_name; end # Decodes the contents of a PDF Stream and returns it as a Ruby String. # # @raise [MalformedPDFError] # - # source://pdf-reader//lib/pdf/reader/parser.rb#213 - sig { params(dict: T::Hash[Symbol, T.untyped]).returns(PDF::Reader::Stream) } + # source://pdf-reader//lib/pdf/reader/parser.rb#235 + sig { params(dict: T::Hash[::Symbol, T.untyped]).returns(::PDF::Reader::Stream) } def stream(dict); end # Reads a PDF String from the buffer and converts it to a Ruby String # - # source://pdf-reader//lib/pdf/reader/parser.rb#180 - sig { returns(String) } + # @raise [MalformedPDFError] + # + # source://pdf-reader//lib/pdf/reader/parser.rb#199 + sig { returns(::String) } def string; end end -# source://pdf-reader//lib/pdf/reader/parser.rb#195 +# source://pdf-reader//lib/pdf/reader/parser.rb#216 PDF::Reader::Parser::MAPPING = T.let(T.unsafe(nil), Hash) # source://pdf-reader//lib/pdf/reader/parser.rb#38 @@ -3257,26 +3219,20 @@ PDF::Reader::Parser::TOKEN_STRATEGY = T.let(T.unsafe(nil), Proc) # # source://pdf-reader//lib/pdf/reader/point.rb#11 class PDF::Reader::Point - # @return [Point] a new instance of Point - # - # source://pdf-reader//lib/pdf/reader/point.rb#15 - sig { params(x: Numeric, y: Numeric).void } + # source://pdf-reader//lib/pdf/reader/point.rb#20 + sig { params(x: ::Numeric, y: ::Numeric).void } def initialize(x, y); end - # source://pdf-reader//lib/pdf/reader/point.rb#19 - sig { params(other: PDF::Reader::Point).returns(T::Boolean) } + # source://pdf-reader//lib/pdf/reader/point.rb#26 + sig { params(other: ::PDF::Reader::Point).returns(T::Boolean) } def ==(other); end - # Returns the value of attribute x. - # - # source://pdf-reader//lib/pdf/reader/point.rb#13 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/point.rb#14 + sig { returns(::Numeric) } def x; end - # Returns the value of attribute y. - # - # source://pdf-reader//lib/pdf/reader/point.rb#13 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/point.rb#17 + sig { returns(::Numeric) } def y; end end @@ -3285,32 +3241,12 @@ end # # source://pdf-reader//lib/pdf/reader/print_receiver.rb#9 class PDF::Reader::PrintReceiver - # @return [PrintReceiver] a new instance of PrintReceiver - # - # source://pdf-reader//lib/pdf/reader/print_receiver.rb#13 - sig { void } - def initialize; end - - # Returns the value of attribute callbacks. - # - # source://pdf-reader//lib/pdf/reader/print_receiver.rb#11 - def callbacks; end - - # Sets the attribute callbacks - # - # @param value the value to set the attribute callbacks to. - # - # source://pdf-reader//lib/pdf/reader/print_receiver.rb#11 - def callbacks=(_arg0); end - - # source://pdf-reader//lib/pdf/reader/print_receiver.rb#21 - sig { params(methodname: T.untyped, args: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/print_receiver.rb#17 + sig { params(methodname: ::Symbol, args: T.untyped).void } def method_missing(methodname, *args); end - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/print_receiver.rb#17 - sig { params(meth: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/print_receiver.rb#12 + sig { params(meth: T.untyped).returns(T::Boolean) } def respond_to?(meth); end end @@ -3319,10 +3255,8 @@ end # # source://pdf-reader//lib/pdf/reader/rc4_security_handler.rb#13 class PDF::Reader::Rc4SecurityHandler - # @return [Rc4SecurityHandler] a new instance of Rc4SecurityHandler - # - # source://pdf-reader//lib/pdf/reader/rc4_security_handler.rb#15 - sig { params(key: String).void } + # source://pdf-reader//lib/pdf/reader/rc4_security_handler.rb#16 + sig { params(key: ::String).void } def initialize(key); end # 7.6.2 General Encryption Algorithm @@ -3334,8 +3268,9 @@ class PDF::Reader::Rc4SecurityHandler # buf - a string to decrypt # ref - a PDF::Reader::Reference for the object to decrypt # - # source://pdf-reader//lib/pdf/reader/rc4_security_handler.rb#28 - sig { params(buf: T.untyped, ref: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/rc4_security_handler.rb#30 + sig { params(buf: ::String, ref: ::PDF::Reader::Reference).returns(::String) } def decrypt(buf, ref); end end @@ -3354,73 +3289,61 @@ end # # source://pdf-reader//lib/pdf/reader/rectangle.rb#21 class PDF::Reader::Rectangle - # @return [Rectangle] a new instance of Rectangle - # - # source://pdf-reader//lib/pdf/reader/rectangle.rb#25 - sig { params(x1: Numeric, y1: Numeric, x2: Numeric, y2: Numeric).void } + # source://pdf-reader//lib/pdf/reader/rectangle.rb#36 + sig { params(x1: ::Numeric, y1: ::Numeric, x2: ::Numeric, y2: ::Numeric).void } def initialize(x1, y1, x2, y2); end - # source://pdf-reader//lib/pdf/reader/rectangle.rb#42 - sig { params(other: PDF::Reader::Rectangle).void } + # source://pdf-reader//lib/pdf/reader/rectangle.rb#59 + sig { params(other: ::PDF::Reader::Rectangle).returns(T::Boolean) } def ==(other); end - # source://pdf-reader//lib/pdf/reader/rectangle.rb#69 - sig { params(degrees: Integer).void } + # source://pdf-reader//lib/pdf/reader/rectangle.rb#91 + sig { params(degrees: ::Integer).void } def apply_rotation(degrees); end - # Returns the value of attribute bottom_left. - # - # source://pdf-reader//lib/pdf/reader/rectangle.rb#23 - sig { returns(PDF::Reader::Point) } + # source://pdf-reader//lib/pdf/reader/rectangle.rb#24 + sig { returns(::PDF::Reader::Point) } def bottom_left; end - # Returns the value of attribute bottom_right. - # - # source://pdf-reader//lib/pdf/reader/rectangle.rb#23 - sig { returns(PDF::Reader::Point) } + # source://pdf-reader//lib/pdf/reader/rectangle.rb#27 + sig { returns(::PDF::Reader::Point) } def bottom_right; end - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/rectangle.rb#54 - sig { params(point: PDF::Reader::Point).void } + # source://pdf-reader//lib/pdf/reader/rectangle.rb#74 + sig { params(point: ::PDF::Reader::Point).returns(T::Boolean) } def contains?(point); end - # source://pdf-reader//lib/pdf/reader/rectangle.rb#46 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/rectangle.rb#64 + sig { returns(::Numeric) } def height; end # A pdf-style 4-number array # - # source://pdf-reader//lib/pdf/reader/rectangle.rb#60 - sig { returns(T::Array[Numeric]) } + # source://pdf-reader//lib/pdf/reader/rectangle.rb#81 + sig { returns(T::Array[::Numeric]) } def to_a; end - # Returns the value of attribute top_left. - # - # source://pdf-reader//lib/pdf/reader/rectangle.rb#23 - sig { returns(PDF::Reader::Point) } + # source://pdf-reader//lib/pdf/reader/rectangle.rb#30 + sig { returns(::PDF::Reader::Point) } def top_left; end - # Returns the value of attribute top_right. - # - # source://pdf-reader//lib/pdf/reader/rectangle.rb#23 - sig { returns(PDF::Reader::Point) } + # source://pdf-reader//lib/pdf/reader/rectangle.rb#33 + sig { returns(::PDF::Reader::Point) } def top_right; end - # source://pdf-reader//lib/pdf/reader/rectangle.rb#50 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/rectangle.rb#69 + sig { returns(::Numeric) } def width; end private - # source://pdf-reader//lib/pdf/reader/rectangle.rb#93 - sig { params(x1: Numeric, y1: Numeric, x2: Numeric, y2: Numeric).void } + # source://pdf-reader//lib/pdf/reader/rectangle.rb#116 + sig { params(x1: ::Numeric, y1: ::Numeric, x2: ::Numeric, y2: ::Numeric).void } def set_corners(x1, y1, x2, y2); end class << self - # source://pdf-reader//lib/pdf/reader/rectangle.rb#29 - sig { params(arr: T::Array[Numeric]).returns(PDF::Reader::Rectangle) } + # source://pdf-reader//lib/pdf/reader/rectangle.rb#45 + sig { params(arr: T::Array[::Numeric]).returns(::PDF::Reader::Rectangle) } def from_array(arr); end end end @@ -3431,53 +3354,49 @@ end class PDF::Reader::Reference # Create a new Reference to an object with the specified id and revision number # - # @return [Reference] a new instance of Reference - # - # source://pdf-reader//lib/pdf/reader/reference.rb#38 - sig { params(id: Integer, gen: Integer).void } + # source://pdf-reader//lib/pdf/reader/reference.rb#42 + sig { params(id: ::Integer, gen: ::Integer).void } def initialize(id, gen); end # returns true if the provided object points to the same PDF Object as the # current object # - # source://pdf-reader//lib/pdf/reader/reference.rb#54 - sig { params(obj: Object).returns(T::Boolean) } + # source://pdf-reader//lib/pdf/reader/reference.rb#62 + sig { params(obj: ::Object).returns(T::Boolean) } def ==(obj); end # returns true if the provided object points to the same PDF Object as the # current object # - # source://pdf-reader//lib/pdf/reader/reference.rb#54 - def eql?(obj); end + # source://pdf-reader//lib/pdf/reader/reference.rb#67 + def eql?(*args, **_arg1, &blk); end - # Returns the value of attribute gen. - # - # source://pdf-reader//lib/pdf/reader/reference.rb#35 + # source://pdf-reader//lib/pdf/reader/reference.rb#38 + sig { returns(::Integer) } def gen; end # returns a hash based on the PDF::Reference this object points to. Two # different Reference objects that point to the same PDF Object will # return an identical hash # - # source://pdf-reader//lib/pdf/reader/reference.rb#64 - sig { returns(Integer) } + # source://pdf-reader//lib/pdf/reader/reference.rb#73 + sig { returns(::Integer) } def hash; end - # Returns the value of attribute id. - # - # source://pdf-reader//lib/pdf/reader/reference.rb#34 + # source://pdf-reader//lib/pdf/reader/reference.rb#35 + sig { returns(::Integer) } def id; end # returns the current Reference object in an array with a single element # - # source://pdf-reader//lib/pdf/reader/reference.rb#43 - sig { returns(T::Array[PDF::Reader::Reference]) } + # source://pdf-reader//lib/pdf/reader/reference.rb#49 + sig { returns(T::Array[::PDF::Reader::Reference]) } def to_a; end # returns the ID of this reference. Use with caution, ignores the generation id # - # source://pdf-reader//lib/pdf/reader/reference.rb#48 - sig { returns(Integer) } + # source://pdf-reader//lib/pdf/reader/reference.rb#55 + sig { returns(::Integer) } def to_i; end end @@ -3497,66 +3416,57 @@ end # # source://pdf-reader//lib/pdf/reader/register_receiver.rb#23 class PDF::Reader::RegisterReceiver - # @return [RegisterReceiver] a new instance of RegisterReceiver - # - # source://pdf-reader//lib/pdf/reader/register_receiver.rb#27 + # source://pdf-reader//lib/pdf/reader/register_receiver.rb#29 sig { void } def initialize; end # return the details for every time the specified callback was fired # - # source://pdf-reader//lib/pdf/reader/register_receiver.rb#45 - sig { params(methodname: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/register_receiver.rb#51 + sig { params(methodname: ::Symbol).returns(T::Array[T::Hash[::Symbol, T.untyped]]) } def all(methodname); end - # source://pdf-reader//lib/pdf/reader/register_receiver.rb#49 - sig { params(methodname: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/register_receiver.rb#56 + sig { params(methodname: ::Symbol).returns(T::Array[T::Array[T.untyped]]) } def all_args(methodname); end - # Returns the value of attribute callbacks. - # - # source://pdf-reader//lib/pdf/reader/register_receiver.rb#25 + # source://pdf-reader//lib/pdf/reader/register_receiver.rb#26 + sig { returns(T::Array[T::Hash[::Symbol, T.untyped]]) } def callbacks; end - # Sets the attribute callbacks - # - # @param value the value to set the attribute callbacks to. - # - # source://pdf-reader//lib/pdf/reader/register_receiver.rb#25 + # source://pdf-reader//lib/pdf/reader/register_receiver.rb#26 def callbacks=(_arg0); end # count the number of times a callback fired # - # source://pdf-reader//lib/pdf/reader/register_receiver.rb#40 - sig { params(methodname: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/register_receiver.rb#45 + sig { params(methodname: ::Symbol).returns(::Integer) } def count(methodname); end # return the details for the final time the specified callback was fired # - # source://pdf-reader//lib/pdf/reader/register_receiver.rb#59 - sig { params(methodname: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/register_receiver.rb#68 + sig { params(methodname: ::Symbol).returns(T.nilable(T::Hash[::Symbol, T.untyped])) } def final_occurance_of(methodname); end # return the details for the first time the specified callback was fired # - # source://pdf-reader//lib/pdf/reader/register_receiver.rb#54 - sig { params(methodname: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/register_receiver.rb#62 + sig { params(methodname: ::Symbol).returns(T.nilable(T::Hash[::Symbol, T.untyped])) } def first_occurance_of(methodname); end - # source://pdf-reader//lib/pdf/reader/register_receiver.rb#35 - sig { params(methodname: T.untyped, args: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/register_receiver.rb#39 + sig { params(methodname: ::Symbol, args: T.untyped).void } def method_missing(methodname, *args); end - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/register_receiver.rb#31 - sig { params(meth: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/register_receiver.rb#34 + sig { params(meth: T.untyped).returns(T::Boolean) } def respond_to?(meth); end # return the first occurance of a particular series of callbacks # - # source://pdf-reader//lib/pdf/reader/register_receiver.rb#64 - sig { params(methods: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/register_receiver.rb#74 + sig { params(methods: ::Symbol).returns(T.nilable(T::Array[T::Hash[::Symbol, T.untyped]])) } def series(*methods); end end @@ -3564,10 +3474,8 @@ end # # source://pdf-reader//lib/pdf/reader/resources.rb#10 class PDF::Reader::Resources - # @return [Resources] a new instance of Resources - # - # source://pdf-reader//lib/pdf/reader/resources.rb#12 - sig { params(objects: PDF::Reader::ObjectHash, resources: T::Hash[T.untyped, T.untyped]).void } + # source://pdf-reader//lib/pdf/reader/resources.rb#13 + sig { params(objects: ::PDF::Reader::ObjectHash, resources: T::Hash[T.untyped, T.untyped]).void } def initialize(objects, resources); end # Returns a Hash of color spaces that are available to this page @@ -3576,8 +3484,9 @@ class PDF::Reader::Resources # with no caching. You will want to cache the results instead # of calling it over and over. # - # source://pdf-reader//lib/pdf/reader/resources.rb#23 - sig { returns(T::Hash[Symbol, T.untyped]) } + # + # source://pdf-reader//lib/pdf/reader/resources.rb#25 + sig { returns(T::Hash[::Symbol, T.untyped]) } def color_spaces; end # Returns a Hash of fonts that are available to this page @@ -3586,8 +3495,9 @@ class PDF::Reader::Resources # with no caching. You will want to cache the results instead # of calling it over and over. # - # source://pdf-reader//lib/pdf/reader/resources.rb#33 - sig { returns(T::Hash[Symbol, T.untyped]) } + # + # source://pdf-reader//lib/pdf/reader/resources.rb#36 + sig { returns(T::Hash[::Symbol, T.untyped]) } def fonts; end # Returns a Hash of external graphic states that are available to this @@ -3597,8 +3507,9 @@ class PDF::Reader::Resources # with no caching. You will want to cache the results instead # of calling it over and over. # - # source://pdf-reader//lib/pdf/reader/resources.rb#44 - sig { returns(T::Hash[Symbol, T.untyped]) } + # + # source://pdf-reader//lib/pdf/reader/resources.rb#48 + sig { returns(T::Hash[::Symbol, T.untyped]) } def graphic_states; end # Returns a Hash of patterns that are available to this page @@ -3607,8 +3518,9 @@ class PDF::Reader::Resources # with no caching. You will want to cache the results instead # of calling it over and over. # - # source://pdf-reader//lib/pdf/reader/resources.rb#54 - sig { returns(T::Hash[Symbol, T.untyped]) } + # + # source://pdf-reader//lib/pdf/reader/resources.rb#59 + sig { returns(T::Hash[::Symbol, T.untyped]) } def patterns; end # Returns an Array of procedure sets that are available to this page @@ -3617,8 +3529,9 @@ class PDF::Reader::Resources # with no caching. You will want to cache the results instead # of calling it over and over. # - # source://pdf-reader//lib/pdf/reader/resources.rb#64 - sig { returns(T::Array[Symbol]) } + # + # source://pdf-reader//lib/pdf/reader/resources.rb#70 + sig { returns(T::Array[::Symbol]) } def procedure_sets; end # Returns a Hash of properties sets that are available to this page @@ -3627,8 +3540,9 @@ class PDF::Reader::Resources # with no caching. You will want to cache the results instead # of calling it over and over. # - # source://pdf-reader//lib/pdf/reader/resources.rb#74 - sig { returns(T::Hash[Symbol, T.untyped]) } + # + # source://pdf-reader//lib/pdf/reader/resources.rb#81 + sig { returns(T::Hash[::Symbol, T.untyped]) } def properties; end # Returns a Hash of shadings that are available to this page @@ -3637,8 +3551,9 @@ class PDF::Reader::Resources # with no caching. You will want to cache the results instead # of calling it over and over. # - # source://pdf-reader//lib/pdf/reader/resources.rb#84 - sig { returns(T::Hash[Symbol, T.untyped]) } + # + # source://pdf-reader//lib/pdf/reader/resources.rb#92 + sig { returns(T::Hash[::Symbol, T.untyped]) } def shadings; end # Returns a Hash of XObjects that are available to this page @@ -3647,8 +3562,9 @@ class PDF::Reader::Resources # with no caching. You will want to cache the results instead # of calling it over and over. # - # source://pdf-reader//lib/pdf/reader/resources.rb#94 - sig { returns(T::Hash[Symbol, PDF::Reader::Stream]) } + # + # source://pdf-reader//lib/pdf/reader/resources.rb#103 + sig { returns(T::Hash[::Symbol, ::PDF::Reader::Stream]) } def xobjects; end end @@ -3658,34 +3574,48 @@ end # source://pdf-reader//lib/pdf/reader/security_handler_factory.rb#8 class PDF::Reader::SecurityHandlerFactory class << self - # source://pdf-reader//lib/pdf/reader/security_handler_factory.rb#10 - sig { params(encrypt: T.untyped, doc_id: T.untyped, password: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/security_handler_factory.rb#11 + sig do + params( + encrypt: T::Hash[::Symbol, T.untyped], + doc_id: T.nilable(T::Array[T.untyped]), + password: T.nilable(::String) + ).returns(T.any(::PDF::Reader::AesV2SecurityHandler, ::PDF::Reader::AesV3SecurityHandler, ::PDF::Reader::NullSecurityHandler, ::PDF::Reader::Rc4SecurityHandler, ::PDF::Reader::UnimplementedSecurityHandler)) + end def build(encrypt, doc_id, password); end - # source://pdf-reader//lib/pdf/reader/security_handler_factory.rb#25 - sig { params(encrypt: T.untyped, doc_id: T.untyped, password: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/security_handler_factory.rb#27 + sig do + params( + encrypt: T::Hash[::Symbol, T.untyped], + doc_id: T::Array[T.untyped], + password: ::String + ).returns(T.any(::PDF::Reader::AesV2SecurityHandler, ::PDF::Reader::Rc4SecurityHandler)) + end def build_standard_handler(encrypt, doc_id, password); end - # source://pdf-reader//lib/pdf/reader/security_handler_factory.rb#44 - sig { params(encrypt: T.untyped, doc_id: T.untyped, password: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/security_handler_factory.rb#47 + sig do + params( + encrypt: T::Hash[::Symbol, T.untyped], + doc_id: T::Array[T.untyped], + password: ::String + ).returns(::PDF::Reader::AesV3SecurityHandler) + end def build_v5_handler(encrypt, doc_id, password); end # This handler supports all encryption that follows upto PDF 1.5 spec (revision 4) # - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/security_handler_factory.rb#55 - sig { params(encrypt: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/security_handler_factory.rb#59 + sig { params(encrypt: T::Hash[::Symbol, T.untyped]).returns(T::Boolean) } def standard?(encrypt); end # This handler supports both # - AES-256 encryption defined in PDF 1.7 Extension Level 3 ('revision 5') # - AES-256 encryption defined in PDF 2.0 ('revision 6') # - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/security_handler_factory.rb#68 - sig { params(encrypt: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/security_handler_factory.rb#73 + sig { params(encrypt: T::Hash[::Symbol, T.untyped]).returns(T.untyped) } def standard_v5?(encrypt); end end end @@ -3698,12 +3628,10 @@ end # * Version 1-3, all variants # * Version 4, V2 (RC4) and AESV2 # -# source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#16 +# source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#17 class PDF::Reader::StandardKeyBuilder - # @return [StandardKeyBuilder] a new instance of StandardKeyBuilder - # - # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#28 - sig { params(opts: T::Hash[Symbol, T.untyped]).void } + # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#30 + sig { params(opts: T::Hash[::Symbol, T.untyped]).void } def initialize(opts = T.unsafe(nil)); end # Takes a string containing a user provided password. @@ -3712,11 +3640,12 @@ class PDF::Reader::StandardKeyBuilder # decrypting the file will be returned. If the password doesn't match the file, # and exception will be raised. # + # # @raise [PDF::Reader::EncryptedPDFError] # - # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#50 - sig { params(pass: String).returns(String) } - def key(pass); end + # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#53 + sig { params(pass: ::String).returns(::String) } + def key(pass = T.unsafe(nil)); end private @@ -3732,8 +3661,9 @@ class PDF::Reader::StandardKeyBuilder # if the supplied password is not a valid owner password for this document # then it returns nil # - # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#87 - sig { params(pass: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#93 + sig { params(pass: ::String).returns(T.nilable(::String)) } def auth_owner_pass(pass); end # Algorithm 6 - Authenticating the User Password @@ -3746,23 +3676,25 @@ class PDF::Reader::StandardKeyBuilder # if the supplied password is not a valid user password for this document # then it returns nil # - # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#113 - sig { params(pass: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#126 + sig { params(pass: ::String).returns(T.nilable(::String)) } def auth_user_pass(pass); end - # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#127 - sig { params(user_pass: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#141 + sig { params(user_pass: ::String).returns(::String) } def make_file_key(user_pass); end # Pads supplied password to 32bytes using PassPadBytes as specified on # pp61 of spec # - # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#63 - sig { params(p: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#67 + sig { params(p: T.nilable(::String)).returns(::String) } def pad_pass(p = T.unsafe(nil)); end - # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#71 - sig { params(buf: T.untyped, int: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#76 + sig { params(buf: ::String, int: ::Integer).returns(::String) } def xor_each_byte(buf, int); end end @@ -3771,7 +3703,7 @@ end # needs a document's user password to build a key for decrypting an # encrypted PDF document # -# source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#23 +# source://pdf-reader//lib/pdf/reader/standard_key_builder.rb#24 PDF::Reader::StandardKeyBuilder::PassPadBytes = T.let(T.unsafe(nil), Array) # An internal PDF::Reader class that represents a stream object from a PDF. Stream @@ -3783,40 +3715,28 @@ class PDF::Reader::Stream # Creates a new stream with the specified dictionary and data. The dictionary # should be a standard ruby hash, the data should be a standard ruby string. # - # @return [Stream] a new instance of Stream - # - # source://pdf-reader//lib/pdf/reader/stream.rb#42 - sig { params(hash: T::Hash[Symbol, T.untyped], data: String).void } + # source://pdf-reader//lib/pdf/reader/stream.rb#47 + sig { params(hash: T::Hash[::Symbol, T.untyped], data: ::String).void } def initialize(hash, data); end - # Returns the value of attribute data. - # - # source://pdf-reader//lib/pdf/reader/stream.rb#37 + # source://pdf-reader//lib/pdf/reader/stream.rb#41 + sig { returns(::String) } def data; end - # Sets the attribute data - # - # @param value the value to set the attribute data to. - # - # source://pdf-reader//lib/pdf/reader/stream.rb#37 + # source://pdf-reader//lib/pdf/reader/stream.rb#41 def data=(_arg0); end - # Returns the value of attribute hash. - # - # source://pdf-reader//lib/pdf/reader/stream.rb#37 + # source://pdf-reader//lib/pdf/reader/stream.rb#38 + sig { returns(T::Hash[::Symbol, T.untyped]) } def hash; end - # Sets the attribute hash - # - # @param value the value to set the attribute hash to. - # - # source://pdf-reader//lib/pdf/reader/stream.rb#37 + # source://pdf-reader//lib/pdf/reader/stream.rb#38 def hash=(_arg0); end # apply this streams filters to its data and return the result. # - # source://pdf-reader//lib/pdf/reader/stream.rb#49 - sig { returns(String) } + # source://pdf-reader//lib/pdf/reader/stream.rb#55 + sig { returns(::String) } def unfiltered_data; end end @@ -3828,18 +3748,16 @@ end # # source://pdf-reader//lib/pdf/reader/synchronized_cache.rb#22 class PDF::Reader::SynchronizedCache - # @return [SynchronizedCache] a new instance of SynchronizedCache - # - # source://pdf-reader//lib/pdf/reader/synchronized_cache.rb#23 + # source://pdf-reader//lib/pdf/reader/synchronized_cache.rb#24 sig { void } def initialize; end - # source://pdf-reader//lib/pdf/reader/synchronized_cache.rb#27 - sig { params(key: Object).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/synchronized_cache.rb#29 + sig { params(key: ::Object).returns(T.untyped) } def [](key); end - # source://pdf-reader//lib/pdf/reader/synchronized_cache.rb#30 - sig { params(key: Object, value: T.nilable(Object)).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/synchronized_cache.rb#33 + sig { params(key: ::Object, value: T.nilable(::Object)).returns(T.untyped) } def []=(key, value); end end @@ -3848,109 +3766,96 @@ end # source://pdf-reader//lib/pdf/reader/text_run.rb#7 class PDF::Reader::TextRun include ::Comparable - include Comparable - # @return [TextRun] a new instance of TextRun - # - # source://pdf-reader//lib/pdf/reader/text_run.rb#17 - sig { params(x: Numeric, y: Numeric, width: Numeric, font_size: Numeric, text: String).void } + # source://pdf-reader//lib/pdf/reader/text_run.rb#25 + sig { params(x: ::Numeric, y: ::Numeric, width: ::Numeric, font_size: ::Numeric, text: ::String).void } def initialize(x, y, width, font_size, text); end # @raise [ArgumentError] # - # source://pdf-reader//lib/pdf/reader/text_run.rb#64 - sig { params(other: PDF::Reader::TextRun).returns(PDF::Reader::TextRun) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#85 + sig { params(other: ::PDF::Reader::TextRun).returns(::PDF::Reader::TextRun) } def +(other); end # Allows collections of TextRun objects to be sorted. They will be sorted # in order of their position on a cartesian plain - Top Left to Bottom Right # - # source://pdf-reader//lib/pdf/reader/text_run.rb#26 - sig { params(other: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#38 + sig { params(other: ::PDF::Reader::Point).returns(::Numeric) } def <=>(other); end - # source://pdf-reader//lib/pdf/reader/text_run.rb#48 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#65 + sig { returns(::Numeric) } def endx; end - # source://pdf-reader//lib/pdf/reader/text_run.rb#52 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#70 + sig { returns(::Numeric) } def endy; end - # Returns the value of attribute font_size. - # - # source://pdf-reader//lib/pdf/reader/text_run.rb#12 + # source://pdf-reader//lib/pdf/reader/text_run.rb#17 + sig { returns(::Numeric) } def font_size; end - # source://pdf-reader//lib/pdf/reader/text_run.rb#74 - sig { returns(String) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#96 + sig { returns(::String) } def inspect; end - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/text_run.rb#78 - sig { params(other_run: T.untyped).returns(T::Boolean) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#101 + sig { params(other_run: ::PDF::Reader::TextRun).returns(T::Boolean) } def intersect?(other_run); end # return what percentage of this text run is overlapped by another run # - # source://pdf-reader//lib/pdf/reader/text_run.rb#84 - sig { params(other_run: T.untyped).returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#108 + sig { params(other_run: ::PDF::Reader::TextRun).returns(::Numeric) } def intersection_area_percent(other_run); end - # source://pdf-reader//lib/pdf/reader/text_run.rb#56 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#75 + sig { returns(::Numeric) } def mean_character_width; end - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/text_run.rb#60 - sig { params(other: PDF::Reader::TextRun).returns(T::Boolean) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#80 + sig { params(other: ::PDF::Reader::TextRun).returns(T::Boolean) } def mergable?(other); end - # Returns the value of attribute origin. - # - # source://pdf-reader//lib/pdf/reader/text_run.rb#10 + # source://pdf-reader//lib/pdf/reader/text_run.rb#11 + sig { returns(::PDF::Reader::Point) } def origin; end - # Returns the value of attribute text. - # - # source://pdf-reader//lib/pdf/reader/text_run.rb#13 + # source://pdf-reader//lib/pdf/reader/text_run.rb#20 + sig { returns(::String) } def text; end - # Returns the value of attribute text. - # - # source://pdf-reader//lib/pdf/reader/text_run.rb#13 - def to_s; end + # source://pdf-reader//lib/pdf/reader/text_run.rb#22 + def to_s(*args, **_arg1, &blk); end - # Returns the value of attribute width. - # - # source://pdf-reader//lib/pdf/reader/text_run.rb#11 + # source://pdf-reader//lib/pdf/reader/text_run.rb#14 + sig { returns(::Numeric) } def width; end - # source://pdf-reader//lib/pdf/reader/text_run.rb#40 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#55 + sig { returns(::Numeric) } def x; end - # source://pdf-reader//lib/pdf/reader/text_run.rb#44 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#60 + sig { returns(::Numeric) } def y; end private - # source://pdf-reader//lib/pdf/reader/text_run.rb#96 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#121 + sig { returns(::Numeric) } def area; end # Assume string encoding is marked correctly and we can trust String#size to return a # character count # - # source://pdf-reader//lib/pdf/reader/text_run.rb#106 - sig { returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#133 + sig { returns(::Float) } def character_count; end - # source://pdf-reader//lib/pdf/reader/text_run.rb#100 - sig { returns(T::Range[Numeric]) } + # source://pdf-reader//lib/pdf/reader/text_run.rb#126 + sig { returns(T::Range[::Numeric]) } def mergable_range; end end @@ -3958,13 +3863,11 @@ end # # Behaves exactly like a Ruby String - it basically exists for convenience. # -# source://pdf-reader//lib/pdf/reader/token.rb#37 +# source://pdf-reader//lib/pdf/reader/token.rb#35 class PDF::Reader::Token < ::String # Creates a new token with the specified value # - # @return [Token] a new instance of Token - # - # source://pdf-reader//lib/pdf/reader/token.rb#38 + # source://pdf-reader//lib/pdf/reader/token.rb#39 sig { params(val: T.untyped).void } def initialize(val); end end @@ -3982,40 +3885,32 @@ end # # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#16 class PDF::Reader::TransformationMatrix - # @return [TransformationMatrix] a new instance of TransformationMatrix - # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#19 - sig { params(a: Numeric, b: Numeric, c: Numeric, d: Numeric, e: Numeric, f: Numeric).void } + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#36 + sig { params(a: ::Numeric, b: ::Numeric, c: ::Numeric, d: ::Numeric, e: ::Numeric, f: ::Numeric).void } def initialize(a, b, c, d, e, f); end - # Returns the value of attribute a. - # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#17 + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#18 + sig { returns(::Numeric) } def a; end - # Returns the value of attribute b. - # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#17 + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#21 + sig { returns(::Numeric) } def b; end - # Returns the value of attribute c. - # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#17 + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#24 + sig { returns(::Numeric) } def c; end - # Returns the value of attribute d. - # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#17 + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#27 + sig { returns(::Numeric) } def d; end - # Returns the value of attribute e. - # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#17 + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#30 + sig { returns(::Numeric) } def e; end - # Returns the value of attribute f. - # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#17 + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#33 + sig { returns(::Numeric) } def f; end # Optimised method for when the second matrix in the calculation is @@ -4027,12 +3922,13 @@ class PDF::Reader::TransformationMatrix # [ 3 4 0 ] x [ 0 1 0 ] # [ 5 6 1 ] [ e2 0 1 ] # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#93 - sig { params(e2: Numeric).void } + # + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#119 + sig { params(e2: ::Numeric).void } def horizontal_displacement_multiply!(e2); end - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#23 - sig { returns(String) } + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#46 + sig { returns(::String) } def inspect; end # multiply this matrix with another. @@ -4056,21 +3952,22 @@ class PDF::Reader::TransformationMatrix # displacement to speed up processing documents that use vertical # writing systems # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#54 + # + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#79 sig do params( - a: Numeric, - b: Numeric, - c: Numeric, - d: Numeric, - e: Numeric, - f: Numeric - ).returns(PDF::Reader::TransformationMatrix) + a: ::Numeric, + b: ::Numeric, + c: ::Numeric, + d: ::Numeric, + e: ::Numeric, + f: ::Numeric + ).returns(::PDF::Reader::TransformationMatrix) end def multiply!(a, b, c, d, e, f); end - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#27 - sig { returns(T::Array[Numeric]) } + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#51 + sig { returns([::Numeric]) } def to_a; end private @@ -4085,8 +3982,9 @@ class PDF::Reader::TransformationMatrix # [ c d 0 ] x [ c d 0 ] # [ e f 1 ] [ e f 1 ] # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#186 - sig { params(a2: Numeric, b2: Numeric, c2: Numeric, d2: Numeric, e2: Numeric, f2: Numeric).void } + # + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#217 + sig { params(a2: ::Numeric, b2: ::Numeric, c2: ::Numeric, d2: ::Numeric, e2: ::Numeric, f2: ::Numeric).void } def faster_multiply!(a2, b2, c2, d2, e2, f2); end # Optimised method for when the first matrix in the calculation is @@ -4098,8 +3996,9 @@ class PDF::Reader::TransformationMatrix # [ 0 1 0 ] x [ 3 4 0 ] # [ 5 0 1 ] [ 5 6 1 ] # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#108 - sig { params(a2: Numeric, b2: Numeric, c2: Numeric, d2: Numeric, e2: Numeric, f2: Numeric).void } + # + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#135 + sig { params(a2: ::Numeric, b2: ::Numeric, c2: ::Numeric, d2: ::Numeric, e2: ::Numeric, f2: ::Numeric).void } def horizontal_displacement_multiply_reversed!(a2, b2, c2, d2, e2, f2); end # A general solution to multiplying two 3x3 matrixes. This is correct in all cases, @@ -4112,8 +4011,9 @@ class PDF::Reader::TransformationMatrix # [ c d 0 ] x [ c d 0 ] # [ e f 1 ] [ e f 1 ] # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#166 - sig { params(a2: Numeric, b2: Numeric, c2: Numeric, d2: Numeric, e2: Numeric, f2: Numeric).void } + # + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#196 + sig { params(a2: ::Numeric, b2: ::Numeric, c2: ::Numeric, d2: ::Numeric, e2: ::Numeric, f2: ::Numeric).void } def regular_multiply!(a2, b2, c2, d2, e2, f2); end # Optimised method for when the second matrix in the calculation is @@ -4125,8 +4025,9 @@ class PDF::Reader::TransformationMatrix # [ 3 4 0 ] x [ 0 5 0 ] # [ 5 6 1 ] [ 0 0 1 ] # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#127 - sig { params(a2: Numeric, b2: Numeric, c2: Numeric, d2: Numeric, e2: Numeric, f2: Numeric).void } + # + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#155 + sig { params(a2: ::Numeric, b2: ::Numeric, c2: ::Numeric, d2: ::Numeric, e2: ::Numeric, f2: ::Numeric).void } def xy_scaling_multiply!(a2, b2, c2, d2, e2, f2); end # Optimised method for when the first matrix in the calculation is @@ -4138,8 +4039,9 @@ class PDF::Reader::TransformationMatrix # [ 0 5 0 ] x [ 3 4 0 ] # [ 0 0 1 ] [ 5 6 1 ] # - # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#146 - sig { params(a2: Numeric, b2: Numeric, c2: Numeric, d2: Numeric, e2: Numeric, f2: Numeric).void } + # + # source://pdf-reader//lib/pdf/reader/transformation_matrix.rb#175 + sig { params(a2: ::Numeric, b2: ::Numeric, c2: ::Numeric, d2: ::Numeric, e2: ::Numeric, f2: ::Numeric).void } def xy_scaling_multiply_reversed!(a2, b2, c2, d2, e2, f2); end end @@ -4148,32 +4050,32 @@ end # source://pdf-reader//lib/pdf/reader/type_check.rb#10 class PDF::Reader::TypeCheck class << self - # source://pdf-reader//lib/pdf/reader/type_check.rb#12 - sig { params(obj: T.untyped).returns(Integer) } + # source://pdf-reader//lib/pdf/reader/type_check.rb#13 + sig { params(obj: T.untyped).returns(::Integer) } def cast_to_int!(obj); end - # source://pdf-reader//lib/pdf/reader/type_check.rb#24 - sig { params(obj: T.untyped).returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/type_check.rb#26 + sig { params(obj: T.untyped).returns(::Numeric) } def cast_to_numeric!(obj); end - # source://pdf-reader//lib/pdf/reader/type_check.rb#71 - sig { params(obj: T.untyped).returns(T::Hash[Symbol, T.untyped]) } + # source://pdf-reader//lib/pdf/reader/type_check.rb#77 + sig { params(obj: T.untyped).returns(T::Hash[::Symbol, T.untyped]) } def cast_to_pdf_dict!(obj); end - # source://pdf-reader//lib/pdf/reader/type_check.rb#81 - sig { params(obj: T.untyped).returns(T::Hash[Symbol, PDF::Reader::Stream]) } + # source://pdf-reader//lib/pdf/reader/type_check.rb#88 + sig { params(obj: T.untyped).returns(T::Hash[::Symbol, ::PDF::Reader::Stream]) } def cast_to_pdf_dict_with_stream_values!(obj); end - # source://pdf-reader//lib/pdf/reader/type_check.rb#38 - sig { params(string: T.untyped).returns(String) } + # source://pdf-reader//lib/pdf/reader/type_check.rb#41 + sig { params(string: T.untyped).returns(::String) } def cast_to_string!(string); end - # source://pdf-reader//lib/pdf/reader/type_check.rb#50 - sig { params(obj: T.untyped).returns(T.nilable(Symbol)) } + # source://pdf-reader//lib/pdf/reader/type_check.rb#54 + sig { params(obj: T.untyped).returns(::Symbol) } def cast_to_symbol(obj); end - # source://pdf-reader//lib/pdf/reader/type_check.rb#62 - sig { params(obj: T.untyped).returns(Symbol) } + # source://pdf-reader//lib/pdf/reader/type_check.rb#67 + sig { params(obj: T.untyped).returns(::Symbol) } def cast_to_symbol!(obj); end end end @@ -4185,15 +4087,13 @@ end class PDF::Reader::UnimplementedSecurityHandler # @raise [PDF::Reader::EncryptedPDFError] # - # source://pdf-reader//lib/pdf/reader/unimplemented_security_handler.rb#14 - sig { params(buf: T.untyped, ref: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/unimplemented_security_handler.rb#16 + sig { params(buf: ::String, ref: ::PDF::Reader::Reference).returns(::String) } def decrypt(buf, ref); end class << self - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/unimplemented_security_handler.rb#10 - sig { params(encrypt: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/unimplemented_security_handler.rb#11 + sig { params(encrypt: T::Hash[::Symbol, T.untyped]).returns(T::Boolean) } def supports?(encrypt); end end end @@ -4201,7 +4101,7 @@ end # an exception that is raised when a PDF follows the specs but uses a feature # that we don't support just yet # -# source://pdf-reader//lib/pdf/reader/error.rb#79 +# source://pdf-reader//lib/pdf/reader/error.rb#85 class PDF::Reader::UnsupportedFeatureError < ::RuntimeError; end # Page#walk will execute the content stream of a page, calling methods on a receiver class @@ -4216,155 +4116,130 @@ class PDF::Reader::UnsupportedFeatureError < ::RuntimeError; end # # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#17 class PDF::Reader::ValidatingReceiver - # @return [ValidatingReceiver] a new instance of ValidatingReceiver - # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#19 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#20 sig { params(wrapped: T.untyped).void } def initialize(wrapped); end - # Inline Image Operators - # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#224 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#248 sig { params(args: T.untyped).void } def begin_inline_image(*args); end - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#228 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#253 sig { params(args: T.untyped).void } def begin_inline_image_data(*args); end - # Text Object Operators - # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#59 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#65 sig { params(args: T.untyped).void } def begin_text_object(*args); end - # Matrix Operators - # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#42 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#47 sig { params(args: T.untyped).void } def concatenate_matrix(*args); end - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#234 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#260 sig { params(args: T.untyped).void } def end_inline_image(*args); end - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#63 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#70 sig { params(args: T.untyped).void } def end_text_object(*args); end - # Form XObject Operators - # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#211 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#234 sig { params(args: T.untyped).void } def invoke_xobject(*args); end - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#251 - sig { params(methodname: Symbol, args: T.untyped).void } + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#279 + sig { params(methodname: ::Symbol, args: T.untyped).void } def method_missing(methodname, *args); end - # Text Positioning Operators - # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#131 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#146 sig { params(args: T.untyped).void } def move_text_position(*args); end - # TD - # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#140 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#156 sig { params(args: T.untyped).void } def move_text_position_and_set_leading(*args); end - # ' - # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#189 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#210 sig { params(args: T.untyped).void } def move_to_next_line_and_show_text(*args); end - # T* - # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#162 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#180 sig { params(args: T.untyped).void } def move_to_start_of_next_line(*args); end - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#23 - sig { params(page: PDF::Reader::Page).void } + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#25 + sig { params(page: ::PDF::Reader::Page).void } def page=(page); end - # Final safety net for any operators that don't have type checking enabled yet - # - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#247 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#274 sig { params(meth: T.untyped).returns(T::Boolean) } def respond_to?(meth); end - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#34 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#38 sig { params(args: T.untyped).void } def restore_graphics_state(*args); end # Graphics State Operators # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#30 + # + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#33 sig { params(args: T.untyped).void } def save_graphics_state(*args); end # Text State Operators # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#70 + # + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#78 sig { params(args: T.untyped).void } def set_character_spacing(*args); end - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#78 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#87 sig { params(args: T.untyped).void } def set_horizontal_text_scaling(*args); end - # " - # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#197 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#219 sig { params(args: T.untyped).void } def set_spacing_next_line_show_text(*args); end - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#86 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#96 sig { params(args: T.untyped).void } def set_text_font_and_size(*args); end - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#95 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#106 sig { params(args: T.untyped).void } def set_text_leading(*args); end - # Tm - # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#149 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#166 sig { params(args: T.untyped).void } def set_text_matrix_and_text_line_matrix(*args); end - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#103 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#115 sig { params(args: T.untyped).void } def set_text_rendering_mode(*args); end - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#111 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#124 sig { params(args: T.untyped).void } def set_text_rise(*args); end - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#119 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#133 sig { params(args: T.untyped).void } def set_word_spacing(*args); end # Text Showing Operators # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#169 + # + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#188 sig { params(args: T.untyped).void } def show_text(*args); end - # TJ [(A) 120 (WA) 20 (Y)] - # - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#177 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#197 sig { params(args: T.untyped).void } def show_text_with_positioning(*args); end private - # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#257 + # source://pdf-reader//lib/pdf/reader/validating_receiver.rb#286 sig { params(methodname: T.untyped, args: T.untyped).void } def call_wrapped(methodname, *args); end end @@ -4378,32 +4253,26 @@ module PDF::Reader::WidthCalculator; end # # source://pdf-reader//lib/pdf/reader/width_calculator/built_in.rb#14 class PDF::Reader::WidthCalculator::BuiltIn - let T.unsafe(nil), T.nilable(PDF::Reader::SynchronizedCache) - - # @return [BuiltIn] a new instance of BuiltIn - # - # source://pdf-reader//lib/pdf/reader/width_calculator/built_in.rb#24 - sig { params(font: PDF::Reader::Font).void } + # source://pdf-reader//lib/pdf/reader/width_calculator/built_in.rb#26 + sig { params(font: ::PDF::Reader::Font).void } def initialize(font); end - # source://pdf-reader//lib/pdf/reader/width_calculator/built_in.rb#38 - sig { params(code_point: T.nilable(Integer)).returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/width_calculator/built_in.rb#42 + sig { params(code_point: T.nilable(::Integer)).returns(::Numeric) } def glyph_width(code_point); end private - # @return [Boolean] - # - # source://pdf-reader//lib/pdf/reader/width_calculator/built_in.rb#55 - sig { params(code_point: Integer).returns(T::Boolean) } + # source://pdf-reader//lib/pdf/reader/width_calculator/built_in.rb#61 + sig { params(code_point: ::Integer).returns(T::Boolean) } def control_character?(code_point); end - # source://pdf-reader//lib/pdf/reader/width_calculator/built_in.rb#60 - sig { params(font_name: T.nilable(Symbol)).returns(String) } + # source://pdf-reader//lib/pdf/reader/width_calculator/built_in.rb#67 + sig { params(font_name: T.nilable(::Symbol)).returns(::String) } def extract_basefont(font_name); end end -# source://pdf-reader//lib/pdf/reader/width_calculator/built_in.rb#16 +# source://pdf-reader//lib/pdf/reader/width_calculator/built_in.rb#17 PDF::Reader::WidthCalculator::BuiltIn::BUILTINS = T.let(T.unsafe(nil), Array) # CIDFontType0 or CIDFontType2 use DW (integer) and W (array) to determine @@ -4415,14 +4284,12 @@ PDF::Reader::WidthCalculator::BuiltIn::BUILTINS = T.let(T.unsafe(nil), Array) # # source://pdf-reader//lib/pdf/reader/width_calculator/composite.rb#13 class PDF::Reader::WidthCalculator::Composite - # @return [Composite] a new instance of Composite - # - # source://pdf-reader//lib/pdf/reader/width_calculator/composite.rb#15 - sig { params(font: PDF::Reader::Font).void } + # source://pdf-reader//lib/pdf/reader/width_calculator/composite.rb#16 + sig { params(font: ::PDF::Reader::Font).void } def initialize(font); end - # source://pdf-reader//lib/pdf/reader/width_calculator/composite.rb#20 - sig { params(code_point: T.nilable(Integer)).returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/width_calculator/composite.rb#24 + sig { params(code_point: T.nilable(::Integer)).returns(::Numeric) } def glyph_width(code_point); end end @@ -4430,26 +4297,24 @@ end # # source://pdf-reader//lib/pdf/reader/width_calculator/true_type.rb#8 class PDF::Reader::WidthCalculator::TrueType - # @return [TrueType] a new instance of TrueType - # - # source://pdf-reader//lib/pdf/reader/width_calculator/true_type.rb#10 - sig { params(font: PDF::Reader::Font).void } + # source://pdf-reader//lib/pdf/reader/width_calculator/true_type.rb#11 + sig { params(font: ::PDF::Reader::Font).void } def initialize(font); end - # source://pdf-reader//lib/pdf/reader/width_calculator/true_type.rb#20 - sig { params(code_point: T.nilable(Integer)).returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/width_calculator/true_type.rb#22 + sig { params(code_point: T.nilable(::Integer)).returns(::Numeric) } def glyph_width(code_point); end private - # source://pdf-reader//lib/pdf/reader/width_calculator/true_type.rb#41 - sig { params(code_point: Integer).returns(T.nilable(Numeric)) } + # source://pdf-reader//lib/pdf/reader/width_calculator/true_type.rb#45 + sig { params(code_point: ::Integer).returns(T.nilable(::Numeric)) } def glyph_width_from_descriptor(code_point); end # TODO convert Type3 units 1000 units => 1 text space unit # - # source://pdf-reader//lib/pdf/reader/width_calculator/true_type.rb#28 - sig { params(code_point: Integer).returns(T.nilable(Numeric)) } + # source://pdf-reader//lib/pdf/reader/width_calculator/true_type.rb#31 + sig { params(code_point: ::Integer).returns(T.nilable(::Numeric)) } def glyph_width_from_font(code_point); end end @@ -4457,14 +4322,12 @@ end # # source://pdf-reader//lib/pdf/reader/width_calculator/type_one_or_three.rb#8 class PDF::Reader::WidthCalculator::TypeOneOrThree - # @return [TypeOneOrThree] a new instance of TypeOneOrThree - # - # source://pdf-reader//lib/pdf/reader/width_calculator/type_one_or_three.rb#10 - sig { params(font: PDF::Reader::Font).void } + # source://pdf-reader//lib/pdf/reader/width_calculator/type_one_or_three.rb#11 + sig { params(font: ::PDF::Reader::Font).void } def initialize(font); end - # source://pdf-reader//lib/pdf/reader/width_calculator/type_one_or_three.rb#20 - sig { params(code_point: T.nilable(Integer)).returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/width_calculator/type_one_or_three.rb#22 + sig { params(code_point: T.nilable(::Integer)).returns(::Numeric) } def glyph_width(code_point); end end @@ -4476,14 +4339,12 @@ end # # source://pdf-reader//lib/pdf/reader/width_calculator/type_zero.rb#12 class PDF::Reader::WidthCalculator::TypeZero - # @return [TypeZero] a new instance of TypeZero - # - # source://pdf-reader//lib/pdf/reader/width_calculator/type_zero.rb#14 - sig { params(font: PDF::Reader::Font).void } + # source://pdf-reader//lib/pdf/reader/width_calculator/type_zero.rb#15 + sig { params(font: ::PDF::Reader::Font).void } def initialize(font); end - # source://pdf-reader//lib/pdf/reader/width_calculator/type_zero.rb#18 - sig { params(code_point: T.nilable(Integer)).returns(Numeric) } + # source://pdf-reader//lib/pdf/reader/width_calculator/type_zero.rb#20 + sig { params(code_point: T.nilable(::Integer)).returns(::Numeric) } def glyph_width(code_point); end end @@ -4504,48 +4365,49 @@ end # the Enumerable mixin. The key difference is no []= method - the hash # is read only. # +# # source://pdf-reader//lib/pdf/reader/xref.rb#49 class PDF::Reader::XRef + extend T::Generic include ::Enumerable - include Enumerable - # Provides `type_member` helper - extend T::Generic + Elem = type_member # create a new Xref table based on the contents of the supplied io object # # io - must be an IO object, generally either a file or a StringIO # - # @return [XRef] a new instance of XRef # - # source://pdf-reader//lib/pdf/reader/xref.rb#58 - sig { params(io: T.any(IO, Tempfile, StringIO)).void } + # source://pdf-reader//lib/pdf/reader/xref.rb#65 + sig { params(io: T.any(::IO, ::StringIO, ::Tempfile)).void } def initialize(io); end # returns the byte offset for the specified PDF object. # # ref - a PDF::Reader::Reference object containing an object ID and revision number # - # source://pdf-reader//lib/pdf/reader/xref.rb#75 + # source://pdf-reader//lib/pdf/reader/xref.rb#85 sig { params(ref: T.untyped).returns(T.untyped) } def [](ref); end # iterate over each object in the xref table # - # source://pdf-reader//lib/pdf/reader/xref.rb#82 - sig { params(block: T.untyped).returns(T.untyped) } + # @override(allow_incompatible: true) + # + # source://pdf-reader//lib/pdf/reader/xref.rb#95 + sig { override.params(block: T.proc.params(arg0: ::PDF::Reader::Reference).returns(T.untyped)).void } def each(&block); end # return the number of objects in this file. Objects with multiple generations are # only counter once. # - # source://pdf-reader//lib/pdf/reader/xref.rb#68 + # + # source://pdf-reader//lib/pdf/reader/xref.rb#77 sig { returns(T.untyped) } def size; end - # Returns the value of attribute trailer. - # - # source://pdf-reader//lib/pdf/reader/xref.rb#51 + # source://pdf-reader//lib/pdf/reader/xref.rb#57 + sig { returns(T::Hash[::Symbol, T.untyped]) } def trailer; end private @@ -4559,8 +4421,9 @@ class PDF::Reader::XRef # Adobe PDF 1.4 spec (3.4.1) 12. Acrobat viewers require only that the # header appear somewhere within the first 1024 bytes of the file # - # source://pdf-reader//lib/pdf/reader/xref.rb#261 - sig { params(io: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/xref.rb#285 + sig { params(io: T.any(::IO, ::StringIO, ::Tempfile)).returns(T.nilable(::Integer)) } def calc_junk_offset(io); end # Read a xref table from the underlying buffer. @@ -4571,23 +4434,26 @@ class PDF::Reader::XRef # After seeking to the offset, processing is handed of to either load_xref_table() # or load_xref_stream() based on what we find there. # + # # @raise [PDF::Reader::MalformedPDFError] # - # source://pdf-reader//lib/pdf/reader/xref.rb#100 - sig { params(offset: T.untyped).returns(T.untyped) } + # source://pdf-reader//lib/pdf/reader/xref.rb#114 + sig { params(offset: T.nilable(::Integer)).returns(T::Hash[::Symbol, T.untyped]) } def load_offsets(offset = T.unsafe(nil)); end # Read an XRef stream from the underlying buffer instead of a traditional xref table. # - # source://pdf-reader//lib/pdf/reader/xref.rb#172 - sig { params(stream: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/xref.rb#191 + sig { params(stream: ::PDF::Reader::Stream).returns(T::Hash[::Symbol, T.untyped]) } def load_xref_stream(stream); end # Assumes the underlying buffer is positioned at the start of a traditional # Xref table and processes it into memory. # - # source://pdf-reader//lib/pdf/reader/xref.rb#129 - sig { params(buf: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/xref.rb#147 + sig { params(buf: ::PDF::Reader::Buffer).returns(T::Hash[::Symbol, T.untyped]) } def load_xref_table(buf); end # Wrap the io stream we're working with in a buffer that can tokenise it for us. @@ -4595,21 +4461,30 @@ class PDF::Reader::XRef # We create multiple buffers so we can be tokenising multiple sections of the file # at the same time without worrying about clearing the buffers contents. # - # source://pdf-reader//lib/pdf/reader/xref.rb#242 - sig { params(offset: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/xref.rb#264 + sig { params(offset: ::Integer).returns(::PDF::Reader::Buffer) } def new_buffer(offset = T.unsafe(nil)); end # Stores an offset value for a particular PDF object ID and revision number # - # source://pdf-reader//lib/pdf/reader/xref.rb#248 - sig { params(id: T.untyped, gen: T.untyped, offset: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/xref.rb#271 + sig do + params( + id: ::Integer, + gen: ::Integer, + offset: T.any(::Integer, ::PDF::Reader::Reference) + ).returns(T.any(::Integer, ::PDF::Reader::Reference)) + end def store(id, gen, offset); end # XRef streams pack info into integers 1-N bytes wide. Depending on the number of # bytes they need to be converted to an int in different ways. # - # source://pdf-reader//lib/pdf/reader/xref.rb#219 - sig { params(bytes: T.untyped).returns(T.untyped) } + # + # source://pdf-reader//lib/pdf/reader/xref.rb#239 + sig { params(bytes: T.nilable(::String)).returns(::Integer) } def unpack_bytes(bytes); end end @@ -4618,8 +4493,8 @@ end # source://pdf-reader//lib/pdf/reader/zero_width_runs_filter.rb#7 class PDF::Reader::ZeroWidthRunsFilter class << self - # source://pdf-reader//lib/pdf/reader/zero_width_runs_filter.rb#9 - sig { params(runs: T::Array[PDF::Reader::TextRun]).returns(T::Array[PDF::Reader::TextRun]) } + # source://pdf-reader//lib/pdf/reader/zero_width_runs_filter.rb#10 + sig { params(runs: T::Array[::PDF::Reader::TextRun]).returns(T::Array[::PDF::Reader::TextRun]) } def exclude_zero_width_runs(runs); end end end diff --git a/sorbet/rbi/gems/prism@1.4.0.rbi b/sorbet/rbi/gems/prism@1.4.0.rbi index 5a92b9dd..422935e8 100644 --- a/sorbet/rbi/gems/prism@1.4.0.rbi +++ b/sorbet/rbi/gems/prism@1.4.0.rbi @@ -38,12 +38,18 @@ class Parser::Base; end module Prism class << self # Mirror the Prism.dump API by using the serialization API. + # + # source://prism//lib/prism.rb#83 def dump(*_arg0); end # Mirror the Prism.dump_file API by using the serialization API. + # + # source://prism//lib/prism.rb#83 def dump_file(*_arg0); end # Mirror the Prism.lex API by using the serialization API. + # + # source://prism//lib/prism.rb#83 def lex(*_arg0); end # :call-seq: @@ -60,6 +66,8 @@ module Prism def lex_compat(source, **options); end # Mirror the Prism.lex_file API by using the serialization API. + # + # source://prism//lib/prism.rb#83 def lex_file(*_arg0); end # :call-seq: @@ -83,54 +91,80 @@ module Prism def load(source, serialized, freeze = T.unsafe(nil)); end # Mirror the Prism.parse API by using the serialization API. + # + # source://prism//lib/prism.rb#83 def parse(*_arg0); end # Mirror the Prism.parse_comments API by using the serialization API. + # + # source://prism//lib/prism.rb#83 def parse_comments(*_arg0); end # Mirror the Prism.parse_failure? API by using the serialization API. # # @return [Boolean] + # + # source://prism//lib/prism.rb#83 def parse_failure?(*_arg0); end # Mirror the Prism.parse_file API by using the serialization API. This uses # native strings instead of Ruby strings because it allows us to use mmap # when it is available. + # + # source://prism//lib/prism.rb#83 def parse_file(*_arg0); end # Mirror the Prism.parse_file_comments API by using the serialization # API. This uses native strings instead of Ruby strings because it allows us # to use mmap when it is available. + # + # source://prism//lib/prism.rb#83 def parse_file_comments(*_arg0); end # Mirror the Prism.parse_file_failure? API by using the serialization API. # # @return [Boolean] + # + # source://prism//lib/prism.rb#83 def parse_file_failure?(*_arg0); end # Mirror the Prism.parse_file_success? API by using the serialization API. # # @return [Boolean] + # + # source://prism//lib/prism.rb#83 def parse_file_success?(*_arg0); end # Mirror the Prism.parse_lex API by using the serialization API. + # + # source://prism//lib/prism.rb#83 def parse_lex(*_arg0); end # Mirror the Prism.parse_lex_file API by using the serialization API. + # + # source://prism//lib/prism.rb#83 def parse_lex_file(*_arg0); end # Mirror the Prism.parse_stream API by using the serialization API. + # + # source://prism//lib/prism.rb#83 def parse_stream(*_arg0); end # Mirror the Prism.parse_success? API by using the serialization API. # # @return [Boolean] + # + # source://prism//lib/prism.rb#83 def parse_success?(*_arg0); end # Mirror the Prism.profile API by using the serialization API. + # + # source://prism//lib/prism.rb#83 def profile(*_arg0); end # Mirror the Prism.profile_file API by using the serialization API. + # + # source://prism//lib/prism.rb#83 def profile_file(*_arg0); end # Create a new scope with the given locals and forwarding options that is @@ -271,7 +305,7 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#334 + # source://prism//lib/prism/node.rb#354 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -418,7 +452,7 @@ class Prism::AliasMethodNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#441 + # source://prism//lib/prism/node.rb#461 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -577,7 +611,7 @@ class Prism::AlternationPatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#560 + # source://prism//lib/prism/node.rb#580 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -722,7 +756,7 @@ class Prism::AndNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#667 + # source://prism//lib/prism/node.rb#687 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -918,7 +952,7 @@ class Prism::ArgumentsNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#778 + # source://prism//lib/prism/node.rb#798 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -1079,7 +1113,7 @@ class Prism::ArrayNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#883 + # source://prism//lib/prism/node.rb#903 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -1269,7 +1303,7 @@ class Prism::ArrayPatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1040 + # source://prism//lib/prism/node.rb#1065 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -1429,7 +1463,7 @@ class Prism::AssocNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1199 + # source://prism//lib/prism/node.rb#1219 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -1581,7 +1615,7 @@ class Prism::AssocSplatNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1320 + # source://prism//lib/prism/node.rb#1342 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -1710,7 +1744,7 @@ class Prism::BackReferenceReadNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1420 + # source://prism//lib/prism/node.rb#1440 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -1876,7 +1910,7 @@ class Prism::BeginNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1504 + # source://prism//lib/prism/node.rb#1529 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -2046,7 +2080,7 @@ class Prism::BlockArgumentNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1663 + # source://prism//lib/prism/node.rb#1685 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -2170,7 +2204,7 @@ class Prism::BlockLocalVariableNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1763 + # source://prism//lib/prism/node.rb#1783 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -2321,7 +2355,7 @@ class Prism::BlockNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1849 + # source://prism//lib/prism/node.rb#1872 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -2477,7 +2511,7 @@ class Prism::BlockParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1994 + # source://prism//lib/prism/node.rb#2014 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -2663,7 +2697,7 @@ class Prism::BlockParametersNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2130 + # source://prism//lib/prism/node.rb#2153 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -2833,7 +2867,7 @@ class Prism::BreakNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2290 + # source://prism//lib/prism/node.rb#2312 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -2991,7 +3025,7 @@ class Prism::CallAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2396 + # source://prism//lib/prism/node.rb#2419 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -3289,7 +3323,7 @@ class Prism::CallNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2617 + # source://prism//lib/prism/node.rb#2641 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -3586,7 +3620,7 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2866 + # source://prism//lib/prism/node.rb#2889 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -3828,7 +3862,7 @@ class Prism::CallOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3073 + # source://prism//lib/prism/node.rb#3096 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -4075,7 +4109,7 @@ class Prism::CallTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3283 + # source://prism//lib/prism/node.rb#3303 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -4250,7 +4284,7 @@ class Prism::CapturePatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3433 + # source://prism//lib/prism/node.rb#3453 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -4431,7 +4465,7 @@ class Prism::CaseMatchNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3544 + # source://prism//lib/prism/node.rb#3568 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -4618,7 +4652,7 @@ class Prism::CaseNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3689 + # source://prism//lib/prism/node.rb#3713 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -4803,7 +4837,7 @@ class Prism::ClassNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3835 + # source://prism//lib/prism/node.rb#3859 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -4971,7 +5005,7 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3995 + # source://prism//lib/prism/node.rb#4015 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -5150,7 +5184,7 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4121 + # source://prism//lib/prism/node.rb#4141 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -5303,7 +5337,7 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4233 + # source://prism//lib/prism/node.rb#4253 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -5442,7 +5476,7 @@ class Prism::ClassVariableReadNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4343 + # source://prism//lib/prism/node.rb#4363 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -5546,7 +5580,7 @@ class Prism::ClassVariableTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4420 + # source://prism//lib/prism/node.rb#4440 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -5660,7 +5694,7 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4496 + # source://prism//lib/prism/node.rb#4516 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -5869,13 +5903,13 @@ class Prism::Compiler < ::Prism::Visitor # Visit the child nodes of the given node. # Compile a AliasGlobalVariableNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#44 def visit_alias_global_variable_node(node); end # Visit the child nodes of the given node. # Compile a AliasMethodNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#47 def visit_alias_method_node(node); end # Visit a list of nodes. @@ -5887,139 +5921,139 @@ class Prism::Compiler < ::Prism::Visitor # Visit the child nodes of the given node. # Compile a AlternationPatternNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#50 def visit_alternation_pattern_node(node); end # Visit the child nodes of the given node. # Compile a AndNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#53 def visit_and_node(node); end # Visit the child nodes of the given node. # Compile a ArgumentsNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#56 def visit_arguments_node(node); end # Visit the child nodes of the given node. # Compile a ArrayNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#59 def visit_array_node(node); end # Visit the child nodes of the given node. # Compile a ArrayPatternNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#62 def visit_array_pattern_node(node); end # Visit the child nodes of the given node. # Compile a AssocNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#65 def visit_assoc_node(node); end # Visit the child nodes of the given node. # Compile a AssocSplatNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#68 def visit_assoc_splat_node(node); end # Visit the child nodes of the given node. # Compile a BackReferenceReadNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#71 def visit_back_reference_read_node(node); end # Visit the child nodes of the given node. # Compile a BeginNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#74 def visit_begin_node(node); end # Visit the child nodes of the given node. # Compile a BlockArgumentNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#77 def visit_block_argument_node(node); end # Visit the child nodes of the given node. # Compile a BlockLocalVariableNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#80 def visit_block_local_variable_node(node); end # Visit the child nodes of the given node. # Compile a BlockNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#83 def visit_block_node(node); end # Visit the child nodes of the given node. # Compile a BlockParameterNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#86 def visit_block_parameter_node(node); end # Visit the child nodes of the given node. # Compile a BlockParametersNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#89 def visit_block_parameters_node(node); end # Visit the child nodes of the given node. # Compile a BreakNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#92 def visit_break_node(node); end # Visit the child nodes of the given node. # Compile a CallAndWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#95 def visit_call_and_write_node(node); end # Visit the child nodes of the given node. # Compile a CallNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#98 def visit_call_node(node); end # Visit the child nodes of the given node. # Compile a CallOperatorWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#101 def visit_call_operator_write_node(node); end # Visit the child nodes of the given node. # Compile a CallOrWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#104 def visit_call_or_write_node(node); end # Visit the child nodes of the given node. # Compile a CallTargetNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#107 def visit_call_target_node(node); end # Visit the child nodes of the given node. # Compile a CapturePatternNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#110 def visit_capture_pattern_node(node); end # Visit the child nodes of the given node. # Compile a CaseMatchNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#113 def visit_case_match_node(node); end # Visit the child nodes of the given node. # Compile a CaseNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#116 def visit_case_node(node); end # Visit the child nodes of the given node. @@ -6031,757 +6065,757 @@ class Prism::Compiler < ::Prism::Visitor # Visit the child nodes of the given node. # Compile a ClassNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#119 def visit_class_node(node); end # Visit the child nodes of the given node. # Compile a ClassVariableAndWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#122 def visit_class_variable_and_write_node(node); end # Visit the child nodes of the given node. # Compile a ClassVariableOperatorWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#125 def visit_class_variable_operator_write_node(node); end # Visit the child nodes of the given node. # Compile a ClassVariableOrWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#128 def visit_class_variable_or_write_node(node); end # Visit the child nodes of the given node. # Compile a ClassVariableReadNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#131 def visit_class_variable_read_node(node); end # Visit the child nodes of the given node. # Compile a ClassVariableTargetNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#134 def visit_class_variable_target_node(node); end # Visit the child nodes of the given node. # Compile a ClassVariableWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#137 def visit_class_variable_write_node(node); end # Visit the child nodes of the given node. # Compile a ConstantAndWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#140 def visit_constant_and_write_node(node); end # Visit the child nodes of the given node. # Compile a ConstantOperatorWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#143 def visit_constant_operator_write_node(node); end # Visit the child nodes of the given node. # Compile a ConstantOrWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#146 def visit_constant_or_write_node(node); end # Visit the child nodes of the given node. # Compile a ConstantPathAndWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#149 def visit_constant_path_and_write_node(node); end # Visit the child nodes of the given node. # Compile a ConstantPathNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#152 def visit_constant_path_node(node); end # Visit the child nodes of the given node. # Compile a ConstantPathOperatorWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#155 def visit_constant_path_operator_write_node(node); end # Visit the child nodes of the given node. # Compile a ConstantPathOrWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#158 def visit_constant_path_or_write_node(node); end # Visit the child nodes of the given node. # Compile a ConstantPathTargetNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#161 def visit_constant_path_target_node(node); end # Visit the child nodes of the given node. # Compile a ConstantPathWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#164 def visit_constant_path_write_node(node); end # Visit the child nodes of the given node. # Compile a ConstantReadNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#167 def visit_constant_read_node(node); end # Visit the child nodes of the given node. # Compile a ConstantTargetNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#170 def visit_constant_target_node(node); end # Visit the child nodes of the given node. # Compile a ConstantWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#173 def visit_constant_write_node(node); end # Visit the child nodes of the given node. # Compile a DefNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#176 def visit_def_node(node); end # Visit the child nodes of the given node. # Compile a DefinedNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#179 def visit_defined_node(node); end # Visit the child nodes of the given node. # Compile a ElseNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#182 def visit_else_node(node); end # Visit the child nodes of the given node. # Compile a EmbeddedStatementsNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#185 def visit_embedded_statements_node(node); end # Visit the child nodes of the given node. # Compile a EmbeddedVariableNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#188 def visit_embedded_variable_node(node); end # Visit the child nodes of the given node. # Compile a EnsureNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#191 def visit_ensure_node(node); end # Visit the child nodes of the given node. # Compile a FalseNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#194 def visit_false_node(node); end # Visit the child nodes of the given node. # Compile a FindPatternNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#197 def visit_find_pattern_node(node); end # Visit the child nodes of the given node. # Compile a FlipFlopNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#200 def visit_flip_flop_node(node); end # Visit the child nodes of the given node. # Compile a FloatNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#203 def visit_float_node(node); end # Visit the child nodes of the given node. # Compile a ForNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#206 def visit_for_node(node); end # Visit the child nodes of the given node. # Compile a ForwardingArgumentsNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#209 def visit_forwarding_arguments_node(node); end # Visit the child nodes of the given node. # Compile a ForwardingParameterNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#212 def visit_forwarding_parameter_node(node); end # Visit the child nodes of the given node. # Compile a ForwardingSuperNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#215 def visit_forwarding_super_node(node); end # Visit the child nodes of the given node. # Compile a GlobalVariableAndWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#218 def visit_global_variable_and_write_node(node); end # Visit the child nodes of the given node. # Compile a GlobalVariableOperatorWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#221 def visit_global_variable_operator_write_node(node); end # Visit the child nodes of the given node. # Compile a GlobalVariableOrWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#224 def visit_global_variable_or_write_node(node); end # Visit the child nodes of the given node. # Compile a GlobalVariableReadNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#227 def visit_global_variable_read_node(node); end # Visit the child nodes of the given node. # Compile a GlobalVariableTargetNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#230 def visit_global_variable_target_node(node); end # Visit the child nodes of the given node. # Compile a GlobalVariableWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#233 def visit_global_variable_write_node(node); end # Visit the child nodes of the given node. # Compile a HashNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#236 def visit_hash_node(node); end # Visit the child nodes of the given node. # Compile a HashPatternNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#239 def visit_hash_pattern_node(node); end # Visit the child nodes of the given node. # Compile a IfNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#242 def visit_if_node(node); end # Visit the child nodes of the given node. # Compile a ImaginaryNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#245 def visit_imaginary_node(node); end # Visit the child nodes of the given node. # Compile a ImplicitNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#248 def visit_implicit_node(node); end # Visit the child nodes of the given node. # Compile a ImplicitRestNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#251 def visit_implicit_rest_node(node); end # Visit the child nodes of the given node. # Compile a InNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#254 def visit_in_node(node); end # Visit the child nodes of the given node. # Compile a IndexAndWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#257 def visit_index_and_write_node(node); end # Visit the child nodes of the given node. # Compile a IndexOperatorWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#260 def visit_index_operator_write_node(node); end # Visit the child nodes of the given node. # Compile a IndexOrWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#263 def visit_index_or_write_node(node); end # Visit the child nodes of the given node. # Compile a IndexTargetNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#266 def visit_index_target_node(node); end # Visit the child nodes of the given node. # Compile a InstanceVariableAndWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#269 def visit_instance_variable_and_write_node(node); end # Visit the child nodes of the given node. # Compile a InstanceVariableOperatorWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#272 def visit_instance_variable_operator_write_node(node); end # Visit the child nodes of the given node. # Compile a InstanceVariableOrWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#275 def visit_instance_variable_or_write_node(node); end # Visit the child nodes of the given node. # Compile a InstanceVariableReadNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#278 def visit_instance_variable_read_node(node); end # Visit the child nodes of the given node. # Compile a InstanceVariableTargetNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#281 def visit_instance_variable_target_node(node); end # Visit the child nodes of the given node. # Compile a InstanceVariableWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#284 def visit_instance_variable_write_node(node); end # Visit the child nodes of the given node. # Compile a IntegerNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#287 def visit_integer_node(node); end # Visit the child nodes of the given node. # Compile a InterpolatedMatchLastLineNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#290 def visit_interpolated_match_last_line_node(node); end # Visit the child nodes of the given node. # Compile a InterpolatedRegularExpressionNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#293 def visit_interpolated_regular_expression_node(node); end # Visit the child nodes of the given node. # Compile a InterpolatedStringNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#296 def visit_interpolated_string_node(node); end # Visit the child nodes of the given node. # Compile a InterpolatedSymbolNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#299 def visit_interpolated_symbol_node(node); end # Visit the child nodes of the given node. # Compile a InterpolatedXStringNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#302 def visit_interpolated_x_string_node(node); end # Visit the child nodes of the given node. # Compile a ItLocalVariableReadNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#305 def visit_it_local_variable_read_node(node); end # Visit the child nodes of the given node. # Compile a ItParametersNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#308 def visit_it_parameters_node(node); end # Visit the child nodes of the given node. # Compile a KeywordHashNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#311 def visit_keyword_hash_node(node); end # Visit the child nodes of the given node. # Compile a KeywordRestParameterNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#314 def visit_keyword_rest_parameter_node(node); end # Visit the child nodes of the given node. # Compile a LambdaNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#317 def visit_lambda_node(node); end # Visit the child nodes of the given node. # Compile a LocalVariableAndWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#320 def visit_local_variable_and_write_node(node); end # Visit the child nodes of the given node. # Compile a LocalVariableOperatorWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#323 def visit_local_variable_operator_write_node(node); end # Visit the child nodes of the given node. # Compile a LocalVariableOrWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#326 def visit_local_variable_or_write_node(node); end # Visit the child nodes of the given node. # Compile a LocalVariableReadNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#329 def visit_local_variable_read_node(node); end # Visit the child nodes of the given node. # Compile a LocalVariableTargetNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#332 def visit_local_variable_target_node(node); end # Visit the child nodes of the given node. # Compile a LocalVariableWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#335 def visit_local_variable_write_node(node); end # Visit the child nodes of the given node. # Compile a MatchLastLineNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#338 def visit_match_last_line_node(node); end # Visit the child nodes of the given node. # Compile a MatchPredicateNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#341 def visit_match_predicate_node(node); end # Visit the child nodes of the given node. # Compile a MatchRequiredNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#344 def visit_match_required_node(node); end # Visit the child nodes of the given node. # Compile a MatchWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#347 def visit_match_write_node(node); end # Visit the child nodes of the given node. # Compile a MissingNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#350 def visit_missing_node(node); end # Visit the child nodes of the given node. # Compile a ModuleNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#353 def visit_module_node(node); end # Visit the child nodes of the given node. # Compile a MultiTargetNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#356 def visit_multi_target_node(node); end # Visit the child nodes of the given node. # Compile a MultiWriteNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#359 def visit_multi_write_node(node); end # Visit the child nodes of the given node. # Compile a NextNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#362 def visit_next_node(node); end # Visit the child nodes of the given node. # Compile a NilNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#365 def visit_nil_node(node); end # Visit the child nodes of the given node. # Compile a NoKeywordsParameterNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#368 def visit_no_keywords_parameter_node(node); end # Visit the child nodes of the given node. # Compile a NumberedParametersNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#371 def visit_numbered_parameters_node(node); end # Visit the child nodes of the given node. # Compile a NumberedReferenceReadNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#374 def visit_numbered_reference_read_node(node); end # Visit the child nodes of the given node. # Compile a OptionalKeywordParameterNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#377 def visit_optional_keyword_parameter_node(node); end # Visit the child nodes of the given node. # Compile a OptionalParameterNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#380 def visit_optional_parameter_node(node); end # Visit the child nodes of the given node. # Compile a OrNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#383 def visit_or_node(node); end # Visit the child nodes of the given node. # Compile a ParametersNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#386 def visit_parameters_node(node); end # Visit the child nodes of the given node. # Compile a ParenthesesNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#389 def visit_parentheses_node(node); end # Visit the child nodes of the given node. # Compile a PinnedExpressionNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#392 def visit_pinned_expression_node(node); end # Visit the child nodes of the given node. # Compile a PinnedVariableNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#395 def visit_pinned_variable_node(node); end # Visit the child nodes of the given node. # Compile a PostExecutionNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#398 def visit_post_execution_node(node); end # Visit the child nodes of the given node. # Compile a PreExecutionNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#401 def visit_pre_execution_node(node); end # Visit the child nodes of the given node. # Compile a ProgramNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#404 def visit_program_node(node); end # Visit the child nodes of the given node. # Compile a RangeNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#407 def visit_range_node(node); end # Visit the child nodes of the given node. # Compile a RationalNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#410 def visit_rational_node(node); end # Visit the child nodes of the given node. # Compile a RedoNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#413 def visit_redo_node(node); end # Visit the child nodes of the given node. # Compile a RegularExpressionNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#416 def visit_regular_expression_node(node); end # Visit the child nodes of the given node. # Compile a RequiredKeywordParameterNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#419 def visit_required_keyword_parameter_node(node); end # Visit the child nodes of the given node. # Compile a RequiredParameterNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#422 def visit_required_parameter_node(node); end # Visit the child nodes of the given node. # Compile a RescueModifierNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#425 def visit_rescue_modifier_node(node); end # Visit the child nodes of the given node. # Compile a RescueNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#428 def visit_rescue_node(node); end # Visit the child nodes of the given node. # Compile a RestParameterNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#431 def visit_rest_parameter_node(node); end # Visit the child nodes of the given node. # Compile a RetryNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#434 def visit_retry_node(node); end # Visit the child nodes of the given node. # Compile a ReturnNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#437 def visit_return_node(node); end # Visit the child nodes of the given node. # Compile a SelfNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#440 def visit_self_node(node); end # Visit the child nodes of the given node. # Compile a ShareableConstantNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#443 def visit_shareable_constant_node(node); end # Visit the child nodes of the given node. # Compile a SingletonClassNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#446 def visit_singleton_class_node(node); end # Visit the child nodes of the given node. # Compile a SourceEncodingNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#449 def visit_source_encoding_node(node); end # Visit the child nodes of the given node. # Compile a SourceFileNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#452 def visit_source_file_node(node); end # Visit the child nodes of the given node. # Compile a SourceLineNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#455 def visit_source_line_node(node); end # Visit the child nodes of the given node. # Compile a SplatNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#458 def visit_splat_node(node); end # Visit the child nodes of the given node. # Compile a StatementsNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#461 def visit_statements_node(node); end # Visit the child nodes of the given node. # Compile a StringNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#464 def visit_string_node(node); end # Visit the child nodes of the given node. # Compile a SuperNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#467 def visit_super_node(node); end # Visit the child nodes of the given node. # Compile a SymbolNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#470 def visit_symbol_node(node); end # Visit the child nodes of the given node. # Compile a TrueNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#473 def visit_true_node(node); end # Visit the child nodes of the given node. # Compile a UndefNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#476 def visit_undef_node(node); end # Visit the child nodes of the given node. # Compile a UnlessNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#479 def visit_unless_node(node); end # Visit the child nodes of the given node. # Compile a UntilNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#482 def visit_until_node(node); end # Visit the child nodes of the given node. # Compile a WhenNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#485 def visit_when_node(node); end # Visit the child nodes of the given node. # Compile a WhileNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#488 def visit_while_node(node); end # Visit the child nodes of the given node. # Compile a XStringNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#491 def visit_x_string_node(node); end # Visit the child nodes of the given node. # Compile a YieldNode node # - # source://prism//lib/prism/compiler.rb#39 + # source://prism//lib/prism/compiler.rb#494 def visit_yield_node(node); end end @@ -6860,7 +6894,7 @@ class Prism::ConstantAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4625 + # source://prism//lib/prism/node.rb#4645 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -7027,7 +7061,7 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4739 + # source://prism//lib/prism/node.rb#4759 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -7180,7 +7214,7 @@ class Prism::ConstantOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4851 + # source://prism//lib/prism/node.rb#4871 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -7331,7 +7365,7 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4963 + # source://prism//lib/prism/node.rb#4983 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -7476,7 +7510,7 @@ class Prism::ConstantPathNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5062 + # source://prism//lib/prism/node.rb#5084 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -7689,7 +7723,7 @@ class Prism::ConstantPathOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5198 + # source://prism//lib/prism/node.rb#5218 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -7825,7 +7859,7 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5295 + # source://prism//lib/prism/node.rb#5315 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -7970,7 +8004,7 @@ class Prism::ConstantPathTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5394 + # source://prism//lib/prism/node.rb#5416 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -8137,7 +8171,7 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5514 + # source://prism//lib/prism/node.rb#5534 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -8273,7 +8307,7 @@ class Prism::ConstantReadNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5622 + # source://prism//lib/prism/node.rb#5642 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -8390,7 +8424,7 @@ class Prism::ConstantTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5699 + # source://prism//lib/prism/node.rb#5719 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -8517,7 +8551,7 @@ class Prism::ConstantWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5775 + # source://prism//lib/prism/node.rb#5795 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -11366,7 +11400,7 @@ class Prism::DefNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5913 + # source://prism//lib/prism/node.rb#5937 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -11618,7 +11652,7 @@ class Prism::DefinedNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6168 + # source://prism//lib/prism/node.rb#6188 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -12045,7 +12079,7 @@ class Prism::Dispatcher < ::Prism::Visitor # # def dispatch: (Node) -> void # - # source://prism//lib/prism/visitor.rb#17 + # source://prism//lib/prism/dispatcher.rb#61 def dispatch(node); end # Dispatches a single event for `node` to all registered listeners. @@ -14780,7 +14814,7 @@ class Prism::ElseNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6312 + # source://prism//lib/prism/node.rb#6334 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -14960,7 +14994,7 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6433 + # source://prism//lib/prism/node.rb#6455 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -15094,7 +15128,7 @@ class Prism::EmbeddedVariableNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6547 + # source://prism//lib/prism/node.rb#6567 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -15245,7 +15279,7 @@ class Prism::EnsureNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6645 + # source://prism//lib/prism/node.rb#6667 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -15374,7 +15408,7 @@ class Prism::FalseNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6757 + # source://prism//lib/prism/node.rb#6777 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -15510,7 +15544,7 @@ class Prism::FindPatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6837 + # source://prism//lib/prism/node.rb#6862 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -15658,7 +15692,7 @@ class Prism::FlipFlopNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6980 + # source://prism//lib/prism/node.rb#7003 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -15783,7 +15817,7 @@ class Prism::FloatNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7085 + # source://prism//lib/prism/node.rb#7105 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -15912,7 +15946,7 @@ class Prism::ForNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7164 + # source://prism//lib/prism/node.rb#7188 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -16107,7 +16141,7 @@ class Prism::ForwardingArgumentsNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7355 + # source://prism//lib/prism/node.rb#7375 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -16195,7 +16229,7 @@ class Prism::ForwardingParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7424 + # source://prism//lib/prism/node.rb#7444 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -16303,7 +16337,7 @@ class Prism::ForwardingSuperNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7493 + # source://prism//lib/prism/node.rb#7515 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -16411,7 +16445,7 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7571 + # source://prism//lib/prism/node.rb#7591 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -16578,7 +16612,7 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7685 + # source://prism//lib/prism/node.rb#7705 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -16731,7 +16765,7 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7797 + # source://prism//lib/prism/node.rb#7817 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -16870,7 +16904,7 @@ class Prism::GlobalVariableReadNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7907 + # source://prism//lib/prism/node.rb#7927 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -16974,7 +17008,7 @@ class Prism::GlobalVariableTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7984 + # source://prism//lib/prism/node.rb#8004 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -17088,7 +17122,7 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8060 + # source://prism//lib/prism/node.rb#8080 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -17267,7 +17301,7 @@ class Prism::HashNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8188 + # source://prism//lib/prism/node.rb#8208 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -17437,7 +17471,7 @@ class Prism::HashPatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8319 + # source://prism//lib/prism/node.rb#8343 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -17607,7 +17641,7 @@ class Prism::IfNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8466 + # source://prism//lib/prism/node.rb#8490 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -17830,7 +17864,7 @@ class Prism::ImaginaryNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8672 + # source://prism//lib/prism/node.rb#8692 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -17950,7 +17984,7 @@ class Prism::ImplicitNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8751 + # source://prism//lib/prism/node.rb#8771 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -18054,7 +18088,7 @@ class Prism::ImplicitRestNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8832 + # source://prism//lib/prism/node.rb#8852 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -18162,7 +18196,7 @@ class Prism::InNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8904 + # source://prism//lib/prism/node.rb#8927 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -18370,7 +18404,7 @@ class Prism::IndexAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9035 + # source://prism//lib/prism/node.rb#9060 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -18628,7 +18662,7 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9236 + # source://prism//lib/prism/node.rb#9261 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -18872,7 +18906,7 @@ class Prism::IndexOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9435 + # source://prism//lib/prism/node.rb#9460 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -19106,7 +19140,7 @@ class Prism::IndexTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9640 + # source://prism//lib/prism/node.rb#9664 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -20111,7 +20145,7 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9787 + # source://prism//lib/prism/node.rb#9807 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -20278,7 +20312,7 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9901 + # source://prism//lib/prism/node.rb#9921 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -20431,7 +20465,7 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10013 + # source://prism//lib/prism/node.rb#10033 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -20570,7 +20604,7 @@ class Prism::InstanceVariableReadNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10123 + # source://prism//lib/prism/node.rb#10143 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -20674,7 +20708,7 @@ class Prism::InstanceVariableTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10200 + # source://prism//lib/prism/node.rb#10220 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -20788,7 +20822,7 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10276 + # source://prism//lib/prism/node.rb#10296 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -20989,7 +21023,7 @@ class Prism::IntegerNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10402 + # source://prism//lib/prism/node.rb#10422 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -21139,7 +21173,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10498 + # source://prism//lib/prism/node.rb#10518 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -21383,7 +21417,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10668 + # source://prism//lib/prism/node.rb#10688 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -21619,7 +21653,7 @@ class Prism::InterpolatedStringNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10838 + # source://prism//lib/prism/node.rb#10858 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -21802,7 +21836,7 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10975 + # source://prism//lib/prism/node.rb#10995 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -21955,7 +21989,7 @@ class Prism::InterpolatedXStringNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11101 + # source://prism//lib/prism/node.rb#11121 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -22078,7 +22112,7 @@ class Prism::ItLocalVariableReadNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11212 + # source://prism//lib/prism/node.rb#11232 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -22165,7 +22199,7 @@ class Prism::ItParametersNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11280 + # source://prism//lib/prism/node.rb#11300 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -22267,7 +22301,7 @@ class Prism::KeywordHashNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11349 + # source://prism//lib/prism/node.rb#11369 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -22398,7 +22432,7 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11432 + # source://prism//lib/prism/node.rb#11452 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -22572,7 +22606,7 @@ class Prism::LambdaNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11555 + # source://prism//lib/prism/node.rb#11578 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -23042,7 +23076,7 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11701 + # source://prism//lib/prism/node.rb#11721 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -23217,7 +23251,7 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11820 + # source://prism//lib/prism/node.rb#11840 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -23378,7 +23412,7 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11937 + # source://prism//lib/prism/node.rb#11957 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -23533,7 +23567,7 @@ class Prism::LocalVariableReadNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12052 + # source://prism//lib/prism/node.rb#12072 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -23663,7 +23697,7 @@ class Prism::LocalVariableTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12144 + # source://prism//lib/prism/node.rb#12164 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -23785,7 +23819,7 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12225 + # source://prism//lib/prism/node.rb#12245 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -24336,7 +24370,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12368 + # source://prism//lib/prism/node.rb#12388 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -24561,7 +24595,7 @@ class Prism::MatchPredicateNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12556 + # source://prism//lib/prism/node.rb#12576 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -24697,7 +24731,7 @@ class Prism::MatchRequiredNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12654 + # source://prism//lib/prism/node.rb#12674 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -24837,7 +24871,7 @@ class Prism::MatchWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12751 + # source://prism//lib/prism/node.rb#12771 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -24927,7 +24961,7 @@ class Prism::MissingNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12825 + # source://prism//lib/prism/node.rb#12845 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -25051,7 +25085,7 @@ class Prism::ModuleNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12899 + # source://prism//lib/prism/node.rb#12922 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -25214,7 +25248,7 @@ class Prism::MultiTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13035 + # source://prism//lib/prism/node.rb#13059 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -25416,7 +25450,7 @@ class Prism::MultiWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13208 + # source://prism//lib/prism/node.rb#13233 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -26406,7 +26440,7 @@ class Prism::NextNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13406 + # source://prism//lib/prism/node.rb#13428 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -26511,7 +26545,7 @@ class Prism::NilNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13499 + # source://prism//lib/prism/node.rb#13519 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -26616,7 +26650,7 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13570 + # source://prism//lib/prism/node.rb#13590 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -26771,7 +26805,7 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#264 + # source://prism//lib/prism/node.rb#268 sig { abstract.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -26874,7 +26908,7 @@ class Prism::Node # An alias for source_lines, used to mimic the API from # RubyVM::AbstractSyntaxTree to make it easier to migrate. # - # source://prism//lib/prism/node.rb#135 + # source://prism//lib/prism/node.rb#141 sig { returns(T::Array[String]) } def script_lines; end @@ -27099,7 +27133,7 @@ class Prism::NumberedParametersNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13677 + # source://prism//lib/prism/node.rb#13697 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -27207,7 +27241,7 @@ class Prism::NumberedReferenceReadNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13750 + # source://prism//lib/prism/node.rb#13770 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -27326,7 +27360,7 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13832 + # source://prism//lib/prism/node.rb#13852 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -27467,7 +27501,7 @@ class Prism::OptionalParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13933 + # source://prism//lib/prism/node.rb#13953 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -27623,7 +27657,7 @@ class Prism::OrNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14051 + # source://prism//lib/prism/node.rb#14071 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -27706,6 +27740,7 @@ end # source://prism//lib/prism/pack.rb#6 module Prism::Pack class << self + # source://prism//lib/prism.rb#83 def parse(_arg0, _arg1, _arg2); end end end @@ -28041,7 +28076,7 @@ class Prism::ParametersNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14169 + # source://prism//lib/prism/node.rb#14197 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -28211,7 +28246,7 @@ class Prism::ParenthesesNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14280 + # source://prism//lib/prism/node.rb#14302 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -28599,7 +28634,7 @@ class Prism::ParseResult::Newlines < ::Prism::Visitor # Permit block/lambda nodes to mark newlines within themselves. # - # source://prism//lib/prism/parse_result/newlines.rb#33 + # source://prism//lib/prism/parse_result/newlines.rb#44 def visit_lambda_node(node); end # Permit statements lists to mark newlines within themselves. @@ -28609,7 +28644,7 @@ class Prism::ParseResult::Newlines < ::Prism::Visitor # Mark if/unless nodes as newlines. # - # source://prism//lib/prism/parse_result/newlines.rb#47 + # source://prism//lib/prism/parse_result/newlines.rb#52 def visit_unless_node(node); end end @@ -28899,7 +28934,7 @@ class Prism::PinnedExpressionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14402 + # source://prism//lib/prism/node.rb#14422 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -29063,7 +29098,7 @@ class Prism::PinnedVariableNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14533 + # source://prism//lib/prism/node.rb#14553 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -29209,7 +29244,7 @@ class Prism::PostExecutionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14628 + # source://prism//lib/prism/node.rb#14650 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -29377,7 +29412,7 @@ class Prism::PreExecutionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14763 + # source://prism//lib/prism/node.rb#14785 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -29526,7 +29561,7 @@ class Prism::ProgramNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14893 + # source://prism//lib/prism/node.rb#14913 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -29657,7 +29692,7 @@ class Prism::RangeNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14976 + # source://prism//lib/prism/node.rb#14999 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -29828,7 +29863,7 @@ class Prism::RationalNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15095 + # source://prism//lib/prism/node.rb#15115 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -29959,7 +29994,7 @@ class Prism::RedoNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15196 + # source://prism//lib/prism/node.rb#15216 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -30291,7 +30326,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15268 + # source://prism//lib/prism/node.rb#15288 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -31053,7 +31088,7 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15456 + # source://prism//lib/prism/node.rb#15476 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -31174,7 +31209,7 @@ class Prism::RequiredParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15550 + # source://prism//lib/prism/node.rb#15570 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -31294,7 +31329,7 @@ class Prism::RescueModifierNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15631 + # source://prism//lib/prism/node.rb#15651 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -31452,7 +31487,7 @@ class Prism::RescueNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15738 + # source://prism//lib/prism/node.rb#15763 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -31639,7 +31674,7 @@ class Prism::RestParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15901 + # source://prism//lib/prism/node.rb#15921 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -31872,7 +31907,7 @@ class Prism::RetryNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16018 + # source://prism//lib/prism/node.rb#16038 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -31982,7 +32017,7 @@ class Prism::ReturnNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16088 + # source://prism//lib/prism/node.rb#16110 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -32118,7 +32153,7 @@ class Prism::SelfNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16181 + # source://prism//lib/prism/node.rb#16201 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -32417,7 +32452,7 @@ class Prism::ShareableConstantNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16251 + # source://prism//lib/prism/node.rb#16271 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -32599,7 +32634,7 @@ class Prism::SingletonClassNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16345 + # source://prism//lib/prism/node.rb#16368 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -32901,7 +32936,7 @@ class Prism::SourceEncodingNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16486 + # source://prism//lib/prism/node.rb#16506 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -33003,7 +33038,7 @@ class Prism::SourceFileNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16555 + # source://prism//lib/prism/node.rb#16575 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -33128,7 +33163,7 @@ class Prism::SourceLineNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16648 + # source://prism//lib/prism/node.rb#16668 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -33232,7 +33267,7 @@ class Prism::SplatNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16718 + # source://prism//lib/prism/node.rb#16740 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -33364,7 +33399,7 @@ class Prism::StatementsNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16812 + # source://prism//lib/prism/node.rb#16832 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -33525,7 +33560,7 @@ class Prism::StringNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16895 + # source://prism//lib/prism/node.rb#16915 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -33678,16 +33713,22 @@ class Prism::StringQuery # Mirrors the C extension's StringQuery::constant? method. # # @return [Boolean] + # + # source://prism//lib/prism.rb#83 def constant?(_arg0); end # Mirrors the C extension's StringQuery::local? method. # # @return [Boolean] + # + # source://prism//lib/prism.rb#83 def local?(_arg0); end # Mirrors the C extension's StringQuery::method_name? method. # # @return [Boolean] + # + # source://prism//lib/prism.rb#83 def method_name?(_arg0); end end end @@ -33784,7 +33825,7 @@ class Prism::SuperNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17065 + # source://prism//lib/prism/node.rb#17088 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -33981,7 +34022,7 @@ class Prism::SymbolNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17220 + # source://prism//lib/prism/node.rb#17240 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -34749,7 +34790,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # if foo .. bar; end # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1501 + # source://prism//lib/prism/translation/parser/compiler.rb#1519 def visit_flip_flop_node(node); end # 1.0 @@ -34939,7 +34980,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # if /foo #{bar}/ then end # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1100 + # source://prism//lib/prism/translation/parser/compiler.rb#1111 def visit_interpolated_match_last_line_node(node); end # /foo #{bar}/ @@ -35040,7 +35081,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # if /foo/ then end # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1535 + # source://prism//lib/prism/translation/parser/compiler.rb#1555 def visit_match_last_line_node(node); end # foo in bar @@ -35661,30 +35702,47 @@ class Prism::Translation::Parser::Lexer::HeredocData < ::Struct # Returns the value of attribute common_whitespace # # @return [Object] the current value of common_whitespace + # + # source://prism//lib/prism/translation/parser/lexer.rb#213 def common_whitespace; end # Sets the attribute common_whitespace # # @param value [Object] the value to set the attribute common_whitespace to. # @return [Object] the newly set value + # + # source://prism//lib/prism/translation/parser/lexer.rb#213 def common_whitespace=(_); end # Returns the value of attribute identifier # # @return [Object] the current value of identifier + # + # source://prism//lib/prism/translation/parser/lexer.rb#213 def identifier; end # Sets the attribute identifier # # @param value [Object] the value to set the attribute identifier to. # @return [Object] the newly set value + # + # source://prism//lib/prism/translation/parser/lexer.rb#213 def identifier=(_); end class << self + # source://prism//lib/prism/translation/parser/lexer.rb#213 def [](*_arg0); end + + # source://prism//lib/prism/translation/parser/lexer.rb#213 def inspect; end + + # source://prism//lib/prism/translation/parser/lexer.rb#213 def keyword_init?; end + + # source://prism//lib/prism/translation/parser/lexer.rb#213 def members; end + + # source://prism//lib/prism/translation/parser/lexer.rb#213 def new(*_arg0); end end end @@ -36842,574 +36900,574 @@ class Prism::Translation::Ripper < ::Prism::Compiler # source://prism//lib/prism/translation/ripper.rb#3438 def dedent_string(string, width); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_BEGIN(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_CHAR(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_END(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on___end__(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_alias(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_alias_error(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_aref(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_aref_field(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_arg_ambiguous(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_arg_paren(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_args_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_args_add_block(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_args_add_star(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_args_forward; end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_args_new; end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_array(_); end - # source://prism//lib/prism/translation/ripper.rb#3399 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_aryptn(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_assign(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_assign_error(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_assoc_new(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_assoc_splat(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_assoclist_from_args(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_backref(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_backtick(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_bare_assoc_hash(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_begin(_); end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_binary(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_block_var(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_blockarg(_); end - # source://prism//lib/prism/translation/ripper.rb#3399 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_bodystmt(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_brace_block(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_break(_); end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_call(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_case(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_class(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_class_name_error(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_comma(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_command(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3399 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_command_call(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_comment(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_const(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_const_path_field(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_const_path_ref(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_const_ref(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_cvar(_); end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_def(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_defined(_); end - # source://prism//lib/prism/translation/ripper.rb#3400 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_defs(_, _, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_do_block(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_dot2(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_dot3(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_dyna_symbol(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_else(_); end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_elsif(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_embdoc(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_embdoc_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_embdoc_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_embexpr_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_embexpr_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_embvar(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_ensure(_); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_excessed_comma; end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_fcall(_); end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_field(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_float(_); end - # source://prism//lib/prism/translation/ripper.rb#3399 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_fndptn(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_for(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_gvar(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_hash(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_heredoc_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_heredoc_dedent(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_heredoc_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_hshptn(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_ident(_); end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_if(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_if_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_ifop(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_ignored_nl(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_ignored_sp(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_imaginary(_); end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_in(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_int(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_ivar(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_kw(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_kwrest_param(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_label(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_label_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_lambda(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_lbrace(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_lbracket(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_lparen(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_magic_comment(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_massign(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_method_add_arg(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_method_add_block(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_mlhs_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_mlhs_add_post(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_mlhs_add_star(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_mlhs_new; end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_mlhs_paren(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_module(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_mrhs_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_mrhs_add_star(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_mrhs_new; end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_mrhs_new_from_args(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_next(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_nl(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_nokw_param(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_op(_); end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_opassign(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_operator_ambiguous(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_param_error(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3401 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_params(_, _, _, _, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_paren(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_parse_error(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_period(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_program(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_qsymbols_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_qsymbols_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_qsymbols_new; end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_qwords_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_qwords_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_qwords_new; end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_rational(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_rbrace(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_rbracket(_); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_redo; end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_regexp_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_regexp_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_regexp_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_regexp_literal(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_regexp_new; end - # source://prism//lib/prism/translation/ripper.rb#3399 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_rescue(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_rescue_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_rest_param(_); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_retry; end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_return(_); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_return0; end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_rparen(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_sclass(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_semicolon(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_sp(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_stmts_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_stmts_new; end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_string_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_string_concat(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_string_content; end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_string_dvar(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_string_embexpr(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_string_literal(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_super(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_symbeg(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_symbol(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_symbol_literal(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_symbols_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_symbols_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_symbols_new; end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_tlambda(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_tlambeg(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_top_const_field(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_top_const_ref(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_tstring_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_tstring_content(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_tstring_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_unary(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_undef(_); end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_unless(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_unless_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_until(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_until_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_var_alias(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_var_field(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_var_ref(_); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_vcall(_); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_void_stmt; end - # source://prism//lib/prism/translation/ripper.rb#3398 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_when(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_while(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_while_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_word_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_word_new; end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_words_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_words_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_words_new; end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3431 def on_words_sep(_); end - # source://prism//lib/prism/translation/ripper.rb#3397 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_xstring_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_xstring_literal(_); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_xstring_new; end - # source://prism//lib/prism/translation/ripper.rb#3396 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_yield(_); end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_yield0; end - # source://prism//lib/prism/translation/ripper.rb#3395 + # source://prism//lib/prism/translation/ripper.rb#3409 def on_zsuper; end # Lazily initialize the parse result. @@ -37680,573 +37738,573 @@ class Prism::Translation::Ripper::SexpBuilder < ::Prism::Translation::Ripper # source://prism//lib/prism/translation/ripper/sexp.rb#13 def error; end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_BEGIN(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_CHAR(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_END(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on___end__(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_alias(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_alias_error(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_aref(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_aref_field(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_arg_ambiguous(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_arg_paren(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_args_add(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_args_add_block(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_args_add_star(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_args_forward(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_args_new(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_array(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_aryptn(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_assign(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_assign_error(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_assoc_new(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_assoc_splat(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_assoclist_from_args(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_backref(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_backtick(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_bare_assoc_hash(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_begin(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_binary(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_block_var(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_blockarg(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_bodystmt(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_brace_block(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_break(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_call(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_case(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_class(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_class_name_error(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_comma(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_command(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_command_call(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_comment(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_const(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_const_path_field(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_const_path_ref(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_const_ref(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_cvar(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_def(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_defined(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_defs(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_do_block(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_dot2(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_dot3(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_dyna_symbol(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_else(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_elsif(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_embdoc(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_embdoc_beg(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_embdoc_end(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_embexpr_beg(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_embexpr_end(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_embvar(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_ensure(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_excessed_comma(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_fcall(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_field(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_float(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_fndptn(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_for(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_gvar(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_hash(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_heredoc_beg(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_heredoc_end(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_hshptn(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_ident(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_if(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_if_mod(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_ifop(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_ignored_nl(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_ignored_sp(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_imaginary(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_in(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_int(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_ivar(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_kw(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_kwrest_param(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_label(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_label_end(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_lambda(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_lbrace(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_lbracket(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_lparen(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_magic_comment(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_massign(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_method_add_arg(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_method_add_block(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_mlhs_add(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_mlhs_add_post(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_mlhs_add_star(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_mlhs_new(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_mlhs_paren(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_module(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_mrhs_add(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_mrhs_add_star(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_mrhs_new(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_mrhs_new_from_args(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_next(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_nl(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_nokw_param(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_op(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_opassign(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_operator_ambiguous(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_param_error(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_params(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_paren(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_period(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_program(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_qsymbols_add(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_qsymbols_beg(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_qsymbols_new(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_qwords_add(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_qwords_beg(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_qwords_new(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_rational(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_rbrace(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_rbracket(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_redo(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_regexp_add(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_regexp_beg(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_regexp_end(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_regexp_literal(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_regexp_new(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_rescue(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_rescue_mod(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_rest_param(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_retry(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_return(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_return0(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_rparen(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_sclass(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_semicolon(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_sp(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_stmts_add(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_stmts_new(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_string_add(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_string_concat(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_string_content(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_string_dvar(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_string_embexpr(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_string_literal(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_super(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_symbeg(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_symbol(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_symbol_literal(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_symbols_add(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_symbols_beg(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_symbols_new(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_tlambda(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_tlambeg(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_top_const_field(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_top_const_ref(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_tstring_beg(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_tstring_content(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_tstring_end(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_unary(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_undef(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_unless(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_unless_mod(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_until(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_until_mod(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_var_alias(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_var_field(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_var_ref(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_vcall(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_void_stmt(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_when(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_while(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_while_mod(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_word_add(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_word_new(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_words_add(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_words_beg(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_words_new(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#55 + # source://prism//lib/prism/translation/ripper/sexp.rb#54 def on_words_sep(tok); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_xstring_add(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_xstring_literal(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_xstring_new(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_yield(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_yield0(*args); end - # source://prism//lib/prism/translation/ripper/sexp.rb#47 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_zsuper(*args); end private - # source://prism//lib/prism/translation/ripper/sexp.rb#61 + # source://prism//lib/prism/translation/ripper/sexp.rb#66 def compile_error(mesg); end # source://prism//lib/prism/translation/ripper/sexp.rb#17 @@ -38258,7 +38316,7 @@ class Prism::Translation::Ripper::SexpBuilder < ::Prism::Translation::Ripper # source://prism//lib/prism/translation/ripper/sexp.rb#24 def on_heredoc_dedent(val, width); end - # source://prism//lib/prism/translation/ripper/sexp.rb#61 + # source://prism//lib/prism/translation/ripper/sexp.rb#46 def on_parse_error(mesg); end end @@ -38276,16 +38334,16 @@ class Prism::Translation::Ripper::SexpBuilderPP < ::Prism::Translation::Ripper:: # source://prism//lib/prism/translation/ripper/sexp.rb#96 def _dispatch_event_push(list, item); end - # source://prism//lib/prism/translation/ripper/sexp.rb#96 + # source://prism//lib/prism/translation/ripper/sexp.rb#117 def on_args_add(list, item); end - # source://prism//lib/prism/translation/ripper/sexp.rb#92 + # source://prism//lib/prism/translation/ripper/sexp.rb#115 def on_args_new; end # source://prism//lib/prism/translation/ripper/sexp.rb#79 def on_heredoc_dedent(val, width); end - # source://prism//lib/prism/translation/ripper/sexp.rb#96 + # source://prism//lib/prism/translation/ripper/sexp.rb#117 def on_mlhs_add(list, item); end # source://prism//lib/prism/translation/ripper/sexp.rb#109 @@ -38294,67 +38352,67 @@ class Prism::Translation::Ripper::SexpBuilderPP < ::Prism::Translation::Ripper:: # source://prism//lib/prism/translation/ripper/sexp.rb#105 def on_mlhs_add_star(list, star); end - # source://prism//lib/prism/translation/ripper/sexp.rb#92 + # source://prism//lib/prism/translation/ripper/sexp.rb#115 def on_mlhs_new; end # source://prism//lib/prism/translation/ripper/sexp.rb#101 def on_mlhs_paren(list); end - # source://prism//lib/prism/translation/ripper/sexp.rb#96 + # source://prism//lib/prism/translation/ripper/sexp.rb#117 def on_mrhs_add(list, item); end - # source://prism//lib/prism/translation/ripper/sexp.rb#92 + # source://prism//lib/prism/translation/ripper/sexp.rb#115 def on_mrhs_new; end - # source://prism//lib/prism/translation/ripper/sexp.rb#96 + # source://prism//lib/prism/translation/ripper/sexp.rb#117 def on_qsymbols_add(list, item); end - # source://prism//lib/prism/translation/ripper/sexp.rb#92 + # source://prism//lib/prism/translation/ripper/sexp.rb#115 def on_qsymbols_new; end - # source://prism//lib/prism/translation/ripper/sexp.rb#96 + # source://prism//lib/prism/translation/ripper/sexp.rb#117 def on_qwords_add(list, item); end - # source://prism//lib/prism/translation/ripper/sexp.rb#92 + # source://prism//lib/prism/translation/ripper/sexp.rb#115 def on_qwords_new; end - # source://prism//lib/prism/translation/ripper/sexp.rb#96 + # source://prism//lib/prism/translation/ripper/sexp.rb#117 def on_regexp_add(list, item); end - # source://prism//lib/prism/translation/ripper/sexp.rb#92 + # source://prism//lib/prism/translation/ripper/sexp.rb#115 def on_regexp_new; end - # source://prism//lib/prism/translation/ripper/sexp.rb#96 + # source://prism//lib/prism/translation/ripper/sexp.rb#117 def on_stmts_add(list, item); end - # source://prism//lib/prism/translation/ripper/sexp.rb#92 + # source://prism//lib/prism/translation/ripper/sexp.rb#115 def on_stmts_new; end - # source://prism//lib/prism/translation/ripper/sexp.rb#96 + # source://prism//lib/prism/translation/ripper/sexp.rb#117 def on_string_add(list, item); end - # source://prism//lib/prism/translation/ripper/sexp.rb#96 + # source://prism//lib/prism/translation/ripper/sexp.rb#117 def on_symbols_add(list, item); end - # source://prism//lib/prism/translation/ripper/sexp.rb#92 + # source://prism//lib/prism/translation/ripper/sexp.rb#115 def on_symbols_new; end - # source://prism//lib/prism/translation/ripper/sexp.rb#96 + # source://prism//lib/prism/translation/ripper/sexp.rb#117 def on_word_add(list, item); end - # source://prism//lib/prism/translation/ripper/sexp.rb#92 + # source://prism//lib/prism/translation/ripper/sexp.rb#115 def on_word_new; end - # source://prism//lib/prism/translation/ripper/sexp.rb#96 + # source://prism//lib/prism/translation/ripper/sexp.rb#117 def on_words_add(list, item); end - # source://prism//lib/prism/translation/ripper/sexp.rb#92 + # source://prism//lib/prism/translation/ripper/sexp.rb#115 def on_words_new; end - # source://prism//lib/prism/translation/ripper/sexp.rb#96 + # source://prism//lib/prism/translation/ripper/sexp.rb#117 def on_xstring_add(list, item); end - # source://prism//lib/prism/translation/ripper/sexp.rb#92 + # source://prism//lib/prism/translation/ripper/sexp.rb#115 def on_xstring_new; end end @@ -39516,7 +39574,7 @@ class Prism::TrueNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17383 + # source://prism//lib/prism/node.rb#17403 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -39620,7 +39678,7 @@ class Prism::UndefNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17453 + # source://prism//lib/prism/node.rb#17473 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -39765,7 +39823,7 @@ class Prism::UnlessNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17554 + # source://prism//lib/prism/node.rb#17578 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -39998,7 +40056,7 @@ class Prism::UntilNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17740 + # source://prism//lib/prism/node.rb#17763 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -40114,907 +40172,907 @@ Prism::VERSION = T.let(T.unsafe(nil), String) class Prism::Visitor < ::Prism::BasicVisitor # Visit a AliasGlobalVariableNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#56 sig { params(node: Prism::AliasGlobalVariableNode).void } def visit_alias_global_variable_node(node); end # Visit a AliasMethodNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#59 sig { params(node: Prism::AliasMethodNode).void } def visit_alias_method_node(node); end # Visit a AlternationPatternNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#62 sig { params(node: Prism::AlternationPatternNode).void } def visit_alternation_pattern_node(node); end # Visit a AndNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#65 sig { params(node: Prism::AndNode).void } def visit_and_node(node); end # Visit a ArgumentsNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#68 sig { params(node: Prism::ArgumentsNode).void } def visit_arguments_node(node); end # Visit a ArrayNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#71 sig { params(node: Prism::ArrayNode).void } def visit_array_node(node); end # Visit a ArrayPatternNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#74 sig { params(node: Prism::ArrayPatternNode).void } def visit_array_pattern_node(node); end # Visit a AssocNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#77 sig { params(node: Prism::AssocNode).void } def visit_assoc_node(node); end # Visit a AssocSplatNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#80 sig { params(node: Prism::AssocSplatNode).void } def visit_assoc_splat_node(node); end # Visit a BackReferenceReadNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#83 sig { params(node: Prism::BackReferenceReadNode).void } def visit_back_reference_read_node(node); end # Visit a BeginNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#86 sig { params(node: Prism::BeginNode).void } def visit_begin_node(node); end # Visit a BlockArgumentNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#89 sig { params(node: Prism::BlockArgumentNode).void } def visit_block_argument_node(node); end # Visit a BlockLocalVariableNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#92 sig { params(node: Prism::BlockLocalVariableNode).void } def visit_block_local_variable_node(node); end # Visit a BlockNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#95 sig { params(node: Prism::BlockNode).void } def visit_block_node(node); end # Visit a BlockParameterNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#98 sig { params(node: Prism::BlockParameterNode).void } def visit_block_parameter_node(node); end # Visit a BlockParametersNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#101 sig { params(node: Prism::BlockParametersNode).void } def visit_block_parameters_node(node); end # Visit a BreakNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#104 sig { params(node: Prism::BreakNode).void } def visit_break_node(node); end # Visit a CallAndWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#107 sig { params(node: Prism::CallAndWriteNode).void } def visit_call_and_write_node(node); end # Visit a CallNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#110 sig { params(node: Prism::CallNode).void } def visit_call_node(node); end # Visit a CallOperatorWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#113 sig { params(node: Prism::CallOperatorWriteNode).void } def visit_call_operator_write_node(node); end # Visit a CallOrWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#116 sig { params(node: Prism::CallOrWriteNode).void } def visit_call_or_write_node(node); end # Visit a CallTargetNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#119 sig { params(node: Prism::CallTargetNode).void } def visit_call_target_node(node); end # Visit a CapturePatternNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#122 sig { params(node: Prism::CapturePatternNode).void } def visit_capture_pattern_node(node); end # Visit a CaseMatchNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#125 sig { params(node: Prism::CaseMatchNode).void } def visit_case_match_node(node); end # Visit a CaseNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#128 sig { params(node: Prism::CaseNode).void } def visit_case_node(node); end # Visit a ClassNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#131 sig { params(node: Prism::ClassNode).void } def visit_class_node(node); end # Visit a ClassVariableAndWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#134 sig { params(node: Prism::ClassVariableAndWriteNode).void } def visit_class_variable_and_write_node(node); end # Visit a ClassVariableOperatorWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#137 sig { params(node: Prism::ClassVariableOperatorWriteNode).void } def visit_class_variable_operator_write_node(node); end # Visit a ClassVariableOrWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#140 sig { params(node: Prism::ClassVariableOrWriteNode).void } def visit_class_variable_or_write_node(node); end # Visit a ClassVariableReadNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#143 sig { params(node: Prism::ClassVariableReadNode).void } def visit_class_variable_read_node(node); end # Visit a ClassVariableTargetNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#146 sig { params(node: Prism::ClassVariableTargetNode).void } def visit_class_variable_target_node(node); end # Visit a ClassVariableWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#149 sig { params(node: Prism::ClassVariableWriteNode).void } def visit_class_variable_write_node(node); end # Visit a ConstantAndWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#152 sig { params(node: Prism::ConstantAndWriteNode).void } def visit_constant_and_write_node(node); end # Visit a ConstantOperatorWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#155 sig { params(node: Prism::ConstantOperatorWriteNode).void } def visit_constant_operator_write_node(node); end # Visit a ConstantOrWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#158 sig { params(node: Prism::ConstantOrWriteNode).void } def visit_constant_or_write_node(node); end # Visit a ConstantPathAndWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#161 sig { params(node: Prism::ConstantPathAndWriteNode).void } def visit_constant_path_and_write_node(node); end # Visit a ConstantPathNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#164 sig { params(node: Prism::ConstantPathNode).void } def visit_constant_path_node(node); end # Visit a ConstantPathOperatorWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#167 sig { params(node: Prism::ConstantPathOperatorWriteNode).void } def visit_constant_path_operator_write_node(node); end # Visit a ConstantPathOrWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#170 sig { params(node: Prism::ConstantPathOrWriteNode).void } def visit_constant_path_or_write_node(node); end # Visit a ConstantPathTargetNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#173 sig { params(node: Prism::ConstantPathTargetNode).void } def visit_constant_path_target_node(node); end # Visit a ConstantPathWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#176 sig { params(node: Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end # Visit a ConstantReadNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#179 sig { params(node: Prism::ConstantReadNode).void } def visit_constant_read_node(node); end # Visit a ConstantTargetNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#182 sig { params(node: Prism::ConstantTargetNode).void } def visit_constant_target_node(node); end # Visit a ConstantWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#185 sig { params(node: Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end # Visit a DefNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#188 sig { params(node: Prism::DefNode).void } def visit_def_node(node); end # Visit a DefinedNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#191 sig { params(node: Prism::DefinedNode).void } def visit_defined_node(node); end # Visit a ElseNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#194 sig { params(node: Prism::ElseNode).void } def visit_else_node(node); end # Visit a EmbeddedStatementsNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#197 sig { params(node: Prism::EmbeddedStatementsNode).void } def visit_embedded_statements_node(node); end # Visit a EmbeddedVariableNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#200 sig { params(node: Prism::EmbeddedVariableNode).void } def visit_embedded_variable_node(node); end # Visit a EnsureNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#203 sig { params(node: Prism::EnsureNode).void } def visit_ensure_node(node); end # Visit a FalseNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#206 sig { params(node: Prism::FalseNode).void } def visit_false_node(node); end # Visit a FindPatternNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#209 sig { params(node: Prism::FindPatternNode).void } def visit_find_pattern_node(node); end # Visit a FlipFlopNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#212 sig { params(node: Prism::FlipFlopNode).void } def visit_flip_flop_node(node); end # Visit a FloatNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#215 sig { params(node: Prism::FloatNode).void } def visit_float_node(node); end # Visit a ForNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#218 sig { params(node: Prism::ForNode).void } def visit_for_node(node); end # Visit a ForwardingArgumentsNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#221 sig { params(node: Prism::ForwardingArgumentsNode).void } def visit_forwarding_arguments_node(node); end # Visit a ForwardingParameterNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#224 sig { params(node: Prism::ForwardingParameterNode).void } def visit_forwarding_parameter_node(node); end # Visit a ForwardingSuperNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#227 sig { params(node: Prism::ForwardingSuperNode).void } def visit_forwarding_super_node(node); end # Visit a GlobalVariableAndWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#230 sig { params(node: Prism::GlobalVariableAndWriteNode).void } def visit_global_variable_and_write_node(node); end # Visit a GlobalVariableOperatorWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#233 sig { params(node: Prism::GlobalVariableOperatorWriteNode).void } def visit_global_variable_operator_write_node(node); end # Visit a GlobalVariableOrWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#236 sig { params(node: Prism::GlobalVariableOrWriteNode).void } def visit_global_variable_or_write_node(node); end # Visit a GlobalVariableReadNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#239 sig { params(node: Prism::GlobalVariableReadNode).void } def visit_global_variable_read_node(node); end # Visit a GlobalVariableTargetNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#242 sig { params(node: Prism::GlobalVariableTargetNode).void } def visit_global_variable_target_node(node); end # Visit a GlobalVariableWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#245 sig { params(node: Prism::GlobalVariableWriteNode).void } def visit_global_variable_write_node(node); end # Visit a HashNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#248 sig { params(node: Prism::HashNode).void } def visit_hash_node(node); end # Visit a HashPatternNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#251 sig { params(node: Prism::HashPatternNode).void } def visit_hash_pattern_node(node); end # Visit a IfNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#254 sig { params(node: Prism::IfNode).void } def visit_if_node(node); end # Visit a ImaginaryNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#257 sig { params(node: Prism::ImaginaryNode).void } def visit_imaginary_node(node); end # Visit a ImplicitNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#260 sig { params(node: Prism::ImplicitNode).void } def visit_implicit_node(node); end # Visit a ImplicitRestNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#263 sig { params(node: Prism::ImplicitRestNode).void } def visit_implicit_rest_node(node); end # Visit a InNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#266 sig { params(node: Prism::InNode).void } def visit_in_node(node); end # Visit a IndexAndWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#269 sig { params(node: Prism::IndexAndWriteNode).void } def visit_index_and_write_node(node); end # Visit a IndexOperatorWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#272 sig { params(node: Prism::IndexOperatorWriteNode).void } def visit_index_operator_write_node(node); end # Visit a IndexOrWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#275 sig { params(node: Prism::IndexOrWriteNode).void } def visit_index_or_write_node(node); end # Visit a IndexTargetNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#278 sig { params(node: Prism::IndexTargetNode).void } def visit_index_target_node(node); end # Visit a InstanceVariableAndWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#281 sig { params(node: Prism::InstanceVariableAndWriteNode).void } def visit_instance_variable_and_write_node(node); end # Visit a InstanceVariableOperatorWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#284 sig { params(node: Prism::InstanceVariableOperatorWriteNode).void } def visit_instance_variable_operator_write_node(node); end # Visit a InstanceVariableOrWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#287 sig { params(node: Prism::InstanceVariableOrWriteNode).void } def visit_instance_variable_or_write_node(node); end # Visit a InstanceVariableReadNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#290 sig { params(node: Prism::InstanceVariableReadNode).void } def visit_instance_variable_read_node(node); end # Visit a InstanceVariableTargetNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#293 sig { params(node: Prism::InstanceVariableTargetNode).void } def visit_instance_variable_target_node(node); end # Visit a InstanceVariableWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#296 sig { params(node: Prism::InstanceVariableWriteNode).void } def visit_instance_variable_write_node(node); end # Visit a IntegerNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#299 sig { params(node: Prism::IntegerNode).void } def visit_integer_node(node); end # Visit a InterpolatedMatchLastLineNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#302 sig { params(node: Prism::InterpolatedMatchLastLineNode).void } def visit_interpolated_match_last_line_node(node); end # Visit a InterpolatedRegularExpressionNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#305 sig { params(node: Prism::InterpolatedRegularExpressionNode).void } def visit_interpolated_regular_expression_node(node); end # Visit a InterpolatedStringNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#308 sig { params(node: Prism::InterpolatedStringNode).void } def visit_interpolated_string_node(node); end # Visit a InterpolatedSymbolNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#311 sig { params(node: Prism::InterpolatedSymbolNode).void } def visit_interpolated_symbol_node(node); end # Visit a InterpolatedXStringNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#314 sig { params(node: Prism::InterpolatedXStringNode).void } def visit_interpolated_x_string_node(node); end # Visit a ItLocalVariableReadNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#317 sig { params(node: Prism::ItLocalVariableReadNode).void } def visit_it_local_variable_read_node(node); end # Visit a ItParametersNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#320 sig { params(node: Prism::ItParametersNode).void } def visit_it_parameters_node(node); end # Visit a KeywordHashNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#323 sig { params(node: Prism::KeywordHashNode).void } def visit_keyword_hash_node(node); end # Visit a KeywordRestParameterNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#326 sig { params(node: Prism::KeywordRestParameterNode).void } def visit_keyword_rest_parameter_node(node); end # Visit a LambdaNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#329 sig { params(node: Prism::LambdaNode).void } def visit_lambda_node(node); end # Visit a LocalVariableAndWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#332 sig { params(node: Prism::LocalVariableAndWriteNode).void } def visit_local_variable_and_write_node(node); end # Visit a LocalVariableOperatorWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#335 sig { params(node: Prism::LocalVariableOperatorWriteNode).void } def visit_local_variable_operator_write_node(node); end # Visit a LocalVariableOrWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#338 sig { params(node: Prism::LocalVariableOrWriteNode).void } def visit_local_variable_or_write_node(node); end # Visit a LocalVariableReadNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#341 sig { params(node: Prism::LocalVariableReadNode).void } def visit_local_variable_read_node(node); end # Visit a LocalVariableTargetNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#344 sig { params(node: Prism::LocalVariableTargetNode).void } def visit_local_variable_target_node(node); end # Visit a LocalVariableWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#347 sig { params(node: Prism::LocalVariableWriteNode).void } def visit_local_variable_write_node(node); end # Visit a MatchLastLineNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#350 sig { params(node: Prism::MatchLastLineNode).void } def visit_match_last_line_node(node); end # Visit a MatchPredicateNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#353 sig { params(node: Prism::MatchPredicateNode).void } def visit_match_predicate_node(node); end # Visit a MatchRequiredNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#356 sig { params(node: Prism::MatchRequiredNode).void } def visit_match_required_node(node); end # Visit a MatchWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#359 sig { params(node: Prism::MatchWriteNode).void } def visit_match_write_node(node); end # Visit a MissingNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#362 sig { params(node: Prism::MissingNode).void } def visit_missing_node(node); end # Visit a ModuleNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#365 sig { params(node: Prism::ModuleNode).void } def visit_module_node(node); end # Visit a MultiTargetNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#368 sig { params(node: Prism::MultiTargetNode).void } def visit_multi_target_node(node); end # Visit a MultiWriteNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#371 sig { params(node: Prism::MultiWriteNode).void } def visit_multi_write_node(node); end # Visit a NextNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#374 sig { params(node: Prism::NextNode).void } def visit_next_node(node); end # Visit a NilNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#377 sig { params(node: Prism::NilNode).void } def visit_nil_node(node); end # Visit a NoKeywordsParameterNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#380 sig { params(node: Prism::NoKeywordsParameterNode).void } def visit_no_keywords_parameter_node(node); end # Visit a NumberedParametersNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#383 sig { params(node: Prism::NumberedParametersNode).void } def visit_numbered_parameters_node(node); end # Visit a NumberedReferenceReadNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#386 sig { params(node: Prism::NumberedReferenceReadNode).void } def visit_numbered_reference_read_node(node); end # Visit a OptionalKeywordParameterNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#389 sig { params(node: Prism::OptionalKeywordParameterNode).void } def visit_optional_keyword_parameter_node(node); end # Visit a OptionalParameterNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#392 sig { params(node: Prism::OptionalParameterNode).void } def visit_optional_parameter_node(node); end # Visit a OrNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#395 sig { params(node: Prism::OrNode).void } def visit_or_node(node); end # Visit a ParametersNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#398 sig { params(node: Prism::ParametersNode).void } def visit_parameters_node(node); end # Visit a ParenthesesNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#401 sig { params(node: Prism::ParenthesesNode).void } def visit_parentheses_node(node); end # Visit a PinnedExpressionNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#404 sig { params(node: Prism::PinnedExpressionNode).void } def visit_pinned_expression_node(node); end # Visit a PinnedVariableNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#407 sig { params(node: Prism::PinnedVariableNode).void } def visit_pinned_variable_node(node); end # Visit a PostExecutionNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#410 sig { params(node: Prism::PostExecutionNode).void } def visit_post_execution_node(node); end # Visit a PreExecutionNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#413 sig { params(node: Prism::PreExecutionNode).void } def visit_pre_execution_node(node); end # Visit a ProgramNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#416 sig { params(node: Prism::ProgramNode).void } def visit_program_node(node); end # Visit a RangeNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#419 sig { params(node: Prism::RangeNode).void } def visit_range_node(node); end # Visit a RationalNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#422 sig { params(node: Prism::RationalNode).void } def visit_rational_node(node); end # Visit a RedoNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#425 sig { params(node: Prism::RedoNode).void } def visit_redo_node(node); end # Visit a RegularExpressionNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#428 sig { params(node: Prism::RegularExpressionNode).void } def visit_regular_expression_node(node); end # Visit a RequiredKeywordParameterNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#431 sig { params(node: Prism::RequiredKeywordParameterNode).void } def visit_required_keyword_parameter_node(node); end # Visit a RequiredParameterNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#434 sig { params(node: Prism::RequiredParameterNode).void } def visit_required_parameter_node(node); end # Visit a RescueModifierNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#437 sig { params(node: Prism::RescueModifierNode).void } def visit_rescue_modifier_node(node); end # Visit a RescueNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#440 sig { params(node: Prism::RescueNode).void } def visit_rescue_node(node); end # Visit a RestParameterNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#443 sig { params(node: Prism::RestParameterNode).void } def visit_rest_parameter_node(node); end # Visit a RetryNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#446 sig { params(node: Prism::RetryNode).void } def visit_retry_node(node); end # Visit a ReturnNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#449 sig { params(node: Prism::ReturnNode).void } def visit_return_node(node); end # Visit a SelfNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#452 sig { params(node: Prism::SelfNode).void } def visit_self_node(node); end # Visit a ShareableConstantNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#455 sig { params(node: Prism::ShareableConstantNode).void } def visit_shareable_constant_node(node); end # Visit a SingletonClassNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#458 sig { params(node: Prism::SingletonClassNode).void } def visit_singleton_class_node(node); end # Visit a SourceEncodingNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#461 sig { params(node: Prism::SourceEncodingNode).void } def visit_source_encoding_node(node); end # Visit a SourceFileNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#464 sig { params(node: Prism::SourceFileNode).void } def visit_source_file_node(node); end # Visit a SourceLineNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#467 sig { params(node: Prism::SourceLineNode).void } def visit_source_line_node(node); end # Visit a SplatNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#470 sig { params(node: Prism::SplatNode).void } def visit_splat_node(node); end # Visit a StatementsNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#473 sig { params(node: Prism::StatementsNode).void } def visit_statements_node(node); end # Visit a StringNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#476 sig { params(node: Prism::StringNode).void } def visit_string_node(node); end # Visit a SuperNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#479 sig { params(node: Prism::SuperNode).void } def visit_super_node(node); end # Visit a SymbolNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#482 sig { params(node: Prism::SymbolNode).void } def visit_symbol_node(node); end # Visit a TrueNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#485 sig { params(node: Prism::TrueNode).void } def visit_true_node(node); end # Visit a UndefNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#488 sig { params(node: Prism::UndefNode).void } def visit_undef_node(node); end # Visit a UnlessNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#491 sig { params(node: Prism::UnlessNode).void } def visit_unless_node(node); end # Visit a UntilNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#494 sig { params(node: Prism::UntilNode).void } def visit_until_node(node); end # Visit a WhenNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#497 sig { params(node: Prism::WhenNode).void } def visit_when_node(node); end # Visit a WhileNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#500 sig { params(node: Prism::WhileNode).void } def visit_while_node(node); end # Visit a XStringNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#503 sig { params(node: Prism::XStringNode).void } def visit_x_string_node(node); end # Visit a YieldNode node # - # source://prism//lib/prism/visitor.rb#29 + # source://prism//lib/prism/visitor.rb#506 sig { params(node: Prism::YieldNode).void } def visit_yield_node(node); end end @@ -41102,7 +41160,7 @@ class Prism::WhenNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17900 + # source://prism//lib/prism/node.rb#17923 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -41277,7 +41335,7 @@ class Prism::WhileNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18032 + # source://prism//lib/prism/node.rb#18055 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -41468,7 +41526,7 @@ class Prism::XStringNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18190 + # source://prism//lib/prism/node.rb#18210 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -41644,7 +41702,7 @@ class Prism::YieldNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18334 + # source://prism//lib/prism/node.rb#18356 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end diff --git a/sorbet/rbi/gems/pry@0.15.2.rbi b/sorbet/rbi/gems/pry@0.15.2.rbi index 7ef192ef..0f4fad34 100644 --- a/sorbet/rbi/gems/pry@0.15.2.rbi +++ b/sorbet/rbi/gems/pry@0.15.2.rbi @@ -128,16 +128,16 @@ class Pry # source://pry//lib/pry/pry_instance.rb#31 def binding_stack=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def color(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def color=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def commands(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def commands=(*args, **_arg1, &block); end # Generate completions. @@ -165,7 +165,7 @@ class Pry # # @return [Binding] The currently active `Binding` for the session. # - # source://pry//lib/pry/pry_instance.rb#122 + # source://pry//lib/pry/pry_instance.rb#125 def current_context; end # Returns the value of attribute custom_completions. @@ -180,10 +180,10 @@ class Pry # source://pry//lib/pry/pry_instance.rb#32 def custom_completions=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def editor(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def editor=(*args, **_arg1, &block); end # Pass a line of input to Pry. @@ -225,10 +225,10 @@ class Pry # source://pry//lib/pry/pry_instance.rb#284 def evaluate_ruby(code); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def exception_handler(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def exception_handler=(*args, **_arg1, &block); end # Execute the specified hook. @@ -248,16 +248,16 @@ class Pry # source://pry//lib/pry/pry_instance.rb#41 def exit_value; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def extra_sticky_locals(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def extra_sticky_locals=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def hooks(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def hooks=(*args, **_arg1, &block); end # Injects a local variable into the provided binding. @@ -275,10 +275,10 @@ class Pry # source://pry//lib/pry/pry_instance.rb#199 def inject_sticky_locals!; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def input(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def input=(*args, **_arg1, &block); end # @since v0.12.0 @@ -344,10 +344,10 @@ class Pry # @return [Integer] The maximum amount of objects remembered by the inp and # out arrays. Defaults to 100. # - # source://pry//lib/pry/pry_instance.rb#188 + # source://pry//lib/pry/pry_instance.rb#51 def memory_size; end - # source://pry//lib/pry/pry_instance.rb#193 + # source://pry//lib/pry/pry_instance.rb#51 def memory_size=(size); end # Returns an output device @@ -355,10 +355,10 @@ class Pry # @example # pry_instance.output.puts "ohai!" # - # source://pry//lib/pry/pry_instance.rb#508 + # source://pry//lib/pry/pry_instance.rb#51 def output; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def output=(*args, **_arg1, &block); end # @since v0.12.0 @@ -371,10 +371,10 @@ class Pry # @example # pry_instance.pager.page text # - # source://pry//lib/pry/pry_instance.rb#500 + # source://pry//lib/pry/pry_instance.rb#51 def pager; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def pager=(*args, **_arg1, &block); end # Pops the current prompt off of the prompt stack. If the prompt you are @@ -392,10 +392,10 @@ class Pry # source://pry//lib/pry/pry_instance.rb#492 def pop_prompt; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def print(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_instance.rb#51 def print=(*args, **_arg1, &block); end # If the given line is a valid command, process it in the context of the @@ -620,16 +620,16 @@ class Pry # source://pry//lib/pry/pry_class.rb#22 def cli=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def color(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def color=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def commands(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def commands=(*args, **_arg1, &block); end # Returns the value of attribute config. @@ -687,10 +687,10 @@ class Pry # source://pry//lib/pry/pry_class.rb#18 def custom_completions=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def editor(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def editor=(*args, **_arg1, &block); end # Returns the value of attribute eval_path. @@ -705,31 +705,31 @@ class Pry # source://pry//lib/pry/pry_class.rb#21 def eval_path=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def exception_handler(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def exception_handler=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def extra_sticky_locals(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def extra_sticky_locals=(*args, **_arg1, &block); end # source://pry//lib/pry/pry_class.rb#139 def final_session_setup; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def history(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def history=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def hooks(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def hooks=(*args, **_arg1, &block); end # @return [Boolean] @@ -754,10 +754,10 @@ class Pry # source://pry//lib/pry/pry_class.rb#129 def initial_session_setup; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def input(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def input=(*args, **_arg1, &block); end # Returns the value of attribute last_internal_error. @@ -828,34 +828,34 @@ class Pry # source://pry//lib/pry/pry_class.rb#55 def main; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def memory_size(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def memory_size=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def output(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def output=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def pager(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def pager=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def print(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def print=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def prompt(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/pry_class.rb#27 def prompt=(*args, **_arg1, &block); end # Returns the value of attribute quiet. @@ -1234,7 +1234,7 @@ class Pry::ClassCommand < ::Pry::Command # source://pry//lib/pry/class_command.rb#29 def doc; end - # source://pry//lib/pry/class_command.rb#37 + # source://pry//lib/pry/class_command.rb#40 def file; end # Ensure that subclasses inherit the options, description and @@ -1243,7 +1243,7 @@ class Pry::ClassCommand < ::Pry::Command # source://pry//lib/pry/class_command.rb#19 def inherited(klass); end - # source://pry//lib/pry/class_command.rb#42 + # source://pry//lib/pry/class_command.rb#45 def line; end # source://pry//lib/pry/class_command.rb#25 @@ -1304,7 +1304,7 @@ class Pry::Code # @param line [String] # @return [void] # - # source://pry//lib/pry/code.rb#102 + # source://pry//lib/pry/code.rb#106 def <<(line); end # Two `Code` objects are equal if they contain the same lines with the same @@ -2042,7 +2042,7 @@ class Pry::Command # # @param value the value to set the attribute pry_instance to. # - # source://pry//lib/pry/command.rb#217 + # source://pry//lib/pry/command.rb#218 def _pry_=(_arg0); end # Returns the value of attribute arg_string. @@ -2393,7 +2393,7 @@ class Pry::Command # source://pry//lib/pry/command.rb#75 def doc; end - # source://pry//lib/pry/command.rb#79 + # source://pry//lib/pry/command.rb#82 def file; end # The group in which the command should be displayed in "help" output. @@ -2407,7 +2407,7 @@ class Pry::Command # source://pry//lib/pry/command.rb#105 def inspect; end - # source://pry//lib/pry/command.rb#84 + # source://pry//lib/pry/command.rb#87 def line; end # source://pry//lib/pry/command.rb#35 @@ -2453,14 +2453,14 @@ class Pry::Command # Define or get the command's options # backward compatibility # - # source://pry//lib/pry/command.rb#51 + # source://pry//lib/pry/command.rb#57 def options(arg = T.unsafe(nil)); end # Sets the attribute command_options # # @param value the value to set the attribute command_options to. # - # source://pry//lib/pry/command.rb#32 + # source://pry//lib/pry/command.rb#58 def options=(_arg0); end # source://pry//lib/pry/command.rb#70 @@ -3453,10 +3453,10 @@ class Pry::Command::Ls::Config # source://pry//lib/pry/commands/ls/config.rb#44 def initialize(config); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/commands/ls/config.rb#42 def [](*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/commands/ls/config.rb#42 def []=(*args, **_arg1, &block); end # source://pry//lib/pry/commands/ls/config.rb#33 @@ -3489,10 +3489,10 @@ class Pry::Command::Ls::Config # source://pry//lib/pry/commands/ls/config.rb#37 def constant_color=(value); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/commands/ls/config.rb#42 def each(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/commands/ls/config.rb#42 def each_pair(*args, **_arg1, &block); end # source://pry//lib/pry/commands/ls/config.rb#33 @@ -3519,7 +3519,7 @@ class Pry::Command::Ls::Config # source://pry//lib/pry/commands/ls/config.rb#37 def instance_var_color=(value); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/commands/ls/config.rb#42 def keys(*args, **_arg1, &block); end # source://pry//lib/pry/commands/ls/config.rb#33 @@ -3570,7 +3570,7 @@ class Pry::Command::Ls::Config # source://pry//lib/pry/commands/ls/config.rb#37 def separator=(value); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/commands/ls/config.rb#42 def to_a(*args, **_arg1, &block); end # source://pry//lib/pry/commands/ls/config.rb#33 @@ -3579,7 +3579,7 @@ class Pry::Command::Ls::Config # source://pry//lib/pry/commands/ls/config.rb#37 def unloaded_constant_color=(value); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/commands/ls/config.rb#42 def values(*args, **_arg1, &block); end class << self @@ -4667,7 +4667,7 @@ class Pry::CommandSet # parameters passed into the block will be strings. Successive # command parameters are separated by whitespace at the Pry prompt. # - # source://pry//lib/pry/command_set.rb#78 + # source://pry//lib/pry/command_set.rb#89 def command(match, description = T.unsafe(nil), options = T.unsafe(nil), &block); end # Generate completions for the user's search. @@ -4739,7 +4739,7 @@ class Pry::CommandSet # @param pattern [String] The line that might be a command invocation # @return [Pry::Command, nil] # - # source://pry//lib/pry/command_set.rb#275 + # source://pry//lib/pry/command_set.rb#281 def find_command(pattern); end # @param match_or_listing [String, Regexp] The match or listing of a command. @@ -4782,7 +4782,7 @@ class Pry::CommandSet # @return [Array] The list of commands provided by the command set. # - # source://pry//lib/pry/command_set.rb#262 + # source://pry//lib/pry/command_set.rb#265 def keys; end # @return [Array] The list of commands provided by the command set. @@ -4812,7 +4812,7 @@ class Pry::CommandSet # source://pry//lib/pry/command_set.rb#227 def rename_command(new_match, search, options = T.unsafe(nil)); end - # source://pry//lib/pry/command_set.rb#267 + # source://pry//lib/pry/command_set.rb#270 def to_h; end # source://pry//lib/pry/command_set.rb#267 @@ -4920,38 +4920,38 @@ class Pry::Config # @api private # @return [Boolean] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#109 def auto_indent; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#109 def auto_indent=(_arg0); end # @api private # @return [Boolean] whether or not display a warning when a command name # collides with a method/local in the current context. # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#116 def collision_warning; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#116 def collision_warning=(_arg0); end # @api private # @return [Boolean] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#59 def color; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#59 def color=(_arg0); end # @api private # @return [Proc] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#132 def command_completions; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#132 def command_completions=(_arg0); end # A string that must precede all commands. For example, if is is @@ -4960,28 +4960,28 @@ class Pry::Config # @api private # @return [String] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#56 def command_prefix; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#56 def command_prefix=(_arg0); end # @api private # @return [Pry::CommandSet] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#16 def commands; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#16 def commands=(_arg0); end # @api private # @return [#build_completion_proc] a completer to use # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#122 def completer; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#122 def completer=(_arg0); end # @api private @@ -4997,29 +4997,29 @@ class Pry::Config # @api private # @return [Boolean] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#112 def correct_indent; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#112 def correct_indent=(_arg0); end # @api private # @return [Integer] The number of lines of context to show before and after # exceptions # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#29 def default_window_size; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#29 def default_window_size=(_arg0); end # @api private # @return [Boolean] whether to disable edit-method's auto-reloading behavior # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#77 def disable_auto_reload; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#77 def disable_auto_reload=(_arg0); end # If it is a String, then that String is used as the shell @@ -5032,129 +5032,129 @@ class Pry::Config # @api private # @return [String, #call] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#51 def editor; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#51 def editor=(_arg0); end # @api private # @return [Proc] the printer for exceptions # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#22 def exception_handler; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#22 def exception_handler=(_arg0); end # @api private # @return [String] a line of code to execute in context before the session # starts # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#142 def exec_string; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#142 def exec_string=(_arg0); end # @api private # @return [Hash{Symbol=>Proc}] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#119 def extra_sticky_locals; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#119 def extra_sticky_locals=(_arg0); end # @api private # @return [Proc] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#135 def file_completions; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#135 def file_completions=(_arg0); end # @api private # @return [Pry::History] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#85 def history; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#85 def history=(_arg0); end # @api private # @return [String] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#94 def history_file; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#94 def history_file=(_arg0); end # @api private # @return [Array] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#97 def history_ignorelist; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#97 def history_ignorelist=(_arg0); end # @api private # @return [Boolean] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#91 def history_load; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#91 def history_load=(_arg0); end # @api private # @return [Boolean] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#88 def history_save; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#88 def history_save=(_arg0); end # @api private # @return [Pry::Hooks] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#32 def hooks; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#32 def hooks=(_arg0); end # @api private # @return [IO, #readline] the object from which Pry retrieves its lines of # input # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#10 def input; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#10 def input=(_arg0); end # @api private # @return [Hash] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#138 def ls; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#138 def ls=(_arg0); end # @api private # @return [Integer] how many input/output lines to keep in memory # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#103 def memory_size; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#103 def memory_size=(_arg0); end # @api private @@ -5175,129 +5175,129 @@ class Pry::Config # @api private # @return [Boolean] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#65 def multiline; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#65 def multiline=(_arg0); end # @api private # @return [IO, #puts] where Pry should output results provided by {input} # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#13 def output; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#13 def output=(_arg0); end # @api private # @return [String] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#145 def output_prefix; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#145 def output_prefix=(_arg0); end # @api private # @return [Boolean] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#62 def pager; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#62 def pager=(_arg0); end # @api private # @return [Proc] the printer for Ruby expressions (not commands) # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#19 def print; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#19 def print=(_arg0); end # @api private # @return [Pry::Prompt] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#35 def prompt; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#35 def prompt=(_arg0); end # @api private # @return [String] The display name that is part of the prompt # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#38 def prompt_name; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#38 def prompt_name=(_arg0); end # @api private # @return [Array] the list of objects that are known to have a # 1-line #inspect output suitable for prompt # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#42 def prompt_safe_contexts; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#42 def prompt_safe_contexts=(_arg0); end # @api private # @return [Boolean] suppresses whereami output on `binding.pry` # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#125 def quiet; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#125 def quiet=(_arg0); end # @api private # @return [String] # @since v0.13.0 # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#149 def rc_file; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#149 def rc_file=(_arg0); end # @api private # @return [Array] Ruby files to be required # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#100 def requires; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#100 def requires=(_arg0); end # @api private # @return [Boolean] whether the local ./.pryrc should be loaded # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#71 def should_load_local_rc; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#71 def should_load_local_rc=(_arg0); end # @api private # @return [Boolean] whether the global ~/.pryrc should be loaded # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#68 def should_load_rc; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#68 def should_load_rc=(_arg0); end # @api private # @return [Boolean] whether to load files specified with the -r flag # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#74 def should_load_requires; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#74 def should_load_requires=(_arg0); end # Whether Pry should trap SIGINT and cause it to raise an Interrupt @@ -5306,38 +5306,38 @@ class Pry::Config # @api private # @return [Boolean] # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#82 def should_trap_interrupts; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#82 def should_trap_interrupts=(_arg0); end # @api private # @return [Proc] The proc that runs system commands # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#106 def system; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#106 def system=(_arg0); end # @api private # @return [Array] Exception that Pry shouldn't rescue # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#25 def unrescued_exceptions; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#25 def unrescued_exceptions=(_arg0); end # @api private # @return [Boolean] displays a warning about experience improvement on # Windows # - # source://pry//lib/pry/config/attributable.rb#13 + # source://pry//lib/pry/config.rb#129 def windows_console_warning; end - # source://pry//lib/pry/config/attributable.rb#18 + # source://pry//lib/pry/config.rb#129 def windows_console_warning=(_arg0); end private @@ -6629,7 +6629,7 @@ class Pry::History # @param line [String] # @return [String] The same line that was passed in # - # source://pry//lib/pry/history.rb#53 + # source://pry//lib/pry/history.rb#70 def <<(line); end # Clear this session's history. This won't affect the contents of the @@ -7414,7 +7414,7 @@ class Pry::Method # @param klass [Class] # @return [Boolean] # - # source://pry//lib/pry/method.rb#491 + # source://pry//lib/pry/method.rb#494 def kind_of?(klass); end # Delegate any unknown calls to the wrapped method. @@ -7446,10 +7446,10 @@ class Pry::Method # source://pry//lib/pry/method.rb#429 def original_name; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/method.rb#255 def owner(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/method.rb#255 def parameters(*args, **_arg1, &block); end # @return [Boolean] Was the method defined within the Pry REPL? @@ -7457,7 +7457,7 @@ class Pry::Method # source://pry//lib/pry/method.rb#456 def pry_method?; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/method.rb#255 def receiver(*args, **_arg1, &block); end # Update the live copy of the method's source. @@ -7640,7 +7640,7 @@ class Pry::Method # @param target [Binding] The binding where the method is looked up. # @return [Pry::Method, nil] # - # source://pry//lib/pry/method.rb#136 + # source://pry//lib/pry/method.rb#141 def from_module(klass, name, target = T.unsafe(nil)); end # Given an object and the name of a method, try to instantiate @@ -8130,7 +8130,7 @@ class Pry::Output # source://pry//lib/pry/output.rb#10 def initialize(pry_instance); end - # source://pry//lib/pry/output.rb#28 + # source://pry//lib/pry/output.rb#34 def <<(*objs); end # source://pry//lib/pry/output.rb#53 @@ -8171,7 +8171,7 @@ class Pry::Output # source://pry//lib/pry/output.rb#69 def width; end - # source://pry//lib/pry/output.rb#28 + # source://pry//lib/pry/output.rb#35 def write(*objs); end private @@ -8269,7 +8269,7 @@ class Pry::Pager::NullPager # source://pry//lib/pry/pager.rb#69 def initialize(out); end - # source://pry//lib/pry/pager.rb#77 + # source://pry//lib/pry/pager.rb#80 def <<(str); end # source://pry//lib/pry/pager.rb#86 @@ -8537,10 +8537,10 @@ class Pry::REPL # source://pry//lib/pry/repl.rb#22 def initialize(pry, options = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/repl.rb#6 def input(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/repl.rb#6 def output(*args, **_arg1, &block); end # @return [Pry] The instance of {Pry} that the user is controlling. @@ -8870,7 +8870,7 @@ class Pry::Ring # ring # @since v0.12.0 # - # source://pry//lib/pry/ring.rb#28 + # source://pry//lib/pry/ring.rb#29 def size; end # @api public @@ -9011,14 +9011,14 @@ class Pry::Slop # # Returns the Object value for this option, or nil. # - # source://pry//lib/pry/slop.rb#278 + # source://pry//lib/pry/slop.rb#282 def get(key); end # Print a handy Slop help string. # # Returns the banner followed by available option help strings. # - # source://pry//lib/pry/slop.rb#416 + # source://pry//lib/pry/slop.rb#440 def help; end # Fetch a list of options which were missing from the parsed list. @@ -9063,7 +9063,7 @@ class Pry::Slop # # Returns the created instance of Slop::Option. # - # source://pry//lib/pry/slop.rb#265 + # source://pry//lib/pry/slop.rb#271 def opt(*objects, &block); end # Add an Option. @@ -9077,7 +9077,7 @@ class Pry::Slop # # Returns the created instance of Slop::Option. # - # source://pry//lib/pry/slop.rb#265 + # source://pry//lib/pry/slop.rb#270 def option(*objects, &block); end # The Array of Slop::Option objects tied to this Slop instance. @@ -9164,7 +9164,7 @@ class Pry::Slop # # include_commands - If true, merge options from all sub-commands. # - # source://pry//lib/pry/slop.rb#287 + # source://pry//lib/pry/slop.rb#294 def to_h(include_commands = T.unsafe(nil)); end # Returns a new Hash with option flags as keys and option values as values. @@ -9451,7 +9451,7 @@ class Pry::Slop::Commands # # Returns the Slop instance if this key is found, nil otherwise. # - # source://pry//lib/pry/slop/commands.rb#100 + # source://pry//lib/pry/slop/commands.rb#103 def get(key); end # Add a global Slop instance. @@ -9466,7 +9466,7 @@ class Pry::Slop::Commands # Returns the help String. # - # source://pry//lib/pry/slop/commands.rb#158 + # source://pry//lib/pry/slop/commands.rb#167 def help; end # Returns the inspection String. @@ -9651,7 +9651,7 @@ class Pry::Slop::Option # Returns the help String for this option. # - # source://pry//lib/pry/slop/option.rb#124 + # source://pry//lib/pry/slop/option.rb#140 def help; end # Returns the String inspection text. @@ -9974,13 +9974,13 @@ class Pry::WrappedModule # @return [String, nil] The associated file for the module (i.e # the primary candidate: highest ranked monkeypatch). # - # source://pry//lib/pry/wrapped_module.rb#176 + # source://pry//lib/pry/wrapped_module.rb#179 def source_file; end # @return [Fixnum, nil] The associated line for the module (i.e # the primary candidate: highest ranked monkeypatch). # - # source://pry//lib/pry/wrapped_module.rb#183 + # source://pry//lib/pry/wrapped_module.rb#186 def source_line; end # Retrieve the source location of a module. Return value is in same @@ -10152,7 +10152,7 @@ class Pry::WrappedModule::Candidate # source://pry//lib/pry/wrapped_module/candidate.rb#38 def initialize(wrapper, rank); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/wrapped_module/candidate.rb#27 def class?(*args, **_arg1, &block); end # @raise [Pry::CommandError] If documentation cannot be found. @@ -10171,13 +10171,13 @@ class Pry::WrappedModule::Candidate # source://pry//lib/pry/wrapped_module/candidate.rb#18 def line; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/wrapped_module/candidate.rb#27 def module?(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/wrapped_module/candidate.rb#27 def nonblank_name(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/wrapped_module/candidate.rb#27 def number_of_candidates(*args, **_arg1, &block); end # @raise [Pry::CommandError] If source code cannot be found. @@ -10189,12 +10189,12 @@ class Pry::WrappedModule::Candidate # @return [String] The file where the module definition is located. # - # source://pry//lib/pry/wrapped_module/candidate.rb#14 + # source://pry//lib/pry/wrapped_module/candidate.rb#15 def source_file; end # @return [Fixnum] The line where the module definition is located. # - # source://pry//lib/pry/wrapped_module/candidate.rb#18 + # source://pry//lib/pry/wrapped_module/candidate.rb#19 def source_line; end # @return [Array, nil] A `[String, Fixnum]` pair representing the @@ -10204,7 +10204,7 @@ class Pry::WrappedModule::Candidate # source://pry//lib/pry/wrapped_module/candidate.rb#79 def source_location; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://pry//lib/pry/wrapped_module/candidate.rb#27 def wrapped(*args, **_arg1, &block); end private @@ -10236,10 +10236,10 @@ class Pry::WrappedModule::Candidate # source://pry//lib/pry/wrapped_module/candidate.rb#122 def last_method_source_location; end - # source://pry//lib/pry/forwardable.rb#18 + # source://pry//lib/pry/wrapped_module/candidate.rb#28 def lines_for_file(*a, &b); end - # source://pry//lib/pry/forwardable.rb#18 + # source://pry//lib/pry/wrapped_module/candidate.rb#28 def method_candidates(*a, &b); end # @return [Boolean] @@ -10247,7 +10247,7 @@ class Pry::WrappedModule::Candidate # source://pry//lib/pry/wrapped_module/candidate.rb#104 def module_definition_first_line?(line); end - # source://pry//lib/pry/forwardable.rb#18 + # source://pry//lib/pry/wrapped_module/candidate.rb#28 def name(*a, &b); end # Return the number of lines between the start of the class definition and @@ -10260,6 +10260,6 @@ class Pry::WrappedModule::Candidate # source://pry//lib/pry/wrapped_module/candidate.rb#132 def number_of_lines_in_first_chunk; end - # source://pry//lib/pry/forwardable.rb#18 + # source://pry//lib/pry/wrapped_module/candidate.rb#28 def yard_docs?(*a, &b); end end diff --git a/sorbet/rbi/gems/psych@5.2.4.rbi b/sorbet/rbi/gems/psych@5.2.6.rbi similarity index 88% rename from sorbet/rbi/gems/psych@5.2.4.rbi rename to sorbet/rbi/gems/psych@5.2.6.rbi index 06aa82cb..98a4ea91 100644 --- a/sorbet/rbi/gems/psych@5.2.4.rbi +++ b/sorbet/rbi/gems/psych@5.2.6.rbi @@ -1,4 +1,4 @@ -# typed: true +# typed: false # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `psych` gem. @@ -231,24 +231,24 @@ module Psych extend ::Bootsnap::CompileCache::YAML::Psych4::Patch class << self - # source://psych//lib/psych.rb#700 + # source://psych//lib/psych.rb#728 def add_builtin_type(type_tag, &block); end # :stopdoc: # - # source://psych//lib/psych.rb#694 + # source://psych//lib/psych.rb#722 def add_domain_type(domain, type_tag, &block); end - # source://psych//lib/psych.rb#710 + # source://psych//lib/psych.rb#738 def add_tag(tag, klass); end - # source://psych//lib/psych.rb#726 + # source://psych//lib/psych.rb#754 def config; end - # source://psych//lib/psych.rb#738 + # source://psych//lib/psych.rb#766 def domain_types; end - # source://psych//lib/psych.rb#750 + # source://psych//lib/psych.rb#778 def domain_types=(value); end # call-seq: @@ -301,7 +301,7 @@ module Psych # # Dump hash with symbol keys as string # Psych.dump({a: "b"}, stringify_names: true) # => "---\na: b\n" # - # source://psych//lib/psych.rb#515 + # source://psych//lib/psych.rb#514 def dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end # Dump a list of objects as separate documents to a document stream. @@ -310,15 +310,18 @@ module Psych # # Psych.dump_stream("foo\n ", {}) # => "--- ! \"foo\\n \"\n--- {}\n" # - # source://psych//lib/psych.rb#613 + # source://psych//lib/psych.rb#612 def dump_stream(*objects); end - # source://psych//lib/psych.rb#734 + # source://psych//lib/psych.rb#762 def dump_tags; end - # source://psych//lib/psych.rb#746 + # source://psych//lib/psych.rb#774 def dump_tags=(value); end + # source://psych//lib/psych.rb#15 + def libyaml_version; end + # Load +yaml+ in to a Ruby data structure. If multiple documents are # provided, the object contained in the first document will be returned. # +filename+ will be used in the exception message if any exception @@ -348,9 +351,17 @@ module Psych # Raises a TypeError when `yaml` parameter is NilClass. This method is # similar to `safe_load` except that `Symbol` objects are allowed by default. # - # source://psych//lib/psych.rb#370 + # source://psych//lib/psych.rb#369 def load(yaml, permitted_classes: T.unsafe(nil), permitted_symbols: T.unsafe(nil), aliases: T.unsafe(nil), filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end + # Loads the document contained in +filename+. Returns the yaml contained in + # +filename+ as a Ruby object, or if the file is empty, it returns + # the specified +fallback+ return value, which defaults to +nil+. + # See load for options. + # + # source://psych//lib/psych.rb#715 + def load_file(path, *args, **_arg2); end + # Load multiple documents given in +yaml+. Returns the parsed documents # as a list. If a block is given, each document will be converted to Ruby # and passed to the block during parsing @@ -365,13 +376,13 @@ module Psych # end # list # => ['foo', 'bar'] # - # source://psych//lib/psych.rb#644 + # source://psych//lib/psych.rb#643 def load_stream(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), **kwargs); end - # source://psych//lib/psych.rb#730 + # source://psych//lib/psych.rb#758 def load_tags; end - # source://psych//lib/psych.rb#742 + # source://psych//lib/psych.rb#770 def load_tags=(value); end # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Document. @@ -393,14 +404,14 @@ module Psych # # See Psych::Nodes for more information about YAML AST. # - # source://psych//lib/psych.rb#400 + # source://psych//lib/psych.rb#399 def parse(yaml, filename: T.unsafe(nil)); end # Parse a file at +filename+. Returns the Psych::Nodes::Document. # # Raises a Psych::SyntaxError when a YAML syntax error is detected. # - # source://psych//lib/psych.rb#412 + # source://psych//lib/psych.rb#411 def parse_file(filename, fallback: T.unsafe(nil)); end # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Stream. @@ -432,15 +443,15 @@ module Psych # # See Psych::Nodes for more information about YAML AST. # - # source://psych//lib/psych.rb#454 + # source://psych//lib/psych.rb#453 def parse_stream(yaml, filename: T.unsafe(nil), &block); end # Returns a default parser # - # source://psych//lib/psych.rb#421 + # source://psych//lib/psych.rb#420 def parser; end - # source://psych//lib/psych.rb#706 + # source://psych//lib/psych.rb#734 def remove_type(type_tag); end # call-seq: @@ -513,7 +524,7 @@ module Psych # # Dump hash with symbol keys as string # Psych.dump({a: "b"}, stringify_names: true) # => "---\na: b\n" # - # source://psych//lib/psych.rb#596 + # source://psych//lib/psych.rb#595 def safe_dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end # Safely load the yaml string in +yaml+. By default, only the following @@ -560,7 +571,7 @@ module Psych # Psych.safe_load("---\n foo: bar") # => {"foo"=>"bar"} # Psych.safe_load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"} # - # source://psych//lib/psych.rb#324 + # source://psych//lib/psych.rb#323 def safe_load(yaml, permitted_classes: T.unsafe(nil), permitted_symbols: T.unsafe(nil), aliases: T.unsafe(nil), filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end # Safely loads the document contained in +filename+. Returns the yaml contained in @@ -568,12 +579,28 @@ module Psych # the specified +fallback+ return value, which defaults to +nil+. # See safe_load for options. # - # source://psych//lib/psych.rb#676 + # source://psych//lib/psych.rb#704 def safe_load_file(filename, **kwargs); end + # Load multiple documents given in +yaml+. Returns the parsed documents + # as a list. + # + # Example: + # + # Psych.safe_load_stream("--- foo\n...\n--- bar\n...") # => ['foo', 'bar'] + # + # list = [] + # Psych.safe_load_stream("--- foo\n...\n--- bar\n...") do |ruby| + # list << ruby + # end + # list # => ['foo', 'bar'] + # + # source://psych//lib/psych.rb#670 + def safe_load_stream(yaml, filename: T.unsafe(nil), permitted_classes: T.unsafe(nil), aliases: T.unsafe(nil)); end + # Dump Ruby +object+ to a JSON string. # - # source://psych//lib/psych.rb#623 + # source://psych//lib/psych.rb#622 def to_json(object); end # Load +yaml+ in to a Ruby data structure. If multiple documents are @@ -608,8 +635,19 @@ module Psych # YAML documents that are supplied via user input. Instead, please use the # load method or the safe_load method. # - # source://psych//lib/psych.rb#273 + # source://psych//lib/psych.rb#272 def unsafe_load(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end + + # Load the document contained in +filename+. Returns the yaml contained in + # +filename+ as a Ruby object, or if the file is empty, it returns + # the specified +fallback+ return value, which defaults to +false+. + # + # NOTE: This method *should not* be used to parse untrusted documents, such as + # YAML documents that are supplied via user input. Instead, please use the + # safe_load_file method. + # + # source://psych//lib/psych.rb#693 + def unsafe_load_file(path, *args, **_arg2); end end end @@ -637,7 +675,7 @@ end class Psych::ClassLoader # @return [ClassLoader] a new instance of ClassLoader # - # source://psych//lib/psych/class_loader.rb#21 + # source://psych//lib/psych/class_loader.rb#22 def initialize; end # source://psych//lib/psych/class_loader.rb#39 @@ -646,6 +684,9 @@ class Psych::ClassLoader # source://psych//lib/psych/class_loader.rb#39 def complex; end + # source://psych//lib/psych/class_loader.rb#39 + def data; end + # source://psych//lib/psych/class_loader.rb#39 def date; end @@ -655,7 +696,7 @@ class Psych::ClassLoader # source://psych//lib/psych/class_loader.rb#39 def exception; end - # source://psych//lib/psych/class_loader.rb#25 + # source://psych//lib/psych/class_loader.rb#26 def load(klassname); end # source://psych//lib/psych/class_loader.rb#39 @@ -682,31 +723,37 @@ class Psych::ClassLoader # source://psych//lib/psych/class_loader.rb#39 def symbol; end - # source://psych//lib/psych/class_loader.rb#31 + # source://psych//lib/psych/class_loader.rb#32 def symbolize(sym); end private - # source://psych//lib/psych/class_loader.rb#47 + # source://psych//lib/psych/class_loader.rb#48 def find(klassname); end - # source://psych//lib/psych/class_loader.rb#51 + # source://psych//lib/psych.rb#15 + def path2class(_arg0); end + + # source://psych//lib/psych/class_loader.rb#52 def resolve(klassname); end end -# source://psych//lib/psych/class_loader.rb#76 +# source://psych//lib/psych/class_loader.rb#9 +Psych::ClassLoader::DATA = T.let(T.unsafe(nil), String) + +# source://psych//lib/psych/class_loader.rb#77 class Psych::ClassLoader::Restricted < ::Psych::ClassLoader # @return [Restricted] a new instance of Restricted # - # source://psych//lib/psych/class_loader.rb#77 + # source://psych//lib/psych/class_loader.rb#78 def initialize(classes, symbols); end - # source://psych//lib/psych/class_loader.rb#83 + # source://psych//lib/psych/class_loader.rb#84 def symbolize(sym); end private - # source://psych//lib/psych/class_loader.rb#95 + # source://psych//lib/psych/class_loader.rb#96 def find(klassname); end end @@ -729,7 +776,7 @@ class Psych::Coder # source://psych//lib/psych/coder.rb#78 def []=(k, v); end - # source://psych//lib/psych/coder.rb#78 + # source://psych//lib/psych/coder.rb#82 def add(k, v); end # Returns the value of attribute implicit. @@ -845,6 +892,59 @@ class Psych::DisallowedClass < ::Psych::Exception def initialize(action, klass_name); end end +class Psych::Emitter < ::Psych::Handler + # source://psych//lib/psych.rb#15 + def initialize(*_arg0); end + + # source://psych//lib/psych.rb#15 + def alias(_arg0); end + + # source://psych//lib/psych.rb#15 + def canonical; end + + # source://psych//lib/psych.rb#15 + def canonical=(_arg0); end + + # source://psych//lib/psych.rb#15 + def end_document(_arg0); end + + # source://psych//lib/psych.rb#15 + def end_mapping; end + + # source://psych//lib/psych.rb#15 + def end_sequence; end + + # source://psych//lib/psych.rb#15 + def end_stream; end + + # source://psych//lib/psych.rb#15 + def indentation; end + + # source://psych//lib/psych.rb#15 + def indentation=(_arg0); end + + # source://psych//lib/psych.rb#15 + def line_width; end + + # source://psych//lib/psych.rb#15 + def line_width=(_arg0); end + + # source://psych//lib/psych.rb#15 + def scalar(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5); end + + # source://psych//lib/psych.rb#15 + def start_document(_arg0, _arg1, _arg2); end + + # source://psych//lib/psych.rb#15 + def start_mapping(_arg0, _arg1, _arg2, _arg3); end + + # source://psych//lib/psych.rb#15 + def start_sequence(_arg0, _arg1, _arg2, _arg3); end + + # source://psych//lib/psych.rb#15 + def start_stream(_arg0); end +end + # Psych::Handler is an abstract base class that defines the events used # when dealing with Psych::Parser. Clients who want to use Psych::Parser # should implement a class that inherits from Psych::Handler and define @@ -1137,7 +1237,7 @@ module Psych::JSON::RubyEvents # source://psych//lib/psych/json/ruby_events.rb#14 def visit_String(o); end - # source://psych//lib/psych/json/ruby_events.rb#14 + # source://psych//lib/psych/json/ruby_events.rb#17 def visit_Symbol(o); end # source://psych//lib/psych/json/ruby_events.rb#5 @@ -1484,14 +1584,14 @@ class Psych::Nodes::Node # # See also Psych::Visitors::Emitter # - # source://psych//lib/psych/nodes/node.rb#57 + # source://psych//lib/psych/nodes/node.rb#66 def to_yaml(io = T.unsafe(nil), options = T.unsafe(nil)); end # Convert this node to Ruby. # # See also Psych::Visitors::ToRuby # - # source://psych//lib/psych/nodes/node.rb#48 + # source://psych//lib/psych/nodes/node.rb#51 def transform(symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end # Convert this node to YAML. @@ -1778,6 +1878,9 @@ class Psych::Parser # source://psych//lib/psych/parser.rb#38 def handler=(_arg0); end + # source://psych//lib/psych.rb#15 + def mark; end + # call-seq: # parser.parse(yaml) # @@ -1788,6 +1891,11 @@ class Psych::Parser # # source://psych//lib/psych/parser.rb#61 def parse(yaml, path = T.unsafe(nil)); end + + private + + # source://psych//lib/psych.rb#15 + def _native_parse(_arg0, _arg1, _arg2); end end # Scan scalars for built in types @@ -1962,10 +2070,10 @@ class Psych::TreeBuilder < ::Psych::Handler # source://psych//lib/psych/tree_builder.rb#77 def end_document(implicit_end = T.unsafe(nil)); end - # source://psych//lib/psych/tree_builder.rb#52 + # source://psych//lib/psych/tree_builder.rb#44 def end_mapping; end - # source://psych//lib/psych/tree_builder.rb#52 + # source://psych//lib/psych/tree_builder.rb#44 def end_sequence; end # source://psych//lib/psych/tree_builder.rb#90 @@ -1990,10 +2098,10 @@ class Psych::TreeBuilder < ::Psych::Handler # source://psych//lib/psych/tree_builder.rb#65 def start_document(version, tag_directives, implicit); end - # source://psych//lib/psych/tree_builder.rb#45 + # source://psych//lib/psych/tree_builder.rb#44 def start_mapping(anchor, tag, implicit, style); end - # source://psych//lib/psych/tree_builder.rb#45 + # source://psych//lib/psych/tree_builder.rb#44 def start_sequence(anchor, tag, implicit, style); end # source://psych//lib/psych/tree_builder.rb#84 @@ -2037,22 +2145,22 @@ class Psych::Visitors::DepthFirst < ::Psych::Visitors::Visitor # source://psych//lib/psych/visitors/depth_first.rb#20 def terminal(o); end - # source://psych//lib/psych/visitors/depth_first.rb#20 + # source://psych//lib/psych/visitors/depth_first.rb#24 def visit_Psych_Nodes_Alias(o); end - # source://psych//lib/psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#16 def visit_Psych_Nodes_Document(o); end - # source://psych//lib/psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#18 def visit_Psych_Nodes_Mapping(o); end - # source://psych//lib/psych/visitors/depth_first.rb#20 + # source://psych//lib/psych/visitors/depth_first.rb#23 def visit_Psych_Nodes_Scalar(o); end - # source://psych//lib/psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#17 def visit_Psych_Nodes_Sequence(o); end - # source://psych//lib/psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#15 def visit_Psych_Nodes_Stream(o); end end @@ -2095,29 +2203,29 @@ class Psych::Visitors::JSONTree < ::Psych::Visitors::YAMLTree end end -# source://psych//lib/psych/visitors/to_ruby.rb#429 +# source://psych//lib/psych/visitors/to_ruby.rb#469 class Psych::Visitors::NoAliasRuby < ::Psych::Visitors::ToRuby # @raise [AliasesNotEnabled] # - # source://psych//lib/psych/visitors/to_ruby.rb#430 + # source://psych//lib/psych/visitors/to_ruby.rb#470 def visit_Psych_Nodes_Alias(o); end end -# source://psych//lib/psych/visitors/yaml_tree.rb#542 +# source://psych//lib/psych/visitors/yaml_tree.rb#580 class Psych::Visitors::RestrictedYAMLTree < ::Psych::Visitors::YAMLTree # @return [RestrictedYAMLTree] a new instance of RestrictedYAMLTree # - # source://psych//lib/psych/visitors/yaml_tree.rb#554 + # source://psych//lib/psych/visitors/yaml_tree.rb#592 def initialize(emitter, ss, options); end - # source://psych//lib/psych/visitors/yaml_tree.rb#567 + # source://psych//lib/psych/visitors/yaml_tree.rb#605 def accept(target); end - # source://psych//lib/psych/visitors/yaml_tree.rb#579 + # source://psych//lib/psych/visitors/yaml_tree.rb#617 def visit_Symbol(sym); end end -# source://psych//lib/psych/visitors/yaml_tree.rb#543 +# source://psych//lib/psych/visitors/yaml_tree.rb#581 Psych::Visitors::RestrictedYAMLTree::DEFAULT_PERMITTED_CLASSES = T.let(T.unsafe(nil), Hash) # This class walks a YAML AST, converting each node to Ruby @@ -2137,10 +2245,10 @@ class Psych::Visitors::ToRuby < ::Psych::Visitors::Visitor # source://psych//lib/psych/visitors/to_ruby.rb#21 def class_loader; end - # source://psych//lib/psych/visitors/to_ruby.rb#326 + # source://psych//lib/psych/visitors/to_ruby.rb#352 def visit_Psych_Nodes_Alias(o); end - # source://psych//lib/psych/visitors/to_ruby.rb#318 + # source://psych//lib/psych/visitors/to_ruby.rb#344 def visit_Psych_Nodes_Document(o); end # source://psych//lib/psych/visitors/to_ruby.rb#164 @@ -2152,38 +2260,50 @@ class Psych::Visitors::ToRuby < ::Psych::Visitors::Visitor # source://psych//lib/psych/visitors/to_ruby.rb#132 def visit_Psych_Nodes_Sequence(o); end - # source://psych//lib/psych/visitors/to_ruby.rb#322 + # source://psych//lib/psych/visitors/to_ruby.rb#348 def visit_Psych_Nodes_Stream(o); end private - # source://psych//lib/psych/visitors/to_ruby.rb#394 + # source://psych//lib/psych/visitors/to_ruby.rb#369 + def allocate_anon_data(node, members); end + + # source://psych//lib/psych.rb#15 + def build_exception(_arg0, _arg1); end + + # source://psych//lib/psych/visitors/to_ruby.rb#434 def deduplicate(key); end # source://psych//lib/psych/visitors/to_ruby.rb#51 def deserialize(o); end - # source://psych//lib/psych/visitors/to_ruby.rb#411 + # source://psych//lib/psych.rb#15 + def init_struct(_arg0, _arg1); end + + # source://psych//lib/psych/visitors/to_ruby.rb#451 def init_with(o, h, node); end - # source://psych//lib/psych/visitors/to_ruby.rb#403 + # source://psych//lib/psych/visitors/to_ruby.rb#443 def merge_key(hash, key, val); end - # source://psych//lib/psych/visitors/to_ruby.rb#332 + # source://psych//lib/psych/visitors/to_ruby.rb#358 def register(node, object); end - # source://psych//lib/psych/visitors/to_ruby.rb#337 + # source://psych//lib/psych/visitors/to_ruby.rb#363 def register_empty(object); end # Convert +klassname+ to a Class # - # source://psych//lib/psych/visitors/to_ruby.rb#424 + # source://psych//lib/psych/visitors/to_ruby.rb#464 def resolve_class(klassname); end - # source://psych//lib/psych/visitors/to_ruby.rb#406 + # source://psych//lib/psych/visitors/to_ruby.rb#446 def revive(klass, node); end - # source://psych//lib/psych/visitors/to_ruby.rb#343 + # source://psych//lib/psych/visitors/to_ruby.rb#374 + def revive_data_members(hash, o); end + + # source://psych//lib/psych/visitors/to_ruby.rb#383 def revive_hash(hash, o, tagged = T.unsafe(nil)); end class << self @@ -2226,7 +2346,7 @@ class Psych::Visitors::YAMLTree < ::Psych::Visitors::Visitor # source://psych//lib/psych/visitors/yaml_tree.rb#51 def initialize(emitter, ss, options); end - # source://psych//lib/psych/visitors/yaml_tree.rb#99 + # source://psych//lib/psych/visitors/yaml_tree.rb#117 def <<(object); end # source://psych//lib/psych/visitors/yaml_tree.rb#119 @@ -2242,7 +2362,7 @@ class Psych::Visitors::YAMLTree < ::Psych::Visitors::Visitor # Returns the value of attribute finished. # - # source://psych//lib/psych/visitors/yaml_tree.rb#40 + # source://psych//lib/psych/visitors/yaml_tree.rb#41 def finished?; end # source://psych//lib/psych/visitors/yaml_tree.rb#99 @@ -2258,68 +2378,71 @@ class Psych::Visitors::YAMLTree < ::Psych::Visitors::Visitor # Returns the value of attribute started. # - # source://psych//lib/psych/visitors/yaml_tree.rb#40 + # source://psych//lib/psych/visitors/yaml_tree.rb#42 def started?; end # source://psych//lib/psych/visitors/yaml_tree.rb#94 def tree; end - # source://psych//lib/psych/visitors/yaml_tree.rb#348 + # source://psych//lib/psych/visitors/yaml_tree.rb#386 def visit_Array(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#374 + # source://psych//lib/psych/visitors/yaml_tree.rb#412 def visit_BasicObject(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#248 + # source://psych//lib/psych/visitors/yaml_tree.rb#286 def visit_BigDecimal(o); end # @raise [TypeError] # - # source://psych//lib/psych/visitors/yaml_tree.rb#311 + # source://psych//lib/psych/visitors/yaml_tree.rb#349 def visit_Class(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#221 + # source://psych//lib/psych/visitors/yaml_tree.rb#259 def visit_Complex(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#191 + # source://psych//lib/psych/visitors/yaml_tree.rb#165 + def visit_Data(o); end + + # source://psych//lib/psych/visitors/yaml_tree.rb#229 def visit_Date(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#196 + # source://psych//lib/psych/visitors/yaml_tree.rb#234 def visit_DateTime(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#149 + # source://psych//lib/psych/visitors/yaml_tree.rb#163 def visit_Delegator(o); end # source://psych//lib/psych/visitors/yaml_tree.rb#144 def visit_Encoding(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#356 + # source://psych//lib/psych/visitors/yaml_tree.rb#394 def visit_Enumerator(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#179 + # source://psych//lib/psych/visitors/yaml_tree.rb#217 def visit_Exception(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#231 + # source://psych//lib/psych/visitors/yaml_tree.rb#273 def visit_FalseClass(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#237 + # source://psych//lib/psych/visitors/yaml_tree.rb#275 def visit_Float(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#324 + # source://psych//lib/psych/visitors/yaml_tree.rb#362 def visit_Hash(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#231 + # source://psych//lib/psych/visitors/yaml_tree.rb#269 def visit_Integer(o); end # @raise [TypeError] # - # source://psych//lib/psych/visitors/yaml_tree.rb#306 + # source://psych//lib/psych/visitors/yaml_tree.rb#344 def visit_Module(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#183 + # source://psych//lib/psych/visitors/yaml_tree.rb#221 def visit_NameError(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#362 + # source://psych//lib/psych/visitors/yaml_tree.rb#400 def visit_NilClass(o); end # source://psych//lib/psych/visitors/yaml_tree.rb#149 @@ -2328,68 +2451,68 @@ class Psych::Visitors::YAMLTree < ::Psych::Visitors::Visitor # source://psych//lib/psych/visitors/yaml_tree.rb#136 def visit_Psych_Omap(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#337 + # source://psych//lib/psych/visitors/yaml_tree.rb#375 def visit_Psych_Set(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#316 + # source://psych//lib/psych/visitors/yaml_tree.rb#354 def visit_Range(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#208 + # source://psych//lib/psych/visitors/yaml_tree.rb#246 def visit_Rational(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#187 + # source://psych//lib/psych/visitors/yaml_tree.rb#225 def visit_Regexp(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#252 + # source://psych//lib/psych/visitors/yaml_tree.rb#290 def visit_String(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#165 + # source://psych//lib/psych/visitors/yaml_tree.rb#203 def visit_Struct(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#366 + # source://psych//lib/psych/visitors/yaml_tree.rb#404 def visit_Symbol(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#203 + # source://psych//lib/psych/visitors/yaml_tree.rb#241 def visit_Time(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#231 + # source://psych//lib/psych/visitors/yaml_tree.rb#272 def visit_TrueClass(o); end private # @return [Boolean] # - # source://psych//lib/psych/visitors/yaml_tree.rb#388 + # source://psych//lib/psych/visitors/yaml_tree.rb#426 def binary?(string); end - # source://psych//lib/psych/visitors/yaml_tree.rb#499 + # source://psych//lib/psych/visitors/yaml_tree.rb#537 def dump_coder(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#464 + # source://psych//lib/psych/visitors/yaml_tree.rb#502 def dump_exception(o, msg); end - # source://psych//lib/psych/visitors/yaml_tree.rb#534 + # source://psych//lib/psych/visitors/yaml_tree.rb#572 def dump_ivars(target); end - # source://psych//lib/psych/visitors/yaml_tree.rb#461 + # source://psych//lib/psych/visitors/yaml_tree.rb#499 def dump_list(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#512 + # source://psych//lib/psych/visitors/yaml_tree.rb#550 def emit_coder(c, o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#490 + # source://psych//lib/psych/visitors/yaml_tree.rb#528 def format_date(date); end - # source://psych//lib/psych/visitors/yaml_tree.rb#482 + # source://psych//lib/psych/visitors/yaml_tree.rb#520 def format_time(time, utc = T.unsafe(nil)); end - # source://psych//lib/psych/visitors/yaml_tree.rb#494 + # source://psych//lib/psych/visitors/yaml_tree.rb#532 def register(target, yaml_obj); end - # source://psych//lib/psych/visitors/yaml_tree.rb#392 + # source://psych//lib/psych/visitors/yaml_tree.rb#430 def visit_array_subclass(o); end - # source://psych//lib/psych/visitors/yaml_tree.rb#423 + # source://psych//lib/psych/visitors/yaml_tree.rb#461 def visit_hash_subclass(o); end class << self diff --git a/sorbet/rbi/gems/public_suffix@6.0.1.rbi b/sorbet/rbi/gems/public_suffix@6.0.2.rbi similarity index 97% rename from sorbet/rbi/gems/public_suffix@6.0.1.rbi rename to sorbet/rbi/gems/public_suffix@6.0.2.rbi index 0c24f9dc..31778d63 100644 --- a/sorbet/rbi/gems/public_suffix@6.0.1.rbi +++ b/sorbet/rbi/gems/public_suffix@6.0.2.rbi @@ -401,7 +401,7 @@ class PublicSuffix::List # @param rule [PublicSuffix::Rule::*] the rule to add to the list # @return [self] # - # source://public_suffix//lib/public_suffix/list.rb#141 + # source://public_suffix//lib/public_suffix/list.rb#145 def <<(rule); end # Checks whether two lists are equal. @@ -460,7 +460,7 @@ class PublicSuffix::List # @param other [PublicSuffix::List] the List to compare # @return [Boolean] # - # source://public_suffix//lib/public_suffix/list.rb#120 + # source://public_suffix//lib/public_suffix/list.rb#125 def eql?(other); end # Finds and returns the rule corresponding to the longest public suffix for the hostname. @@ -704,7 +704,7 @@ class PublicSuffix::Rule::Base # @return [Boolean] true if this rule and other are instances of the same class # and has the same value, false otherwise. # - # source://public_suffix//lib/public_suffix/rule.rb#137 + # source://public_suffix//lib/public_suffix/rule.rb#140 def eql?(other); end # @return [String] the length of the rule @@ -769,41 +769,62 @@ class PublicSuffix::Rule::Entry < ::Struct # Returns the value of attribute length # # @return [Object] the current value of length + # + # source://public_suffix//lib/public_suffix/rule.rb#25 def length; end # Sets the attribute length # # @param value [Object] the value to set the attribute length to. # @return [Object] the newly set value + # + # source://public_suffix//lib/public_suffix/rule.rb#25 def length=(_); end # Returns the value of attribute private # # @return [Object] the current value of private + # + # source://public_suffix//lib/public_suffix/rule.rb#25 def private; end # Sets the attribute private # # @param value [Object] the value to set the attribute private to. # @return [Object] the newly set value + # + # source://public_suffix//lib/public_suffix/rule.rb#25 def private=(_); end # Returns the value of attribute type # # @return [Object] the current value of type + # + # source://public_suffix//lib/public_suffix/rule.rb#25 def type; end # Sets the attribute type # # @param value [Object] the value to set the attribute type to. # @return [Object] the newly set value + # + # source://public_suffix//lib/public_suffix/rule.rb#25 def type=(_); end class << self + # source://public_suffix//lib/public_suffix/rule.rb#25 def [](*_arg0); end + + # source://public_suffix//lib/public_suffix/rule.rb#25 def inspect; end + + # source://public_suffix//lib/public_suffix/rule.rb#25 def keyword_init?; end + + # source://public_suffix//lib/public_suffix/rule.rb#25 def members; end + + # source://public_suffix//lib/public_suffix/rule.rb#25 def new(*_arg0); end end end diff --git a/sorbet/rbi/gems/puma@6.6.0.rbi b/sorbet/rbi/gems/puma@7.0.0.rbi similarity index 78% rename from sorbet/rbi/gems/puma@6.6.0.rbi rename to sorbet/rbi/gems/puma@7.0.0.rbi index 53de7a09..cc22eca8 100644 --- a/sorbet/rbi/gems/puma@6.6.0.rbi +++ b/sorbet/rbi/gems/puma@7.0.0.rbi @@ -13,26 +13,34 @@ module Puma # source://puma//lib/puma.rb#45 def abstract_unix_socket?; end + # Shows deprecated warning for renamed methods. + # + # @example + # Puma.deprecate_method_change :on_booted, __callee__, __method__ + # + # source://puma//lib/puma.rb#83 + def deprecate_method_change(method_old, method_caller, method_new); end + # @return [Boolean] # @version 5.0.0 # - # source://puma//lib/puma/detect.rb#42 + # source://puma//lib/puma/detect.rb#44 def forkable?; end # @return [Boolean] # - # source://puma//lib/puma/detect.rb#24 + # source://puma//lib/puma/detect.rb#26 def jruby?; end # @return [Boolean] # @version 5.0.0 # - # source://puma//lib/puma/detect.rb#37 + # source://puma//lib/puma/detect.rb#39 def mri?; end # @return [Boolean] # - # source://puma//lib/puma/detect.rb#28 + # source://puma//lib/puma/detect.rb#30 def osx?; end # source://puma//lib/puma.rb#75 @@ -56,26 +64,26 @@ module Puma # @return [Boolean] # - # source://puma//lib/puma/detect.rb#32 + # source://puma//lib/puma/detect.rb#34 def windows?; end end end -# source://puma//lib/puma/binder.rb#17 +# source://puma//lib/puma/binder.rb#16 class Puma::Binder include ::Puma::Const # @return [Binder] a new instance of Binder # - # source://puma//lib/puma/binder.rb#22 - def initialize(log_writer, conf = T.unsafe(nil), env: T.unsafe(nil)); end + # source://puma//lib/puma/binder.rb#21 + def initialize(log_writer, options, env: T.unsafe(nil)); end # @version 5.0.0 # - # source://puma//lib/puma/binder.rb#57 + # source://puma//lib/puma/binder.rb#59 def activated_sockets; end - # source://puma//lib/puma/binder.rb#361 + # source://puma//lib/puma/binder.rb#363 def add_ssl_listener(host, port, ctx, optimize_for_latency = T.unsafe(nil), backlog = T.unsafe(nil)); end # Tell the server to listen on host +host+, port +port+. @@ -85,26 +93,26 @@ class Puma::Binder # +backlog+ indicates how many unaccepted connections the kernel should # allow to accumulate before returning connection refused. # - # source://puma//lib/puma/binder.rb#333 + # source://puma//lib/puma/binder.rb#335 def add_tcp_listener(host, port, optimize_for_latency = T.unsafe(nil), backlog = T.unsafe(nil)); end # Tell the server to listen on +path+ as a UNIX domain socket. # - # source://puma//lib/puma/binder.rb#412 + # source://puma//lib/puma/binder.rb#414 def add_unix_listener(path, umask = T.unsafe(nil), mode = T.unsafe(nil), backlog = T.unsafe(nil)); end - # source://puma//lib/puma/binder.rb#145 + # source://puma//lib/puma/binder.rb#147 def before_parse(&block); end - # source://puma//lib/puma/binder.rb#66 + # source://puma//lib/puma/binder.rb#68 def close; end - # source://puma//lib/puma/binder.rb#459 + # source://puma//lib/puma/binder.rb#461 def close_listeners; end # @version 5.0.0 # - # source://puma//lib/puma/binder.rb#72 + # source://puma//lib/puma/binder.rb#74 def connected_ports; end # systemd socket activation. @@ -114,76 +122,76 @@ class Puma::Binder # @see https://www.freedesktop.org/software/systemd/man/systemd-socket-activate.html # @version 5.0.0 # - # source://puma//lib/puma/binder.rb#90 + # source://puma//lib/puma/binder.rb#92 def create_activated_fds(env_hash); end # @version 5.0.0 # - # source://puma//lib/puma/binder.rb#77 + # source://puma//lib/puma/binder.rb#79 def create_inherited_fds(env_hash); end - # source://puma//lib/puma/binder.rb#62 + # source://puma//lib/puma/binder.rb#64 def env(sock); end # @version 5.0.0 # - # source://puma//lib/puma/binder.rb#57 + # source://puma//lib/puma/binder.rb#59 def envs; end - # source://puma//lib/puma/binder.rb#392 + # source://puma//lib/puma/binder.rb#394 def inherit_ssl_listener(fd, ctx); end - # source://puma//lib/puma/binder.rb#354 + # source://puma//lib/puma/binder.rb#356 def inherit_tcp_listener(host, port, fd); end - # source://puma//lib/puma/binder.rb#447 + # source://puma//lib/puma/binder.rb#449 def inherit_unix_listener(path, fd); end # @version 5.0.0 # - # source://puma//lib/puma/binder.rb#57 + # source://puma//lib/puma/binder.rb#59 def inherited_fds; end # Returns the value of attribute ios. # - # source://puma//lib/puma/binder.rb#54 + # source://puma//lib/puma/binder.rb#56 def ios; end # @version 5.0.0 # - # source://puma//lib/puma/binder.rb#60 + # source://puma//lib/puma/binder.rb#62 def ios=(_arg0); end # @version 5.0.0 # - # source://puma//lib/puma/binder.rb#57 + # source://puma//lib/puma/binder.rb#59 def listeners; end # @version 5.0.0 # - # source://puma//lib/puma/binder.rb#60 + # source://puma//lib/puma/binder.rb#62 def listeners=(_arg0); end - # source://puma//lib/puma/binder.rb#310 + # source://puma//lib/puma/binder.rb#312 def localhost_authority; end - # source://puma//lib/puma/binder.rb#314 + # source://puma//lib/puma/binder.rb#316 def localhost_authority_context; end - # source://puma//lib/puma/binder.rb#151 + # source://puma//lib/puma/binder.rb#153 def parse(binds, log_writer = T.unsafe(nil), log_msg = T.unsafe(nil)); end # @version 5.0.0 # - # source://puma//lib/puma/binder.rb#57 + # source://puma//lib/puma/binder.rb#59 def proto_env; end - # source://puma//lib/puma/binder.rb#472 + # source://puma//lib/puma/binder.rb#474 def redirects_for_restart; end # @version 5.0.0 # - # source://puma//lib/puma/binder.rb#479 + # source://puma//lib/puma/binder.rb#481 def redirects_for_restart_env; end # Synthesize binds from systemd socket activation @@ -197,29 +205,29 @@ class Puma::Binder # # It's a noop if no activated sockets were received. # - # source://puma//lib/puma/binder.rb#118 + # source://puma//lib/puma/binder.rb#120 def synthesize_binds_from_activated_fs(binds, only_matching); end # @version 5.0.0 # - # source://puma//lib/puma/binder.rb#57 + # source://puma//lib/puma/binder.rb#59 def unix_paths; end private - # source://puma//lib/puma/binder.rb#495 + # source://puma//lib/puma/binder.rb#497 def loc_addr_str(io); end - # source://puma//lib/puma/binder.rb#488 + # source://puma//lib/puma/binder.rb#490 def loopback_addresses; end # @version 5.0.0 # - # source://puma//lib/puma/binder.rb#505 + # source://puma//lib/puma/binder.rb#507 def socket_activation_fd(int); end end -# source://puma//lib/puma/binder.rb#20 +# source://puma//lib/puma/binder.rb#19 Puma::Binder::RACK_VERSION = T.let(T.unsafe(nil), Array) # An instance of this class represents a unique request from a client. @@ -235,90 +243,98 @@ Puma::Binder::RACK_VERSION = T.let(T.unsafe(nil), Array) # the header and body are fully buffered via the `try_to_finish` method. # They can be used to "time out" a response via the `timeout_at` reader. # -# source://puma//lib/puma/client.rb#44 +# source://puma//lib/puma/client.rb#36 class Puma::Client include ::Puma::Const # @return [Client] a new instance of Client # - # source://puma//lib/puma/client.rb#73 + # source://puma//lib/puma/client.rb#70 def initialize(io, env = T.unsafe(nil)); end # Returns the value of attribute body. # - # source://puma//lib/puma/client.rb#113 + # source://puma//lib/puma/client.rb#110 def body; end - # For the hijack protocol (allows us to just put the Client object - # into the env) - # - # source://puma//lib/puma/client.rb#138 - def call; end - # Returns true if the persistent connection can be closed immediately # without waiting for the configured idle/shutdown timeout. # # @return [Boolean] # @version 5.0.0 # - # source://puma//lib/puma/client.rb#341 + # source://puma//lib/puma/client.rb#378 def can_close?; end - # source://puma//lib/puma/client.rb#194 + # source://puma//lib/puma/client.rb#192 def close; end # Remove in Puma 7? # # @return [Boolean] # - # source://puma//lib/puma/client.rb#121 + # source://puma//lib/puma/client.rb#119 def closed?; end - # source://puma//lib/puma/client.rb#292 + # source://puma//lib/puma/client.rb#289 def eagerly_finish; end # Returns the value of attribute env. # - # source://puma//lib/puma/client.rb#113 + # source://puma//lib/puma/client.rb#110 def env; end - # source://puma//lib/puma/client.rb#346 + # source://puma//lib/puma/client.rb#383 def expect_proxy_proto=(val); end - # source://puma//lib/puma/client.rb#298 + # source://puma//lib/puma/client.rb#297 def finish(timeout); end + # For the full hijack protocol, `env['rack.hijack']` is set to + # `client.method :full_hijack` + # + # source://puma//lib/puma/client.rb#136 + def full_hijack; end + + # if a client sends back-to-back requests, the buffer may contain one or more + # of them. + # + # @return [Boolean] + # + # source://puma//lib/puma/client.rb#188 + def has_back_to_back_requests?; end + # Returns the value of attribute hijacked. # - # source://puma//lib/puma/client.rb#113 + # source://puma//lib/puma/client.rb#110 def hijacked; end # Sets the attribute http_content_length_limit # # @param value the value to set the attribute http_content_length_limit to. # - # source://puma//lib/puma/client.rb#116 + # source://puma//lib/puma/client.rb#114 def http_content_length_limit=(_arg0); end # Returns the value of attribute http_content_length_limit_exceeded. # - # source://puma//lib/puma/client.rb#113 + # source://puma//lib/puma/client.rb#110 def http_content_length_limit_exceeded; end - # source://puma//lib/puma/client.rb#144 + # source://puma//lib/puma/client.rb#142 def in_data_phase; end - # source://puma//lib/puma/client.rb#132 + # source://puma//lib/puma/client.rb#130 def inspect; end # Returns the value of attribute io. # - # source://puma//lib/puma/client.rb#113 + # source://puma//lib/puma/client.rb#110 def io; end # Returns the value of attribute io_buffer. # - # source://puma//lib/puma/client.rb#113 + # source://puma//lib/puma/client.rb#110 def io_buffer; end # Test to see if io meets a bare minimum of functioning, @to_io needs to be @@ -326,166 +342,190 @@ class Puma::Client # # @return [Boolean] # - # source://puma//lib/puma/client.rb#127 + # source://puma//lib/puma/client.rb#125 def io_ok?; end # Returns the value of attribute listener. # - # source://puma//lib/puma/client.rb#118 + # source://puma//lib/puma/client.rb#116 def listener; end # Sets the attribute listener # # @param value the value to set the attribute listener to. # - # source://puma//lib/puma/client.rb#118 + # source://puma//lib/puma/client.rb#116 def listener=(_arg0); end - # source://puma//lib/puma/client.rb#327 + # Wraps `@parser.execute` and adds meaningful error messages + # + # @return [Integer] bytes of buffer read by parser + # + # source://puma//lib/puma/client.rb#305 + def parser_execute; end + + # source://puma//lib/puma/client.rb#364 def peer_family; end - # source://puma//lib/puma/client.rb#315 + # source://puma//lib/puma/client.rb#352 def peerip; end # Sets the attribute peerip # # @param value the value to set the attribute peerip to. # - # source://puma//lib/puma/client.rb#116 + # source://puma//lib/puma/client.rb#114 def peerip=(_arg0); end + # only used with back-to-back requests contained in the buffer + # + # source://puma//lib/puma/client.rb#171 + def process_back_to_back_requests; end + # Returns the value of attribute ready. # - # source://puma//lib/puma/client.rb#113 + # source://puma//lib/puma/client.rb#110 def ready; end # Returns the value of attribute remote_addr_header. # - # source://puma//lib/puma/client.rb#118 + # source://puma//lib/puma/client.rb#116 def remote_addr_header; end # Sets the attribute remote_addr_header # # @param value the value to set the attribute remote_addr_header to. # - # source://puma//lib/puma/client.rb#118 + # source://puma//lib/puma/client.rb#116 def remote_addr_header=(_arg0); end - # source://puma//lib/puma/client.rb#157 - def reset(fast_check = T.unsafe(nil)); end + # Returns the value of attribute requests_served. + # + # source://puma//lib/puma/client.rb#110 + def requests_served; end + + # source://puma//lib/puma/client.rb#156 + def reset; end - # source://puma//lib/puma/client.rb#148 + # source://puma//lib/puma/client.rb#146 def set_timeout(val); end # Returns the value of attribute tempfile. # - # source://puma//lib/puma/client.rb#113 + # source://puma//lib/puma/client.rb#110 def tempfile; end - # source://puma//lib/puma/client.rb#203 + # source://puma//lib/puma/client.rb#200 def tempfile_close; end # Number of seconds until the timeout elapses. # - # source://puma//lib/puma/client.rb#153 + # source://puma//lib/puma/client.rb#152 def timeout; end # @raise [ConnectionError] # - # source://puma//lib/puma/client.rb#303 + # source://puma//lib/puma/client.rb#340 def timeout!; end # Returns the value of attribute timeout_at. # - # source://puma//lib/puma/client.rb#113 + # source://puma//lib/puma/client.rb#110 def timeout_at; end # Returns the value of attribute to_io. # - # source://puma//lib/puma/client.rb#113 + # source://puma//lib/puma/client.rb#110 def to_io; end - # source://puma//lib/puma/client.rb#236 + # source://puma//lib/puma/client.rb#233 def try_to_finish; end # If necessary, read the PROXY protocol from the buffer. Returns # false if more data is needed. # - # source://puma//lib/puma/client.rb#214 + # source://puma//lib/puma/client.rb#211 def try_to_parse_proxy_protocol; end - # source://puma//lib/puma/client.rb#308 + # source://puma//lib/puma/client.rb#345 def write_error(status_code); end private - # source://puma//lib/puma/client.rb#678 + # source://puma//lib/puma/client.rb#716 def above_http_content_limit(value); end - # source://puma//lib/puma/client.rb#549 + # source://puma//lib/puma/client.rb#587 def decode_chunk(chunk); end - # source://puma//lib/puma/client.rb#456 + # source://puma//lib/puma/client.rb#494 def read_body; end - # source://puma//lib/puma/client.rb#501 + # source://puma//lib/puma/client.rb#539 def read_chunked_body; end - # source://puma//lib/puma/client.rb#670 + # source://puma//lib/puma/client.rb#708 def set_ready; end - # source://puma//lib/puma/client.rb#359 + # source://puma//lib/puma/client.rb#396 def setup_body; end - # source://puma//lib/puma/client.rb#526 + # source://puma//lib/puma/client.rb#564 def setup_chunked_body(body); end # @version 5.0.0 # - # source://puma//lib/puma/client.rb#545 + # source://puma//lib/puma/client.rb#583 def write_chunk(str); end end # this tests all values but the last, which must be chunked # -# source://puma//lib/puma/client.rb#47 +# source://puma//lib/puma/client.rb#39 Puma::Client::ALLOWED_TRANSFER_ENCODING = T.let(T.unsafe(nil), Array) # chunked body validation # -# source://puma//lib/puma/client.rb#50 +# source://puma//lib/puma/client.rb#42 Puma::Client::CHUNK_SIZE_INVALID = T.let(T.unsafe(nil), Regexp) -# source://puma//lib/puma/client.rb#51 +# source://puma//lib/puma/client.rb#43 Puma::Client::CHUNK_VALID_ENDING = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/client.rb#52 +# source://puma//lib/puma/client.rb#44 Puma::Client::CHUNK_VALID_ENDING_SIZE = T.let(T.unsafe(nil), Integer) # Content-Length header value validation # -# source://puma//lib/puma/client.rb#63 +# source://puma//lib/puma/client.rb#55 Puma::Client::CONTENT_LENGTH_VALUE_INVALID = T.let(T.unsafe(nil), Regexp) # The object used for a request with no body. All requests with # no body share this one object since it has no state. # -# source://puma//lib/puma/client.rb#69 +# source://puma//lib/puma/client.rb#66 Puma::Client::EmptyBody = T.let(T.unsafe(nil), Puma::NullIO) # The maximum amount of excess data the client sends # using chunk size extensions before we abort the connection. # -# source://puma//lib/puma/client.rb#60 +# source://puma//lib/puma/client.rb#52 Puma::Client::MAX_CHUNK_EXCESS = T.let(T.unsafe(nil), Integer) # The maximum number of bytes we'll buffer looking for a valid # chunk header. # -# source://puma//lib/puma/client.rb#56 +# source://puma//lib/puma/client.rb#48 Puma::Client::MAX_CHUNK_HEADER_SIZE = T.let(T.unsafe(nil), Integer) -# source://puma//lib/puma/client.rb#65 +# See: +# https://httpwg.org/specs/rfc9110.html#rfc.section.5.6.1.1 +# https://httpwg.org/specs/rfc9112.html#rfc.section.6.1 +# +# source://puma//lib/puma/client.rb#62 +Puma::Client::STRIP_OWS = T.let(T.unsafe(nil), Regexp) + +# source://puma//lib/puma/client.rb#57 Puma::Client::TE_ERR_MSG = T.let(T.unsafe(nil), String) # This class is instantiated by the `Puma::Launcher` and used @@ -505,127 +545,129 @@ class Puma::Cluster < ::Puma::Runner # @return [Boolean] # - # source://puma//lib/puma/cluster.rb#157 + # source://puma//lib/puma/cluster.rb#162 def all_workers_booted?; end # @return [Boolean] # - # source://puma//lib/puma/cluster.rb#165 + # source://puma//lib/puma/cluster.rb#170 def all_workers_idle_timed_out?; end # @return [Boolean] # - # source://puma//lib/puma/cluster.rb#161 + # source://puma//lib/puma/cluster.rb#166 def all_workers_in_phase?; end - # source://puma//lib/puma/cluster.rb#169 - def check_workers; end + # source://puma//lib/puma/cluster.rb#174 + def check_workers(refork = T.unsafe(nil)); end - # source://puma//lib/puma/cluster.rb#136 + # source://puma//lib/puma/cluster.rb#141 def cull_start_index(diff); end - # source://puma//lib/puma/cluster.rb#112 + # source://puma//lib/puma/cluster.rb#117 def cull_workers; end # @version 5.0.0 # - # source://puma//lib/puma/cluster.rb#292 + # source://puma//lib/puma/cluster.rb#304 def fork_worker!; end - # source://puma//lib/puma/cluster.rb#249 + # source://puma//lib/puma/cluster.rb#259 def halt; end - # source://puma//lib/puma/cluster.rb#146 + # source://puma//lib/puma/cluster.rb#151 def next_worker_index; end - # source://puma//lib/puma/cluster.rb#228 + # source://puma//lib/puma/cluster.rb#238 def phased_restart(refork = T.unsafe(nil)); end # @return [Boolean] # - # source://puma//lib/puma/cluster.rb#287 + # source://puma//lib/puma/cluster.rb#299 def preload?; end - # source://puma//lib/puma/cluster.rb#59 + # source://puma//lib/puma/cluster.rb#64 def redirect_io; end - # source://puma//lib/puma/cluster.rb#254 + # source://puma//lib/puma/cluster.rb#264 def reload_worker_directory; end - # source://puma//lib/puma/cluster.rb#223 + # source://puma//lib/puma/cluster.rb#233 def restart; end - # source://puma//lib/puma/cluster.rb#352 + # source://puma//lib/puma/cluster.rb#364 def run; end # We do this in a separate method to keep the lambda scope # of the signals handlers as small as possible. # - # source://puma//lib/puma/cluster.rb#301 + # source://puma//lib/puma/cluster.rb#313 def setup_signals; end # @version 5.0.0 # - # source://puma//lib/puma/cluster.rb#98 + # source://puma//lib/puma/cluster.rb#103 def spawn_worker(idx, master); end - # source://puma//lib/puma/cluster.rb#65 + # source://puma//lib/puma/cluster.rb#70 def spawn_workers; end - # source://puma//lib/puma/cluster.rb#47 - def start_phased_restart; end + # source://puma//lib/puma/cluster.rb#48 + def start_phased_restart(refork = T.unsafe(nil)); end # Inside of a child process, this will return all zeroes, as @workers is only populated in - # the master process. + # the master process. Calling this also resets stat 'max' values to zero. + # + # @return [Hash] # - # source://puma//lib/puma/cluster.rb#263 + # source://puma//lib/puma/cluster.rb#275 def stats; end - # source://puma//lib/puma/cluster.rb#237 + # source://puma//lib/puma/cluster.rb#247 def stop; end - # source://puma//lib/puma/cluster.rb#242 + # source://puma//lib/puma/cluster.rb#252 def stop_blocked; end - # source://puma//lib/puma/cluster.rb#32 + # source://puma//lib/puma/cluster.rb#33 def stop_workers; end - # source://puma//lib/puma/cluster.rb#201 + # source://puma//lib/puma/cluster.rb#211 def worker(index, master); end - # source://puma//lib/puma/cluster.rb#153 + # source://puma//lib/puma/cluster.rb#158 def worker_at(idx); end # Returns the list of cluster worker handles. # # @return [Array] # - # source://puma//lib/puma/cluster.rb#30 + # source://puma//lib/puma/cluster.rb#31 def workers; end - # source://puma//lib/puma/cluster.rb#126 + # source://puma//lib/puma/cluster.rb#131 def workers_to_cull(diff); end private - # source://puma//lib/puma/cluster.rb#612 + # source://puma//lib/puma/cluster.rb#625 def idle_timed_out_worker_pids; end - # source://puma//lib/puma/cluster.rb#616 + # source://puma//lib/puma/cluster.rb#629 def idle_workers; end - # source://puma//lib/puma/cluster.rb#537 + # source://puma//lib/puma/cluster.rb#550 def single_worker_warning; end # @version 5.0.0 # - # source://puma//lib/puma/cluster.rb#598 + # source://puma//lib/puma/cluster.rb#611 def timeout_workers; end # loops thru @workers, removing workers that exited, and calling # `#term` if needed # - # source://puma//lib/puma/cluster.rb#548 + # source://puma//lib/puma/cluster.rb#561 def wait_workers; end end @@ -654,7 +696,7 @@ class Puma::Cluster::Worker < ::Puma::Runner private - # source://puma//lib/puma/cluster/worker.rb#159 + # source://puma//lib/puma/cluster/worker.rb#158 def spawn_worker(idx); end end @@ -664,60 +706,60 @@ end # include the actual logic executed by the worker process itself. For that, # see Puma::Cluster::Worker. # -# source://puma//lib/puma/cluster/worker_handle.rb#13 +# source://puma//lib/puma/cluster/worker_handle.rb#12 class Puma::Cluster::WorkerHandle # @return [WorkerHandle] a new instance of WorkerHandle # - # source://puma//lib/puma/cluster/worker_handle.rb#14 + # source://puma//lib/puma/cluster/worker_handle.rb#16 def initialize(idx, pid, phase, options); end - # source://puma//lib/puma/cluster/worker_handle.rb#41 + # source://puma//lib/puma/cluster/worker_handle.rb#44 def boot!; end # @return [Boolean] # - # source://puma//lib/puma/cluster/worker_handle.rb#33 + # source://puma//lib/puma/cluster/worker_handle.rb#36 def booted?; end - # source://puma//lib/puma/cluster/worker_handle.rb#90 + # source://puma//lib/puma/cluster/worker_handle.rb#119 def hup; end # Returns the value of attribute index. # - # source://puma//lib/puma/cluster/worker_handle.rb#28 + # source://puma//lib/puma/cluster/worker_handle.rb#31 def index; end - # source://puma//lib/puma/cluster/worker_handle.rb#85 + # source://puma//lib/puma/cluster/worker_handle.rb#114 def kill; end # Returns the value of attribute last_checkin. # - # source://puma//lib/puma/cluster/worker_handle.rb#28 + # source://puma//lib/puma/cluster/worker_handle.rb#31 def last_checkin; end # Returns the value of attribute last_status. # - # source://puma//lib/puma/cluster/worker_handle.rb#28 + # source://puma//lib/puma/cluster/worker_handle.rb#31 def last_status; end # Returns the value of attribute phase. # - # source://puma//lib/puma/cluster/worker_handle.rb#28 + # source://puma//lib/puma/cluster/worker_handle.rb#31 def phase; end # @version 5.0.0 # - # source://puma//lib/puma/cluster/worker_handle.rb#31 + # source://puma//lib/puma/cluster/worker_handle.rb#34 def phase=(_arg0); end # Returns the value of attribute pid. # - # source://puma//lib/puma/cluster/worker_handle.rb#28 + # source://puma//lib/puma/cluster/worker_handle.rb#31 def pid; end # @version 5.0.0 # - # source://puma//lib/puma/cluster/worker_handle.rb#31 + # source://puma//lib/puma/cluster/worker_handle.rb#34 def pid=(_arg0); end # source://puma//lib/puma/cluster/worker_handle.rb#57 @@ -726,36 +768,43 @@ class Puma::Cluster::WorkerHandle # @see Puma::Cluster#check_workers # @version 5.0.0 # - # source://puma//lib/puma/cluster/worker_handle.rb#64 + # source://puma//lib/puma/cluster/worker_handle.rb#93 def ping_timeout; end + # Resets max values to zero. Called whenever `Cluster#stats` is called + # + # source://puma//lib/puma/cluster/worker_handle.rb#87 + def reset_max; end + # Returns the value of attribute signal. # - # source://puma//lib/puma/cluster/worker_handle.rb#28 + # source://puma//lib/puma/cluster/worker_handle.rb#31 def signal; end # Returns the value of attribute started_at. # - # source://puma//lib/puma/cluster/worker_handle.rb#28 + # source://puma//lib/puma/cluster/worker_handle.rb#31 def started_at; end - # source://puma//lib/puma/cluster/worker_handle.rb#72 + # source://puma//lib/puma/cluster/worker_handle.rb#101 def term; end - # source://puma//lib/puma/cluster/worker_handle.rb#46 + # source://puma//lib/puma/cluster/worker_handle.rb#49 def term!; end # @return [Boolean] # - # source://puma//lib/puma/cluster/worker_handle.rb#50 + # source://puma//lib/puma/cluster/worker_handle.rb#53 def term?; end - # source://puma//lib/puma/cluster/worker_handle.rb#37 + # source://puma//lib/puma/cluster/worker_handle.rb#40 def uptime; end end -# source://puma//lib/puma/cluster/worker_handle.rb#54 -Puma::Cluster::WorkerHandle::STATUS_PATTERN = T.let(T.unsafe(nil), Regexp) +# array of stat 'max' keys +# +# source://puma//lib/puma/cluster/worker_handle.rb#14 +Puma::Cluster::WorkerHandle::WORKER_MAX_KEYS = T.let(T.unsafe(nil), Array) # The main configuration class of Puma. # @@ -779,7 +828,7 @@ Puma::Cluster::WorkerHandle::STATUS_PATTERN = T.let(T.unsafe(nil), Regexp) # config = Configuration.new({}) do |user_config, file_config, default_config| # user_config.port 3003 # end -# config.load +# config.clamp # puts config.options[:port] # # => 3003 # @@ -792,126 +841,152 @@ Puma::Cluster::WorkerHandle::STATUS_PATTERN = T.let(T.unsafe(nil), Regexp) # is done because an environment variable may have been modified while loading # configuration files. # -# source://puma//lib/puma/configuration.rb#127 +# source://puma//lib/puma/configuration.rb#128 class Puma::Configuration # @return [Configuration] a new instance of Configuration # - # source://puma//lib/puma/configuration.rb#176 + # source://puma//lib/puma/configuration.rb#178 def initialize(user_options = T.unsafe(nil), default_options = T.unsafe(nil), env = T.unsafe(nil), &block); end # Load the specified rackup file, pull options from # the rackup file, and set @app. # - # source://puma//lib/puma/configuration.rb#296 + # source://puma//lib/puma/configuration.rb#314 def app; end # Indicate if there is a properly configured app # # @return [Boolean] # - # source://puma//lib/puma/configuration.rb#285 + # source://puma//lib/puma/configuration.rb#303 def app_configured?; end # Call once all configuration (included from rackup files) - # is loaded to flesh out any defaults + # is loaded to finalize defaults and lock in the configuration. + # + # This also calls load if it hasn't been called yet. # - # source://puma//lib/puma/configuration.rb#266 + # source://puma//lib/puma/configuration.rb#279 def clamp; end - # source://puma//lib/puma/configuration.rb#251 + # @raise [NotLoadedError] + # + # source://puma//lib/puma/configuration.rb#260 def config_files; end - # source://puma//lib/puma/configuration.rb#198 + # source://puma//lib/puma/configuration.rb#207 def configure; end # Return which environment we're running in # - # source://puma//lib/puma/configuration.rb#309 + # source://puma//lib/puma/configuration.rb#327 def environment; end - # source://puma//lib/puma/configuration.rb#338 + # Returns the value of attribute events. + # + # source://puma//lib/puma/configuration.rb#199 + def events; end + + # source://puma//lib/puma/configuration.rb#357 def final_options; end - # source://puma//lib/puma/configuration.rb#212 + # source://puma//lib/puma/configuration.rb#221 def flatten; end - # source://puma//lib/puma/configuration.rb#216 + # source://puma//lib/puma/configuration.rb#225 def flatten!; end - # source://puma//lib/puma/configuration.rb#245 + # Returns the value of attribute hooks. + # + # source://puma//lib/puma/configuration.rb#199 + def hooks; end + + # source://puma//lib/puma/configuration.rb#254 def load; end - # source://puma//lib/puma/configuration.rb#313 + # source://puma//lib/puma/configuration.rb#331 def load_plugin(name); end - # Returns the value of attribute options. + # @raise [NotClampedError] # - # source://puma//lib/puma/configuration.rb#196 + # source://puma//lib/puma/configuration.rb#201 def options; end # Returns the value of attribute plugins. # - # source://puma//lib/puma/configuration.rb#196 + # source://puma//lib/puma/configuration.rb#199 def plugins; end - # source://puma//lib/puma/configuration.rb#221 + # source://puma//lib/puma/configuration.rb#230 def puma_default_options(env = T.unsafe(nil)); end - # source://puma//lib/puma/configuration.rb#227 + # source://puma//lib/puma/configuration.rb#236 def puma_options_from_env(env = T.unsafe(nil)); end - # source://puma//lib/puma/configuration.rb#289 + # source://puma//lib/puma/configuration.rb#307 def rackup; end # @param key [:Symbol] hook to run - # @param arg [Launcher, Int] `:on_restart` passes Launcher + # @param arg [Launcher, Int] `:before_restart` passes Launcher # - # source://puma//lib/puma/configuration.rb#320 + # source://puma//lib/puma/configuration.rb#338 def run_hooks(key, arg, log_writer, hook_data = T.unsafe(nil)); end private - # source://puma//lib/puma/configuration.rb#206 + # source://puma//lib/puma/configuration.rb#215 def initialize_copy(other); end - # source://puma//lib/puma/configuration.rb#383 + # source://puma//lib/puma/configuration.rb#408 def load_rackup; end # Load and use the normal Rack builder if we can, otherwise # fallback to our minimal version. # - # source://puma//lib/puma/configuration.rb#363 + # source://puma//lib/puma/configuration.rb#388 def rack_builder; end - # source://puma//lib/puma/configuration.rb#351 + # source://puma//lib/puma/configuration.rb#376 def require_processor_counter; end + # source://puma//lib/puma/configuration.rb#426 + def set_conditional_default_options; end + + # source://puma//lib/puma/configuration.rb#431 + def warn_hooks; end + class << self - # source://puma//lib/puma/configuration.rb#401 + # source://puma//lib/puma/configuration.rb#368 def random_token; end - # source://puma//lib/puma/configuration.rb#342 + # source://puma//lib/puma/configuration.rb#361 def temp_path; end end end # Injects the Configuration object into the env # -# source://puma//lib/puma/configuration.rb#271 +# source://puma//lib/puma/configuration.rb#289 class Puma::Configuration::ConfigMiddleware # @return [ConfigMiddleware] a new instance of ConfigMiddleware # - # source://puma//lib/puma/configuration.rb#272 + # source://puma//lib/puma/configuration.rb#290 def initialize(config, app); end - # source://puma//lib/puma/configuration.rb#277 + # source://puma//lib/puma/configuration.rb#295 def call(env); end end -# source://puma//lib/puma/configuration.rb#128 +# source://puma//lib/puma/configuration.rb#132 Puma::Configuration::DEFAULTS = T.let(T.unsafe(nil), Hash) -# source://puma//lib/puma/client.rb#24 +# source://puma//lib/puma/configuration.rb#130 +class Puma::Configuration::NotClampedError < ::StandardError; end + +# source://puma//lib/puma/configuration.rb#129 +class Puma::Configuration::NotLoadedError < ::StandardError; end + +# source://puma//lib/puma/client.rb#16 class Puma::ConnectionError < ::RuntimeError; end # Frequently used constants when constructing requests or responses. Many times @@ -931,200 +1006,197 @@ module Puma::Const; end # Banned keys of response header # -# source://puma//lib/puma/const.rb#293 +# source://puma//lib/puma/const.rb#292 Puma::Const::BANNED_HEADER_KEY = T.let(T.unsafe(nil), Regexp) -# source://puma//lib/puma/const.rb#224 +# source://puma//lib/puma/const.rb#222 Puma::Const::CGI_VER = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#265 +# source://puma//lib/puma/const.rb#264 Puma::Const::CHUNKED = T.let(T.unsafe(nil), String) # The basic max request size we'll try to read. # -# source://puma//lib/puma/const.rb#140 +# source://puma//lib/puma/const.rb#138 Puma::Const::CHUNK_SIZE = T.let(T.unsafe(nil), Integer) -# source://puma//lib/puma/const.rb#251 +# source://puma//lib/puma/const.rb#250 Puma::Const::CLOSE = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#263 +# source://puma//lib/puma/const.rb#262 Puma::Const::CLOSE_CHUNKED = T.let(T.unsafe(nil), String) # source://puma//lib/puma/const.rb#104 Puma::Const::CODE_NAME = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#267 +# source://puma//lib/puma/const.rb#266 Puma::Const::COLON = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#259 +# source://puma//lib/puma/const.rb#258 Puma::Const::CONNECTION_CLOSE = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#260 +# source://puma//lib/puma/const.rb#259 Puma::Const::CONNECTION_KEEP_ALIVE = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#118 +# source://puma//lib/puma/const.rb#116 Puma::Const::CONTENT_LENGTH = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#254 +# source://puma//lib/puma/const.rb#253 Puma::Const::CONTENT_LENGTH2 = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#255 +# source://puma//lib/puma/const.rb#254 Puma::Const::CONTENT_LENGTH_S = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#245 +# source://puma//lib/puma/const.rb#244 Puma::Const::CONTINUE = T.let(T.unsafe(nil), String) # Illegal character in the key or value of response header # -# source://puma//lib/puma/const.rb#278 +# source://puma//lib/puma/const.rb#277 Puma::Const::DQUOTE = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#275 +# source://puma//lib/puma/const.rb#274 Puma::Const::EARLY_HINTS = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#124 +# source://puma//lib/puma/const.rb#122 Puma::Const::ERROR_RESPONSE = T.let(T.unsafe(nil), Hash) -# source://puma//lib/puma/const.rb#108 -Puma::Const::FAST_TRACK_KA_TIMEOUT = T.let(T.unsafe(nil), Float) - -# source://puma//lib/puma/const.rb#223 +# source://puma//lib/puma/const.rb#221 Puma::Const::GATEWAY_INTERFACE = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#227 +# source://puma//lib/puma/const.rb#225 Puma::Const::HALT_COMMAND = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#150 +# source://puma//lib/puma/const.rb#148 Puma::Const::HEAD = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#272 +# source://puma//lib/puma/const.rb#271 Puma::Const::HIJACK = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#273 +# source://puma//lib/puma/const.rb#272 Puma::Const::HIJACK_IO = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#271 +# source://puma//lib/puma/const.rb#270 Puma::Const::HIJACK_P = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#237 +# source://puma//lib/puma/const.rb#236 Puma::Const::HTTP = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#238 +# source://puma//lib/puma/const.rb#237 Puma::Const::HTTPS = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#240 +# source://puma//lib/puma/const.rb#239 Puma::Const::HTTPS_KEY = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#249 +# source://puma//lib/puma/const.rb#248 Puma::Const::HTTP_10_200 = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#220 +# source://puma//lib/puma/const.rb#218 Puma::Const::HTTP_11 = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#247 +# source://puma//lib/puma/const.rb#246 Puma::Const::HTTP_11_100 = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#248 +# source://puma//lib/puma/const.rb#247 Puma::Const::HTTP_11_200 = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#243 +# source://puma//lib/puma/const.rb#242 Puma::Const::HTTP_CONNECTION = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#244 +# source://puma//lib/puma/const.rb#243 Puma::Const::HTTP_EXPECT = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#279 +# source://puma//lib/puma/const.rb#278 Puma::Const::HTTP_HEADER_DELIMITER = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#210 +# source://puma//lib/puma/const.rb#208 Puma::Const::HTTP_HOST = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#242 +# source://puma//lib/puma/const.rb#241 Puma::Const::HTTP_VERSION = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#203 +# source://puma//lib/puma/const.rb#201 Puma::Const::HTTP_X_FORWARDED_FOR = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#206 +# source://puma//lib/puma/const.rb#204 Puma::Const::HTTP_X_FORWARDED_PROTO = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#205 +# source://puma//lib/puma/const.rb#203 Puma::Const::HTTP_X_FORWARDED_SCHEME = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#204 +# source://puma//lib/puma/const.rb#202 Puma::Const::HTTP_X_FORWARDED_SSL = T.let(T.unsafe(nil), String) # list from https://www.iana.org/assignments/http-methods/http-methods.xhtml # as of 04-May-23 # -# source://puma//lib/puma/const.rb#158 +# source://puma//lib/puma/const.rb#156 Puma::Const::IANA_HTTP_METHODS = T.let(T.unsafe(nil), Array) -# source://puma//lib/puma/const.rb#280 +# source://puma//lib/puma/const.rb#279 Puma::Const::ILLEGAL_HEADER_KEY_REGEX = T.let(T.unsafe(nil), Regexp) # header values can contain HTAB? # -# source://puma//lib/puma/const.rb#282 +# source://puma//lib/puma/const.rb#281 Puma::Const::ILLEGAL_HEADER_VALUE_REGEX = T.let(T.unsafe(nil), Regexp) -# source://puma//lib/puma/const.rb#252 +# source://puma//lib/puma/const.rb#251 Puma::Const::KEEP_ALIVE = T.let(T.unsafe(nil), String) # ETag is based on the apache standard of hex mtime-size-inode (inode is 0 on win32) # -# source://puma//lib/puma/const.rb#201 +# source://puma//lib/puma/const.rb#199 Puma::Const::LINE_END = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#213 +# source://puma//lib/puma/const.rb#211 Puma::Const::LOCALHOST = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#214 +# source://puma//lib/puma/const.rb#212 Puma::Const::LOCALHOST_IPV4 = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#215 +# source://puma//lib/puma/const.rb#213 Puma::Const::LOCALHOST_IPV6 = T.let(T.unsafe(nil), String) # Maximum request body size before it is moved out of memory and into a tempfile for reading. # -# source://puma//lib/puma/const.rb#147 +# source://puma//lib/puma/const.rb#145 Puma::Const::MAX_BODY = T.let(T.unsafe(nil), Integer) # This is the maximum header that is allowed before a client is booted. The parser detects # this, but we'd also like to do this as well. # -# source://puma//lib/puma/const.rb#144 +# source://puma//lib/puma/const.rb#142 Puma::Const::MAX_HEADER = T.let(T.unsafe(nil), Integer) -# source://puma//lib/puma/const.rb#269 +# source://puma//lib/puma/const.rb#268 Puma::Const::NEWLINE = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#120 +# source://puma//lib/puma/const.rb#118 Puma::Const::PATH_INFO = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#212 +# source://puma//lib/puma/const.rb#210 Puma::Const::PORT_443 = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#211 +# source://puma//lib/puma/const.rb#209 Puma::Const::PORT_80 = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#295 +# source://puma//lib/puma/const.rb#294 Puma::Const::PROXY_PROTOCOL_V1_REGEX = T.let(T.unsafe(nil), Regexp) -# source://puma//lib/puma/const.rb#234 +# source://puma//lib/puma/const.rb#233 Puma::Const::PUMA_CONFIG = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#235 +# source://puma//lib/puma/const.rb#234 Puma::Const::PUMA_PEERCERT = T.let(T.unsafe(nil), String) # source://puma//lib/puma/const.rb#106 Puma::Const::PUMA_SERVER_STRING = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#233 +# source://puma//lib/puma/const.rb#232 Puma::Const::PUMA_SOCKET = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#122 +# source://puma//lib/puma/const.rb#120 Puma::Const::PUMA_TMP_BASE = T.let(T.unsafe(nil), String) # source://puma//lib/puma/const.rb#103 @@ -1132,100 +1204,103 @@ Puma::Const::PUMA_VERSION = T.let(T.unsafe(nil), String) # All constants are prefixed with `PIPE_` to avoid name collisions. # -# source://puma//lib/puma/const.rb#298 +# source://puma//lib/puma/const.rb#297 module Puma::Const::PipeRequest; end -# source://puma//lib/puma/const.rb#300 +# source://puma//lib/puma/const.rb#299 Puma::Const::PipeRequest::PIPE_BOOT = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#302 +# source://puma//lib/puma/const.rb#301 Puma::Const::PipeRequest::PIPE_EXTERNAL_TERM = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#301 +# source://puma//lib/puma/const.rb#300 Puma::Const::PipeRequest::PIPE_FORK = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#305 +# source://puma//lib/puma/const.rb#304 Puma::Const::PipeRequest::PIPE_IDLE = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#304 +# source://puma//lib/puma/const.rb#303 Puma::Const::PipeRequest::PIPE_PING = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#303 +# source://puma//lib/puma/const.rb#302 Puma::Const::PipeRequest::PIPE_TERM = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#299 +# source://puma//lib/puma/const.rb#298 Puma::Const::PipeRequest::PIPE_WAKEUP = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#117 +# source://puma//lib/puma/const.rb#115 Puma::Const::QUERY_STRING = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#232 +# source://puma//lib/puma/const.rb#230 Puma::Const::RACK_AFTER_REPLY = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#230 +# source://puma//lib/puma/const.rb#228 Puma::Const::RACK_INPUT = T.let(T.unsafe(nil), String) # source://puma//lib/puma/const.rb#231 +Puma::Const::RACK_RESPONSE_FINISHED = T.let(T.unsafe(nil), String) + +# source://puma//lib/puma/const.rb#229 Puma::Const::RACK_URL_SCHEME = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#202 +# source://puma//lib/puma/const.rb#200 Puma::Const::REMOTE_ADDR = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#149 +# source://puma//lib/puma/const.rb#147 Puma::Const::REQUEST_METHOD = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#116 +# source://puma//lib/puma/const.rb#114 Puma::Const::REQUEST_PATH = T.let(T.unsafe(nil), String) # The original URI requested by the client. # -# source://puma//lib/puma/const.rb#115 +# source://puma//lib/puma/const.rb#113 Puma::Const::REQUEST_URI = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#228 +# source://puma//lib/puma/const.rb#226 Puma::Const::RESTART_COMMAND = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#208 +# source://puma//lib/puma/const.rb#206 Puma::Const::SERVER_NAME = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#209 +# source://puma//lib/puma/const.rb#207 Puma::Const::SERVER_PORT = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#219 +# source://puma//lib/puma/const.rb#217 Puma::Const::SERVER_PROTOCOL = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#222 +# source://puma//lib/puma/const.rb#220 Puma::Const::SERVER_SOFTWARE = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#226 +# source://puma//lib/puma/const.rb#224 Puma::Const::STOP_COMMAND = T.let(T.unsafe(nil), String) # based on https://www.rfc-editor.org/rfc/rfc9110.html#name-overview, # with CONNECT removed, and PATCH added # -# source://puma//lib/puma/const.rb#154 +# source://puma//lib/puma/const.rb#152 Puma::Const::SUPPORTED_HTTP_METHODS = T.let(T.unsafe(nil), Array) -# source://puma//lib/puma/const.rb#256 +# source://puma//lib/puma/const.rb#255 Puma::Const::TRANSFER_ENCODING = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#257 +# source://puma//lib/puma/const.rb#256 Puma::Const::TRANSFER_ENCODING2 = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#262 +# source://puma//lib/puma/const.rb#261 Puma::Const::TRANSFER_ENCODING_CHUNKED = T.let(T.unsafe(nil), String) # The keys of headers that should not be convert to underscore # normalized versions. These headers are ignored at the request reading layer, # but if we normalize them after reading, it's just confusing for the application. # -# source://puma//lib/puma/const.rb#287 +# source://puma//lib/puma/const.rb#286 Puma::Const::UNMASKABLE_HEADERS = T.let(T.unsafe(nil), Hash) -# source://puma//lib/puma/const.rb#216 +# source://puma//lib/puma/const.rb#214 Puma::Const::UNSPECIFIED_IPV4 = T.let(T.unsafe(nil), String) -# source://puma//lib/puma/const.rb#217 +# source://puma//lib/puma/const.rb#215 Puma::Const::UNSPECIFIED_IPV6 = T.let(T.unsafe(nil), String) # source://puma//lib/puma/const.rb#103 @@ -1234,7 +1309,7 @@ Puma::Const::VERSION = T.let(T.unsafe(nil), String) # How long to wait when getting some write blocking on the socket when # sending data back # -# source://puma//lib/puma/const.rb#112 +# source://puma//lib/puma/const.rb#110 Puma::Const::WRITE_TIMEOUT = T.let(T.unsafe(nil), Integer) # The methods that are available for use inside the configuration file. @@ -1246,7 +1321,7 @@ Puma::Const::WRITE_TIMEOUT = T.let(T.unsafe(nil), Integer) # config = Configuration.new({}) do |user_config| # user_config.port 3001 # end -# config.load +# config.clamp # # puts config.options[:binds] # => "tcp://127.0.0.1:3001" # @@ -1258,7 +1333,7 @@ Puma::Const::WRITE_TIMEOUT = T.let(T.unsafe(nil), Integer) # Resulting configuration: # # config = Configuration.new(config_file: "puma_config.rb") -# config.load +# config.clamp # # puts config.options[:binds] # => "tcp://127.0.0.1:3002" # @@ -1276,11 +1351,6 @@ Puma::Const::WRITE_TIMEOUT = T.let(T.unsafe(nil), Integer) # # The following hooks have been updated: # -# | DSL Method | Options Key | Fork Block Location | -# | on_worker_boot | :before_worker_boot | inside, before | -# | on_worker_shutdown | :before_worker_shutdown | inside, after | -# | on_refork | :before_refork | inside | -# | after_refork | :after_refork | inside | # # source://puma//lib/puma/dsl.rb#52 class Puma::DSL @@ -1313,13 +1383,23 @@ class Puma::DSL # source://puma//lib/puma/dsl.rb#220 def activate_control_app(url = T.unsafe(nil), opts = T.unsafe(nil)); end + # Code to run after puma is booted (works for both single and cluster modes). + # + # @example + # after_booted do + # puts 'After booting...' + # end + # + # source://puma//lib/puma/dsl.rb#828 + def after_booted(&block); end + # When `fork_worker` is enabled, code to run in Worker 0 # after all other workers are re-forked from this process, # after the server has temporarily stopped serving requests # (once per complete refork cycle). # # This can be used to re-open any connections to remote servers - # (database, Redis, ...) that were closed via on_refork. + # (database, Redis, ...) that were closed via before_refork. # # This can be called multiple times to add several hooks. # @@ -1329,9 +1409,19 @@ class Puma::DSL # end # @note Cluster mode with `fork_worker` enabled only. # - # source://puma//lib/puma/dsl.rb#879 + # source://puma//lib/puma/dsl.rb#895 def after_refork(key = T.unsafe(nil), &block); end + # Code to run after puma is stopped (works for both: single and clustered) + # + # @example + # after_stopped do + # puts 'After stopping...' + # end + # + # source://puma//lib/puma/dsl.rb#843 + def after_stopped(&block); end + # Code to run in the master after a worker has been started. The worker's # index is passed as an argument. # @@ -1343,7 +1433,7 @@ class Puma::DSL # end # @note Cluster mode only. # - # source://puma//lib/puma/dsl.rb#806 + # source://puma//lib/puma/dsl.rb#819 def after_worker_boot(&block); end # Code to run in the master after a worker has been started. The worker's @@ -1357,7 +1447,7 @@ class Puma::DSL # end # @note Cluster mode only. # - # source://puma//lib/puma/dsl.rb#806 + # source://puma//lib/puma/dsl.rb#815 def after_worker_fork(&block); end # Use an object or block as the rack application. This allows the @@ -1396,9 +1486,131 @@ class Puma::DSL # end # @note Cluster mode only. # - # source://puma//lib/puma/dsl.rb#731 + # source://puma//lib/puma/dsl.rb#736 def before_fork(&block); end + # When `fork_worker` is enabled, code to run in Worker 0 + # before all other workers are re-forked from this process, + # after the server has temporarily stopped serving requests + # (once per complete refork cycle). + # + # This can be used to trigger extra garbage-collection to maximize + # copy-on-write efficiency, or close any connections to remote servers + # (database, Redis, ...) that were opened while the server was running. + # + # This can be called multiple times to add several hooks. + # + # @example + # before_refork do + # 3.times {GC.start} + # end + # @note Cluster mode with `fork_worker` enabled only. + # @version 5.0.0 + # + # source://puma//lib/puma/dsl.rb#870 + def before_refork(key = T.unsafe(nil), &block); end + + # Code to run before doing a restart. This code should + # close log files, database connections, etc. + # + # This can be called multiple times to add code each time. + # + # @example + # before_restart do + # puts 'On restart...' + # end + # + # source://puma//lib/puma/dsl.rb#444 + def before_restart(&block); end + + # Provide a block to be executed after a thread is trimmed from the thread + # pool. Be careful: while this block executes, Puma's main loop is + # blocked, so no new requests will be picked up. + # + # This hook only runs when a thread in the threadpool is trimmed by Puma. + # It does not run when a thread dies due to exceptions or any other cause. + # + # Return values are ignored. + # Raising an exception will log a warning. + # + # This hook is useful for cleaning up thread local resources when a thread + # is trimmed. + # + # This can be called multiple times to add several hooks. + # + # @example + # before_thread_exit do + # puts 'On thread exit...' + # end + # + # source://puma//lib/puma/dsl.rb#944 + def before_thread_exit(&block); end + + # Provide a block to be executed just before a thread is added to the thread + # pool. Be careful: while the block executes, thread creation is delayed, and + # probably a request will have to wait too! The new thread will not be added to + # the threadpool until the provided block returns. + # + # Return values are ignored. + # Raising an exception will log a warning. + # + # This hook is useful for doing something when the thread pool grows. + # + # This can be called multiple times to add several hooks. + # + # @example + # before_thread_start do + # puts 'On thread start...' + # end + # + # source://puma//lib/puma/dsl.rb#916 + def before_thread_start(&block); end + + # Code to run in a worker when it boots to setup + # the process before booting the app. + # + # This can be called multiple times to add several hooks. + # + # @example + # before_worker_boot do + # puts 'Before worker boot...' + # end + # @note Cluster mode only. + # + # source://puma//lib/puma/dsl.rb#752 + def before_worker_boot(key = T.unsafe(nil), &block); end + + # Code to run in the master right before a worker is started. The worker's + # index is passed as an argument. + # + # This can be called multiple times to add several hooks. + # + # @example + # before_worker_fork do + # puts 'Before worker fork...' + # end + # @note Cluster mode only. + # + # source://puma//lib/puma/dsl.rb#795 + def before_worker_fork(&block); end + + # Code to run immediately before a worker shuts + # down (after it has finished processing HTTP requests). The worker's + # index is passed as an argument. These hooks + # can block if necessary to wait for background operations unknown + # to Puma to finish before the process terminates. + # + # This can be called multiple times to add several hooks. + # + # @example + # before_worker_shutdown do + # puts 'On worker shutdown...' + # end + # @note Cluster mode only. + # + # source://puma//lib/puma/dsl.rb#775 + def before_worker_shutdown(key = T.unsafe(nil), &block); end + # Bind the server to +url+. "tcp://", "unix://" and "ssl://" are the only # accepted protocols. Multiple urls can be bound to, calling +bind+ does # not overwrite previous bindings. @@ -1456,15 +1668,16 @@ class Puma::DSL # source://puma//lib/puma/dsl.rb#318 def bind_to_activated_sockets(bind = T.unsafe(nil)); end - # Work around leaky apps that leave garbage in Thread locals - # across requests. + # Use a clean fiber per request which ensures a clean slate for fiber + # locals and fiber storage. Also provides a cleaner backtrace with less + # Puma internal stack frames. # # The default is +false+. # # @example - # clean_thread_locals + # fiber_per_request # - # source://puma//lib/puma/dsl.rb#381 + # source://puma//lib/puma/dsl.rb#386 def clean_thread_locals(which = T.unsafe(nil)); end # source://puma//lib/puma/dsl.rb#291 @@ -1475,7 +1688,7 @@ class Puma::DSL # @example # custom_logger Logger.new('t.log') # - # source://puma//lib/puma/dsl.rb#492 + # source://puma//lib/puma/dsl.rb#499 def custom_logger(custom_logger); end # Show debugging info @@ -1485,7 +1698,7 @@ class Puma::DSL # @example # debug # - # source://puma//lib/puma/dsl.rb#503 + # source://puma//lib/puma/dsl.rb#510 def debug; end # source://puma//lib/puma/dsl.rb#157 @@ -1498,7 +1711,7 @@ class Puma::DSL # @example # directory '/u/apps/lolcat' # - # source://puma//lib/puma/dsl.rb#949 + # source://puma//lib/puma/dsl.rb#973 def directory(dir); end # When shutting down, drain the accept socket of pending connections and @@ -1507,7 +1720,7 @@ class Puma::DSL # # @see Puma::Server#graceful_shutdown # - # source://puma//lib/puma/dsl.rb#391 + # source://puma//lib/puma/dsl.rb#394 def drain_on_shutdown(which = T.unsafe(nil)); end # Enable HTTP 103 Early Hints responses. @@ -1517,7 +1730,7 @@ class Puma::DSL # @example # early_hints # - # source://puma//lib/puma/dsl.rb#533 + # source://puma//lib/puma/dsl.rb#540 def early_hints(answer = T.unsafe(nil)); end # When `true`, keep-alive connections are maintained on inbound requests. @@ -1542,7 +1755,7 @@ class Puma::DSL # @example # enable_keep_alives false # - # source://puma//lib/puma/dsl.rb#1314 + # source://puma//lib/puma/dsl.rb#1343 def enable_keep_alives(enabled = T.unsafe(nil)); end # Set the environment in which the rack's app will run. The value must be @@ -1553,7 +1766,7 @@ class Puma::DSL # @example # environment 'production' # - # source://puma//lib/puma/dsl.rb#403 + # source://puma//lib/puma/dsl.rb#406 def environment(environment); end # When using prune_bundler, if extra runtime dependencies need to be loaded to @@ -1569,9 +1782,21 @@ class Puma::DSL # extra_runtime_dependencies ['puma_worker_killer', 'puma-heroku'] # @see Puma::Launcher#extra_runtime_deps_directories # - # source://puma//lib/puma/dsl.rb#1035 + # source://puma//lib/puma/dsl.rb#1059 def extra_runtime_dependencies(answer = T.unsafe(nil)); end + # Use a clean fiber per request which ensures a clean slate for fiber + # locals and fiber storage. Also provides a cleaner backtrace with less + # Puma internal stack frames. + # + # The default is +false+. + # + # @example + # fiber_per_request + # + # source://puma//lib/puma/dsl.rb#382 + def fiber_per_request(which = T.unsafe(nil)); end + # Define how long the tcp socket stays open, if no data has been received. # # The default is 30 seconds. @@ -1594,7 +1819,7 @@ class Puma::DSL # # @see Puma::Server#graceful_shutdown # - # source://puma//lib/puma/dsl.rb#418 + # source://puma//lib/puma/dsl.rb#421 def force_shutdown_after(val = T.unsafe(nil)); end # When enabled, workers will be forked from worker 0 instead of from the master process. @@ -1607,10 +1832,10 @@ class Puma::DSL # A refork will automatically trigger once after the specified number of requests # (default 1000), or pass 0 to disable auto refork. # + # @note This is experimental. # @note Cluster mode only. - # @version 5.0.0 # - # source://puma//lib/puma/dsl.rb#1276 + # source://puma//lib/puma/dsl.rb#1297 def fork_worker(after_requests = T.unsafe(nil)); end # source://puma//lib/puma/dsl.rb#165 @@ -1629,7 +1854,7 @@ class Puma::DSL # @example # http_content_length_limit 2_000_000_000 # - # source://puma//lib/puma/dsl.rb#1362 + # source://puma//lib/puma/dsl.rb#1391 def http_content_length_limit(limit); end # If a new request is not received within this number of seconds, begin shutting down. @@ -1661,7 +1886,7 @@ class Puma::DSL # # @see https://github.com/socketry/nio4r/blob/master/lib/nio/selector.rb # - # source://puma//lib/puma/dsl.rb#1333 + # source://puma//lib/puma/dsl.rb#1362 def io_selector_backend(backend); end # Load additional configuration from a file. @@ -1673,7 +1898,7 @@ class Puma::DSL # source://puma//lib/puma/dsl.rb#251 def load(file); end - # source://puma//lib/puma/dsl.rb#553 + # source://puma//lib/puma/dsl.rb#560 def log_formatter(&block); end # Enable request logging, the inverse of `quiet`. @@ -1683,7 +1908,7 @@ class Puma::DSL # @example # log_requests # - # source://puma//lib/puma/dsl.rb#483 + # source://puma//lib/puma/dsl.rb#490 def log_requests(which = T.unsafe(nil)); end # Use +obj+ or +block+ as the low level error handler. This allows the @@ -1694,19 +1919,25 @@ class Puma::DSL # [200, {}, ["error page"]] # end # - # source://puma//lib/puma/dsl.rb#975 + # source://puma//lib/puma/dsl.rb#999 def lowlevel_error_handler(obj = T.unsafe(nil), &block); end - # The number of requests to attempt inline before sending a client back to - # the reactor to be subject to normal ordering. + # @deprecated Use {#max_keep_alive} instead. # - # The default is 10. + # source://puma//lib/puma/dsl.rb#1303 + def max_fast_inline(num_of_requests); end + + # The number of requests a keep-alive client can submit before being closed. + # Note that some applications (server to server) may benefit from a very high + # number or Float::INFINITY. + # + # The default is 999. # # @example - # max_fast_inline 20 + # max_keep_alive 20 # - # source://puma//lib/puma/dsl.rb#1288 - def max_fast_inline(num_of_requests); end + # source://puma//lib/puma/dsl.rb#1317 + def max_keep_alive(num_of_requests); end # Ensures +STDOUT+ and +STDERR+ is immediately flushed to the underlying # operating system and is not buffered internally @@ -1716,17 +1947,17 @@ class Puma::DSL # @example # mutate_stdout_and_stderr_to_sync_on_write false # - # source://puma//lib/puma/dsl.rb#1345 + # source://puma//lib/puma/dsl.rb#1374 def mutate_stdout_and_stderr_to_sync_on_write(enabled = T.unsafe(nil)); end - # Code to run after puma is booted (works for both: single and clustered) + # Code to run after puma is booted (works for both single and cluster modes). # # @example - # on_booted do + # after_booted do # puts 'After booting...' # end # - # source://puma//lib/puma/dsl.rb#821 + # source://puma//lib/puma/dsl.rb#834 def on_booted(&block); end # When `fork_worker` is enabled, code to run in Worker 0 @@ -1741,13 +1972,13 @@ class Puma::DSL # This can be called multiple times to add several hooks. # # @example - # on_refork do + # before_refork do # 3.times {GC.start} # end # @note Cluster mode with `fork_worker` enabled only. # @version 5.0.0 # - # source://puma//lib/puma/dsl.rb#856 + # source://puma//lib/puma/dsl.rb#876 def on_refork(key = T.unsafe(nil), &block); end # Code to run before doing a restart. This code should @@ -1756,21 +1987,21 @@ class Puma::DSL # This can be called multiple times to add code each time. # # @example - # on_restart do + # before_restart do # puts 'On restart...' # end # - # source://puma//lib/puma/dsl.rb#441 + # source://puma//lib/puma/dsl.rb#450 def on_restart(&block); end # Code to run after puma is stopped (works for both: single and clustered) # # @example - # on_stopped do + # after_stopped do # puts 'After stopping...' # end # - # source://puma//lib/puma/dsl.rb#832 + # source://puma//lib/puma/dsl.rb#848 def on_stopped(&block); end # Provide a block to be executed after a thread is trimmed from the thread @@ -1789,11 +2020,11 @@ class Puma::DSL # This can be called multiple times to add several hooks. # # @example - # on_thread_exit do + # before_thread_exit do # puts 'On thread exit...' # end # - # source://puma//lib/puma/dsl.rb#924 + # source://puma//lib/puma/dsl.rb#950 def on_thread_exit(&block); end # Provide a block to be executed just before a thread is added to the thread @@ -1809,11 +2040,11 @@ class Puma::DSL # This can be called multiple times to add several hooks. # # @example - # on_thread_start do + # before_thread_start do # puts 'On thread start...' # end # - # source://puma//lib/puma/dsl.rb#900 + # source://puma//lib/puma/dsl.rb#922 def on_thread_start(&block); end # Code to run in a worker when it boots to setup @@ -1822,12 +2053,12 @@ class Puma::DSL # This can be called multiple times to add several hooks. # # @example - # on_worker_boot do + # before_worker_boot do # puts 'Before worker boot...' # end # @note Cluster mode only. # - # source://puma//lib/puma/dsl.rb#749 + # source://puma//lib/puma/dsl.rb#758 def on_worker_boot(key = T.unsafe(nil), &block); end # Code to run in the master right before a worker is started. The worker's @@ -1836,12 +2067,12 @@ class Puma::DSL # This can be called multiple times to add several hooks. # # @example - # on_worker_fork do + # before_worker_fork do # puts 'Before worker fork...' # end # @note Cluster mode only. # - # source://puma//lib/puma/dsl.rb#788 + # source://puma//lib/puma/dsl.rb#801 def on_worker_fork(&block); end # Code to run immediately before a worker shuts @@ -1853,12 +2084,12 @@ class Puma::DSL # This can be called multiple times to add several hooks. # # @example - # on_worker_shutdown do + # before_worker_shutdown do # puts 'On worker shutdown...' # end # @note Cluster mode only. # - # source://puma//lib/puma/dsl.rb#770 + # source://puma//lib/puma/dsl.rb#781 def on_worker_shutdown(key = T.unsafe(nil), &block); end # Code to run out-of-band when the worker is idle. @@ -1871,7 +2102,7 @@ class Puma::DSL # # This can be called multiple times to add several hooks. # - # source://puma//lib/puma/dsl.rb#938 + # source://puma//lib/puma/dsl.rb#962 def out_of_band(&block); end # Define how long persistent connections can be idle before Puma closes them. @@ -1890,7 +2121,7 @@ class Puma::DSL # @example # pidfile '/u/apps/lolcat/tmp/pids/puma.pid' # - # source://puma//lib/puma/dsl.rb#461 + # source://puma//lib/puma/dsl.rb#468 def pidfile(path); end # Load the named plugin for use by this configuration. @@ -1911,8 +2142,8 @@ class Puma::DSL # source://puma//lib/puma/dsl.rb#329 def port(port, host = T.unsafe(nil)); end - # Preload the application before starting the workers; this conflicts with - # phased restart feature. + # Preload the application before forking the workers; this conflicts with + # the phased restart feature. # # The default is +true+ if your app uses more than 1 worker. # @@ -1920,7 +2151,7 @@ class Puma::DSL # preload_app! # @note Cluster mode only. # - # source://puma//lib/puma/dsl.rb#963 + # source://puma//lib/puma/dsl.rb#987 def preload_app!(answer = T.unsafe(nil)); end # This option is used to allow your app and its gems to be @@ -1940,7 +2171,7 @@ class Puma::DSL # @note This is only supported for RubyGems 2.2+ # @see extra_runtime_dependencies # - # source://puma//lib/puma/dsl.rb#999 + # source://puma//lib/puma/dsl.rb#1023 def prune_bundler(answer = T.unsafe(nil)); end # When set to true, workers accept all requests @@ -1961,7 +2192,7 @@ class Puma::DSL # # @see Puma::Server # - # source://puma//lib/puma/dsl.rb#1173 + # source://puma//lib/puma/dsl.rb#1197 def queue_requests(answer = T.unsafe(nil)); end # Disable request logging, the inverse of `log_requests`. @@ -1971,14 +2202,14 @@ class Puma::DSL # @example # quiet # - # source://puma//lib/puma/dsl.rb#472 + # source://puma//lib/puma/dsl.rb#479 def quiet(which = T.unsafe(nil)); end # Allows setting `env['rack.url_scheme']`. # Only necessary if X-Forwarded-Proto is not being set by your proxy # Normal values are 'http' or 'https'. # - # source://puma//lib/puma/dsl.rb#522 + # source://puma//lib/puma/dsl.rb#529 def rack_url_scheme(scheme = T.unsafe(nil)); end # Load +path+ as a rackup file. @@ -1988,7 +2219,7 @@ class Puma::DSL # @example # rackup '/u/apps/lolcat/config.ru' # - # source://puma//lib/puma/dsl.rb#514 + # source://puma//lib/puma/dsl.rb#521 def rackup(path); end # Raises a SignalException when SIGTERM is received. In environments where @@ -2004,7 +2235,7 @@ class Puma::DSL # @see Puma::Launcher#setup_signals # @see Puma::Cluster#setup_signals # - # source://puma//lib/puma/dsl.rb#1017 + # source://puma//lib/puma/dsl.rb#1041 def raise_exception_on_sigterm(answer = T.unsafe(nil)); end # Command to use to restart Puma. This should be just how to @@ -2014,7 +2245,7 @@ class Puma::DSL # @example # restart_command '/u/app/lolcat/bin/restart_puma' # - # source://puma//lib/puma/dsl.rb#452 + # source://puma//lib/puma/dsl.rb#459 def restart_command(cmd); end # source://puma//lib/puma/dsl.rb#153 @@ -2050,14 +2281,14 @@ class Puma::DSL # @example # set_remote_address :localhost # - # source://puma//lib/puma/dsl.rb#1233 + # source://puma//lib/puma/dsl.rb#1255 def set_remote_address(val = T.unsafe(nil)); end # When a shutdown is requested, the backtraces of all the # threads will be written to $stdout. This can help figure # out why shutdown is hanging. # - # source://puma//lib/puma/dsl.rb#1181 + # source://puma//lib/puma/dsl.rb#1205 def shutdown_debug(val = T.unsafe(nil)); end # Disable warning message when running single mode with callback hook defined. @@ -2067,7 +2298,7 @@ class Puma::DSL # @example # silence_fork_callback_warning # - # source://puma//lib/puma/dsl.rb#711 + # source://puma//lib/puma/dsl.rb#716 def silence_fork_callback_warning; end # Disable warning message when running in cluster mode with a single worker. @@ -2089,7 +2320,7 @@ class Puma::DSL # silence_single_worker_warning # @note Cluster mode only. # - # source://puma//lib/puma/dsl.rb#700 + # source://puma//lib/puma/dsl.rb#705 def silence_single_worker_warning; end # Instead of using +bind+ and manually constructing a URI like: @@ -2138,7 +2369,7 @@ class Puma::DSL # verify_mode: verify_mode # default 'none' # } # - # source://puma//lib/puma/dsl.rb#637 + # source://puma//lib/puma/dsl.rb#644 def ssl_bind(host, port, opts = T.unsafe(nil)); end # Use +path+ as the file to store the server info state. This is @@ -2147,16 +2378,15 @@ class Puma::DSL # @example # state_path '/u/apps/lolcat/tmp/pids/puma.state' # - # source://puma//lib/puma/dsl.rb#648 + # source://puma//lib/puma/dsl.rb#655 def state_path(path); end # Use +permission+ to restrict permissions for the state file. # # @example # state_permission 0600 - # @version 5.0.0 # - # source://puma//lib/puma/dsl.rb#659 + # source://puma//lib/puma/dsl.rb#664 def state_permission(permission); end # Redirect +STDOUT+ and +STDERR+ to files specified. The +append+ parameter @@ -2169,7 +2399,7 @@ class Puma::DSL # @example # stdout_redirect '/app/lolcat/log/stdout', '/app/lolcat/log/stderr', true # - # source://puma//lib/puma/dsl.rb#547 + # source://puma//lib/puma/dsl.rb#554 def stdout_redirect(stdout = T.unsafe(nil), stderr = T.unsafe(nil), append = T.unsafe(nil)); end # Supported http methods, which will replace `Puma::Const::SUPPORTED_HTTP_METHODS`. @@ -2192,7 +2422,7 @@ class Puma::DSL # @note If the `methods` value is `:any`, no method check with be performed, # similar to Puma v5 and earlier. # - # source://puma//lib/puma/dsl.rb#1387 + # source://puma//lib/puma/dsl.rb#1416 def supported_http_methods(methods); end # Additional text to display in process listing. @@ -2207,7 +2437,7 @@ class Puma::DSL # @example # tag '' # - # source://puma//lib/puma/dsl.rb#1051 + # source://puma//lib/puma/dsl.rb#1075 def tag(string); end # Configure the number of threads to use to answer requests. @@ -2226,7 +2456,7 @@ class Puma::DSL # @example # threads 5, 5 # - # source://puma//lib/puma/dsl.rb#573 + # source://puma//lib/puma/dsl.rb#580 def threads(min, max = T.unsafe(nil)); end # Attempts to route traffic to less-busy workers by causing them to delay @@ -2239,9 +2469,8 @@ class Puma::DSL # # @see Puma::Server#handle_servers # @see Puma::ThreadPool#wait_for_less_busy_worker - # @version 5.0.0 # - # source://puma//lib/puma/dsl.rb#1199 + # source://puma//lib/puma/dsl.rb#1221 def wait_for_less_busy_worker(val = T.unsafe(nil)); end # Change the default worker timeout for booting. @@ -2253,7 +2482,7 @@ class Puma::DSL # @note Cluster mode only. # @see Puma::Cluster::Worker#ping_timeout # - # source://puma//lib/puma/dsl.rb#1108 + # source://puma//lib/puma/dsl.rb#1132 def worker_boot_timeout(timeout); end # Change the default interval for checking workers. @@ -2265,7 +2494,7 @@ class Puma::DSL # @note Cluster mode only. # @see Puma::Cluster#check_workers # - # source://puma//lib/puma/dsl.rb#1066 + # source://puma//lib/puma/dsl.rb#1090 def worker_check_interval(interval); end # Set the strategy for worker culling. @@ -2284,19 +2513,19 @@ class Puma::DSL # @note Cluster mode only. # @see Puma::Cluster#cull_workers # - # source://puma//lib/puma/dsl.rb#1145 + # source://puma//lib/puma/dsl.rb#1169 def worker_culling_strategy(strategy); end # Set the timeout for worker shutdown. # - # The default is 60 seconds. + # The default is 30 seconds. # # @example # worker_shutdown_timeout 90 # @note Cluster mode only. # @see Puma::Cluster::Worker#term # - # source://puma//lib/puma/dsl.rb#1123 + # source://puma//lib/puma/dsl.rb#1147 def worker_shutdown_timeout(timeout); end # Verifies that all workers have checked in to the master process within @@ -2313,7 +2542,7 @@ class Puma::DSL # @note Cluster mode only. # @see Puma::Cluster::Worker#ping_timeout # - # source://puma//lib/puma/dsl.rb#1086 + # source://puma//lib/puma/dsl.rb#1110 def worker_timeout(timeout); end # How many worker processes to run. Typically this is set to @@ -2327,7 +2556,7 @@ class Puma::DSL # @note Cluster mode only. # @see Puma::Cluster # - # source://puma//lib/puma/dsl.rb#676 + # source://puma//lib/puma/dsl.rb#681 def workers(count); end private @@ -2335,14 +2564,13 @@ class Puma::DSL # To avoid adding cert_pem and key_pem as URI params, we store them on the # options[:store] from where Puma binder knows how to find and extract them. # - # source://puma//lib/puma/dsl.rb#1403 + # source://puma//lib/puma/dsl.rb#1432 def add_pem_values_to_options_store(opts); end - # source://puma//lib/puma/dsl.rb#1419 - def process_hook(options_key, key, block, meth); end - - # source://puma//lib/puma/dsl.rb#1430 - def warn_if_in_single_mode(hook_name); end + # @raise [ArgumentError] + # + # source://puma//lib/puma/dsl.rb#1448 + def process_hook(options_key, key, block, cluster_only: T.unsafe(nil)); end class << self # Convenience method so logic can be used in CI. @@ -2399,12 +2627,12 @@ class Puma::ErrorLogger # source://puma//lib/puma/error_logger.rb#73 def request_dump(req); end - # source://puma//lib/puma/error_logger.rb#89 + # source://puma//lib/puma/error_logger.rb#91 def request_headers(req); end # @return [Boolean] # - # source://puma//lib/puma/error_logger.rb#94 + # source://puma//lib/puma/error_logger.rb#96 def request_parsed?(req); end # source://puma//lib/puma/error_logger.rb#78 @@ -2415,7 +2643,7 @@ class Puma::ErrorLogger private - # source://puma//lib/puma/error_logger.rb#98 + # source://puma//lib/puma/error_logger.rb#100 def internal_write(str); end class << self @@ -2431,7 +2659,7 @@ Puma::ErrorLogger::LOG_QUEUE = T.let(T.unsafe(nil), Thread::Queue) Puma::ErrorLogger::REQUEST_FORMAT = T.let(T.unsafe(nil), String) # This is an event sink used by `Puma::Server` to handle -# lifecycle events such as :on_booted, :on_restart, and :on_stopped. +# lifecycle events such as :after_booted, :before_restart, and :after_stopped. # Using `Puma::DSL` it is possible to register callback hooks # for each event type. # @@ -2442,28 +2670,28 @@ class Puma::Events # source://puma//lib/puma/events.rb#11 def initialize; end + # source://puma//lib/puma/events.rb#33 + def after_booted(&block); end + + # source://puma//lib/puma/events.rb#41 + def after_stopped(&block); end + + # source://puma//lib/puma/events.rb#37 + def before_restart(&block); end + # Fire callbacks for the named hook # # source://puma//lib/puma/events.rb#16 def fire(hook, *args); end # source://puma//lib/puma/events.rb#45 - def fire_on_booted!; end - - # source://puma//lib/puma/events.rb#49 - def fire_on_restart!; end + def fire_after_booted!; end # source://puma//lib/puma/events.rb#53 - def fire_on_stopped!; end - - # source://puma//lib/puma/events.rb#33 - def on_booted(&block); end - - # source://puma//lib/puma/events.rb#37 - def on_restart(&block); end + def fire_after_stopped!; end - # source://puma//lib/puma/events.rb#41 - def on_stopped(&block); end + # source://puma//lib/puma/events.rb#49 + def fire_before_restart!; end # Register a callback for a given hook # @@ -2498,20 +2726,34 @@ Puma::HAS_UNIX_SOCKET = T.let(T.unsafe(nil), TrueClass) Puma::HTTP_STATUS_CODES = T.let(T.unsafe(nil), Hash) class Puma::HttpParser + # source://puma//lib/puma.rb#12 def initialize; end + # source://puma//lib/puma.rb#12 def body; end + + # source://puma//lib/puma.rb#12 def error?; end + + # source://puma//lib/puma.rb#12 def execute(_arg0, _arg1, _arg2); end + + # source://puma//lib/puma.rb#12 def finish; end + + # source://puma//lib/puma.rb#12 def finished?; end + + # source://puma//lib/puma.rb#12 def nread; end + + # source://puma//lib/puma.rb#12 def reset; end end class Puma::HttpParserError < ::StandardError; end -# source://puma//lib/puma/client.rb#26 +# source://puma//lib/puma/client.rb#18 class Puma::HttpParserError501 < ::IOError; end # source://puma//lib/puma/io_buffer.rb#6 @@ -2521,9 +2763,13 @@ class Puma::IOBuffer < ::StringIO # source://puma//lib/puma/io_buffer.rb#7 def initialize; end + # Ruby 3+ + # StringIO.new.write("a", "b") # => 2 + # + # source://puma//lib/puma/io_buffer.rb#47 def append(*_arg0); end - # source://puma//lib/puma/io_buffer.rb#15 + # source://puma//lib/puma/io_buffer.rb#35 def clear; end # @return [Boolean] @@ -2545,6 +2791,9 @@ class Puma::IOBuffer < ::StringIO def to_s; end end +# source://puma//lib/puma/detect.rb#21 +Puma::IS_ARM = T.let(T.unsafe(nil), FalseClass) + # source://puma//lib/puma/detect.rb#13 Puma::IS_JRUBY = T.let(T.unsafe(nil), FalseClass) @@ -2553,7 +2802,7 @@ Puma::IS_LINUX = T.let(T.unsafe(nil), FalseClass) # @version 5.2.0 # -# source://puma//lib/puma/detect.rb#22 +# source://puma//lib/puma/detect.rb#24 Puma::IS_MRI = T.let(T.unsafe(nil), TrueClass) # source://puma//lib/puma/detect.rb#15 @@ -2625,12 +2874,15 @@ class Puma::Launcher # # +conf+ A Puma::Configuration object indicating how to run the server. # - # +launcher_args+ A Hash that currently has one required key `:events`, - # this is expected to hold an object similar to an `Puma::LogWriter.stdio`, - # this object will be responsible for broadcasting Puma's internal state - # to a logging destination. An optional key `:argv` can be supplied, - # this should be an array of strings, these arguments are re-used when - # restarting the puma server. + # +launcher_args+ A Hash that has a few optional keys. + # - +:log_writer+:: Expected to hold an object similar to `Puma::LogWriter.stdio`. + # This object will be responsible for broadcasting Puma's internal state + # to a logging destination. + # - +:events+:: Expected to hold an object similar to `Puma::Events`. + # - +:argv+:: Expected to be an array of strings. + # - +:env+:: Expected to hold a hash of environment variables. + # + # These arguments are re-used when restarting the puma server. # # Examples: # @@ -2644,172 +2896,172 @@ class Puma::Launcher # # @return [Launcher] a new instance of Launcher # - # source://puma//lib/puma/launcher.rb#41 + # source://puma//lib/puma/launcher.rb#44 def initialize(conf, launcher_args = T.unsafe(nil)); end # Returns the value of attribute binder. # - # source://puma//lib/puma/launcher.rb#113 + # source://puma//lib/puma/launcher.rb#112 def binder; end - # source://puma//lib/puma/launcher.rb#225 + # source://puma//lib/puma/launcher.rb#224 def close_binder_listeners; end # Returns the value of attribute config. # - # source://puma//lib/puma/launcher.rb#113 + # source://puma//lib/puma/launcher.rb#112 def config; end # Return all tcp ports the launcher may be using, TCP or SSL # # @version 5.0.0 # - # source://puma//lib/puma/launcher.rb#211 + # source://puma//lib/puma/launcher.rb#210 def connected_ports; end # Delete the configured pidfile # - # source://puma//lib/puma/launcher.rb#141 + # source://puma//lib/puma/launcher.rb#140 def delete_pidfile; end # Returns the value of attribute events. # - # source://puma//lib/puma/launcher.rb#113 + # source://puma//lib/puma/launcher.rb#112 def events; end # Begin async shutdown of the server # - # source://puma//lib/puma/launcher.rb#147 + # source://puma//lib/puma/launcher.rb#146 def halt; end # Returns the value of attribute log_writer. # - # source://puma//lib/puma/launcher.rb#113 + # source://puma//lib/puma/launcher.rb#112 def log_writer; end # Returns the value of attribute options. # - # source://puma//lib/puma/launcher.rb#113 + # source://puma//lib/puma/launcher.rb#112 def options; end # Begin a phased restart if supported # - # source://puma//lib/puma/launcher.rb#165 + # source://puma//lib/puma/launcher.rb#164 def phased_restart; end # Begin a refork if supported # - # source://puma//lib/puma/launcher.rb#181 + # source://puma//lib/puma/launcher.rb#180 def refork; end # Begin async restart of the server # - # source://puma//lib/puma/launcher.rb#159 + # source://puma//lib/puma/launcher.rb#158 def restart; end - # source://puma//lib/puma/launcher.rb#216 + # source://puma//lib/puma/launcher.rb#215 def restart_args; end # Returns the value of attribute restart_dir. # - # source://puma//lib/puma/launcher.rb#113 + # source://puma//lib/puma/launcher.rb#112 def restart_dir; end # Run the server. This blocks until the server is stopped # - # source://puma//lib/puma/launcher.rb#192 + # source://puma//lib/puma/launcher.rb#191 def run; end # Return stats about the server # - # source://puma//lib/puma/launcher.rb#116 + # source://puma//lib/puma/launcher.rb#115 def stats; end # Begin async shutdown of the server gracefully # - # source://puma//lib/puma/launcher.rb#153 + # source://puma//lib/puma/launcher.rb#152 def stop; end # @version 5.0.0 # - # source://puma//lib/puma/launcher.rb#236 + # source://puma//lib/puma/launcher.rb#235 def thread_status; end # Write a state file that can be used by pumactl to control # the server # - # source://puma//lib/puma/launcher.rb#122 + # source://puma//lib/puma/launcher.rb#121 def write_state; end private # @return [Boolean] # - # source://puma//lib/puma/launcher.rb#337 + # source://puma//lib/puma/launcher.rb#336 def clustered?; end - # source://puma//lib/puma/launcher.rb#274 + # source://puma//lib/puma/launcher.rb#273 def do_forceful_stop; end - # source://puma//lib/puma/launcher.rb#279 + # source://puma//lib/puma/launcher.rb#278 def do_graceful_stop; end - # source://puma//lib/puma/launcher.rb#284 + # source://puma//lib/puma/launcher.rb#283 def do_restart(previous_env); end - # source://puma//lib/puma/launcher.rb#261 + # source://puma//lib/puma/launcher.rb#260 def do_run_finished(previous_env); end - # source://puma//lib/puma/launcher.rb#363 + # source://puma//lib/puma/launcher.rb#362 def environment; end - # source://puma//lib/puma/launcher.rb#376 + # source://puma//lib/puma/launcher.rb#375 def generate_restart_data; end - # source://puma//lib/puma/launcher.rb#249 + # source://puma//lib/puma/launcher.rb#248 def get_env; end - # source://puma//lib/puma/launcher.rb#333 + # source://puma//lib/puma/launcher.rb#332 def log(str); end - # source://puma//lib/puma/launcher.rb#488 + # source://puma//lib/puma/launcher.rb#487 def log_config; end - # source://puma//lib/puma/launcher.rb#371 + # source://puma//lib/puma/launcher.rb#370 def prune_bundler!; end # @return [Boolean] # - # source://puma//lib/puma/launcher.rb#367 + # source://puma//lib/puma/launcher.rb#366 def prune_bundler?; end - # source://puma//lib/puma/launcher.rb#329 + # source://puma//lib/puma/launcher.rb#328 def reload_worker_directory; end - # source://puma//lib/puma/launcher.rb#291 + # source://puma//lib/puma/launcher.rb#290 def restart!; end - # source://puma//lib/puma/launcher.rb#346 + # source://puma//lib/puma/launcher.rb#345 def set_process_title; end - # source://puma//lib/puma/launcher.rb#357 + # source://puma//lib/puma/launcher.rb#356 def set_rack_environment; end - # source://puma//lib/puma/launcher.rb#421 + # source://puma//lib/puma/launcher.rb#420 def setup_signals; end - # source://puma//lib/puma/launcher.rb#351 + # source://puma//lib/puma/launcher.rb#350 def title; end # @raise [UnsupportedOption] # - # source://puma//lib/puma/launcher.rb#341 + # source://puma//lib/puma/launcher.rb#340 def unsupported(str); end # If configured, write the pid of the current process out # to a file. # - # source://puma//lib/puma/launcher.rb#319 + # source://puma//lib/puma/launcher.rb#318 def write_pid; end end @@ -3007,109 +3259,110 @@ end # source://puma//lib/puma/minissl.rb#14 module Puma::MiniSSL class << self + # source://puma//lib/puma.rb#12 def check; end end end -# source://puma//lib/puma/minissl.rb#208 +# source://puma//lib/puma/minissl.rb#207 class Puma::MiniSSL::Context # @return [Context] a new instance of Context # - # source://puma//lib/puma/minissl.rb#212 + # source://puma//lib/puma/minissl.rb#211 def initialize; end # Returns the value of attribute ca. # - # source://puma//lib/puma/minissl.rb#288 + # source://puma//lib/puma/minissl.rb#287 def ca; end - # source://puma//lib/puma/minissl.rb#311 + # source://puma//lib/puma/minissl.rb#310 def ca=(ca); end # Returns the value of attribute cert. # - # source://puma//lib/puma/minissl.rb#287 + # source://puma//lib/puma/minissl.rb#286 def cert; end - # source://puma//lib/puma/minissl.rb#306 + # source://puma//lib/puma/minissl.rb#305 def cert=(cert); end # Returns the value of attribute cert_pem. # - # source://puma//lib/puma/minissl.rb#289 + # source://puma//lib/puma/minissl.rb#288 def cert_pem; end # @raise [ArgumentError] # - # source://puma//lib/puma/minissl.rb#316 + # source://puma//lib/puma/minissl.rb#315 def cert_pem=(cert_pem); end - # source://puma//lib/puma/minissl.rb#326 + # source://puma//lib/puma/minissl.rb#325 def check; end # @raise [ArgumentError] # - # source://puma//lib/puma/minissl.rb#224 + # source://puma//lib/puma/minissl.rb#223 def check_file(file, desc); end # non-jruby Context properties # - # source://puma//lib/puma/minissl.rb#285 + # source://puma//lib/puma/minissl.rb#284 def key; end - # source://puma//lib/puma/minissl.rb#297 + # source://puma//lib/puma/minissl.rb#296 def key=(key); end # Executes the command to return the password needed to decrypt the key. # - # source://puma//lib/puma/minissl.rb#332 + # source://puma//lib/puma/minissl.rb#331 def key_password; end # Returns the value of attribute key_password_command. # - # source://puma//lib/puma/minissl.rb#286 + # source://puma//lib/puma/minissl.rb#285 def key_password_command; end - # source://puma//lib/puma/minissl.rb#302 + # source://puma//lib/puma/minissl.rb#301 def key_password_command=(key_password_command); end # Returns the value of attribute key_pem. # - # source://puma//lib/puma/minissl.rb#290 + # source://puma//lib/puma/minissl.rb#289 def key_pem; end # @raise [ArgumentError] # - # source://puma//lib/puma/minissl.rb#321 + # source://puma//lib/puma/minissl.rb#320 def key_pem=(key_pem); end # Returns the value of attribute no_tlsv1. # - # source://puma//lib/puma/minissl.rb#210 + # source://puma//lib/puma/minissl.rb#209 def no_tlsv1; end # disables TLSv1 # # @raise [ArgumentError] # - # source://puma//lib/puma/minissl.rb#374 + # source://puma//lib/puma/minissl.rb#373 def no_tlsv1=(tlsv1); end # Returns the value of attribute no_tlsv1_1. # - # source://puma//lib/puma/minissl.rb#210 + # source://puma//lib/puma/minissl.rb#209 def no_tlsv1_1; end # disables TLSv1 and TLSv1.1. Overrides `#no_tlsv1=` # # @raise [ArgumentError] # - # source://puma//lib/puma/minissl.rb#381 + # source://puma//lib/puma/minissl.rb#380 def no_tlsv1_1=(tlsv1_1); end # Returns the value of attribute reuse. # - # source://puma//lib/puma/minissl.rb#295 + # source://puma//lib/puma/minissl.rb#294 def reuse; end # Controls session reuse. Allowed values are as follows: @@ -3121,65 +3374,65 @@ class Puma::MiniSSL::Context # * 's' - where s is an integer strings for size. # * ',t' - where t is an integer strings for timeout. # - # source://puma//lib/puma/minissl.rb#351 + # source://puma//lib/puma/minissl.rb#350 def reuse=(reuse_str); end # Returns the value of attribute reuse_cache_size. # - # source://puma//lib/puma/minissl.rb#295 + # source://puma//lib/puma/minissl.rb#294 def reuse_cache_size; end # Returns the value of attribute reuse_timeout. # - # source://puma//lib/puma/minissl.rb#295 + # source://puma//lib/puma/minissl.rb#294 def reuse_timeout; end # Returns the value of attribute ssl_cipher_filter. # - # source://puma//lib/puma/minissl.rb#291 + # source://puma//lib/puma/minissl.rb#290 def ssl_cipher_filter; end # Sets the attribute ssl_cipher_filter # # @param value the value to set the attribute ssl_cipher_filter to. # - # source://puma//lib/puma/minissl.rb#291 + # source://puma//lib/puma/minissl.rb#290 def ssl_cipher_filter=(_arg0); end # Returns the value of attribute ssl_ciphersuites. # - # source://puma//lib/puma/minissl.rb#292 + # source://puma//lib/puma/minissl.rb#291 def ssl_ciphersuites; end # Sets the attribute ssl_ciphersuites # # @param value the value to set the attribute ssl_ciphersuites to. # - # source://puma//lib/puma/minissl.rb#292 + # source://puma//lib/puma/minissl.rb#291 def ssl_ciphersuites=(_arg0); end # Returns the value of attribute verification_flags. # - # source://puma//lib/puma/minissl.rb#293 + # source://puma//lib/puma/minissl.rb#292 def verification_flags; end # Sets the attribute verification_flags # # @param value the value to set the attribute verification_flags to. # - # source://puma//lib/puma/minissl.rb#293 + # source://puma//lib/puma/minissl.rb#292 def verification_flags=(_arg0); end # Returns the value of attribute verify_mode. # - # source://puma//lib/puma/minissl.rb#209 + # source://puma//lib/puma/minissl.rb#208 def verify_mode; end # Sets the attribute verify_mode # # @param value the value to set the attribute verify_mode to. # - # source://puma//lib/puma/minissl.rb#209 + # source://puma//lib/puma/minissl.rb#208 def verify_mode=(_arg0); end end @@ -3207,17 +3460,35 @@ class Puma::MiniSSL::ContextBuilder end class Puma::MiniSSL::Engine + # source://puma//lib/puma.rb#12 def extract; end + + # source://puma//lib/puma.rb#12 def init?; end + + # source://puma//lib/puma.rb#12 def inject(_arg0); end + + # source://puma//lib/puma.rb#12 def peercert; end + + # source://puma//lib/puma.rb#12 def read; end + + # source://puma//lib/puma.rb#12 def shutdown; end + + # source://puma//lib/puma.rb#12 def ssl_vers_st; end + + # source://puma//lib/puma.rb#12 def write(_arg0); end class << self + # source://puma//lib/puma.rb#12 def client; end + + # source://puma//lib/puma.rb#12 def server(_arg0); end end end @@ -3237,6 +3508,7 @@ Puma::MiniSSL::OPENSSL_NO_TLS1_1 = T.let(T.unsafe(nil), FalseClass) Puma::MiniSSL::OPENSSL_VERSION = T.let(T.unsafe(nil), String) class Puma::MiniSSL::SSLContext + # source://puma//lib/puma.rb#12 def initialize(_arg0); end end @@ -3244,33 +3516,33 @@ end # without ssl support, as Server and Reactor use it in rescue statements. class Puma::MiniSSL::SSLError < ::StandardError; end -# source://puma//lib/puma/minissl.rb#418 +# source://puma//lib/puma/minissl.rb#417 class Puma::MiniSSL::Server # @return [Server] a new instance of Server # - # source://puma//lib/puma/minissl.rb#419 + # source://puma//lib/puma/minissl.rb#418 def initialize(socket, ctx); end - # source://puma//lib/puma/minissl.rb#425 + # source://puma//lib/puma/minissl.rb#424 def accept; end - # source://puma//lib/puma/minissl.rb#432 + # source://puma//lib/puma/minissl.rb#431 def accept_nonblock; end # @version 5.0.0 # - # source://puma//lib/puma/minissl.rb#446 + # source://puma//lib/puma/minissl.rb#445 def addr; end - # source://puma//lib/puma/minissl.rb#450 + # source://puma//lib/puma/minissl.rb#449 def close; end # @return [Boolean] # - # source://puma//lib/puma/minissl.rb#454 + # source://puma//lib/puma/minissl.rb#453 def closed?; end - # source://puma//lib/puma/minissl.rb#440 + # source://puma//lib/puma/minissl.rb#439 def to_io; end end @@ -3281,7 +3553,7 @@ class Puma::MiniSSL::Socket # source://puma//lib/puma/minissl.rb#23 def initialize(socket, engine); end - # source://puma//lib/puma/minissl.rb#120 + # source://puma//lib/puma/minissl.rb#144 def <<(data); end # source://puma//lib/puma/minissl.rb#167 @@ -3298,7 +3570,7 @@ class Puma::MiniSSL::Socket # source://puma//lib/puma/minissl.rb#163 def flush; end - # source://puma//lib/puma/minissl.rb#183 + # source://puma//lib/puma/minissl.rb#182 def peeraddr; end # OpenSSL is loaded in `MiniSSL::ContextBuilder` when @@ -3308,7 +3580,7 @@ class Puma::MiniSSL::Socket # # @return [OpenSSL::X509::Certificate, nil] # - # source://puma//lib/puma/minissl.rb#193 + # source://puma//lib/puma/minissl.rb#192 def peercert; end # source://puma//lib/puma/minissl.rb#85 @@ -3329,7 +3601,7 @@ class Puma::MiniSSL::Socket # source://puma//lib/puma/minissl.rb#48 def ssl_version_state; end - # source://puma//lib/puma/minissl.rb#120 + # source://puma//lib/puma/minissl.rb#143 def syswrite(data); end # source://puma//lib/puma/minissl.rb#31 @@ -3366,16 +3638,16 @@ end # https://github.com/openssl/openssl/blob/master/include/openssl/x509_vfy.h.in # /* Certificate verify flags */ # -# source://puma//lib/puma/minissl.rb#394 +# source://puma//lib/puma/minissl.rb#393 Puma::MiniSSL::VERIFICATION_FLAGS = T.let(T.unsafe(nil), Hash) -# source://puma//lib/puma/minissl.rb#390 +# source://puma//lib/puma/minissl.rb#389 Puma::MiniSSL::VERIFY_FAIL_IF_NO_PEER_CERT = T.let(T.unsafe(nil), Integer) -# source://puma//lib/puma/minissl.rb#388 +# source://puma//lib/puma/minissl.rb#387 Puma::MiniSSL::VERIFY_NONE = T.let(T.unsafe(nil), Integer) -# source://puma//lib/puma/minissl.rb#389 +# source://puma//lib/puma/minissl.rb#388 Puma::MiniSSL::VERIFY_PEER = T.let(T.unsafe(nil), Integer) # Provides an IO-like object that always appears to contain no data. @@ -3541,40 +3813,57 @@ class Puma::Reactor # # @return [Reactor] a new instance of Reactor # - # source://puma//lib/puma/reactor.rb#21 + # source://puma//lib/puma/reactor.rb#27 def initialize(backend, &block); end # Add a new client to monitor. # The object must respond to #timeout and #timeout_at. # Returns false if the reactor is already shut down. # - # source://puma//lib/puma/reactor.rb#49 + # source://puma//lib/puma/reactor.rb#57 def add(client); end + # Maximum number of clients in the selector. Reset with calls to `Server.stats`. + # + # source://puma//lib/puma/reactor.rb#21 + def reactor_max; end + + # Sets the attribute reactor_max + # + # @param value the value to set the attribute reactor_max to. + # + # source://puma//lib/puma/reactor.rb#21 + def reactor_max=(_arg0); end + + # Returns the value of attribute reactor_size. + # + # source://puma//lib/puma/reactor.rb#22 + def reactor_size; end + # Run the internal select loop, using a background thread by default. # - # source://puma//lib/puma/reactor.rb#35 + # source://puma//lib/puma/reactor.rb#43 def run(background = T.unsafe(nil)); end # Shutdown the reactor, blocking until the background thread is finished. # - # source://puma//lib/puma/reactor.rb#58 + # source://puma//lib/puma/reactor.rb#66 def shutdown; end private # Start monitoring the object. # - # source://puma//lib/puma/reactor.rb#109 + # source://puma//lib/puma/reactor.rb#121 def register(client); end - # source://puma//lib/puma/reactor.rb#69 + # source://puma//lib/puma/reactor.rb#77 def select_loop; end # 'Wake up' a monitored object by calling the provided block. # Stop monitoring the object if the block returns `true`. # - # source://puma//lib/puma/reactor.rb#118 + # source://puma//lib/puma/reactor.rb#132 def wakeup!(client); end end @@ -3594,7 +3883,7 @@ module Puma::Request # @param env [Hash] see Puma::Client#env, from request # @return [Puma::Const::PORT_443, Puma::Const::PORT_80] # - # source://puma//lib/puma/request.rb#272 + # source://puma//lib/puma/request.rb#279 def default_server_port(env); end # Takes the request contained in +client+, invokes the Rack application to construct @@ -3626,7 +3915,7 @@ module Puma::Request # @param client [Puma::Client] # @return [Boolean, :async] keep-alive status or `:async` # - # source://puma//lib/puma/request.rb#156 + # source://puma//lib/puma/request.rb#171 def prepare_response(status, headers, res_body, requests, client); end private @@ -3641,7 +3930,7 @@ module Puma::Request # @param chunked [Boolean] # @raise [ConnectionError] # - # source://puma//lib/puma/request.rb#316 + # source://puma//lib/puma/request.rb#323 def fast_write_response(socket, body, io_buffer, chunked, content_length); end # Used to write 'early hints', 'no body' responses, 'hijacked' responses, @@ -3654,25 +3943,25 @@ module Puma::Request # @param str [String] the string written to the io # @raise [ConnectionError] # - # source://puma//lib/puma/request.rb#289 + # source://puma//lib/puma/request.rb#296 def fast_write_str(socket, str); end # @param status [Integer] status from the app # @return [String] the text description from Puma::HTTP_STATUS_CODES # - # source://puma//lib/puma/request.rb#571 + # source://puma//lib/puma/request.rb#578 def fetch_status_code(status); end # @param header_key [#to_s] # @return [Boolean] # - # source://puma//lib/puma/request.rb#484 + # source://puma//lib/puma/request.rb#491 def illegal_header_key?(header_key); end # @param header_value [#to_s] # @return [Boolean] # - # source://puma//lib/puma/request.rb#491 + # source://puma//lib/puma/request.rb#498 def illegal_header_value?(header_value); end # Given a Hash +env+ for the request read from +client+, add @@ -3681,7 +3970,7 @@ module Puma::Request # @param env [Hash] see Puma::Client#env, from request # @param client [Puma::Client] only needed for Client#peerip # - # source://puma//lib/puma/request.rb#407 + # source://puma//lib/puma/request.rb#414 def normalize_env(env, client); end # Fixup any headers with `,` in the name to have `_` now. We emit @@ -3697,7 +3986,7 @@ module Puma::Request # @param env [Hash] see Puma::Client#env, from request, modifies in place # @version 5.0.3 # - # source://puma//lib/puma/request.rb#510 + # source://puma//lib/puma/request.rb#517 def req_env_post_parse(env); end # Used in the lambda for env[ `Puma::Const::EARLY_HINTS` ] @@ -3706,7 +3995,7 @@ module Puma::Request # @return [String] # @version 5.0.3 # - # source://puma//lib/puma/request.rb#550 + # source://puma//lib/puma/request.rb#557 def str_early_hints(headers); end # Processes and write headers to the IOBuffer. @@ -3718,11 +4007,11 @@ module Puma::Request # response body # @param io_buffer [Puma::IOBuffer] modified inn place # @param force_keep_alive [Boolean] 'anded' with keep_alive, based on system - # status and `@max_fast_inline` + # status and `@max_keep_alive` # @return [Hash] resp_info # @version 5.0.3 # - # source://puma//lib/puma/request.rb#588 + # source://puma//lib/puma/request.rb#595 def str_headers(env, status, headers, res_body, io_buffer, force_keep_alive); end end @@ -3764,29 +4053,29 @@ class Puma::Runner # source://puma//lib/puma/runner.rb#14 def initialize(launcher); end - # source://puma//lib/puma/runner.rb#179 + # source://puma//lib/puma/runner.rb#170 def app; end # @version 5.0.0 # - # source://puma//lib/puma/runner.rb#92 + # source://puma//lib/puma/runner.rb#91 def close_control_listeners; end - # source://puma//lib/puma/runner.rb#60 + # source://puma//lib/puma/runner.rb#59 def debug(str); end # @return [Boolean] # - # source://puma//lib/puma/runner.rb#39 + # source://puma//lib/puma/runner.rb#38 def development?; end - # source://puma//lib/puma/runner.rb#56 + # source://puma//lib/puma/runner.rb#55 def error(str); end - # source://puma//lib/puma/runner.rb#162 + # source://puma//lib/puma/runner.rb#153 def load_and_bind; end - # source://puma//lib/puma/runner.rb#47 + # source://puma//lib/puma/runner.rb#46 def log(str); end # Returns the hash of configuration options. @@ -3796,55 +4085,53 @@ class Puma::Runner # source://puma//lib/puma/runner.rb#28 def options; end - # source://puma//lib/puma/runner.rb#112 + # source://puma//lib/puma/runner.rb#95 def output_header(mode); end - # source://puma//lib/puma/runner.rb#135 + # source://puma//lib/puma/runner.rb#126 def redirect_io; end # @return [Boolean] # - # source://puma//lib/puma/runner.rb#131 + # source://puma//lib/puma/runner.rb#122 def redirected_io?; end - # @deprecated Use `RUBY_DESCRIPTION` instead - # - # source://puma//lib/puma/runner.rb#98 - def ruby_engine; end - - # source://puma//lib/puma/runner.rb#64 + # source://puma//lib/puma/runner.rb#63 def start_control; end - # source://puma//lib/puma/runner.rb#183 + # source://puma//lib/puma/runner.rb#174 def start_server; end # @version 5.0.0 # - # source://puma//lib/puma/runner.rb#52 + # source://puma//lib/puma/runner.rb#51 def stop_control; end # @return [Boolean] # - # source://puma//lib/puma/runner.rb#43 + # source://puma//lib/puma/runner.rb#42 def test?; end # source://puma//lib/puma/runner.rb#30 def wakeup!; end + # source://puma//lib/puma/runner.rb#114 + def warn_ruby_mn_threads; end + private # this method call should always be guarded by `@log_writer.debug?` # - # source://puma//lib/puma/runner.rb#214 + # source://puma//lib/puma/runner.rb#205 def debug_loaded_extensions(str); end - # source://puma//lib/puma/runner.rb#190 + # source://puma//lib/puma/runner.rb#181 def ensure_output_directory_exists(path, io_name); end - # source://puma//lib/puma/runner.rb#200 + # source://puma//lib/puma/runner.rb#191 def stats; end - # source://puma//lib/puma/runner.rb#196 + # source://puma//lib/puma/runner.rb#187 def utc_iso8601(val); end end @@ -3886,141 +4173,141 @@ class Puma::Server # calling code to not require events.rb. # @return [Server] a new instance of Server # - # source://puma//lib/puma/server.rb#71 + # source://puma//lib/puma/server.rb#79 def initialize(app, events = T.unsafe(nil), options = T.unsafe(nil)); end - # source://puma//lib/puma/server.rb#674 + # source://puma//lib/puma/server.rb#706 def add_ssl_listener(host, port, ctx, optimize_for_latency = T.unsafe(nil), backlog = T.unsafe(nil)); end - # source://puma//lib/puma/server.rb#670 + # source://puma//lib/puma/server.rb#702 def add_tcp_listener(host, port, optimize_for_latency = T.unsafe(nil), backlog = T.unsafe(nil)); end - # source://puma//lib/puma/server.rb#679 + # source://puma//lib/puma/server.rb#711 def add_unix_listener(path, umask = T.unsafe(nil), mode = T.unsafe(nil), backlog = T.unsafe(nil)); end # Returns the value of attribute app. # - # source://puma//lib/puma/server.rb#50 + # source://puma//lib/puma/server.rb#58 def app; end # Sets the attribute app # # @param value the value to set the attribute app to. # - # source://puma//lib/puma/server.rb#50 + # source://puma//lib/puma/server.rb#58 def app=(_arg0); end # @todo the following may be deprecated in the future # - # source://puma//lib/puma/server.rb#46 + # source://puma//lib/puma/server.rb#54 def auto_trim_time; end - # source://puma//lib/puma/server.rb#214 + # source://puma//lib/puma/server.rb#227 def backlog; end - # source://puma//lib/puma/server.rb#642 + # source://puma//lib/puma/server.rb#658 def begin_restart(sync = T.unsafe(nil)); end # Returns the value of attribute binder. # - # source://puma//lib/puma/server.rb#51 + # source://puma//lib/puma/server.rb#59 def binder; end # Sets the attribute binder # # @param value the value to set the attribute binder to. # - # source://puma//lib/puma/server.rb#51 + # source://puma//lib/puma/server.rb#59 def binder=(_arg0); end - # source://puma//lib/puma/server.rb#237 + # source://puma//lib/puma/server.rb#249 def busy_threads; end # Handle various error types thrown by Client I/O operations. # - # source://puma//lib/puma/server.rb#536 + # source://puma//lib/puma/server.rb#553 def client_error(e, client, requests = T.unsafe(nil)); end # @return [Boolean] # - # source://puma//lib/puma/server.rb#208 + # source://puma//lib/puma/server.rb#221 def closed_socket?(socket); end - # source://puma//lib/puma/server.rb#684 + # source://puma//lib/puma/server.rb#716 def connected_ports; end # 6 == Socket::IPPROTO_TCP # 3 == TCP_CORK # 1/0 == turn on/off # - # source://puma//lib/puma/server.rb#181 + # source://puma//lib/puma/server.rb#195 def cork_socket(socket); end # @todo the following may be deprecated in the future # - # source://puma//lib/puma/server.rb#46 + # source://puma//lib/puma/server.rb#54 def early_hints; end # Returns the value of attribute events. # - # source://puma//lib/puma/server.rb#41 + # source://puma//lib/puma/server.rb#49 def events; end # @todo the following may be deprecated in the future # - # source://puma//lib/puma/server.rb#46 + # source://puma//lib/puma/server.rb#54 def first_data_timeout; end # Wait for all outstanding requests to finish. # - # source://puma//lib/puma/server.rb#585 + # source://puma//lib/puma/server.rb#602 def graceful_shutdown; end - # source://puma//lib/puma/server.rb#637 + # source://puma//lib/puma/server.rb#653 def halt(sync = T.unsafe(nil)); end - # source://puma//lib/puma/server.rb#418 + # source://puma//lib/puma/server.rb#446 def handle_check; end - # source://puma//lib/puma/server.rb#320 + # source://puma//lib/puma/server.rb#332 def handle_servers; end - # source://puma//lib/puma/server.rb#130 + # source://puma//lib/puma/server.rb#146 def inherit_binder(bind); end # @todo the following may be deprecated in the future # - # source://puma//lib/puma/server.rb#46 + # source://puma//lib/puma/server.rb#54 def leak_stack_on_error; end # Returns the value of attribute log_writer. # - # source://puma//lib/puma/server.rb#40 + # source://puma//lib/puma/server.rb#48 def log_writer; end # A fallback rack response if +@app+ raises as exception. # - # source://puma//lib/puma/server.rb#558 + # source://puma//lib/puma/server.rb#575 def lowlevel_error(e, env, status = T.unsafe(nil)); end # for #stats # - # source://puma//lib/puma/server.rb#42 + # source://puma//lib/puma/server.rb#50 def max_threads; end # for #stats # - # source://puma//lib/puma/server.rb#42 + # source://puma//lib/puma/server.rb#50 def min_threads; end # Returns the value of attribute options. # - # source://puma//lib/puma/server.rb#38 + # source://puma//lib/puma/server.rb#46 def options; end # @todo the following may be deprecated in the future # - # source://puma//lib/puma/server.rb#46 + # source://puma//lib/puma/server.rb#54 def persistent_timeout; end # This number represents the number of requests that @@ -4031,7 +4318,7 @@ class Puma::Server # a request. If one request comes in, then the # value would be 4 until it finishes processing. # - # source://puma//lib/puma/server.rb#232 + # source://puma//lib/puma/server.rb#244 def pool_capacity; end # Given a connection on +client+, handle the incoming requests, @@ -4045,7 +4332,7 @@ class Puma::Server # # Return true if one or more requests were processed. # - # source://puma//lib/puma/server.rb#446 + # source://puma//lib/puma/server.rb#474 def process_client(client); end # This method is called from the Reactor thread when a queued Client receives data, @@ -4074,34 +4361,37 @@ class Puma::Server # (return `false`). When the client sends more data to the socket the `Puma::Client` object # will wake up and again be checked to see if it's ready to be passed to the thread pool. # - # source://puma//lib/puma/server.rb#304 + # source://puma//lib/puma/server.rb#316 def reactor_wakeup(client); end # @todo the following may be deprecated in the future # - # source://puma//lib/puma/server.rb#46 + # source://puma//lib/puma/server.rb#54 def reaping_time; end # @version 5.0.0 # - # source://puma//lib/puma/server.rb#43 + # source://puma//lib/puma/server.rb#51 def requests_count; end + # source://puma//lib/puma/server.rb#693 + def reset_max; end + # Runs the server. # # If +background+ is true (the default) then a thread is spun # up in the background to handle requests. Otherwise requests # are handled synchronously. # - # source://puma//lib/puma/server.rb#247 + # source://puma//lib/puma/server.rb#259 def run(background = T.unsafe(nil), thread_name: T.unsafe(nil)); end - # source://puma//lib/puma/server.rb#219 + # source://puma//lib/puma/server.rb#232 def running; end # @return [Boolean] # - # source://puma//lib/puma/server.rb#647 + # source://puma//lib/puma/server.rb#663 def shutting_down?; end # Returns a hash of stats about the running server for reporting purposes. @@ -4109,39 +4399,39 @@ class Puma::Server # @return [Hash] hash containing stat info from `Server` and `ThreadPool` # @version 5.0.0 # - # source://puma//lib/puma/server.rb#659 + # source://puma//lib/puma/server.rb#684 def stats; end # Stops the acceptor thread and then causes the worker threads to finish # off the request queue before finally exiting. # - # source://puma//lib/puma/server.rb#632 + # source://puma//lib/puma/server.rb#648 def stop(sync = T.unsafe(nil)); end # Returns the value of attribute thread. # - # source://puma//lib/puma/server.rb#39 + # source://puma//lib/puma/server.rb#47 def thread; end - # source://puma//lib/puma/server.rb#184 + # source://puma//lib/puma/server.rb#198 def uncork_socket(socket); end # Triggers a client timeout if the thread-pool shuts down # during execution of the provided block. # - # source://puma//lib/puma/server.rb#527 + # source://puma//lib/puma/server.rb#544 def with_force_shutdown(client, &block); end private - # source://puma//lib/puma/server.rb#614 + # source://puma//lib/puma/server.rb#631 def notify_safely(message); end - # source://puma//lib/puma/server.rb#577 + # source://puma//lib/puma/server.rb#594 def response_to_error(client, requests, err, status_code); end class << self - # source://puma//lib/puma/server.rb#136 + # source://puma//lib/puma/server.rb#152 def current; end private @@ -4149,22 +4439,28 @@ class Puma::Server # @return [Boolean] # @version 5.0.0 # - # source://puma//lib/puma/server.rb#148 + # source://puma//lib/puma/server.rb#164 def closed_socket_supported?; end # @return [Boolean] # @version 5.0.0 # - # source://puma//lib/puma/server.rb#142 + # source://puma//lib/puma/server.rb#158 def tcp_cork_supported?; end end end +# source://puma//lib/puma/server.rb#35 +module Puma::Server::FiberPerRequest + # source://puma//lib/puma/server.rb#36 + def handle_request(client, requests); end +end + # List of methods invoked by #stats. # # @version 5.0.0 # -# source://puma//lib/puma/server.rb#653 +# source://puma//lib/puma/server.rb#669 Puma::Server::STAT_METHODS = T.let(T.unsafe(nil), Array) # This class is instantiated by the `Puma::Launcher` and used @@ -4218,120 +4514,98 @@ class Puma::ThreadPool # # @return [ThreadPool] a new instance of ThreadPool # - # source://puma//lib/puma/thread_pool.rb#34 + # source://puma//lib/puma/thread_pool.rb#36 def initialize(name, options = T.unsafe(nil), &block); end # Add +work+ to the todo list for a Thread to pickup and process. # - # source://puma//lib/puma/thread_pool.rb#235 + # source://puma//lib/puma/thread_pool.rb#242 def <<(work); end - # source://puma//lib/puma/thread_pool.rb#377 + # source://puma//lib/puma/thread_pool.rb#323 def auto_reap!(timeout = T.unsafe(nil)); end - # source://puma//lib/puma/thread_pool.rb#372 + # source://puma//lib/puma/thread_pool.rb#318 def auto_trim!(timeout = T.unsafe(nil)); end # How many objects have yet to be processed by the pool? # - # source://puma//lib/puma/thread_pool.rb#102 + # source://puma//lib/puma/thread_pool.rb#105 def backlog; end + # The maximum size of the backlog + # + # source://puma//lib/puma/thread_pool.rb#111 + def backlog_max; end + # @version 5.0.0 # - # source://puma//lib/puma/thread_pool.rb#113 + # source://puma//lib/puma/thread_pool.rb#122 def busy_threads; end - # source://puma//lib/puma/thread_pool.rb#107 + # seconds + # + # source://puma//lib/puma/thread_pool.rb#28 + def out_of_band_running; end + + # source://puma//lib/puma/thread_pool.rb#116 def pool_capacity; end # If there are dead threads in the pool make them go away while decreasing # spawned counter so that new healthy threads could be created again. # - # source://puma//lib/puma/thread_pool.rb#330 + # source://puma//lib/puma/thread_pool.rb#276 def reap; end + # source://puma//lib/puma/thread_pool.rb#99 + def reset_max; end + # Tell all threads in the pool to exit and wait for them to finish. # Wait +timeout+ seconds then raise +ForceShutdown+ in remaining threads. # Next, wait an extra +@shutdown_grace_time+ seconds then force-kill remaining # threads. Finally, wait 1 second for remaining threads to exit. # - # source://puma//lib/puma/thread_pool.rb#400 + # source://puma//lib/puma/thread_pool.rb#346 def shutdown(timeout = T.unsafe(nil)); end # Returns the value of attribute spawned. # - # source://puma//lib/puma/thread_pool.rb#80 + # source://puma//lib/puma/thread_pool.rb#82 def spawned; end # generate stats hash so as not to perform multiple locks # # @return [Hash] hash containing stat info from ThreadPool # - # source://puma//lib/puma/thread_pool.rb#90 + # source://puma//lib/puma/thread_pool.rb#86 def stats; end # If there are any free threads in the pool, tell one to go ahead # and exit. If +force+ is true, then a trim request is requested # even if all threads are being utilized. # - # source://puma//lib/puma/thread_pool.rb#318 + # source://puma//lib/puma/thread_pool.rb#264 def trim(force = T.unsafe(nil)); end # Returns the value of attribute trim_requested. # - # source://puma//lib/puma/thread_pool.rb#80 + # source://puma//lib/puma/thread_pool.rb#82 def trim_requested; end - # @version 5.0.0 - # - # source://puma//lib/puma/thread_pool.rb#294 - def wait_for_less_busy_worker(delay_s); end - - # This method is used by `Puma::Server` to let the server know when - # the thread pool can pull more requests from the socket and - # pass to the reactor. - # - # The general idea is that the thread pool can only work on a fixed - # number of requests at the same time. If it is already processing that - # number of requests then it is at capacity. If another Puma process has - # spare capacity, then the request can be left on the socket so the other - # worker can pick it up and process it. - # - # For example: if there are 5 threads, but only 4 working on - # requests, this method will not wait and the `Puma::Server` - # can pull a request right away. - # - # If there are 5 threads and all 5 of them are busy, then it will - # pause here, and wait until the `not_full` condition variable is - # signaled, usually this indicates that a request has been processed. - # - # It's important to note that even though the server might accept another - # request, it might not be added to the `@todo` array right away. - # For example if a slow client has only sent a header, but not a body - # then the `@todo` array would stay the same size as the reactor works - # to try to buffer the request. In that scenario the next call to this - # method would not block and another request would be added into the reactor - # by the server. This would continue until a fully buffered request - # makes it through the reactor and can then be processed by the thread pool. - # - # source://puma//lib/puma/thread_pool.rb#277 - def wait_until_not_full; end - # Returns the value of attribute waiting. # - # source://puma//lib/puma/thread_pool.rb#80 + # source://puma//lib/puma/thread_pool.rb#82 def waiting; end # Allows ThreadPool::ForceShutdown to be raised within the # provided block if the thread is forced to shutdown during execution. # - # source://puma//lib/puma/thread_pool.rb#384 + # source://puma//lib/puma/thread_pool.rb#330 def with_force_shutdown; end # @version 5.0.0 # - # source://puma//lib/puma/thread_pool.rb#228 + # source://puma//lib/puma/thread_pool.rb#235 def with_mutex(&block); end private @@ -4339,37 +4613,32 @@ class Puma::ThreadPool # # Must be called with @mutex held! # - # source://puma//lib/puma/thread_pool.rb#121 + # source://puma//lib/puma/thread_pool.rb#130 def spawn_thread; end - # source://puma//lib/puma/thread_pool.rb#196 + # source://puma//lib/puma/thread_pool.rb#201 def trigger_before_thread_exit_hooks; end - # source://puma//lib/puma/thread_pool.rb#181 + # source://puma//lib/puma/thread_pool.rb#186 def trigger_before_thread_start_hooks; end # @version 5.0.0 # - # source://puma//lib/puma/thread_pool.rb#212 + # source://puma//lib/puma/thread_pool.rb#217 def trigger_out_of_band_hook; end - - class << self - # source://puma//lib/puma/thread_pool.rb#82 - def clean_thread_locals; end - end end -# source://puma//lib/puma/thread_pool.rb#345 +# source://puma//lib/puma/thread_pool.rb#291 class Puma::ThreadPool::Automaton # @return [Automaton] a new instance of Automaton # - # source://puma//lib/puma/thread_pool.rb#346 + # source://puma//lib/puma/thread_pool.rb#292 def initialize(pool, timeout, thread_name, message); end - # source://puma//lib/puma/thread_pool.rb#354 + # source://puma//lib/puma/thread_pool.rb#300 def start!; end - # source://puma//lib/puma/thread_pool.rb#366 + # source://puma//lib/puma/thread_pool.rb#312 def stop; end end @@ -4422,44 +4691,44 @@ class Puma::UnsupportedOption < ::RuntimeError; end # The "default" options can be set via procs. These are resolved during runtime # via calls to `finalize_values` # -# source://puma//lib/puma/configuration.rb#37 +# source://puma//lib/puma/configuration.rb#38 class Puma::UserFileDefaultOptions # @return [UserFileDefaultOptions] a new instance of UserFileDefaultOptions # - # source://puma//lib/puma/configuration.rb#38 + # source://puma//lib/puma/configuration.rb#39 def initialize(user_options, default_options); end - # source://puma//lib/puma/configuration.rb#46 + # source://puma//lib/puma/configuration.rb#47 def [](key); end - # source://puma//lib/puma/configuration.rb#50 + # source://puma//lib/puma/configuration.rb#51 def []=(key, value); end - # source://puma//lib/puma/configuration.rb#62 + # source://puma//lib/puma/configuration.rb#63 def all_of(key); end # Returns the value of attribute default_options. # - # source://puma//lib/puma/configuration.rb#44 + # source://puma//lib/puma/configuration.rb#45 def default_options; end - # source://puma//lib/puma/configuration.rb#54 + # source://puma//lib/puma/configuration.rb#55 def fetch(key, default_value = T.unsafe(nil)); end # Returns the value of attribute file_options. # - # source://puma//lib/puma/configuration.rb#44 + # source://puma//lib/puma/configuration.rb#45 def file_options; end - # source://puma//lib/puma/configuration.rb#86 + # source://puma//lib/puma/configuration.rb#87 def final_options; end - # source://puma//lib/puma/configuration.rb#78 + # source://puma//lib/puma/configuration.rb#79 def finalize_values; end # Returns the value of attribute user_options. # - # source://puma//lib/puma/configuration.rb#44 + # source://puma//lib/puma/configuration.rb#45 def user_options; end end @@ -4467,7 +4736,7 @@ end module Puma::Util private - # source://puma//lib/puma/util.rb#24 + # source://puma//lib/puma/util.rb#17 def escape(s, encoding = T.unsafe(nil)); end # Stolen from Mongrel, with some small modifications: @@ -4476,24 +4745,17 @@ module Puma::Util # cookies by changing the characters used in the second # parameter (which defaults to '&;'). # - # source://puma//lib/puma/util.rb#49 + # source://puma//lib/puma/util.rb#42 def parse_query(qs, d = T.unsafe(nil), &unescaper); end # source://puma//lib/puma/util.rb#9 def pipe; end - # An instance method on Thread has been provided to address https://bugs.ruby-lang.org/issues/13632, - # which currently affects some older versions of Ruby: 2.2.7 2.2.8 2.2.9 2.2.10 2.3.4 2.4.1 - # Additional context: https://github.com/puma/puma/pull/1345 - # - # source://puma//lib/puma/util.rb#16 - def purge_interrupt_queue; end - - # source://puma//lib/puma/util.rb#28 + # source://puma//lib/puma/util.rb#21 def unescape(s, encoding = T.unsafe(nil)); end class << self - # source://puma//lib/puma/util.rb#24 + # source://puma//lib/puma/util.rb#17 def escape(s, encoding = T.unsafe(nil)); end # Stolen from Mongrel, with some small modifications: @@ -4502,83 +4764,76 @@ module Puma::Util # cookies by changing the characters used in the second # parameter (which defaults to '&;'). # - # source://puma//lib/puma/util.rb#49 + # source://puma//lib/puma/util.rb#42 def parse_query(qs, d = T.unsafe(nil), &unescaper); end # source://puma//lib/puma/util.rb#9 def pipe; end - # An instance method on Thread has been provided to address https://bugs.ruby-lang.org/issues/13632, - # which currently affects some older versions of Ruby: 2.2.7 2.2.8 2.2.9 2.2.10 2.3.4 2.4.1 - # Additional context: https://github.com/puma/puma/pull/1345 - # - # source://puma//lib/puma/util.rb#16 - def purge_interrupt_queue; end - - # source://puma//lib/puma/util.rb#28 + # source://puma//lib/puma/util.rb#21 def unescape(s, encoding = T.unsafe(nil)); end end end -# source://puma//lib/puma/util.rb#42 +# source://puma//lib/puma/util.rb#35 Puma::Util::DEFAULT_SEP = T.let(T.unsafe(nil), Regexp) # A case-insensitive Hash that preserves the original case of a # header when set. # -# source://puma//lib/puma/util.rb#74 +# source://puma//lib/puma/util.rb#67 class Puma::Util::HeaderHash < ::Hash # @return [HeaderHash] a new instance of HeaderHash # - # source://puma//lib/puma/util.rb#79 + # source://puma//lib/puma/util.rb#72 def initialize(hash = T.unsafe(nil)); end - # source://puma//lib/puma/util.rb#98 + # source://puma//lib/puma/util.rb#91 def [](k); end - # source://puma//lib/puma/util.rb#102 + # source://puma//lib/puma/util.rb#95 def []=(k, v); end - # source://puma//lib/puma/util.rb#109 + # source://puma//lib/puma/util.rb#102 def delete(k); end - # source://puma//lib/puma/util.rb#85 + # source://puma//lib/puma/util.rb#78 def each; end # @return [Boolean] # - # source://puma//lib/puma/util.rb#116 + # source://puma//lib/puma/util.rb#113 def has_key?(k); end # @return [Boolean] # - # source://puma//lib/puma/util.rb#116 + # source://puma//lib/puma/util.rb#109 def include?(k); end # @return [Boolean] # - # source://puma//lib/puma/util.rb#116 + # source://puma//lib/puma/util.rb#115 def key?(k); end # @return [Boolean] # - # source://puma//lib/puma/util.rb#116 + # source://puma//lib/puma/util.rb#114 def member?(k); end - # source://puma//lib/puma/util.rb#129 + # source://puma//lib/puma/util.rb#122 def merge(other); end - # source://puma//lib/puma/util.rb#124 + # source://puma//lib/puma/util.rb#117 def merge!(other); end - # source://puma//lib/puma/util.rb#134 + # source://puma//lib/puma/util.rb#127 def replace(other); end - # source://puma//lib/puma/util.rb#92 + # source://puma//lib/puma/util.rb#85 def to_hash; end class << self - # source://puma//lib/puma/util.rb#75 + # source://puma//lib/puma/util.rb#68 def new(hash = T.unsafe(nil)); end end end diff --git a/sorbet/rbi/gems/raabro@1.4.0.rbi b/sorbet/rbi/gems/raabro@1.4.0.rbi index cab9afd7..dfd6d14b 100644 --- a/sorbet/rbi/gems/raabro@1.4.0.rbi +++ b/sorbet/rbi/gems/raabro@1.4.0.rbi @@ -99,7 +99,7 @@ module Raabro::ModuleMethods # source://raabro//lib/raabro.rb#457 def eseq(name, input, startpa, eltpa, seppa = T.unsafe(nil), endpa = T.unsafe(nil)); end - # source://raabro//lib/raabro.rb#457 + # source://raabro//lib/raabro.rb#527 def jseq(name, input, startpa, eltpa, seppa = T.unsafe(nil), endpa = T.unsafe(nil)); end # Returns the value of attribute last. @@ -129,7 +129,7 @@ module Raabro::ModuleMethods # source://raabro//lib/raabro.rb#413 def ren(name, input, parser); end - # source://raabro//lib/raabro.rb#413 + # source://raabro//lib/raabro.rb#420 def rename(name, input, parser); end # source://raabro//lib/raabro.rb#383 @@ -300,10 +300,10 @@ class Raabro::Tree # source://raabro//lib/raabro.rb#45 def result=(_arg0); end - # source://raabro//lib/raabro.rb#83 + # source://raabro//lib/raabro.rb#84 def strim; end - # source://raabro//lib/raabro.rb#87 + # source://raabro//lib/raabro.rb#88 def strind; end # source://raabro//lib/raabro.rb#82 @@ -318,7 +318,7 @@ class Raabro::Tree # source://raabro//lib/raabro.rb#83 def strinp; end - # source://raabro//lib/raabro.rb#89 + # source://raabro//lib/raabro.rb#90 def strinpd; end # source://raabro//lib/raabro.rb#125 @@ -330,7 +330,7 @@ class Raabro::Tree # source://raabro//lib/raabro.rb#72 def successful_children; end - # source://raabro//lib/raabro.rb#93 + # source://raabro//lib/raabro.rb#94 def symbod; end # source://raabro//lib/raabro.rb#92 diff --git a/sorbet/rbi/gems/racc@1.8.1.rbi b/sorbet/rbi/gems/racc@1.8.1.rbi index 09ae3af3..f3f00f0e 100644 --- a/sorbet/rbi/gems/racc@1.8.1.rbi +++ b/sorbet/rbi/gems/racc@1.8.1.rbi @@ -35,7 +35,7 @@ class Racc::Parser # source://racc//lib/racc/parser.rb#329 def _racc_yyparse_rb(recv, mid, arg, c_debug); end - # source://racc//lib/racc/parser.rb#262 + # source://racc//lib/racc/parser.rb#261 def do_parse; end # The method to fetch next token. @@ -123,9 +123,17 @@ class Racc::Parser # source://racc//lib/racc/parser.rb#542 def yyerror; end - # source://racc//lib/racc/parser.rb#324 + # source://racc//lib/racc/parser.rb#323 def yyparse(recv, mid); end + private + + # source://racc//lib/racc/parser.rb#195 + def _racc_do_parse_c(_arg0, _arg1); end + + # source://racc//lib/racc/parser.rb#195 + def _racc_yyparse_c(_arg0, _arg1, _arg2, _arg3); end + class << self # source://racc//lib/racc/parser.rb#216 def racc_runtime_type; end diff --git a/sorbet/rbi/gems/rack-proxy@0.7.7.rbi b/sorbet/rbi/gems/rack-proxy@0.7.7.rbi index 32825c25..3727a1da 100644 --- a/sorbet/rbi/gems/rack-proxy@0.7.7.rbi +++ b/sorbet/rbi/gems/rack-proxy@0.7.7.rbi @@ -65,12 +65,7 @@ class Net::HTTPResponse end # source://rack-proxy//lib/rack/http_streaming_response.rb#4 -module Rack - class << self - # source://rack/3.1.12/lib/rack/version.rb#18 - def release; end - end -end +module Rack; end # Wraps the hacked net/http in a Rack way. # @@ -145,7 +140,7 @@ class Rack::HttpStreamingResponse # #status is deprecated # - # source://rack-proxy//lib/rack/http_streaming_response.rb#23 + # source://rack-proxy//lib/rack/http_streaming_response.rb#29 def status; end # source://rack-proxy//lib/rack/http_streaming_response.rb#44 diff --git a/sorbet/rbi/gems/rack-session@2.1.1.rbi b/sorbet/rbi/gems/rack-session@2.1.1.rbi index b0e667bd..ecce91f0 100644 --- a/sorbet/rbi/gems/rack-session@2.1.1.rbi +++ b/sorbet/rbi/gems/rack-session@2.1.1.rbi @@ -6,12 +6,7 @@ # source://rack-session//lib/rack/session/constants.rb#7 -module Rack - class << self - # source://rack/3.1.14/lib/rack/version.rb#18 - def release; end - end -end +module Rack; end # source://rack-session//lib/rack/session/constants.rb#8 module Rack::Session; end @@ -316,7 +311,7 @@ class Rack::Session::Abstract::SessionHash # @return [Boolean] # - # source://rack-session//lib/rack/session/abstract/id.rb#107 + # source://rack-session//lib/rack/session/abstract/id.rb#112 def include?(key); end # source://rack-session//lib/rack/session/abstract/id.rb#151 @@ -324,7 +319,7 @@ class Rack::Session::Abstract::SessionHash # @return [Boolean] # - # source://rack-session//lib/rack/session/abstract/id.rb#107 + # source://rack-session//lib/rack/session/abstract/id.rb#111 def key?(key); end # source://rack-session//lib/rack/session/abstract/id.rb#174 @@ -335,7 +330,7 @@ class Rack::Session::Abstract::SessionHash # source://rack-session//lib/rack/session/abstract/id.rb#165 def loaded?; end - # source://rack-session//lib/rack/session/abstract/id.rb#135 + # source://rack-session//lib/rack/session/abstract/id.rb#139 def merge!(hash); end # source://rack-session//lib/rack/session/abstract/id.rb#79 @@ -344,7 +339,7 @@ class Rack::Session::Abstract::SessionHash # source://rack-session//lib/rack/session/abstract/id.rb#141 def replace(hash); end - # source://rack-session//lib/rack/session/abstract/id.rb#114 + # source://rack-session//lib/rack/session/abstract/id.rb#118 def store(key, value); end # source://rack-session//lib/rack/session/abstract/id.rb#130 @@ -693,7 +688,7 @@ class Rack::Session::SessionId # Returns the value of attribute public_id. # - # source://rack-session//lib/rack/session/abstract/id.rb#24 + # source://rack-session//lib/rack/session/abstract/id.rb#34 def cookie_value; end # @return [Boolean] @@ -714,7 +709,7 @@ class Rack::Session::SessionId # Returns the value of attribute public_id. # - # source://rack-session//lib/rack/session/abstract/id.rb#24 + # source://rack-session//lib/rack/session/abstract/id.rb#35 def to_s; end private diff --git a/sorbet/rbi/gems/rack-test@2.2.0.rbi b/sorbet/rbi/gems/rack-test@2.2.0.rbi index 7c92ad03..77148bc2 100644 --- a/sorbet/rbi/gems/rack-test@2.2.0.rbi +++ b/sorbet/rbi/gems/rack-test@2.2.0.rbi @@ -6,12 +6,7 @@ # source://rack-test//lib/rack/test/cookie_jar.rb#6 -module Rack - class << self - # source://rack/3.1.12/lib/rack/version.rb#18 - def release; end - end -end +module Rack; end # For backwards compatibility with 1.1.0 and below # @@ -124,7 +119,7 @@ class Rack::Test::Cookie # A hash of cookie options, including the cookie value, but excluding the cookie name. # - # source://rack-test//lib/rack/test/cookie_jar.rb#111 + # source://rack-test//lib/rack/test/cookie_jar.rb#120 def to_hash; end # Whether the cookie is valid for the given URI. @@ -275,10 +270,10 @@ module Rack::Test::Methods # source://rack-test//lib/rack/test/methods.rb#90 def _rack_test_current_session=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def authorize(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def basic_authorize(*args, **_arg1, &block); end # Create a new Rack::Test::Session for #app. @@ -286,7 +281,7 @@ module Rack::Test::Methods # source://rack-test//lib/rack/test/methods.rb#40 def build_rack_test_session(_name); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def clear_cookies(*args, **_arg1, &block); end # Return the currently actively session. This is the session to @@ -295,50 +290,50 @@ module Rack::Test::Methods # source://rack-test//lib/rack/test/methods.rb#55 def current_session; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def custom_request(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def delete(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def env(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def follow_redirect!(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def get(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def head(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def header(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def last_request(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def last_response(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def options(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def patch(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def post(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def put(*args, **_arg1, &block); end # Return the existing session with the given name, or a new # rack session. Always use a new session if name is nil. # For backwards compatibility with older rack-test versions. # - # source://rack-test//lib/rack/test/methods.rb#29 + # source://rack-test//lib/rack/test/methods.rb#37 def rack_mock_session(name = T.unsafe(nil)); end # Return the existing session with the given name, or a new @@ -347,10 +342,10 @@ module Rack::Test::Methods # source://rack-test//lib/rack/test/methods.rb#29 def rack_test_session(name = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def request(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack-test//lib/rack/test/methods.rb#68 def set_cookie(*args, **_arg1, &block); end # Create a new session (or reuse an existing session with the given name), @@ -429,7 +424,7 @@ class Rack::Test::Session # Example: # basic_authorize "bryan", "secret" # - # source://rack-test//lib/rack/test.rb#198 + # source://rack-test//lib/rack/test.rb#203 def authorize(username, password); end # Set the username and password for HTTP Basic authorization, to be @@ -469,7 +464,7 @@ class Rack::Test::Session # source://rack-test//lib/rack/test.rb#70 def default_host; end - # source://rack-test//lib/rack/test.rb#111 + # source://rack-test//lib/rack/test.rb#110 def delete(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end # Set an entry in the rack environment to be included on all subsequent @@ -489,10 +484,10 @@ class Rack::Test::Session # source://rack-test//lib/rack/test.rb#209 def follow_redirect!; end - # source://rack-test//lib/rack/test.rb#111 + # source://rack-test//lib/rack/test.rb#110 def get(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end - # source://rack-test//lib/rack/test.rb#111 + # source://rack-test//lib/rack/test.rb#110 def head(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end # Set a header to be included on all subsequent requests through the @@ -522,16 +517,16 @@ class Rack::Test::Session # source://rack-test//lib/rack/test.rb#141 def last_response; end - # source://rack-test//lib/rack/test.rb#111 + # source://rack-test//lib/rack/test.rb#110 def options(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end - # source://rack-test//lib/rack/test.rb#111 + # source://rack-test//lib/rack/test.rb#110 def patch(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end - # source://rack-test//lib/rack/test.rb#111 + # source://rack-test//lib/rack/test.rb#110 def post(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end - # source://rack-test//lib/rack/test.rb#111 + # source://rack-test//lib/rack/test.rb#110 def put(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end # Issue a request to the Rack app for the given URI and optional Rack @@ -639,7 +634,7 @@ class Rack::Test::UploadedFile # The path to the tempfile. Will not work if the receiver's content is from a StringIO. # - # source://rack-test//lib/rack/test/uploaded_file.rb#46 + # source://rack-test//lib/rack/test/uploaded_file.rb#49 def local_path; end # Delegate all methods not handled to the tempfile. diff --git a/sorbet/rbi/gems/rack@3.1.14.rbi b/sorbet/rbi/gems/rack@3.2.1.rbi similarity index 81% rename from sorbet/rbi/gems/rack@3.1.14.rbi rename to sorbet/rbi/gems/rack@3.2.1.rbi index ab9296cb..c50ec8f3 100644 --- a/sorbet/rbi/gems/rack@3.1.14.rbi +++ b/sorbet/rbi/gems/rack@3.2.1.rbi @@ -5,23 +5,17 @@ # Please instead update this file by running `bin/tapioca gem rack`. -# The Rack main module, serving as a namespace for all core Rack -# modules and classes. -# -# All modules meant for use in your application are autoloaded here, -# so it should be enough just to require 'rack' in your code. -# -# source://rack//lib/rack/version.rb#14 +# source://rack//lib/rack/version.rb#8 module Rack class << self # Return the Rack release as a dotted string. # - # source://rack//lib/rack/version.rb#18 + # source://rack//lib/rack/version.rb#14 def release; end end end -# source://rack//lib/rack.rb#60 +# source://rack//lib/rack.rb#59 module Rack::Auth; end # Rack::Auth::AbstractHandler implements common authentication functionality. @@ -56,42 +50,42 @@ class Rack::Auth::AbstractHandler def unauthorized(www_authenticate = T.unsafe(nil)); end end -# source://rack//lib/rack/auth/abstract/request.rb#7 +# source://rack//lib/rack/auth/abstract/request.rb#8 class Rack::Auth::AbstractRequest # @return [AbstractRequest] a new instance of AbstractRequest # - # source://rack//lib/rack/auth/abstract/request.rb#9 + # source://rack//lib/rack/auth/abstract/request.rb#10 def initialize(env); end - # source://rack//lib/rack/auth/abstract/request.rb#33 + # source://rack//lib/rack/auth/abstract/request.rb#35 def params; end - # source://rack//lib/rack/auth/abstract/request.rb#25 + # source://rack//lib/rack/auth/abstract/request.rb#27 def parts; end # @return [Boolean] # - # source://rack//lib/rack/auth/abstract/request.rb#17 + # source://rack//lib/rack/auth/abstract/request.rb#19 def provided?; end - # source://rack//lib/rack/auth/abstract/request.rb#13 + # source://rack//lib/rack/auth/abstract/request.rb#14 def request; end - # source://rack//lib/rack/auth/abstract/request.rb#29 + # source://rack//lib/rack/auth/abstract/request.rb#31 def scheme; end # @return [Boolean] # - # source://rack//lib/rack/auth/abstract/request.rb#21 + # source://rack//lib/rack/auth/abstract/request.rb#23 def valid?; end private - # source://rack//lib/rack/auth/abstract/request.rb#42 + # source://rack//lib/rack/auth/abstract/request.rb#44 def authorization_key; end end -# source://rack//lib/rack/auth/abstract/request.rb#40 +# source://rack//lib/rack/auth/abstract/request.rb#42 Rack::Auth::AbstractRequest::AUTHORIZATION_KEYS = T.let(T.unsafe(nil), Array) # Rack::Auth::Basic implements HTTP Basic Authentication, as per RFC 2617. @@ -224,13 +218,13 @@ class Rack::Builder # this rebuilds the Rack application and runs the warmup code (if any) # every time it is called, so it should not be used if performance is important. # - # source://rack//lib/rack/builder.rb#276 + # source://rack//lib/rack/builder.rb#282 def call(env); end # Freeze the app (set using run) and all middleware instances when building the application # in to_app. # - # source://rack//lib/rack/builder.rb#259 + # source://rack//lib/rack/builder.rb#265 def freeze_app; end # Creates a route within the application. Routes under the mapped path will be sent to @@ -273,7 +267,7 @@ class Rack::Builder # Note that providing a +path+ of +/+ will ignore any default application given in a +run+ statement # outside the block. # - # source://rack//lib/rack/builder.rb#252 + # source://rack//lib/rack/builder.rb#256 def map(path, &block); end # Any options provided to the Rack::Builder instance at initialization. @@ -310,12 +304,12 @@ class Rack::Builder # # @raise [ArgumentError] # - # source://rack//lib/rack/builder.rb#193 + # source://rack//lib/rack/builder.rb#195 def run(app = T.unsafe(nil), &block); end # Return the Rack application generated by this instance. # - # source://rack//lib/rack/builder.rb#264 + # source://rack//lib/rack/builder.rb#270 def to_app; end # Specifies middleware to use in a stack. @@ -352,7 +346,7 @@ class Rack::Builder # use SomeMiddleware # run MyApp # - # source://rack//lib/rack/builder.rb#209 + # source://rack//lib/rack/builder.rb#213 def warmup(prc = T.unsafe(nil), &block); end private @@ -360,7 +354,7 @@ class Rack::Builder # Generate a URLMap instance by generating new Rack applications for each # map block in this instance. # - # source://rack//lib/rack/builder.rb#284 + # source://rack//lib/rack/builder.rb#290 def generate_map(default_app, mapping); end class << self @@ -464,7 +458,7 @@ class Rack::Cascade # Append an app to the list of apps to cascade. This app will # be tried last. # - # source://rack//lib/rack/cascade.rb#56 + # source://rack//lib/rack/cascade.rb#65 def <<(app); end # Append an app to the list of apps to cascade. This app will @@ -581,7 +575,7 @@ class Rack::ConditionalGet # # @return [Boolean] # - # source://rack//lib/rack/conditional_get.rb#62 + # source://rack//lib/rack/conditional_get.rb#63 def etag_matches?(none_match, headers); end # Return whether the response has not been modified since the @@ -589,7 +583,7 @@ class Rack::ConditionalGet # # @return [Boolean] # - # source://rack//lib/rack/conditional_get.rb#51 + # source://rack//lib/rack/conditional_get.rb#52 def fresh?(env, headers); end # Whether the last-modified response header matches the if-modified-since @@ -597,13 +591,13 @@ class Rack::ConditionalGet # # @return [Boolean] # - # source://rack//lib/rack/conditional_get.rb#68 + # source://rack//lib/rack/conditional_get.rb#69 def modified_since?(modified_since, headers); end # Return a Time object for the given string (which should be in RFC2822 # format), or nil if the string cannot be parsed. # - # source://rack//lib/rack/conditional_get.rb#75 + # source://rack//lib/rack/conditional_get.rb#76 def to_rfc2822(since); end end @@ -924,12 +918,13 @@ Rack::EXPIRES = T.let(T.unsafe(nil), String) # # * on_send(request, response) # -# The webserver has started iterating over the response body and presumably -# has started sending data over the wire. This method is always called with -# a request object and the response object. The response object is -# constructed from the rack triple that the application returned. Changes -# SHOULD NOT be made to the response object as the webserver has already -# started sending data. Any mutations will likely result in an exception. +# The webserver has started iterating over the response body, or has called +# the streaming body, and presumably has started sending data over the +# wire. This method is always called with a request object and the response +# object. The response object is constructed from the rack triple that the +# application returned. Changes SHOULD NOT be made to the response object +# as the webserver has already started sending data. Any mutations will +# likely result in an exception. # # * on_finish(request, response) # @@ -953,89 +948,97 @@ Rack::EXPIRES = T.let(T.unsafe(nil), String) # raises an exception. If something raises an exception in a `on_finish` # method, then nothing is guaranteed. # -# source://rack//lib/rack/events.rb#61 +# source://rack//lib/rack/events.rb#62 class Rack::Events # @return [Events] a new instance of Events # - # source://rack//lib/rack/events.rb#106 + # source://rack//lib/rack/events.rb#121 def initialize(app, handlers); end - # source://rack//lib/rack/events.rb#111 + # source://rack//lib/rack/events.rb#126 def call(env); end private - # source://rack//lib/rack/events.rb#149 + # source://rack//lib/rack/events.rb#164 def make_request(env); end - # source://rack//lib/rack/events.rb#153 + # source://rack//lib/rack/events.rb#168 def make_response(status, headers, body); end - # source://rack//lib/rack/events.rb#137 + # source://rack//lib/rack/events.rb#152 def on_commit(request, response); end - # source://rack//lib/rack/events.rb#133 + # source://rack//lib/rack/events.rb#148 def on_error(request, response, e); end - # source://rack//lib/rack/events.rb#145 + # source://rack//lib/rack/events.rb#160 def on_finish(request, response); end - # source://rack//lib/rack/events.rb#141 + # source://rack//lib/rack/events.rb#156 def on_start(request, response); end end -# source://rack//lib/rack/events.rb#62 +# source://rack//lib/rack/events.rb#63 module Rack::Events::Abstract - # source://rack//lib/rack/events.rb#66 + # source://rack//lib/rack/events.rb#67 def on_commit(req, res); end - # source://rack//lib/rack/events.rb#75 + # source://rack//lib/rack/events.rb#76 def on_error(req, res, e); end - # source://rack//lib/rack/events.rb#72 + # source://rack//lib/rack/events.rb#73 def on_finish(req, res); end - # source://rack//lib/rack/events.rb#69 + # source://rack//lib/rack/events.rb#70 def on_send(req, res); end - # source://rack//lib/rack/events.rb#63 + # source://rack//lib/rack/events.rb#64 def on_start(req, res); end end -# source://rack//lib/rack/events.rb#95 +# source://rack//lib/rack/events.rb#110 class Rack::Events::BufferedResponse < ::Rack::Response::Raw # @return [BufferedResponse] a new instance of BufferedResponse # - # source://rack//lib/rack/events.rb#98 + # source://rack//lib/rack/events.rb#113 def initialize(status, headers, body); end # Returns the value of attribute body. # - # source://rack//lib/rack/events.rb#96 + # source://rack//lib/rack/events.rb#111 def body; end - # source://rack//lib/rack/events.rb#103 + # source://rack//lib/rack/events.rb#118 def to_a; end end -# source://rack//lib/rack/events.rb#79 +# source://rack//lib/rack/events.rb#80 class Rack::Events::EventedBodyProxy < ::Rack::BodyProxy # @return [EventedBodyProxy] a new instance of EventedBodyProxy # - # source://rack//lib/rack/events.rb#82 + # source://rack//lib/rack/events.rb#83 def initialize(body, request, response, handlers, &block); end - # source://rack//lib/rack/events.rb#89 + # source://rack//lib/rack/events.rb#95 + def call(stream); end + + # source://rack//lib/rack/events.rb#90 def each; end # Returns the value of attribute request. # - # source://rack//lib/rack/events.rb#80 + # source://rack//lib/rack/events.rb#81 def request; end + # @return [Boolean] + # + # source://rack//lib/rack/events.rb#100 + def respond_to?(method_name, include_all = T.unsafe(nil)); end + # Returns the value of attribute response. # - # source://rack//lib/rack/events.rb#80 + # source://rack//lib/rack/events.rb#81 def response; end end @@ -1135,7 +1138,7 @@ end # source://rack//lib/rack/files.rb#184 class Rack::Files::Iterator < ::Rack::Files::BaseIterator - # source://rack//lib/rack/files.rb#122 + # source://rack//lib/rack/files.rb#185 def to_path; end end @@ -1246,7 +1249,7 @@ class Rack::Headers < ::Hash # @return [Boolean] # - # source://rack//lib/rack/headers.rb#144 + # source://rack//lib/rack/headers.rb#147 def include?(key); end # source://rack//lib/rack/headers.rb#151 @@ -1254,18 +1257,18 @@ class Rack::Headers < ::Hash # @return [Boolean] # - # source://rack//lib/rack/headers.rb#144 + # source://rack//lib/rack/headers.rb#148 def key?(key); end # @return [Boolean] # - # source://rack//lib/rack/headers.rb#144 + # source://rack//lib/rack/headers.rb#149 def member?(key); end # source://rack//lib/rack/headers.rb#157 def merge(hash, &block); end - # source://rack//lib/rack/headers.rb#186 + # source://rack//lib/rack/headers.rb#196 def merge!(hash, &block); end # source://rack//lib/rack/headers.rb#161 @@ -1282,7 +1285,7 @@ class Rack::Headers < ::Hash # source://rack//lib/rack/headers.rb#205 def slice(*a); end - # source://rack//lib/rack/headers.rb#114 + # source://rack//lib/rack/headers.rb#117 def store(key, value); end # source://rack//lib/rack/headers.rb#178 @@ -1320,358 +1323,322 @@ Rack::Headers::KNOWN_HEADERS = T.let(T.unsafe(nil), Hash) # source://rack//lib/rack/constants.rb#36 Rack::LINK = T.let(T.unsafe(nil), String) -# Rack::Lint validates your application and the requests and -# responses according to the Rack spec. +# Validates your application and the requests and responses according to the Rack spec. See SPEC.rdoc for details. # -# source://rack//lib/rack/lint.rb#13 +# source://rack//lib/rack/lint.rb#10 class Rack::Lint - # @return [Lint] a new instance of Lint + # N.B. The empty `##` comments creates paragraphs in the output. A trailing "\" is used to escape the newline character, which combines the comments into a single paragraph. # - # source://rack//lib/rack/lint.rb#19 - def initialize(app); end - - # AUTHORS: n.b. The trailing whitespace between paragraphs is important and - # should not be removed. The whitespace creates paragraphs in the RDoc - # output. + # = Rack Specification + # + # This specification aims to formalize the Rack protocol. You can (and should) use +Rack::Lint+ to enforce it. When you develop middleware, be sure to test with +Rack::Lint+ to catch possible violations of this specification. # - # This specification aims to formalize the Rack protocol. You - # can (and should) use Rack::Lint to enforce it. + # == The Application # - # When you develop middleware, be sure to add a Lint before and - # after to catch all mistakes. + # A Rack application is a Ruby object that responds to +call+. \ # - # = Rack applications + # @raise [LintError] + # @return [Lint] a new instance of Lint # - # A Rack application is a Ruby object (not a class) that - # responds to +call+. + # source://rack//lib/rack/lint.rb#65 + def initialize(app); end + + # Invoke the application, validating the request and response according to the Rack spec. # - # source://rack//lib/rack/lint.rb#40 + # source://rack//lib/rack/lint.rb#15 def call(env = T.unsafe(nil)); end end # :stopdoc: # -# source://rack//lib/rack/lint.rb#25 +# source://rack//lib/rack/lint.rb#21 +Rack::Lint::ALLOWED_SCHEMES = T.let(T.unsafe(nil), Array) + +# Match a host name, according to RFC3986. Copied from `URI::RFC3986_Parser::HOST` because older Ruby versions (< 3.3) don't expose it. +# +# source://rack//lib/rack/lint.rb#29 +Rack::Lint::HOST_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/lint.rb#52 +Rack::Lint::HTTP_HOST_PATTERN = T.let(T.unsafe(nil), Regexp) + +# Represents a failure to meet the Rack specification. +# +# source://rack//lib/rack/lint.rb#12 class Rack::Lint::LintError < ::RuntimeError; end -# source://rack//lib/rack/lint.rb#15 +# source://rack//lib/rack/lint.rb#24 Rack::Lint::REQUEST_PATH_ABSOLUTE_FORM = T.let(T.unsafe(nil), Regexp) -# source://rack//lib/rack/lint.rb#17 +# source://rack//lib/rack/lint.rb#26 Rack::Lint::REQUEST_PATH_ASTERISK_FORM = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/lint.rb#16 +# source://rack//lib/rack/lint.rb#25 Rack::Lint::REQUEST_PATH_AUTHORITY_FORM = T.let(T.unsafe(nil), Regexp) -# source://rack//lib/rack/lint.rb#14 +# source://rack//lib/rack/lint.rb#23 Rack::Lint::REQUEST_PATH_ORIGIN_FORM = T.let(T.unsafe(nil), Regexp) -# source://rack//lib/rack/lint.rb#44 +# source://rack//lib/rack/lint.rb#51 +Rack::Lint::SERVER_NAME_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/lint.rb#71 class Rack::Lint::Wrapper # @return [Wrapper] a new instance of Wrapper # - # source://rack//lib/rack/lint.rb#45 + # source://rack//lib/rack/lint.rb#72 def initialize(app, env); end # ==== Streaming Body # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#939 + # source://rack//lib/rack/lint.rb#918 def call(stream); end - # ==== The +content-length+ Header + # ==== The content-length Header # - # source://rack//lib/rack/lint.rb#757 + # source://rack//lib/rack/lint.rb#768 def check_content_length_header(status, headers); end - # ==== The +content-type+ Header + # ==== The content-type Header # - # source://rack//lib/rack/lint.rb#741 + # source://rack//lib/rack/lint.rb#753 def check_content_type_header(status, headers); end # === Early Hints # - # The application or any middleware may call the rack.early_hints - # with an object which would be valid as the headers of a Rack response. + # The application or any middleware may call the rack.early_hints with an object which would be valid as the headers of a Rack response. # - # source://rack//lib/rack/lint.rb#657 + # source://rack//lib/rack/lint.rb#670 def check_early_hints(env); end - # == The Environment + # == The Request Environment + # + # Incoming HTTP requests are represented using an environment. \ # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#101 + # source://rack//lib/rack/lint.rb#136 def check_environment(env); end # === The Error Stream # - # source://rack//lib/rack/lint.rb#531 + # source://rack//lib/rack/lint.rb#571 def check_error_stream(error); end - # source://rack//lib/rack/lint.rb#731 + # source://rack//lib/rack/lint.rb#743 def check_header_value(key, value); end # === The Headers # - # source://rack//lib/rack/lint.rb#691 + # source://rack//lib/rack/lint.rb#704 def check_headers(headers); end # === Hijacking # - # The hijacking interfaces provides a means for an application to take - # control of the HTTP connection. There are two distinct hijack - # interfaces: full hijacking where the application takes over the raw - # connection, and partial hijacking where the application takes over - # just the response body stream. In both cases, the application is - # responsible for closing the hijacked stream. + # The hijacking interfaces provides a means for an application to take control of the HTTP connection. There are two distinct hijack interfaces: full hijacking where the application takes over the raw connection, and partial hijacking where the application takes over just the response body stream. In both cases, the application is responsible for closing the hijacked stream. # - # Full hijacking only works with HTTP/1. Partial hijacking is functionally - # equivalent to streaming bodies, and is still optionally supported for - # backwards compatibility with older Rack versions. + # Full hijacking only works with HTTP/1. Partial hijacking is functionally equivalent to streaming bodies, and is still optionally supported for backwards compatibility with older Rack versions. # # ==== Full Hijack # - # Full hijack is used to completely take over an HTTP/1 connection. It - # occurs before any headers are written and causes the request to - # ignores any response generated by the application. - # - # It is intended to be used when applications need access to raw HTTP/1 - # connection. + # Full hijack is used to completely take over an HTTP/1 connection. It occurs before any headers are written and causes the server to ignore any response generated by the application. It is intended to be used when applications need access to the raw HTTP/1 connection. # - # source://rack//lib/rack/lint.rb#591 + # source://rack//lib/rack/lint.rb#618 def check_hijack(env); end # ==== Partial Hijack # - # Partial hijack is used for bi-directional streaming of the request and - # response body. It occurs after the status and headers are written by - # the server and causes the server to ignore the Body of the response. - # - # It is intended to be used when applications need bi-directional - # streaming. + # Partial hijack is used for bi-directional streaming of the request and response body. It occurs after the status and headers are written by the server and causes the server to ignore the Body of the response. It is intended to be used when applications need bi-directional streaming. # - # source://rack//lib/rack/lint.rb#619 + # source://rack//lib/rack/lint.rb#639 def check_hijack_response(headers, env); end # === The Input Stream # - # The input stream is an IO-like object which contains the raw HTTP - # POST data. + # The input stream is an +IO+-like object which contains the raw HTTP request data. \ # - # source://rack//lib/rack/lint.rb#427 + # source://rack//lib/rack/lint.rb#478 def check_input_stream(input); end - # ==== The +rack.protocol+ Header + # ==== The rack.protocol Header # - # source://rack//lib/rack/lint.rb#785 + # source://rack//lib/rack/lint.rb#795 def check_rack_protocol_header(status, headers); end # == The Response # + # Outgoing HTTP responses are generated from the response tuple generated by the application. The response tuple is an +Array+ of three elements, which are: the HTTP status, the headers, and the response body. The Rack application is responsible for ensuring that the response tuple is well-formed and should follow the rules set out in this specification. + # # === The Status # - # source://rack//lib/rack/lint.rb#680 + # source://rack//lib/rack/lint.rb#694 def check_status(status); end - # Setting this value informs the server that it should perform a - # connection upgrade. In HTTP/1, this is done using the +upgrade+ - # header. In HTTP/2, this is done by accepting the request. + # Setting this value informs the server that it should perform a connection upgrade. In HTTP/1, this is done using the +upgrade+ header. In HTTP/2+, this is done by accepting the request. # # === The Body # - # The Body is typically an +Array+ of +String+ instances, an enumerable - # that yields +String+ instances, a +Proc+ instance, or a File-like - # object. - # - # The Body must respond to +each+ or +call+. It may optionally respond - # to +to_path+ or +to_ary+. A Body that responds to +each+ is considered - # to be an Enumerable Body. A Body that responds to +call+ is considered - # to be a Streaming Body. - # - # A Body that responds to both +each+ and +call+ must be treated as an - # Enumerable Body, not a Streaming Body. If it responds to +each+, you - # must call +each+ and not +call+. If the Body doesn't respond to - # +each+, then you can assume it responds to +call+. - # - # The Body must either be consumed or returned. The Body is consumed by - # optionally calling either +each+ or +call+. - # Then, if the Body responds to +close+, it must be called to release - # any resources associated with the generation of the body. - # In other words, +close+ must always be called at least once; typically - # after the web server has sent the response to the client, but also in - # cases where the Rack application makes internal/virtual requests and - # discards the response. - # - # source://rack//lib/rack/lint.rb#831 + # The Body is typically an +Array+ of +String+ values, an enumerable that yields +String+ values, a +Proc+, or an +IO+-like object. + # + # The Body must respond to +each+ or +call+. It may optionally respond to +to_path+ or +to_ary+. A Body that responds to +each+ is considered to be an Enumerable Body. A Body that responds to +call+ is considered to be a Streaming Body. + # + # A Body that responds to both +each+ and +call+ must be treated as an Enumerable Body, not a Streaming Body. If it responds to +each+, you must call +each+ and not +call+. If the Body doesn't respond to +each+, then you can assume it responds to +call+. + # + # The Body must either be consumed or returned. The Body is consumed by optionally calling either +each+ or +call+. Then, if the Body responds to +close+, it must be called to release any resources associated with the generation of the body. In other words, +close+ must always be called at least once; typically after the web server has sent the response to the client, but also in cases where the Rack application makes internal/virtual requests and discards the response. + # + # source://rack//lib/rack/lint.rb#821 def close; end # ==== Enumerable Body # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#865 + # source://rack//lib/rack/lint.rb#852 def each; end # @return [Boolean] # - # source://rack//lib/rack/lint.rb#910 + # source://rack//lib/rack/lint.rb#895 def respond_to?(name, *_arg1); end # @raise [LintError] # - # source://rack//lib/rack/lint.rb#60 + # source://rack//lib/rack/lint.rb#87 def response; end - # If the Body responds to +to_ary+, it must return an +Array+ whose - # contents are identical to that produced by calling +each+. - # Middleware may call +to_ary+ directly on the Body and return a new - # Body in its place. In other words, middleware can only process the - # Body directly if it responds to +to_ary+. If the Body responds to both - # +to_ary+ and +close+, its implementation of +to_ary+ must call - # +close+. + # If the Body responds to +to_ary+, it must return an +Array+ whose contents are identical to that produced by calling +each+. Middleware may call +to_ary+ directly on the Body and return a new Body in its place. In other words, middleware can only process the Body directly if it responds to +to_ary+. If the Body responds to both +to_ary+ and +close+, its implementation of +to_ary+ must call +close+. # - # source://rack//lib/rack/lint.rb#926 + # source://rack//lib/rack/lint.rb#905 def to_ary; end - # source://rack//lib/rack/lint.rb#906 + # source://rack//lib/rack/lint.rb#891 def to_path; end - # source://rack//lib/rack/lint.rb#770 + # source://rack//lib/rack/lint.rb#780 def verify_content_length(size); end - # source://rack//lib/rack/lint.rb#847 + # source://rack//lib/rack/lint.rb#835 def verify_to_path; end + + private + + # @raise [LintError] + # + # source://rack//lib/rack/lint.rb#126 + def assert_required(key); end end -# source://rack//lib/rack/lint.rb#904 +# source://rack//lib/rack/lint.rb#889 Rack::Lint::Wrapper::BODY_METHODS = T.let(T.unsafe(nil), Hash) -# source://rack//lib/rack/lint.rb#540 +# source://rack//lib/rack/lint.rb#580 class Rack::Lint::Wrapper::ErrorWrapper # @return [ErrorWrapper] a new instance of ErrorWrapper # - # source://rack//lib/rack/lint.rb#541 + # source://rack//lib/rack/lint.rb#581 def initialize(error); end # * +close+ must never be called on the error stream. # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#563 + # source://rack//lib/rack/lint.rb#602 def close(*args); end - # * +flush+ must be called without arguments and must be called - # in order to make the error appear for sure. + # * +flush+ must be called without arguments and must be called in order to make the error appear for sure. # - # source://rack//lib/rack/lint.rb#558 + # source://rack//lib/rack/lint.rb#597 def flush; end # * +puts+ must be called with a single argument that responds to +to_s+. # - # source://rack//lib/rack/lint.rb#546 + # source://rack//lib/rack/lint.rb#586 def puts(str); end - # * +write+ must be called with a single argument that is a String. + # * +write+ must be called with a single argument that is a +String+. # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#551 + # source://rack//lib/rack/lint.rb#591 def write(str); end end -# source://rack//lib/rack/lint.rb#445 +# source://rack//lib/rack/lint.rb#495 class Rack::Lint::Wrapper::InputWrapper # @return [InputWrapper] a new instance of InputWrapper # - # source://rack//lib/rack/lint.rb#446 + # source://rack//lib/rack/lint.rb#496 def initialize(input); end - # * +close+ can be called on the input stream to indicate that - # any remaining input is not needed. + # * +close+ can be called on the input stream to indicate that any remaining input is not needed. # - # source://rack//lib/rack/lint.rb#523 + # source://rack//lib/rack/lint.rb#563 def close(*args); end - # * +each+ must be called without arguments and only yield Strings. + # * +each+ must be called without arguments and only yield +String+ values. # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#511 + # source://rack//lib/rack/lint.rb#552 def each(*args); end - # * +gets+ must be called without arguments and return a string, - # or +nil+ on EOF. + # * +gets+ must be called without arguments and return a +String+, or +nil+ on EOF (end-of-file). # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#452 + # source://rack//lib/rack/lint.rb#501 def gets(*args); end - # * +read+ behaves like IO#read. - # Its signature is read([length, [buffer]]). - # - # If given, +length+ must be a non-negative Integer (>= 0) or +nil+, - # and +buffer+ must be a String and may not be nil. - # - # If +length+ is given and not nil, then this method reads at most - # +length+ bytes from the input stream. - # - # If +length+ is not given or nil, then this method reads - # all data until EOF. - # - # When EOF is reached, this method returns nil if +length+ is given - # and not nil, or "" if +length+ is not given or is nil. + # * +read+ behaves like IO#read. Its signature is read([length, [buffer]]). + # * If given, +length+ must be a non-negative Integer (>= 0) or +nil+, and +buffer+ must be a +String+ and may not be +nil+. + # * If +length+ is given and not +nil+, then this method reads at most +length+ bytes from the input stream. + # * If +length+ is not given or +nil+, then this method reads all data until EOF. + # * When EOF is reached, this method returns +nil+ if +length+ is given and not +nil+, or +""+ if +length+ is not given or is +nil+. + # * If +buffer+ is given, then the read data will be placed into +buffer+ instead of a newly created +String+. # - # If +buffer+ is given, then the read data will be placed - # into +buffer+ instead of a newly created String object. - # - # source://rack//lib/rack/lint.rb#478 + # source://rack//lib/rack/lint.rb#519 def read(*args); end end -# source://rack//lib/rack/lint.rb#959 +# source://rack//lib/rack/lint.rb#936 class Rack::Lint::Wrapper::StreamWrapper extend ::Forwardable # @return [StreamWrapper] a new instance of StreamWrapper # - # source://rack//lib/rack/lint.rb#974 + # source://rack//lib/rack/lint.rb#947 def initialize(stream); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack//lib/rack/lint.rb#945 def <<(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack//lib/rack/lint.rb#945 def close(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack//lib/rack/lint.rb#945 def close_read(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack//lib/rack/lint.rb#945 def close_write(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack//lib/rack/lint.rb#945 def closed?(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack//lib/rack/lint.rb#945 def flush(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack//lib/rack/lint.rb#945 def read(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://rack//lib/rack/lint.rb#945 def write(*args, **_arg1, &block); end end -# The semantics of these IO methods must be a best effort match to -# those of a normal Ruby IO or Socket object, using standard arguments -# and raising standard exceptions. Servers are encouraged to simply -# pass on real IO objects, although it is recognized that this approach -# is not directly compatible with HTTP/2. +# The semantics of these +IO+ methods must be a best effort match to those of a normal Ruby +IO+ or +Socket+ object, using standard arguments and raising standard exceptions. Servers may simply pass on real +IO+ objects to the Streaming Body. In some cases (e.g. when using transfer-encoding or HTTP/2+), the server may need to provide a wrapper that implements the required methods, in order to provide the correct semantics. # -# source://rack//lib/rack/lint.rb#967 +# source://rack//lib/rack/lint.rb#940 Rack::Lint::Wrapper::StreamWrapper::REQUIRED_METHODS = T.let(T.unsafe(nil), Array) # Rack::Lock locks every request inside a mutex, so that every request @@ -1693,19 +1660,6 @@ class Rack::Lock def unlock; end end -# Sets up rack.logger to write to rack.errors stream -# -# source://rack//lib/rack/logger.rb#10 -class Rack::Logger - # @return [Logger] a new instance of Logger - # - # source://rack//lib/rack/logger.rb#11 - def initialize(app, level = T.unsafe(nil)); end - - # source://rack//lib/rack/logger.rb#15 - def call(env); end -end - # Rack::MediaType parse media type and parameters out of content_type string # # source://rack//lib/rack/media_type.rb#6 @@ -1722,7 +1676,7 @@ class Rack::MediaType # and "text/plain;charset" will return { 'charset' => '' }, similarly to # the query params parser (barring the latter case, which returns nil instead)). # - # source://rack//lib/rack/media_type.rb#35 + # source://rack//lib/rack/media_type.rb#34 def params(content_type); end # The media type (type/subtype) portion of the CONTENT_TYPE header @@ -1737,7 +1691,7 @@ class Rack::MediaType private - # source://rack//lib/rack/media_type.rb#48 + # source://rack//lib/rack/media_type.rb#47 def strip_doublequotes(str); end end end @@ -1821,7 +1775,7 @@ module Rack::Mime # # @return [Boolean] # - # source://rack//lib/rack/mime.rb#30 + # source://rack//lib/rack/mime.rb#36 def match?(value, matcher); end # Returns String with mime type if found, otherwise use +fallback+. @@ -1837,7 +1791,7 @@ module Rack::Mime # This is a shortcut for: # Rack::Mime::MIME_TYPES.fetch('.foo', 'application/octet-stream') # - # source://rack//lib/rack/mime.rb#18 + # source://rack//lib/rack/mime.rb#21 def mime_type(ext, fallback = T.unsafe(nil)); end end end @@ -1968,63 +1922,114 @@ class Rack::MockRequest::FatalWarning < ::RuntimeError; end # Usually, you don't create the MockResponse on your own, but use # MockRequest. # -# source://rack//lib/rack/mock_response.rb#13 +# source://rack//lib/rack/mock_response.rb#12 class Rack::MockResponse < ::Rack::Response # @return [MockResponse] a new instance of MockResponse # - # source://rack//lib/rack/mock_response.rb#24 + # source://rack//lib/rack/mock_response.rb#47 def initialize(status, headers, body, errors = T.unsafe(nil)); end - # source://rack//lib/rack/mock_response.rb#39 + # source://rack//lib/rack/mock_response.rb#62 def =~(other); end - # source://rack//lib/rack/mock_response.rb#47 + # source://rack//lib/rack/mock_response.rb#70 def body; end - # source://rack//lib/rack/mock_response.rb#73 + # source://rack//lib/rack/mock_response.rb#96 def cookie(name); end # Headers # - # source://rack//lib/rack/mock_response.rb#19 + # source://rack//lib/rack/mock_response.rb#42 def cookies; end # @return [Boolean] # - # source://rack//lib/rack/mock_response.rb#69 + # source://rack//lib/rack/mock_response.rb#92 def empty?; end # Errors # - # source://rack//lib/rack/mock_response.rb#22 + # source://rack//lib/rack/mock_response.rb#45 def errors; end # Errors # - # source://rack//lib/rack/mock_response.rb#22 + # source://rack//lib/rack/mock_response.rb#45 def errors=(_arg0); end - # source://rack//lib/rack/mock_response.rb#43 + # source://rack//lib/rack/mock_response.rb#66 def match(other); end # Headers # - # source://rack//lib/rack/mock_response.rb#19 + # source://rack//lib/rack/mock_response.rb#42 def original_headers; end private - # source://rack//lib/rack/mock_response.rb#100 + # source://rack//lib/rack/mock_response.rb#123 def identify_cookie_attributes(cookie_filling); end - # source://rack//lib/rack/mock_response.rb#79 + # source://rack//lib/rack/mock_response.rb#102 def parse_cookies_from_header; end class << self + # source://rack//lib/rack/mock_response.rb#38 def [](*_arg0); end end end +# source://rack//lib/rack/mock_response.rb#13 +class Rack::MockResponse::Cookie + # @return [Cookie] a new instance of Cookie + # + # source://rack//lib/rack/mock_response.rb#16 + def initialize(args); end + + # Returns the value of attribute domain. + # + # source://rack//lib/rack/mock_response.rb#14 + def domain; end + + # Returns the value of attribute expires. + # + # source://rack//lib/rack/mock_response.rb#14 + def expires; end + + # source://rack//lib/rack/mock_response.rb#25 + def method_missing(method_name, *args, **_arg2, &block); end + + # Returns the value of attribute name. + # + # source://rack//lib/rack/mock_response.rb#14 + def name; end + + # Returns the value of attribute path. + # + # source://rack//lib/rack/mock_response.rb#14 + def path; end + + # Returns the value of attribute secure. + # + # source://rack//lib/rack/mock_response.rb#14 + def secure; end + + # Returns the value of attribute value. + # + # source://rack//lib/rack/mock_response.rb#14 + def value; end + + private + + # :nocov: + # + # @return [Boolean] + # + # source://rack//lib/rack/mock_response.rb#32 + def respond_to_missing?(method_name, include_all = T.unsafe(nil)); end +end + # A multipart form data parser, adapted from IOWA. # # Usually, Rack::Request#POST takes care of calling this. @@ -2067,6 +2072,11 @@ end # source://rack//lib/rack/multipart/parser.rb#31 Rack::Multipart::Error = Rack::Multipart::BoundaryTooLongError +# whitespace with optional folding +# +# source://rack//lib/rack/multipart/parser.rb#34 +Rack::Multipart::FWS = T.let(T.unsafe(nil), Regexp) + # source://rack//lib/rack/multipart/generator.rb#7 class Rack::Multipart::Generator # @return [Generator] a new instance of Generator @@ -2094,19 +2104,24 @@ class Rack::Multipart::Generator def multipart?; end end -# source://rack//lib/rack/multipart/parser.rb#34 +# anything but a non-folding CRLF +# +# source://rack//lib/rack/multipart/parser.rb#35 +Rack::Multipart::HEADER_VALUE = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/multipart/parser.rb#36 Rack::Multipart::MULTIPART = T.let(T.unsafe(nil), Regexp) # source://rack//lib/rack/multipart.rb#16 Rack::Multipart::MULTIPART_BOUNDARY = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/multipart/parser.rb#36 +# source://rack//lib/rack/multipart/parser.rb#38 Rack::Multipart::MULTIPART_CONTENT_DISPOSITION = T.let(T.unsafe(nil), Regexp) -# source://rack//lib/rack/multipart/parser.rb#37 +# source://rack//lib/rack/multipart/parser.rb#39 Rack::Multipart::MULTIPART_CONTENT_ID = T.let(T.unsafe(nil), Regexp) -# source://rack//lib/rack/multipart/parser.rb#35 +# source://rack//lib/rack/multipart/parser.rb#37 Rack::Multipart::MULTIPART_CONTENT_TYPE = T.let(T.unsafe(nil), Regexp) # source://rack//lib/rack/multipart.rb#18 @@ -2150,22 +2165,35 @@ class Rack::Multipart::ParamList end end -# source://rack//lib/rack/multipart/parser.rb#39 +# Rack::Multipart::Parser handles parsing of multipart/form-data requests. +# +# File Parameter Contents +# +# When processing file uploads, the parser returns a hash containing +# information about uploaded files. For +file+ parameters, the hash includes: +# +# * +:filename+ - The original filename, already URL decoded by the parser +# * +:type+ - The content type of the uploaded file +# * +:name+ - The parameter name from the form +# * +:tempfile+ - A Tempfile object containing the uploaded data +# * +:head+ - The raw header content for this part +# +# source://rack//lib/rack/multipart/parser.rb#53 class Rack::Multipart::Parser # @return [Parser] a new instance of Parser # - # source://rack//lib/rack/multipart/parser.rb#200 + # source://rack//lib/rack/multipart/parser.rb#214 def initialize(boundary, tempfile, bufsize, query_parser); end - # source://rack//lib/rack/multipart/parser.rb#217 + # source://rack//lib/rack/multipart/parser.rb#231 def parse(io); end - # source://rack//lib/rack/multipart/parser.rb#240 + # source://rack//lib/rack/multipart/parser.rb#254 def result; end # Returns the value of attribute state. # - # source://rack//lib/rack/multipart/parser.rb#198 + # source://rack//lib/rack/multipart/parser.rb#212 def state; end private @@ -2175,25 +2203,23 @@ class Rack::Multipart::Parser # end of the boundary. If we don't find the start or end of the # boundary, clear the buffer and return nil. # - # source://rack//lib/rack/multipart/parser.rb#434 + # source://rack//lib/rack/multipart/parser.rb#443 def consume_boundary; end - # From WEBrick::HTTPUtils - # - # source://rack//lib/rack/multipart/parser.rb#252 - def dequote(str); end - # Return the related Encoding object. However, because # enc is submitted by the user, it may be invalid, so # use a binary encoding in that case. # - # source://rack//lib/rack/multipart/parser.rb#489 + # source://rack//lib/rack/multipart/parser.rb#498 def find_encoding(enc); end - # source://rack//lib/rack/multipart/parser.rb#294 + # source://rack//lib/rack/multipart/parser.rb#303 def handle_consume_token; end - # source://rack//lib/rack/multipart/parser.rb#495 + # source://rack//lib/rack/multipart/parser.rb#513 + def handle_dummy_encoding(name, body); end + + # source://rack//lib/rack/multipart/parser.rb#523 def handle_empty_content!(content); end # This handles the initial parser state. We read until we find the starting @@ -2204,190 +2230,258 @@ class Rack::Multipart::Parser # boundary. The client would have to deliberately craft a response # with the opening boundary beyond the buffer size for that to happen. # - # source://rack//lib/rack/multipart/parser.rb#271 + # source://rack//lib/rack/multipart/parser.rb#280 def handle_fast_forward; end - # source://rack//lib/rack/multipart/parser.rb#411 + # source://rack//lib/rack/multipart/parser.rb#420 def handle_mime_body; end - # source://rack//lib/rack/multipart/parser.rb#306 + # source://rack//lib/rack/multipart/parser.rb#315 def handle_mime_head; end - # source://rack//lib/rack/multipart/parser.rb#443 + # source://rack//lib/rack/multipart/parser.rb#452 def normalize_filename(filename); end - # source://rack//lib/rack/multipart/parser.rb#258 + # source://rack//lib/rack/multipart/parser.rb#267 def read_data(io, outbuf); end - # source://rack//lib/rack/multipart/parser.rb#456 + # source://rack//lib/rack/multipart/parser.rb#465 def tag_multipart_encoding(filename, content_type, name, body); end class << self - # source://rack//lib/rack/multipart/parser.rb#87 + # source://rack//lib/rack/multipart/parser.rb#101 def parse(io, content_length, content_type, tmpfile, bufsize, qp); end - # source://rack//lib/rack/multipart/parser.rb#80 + # source://rack//lib/rack/multipart/parser.rb#94 def parse_boundary(content_type); end end end -# source://rack//lib/rack/multipart/parser.rb#40 +# source://rack//lib/rack/multipart/parser.rb#54 Rack::Multipart::Parser::BUFSIZE = T.let(T.unsafe(nil), Integer) -# source://rack//lib/rack/multipart/parser.rb#48 +# source://rack//lib/rack/multipart/parser.rb#62 class Rack::Multipart::Parser::BoundedIO # @return [BoundedIO] a new instance of BoundedIO # - # source://rack//lib/rack/multipart/parser.rb#49 + # source://rack//lib/rack/multipart/parser.rb#63 def initialize(io, content_length); end - # source://rack//lib/rack/multipart/parser.rb#55 + # source://rack//lib/rack/multipart/parser.rb#69 def read(size, outbuf = T.unsafe(nil)); end end -# source://rack//lib/rack/multipart/parser.rb#453 +# source://rack//lib/rack/multipart/parser.rb#462 Rack::Multipart::Parser::CHARSET = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/multipart/parser.rb#305 +# source://rack//lib/rack/multipart/parser.rb#314 Rack::Multipart::Parser::CONTENT_DISPOSITION_MAX_BYTES = T.let(T.unsafe(nil), Integer) -# source://rack//lib/rack/multipart/parser.rb#304 +# source://rack//lib/rack/multipart/parser.rb#313 Rack::Multipart::Parser::CONTENT_DISPOSITION_MAX_PARAMS = T.let(T.unsafe(nil), Integer) -# source://rack//lib/rack/multipart/parser.rb#107 +# source://rack//lib/rack/multipart/parser.rb#121 class Rack::Multipart::Parser::Collector include ::Enumerable # @return [Collector] a new instance of Collector # - # source://rack//lib/rack/multipart/parser.rb#143 + # source://rack//lib/rack/multipart/parser.rb#157 def initialize(tempfile); end - # source://rack//lib/rack/multipart/parser.rb#149 + # source://rack//lib/rack/multipart/parser.rb#163 def each; end - # source://rack//lib/rack/multipart/parser.rb#169 + # source://rack//lib/rack/multipart/parser.rb#183 def on_mime_body(mime_index, content); end - # source://rack//lib/rack/multipart/parser.rb#173 + # source://rack//lib/rack/multipart/parser.rb#187 def on_mime_finish(mime_index); end - # source://rack//lib/rack/multipart/parser.rb#153 + # source://rack//lib/rack/multipart/parser.rb#167 def on_mime_head(mime_index, head, filename, content_type, name); end private - # source://rack//lib/rack/multipart/parser.rb#178 + # source://rack//lib/rack/multipart/parser.rb#192 def check_part_limits; end end -# source://rack//lib/rack/multipart/parser.rb#131 +# source://rack//lib/rack/multipart/parser.rb#145 class Rack::Multipart::Parser::Collector::BufferPart < ::Rack::Multipart::Parser::Collector::MimePart - # source://rack//lib/rack/multipart/parser.rb#133 + # source://rack//lib/rack/multipart/parser.rb#147 def close; end # @return [Boolean] # - # source://rack//lib/rack/multipart/parser.rb#132 + # source://rack//lib/rack/multipart/parser.rb#146 def file?; end end -# source://rack//lib/rack/multipart/parser.rb#108 +# source://rack//lib/rack/multipart/parser.rb#122 class Rack::Multipart::Parser::Collector::MimePart < ::Struct # @yield [data] # - # source://rack//lib/rack/multipart/parser.rb#109 + # source://rack//lib/rack/multipart/parser.rb#123 def get_data; end end -# source://rack//lib/rack/multipart/parser.rb#136 +# source://rack//lib/rack/multipart/parser.rb#150 class Rack::Multipart::Parser::Collector::TempfilePart < ::Rack::Multipart::Parser::Collector::MimePart - # source://rack//lib/rack/multipart/parser.rb#138 + # source://rack//lib/rack/multipart/parser.rb#152 def close; end # @return [Boolean] # - # source://rack//lib/rack/multipart/parser.rb#137 + # source://rack//lib/rack/multipart/parser.rb#151 def file?; end end -# source://rack//lib/rack/multipart/parser.rb#78 +# source://rack//lib/rack/multipart/parser.rb#92 Rack::Multipart::Parser::EMPTY = T.let(T.unsafe(nil), Rack::Multipart::Parser::MultipartInfo) -# source://rack//lib/rack/multipart/parser.rb#77 +# source://rack//lib/rack/multipart/parser.rb#91 class Rack::Multipart::Parser::MultipartInfo < ::Struct # Returns the value of attribute params # # @return [Object] the current value of params + # + # source://rack//lib/rack/multipart/parser.rb#91 def params; end # Sets the attribute params # # @param value [Object] the value to set the attribute params to. # @return [Object] the newly set value + # + # source://rack//lib/rack/multipart/parser.rb#91 def params=(_); end # Returns the value of attribute tmp_files # # @return [Object] the current value of tmp_files + # + # source://rack//lib/rack/multipart/parser.rb#91 def tmp_files; end # Sets the attribute tmp_files # # @param value [Object] the value to set the attribute tmp_files to. # @return [Object] the newly set value + # + # source://rack//lib/rack/multipart/parser.rb#91 def tmp_files=(_); end class << self + # source://rack//lib/rack/multipart/parser.rb#91 def [](*_arg0); end + + # source://rack//lib/rack/multipart/parser.rb#91 def inspect; end + + # source://rack//lib/rack/multipart/parser.rb#91 def keyword_init?; end + + # source://rack//lib/rack/multipart/parser.rb#91 def members; end + + # source://rack//lib/rack/multipart/parser.rb#91 def new(*_arg0); end end end -# source://rack//lib/rack/multipart/parser.rb#42 +# source://rack//lib/rack/multipart/parser.rb#504 +Rack::Multipart::Parser::REENCODE_DUMMY_ENCODINGS = T.let(T.unsafe(nil), Hash) + +# source://rack//lib/rack/multipart/parser.rb#56 Rack::Multipart::Parser::TEMPFILE_FACTORY = T.let(T.unsafe(nil), Proc) -# source://rack//lib/rack/multipart/parser.rb#41 +# source://rack//lib/rack/multipart/parser.rb#55 Rack::Multipart::Parser::TEXT_PLAIN = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/multipart/uploaded_file.rb#8 +# Despite the misleading name, UploadedFile is designed for use for +# preparing multipart file upload bodies, generally for use in tests. +# It is not designed for and should not be used for handling uploaded +# files (there is no need for that, since Rack's multipart parser +# already creates Tempfiles for that). Using this with non-trusted +# filenames can create a security vulnerability. +# +# You should only use this class if you plan on passing the instances +# to Rack::MockRequest for use in creating multipart request bodies. +# +# UploadedFile delegates most methods to the tempfile it contains. +# +# source://rack//lib/rack/multipart/uploaded_file.rb#19 class Rack::Multipart::UploadedFile + # Create a new UploadedFile. For backwards compatibility, this accepts + # both positional and keyword versions of the same arguments: + # + # filepath/path :: The path to the file + # ct/content_type :: The content_type of the file + # bin/binary :: Whether to set binmode on the file before copying data into it. + # + # If both positional and keyword arguments are present, the keyword arguments + # take precedence. + # + # The following keyword-only arguments are also accepted: + # + # filename :: Override the filename to use for the file. This is so the + # filename for the upload does not need to match the basename of + # the file path. This should not contain slashes, unless you are + # trying to test how an application handles invalid filenames in + # multipart upload bodies. + # io :: Use the given IO-like instance as the tempfile, instead of creating + # a Tempfile instance. This is useful for building multipart file + # upload bodies without a file being present on the filesystem. If you are + # providing this, you should also provide the filename argument. + # # @return [UploadedFile] a new instance of UploadedFile # - # source://rack//lib/rack/multipart/uploaded_file.rb#16 + # source://rack//lib/rack/multipart/uploaded_file.rb#49 def initialize(filepath = T.unsafe(nil), ct = T.unsafe(nil), bin = T.unsafe(nil), path: T.unsafe(nil), content_type: T.unsafe(nil), binary: T.unsafe(nil), filename: T.unsafe(nil), io: T.unsafe(nil)); end - # The content type of the "uploaded" file + # The content type of the instance. # - # source://rack//lib/rack/multipart/uploaded_file.rb#14 + # source://rack//lib/rack/multipart/uploaded_file.rb#26 def content_type; end - # The content type of the "uploaded" file + # The content type of the instance. # - # source://rack//lib/rack/multipart/uploaded_file.rb#14 + # source://rack//lib/rack/multipart/uploaded_file.rb#26 def content_type=(_arg0); end - # source://rack//lib/rack/multipart/uploaded_file.rb#31 + # The path of the tempfile for the instance, if the tempfile has a path. + # nil if the tempfile does not have a path. + # + # source://rack//lib/rack/multipart/uploaded_file.rb#69 def local_path; end - # source://rack//lib/rack/multipart/uploaded_file.rb#40 + # Delegate method missing calls to the tempfile. + # + # source://rack//lib/rack/multipart/uploaded_file.rb#77 def method_missing(method_name, *args, &block); end - # The filename, *not* including the path, of the "uploaded" file + # The provided name of the file. This generally is the basename of + # path provided during initialization, but it can contain slashes if they + # were present in the filename argument when the instance was created. # - # source://rack//lib/rack/multipart/uploaded_file.rb#11 + # source://rack//lib/rack/multipart/uploaded_file.rb#23 def original_filename; end - # source://rack//lib/rack/multipart/uploaded_file.rb#31 + # The path of the tempfile for the instance, if the tempfile has a path. + # nil if the tempfile does not have a path. + # + # source://rack//lib/rack/multipart/uploaded_file.rb#66 def path; end + private + + # Return true if the tempfile responds to the method. + # # @return [Boolean] # - # source://rack//lib/rack/multipart/uploaded_file.rb#36 - def respond_to?(*args); end + # source://rack//lib/rack/multipart/uploaded_file.rb#72 + def respond_to_missing?(*args); end end # source://rack//lib/rack/null_logger.rb#6 @@ -2529,10 +2623,10 @@ class Rack::QueryParser # source://rack//lib/rack/query_parser.rb#60 def initialize(params_class, param_depth_limit, bytesize_limit: T.unsafe(nil), params_limit: T.unsafe(nil)); end - # source://rack//lib/rack/query_parser.rb#192 + # source://rack//lib/rack/query_parser.rb#194 def make_params; end - # source://rack//lib/rack/query_parser.rb#196 + # source://rack//lib/rack/query_parser.rb#198 def new_depth_limit(param_depth_limit); end # normalize_params recursively expands parameters into structural types. If @@ -2541,7 +2635,7 @@ class Rack::QueryParser # and should no longer be used, it is kept for backwards compatibility with # earlier versions of rack. # - # source://rack//lib/rack/query_parser.rb#120 + # source://rack//lib/rack/query_parser.rb#122 def normalize_params(params, name, v, _depth = T.unsafe(nil)); end # Returns the value of attribute param_depth_limit. @@ -2555,7 +2649,7 @@ class Rack::QueryParser # ParameterTypeError is raised. Users are encouraged to return a 400 in this # case. # - # source://rack//lib/rack/query_parser.rb#99 + # source://rack//lib/rack/query_parser.rb#107 def parse_nested_query(qs, separator = T.unsafe(nil)); end # Stolen from Mongrel, with some small modifications: @@ -2566,27 +2660,34 @@ class Rack::QueryParser # source://rack//lib/rack/query_parser.rb#71 def parse_query(qs, separator = T.unsafe(nil), &unescaper); end + # Parses a query string by breaking it up at the '&', returning all key-value + # pairs as an array of [key, value] arrays. Unlike parse_query, this preserves + # all duplicate keys rather than collapsing them. + # + # source://rack//lib/rack/query_parser.rb#92 + def parse_query_pairs(qs, separator = T.unsafe(nil)); end + private # @raise [ParamsTooDeepError] # - # source://rack//lib/rack/query_parser.rb#124 + # source://rack//lib/rack/query_parser.rb#126 def _normalize_params(params, name, v, depth); end - # source://rack//lib/rack/query_parser.rb#218 - def check_query_string(qs, sep); end + # source://rack//lib/rack/query_parser.rb#220 + def each_query_pair(qs, separator, unescaper = T.unsafe(nil)); end # @return [Boolean] # - # source://rack//lib/rack/query_parser.rb#206 + # source://rack//lib/rack/query_parser.rb#208 def params_hash_has_key?(hash, key); end # @return [Boolean] # - # source://rack//lib/rack/query_parser.rb#202 + # source://rack//lib/rack/query_parser.rb#204 def params_hash_type?(obj); end - # source://rack//lib/rack/query_parser.rb#234 + # source://rack//lib/rack/query_parser.rb#251 def unescape(string, encoding = T.unsafe(nil)); end class << self @@ -2624,8 +2725,9 @@ class Rack::QueryParser::ParameterTypeError < ::TypeError include ::Rack::BadRequest end -# source://rack//lib/rack/query_parser.rb#238 +# source://rack//lib/rack/query_parser.rb#255 class Rack::QueryParser::Params < ::Hash + # source://rack//lib/rack/query_parser.rb#256 def to_params_hash; end end @@ -2663,7 +2765,7 @@ Rack::RACK_IS_HIJACK = T.let(T.unsafe(nil), String) # source://rack//lib/rack/constants.rb#45 Rack::RACK_LOGGER = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#66 +# source://rack//lib/rack/constants.rb#67 Rack::RACK_METHODOVERRIDE_ORIGINAL_METHOD = T.let(T.unsafe(nil), String) # source://rack//lib/rack/constants.rb#54 @@ -2672,34 +2774,37 @@ Rack::RACK_MULTIPART_BUFFER_SIZE = T.let(T.unsafe(nil), String) # source://rack//lib/rack/constants.rb#55 Rack::RACK_MULTIPART_TEMPFILE_FACTORY = T.let(T.unsafe(nil), String) +# source://rack//lib/rack/constants.rb#57 +Rack::RACK_PROTOCOL = T.let(T.unsafe(nil), String) + # source://rack//lib/rack/constants.rb#53 Rack::RACK_RECURSIVE_INCLUDE = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#62 +# source://rack//lib/rack/constants.rb#63 Rack::RACK_REQUEST_COOKIE_HASH = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#63 +# source://rack//lib/rack/constants.rb#64 Rack::RACK_REQUEST_COOKIE_STRING = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#61 +# source://rack//lib/rack/constants.rb#62 Rack::RACK_REQUEST_FORM_ERROR = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#58 +# source://rack//lib/rack/constants.rb#59 Rack::RACK_REQUEST_FORM_HASH = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#57 +# source://rack//lib/rack/constants.rb#58 Rack::RACK_REQUEST_FORM_INPUT = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#59 +# source://rack//lib/rack/constants.rb#60 Rack::RACK_REQUEST_FORM_PAIRS = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#60 +# source://rack//lib/rack/constants.rb#61 Rack::RACK_REQUEST_FORM_VARS = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#64 +# source://rack//lib/rack/constants.rb#65 Rack::RACK_REQUEST_QUERY_HASH = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#65 +# source://rack//lib/rack/constants.rb#66 Rack::RACK_REQUEST_QUERY_STRING = T.let(T.unsafe(nil), String) # source://rack//lib/rack/constants.rb#56 @@ -2725,7 +2830,7 @@ Rack::RACK_URL_SCHEME = T.let(T.unsafe(nil), String) # source://rack//lib/rack/constants.rb#41 Rack::RACK_VERSION = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/version.rb#15 +# source://rack//lib/rack/version.rb#11 Rack::RELEASE = T.let(T.unsafe(nil), String) # source://rack//lib/rack/constants.rb#9 @@ -2823,27 +2928,18 @@ class Rack::Request # source://rack//lib/rack/request.rb#62 def initialize(env); end - # source://rack//lib/rack/request.rb#76 + # source://rack//lib/rack/request.rb#81 def delete_param(k); end - # source://rack//lib/rack/request.rb#67 - def params; end + # source://rack//lib/rack/request.rb#68 + def ip; end - # source://rack//lib/rack/request.rb#67 - def query; end + # source://rack//lib/rack/request.rb#72 + def params; end - # source://rack//lib/rack/request.rb#71 + # source://rack//lib/rack/request.rb#76 def update_param(k, v); end - # source://yard/0.9.37/lib/yard/server/rack_adapter.rb#94 - def version_supplied; end - - # source://yard/0.9.37/lib/yard/server/rack_adapter.rb#94 - def version_supplied=(_arg0); end - - # source://yard/0.9.37/lib/yard/server/rack_adapter.rb#96 - def xhr?; end - class << self # The priority when checking forwarded headers. The default # is [:forwarded, :x_forwarded], which means, check the @@ -2914,9 +3010,9 @@ end # source://rack//lib/rack/request.rb#60 Rack::Request::ALLOWED_SCHEMES = T.let(T.unsafe(nil), Array) -# source://rack//lib/rack/request.rb#82 +# source://rack//lib/rack/request.rb#87 module Rack::Request::Env - # source://rack//lib/rack/request.rb#86 + # source://rack//lib/rack/request.rb#91 def initialize(env); end # Add a header that may have multiple values. @@ -2929,33 +3025,33 @@ module Rack::Request::Env # # http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 # - # source://rack//lib/rack/request.rb#129 + # source://rack//lib/rack/request.rb#134 def add_header(key, v); end # Delete a request specific value for `name`. # - # source://rack//lib/rack/request.rb#140 + # source://rack//lib/rack/request.rb#145 def delete_header(name); end # Loops through each key / value pair in the request specific data. # - # source://rack//lib/rack/request.rb#111 + # source://rack//lib/rack/request.rb#116 def each_header(&block); end # The environment of the request. # - # source://rack//lib/rack/request.rb#84 + # source://rack//lib/rack/request.rb#89 def env; end # If a block is given, it yields to the block if the value hasn't been set # on the request. # - # source://rack//lib/rack/request.rb#106 + # source://rack//lib/rack/request.rb#111 def fetch_header(name, &block); end # Get a request specific value for `name`. # - # source://rack//lib/rack/request.rb#100 + # source://rack//lib/rack/request.rb#105 def get_header(name); end # Predicate method to test to see if `name` has been set as request @@ -2963,25 +3059,25 @@ module Rack::Request::Env # # @return [Boolean] # - # source://rack//lib/rack/request.rb#95 + # source://rack//lib/rack/request.rb#100 def has_header?(name); end # Set a request specific value for `name` to `v` # - # source://rack//lib/rack/request.rb#116 + # source://rack//lib/rack/request.rb#121 def set_header(name, v); end private - # source://rack//lib/rack/request.rb#144 + # source://rack//lib/rack/request.rb#149 def initialize_copy(other); end end -# source://rack//lib/rack/request.rb#149 +# source://rack//lib/rack/request.rb#154 module Rack::Request::Helpers # Returns the data received in the query string. # - # source://rack//lib/rack/request.rb#484 + # source://rack//lib/rack/request.rb#491 def GET; end # Returns the data received in the request body. @@ -2989,13 +3085,13 @@ module Rack::Request::Helpers # This method support both application/x-www-form-urlencoded and # multipart/form-data. # - # source://rack//lib/rack/request.rb#503 + # source://rack//lib/rack/request.rb#539 def POST; end - # source://rack//lib/rack/request.rb#607 + # source://rack//lib/rack/request.rb#608 def accept_encoding; end - # source://rack//lib/rack/request.rb#611 + # source://rack//lib/rack/request.rb#612 def accept_language; end # The authority of the incoming request as defined by RFC3976. @@ -3004,13 +3100,13 @@ module Rack::Request::Helpers # In HTTP/1, this is the `host` header. # In HTTP/2, this is the `:authority` pseudo-header. # - # source://rack//lib/rack/request.rb#266 + # source://rack//lib/rack/request.rb#271 def authority; end - # source://rack//lib/rack/request.rb#590 + # source://rack//lib/rack/request.rb#591 def base_url; end - # source://rack//lib/rack/request.rb#190 + # source://rack//lib/rack/request.rb#195 def body; end # The character set of the request body if a "charset" media type @@ -3018,23 +3114,23 @@ module Rack::Request::Helpers # that, per RFC2616, text/* media types that specify no explicit # charset are to be considered ISO-8859-1. # - # source://rack//lib/rack/request.rb#458 + # source://rack//lib/rack/request.rb#465 def content_charset; end - # source://rack//lib/rack/request.rb#199 + # source://rack//lib/rack/request.rb#204 def content_length; end - # source://rack//lib/rack/request.rb#308 + # source://rack//lib/rack/request.rb#313 def content_type; end - # source://rack//lib/rack/request.rb#293 + # source://rack//lib/rack/request.rb#298 def cookies; end # Checks the HTTP request method (or verb) to see if it was of type DELETE # # @return [Boolean] # - # source://rack//lib/rack/request.rb#220 + # source://rack//lib/rack/request.rb#225 def delete?; end # Destructively delete a parameter, whether it's in GET or POST. Returns the value of the deleted parameter. @@ -3043,7 +3139,7 @@ module Rack::Request::Helpers # # env['rack.input'] is not touched. # - # source://rack//lib/rack/request.rb#585 + # source://rack//lib/rack/request.rb#586 def delete_param(k); end # Determine whether the request body contains form-data by checking @@ -3057,46 +3153,54 @@ module Rack::Request::Helpers # # @return [Boolean] # - # source://rack//lib/rack/request.rb#470 + # source://rack//lib/rack/request.rb#477 def form_data?; end - # source://rack//lib/rack/request.rb#393 + # Returns the form data pairs received in the request body. + # + # This method support both application/x-www-form-urlencoded and + # multipart/form-data. + # + # source://rack//lib/rack/request.rb#499 + def form_pairs; end + + # source://rack//lib/rack/request.rb#398 def forwarded_authority; end - # source://rack//lib/rack/request.rb#353 + # source://rack//lib/rack/request.rb#358 def forwarded_for; end - # source://rack//lib/rack/request.rb#374 + # source://rack//lib/rack/request.rb#379 def forwarded_port; end - # source://rack//lib/rack/request.rb#603 + # source://rack//lib/rack/request.rb#604 def fullpath; end # Checks the HTTP request method (or verb) to see if it was of type GET # # @return [Boolean] # - # source://rack//lib/rack/request.rb#223 + # source://rack//lib/rack/request.rb#228 def get?; end # Checks the HTTP request method (or verb) to see if it was of type HEAD # # @return [Boolean] # - # source://rack//lib/rack/request.rb#226 + # source://rack//lib/rack/request.rb#231 def head?; end # Returns a formatted host, suitable for being used in a URI. # - # source://rack//lib/rack/request.rb#333 + # source://rack//lib/rack/request.rb#338 def host; end # The `HTTP_HOST` header. # - # source://rack//lib/rack/request.rb#318 + # source://rack//lib/rack/request.rb#323 def host_authority; end - # source://rack//lib/rack/request.rb#322 + # source://rack//lib/rack/request.rb#327 def host_with_port(authority = T.unsafe(nil)); end # Returns an address suitable for being to resolve to an address. @@ -3104,20 +3208,20 @@ module Rack::Request::Helpers # as +host+. In the case of IPv6 or future address formats, the square # brackets are removed. # - # source://rack//lib/rack/request.rb#341 + # source://rack//lib/rack/request.rb#346 def hostname; end - # source://rack//lib/rack/request.rb#414 + # source://rack//lib/rack/request.rb#419 def ip; end # Checks the HTTP request method (or verb) to see if it was of type LINK # # @return [Boolean] # - # source://rack//lib/rack/request.rb#232 + # source://rack//lib/rack/request.rb#237 def link?; end - # source://rack//lib/rack/request.rb#200 + # source://rack//lib/rack/request.rb#205 def logger; end # The media type (type/subtype) portion of the CONTENT_TYPE header @@ -3127,7 +3231,7 @@ module Rack::Request::Helpers # For more information on the use of media types in HTTP, see: # http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7 # - # source://rack//lib/rack/request.rb#441 + # source://rack//lib/rack/request.rb#448 def media_type; end # The media type parameters provided in CONTENT_TYPE as a Hash, or @@ -3136,21 +3240,21 @@ module Rack::Request::Helpers # this method responds with the following Hash: # { 'charset' => 'utf-8' } # - # source://rack//lib/rack/request.rb#450 + # source://rack//lib/rack/request.rb#457 def media_type_params; end # Checks the HTTP request method (or verb) to see if it was of type OPTIONS # # @return [Boolean] # - # source://rack//lib/rack/request.rb#229 + # source://rack//lib/rack/request.rb#234 def options?; end # The union of GET and POST data. # # Note that modifications will not be persisted in the env. Use update_param or delete_param if you want to destructively modify params. # - # source://rack//lib/rack/request.rb#556 + # source://rack//lib/rack/request.rb#553 def params; end # Determine whether the request body contains data by checking @@ -3158,107 +3262,113 @@ module Rack::Request::Helpers # # @return [Boolean] # - # source://rack//lib/rack/request.rb#479 + # source://rack//lib/rack/request.rb#486 def parseable_data?; end # Checks the HTTP request method (or verb) to see if it was of type PATCH # # @return [Boolean] # - # source://rack//lib/rack/request.rb#235 + # source://rack//lib/rack/request.rb#240 def patch?; end - # source://rack//lib/rack/request.rb#599 + # source://rack//lib/rack/request.rb#600 def path; end - # source://rack//lib/rack/request.rb#194 + # source://rack//lib/rack/request.rb#199 def path_info; end - # source://rack//lib/rack/request.rb#195 + # source://rack//lib/rack/request.rb#200 def path_info=(s); end - # source://rack//lib/rack/request.rb#345 + # source://rack//lib/rack/request.rb#350 def port; end # Checks the HTTP request method (or verb) to see if it was of type POST # # @return [Boolean] # - # source://rack//lib/rack/request.rb#238 + # source://rack//lib/rack/request.rb#243 def post?; end # Checks the HTTP request method (or verb) to see if it was of type PUT # # @return [Boolean] # - # source://rack//lib/rack/request.rb#241 + # source://rack//lib/rack/request.rb#246 def put?; end - # source://rack//lib/rack/request.rb#198 + # Allow overriding the query parser that the receiver will use. + # By default Rack::Utils.default_query_parser is used. + # + # source://rack//lib/rack/request.rb#559 + def query_parser=(_arg0); end + + # source://rack//lib/rack/request.rb#203 def query_string; end # the referer of the client # - # source://rack//lib/rack/request.rb#204 + # source://rack//lib/rack/request.rb#209 def referer; end # the referer of the client # - # source://rack//lib/rack/request.rb#204 + # source://rack//lib/rack/request.rb#210 def referrer; end - # source://rack//lib/rack/request.rb#197 + # source://rack//lib/rack/request.rb#202 def request_method; end - # source://rack//lib/rack/request.rb#249 + # source://rack//lib/rack/request.rb#254 def scheme; end - # source://rack//lib/rack/request.rb#191 + # source://rack//lib/rack/request.rb#196 def script_name; end - # source://rack//lib/rack/request.rb#192 + # source://rack//lib/rack/request.rb#197 def script_name=(s); end # The authority as defined by the `SERVER_NAME` and `SERVER_PORT` # variables. # - # source://rack//lib/rack/request.rb#272 + # source://rack//lib/rack/request.rb#277 def server_authority; end - # source://rack//lib/rack/request.rb#285 + # source://rack//lib/rack/request.rb#290 def server_name; end - # source://rack//lib/rack/request.rb#289 + # source://rack//lib/rack/request.rb#294 def server_port; end - # source://rack//lib/rack/request.rb#207 + # source://rack//lib/rack/request.rb#212 def session; end - # source://rack//lib/rack/request.rb#213 + # source://rack//lib/rack/request.rb#218 def session_options; end # @return [Boolean] # - # source://rack//lib/rack/request.rb#410 + # source://rack//lib/rack/request.rb#415 def ssl?; end # Checks the HTTP request method (or verb) to see if it was of type TRACE # # @return [Boolean] # - # source://rack//lib/rack/request.rb#244 + # source://rack//lib/rack/request.rb#249 def trace?; end # @return [Boolean] # - # source://rack//lib/rack/request.rb#615 + # source://rack//lib/rack/request.rb#616 def trusted_proxy?(ip); end # Checks the HTTP request method (or verb) to see if it was of type UNLINK # # @return [Boolean] # - # source://rack//lib/rack/request.rb#247 + # source://rack//lib/rack/request.rb#252 def unlink?; end # Destructively update a parameter, whether it's in GET and/or POST. Returns nil. @@ -3267,136 +3377,128 @@ module Rack::Request::Helpers # # env['rack.input'] is not touched. # - # source://rack//lib/rack/request.rb#565 + # source://rack//lib/rack/request.rb#566 def update_param(k, v); end # Tries to return a remake of the original request URL as a string. # - # source://rack//lib/rack/request.rb#595 + # source://rack//lib/rack/request.rb#596 def url; end - # source://rack//lib/rack/request.rb#201 + # source://rack//lib/rack/request.rb#206 def user_agent; end - # like Hash#values_at - # - # source://rack//lib/rack/request.rb#620 - def values_at(*keys); end - # @return [Boolean] # - # source://rack//lib/rack/request.rb#313 + # source://rack//lib/rack/request.rb#318 def xhr?; end private - # source://rack//lib/rack/request.rb#776 + # source://rack//lib/rack/request.rb#767 def allowed_scheme(header); end - # source://rack//lib/rack/request.rb#628 + # source://rack//lib/rack/request.rb#622 def default_session; end - # source://rack//lib/rack/request.rb#684 + # source://rack//lib/rack/request.rb#679 def expand_param_pairs(pairs, query_parser = T.unsafe(nil)); end - # source://rack//lib/rack/request.rb#780 + # source://rack//lib/rack/request.rb#771 def forwarded_priority; end - # source://rack//lib/rack/request.rb#752 + # source://rack//lib/rack/request.rb#743 def forwarded_scheme; end # Get an array of values set in the RFC 7239 `Forwarded` request header. # - # source://rack//lib/rack/request.rb#668 + # source://rack//lib/rack/request.rb#662 def get_http_forwarded(token); end - # source://rack//lib/rack/request.rb#644 + # source://rack//lib/rack/request.rb#638 def parse_http_accept_header(header); end - # source://rack//lib/rack/request.rb#680 + # source://rack//lib/rack/request.rb#674 def parse_multipart; end - # source://rack//lib/rack/request.rb#676 + # source://rack//lib/rack/request.rb#670 def parse_query(qs, d = T.unsafe(nil)); end - # source://rack//lib/rack/request.rb#672 + # source://rack//lib/rack/request.rb#666 def query_parser; end - # source://rack//lib/rack/request.rb#743 - def reject_trusted_ip_addresses(ip_addresses); end - - # source://rack//lib/rack/request.rb#737 + # source://rack//lib/rack/request.rb#732 def split_authority(authority); end - # source://rack//lib/rack/request.rb#694 + # source://rack//lib/rack/request.rb#689 def split_header(value); end # Assist with compatibility when processing `X-Forwarded-For`. # - # source://rack//lib/rack/request.rb#631 + # source://rack//lib/rack/request.rb#625 def wrap_ipv6(host); end - # source://rack//lib/rack/request.rb#784 + # source://rack//lib/rack/request.rb#775 def x_forwarded_proto_priority; end end -# source://rack//lib/rack/request.rb#722 +# source://rack//lib/rack/request.rb#717 Rack::Request::Helpers::AUTHORITY = T.let(T.unsafe(nil), Regexp) # Default ports depending on scheme. Used to decide whether or not # to include the port in a generated URI. # -# source://rack//lib/rack/request.rb#168 +# source://rack//lib/rack/request.rb#173 Rack::Request::Helpers::DEFAULT_PORTS = T.let(T.unsafe(nil), Hash) # The set of form-data media-types. Requests that do not indicate # one of the media types present in this list will not be eligible # for form-data / param parsing. # -# source://rack//lib/rack/request.rb#153 +# source://rack//lib/rack/request.rb#158 Rack::Request::Helpers::FORM_DATA_MEDIA_TYPES = T.let(T.unsafe(nil), Array) -# source://rack//lib/rack/request.rb#747 +# source://rack//lib/rack/request.rb#738 Rack::Request::Helpers::FORWARDED_SCHEME_HEADERS = T.let(T.unsafe(nil), Hash) -# source://rack//lib/rack/request.rb#176 +# source://rack//lib/rack/request.rb#181 Rack::Request::Helpers::HTTP_FORWARDED = T.let(T.unsafe(nil), String) # The address of the client which connected to the proxy. # -# source://rack//lib/rack/request.rb#171 +# source://rack//lib/rack/request.rb#176 Rack::Request::Helpers::HTTP_X_FORWARDED_FOR = T.let(T.unsafe(nil), String) # The contents of the host/:authority header sent to the proxy. # -# source://rack//lib/rack/request.rb#174 +# source://rack//lib/rack/request.rb#179 Rack::Request::Helpers::HTTP_X_FORWARDED_HOST = T.let(T.unsafe(nil), String) # The port used to connect to the proxy. # -# source://rack//lib/rack/request.rb#185 +# source://rack//lib/rack/request.rb#190 Rack::Request::Helpers::HTTP_X_FORWARDED_PORT = T.let(T.unsafe(nil), String) # The protocol used to connect to the proxy. # -# source://rack//lib/rack/request.rb#182 +# source://rack//lib/rack/request.rb#187 Rack::Request::Helpers::HTTP_X_FORWARDED_PROTO = T.let(T.unsafe(nil), String) # The value of the scheme sent to the proxy. # -# source://rack//lib/rack/request.rb#179 +# source://rack//lib/rack/request.rb#184 Rack::Request::Helpers::HTTP_X_FORWARDED_SCHEME = T.let(T.unsafe(nil), String) # Another way for specifying https scheme was used. # -# source://rack//lib/rack/request.rb#188 +# source://rack//lib/rack/request.rb#193 Rack::Request::Helpers::HTTP_X_FORWARDED_SSL = T.let(T.unsafe(nil), String) # The set of media-types. Requests that do not indicate # one of the media types present in this list will not be eligible # for param parsing like soap attachments or generic multiparts # -# source://rack//lib/rack/request.rb#161 +# source://rack//lib/rack/request.rb#166 Rack::Request::Helpers::PARSEABLE_DATA_MEDIA_TYPES = T.let(T.unsafe(nil), Array) # Rack::Response provides a convenient interface to create a Rack @@ -3446,12 +3548,12 @@ class Rack::Response # @raise [ArgumentError] # - # source://rack//lib/rack/response.rb#164 + # source://rack//lib/rack/response.rb#177 def [](key); end # @raise [ArgumentError] # - # source://rack//lib/rack/response.rb#168 + # source://rack//lib/rack/response.rb#178 def []=(key, value); end # Returns the value of attribute body. @@ -3554,7 +3656,7 @@ class Rack::Response # # @return [Array] a 3-tuple suitable of `[status, headers, body]` # - # source://rack//lib/rack/response.rb#107 + # source://rack//lib/rack/response.rb#128 def to_a(&block); end # Append a chunk to the response body. @@ -3837,7 +3939,7 @@ Rack::Response::STATUS_WITH_NO_ENTITY_BODY = T.let(T.unsafe(nil), Hash) class Rack::RewindableInput # @return [RewindableInput] a new instance of RewindableInput # - # source://rack//lib/rack/rewindable_input.rb#29 + # source://rack//lib/rack/rewindable_input.rb#32 def initialize(io); end # Closes this RewindableInput object without closing the originally @@ -3846,32 +3948,32 @@ class Rack::RewindableInput # # This method may be called multiple times. It does nothing on subsequent calls. # - # source://rack//lib/rack/rewindable_input.rb#65 + # source://rack//lib/rack/rewindable_input.rb#68 def close; end - # source://rack//lib/rack/rewindable_input.rb#45 + # source://rack//lib/rack/rewindable_input.rb#48 def each(&block); end - # source://rack//lib/rack/rewindable_input.rb#35 + # source://rack//lib/rack/rewindable_input.rb#38 def gets; end - # source://rack//lib/rack/rewindable_input.rb#40 + # source://rack//lib/rack/rewindable_input.rb#43 def read(*args); end - # source://rack//lib/rack/rewindable_input.rb#50 + # source://rack//lib/rack/rewindable_input.rb#53 def rewind; end - # source://rack//lib/rack/rewindable_input.rb#55 + # source://rack//lib/rack/rewindable_input.rb#58 def size; end private # @return [Boolean] # - # source://rack//lib/rack/rewindable_input.rb#109 + # source://rack//lib/rack/rewindable_input.rb#112 def filesystem_has_posix_semantics?; end - # source://rack//lib/rack/rewindable_input.rb#78 + # source://rack//lib/rack/rewindable_input.rb#81 def make_rewindable; end end @@ -4064,7 +4166,7 @@ class Rack::ShowExceptions # source://rack//lib/rack/show_exceptions.rb#65 def dump_exception(exception); end - # source://rack//lib/rack/show_exceptions.rb#116 + # source://rack//lib/rack/show_exceptions.rb#120 def h(obj); end # @return [Boolean] @@ -4072,10 +4174,10 @@ class Rack::ShowExceptions # source://rack//lib/rack/show_exceptions.rb#56 def prefers_plaintext?(env); end - # source://rack//lib/rack/show_exceptions.rb#76 + # source://rack//lib/rack/show_exceptions.rb#80 def pretty(env, exception); end - # source://rack//lib/rack/show_exceptions.rb#112 + # source://rack//lib/rack/show_exceptions.rb#116 def template; end private @@ -4094,101 +4196,142 @@ class Rack::ShowExceptions::Frame < ::Struct # Returns the value of attribute context_line # # @return [Object] the current value of context_line + # + # source://rack//lib/rack/show_exceptions.rb#21 def context_line; end # Sets the attribute context_line # # @param value [Object] the value to set the attribute context_line to. # @return [Object] the newly set value + # + # source://rack//lib/rack/show_exceptions.rb#21 def context_line=(_); end # Returns the value of attribute filename # # @return [Object] the current value of filename + # + # source://rack//lib/rack/show_exceptions.rb#21 def filename; end # Sets the attribute filename # # @param value [Object] the value to set the attribute filename to. # @return [Object] the newly set value + # + # source://rack//lib/rack/show_exceptions.rb#21 def filename=(_); end # Returns the value of attribute function # # @return [Object] the current value of function + # + # source://rack//lib/rack/show_exceptions.rb#21 def function; end # Sets the attribute function # # @param value [Object] the value to set the attribute function to. # @return [Object] the newly set value + # + # source://rack//lib/rack/show_exceptions.rb#21 def function=(_); end # Returns the value of attribute lineno # # @return [Object] the current value of lineno + # + # source://rack//lib/rack/show_exceptions.rb#21 def lineno; end # Sets the attribute lineno # # @param value [Object] the value to set the attribute lineno to. # @return [Object] the newly set value + # + # source://rack//lib/rack/show_exceptions.rb#21 def lineno=(_); end # Returns the value of attribute post_context # # @return [Object] the current value of post_context + # + # source://rack//lib/rack/show_exceptions.rb#21 def post_context; end # Sets the attribute post_context # # @param value [Object] the value to set the attribute post_context to. # @return [Object] the newly set value + # + # source://rack//lib/rack/show_exceptions.rb#21 def post_context=(_); end # Returns the value of attribute post_context_lineno # # @return [Object] the current value of post_context_lineno + # + # source://rack//lib/rack/show_exceptions.rb#21 def post_context_lineno; end # Sets the attribute post_context_lineno # # @param value [Object] the value to set the attribute post_context_lineno to. # @return [Object] the newly set value + # + # source://rack//lib/rack/show_exceptions.rb#21 def post_context_lineno=(_); end # Returns the value of attribute pre_context # # @return [Object] the current value of pre_context + # + # source://rack//lib/rack/show_exceptions.rb#21 def pre_context; end # Sets the attribute pre_context # # @param value [Object] the value to set the attribute pre_context to. # @return [Object] the newly set value + # + # source://rack//lib/rack/show_exceptions.rb#21 def pre_context=(_); end # Returns the value of attribute pre_context_lineno # # @return [Object] the current value of pre_context_lineno + # + # source://rack//lib/rack/show_exceptions.rb#21 def pre_context_lineno; end # Sets the attribute pre_context_lineno # # @param value [Object] the value to set the attribute pre_context_lineno to. # @return [Object] the newly set value + # + # source://rack//lib/rack/show_exceptions.rb#21 def pre_context_lineno=(_); end class << self + # source://rack//lib/rack/show_exceptions.rb#21 def [](*_arg0); end + + # source://rack//lib/rack/show_exceptions.rb#21 def inspect; end + + # source://rack//lib/rack/show_exceptions.rb#21 def keyword_init?; end + + # source://rack//lib/rack/show_exceptions.rb#21 def members; end + + # source://rack//lib/rack/show_exceptions.rb#21 def new(*_arg0); end end end -# source://rack//lib/rack/show_exceptions.rb#131 +# source://rack//lib/rack/show_exceptions.rb#135 Rack::ShowExceptions::TEMPLATE = T.let(T.unsafe(nil), ERB) # Rack::ShowStatus catches all empty responses and replaces them @@ -4410,10 +4553,10 @@ module Rack::Utils # Returns nil if the header is missing or syntactically invalid. # Returns an empty array if none of the ranges are satisfiable. # - # source://rack//lib/rack/utils.rb#409 + # source://rack//lib/rack/utils.rb#402 def byte_ranges(env, size); end - # source://rack//lib/rack/utils.rb#609 + # source://rack//lib/rack/utils.rb#600 def clean_path_info(path_info); end # :nocov: @@ -4421,7 +4564,7 @@ module Rack::Utils # source://rack//lib/rack/utils.rb#91 def clock_time; end - # source://rack//lib/rack/utils.rb#367 + # source://rack//lib/rack/utils.rb#360 def delete_cookie_header!(headers, key, value = T.unsafe(nil)); end # :call-seq: @@ -4438,7 +4581,7 @@ module Rack::Utils # delete_set_cookie_header("myname") # # => "myname=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT" # - # source://rack//lib/rack/utils.rb#363 + # source://rack//lib/rack/utils.rb#356 def delete_set_cookie_header(key, value = T.unsafe(nil)); end # :call-seq: @@ -4459,7 +4602,7 @@ module Rack::Utils # header # # => ["mycookie=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT"] # - # source://rack//lib/rack/utils.rb#391 + # source://rack//lib/rack/utils.rb#384 def delete_set_cookie_header!(header, key, value = T.unsafe(nil)); end # URI escapes. (CGI style space to +) @@ -4467,10 +4610,9 @@ module Rack::Utils # source://rack//lib/rack/utils.rb#40 def escape(s); end - # source://rack//lib/rack/utils.rb#262 - def escape_cookie_key(key); end - # Escape ampersands, brackets and quotes to their HTML/XML entities. + # + # source://rack//lib/rack/utils.rb#183 def escape_html(_arg0); end # Like URI escaping, but with %20 instead of +. Strictly speaking this is @@ -4482,7 +4624,7 @@ module Rack::Utils # source://rack//lib/rack/utils.rb#149 def forwarded_values(forwarded_header); end - # source://rack//lib/rack/utils.rb#413 + # source://rack//lib/rack/utils.rb#406 def get_byte_ranges(http_range, size); end # :call-seq: @@ -4494,7 +4636,7 @@ module Rack::Utils # parse_cookies({'HTTP_COOKIE' => 'myname=myvalue'}) # # => {'myname' => 'myvalue'} # - # source://rack//lib/rack/utils.rb#253 + # source://rack//lib/rack/utils.rb#257 def parse_cookies(env); end # :call-seq: @@ -4507,7 +4649,7 @@ module Rack::Utils # parse_cookies_header('myname=myvalue; max-age=0') # # => {"myname"=>"myvalue", "max-age"=>"0"} # - # source://rack//lib/rack/utils.rb#234 + # source://rack//lib/rack/utils.rb#238 def parse_cookies_header(value); end # source://rack//lib/rack/utils.rb#106 @@ -4519,15 +4661,15 @@ module Rack::Utils # source://rack//lib/rack/utils.rb#138 def q_values(q_value_header); end - # source://rack//lib/rack/utils.rb#402 + # source://rack//lib/rack/utils.rb#395 def rfc2822(time); end # :nocov: # - # source://rack//lib/rack/utils.rb#455 + # source://rack//lib/rack/utils.rb#448 def secure_compare(a, b); end - # source://rack//lib/rack/utils.rb#192 + # source://rack//lib/rack/utils.rb#196 def select_best_encoding(available_encodings, accept_encoding); end # :call-seq: @@ -4535,7 +4677,8 @@ module Rack::Utils # # Generate an encoded string using the provided +key+ and +value+ suitable # for the +set-cookie+ header according to RFC6265. The +value+ may be an - # instance of either +String+ or +Hash+. + # instance of either +String+ or +Hash+. If the cookie key is invalid (as + # defined by RFC6265), an +ArgumentError+ will be raised. # # If the cookie +value+ is an instance of +Hash+, it considers the following # cookie attribute keys: +domain+, +max_age+, +expires+ (must be instance @@ -4543,17 +4686,13 @@ module Rack::Utils # details about the interpretation of these fields, consult # [RFC6265 Section 5.2](https://datatracker.ietf.org/doc/html/rfc6265#section-5.2). # - # An extra cookie attribute +escape_key+ can be provided to control whether - # or not the cookie key is URL encoded. If explicitly set to +false+, the - # cookie key name will not be url encoded (escaped). The default is +true+. - # # set_cookie_header("myname", "myvalue") # # => "myname=myvalue" # # set_cookie_header("myname", {value: "myvalue", max_age: 10}) # # => "myname=myvalue; max-age=10" # - # source://rack//lib/rack/utils.rb#294 + # source://rack//lib/rack/utils.rb#286 def set_cookie_header(key, value); end # :call-seq: @@ -4565,10 +4704,10 @@ module Rack::Utils # If the headers already contains a +set-cookie+ key, it will be converted # to an +Array+ if not already, and appended to. # - # source://rack//lib/rack/utils.rb#337 + # source://rack//lib/rack/utils.rb#330 def set_cookie_header!(headers, key, value); end - # source://rack//lib/rack/utils.rb#589 + # source://rack//lib/rack/utils.rb#582 def status_code(status); end # Unescapes a URI escaped string with +encoding+. +encoding+ will be the @@ -4583,7 +4722,7 @@ module Rack::Utils # source://rack//lib/rack/utils.rb#52 def unescape_path(s); end - # source://rack//lib/rack/utils.rb#626 + # source://rack//lib/rack/utils.rb#617 def valid_path?(path); end class << self @@ -4605,10 +4744,10 @@ module Rack::Utils # Returns nil if the header is missing or syntactically invalid. # Returns an empty array if none of the ranges are satisfiable. # - # source://rack//lib/rack/utils.rb#409 + # source://rack//lib/rack/utils.rb#402 def byte_ranges(env, size); end - # source://rack//lib/rack/utils.rb#609 + # source://rack//lib/rack/utils.rb#600 def clean_path_info(path_info); end # source://rack//lib/rack/utils.rb#91 @@ -4626,7 +4765,7 @@ module Rack::Utils # source://rack//lib/rack/utils.rb#30 def default_query_parser=(_arg0); end - # source://rack//lib/rack/utils.rb#367 + # source://rack//lib/rack/utils.rb#360 def delete_cookie_header!(headers, key, value = T.unsafe(nil)); end # :call-seq: @@ -4643,7 +4782,7 @@ module Rack::Utils # delete_set_cookie_header("myname") # # => "myname=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT" # - # source://rack//lib/rack/utils.rb#363 + # source://rack//lib/rack/utils.rb#356 def delete_set_cookie_header(key, value = T.unsafe(nil)); end # :call-seq: @@ -4664,7 +4803,7 @@ module Rack::Utils # header # # => ["mycookie=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT"] # - # source://rack//lib/rack/utils.rb#391 + # source://rack//lib/rack/utils.rb#384 def delete_set_cookie_header!(header, key, value = T.unsafe(nil)); end # URI escapes. (CGI style space to +) @@ -4672,9 +4811,7 @@ module Rack::Utils # source://rack//lib/rack/utils.rb#40 def escape(s); end - # source://rack//lib/rack/utils.rb#262 - def escape_cookie_key(key); end - + # source://rack//lib/rack/utils.rb#183 def escape_html(_arg0); end # Like URI escaping, but with %20 instead of +. Strictly speaking this is @@ -4686,7 +4823,7 @@ module Rack::Utils # source://rack//lib/rack/utils.rb#149 def forwarded_values(forwarded_header); end - # source://rack//lib/rack/utils.rb#413 + # source://rack//lib/rack/utils.rb#406 def get_byte_ranges(http_range, size); end # Returns the value of attribute multipart_file_limit. @@ -4705,14 +4842,14 @@ module Rack::Utils # multipart_part_limit is the original name of multipart_file_limit, but # the limit only counts parts with filenames. # - # source://rack//lib/rack/utils.rb#65 + # source://rack//lib/rack/utils.rb#69 def multipart_part_limit; end # Sets the attribute multipart_file_limit # # @param value the value to set the attribute multipart_file_limit to. # - # source://rack//lib/rack/utils.rb#65 + # source://rack//lib/rack/utils.rb#70 def multipart_part_limit=(_arg0); end # Returns the value of attribute multipart_total_part_limit. @@ -4742,7 +4879,7 @@ module Rack::Utils # parse_cookies({'HTTP_COOKIE' => 'myname=myvalue'}) # # => {'myname' => 'myvalue'} # - # source://rack//lib/rack/utils.rb#253 + # source://rack//lib/rack/utils.rb#257 def parse_cookies(env); end # :call-seq: @@ -4755,7 +4892,7 @@ module Rack::Utils # parse_cookies_header('myname=myvalue; max-age=0') # # => {"myname"=>"myvalue", "max-age"=>"0"} # - # source://rack//lib/rack/utils.rb#234 + # source://rack//lib/rack/utils.rb#238 def parse_cookies_header(value); end # source://rack//lib/rack/utils.rb#106 @@ -4767,13 +4904,13 @@ module Rack::Utils # source://rack//lib/rack/utils.rb#138 def q_values(q_value_header); end - # source://rack//lib/rack/utils.rb#402 + # source://rack//lib/rack/utils.rb#395 def rfc2822(time); end - # source://rack//lib/rack/utils.rb#455 + # source://rack//lib/rack/utils.rb#448 def secure_compare(a, b); end - # source://rack//lib/rack/utils.rb#192 + # source://rack//lib/rack/utils.rb#196 def select_best_encoding(available_encodings, accept_encoding); end # :call-seq: @@ -4781,7 +4918,8 @@ module Rack::Utils # # Generate an encoded string using the provided +key+ and +value+ suitable # for the +set-cookie+ header according to RFC6265. The +value+ may be an - # instance of either +String+ or +Hash+. + # instance of either +String+ or +Hash+. If the cookie key is invalid (as + # defined by RFC6265), an +ArgumentError+ will be raised. # # If the cookie +value+ is an instance of +Hash+, it considers the following # cookie attribute keys: +domain+, +max_age+, +expires+ (must be instance @@ -4789,17 +4927,13 @@ module Rack::Utils # details about the interpretation of these fields, consult # [RFC6265 Section 5.2](https://datatracker.ietf.org/doc/html/rfc6265#section-5.2). # - # An extra cookie attribute +escape_key+ can be provided to control whether - # or not the cookie key is URL encoded. If explicitly set to +false+, the - # cookie key name will not be url encoded (escaped). The default is +true+. - # # set_cookie_header("myname", "myvalue") # # => "myname=myvalue" # # set_cookie_header("myname", {value: "myvalue", max_age: 10}) # # => "myname=myvalue; max-age=10" # - # source://rack//lib/rack/utils.rb#294 + # source://rack//lib/rack/utils.rb#286 def set_cookie_header(key, value); end # :call-seq: @@ -4811,10 +4945,10 @@ module Rack::Utils # If the headers already contains a +set-cookie+ key, it will be converted # to an +Array+ if not already, and appended to. # - # source://rack//lib/rack/utils.rb#337 + # source://rack//lib/rack/utils.rb#330 def set_cookie_header!(headers, key, value); end - # source://rack//lib/rack/utils.rb#589 + # source://rack//lib/rack/utils.rb#582 def status_code(status); end # Unescapes a URI escaped string with +encoding+. +encoding+ will be the @@ -4831,7 +4965,7 @@ module Rack::Utils # @return [Boolean] # - # source://rack//lib/rack/utils.rb#626 + # source://rack//lib/rack/utils.rb#617 def valid_path?(path); end end end @@ -4845,30 +4979,30 @@ Rack::Utils::COMMON_SEP = T.let(T.unsafe(nil), Hash) # would be the request environment. The second of which would be the rack # application that the request would be forwarded to. # -# source://rack//lib/rack/utils.rb#478 +# source://rack//lib/rack/utils.rb#471 class Rack::Utils::Context # @return [Context] a new instance of Context # - # source://rack//lib/rack/utils.rb#481 + # source://rack//lib/rack/utils.rb#474 def initialize(app_f, app_r); end # Returns the value of attribute app. # - # source://rack//lib/rack/utils.rb#479 + # source://rack//lib/rack/utils.rb#472 def app; end - # source://rack//lib/rack/utils.rb#486 + # source://rack//lib/rack/utils.rb#479 def call(env); end - # source://rack//lib/rack/utils.rb#494 + # source://rack//lib/rack/utils.rb#487 def context(env, app = T.unsafe(nil)); end # Returns the value of attribute for. # - # source://rack//lib/rack/utils.rb#479 + # source://rack//lib/rack/utils.rb#472 def for; end - # source://rack//lib/rack/utils.rb#490 + # source://rack//lib/rack/utils.rb#483 def recontext(app); end end @@ -4878,11 +5012,10 @@ Rack::Utils::DEFAULT_SEP = T.let(T.unsafe(nil), Regexp) # Every standard HTTP code mapped to the appropriate message. # Generated with: # curl -s https://www.iana.org/assignments/http-status-codes/http-status-codes-1.csv \ -# | ruby -rcsv -e "puts CSV.parse(STDIN, headers: true) \ # .reject {|v| v['Description'] == 'Unassigned' or v['Description'].include? '(' } \ # .map {|v| %Q/#{v['Value']} => '#{v['Description']}'/ }.join(','+?\n)" # -# source://rack//lib/rack/utils.rb#505 +# source://rack//lib/rack/utils.rb#498 Rack::Utils::HTTP_STATUS_CODES = T.let(T.unsafe(nil), Hash) # source://rack//lib/rack/utils.rb#22 @@ -4891,16 +5024,16 @@ Rack::Utils::InvalidParameterError = Rack::QueryParser::InvalidParameterError # source://rack//lib/rack/utils.rb#26 Rack::Utils::KeySpaceConstrainedParams = Rack::QueryParser::Params -# source://rack//lib/rack/utils.rb#624 +# source://rack//lib/rack/utils.rb#615 Rack::Utils::NULL_BYTE = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/utils.rb#575 +# source://rack//lib/rack/utils.rb#568 Rack::Utils::OBSOLETE_SYMBOLS_TO_STATUS_CODES = T.let(T.unsafe(nil), Hash) -# source://rack//lib/rack/utils.rb#583 +# source://rack//lib/rack/utils.rb#576 Rack::Utils::OBSOLETE_SYMBOL_MAPPINGS = T.let(T.unsafe(nil), Hash) -# source://rack//lib/rack/utils.rb#607 +# source://rack//lib/rack/utils.rb#598 Rack::Utils::PATH_SEPS = T.let(T.unsafe(nil), Regexp) # source://rack//lib/rack/utils.rb#21 @@ -4911,17 +5044,20 @@ Rack::Utils::ParamsTooDeepError = Rack::QueryParser::QueryLimitError # Responses with HTTP status codes that should not have an entity body # -# source://rack//lib/rack/utils.rb#569 +# source://rack//lib/rack/utils.rb#562 Rack::Utils::STATUS_WITH_NO_ENTITY_BODY = T.let(T.unsafe(nil), Hash) -# source://rack//lib/rack/utils.rb#571 +# source://rack//lib/rack/utils.rb#564 Rack::Utils::SYMBOL_TO_STATUS_CODE = T.let(T.unsafe(nil), Hash) # source://rack//lib/rack/utils.rb#27 Rack::Utils::URI_PARSER = T.let(T.unsafe(nil), URI::RFC2396_Parser) -# A valid cookie key according to RFC2616. +# A valid cookie key according to RFC6265 and RFC2616. # A can be any US-ASCII characters, except control characters, spaces, or tabs. It also must not contain a separator character like the following: ( ) < > @ , ; : \ " / [ ] ? = { }. # -# source://rack//lib/rack/utils.rb#259 +# source://rack//lib/rack/utils.rb#263 Rack::Utils::VALID_COOKIE_KEY = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/version.rb#9 +Rack::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/rails-controller-testing@1.0.5.rbi b/sorbet/rbi/gems/rails-controller-testing@1.0.5.rbi index b59e1ae2..70b5998d 100644 --- a/sorbet/rbi/gems/rails-controller-testing@1.0.5.rbi +++ b/sorbet/rbi/gems/rails-controller-testing@1.0.5.rbi @@ -6,75 +6,7 @@ # source://rails-controller-testing//lib/rails/controller/testing/test_process.rb#3 -module Rails - class << self - # source://railties/8.0.2/lib/rails.rb#44 - def app_class; end - - # source://railties/8.0.2/lib/rails.rb#44 - def app_class=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#45 - def application; end - - # source://railties/8.0.2/lib/rails.rb#43 - def application=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#126 - def autoloaders; end - - # source://railties/8.0.2/lib/rails.rb#56 - def backtrace_cleaner; end - - # source://railties/8.0.2/lib/rails.rb#44 - def cache; end - - # source://railties/8.0.2/lib/rails.rb#44 - def cache=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#52 - def configuration; end - - # source://railties/8.0.2/lib/rails/deprecator.rb#4 - def deprecator; end - - # source://railties/8.0.2/lib/rails.rb#75 - def env; end - - # source://railties/8.0.2/lib/rails.rb#82 - def env=(environment); end - - # source://railties/8.0.2/lib/rails.rb#93 - def error; end - - # source://railties/8.0.2/lib/rails/gem_version.rb#5 - def gem_version; end - - # source://railties/8.0.2/lib/rails.rb#106 - def groups(*groups); end - - # source://railties/8.0.2/lib/rails.rb#49 - def initialize!(*_arg0, **_arg1, &_arg2); end - - # source://railties/8.0.2/lib/rails.rb#49 - def initialized?(*_arg0, **_arg1, &_arg2); end - - # source://railties/8.0.2/lib/rails.rb#44 - def logger; end - - # source://railties/8.0.2/lib/rails.rb#44 - def logger=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#122 - def public_path; end - - # source://railties/8.0.2/lib/rails.rb#65 - def root; end - - # source://railties/8.0.2/lib/rails/version.rb#7 - def version; end - end -end +module Rails; end # source://rails-controller-testing//lib/rails/controller/testing/test_process.rb#4 module Rails::Controller; end diff --git a/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi b/sorbet/rbi/gems/rails-dom-testing@2.3.0.rbi similarity index 86% rename from sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi rename to sorbet/rbi/gems/rails-dom-testing@2.3.0.rbi index 0b36c35d..d396ae6e 100644 --- a/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +++ b/sorbet/rbi/gems/rails-dom-testing@2.3.0.rbi @@ -6,75 +6,7 @@ # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#3 -module Rails - class << self - # source://railties/8.0.2/lib/rails.rb#44 - def app_class; end - - # source://railties/8.0.2/lib/rails.rb#44 - def app_class=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#45 - def application; end - - # source://railties/8.0.2/lib/rails.rb#43 - def application=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#126 - def autoloaders; end - - # source://railties/8.0.2/lib/rails.rb#56 - def backtrace_cleaner; end - - # source://railties/8.0.2/lib/rails.rb#44 - def cache; end - - # source://railties/8.0.2/lib/rails.rb#44 - def cache=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#52 - def configuration; end - - # source://railties/8.0.2/lib/rails/deprecator.rb#4 - def deprecator; end - - # source://railties/8.0.2/lib/rails.rb#75 - def env; end - - # source://railties/8.0.2/lib/rails.rb#82 - def env=(environment); end - - # source://railties/8.0.2/lib/rails.rb#93 - def error; end - - # source://railties/8.0.2/lib/rails/gem_version.rb#5 - def gem_version; end - - # source://railties/8.0.2/lib/rails.rb#106 - def groups(*groups); end - - # source://railties/8.0.2/lib/rails.rb#49 - def initialize!(*_arg0, **_arg1, &_arg2); end - - # source://railties/8.0.2/lib/rails.rb#49 - def initialized?(*_arg0, **_arg1, &_arg2); end - - # source://railties/8.0.2/lib/rails.rb#44 - def logger; end - - # source://railties/8.0.2/lib/rails.rb#44 - def logger=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#122 - def public_path; end - - # source://railties/8.0.2/lib/rails.rb#65 - def root; end - - # source://railties/8.0.2/lib/rails/version.rb#7 - def version; end - end -end +module Rails; end # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#4 module Rails::Dom; end @@ -180,37 +112,67 @@ module Rails::Dom::Testing::Assertions::DomAssertions # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#68 def assert_dom_not_equal(expected, actual, message = T.unsafe(nil), strict: T.unsafe(nil), html_version: T.unsafe(nil)); end + # The negated form of +assert_dom_equal+. + # + # # assert that the referenced method does not generate the specified HTML string + # assert_dom_not_equal( + # 'Apples', + # link_to("Oranges", "http://www.example.com"), + # ) + # + # By default, the matcher will not pay attention to whitespace in text nodes (e.g., spaces + # and newlines). If you want stricter matching with exact matching for whitespace, pass + # strict: true: + # + # # these assertions will both pass + # assert_dom_equal "
\nfoo\n\
", "
foo
", strict: false + # assert_dom_not_equal "
\nfoo\n\
", "
foo
", strict: true + # + # The DOMs are created using an HTML parser specified by + # Rails::Dom::Testing.default_html_version (either :html4 or :html5). + # + # When testing in a Rails application, the parser default can also be set by setting + # +Rails.application.config.dom_testing_default_html_version+. + # + # If you want to specify the HTML parser just for a particular assertion, pass + # html_version: :html4 or html_version: :html5 keyword arguments: + # + # assert_dom_not_equal expected, actual, html_version: :html5 + # + # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#73 + def refute_dom_equal(expected, actual, message = T.unsafe(nil), strict: T.unsafe(nil), html_version: T.unsafe(nil)); end + protected - # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#75 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#76 def compare_doms(expected, actual, strict); end # @return [Boolean] # - # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#128 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#129 def equal_attribute?(attr, other_attr); end # @return [Boolean] # - # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#115 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#116 def equal_attribute_nodes?(nodes, other_nodes); end # @return [Boolean] # - # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#107 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#108 def equal_child?(child, other_child, strict); end # @return [Boolean] # - # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#95 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#96 def equal_children?(child, other_child, strict); end - # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#87 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#88 def extract_children(node, strict); end private - # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#133 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#134 def fragment(text, html_version: T.unsafe(nil)); end end @@ -361,7 +323,7 @@ module Rails::Dom::Testing::Assertions::SelectorAssertions # assert_dom "h1", "Email alert" # end # - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#285 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#318 def assert_dom_email(html_version: T.unsafe(nil), &block); end # Extracts the content of an element, treats it as encoded HTML and runs @@ -414,9 +376,41 @@ module Rails::Dom::Testing::Assertions::SelectorAssertions # end # end # - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#232 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#265 def assert_dom_encoded(element = T.unsafe(nil), html_version: T.unsafe(nil), &block); end + # The negated form of +assert_dom+. + # + # === Equality Tests + # + # Supports the same equality tests as +assert_dom+ except for: + # * true + # * false + # * Integer + # * Range + # * :count + # * :minimum + # * :maximum + # + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#183 + def assert_not_dom(*args, &block); end + + # The negated form of +assert_dom+. + # + # === Equality Tests + # + # Supports the same equality tests as +assert_dom+ except for: + # * true + # * false + # * Integer + # * Range + # * :count + # * :minimum + # * :maximum + # + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#190 + def assert_not_select(*args, &block); end + # An assertion that selects elements and makes one or more equality tests. # # If the first argument is an element, selects all matching elements @@ -515,7 +509,7 @@ module Rails::Dom::Testing::Assertions::SelectorAssertions # assert_dom ":match('name', ?)", /.+/ # Not empty # end # - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#163 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#169 def assert_select(*args, &block); end # Extracts the body of an email and runs nested assertions on it. @@ -549,7 +543,7 @@ module Rails::Dom::Testing::Assertions::SelectorAssertions # assert_dom "h1", "Email alert" # end # - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#285 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#331 def assert_select_email(html_version: T.unsafe(nil), &block); end # Extracts the content of an element, treats it as encoded HTML and runs @@ -602,7 +596,7 @@ module Rails::Dom::Testing::Assertions::SelectorAssertions # end # end # - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#232 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#285 def assert_select_encoded(element = T.unsafe(nil), html_version: T.unsafe(nil), &block); end # Select and return all matching elements. @@ -647,28 +641,63 @@ module Rails::Dom::Testing::Assertions::SelectorAssertions # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#58 def css_select(*args); end + # The negated form of +assert_dom+. + # + # === Equality Tests + # + # Supports the same equality tests as +assert_dom+ except for: + # * true + # * false + # * Integer + # * Range + # * :count + # * :minimum + # * :maximum + # + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#189 + def refute_dom(*args, &block); end + + # The negated form of +assert_dom+. + # + # === Equality Tests + # + # Supports the same equality tests as +assert_dom+ except for: + # * true + # * false + # * Integer + # * Range + # * :count + # * :minimum + # * :maximum + # + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#191 + def refute_select(*args, &block); end + private # +equals+ must contain :minimum, :maximum and :count keys # - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#307 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#340 def assert_size_match!(size, equals, css_selector, message = T.unsafe(nil)); end - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#319 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#352 def count_description(min, max, count); end # @raise [NotImplementedError] # - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#301 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#334 def document_root_element; end - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#335 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#193 + def dom_assertions(selector, &block); end + + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#368 def nest_selection(selection); end - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#344 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#377 def nodeset(node); end - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#331 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions.rb#364 def pluralize_element(quantity); end end @@ -679,7 +708,7 @@ class Rails::Dom::Testing::Assertions::SelectorAssertions::HTMLSelector # @return [HTMLSelector] a new instance of HTMLSelector # # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions/html_selector.rb#17 - def initialize(values, previous_selection = T.unsafe(nil), &root_fallback); end + def initialize(values, previous_selection = T.unsafe(nil), refute: T.unsafe(nil), &root_fallback); end # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions/html_selector.rb#46 def context; end @@ -709,13 +738,16 @@ class Rails::Dom::Testing::Assertions::SelectorAssertions::HTMLSelector private - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions/html_selector.rb#100 - def extract_equality_tests; end + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions/html_selector.rb#146 + def collapse_html_whitespace!(text); end + + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions/html_selector.rb#102 + def extract_equality_tests(refute); end - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions/html_selector.rb#72 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions/html_selector.rb#74 def extract_root(previous_selection, root_fallback); end - # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions/html_selector.rb#89 + # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions/html_selector.rb#91 def extract_selectors; end # source://rails-dom-testing//lib/rails/dom/testing/assertions/selector_assertions/html_selector.rb#48 diff --git a/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi b/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi index 6f926c11..d6821b28 100644 --- a/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +++ b/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi @@ -6,21 +6,7 @@ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#14 -module ActionView - class << self - # source://actionview/8.0.2/lib/action_view/deprecator.rb#4 - def deprecator; end - - # source://actionview/8.0.2/lib/action_view.rb#93 - def eager_load!; end - - # source://actionview/8.0.2/lib/action_view/gem_version.rb#5 - def gem_version; end - - # source://actionview/8.0.2/lib/action_view/version.rb#7 - def version; end - end -end +module ActionView; end # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#15 module ActionView::Helpers @@ -35,67 +21,15 @@ module ActionView::Helpers mixes_in_class_methods ::ActionView::Helpers::UrlHelper::ClassMethods mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods - - class << self - # source://actionview/8.0.2/lib/action_view/helpers.rb#35 - def eager_load!; end - end end # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#16 module ActionView::Helpers::SanitizeHelper mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods - - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#117 - def sanitize(html, options = T.unsafe(nil)); end - - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#122 - def sanitize_css(style); end - - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#12 - def sanitizer_vendor; end - - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#12 - def sanitizer_vendor=(val); end - - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#156 - def strip_links(html); end - - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#139 - def strip_tags(html); end - - class << self - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#12 - def sanitizer_vendor; end - - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#12 - def sanitizer_vendor=(val); end - end end # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#17 module ActionView::Helpers::SanitizeHelper::ClassMethods - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#181 - def full_sanitizer; end - - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#161 - def full_sanitizer=(_arg0); end - - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#191 - def link_sanitizer; end - - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#161 - def link_sanitizer=(_arg0); end - - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#201 - def safe_list_sanitizer; end - - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#161 - def safe_list_sanitizer=(_arg0); end - - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#171 - def sanitized_allowed_attributes; end - # Replaces the allowed HTML attributes for the +sanitize+ helper. # # class Application < Rails::Application @@ -123,9 +57,6 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#48 def sanitized_allowed_protocols=(_); end - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#167 - def sanitized_allowed_tags; end - # Replaces the allowed tags for the +sanitize+ helper. # # class Application < Rails::Application @@ -159,9 +90,6 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#48 def sanitized_uri_attributes=(_); end - # source://actionview/8.0.2/lib/action_view/helpers/sanitize_helper.rb#163 - def sanitizer_vendor; end - private # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#52 @@ -169,75 +97,7 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods end # source://rails-html-sanitizer//lib/rails/html/sanitizer/version.rb#3 -module Rails - class << self - # source://railties/8.0.2/lib/rails.rb#44 - def app_class; end - - # source://railties/8.0.2/lib/rails.rb#44 - def app_class=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#45 - def application; end - - # source://railties/8.0.2/lib/rails.rb#43 - def application=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#126 - def autoloaders; end - - # source://railties/8.0.2/lib/rails.rb#56 - def backtrace_cleaner; end - - # source://railties/8.0.2/lib/rails.rb#44 - def cache; end - - # source://railties/8.0.2/lib/rails.rb#44 - def cache=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#52 - def configuration; end - - # source://railties/8.0.2/lib/rails/deprecator.rb#4 - def deprecator; end - - # source://railties/8.0.2/lib/rails.rb#75 - def env; end - - # source://railties/8.0.2/lib/rails.rb#82 - def env=(environment); end - - # source://railties/8.0.2/lib/rails.rb#93 - def error; end - - # source://railties/8.0.2/lib/rails/gem_version.rb#5 - def gem_version; end - - # source://railties/8.0.2/lib/rails.rb#106 - def groups(*groups); end - - # source://railties/8.0.2/lib/rails.rb#49 - def initialize!(*_arg0, **_arg1, &_arg2); end - - # source://railties/8.0.2/lib/rails.rb#49 - def initialized?(*_arg0, **_arg1, &_arg2); end - - # source://railties/8.0.2/lib/rails.rb#44 - def logger; end - - # source://railties/8.0.2/lib/rails.rb#44 - def logger=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#122 - def public_path; end - - # source://railties/8.0.2/lib/rails.rb#65 - def root; end - - # source://railties/8.0.2/lib/rails/version.rb#7 - def version; end - end -end +module Rails; end # source://rails-html-sanitizer//lib/rails/html/sanitizer/version.rb#4 module Rails::HTML; end diff --git a/sorbet/rbi/gems/rails@8.0.2.rbi b/sorbet/rbi/gems/rails@8.0.2.1.rbi similarity index 100% rename from sorbet/rbi/gems/rails@8.0.2.rbi rename to sorbet/rbi/gems/rails@8.0.2.1.rbi diff --git a/sorbet/rbi/gems/railties@8.0.2.rbi b/sorbet/rbi/gems/railties@8.0.2.1.rbi similarity index 95% rename from sorbet/rbi/gems/railties@8.0.2.rbi rename to sorbet/rbi/gems/railties@8.0.2.1.rbi index 16b1537a..9971d894 100644 --- a/sorbet/rbi/gems/railties@8.0.2.rbi +++ b/sorbet/rbi/gems/railties@8.0.2.1.rbi @@ -203,33 +203,24 @@ class Rails::Application < ::Rails::Engine # source://railties//lib/rails/application.rb#109 def initialize(initial_variable_values = T.unsafe(nil), &block); end - # source://sprockets-rails/3.5.2/lib/sprockets/railtie.rb#38 - def asset_precompiled?(logical_path); end - # Returns the value of attribute assets. # - # source://sprockets-rails/3.5.2/lib/sprockets/railtie.rb#31 + # source://railties//lib/rails/application.rb#100 def assets; end # Sets the attribute assets # # @param value the value to set the attribute assets to. # - # source://sprockets-rails/3.5.2/lib/sprockets/railtie.rb#31 + # source://railties//lib/rails/application.rb#100 def assets=(_arg0); end - # source://sprockets-rails/3.5.2/lib/sprockets/railtie.rb#34 - def assets_manifest; end - - # source://sprockets-rails/3.5.2/lib/sprockets/railtie.rb#34 - def assets_manifest=(_arg0); end - # Returns the value of attribute autoloaders. # # source://railties//lib/rails/application.rb#102 def autoloaders; end - # source://railties//lib/rails/engine.rb#516 + # source://railties//lib/rails/application.rb#558 def build_middleware_stack; end # source://railties//lib/rails/application.rb#451 @@ -485,9 +476,6 @@ class Rails::Application < ::Rails::Engine # source://railties//lib/rails/application.rb#141 def name; end - # source://sprockets-rails/3.5.2/lib/sprockets/railtie.rb#52 - def precompiled_assets(clear_cache = T.unsafe(nil)); end - # If you try to define a set of Rake tasks on the instance, these will get # passed up to the Rake tasks defined on the application's class. # @@ -541,7 +529,7 @@ class Rails::Application < ::Rails::Engine # Returns the value of attribute sandbox. # - # source://railties//lib/rails/application.rb#100 + # source://railties//lib/rails/application.rb#101 def sandbox?; end # The secret_key_base is used as the input secret to the application's key generator, which in turn @@ -660,6 +648,7 @@ class Rails::Application < ::Rails::Engine # source://railties//lib/rails/application.rb#80 def instance; end + # source://railties//lib/rails/application.rb#97 def new(*_arg0); end end end @@ -1451,7 +1440,7 @@ class Rails::Application::RoutesReloader # source://railties//lib/rails/application/routes_reloader.rb#15 def initialize; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://railties//lib/rails/application/routes_reloader.rb#8 def __callbacks; end # Returns the value of attribute eager_load. @@ -1525,18 +1514,18 @@ class Rails::Application::RoutesReloader def updater; end class << self - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://railties//lib/rails/application/routes_reloader.rb#8 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://railties//lib/rails/application/routes_reloader.rb#8 def __callbacks=(value); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/application/routes_reloader.rb#8 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/application/routes_reloader.rb#8 def __class_attr___callbacks=(new_value); end end end @@ -1545,7 +1534,7 @@ end class Rails::ApplicationController < ::ActionController::Base private - # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + # source://railties//lib/rails/application_controller.rb#3 def _layout(lookup_context, formats, keys); end # source://railties//lib/rails/application_controller.rb#25 @@ -1562,28 +1551,28 @@ class Rails::ApplicationController < ::ActionController::Base class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/application_controller.rb#7 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/application_controller.rb#7 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/application_controller.rb#5 def __class_attr__layout; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/application_controller.rb#5 def __class_attr__layout=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/application_controller.rb#5 def __class_attr__layout_conditions; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/application_controller.rb#5 def __class_attr__layout_conditions=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/application_controller.rb#3 def __class_attr_middleware_stack; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/application_controller.rb#3 def __class_attr_middleware_stack=(new_value); end end end @@ -1648,7 +1637,7 @@ class Rails::BacktraceCleaner < ::ActiveSupport::BacktraceCleaner # source://railties//lib/rails/backtrace_cleaner.rb#36 def clean_frame(frame, kind = T.unsafe(nil)); end - # source://railties//lib/rails/backtrace_cleaner.rb#29 + # source://railties//lib/rails/backtrace_cleaner.rb#34 def filter(backtrace, kind = T.unsafe(nil)); end end @@ -1750,16 +1739,16 @@ class Rails::CodeStatistics private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/code_statistics.rb#45 def __class_attr_directories; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/code_statistics.rb#45 def __class_attr_directories=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/code_statistics.rb#46 def __class_attr_test_types; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/code_statistics.rb#46 def __class_attr_test_types=(new_value); end end end @@ -1977,7 +1966,7 @@ class Rails::Configuration::MiddlewareStackProxy # source://railties//lib/rails/configuration.rb#70 def delete(*_arg0, **_arg1, &_arg2); end - # source://railties//lib/rails/configuration.rb#52 + # source://railties//lib/rails/configuration.rb#56 def insert(*_arg0, **_arg1, &_arg2); end # source://railties//lib/rails/configuration.rb#58 @@ -1989,7 +1978,7 @@ class Rails::Configuration::MiddlewareStackProxy # source://railties//lib/rails/configuration.rb#88 def merge_into(other); end - # source://railties//lib/rails/configuration.rb#74 + # source://railties//lib/rails/configuration.rb#78 def move(*_arg0, **_arg1, &_arg2); end # source://railties//lib/rails/configuration.rb#80 @@ -2369,13 +2358,13 @@ class Rails::Engine < ::Rails::Railtie # source://railties//lib/rails/engine.rb#440 def initialize; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://railties//lib/rails/engine.rb#434 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://railties//lib/rails/engine.rb#435 def _load_seed_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://railties//lib/rails/engine.rb#435 def _run_load_seed_callbacks(&block); end # Returns the underlying Rack application for this engine. @@ -2523,16 +2512,16 @@ class Rails::Engine < ::Rails::Railtie def load_config_initializer(initializer); end class << self - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://railties//lib/rails/engine.rb#434 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://railties//lib/rails/engine.rb#434 def __callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://railties//lib/rails/engine.rb#435 def _load_seed_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://railties//lib/rails/engine.rb#435 def _load_seed_callbacks=(value); end # Returns the value of attribute called_from. @@ -2553,7 +2542,7 @@ class Rails::Engine < ::Rails::Railtie # source://railties//lib/rails/engine.rb#379 def endpoint(endpoint = T.unsafe(nil)); end - # source://railties//lib/rails/railtie.rb#176 + # source://railties//lib/rails/engine.rb#357 def engine_name(name = T.unsafe(nil)); end # Finds engine with given path. @@ -2589,15 +2578,15 @@ class Rails::Engine < ::Rails::Railtie # Returns the value of attribute isolated. # - # source://railties//lib/rails/engine.rb#354 + # source://railties//lib/rails/engine.rb#356 def isolated?; end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/engine.rb#434 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/engine.rb#434 def __class_attr___callbacks=(new_value); end end end @@ -2885,7 +2874,7 @@ class Rails::HealthController < ::ActionController::Base private - # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + # source://railties//lib/rails/health_controller.rb#35 def _layout(lookup_context, formats, keys); end # source://railties//lib/rails/health_controller.rb#51 @@ -2900,16 +2889,16 @@ class Rails::HealthController < ::ActionController::Base class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/health_controller.rb#35 def __class_attr_middleware_stack; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/health_controller.rb#35 def __class_attr_middleware_stack=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/health_controller.rb#36 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/health_controller.rb#36 def __class_attr_rescue_handlers=(new_value); end end end @@ -2927,7 +2916,7 @@ module Rails::Info def properties=(val); end class << self - # source://railties//lib/rails/info.rb#31 + # source://railties//lib/rails/info.rb#41 def inspect; end # source://railties//lib/rails/info.rb#10 @@ -2963,7 +2952,7 @@ class Rails::InfoController < ::Rails::ApplicationController private - # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + # source://railties//lib/rails/info_controller.rb#6 def _layout(lookup_context, formats, keys); end # source://railties//lib/rails/info_controller.rb#8 @@ -2975,28 +2964,28 @@ class Rails::InfoController < ::Rails::ApplicationController class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/info_controller.rb#10 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/info_controller.rb#10 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/info_controller.rb#8 def __class_attr__layout; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/info_controller.rb#8 def __class_attr__layout=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/info_controller.rb#8 def __class_attr__layout_conditions; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/info_controller.rb#8 def __class_attr__layout_conditions=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/info_controller.rb#6 def __class_attr_middleware_stack; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/info_controller.rb#6 def __class_attr_middleware_stack=(new_value); end end end @@ -3044,6 +3033,7 @@ class Rails::Initializable::Collection < ::Array # source://railties//lib/rails/initializable.rb#49 def tsort_each_child(initializer, &block); end + # source://railties//lib/rails/initializable.rb#48 def tsort_each_node; end end @@ -3104,7 +3094,7 @@ class Rails::MailersController < ::Rails::ApplicationController private - # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + # source://railties//lib/rails/mailers_controller.rb#6 def _layout(lookup_context, formats, keys); end # source://railties//lib/rails/mailers_controller.rb#107 @@ -3139,27 +3129,27 @@ class Rails::MailersController < ::Rails::ApplicationController class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/mailers_controller.rb#9 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/mailers_controller.rb#9 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/mailers_controller.rb#13 def __class_attr__helper_methods; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/mailers_controller.rb#13 def __class_attr__helper_methods=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/mailers_controller.rb#6 def __class_attr_middleware_stack; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/mailers_controller.rb#6 def __class_attr_middleware_stack=(new_value); end end end -# source://railties//lib/rails/mailers_controller.rb#0 +# source://railties//lib/rails/mailers_controller.rb#13 module Rails::MailersController::HelperMethods include ::InertiaRails::Helper include ::ViteRails::TagHelpers @@ -3193,16 +3183,16 @@ class Rails::Paths::Path # source://railties//lib/rails/paths.rb#132 def absolute_current; end - # source://railties//lib/rails/paths.rb#153 + # source://railties//lib/rails/paths.rb#152 def autoload!; end - # source://railties//lib/rails/paths.rb#161 + # source://railties//lib/rails/paths.rb#152 def autoload?; end - # source://railties//lib/rails/paths.rb#153 + # source://railties//lib/rails/paths.rb#152 def autoload_once!; end - # source://railties//lib/rails/paths.rb#161 + # source://railties//lib/rails/paths.rb#152 def autoload_once?; end # source://railties//lib/rails/paths.rb#136 @@ -3214,10 +3204,10 @@ class Rails::Paths::Path # source://railties//lib/rails/paths.rb#167 def each(&block); end - # source://railties//lib/rails/paths.rb#153 + # source://railties//lib/rails/paths.rb#152 def eager_load!; end - # source://railties//lib/rails/paths.rb#161 + # source://railties//lib/rails/paths.rb#152 def eager_load?; end # Returns all expanded paths but only if they exist in the filesystem. @@ -3254,33 +3244,33 @@ class Rails::Paths::Path # source://railties//lib/rails/paths.rb#147 def last; end - # source://railties//lib/rails/paths.rb#153 + # source://railties//lib/rails/paths.rb#152 def load_path!; end - # source://railties//lib/rails/paths.rb#161 + # source://railties//lib/rails/paths.rb#152 def load_path?; end # source://railties//lib/rails/paths.rb#188 def paths; end - # source://railties//lib/rails/paths.rb#171 + # source://railties//lib/rails/paths.rb#174 def push(path); end - # source://railties//lib/rails/paths.rb#157 + # source://railties//lib/rails/paths.rb#152 def skip_autoload!; end - # source://railties//lib/rails/paths.rb#157 + # source://railties//lib/rails/paths.rb#152 def skip_autoload_once!; end - # source://railties//lib/rails/paths.rb#157 + # source://railties//lib/rails/paths.rb#152 def skip_eager_load!; end - # source://railties//lib/rails/paths.rb#157 + # source://railties//lib/rails/paths.rb#152 def skip_load_path!; end # Expands all paths against the root and return all unique values. # - # source://railties//lib/rails/paths.rb#201 + # source://railties//lib/rails/paths.rb#235 def to_a; end # source://railties//lib/rails/paths.rb#184 @@ -3408,22 +3398,22 @@ class Rails::PwaController < ::Rails::ApplicationController private - # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + # source://railties//lib/rails/pwa_controller.rb#5 def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/pwa_controller.rb#6 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/pwa_controller.rb#6 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/pwa_controller.rb#5 def __class_attr_middleware_stack; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/pwa_controller.rb#5 def __class_attr_middleware_stack=(new_value); end end end @@ -3742,6 +3732,7 @@ class Rails::Railtie # source://railties//lib/rails/railtie.rb#224 def method_missing(name, *_arg1, **_arg2, &_arg3); end + # source://railties//lib/rails/railtie.rb#145 def new(*_arg0); end # receives an instance variable identifier, set the variable value if is @@ -4135,7 +4126,7 @@ Rails::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) Rails::VERSION::MINOR = T.let(T.unsafe(nil), Integer) # source://railties//lib/rails/gem_version.rb#13 -Rails::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) +Rails::VERSION::PRE = T.let(T.unsafe(nil), String) # source://railties//lib/rails/gem_version.rb#15 Rails::VERSION::STRING = T.let(T.unsafe(nil), String) @@ -4150,34 +4141,34 @@ class Rails::WelcomeController < ::Rails::ApplicationController private - # source://actionview/8.0.2/lib/action_view/layouts.rb#328 + # source://railties//lib/rails/welcome_controller.rb#5 def _layout(lookup_context, formats, keys); end class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/welcome_controller.rb#6 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/welcome_controller.rb#6 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/welcome_controller.rb#7 def __class_attr__layout; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/welcome_controller.rb#7 def __class_attr__layout=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/welcome_controller.rb#7 def __class_attr__layout_conditions; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/welcome_controller.rb#7 def __class_attr__layout_conditions=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://railties//lib/rails/welcome_controller.rb#5 def __class_attr_middleware_stack; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://railties//lib/rails/welcome_controller.rb#5 def __class_attr_middleware_stack=(new_value); end end end diff --git a/sorbet/rbi/gems/rainbow@3.1.1.rbi b/sorbet/rbi/gems/rainbow@3.1.1.rbi index d02bc048..62c9183e 100644 --- a/sorbet/rbi/gems/rainbow@3.1.1.rbi +++ b/sorbet/rbi/gems/rainbow@3.1.1.rbi @@ -145,7 +145,7 @@ class Rainbow::NullPresenter < ::String # source://rainbow//lib/rainbow/null_presenter.rb#9 def background(*_values); end - # source://rainbow//lib/rainbow/null_presenter.rb#9 + # source://rainbow//lib/rainbow/null_presenter.rb#95 def bg(*_values); end # source://rainbow//lib/rainbow/null_presenter.rb#49 @@ -157,7 +157,7 @@ class Rainbow::NullPresenter < ::String # source://rainbow//lib/rainbow/null_presenter.rb#65 def blue; end - # source://rainbow//lib/rainbow/null_presenter.rb#17 + # source://rainbow//lib/rainbow/null_presenter.rb#96 def bold; end # source://rainbow//lib/rainbow/null_presenter.rb#17 @@ -172,16 +172,16 @@ class Rainbow::NullPresenter < ::String # source://rainbow//lib/rainbow/null_presenter.rb#73 def cyan; end - # source://rainbow//lib/rainbow/null_presenter.rb#21 + # source://rainbow//lib/rainbow/null_presenter.rb#97 def dark; end # source://rainbow//lib/rainbow/null_presenter.rb#21 def faint; end - # source://rainbow//lib/rainbow/null_presenter.rb#5 + # source://rainbow//lib/rainbow/null_presenter.rb#94 def fg(*_values); end - # source://rainbow//lib/rainbow/null_presenter.rb#5 + # source://rainbow//lib/rainbow/null_presenter.rb#93 def foreground(*_values); end # source://rainbow//lib/rainbow/null_presenter.rb#57 @@ -208,7 +208,7 @@ class Rainbow::NullPresenter < ::String # source://rainbow//lib/rainbow/null_presenter.rb#13 def reset; end - # source://rainbow//lib/rainbow/null_presenter.rb#45 + # source://rainbow//lib/rainbow/null_presenter.rb#98 def strike; end # source://rainbow//lib/rainbow/null_presenter.rb#29 @@ -237,7 +237,7 @@ class Rainbow::Presenter < ::String # Sets background color of this text. # - # source://rainbow//lib/rainbow/presenter.rb#30 + # source://rainbow//lib/rainbow/presenter.rb#34 def bg(*values); end # source://rainbow//lib/rainbow/presenter.rb#92 @@ -254,7 +254,7 @@ class Rainbow::Presenter < ::String # Turns on bright/bold for this text. # - # source://rainbow//lib/rainbow/presenter.rb#45 + # source://rainbow//lib/rainbow/presenter.rb#49 def bold; end # Turns on bright/bold for this text. @@ -276,7 +276,7 @@ class Rainbow::Presenter < ::String # Turns on faint/dark for this text (not well supported by terminal # emulators). # - # source://rainbow//lib/rainbow/presenter.rb#53 + # source://rainbow//lib/rainbow/presenter.rb#57 def dark; end # Turns on faint/dark for this text (not well supported by terminal @@ -287,12 +287,12 @@ class Rainbow::Presenter < ::String # Sets color of this text. # - # source://rainbow//lib/rainbow/presenter.rb#22 + # source://rainbow//lib/rainbow/presenter.rb#27 def fg(*values); end # Sets color of this text. # - # source://rainbow//lib/rainbow/presenter.rb#22 + # source://rainbow//lib/rainbow/presenter.rb#26 def foreground(*values); end # source://rainbow//lib/rainbow/presenter.rb#100 @@ -334,7 +334,7 @@ class Rainbow::Presenter < ::String # source://rainbow//lib/rainbow/presenter.rb#40 def reset; end - # source://rainbow//lib/rainbow/presenter.rb#86 + # source://rainbow//lib/rainbow/presenter.rb#90 def strike; end # Turns on underline decoration for this text. diff --git a/sorbet/rbi/gems/rake@13.2.1.rbi b/sorbet/rbi/gems/rake@13.3.0.rbi similarity index 85% rename from sorbet/rbi/gems/rake@13.2.1.rbi rename to sorbet/rbi/gems/rake@13.3.0.rbi index 2765c484..acb296f0 100644 --- a/sorbet/rbi/gems/rake@13.2.1.rbi +++ b/sorbet/rbi/gems/rake@13.3.0.rbi @@ -9,7 +9,7 @@ # # Some top level Constants. # -# source://rake//lib/rake.rb#69 +# source://rake//lib/rake.rb#67 FileList = Rake::FileList # -- @@ -112,7 +112,7 @@ class Module def rake_extension(method); end end -# source://rake//lib/rake/cloneable.rb#2 +# source://rake//lib/rake.rb#24 module Rake extend ::FileUtils::StreamUtils_ extend ::FileUtils @@ -196,7 +196,7 @@ class Rake::Application # Add a file to the list of files to be imported. # - # source://rake//lib/rake/application.rb#807 + # source://rake//lib/rake/application.rb#800 def add_import(fn); end # Add a loader to handle imported files ending in the extension @@ -214,13 +214,13 @@ class Rake::Application # recognised command-line options, which OptionParser.parse will # have taken care of already. # - # source://rake//lib/rake/application.rb#788 + # source://rake//lib/rake/application.rb#781 def collect_command_line_tasks(args); end # Default task name ("default"). # (May be overridden by subclasses) # - # source://rake//lib/rake/application.rb#802 + # source://rake//lib/rake/application.rb#795 def default_task_name; end # Warn about deprecated usage. @@ -236,7 +236,7 @@ class Rake::Application # Display the error message that caused the exception. # - # source://sentry-ruby/5.23.0/lib/sentry/rake.rb#10 + # source://rake//lib/rake/application.rb#234 def display_error_message(ex); end # source://rake//lib/rake/application.rb#275 @@ -311,7 +311,7 @@ class Rake::Application # Load the pending list of imported files. # - # source://rake//lib/rake/application.rb#812 + # source://rake//lib/rake/application.rb#805 def load_imports; end # Find the rakefile and then load it and any pending imports. @@ -351,7 +351,7 @@ class Rake::Application # source://rake//lib/rake/application.rb#30 def rakefile; end - # source://rake//lib/rake/application.rb#828 + # source://rake//lib/rake/application.rb#821 def rakefile_location(backtrace = T.unsafe(nil)); end # source://rake//lib/rake/application.rb#725 @@ -376,7 +376,7 @@ class Rake::Application # source://rake//lib/rake/application.rb#144 def run_with_threads; end - # source://rake//lib/rake/application.rb#837 + # source://rake//lib/rake/application.rb#830 def set_default_options; end # Provide standard exception handling for the given block. @@ -483,7 +483,7 @@ class Rake::Application # source://rake//lib/rake/application.rb#423 def sort_options(options); end - # source://rake//lib/rake/application.rb#774 + # source://rake//lib/rake/application.rb#767 def standard_system_dir; end end @@ -559,34 +559,34 @@ module Rake::DSL private - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def cd(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def chdir(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def chmod(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def chmod_R(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def chown(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def chown_R(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def copy(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def cp(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def cp_lr(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def cp_r(*args, **options, &block); end # Describes the next rake task. Duplicate descriptions are discarded. @@ -650,37 +650,37 @@ module Rake::DSL # source://rake//lib/rake/dsl_definition.rb#184 def import(*fns); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def install(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def link(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def ln(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def ln_s(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def ln_sf(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def ln_sr(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def makedirs(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def mkdir(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def mkdir_p(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def mkpath(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def move(*args, **options, &block); end # Declare a task that performs its prerequisites in @@ -694,7 +694,7 @@ module Rake::DSL # source://rake//lib/rake/dsl_definition.rb#113 def multitask(*args, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def mv(*args, **options, &block); end # Create a new rake namespace and use it for evaluating the given @@ -719,37 +719,37 @@ module Rake::DSL # source://rake//lib/rake/dsl_definition.rb#136 def namespace(name = T.unsafe(nil), &block); end - # source://rake//lib/rake/file_utils_ext.rb#77 + # source://rake//lib/rake/dsl_definition.rb#24 def nowrite(value = T.unsafe(nil)); end - # source://rake//lib/rake/file_utils_ext.rb#123 + # source://rake//lib/rake/dsl_definition.rb#24 def rake_check_options(options, *optdecl); end - # source://rake//lib/rake/file_utils_ext.rb#116 + # source://rake//lib/rake/dsl_definition.rb#24 def rake_output_message(message); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def remove(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def rm(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def rm_f(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def rm_r(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def rm_rf(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def rmdir(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def rmtree(*args, **options, &block); end - # source://rake//lib/rake/file_utils.rb#98 + # source://rake//lib/rake/dsl_definition.rb#23 def ruby(*args, **options, &block); end # Declare a rule for auto-tasks. @@ -762,19 +762,19 @@ module Rake::DSL # source://rake//lib/rake/dsl_definition.rb#152 def rule(*args, &block); end - # source://rake//lib/rake/file_utils.rb#110 + # source://rake//lib/rake/dsl_definition.rb#23 def safe_ln(*args, **options); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def safe_unlink(*args, **options, &block); end - # source://rake//lib/rake/file_utils.rb#43 + # source://rake//lib/rake/dsl_definition.rb#23 def sh(*cmd, &block); end - # source://rake//lib/rake/file_utils.rb#126 + # source://rake//lib/rake/dsl_definition.rb#23 def split_all(path); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def symlink(*args, **options, &block); end # :call-seq: @@ -811,13 +811,13 @@ module Rake::DSL # source://rake//lib/rake/dsl_definition.rb#59 def task(*args, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/dsl_definition.rb#24 def touch(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#53 + # source://rake//lib/rake/dsl_definition.rb#24 def verbose(value = T.unsafe(nil)); end - # source://rake//lib/rake/file_utils_ext.rb#107 + # source://rake//lib/rake/dsl_definition.rb#24 def when_writing(msg = T.unsafe(nil)); end end @@ -834,7 +834,7 @@ end # source://rake//lib/rake/early_time.rb#21 Rake::EARLY = T.let(T.unsafe(nil), Rake::EarlyTime) -# source://rake//lib/rake/task_arguments.rb#108 +# source://rake//lib/rake/task_arguments.rb#112 Rake::EMPTY_TASK_ARGS = T.let(T.unsafe(nil), Rake::TaskArguments) # EarlyTime is a fake timestamp that occurs _before_ any other time value. @@ -857,7 +857,10 @@ class Rake::EarlyTime class << self private + # source://rake//lib/rake/early_time.rb#7 def allocate; end + + # source://rake//lib/rake/early_time.rb#7 def new(*_arg0); end end end @@ -918,7 +921,7 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#99 def initialize(*patterns); end - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def &(*args, &block); end # Redefine * to return either a string or a new file list. @@ -926,16 +929,16 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#193 def *(other); end - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def +(*args, &block); end - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def -(*args, &block); end # source://rake//lib/rake/file_list.rb#203 def <<(obj); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def <=>(*args, &block); end # A FileList is equal through array equality. @@ -943,10 +946,10 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#171 def ==(array); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def [](*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def []=(*args, &block); end # Add file names defined by glob patterns to the file list. If an array @@ -956,40 +959,40 @@ class Rake::FileList # file_list.include("*.java", "*.cfg") # file_list.include %w( math.c lib.h *.o ) # - # source://rake//lib/rake/file_list.rb#116 + # source://rake//lib/rake/file_list.rb#128 def add(*filenames); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def all?(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def any?(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def append(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def assoc(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def at(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def bsearch(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def bsearch_index(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def chain(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def chunk(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def chunk_while(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def clear(*args, &block); end # Clear all the exclude patterns so that we exclude nothing. @@ -997,85 +1000,79 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#164 def clear_exclude; end - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def collect(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def collect!(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def collect_concat(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def combination(*args, &block); end - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def compact(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def compact!(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def compact_blank(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 - def compact_blank!(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def concat(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def count(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def cycle(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def deconstruct(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def delete(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def delete_at(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def delete_if(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def detect(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def difference(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def dig(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def drop(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def drop_while(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def each(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def each_cons(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def each_entry(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def each_index(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def each_slice(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def each_with_index(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def each_with_object(*args, &block); end # Grep each of the files in the filelist using the given pattern. If a @@ -1087,10 +1084,10 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#293 def egrep(pattern, *options); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def empty?(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def entries(*args, &block); end # Register a list of file name patterns that should be excluded from the @@ -1116,9 +1113,6 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#150 def exclude(*patterns, &block); end - # source://rake//lib/rake/file_list.rb#77 - def exclude?(*args, &block); end - # Should the given file name be excluded from the list? # # NOTE: This method was formerly named "exclude?", but Rails @@ -1132,9 +1126,6 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#364 def excluded_from_list?(fn); end - # source://rake//lib/rake/file_list.rb#77 - def excluding(*args, &block); end - # Return a new file list that only contains file names from the current # file list that exist on the file system. # @@ -1159,70 +1150,52 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#284 def ext(newext = T.unsafe(nil)); end - # source://rake//lib/rake/file_list.rb#77 - def extract!(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 - def extract_options!(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def fetch(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def fetch_values(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def fifth(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def fill(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def filter(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def filter!(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def filter_map(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def find(*args, &block); end - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def find_all(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def find_index(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def first(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def flat_map(*args, &block); end - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def flatten(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def flatten!(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def forty_two(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 - def fourth(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 - def from(*args, &block); end - - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def grep(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def grep_v(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def group_by(*args, &block); end # Return a new FileList with the results of running +gsub+ against each @@ -1243,9 +1216,6 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#391 def import(array); end - # source://rake//lib/rake/file_list.rb#77 - def in_order_of(*args, &block); end - # Add file names defined by glob patterns to the file list. If an array # is given, add each element of the array. # @@ -1256,34 +1226,25 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#116 def include(*filenames); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def include?(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def including(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def index(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def index_by(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 - def index_with(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def inject(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def insert(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def inspect(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def intersect?(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def intersection(*args, &block); end # Lie about our class. @@ -1293,71 +1254,62 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#187 def is_a?(klass); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def join(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def keep_if(*args, &block); end # Lie about our class. # # @return [Boolean] # - # source://rake//lib/rake/file_list.rb#187 + # source://rake//lib/rake/file_list.rb#190 def kind_of?(klass); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def last(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def lazy(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def length(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def many?(*args, &block); end - - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def map(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def map!(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def max(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def max_by(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def maximum(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def member?(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def min(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def min_by(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def minimum(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def minmax(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def minmax_by(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def none?(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def one?(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def pack(*args, &block); end # FileList version of partition. Needed because the nested arrays should @@ -1373,49 +1325,40 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#272 def pathmap(spec = T.unsafe(nil), &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def permutation(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def pick(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 - def place(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 - def pluck(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def pop(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def prepend(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def product(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def push(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def rassoc(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def reduce(*args, &block); end - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def reject(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def reject!(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def repeated_combination(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def repeated_permutation(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def replace(*args, &block); end # Resolve all the pending adds now. @@ -1423,82 +1366,73 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#210 def resolve; end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def reverse(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def reverse!(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def reverse_each(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def rindex(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def rotate(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def rotate!(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def sample(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def second(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 - def second_to_last(*args, &block); end - - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def select(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def select!(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def shelljoin(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def shift(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def shuffle(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def shuffle!(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def size(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def slice(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def slice!(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def slice_after(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def slice_before(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def slice_when(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def sole(*args, &block); end - - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def sort(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def sort!(*args, &block); end - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def sort_by(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def sort_by!(*args, &block); end # Return a new FileList with the results of running +sub+ against each @@ -1515,27 +1449,18 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#258 def sub!(pat, rep); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def sum(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def take(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def take_while(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def tally(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def third(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 - def third_to_last(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 - def to(*args, &block); end - # Return the internal array object. # # source://rake//lib/rake/file_list.rb#176 @@ -1546,57 +1471,39 @@ class Rake::FileList # source://rake//lib/rake/file_list.rb#182 def to_ary; end - # source://rake//lib/rake/file_list.rb#77 - def to_formatted_s(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 - def to_fs(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def to_h(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def to_msgpack(*args, &block); end - # Convert a FileList to a string by joining all elements with a space. # # source://rake//lib/rake/file_list.rb#344 def to_s; end - # source://rake//lib/rake/file_list.rb#77 - def to_sentence(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def to_set(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def to_xml(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def transpose(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def union(*args, &block); end - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def uniq(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def uniq!(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def unshift(*args, &block); end - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def values_at(*args, &block); end - # source://rake//lib/rake/file_list.rb#77 - def without(*args, &block); end - - # source://rake//lib/rake/file_list.rb#77 + # source://rake//lib/rake/file_list.rb#76 def zip(*args, &block); end - # source://rake//lib/rake/file_list.rb#68 + # source://rake//lib/rake/file_list.rb#67 def |(*args, &block); end private @@ -1714,70 +1621,70 @@ module Rake::FileUtilsExt extend ::FileUtils extend ::Rake::FileUtilsExt - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def cd(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def chdir(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def chmod(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def chmod_R(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def chown(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def chown_R(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def copy(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def cp(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def cp_lr(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def cp_r(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def install(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def link(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def ln(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def ln_s(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def ln_sf(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def ln_sr(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def makedirs(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def mkdir(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def mkdir_p(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def mkpath(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def move(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def mv(*args, **options, &block); end # Get/set the nowrite flag controlling output from the FileUtils @@ -1809,34 +1716,34 @@ module Rake::FileUtilsExt # source://rake//lib/rake/file_utils_ext.rb#116 def rake_output_message(message); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def remove(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def rm(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def rm_f(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def rm_r(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def rm_rf(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def rmdir(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def rmtree(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def safe_unlink(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def symlink(*args, **options, &block); end - # source://rake//lib/rake/file_utils_ext.rb#34 + # source://rake//lib/rake/file_utils_ext.rb#33 def touch(*args, **options, &block); end # Get/set the verbose flag controlling output from the FileUtils @@ -1996,7 +1903,10 @@ class Rake::LateTime class << self private + # source://rake//lib/rake/late_time.rb#6 def allocate; end + + # source://rake//lib/rake/late_time.rb#6 def new(*_arg0); end end end @@ -2491,7 +2401,7 @@ class Rake::Task # List of prerequisites for a task. # - # source://rake//lib/rake/task.rb#17 + # source://rake//lib/rake/task.rb#18 def prereqs; end # List of prerequisite tasks @@ -2671,6 +2581,9 @@ class Rake::TaskArguments # source://rake//lib/rake/task_arguments.rb#44 def [](index); end + # source://rake//lib/rake/task_arguments.rb#97 + def deconstruct_keys(keys); end + # Enumerates the arguments and their values # # source://rake//lib/rake/task_arguments.rb#56 @@ -2698,7 +2611,7 @@ class Rake::TaskArguments # # @return [Boolean] # - # source://rake//lib/rake/task_arguments.rb#88 + # source://rake//lib/rake/task_arguments.rb#91 def key?(key); end # Returns the value of the given argument via method_missing @@ -2744,7 +2657,7 @@ class Rake::TaskArguments protected - # source://rake//lib/rake/task_arguments.rb#99 + # source://rake//lib/rake/task_arguments.rb#103 def lookup(name); end end @@ -2878,7 +2791,7 @@ module Rake::TaskManager # Return the current description, clearing it in the process. # # source://rake//lib/rake/task_manager.rb#319 - def get_description(task); end + def get_description; end # Lookup the task name # @@ -2943,16 +2856,16 @@ class Rake::ThreadHistoryDisplay private - # source://rake//lib/rake/private_reader.rb#15 + # source://rake//lib/rake/thread_history_display.rb#9 def items; end # source://rake//lib/rake/thread_history_display.rb#35 def rename(hash, key, renames); end - # source://rake//lib/rake/private_reader.rb#15 + # source://rake//lib/rake/thread_history_display.rb#9 def stats; end - # source://rake//lib/rake/private_reader.rb#15 + # source://rake//lib/rake/thread_history_display.rb#9 def threads; end end @@ -3100,7 +3013,7 @@ end # source://rake//lib/rake/win32.rb#11 class Rake::Win32::Win32HomeError < ::RuntimeError; end -# source://rake//lib/rake.rb#70 +# source://rake//lib/rake.rb#68 RakeFileUtils = Rake::FileUtilsExt # source://rake//lib/rake/ext/string.rb#4 diff --git a/sorbet/rbi/gems/rbi@0.3.2.rbi b/sorbet/rbi/gems/rbi@0.3.6.rbi similarity index 64% rename from sorbet/rbi/gems/rbi@0.3.2.rbi rename to sorbet/rbi/gems/rbi@0.3.6.rbi index 0b46dff5..fa14e872 100644 --- a/sorbet/rbi/gems/rbi@0.3.2.rbi +++ b/sorbet/rbi/gems/rbi@0.3.6.rbi @@ -11,53 +11,41 @@ # This is an autogenerated file for types exported from the `rbi` gem. # Please instead update this file by running `spoom srb sigs export`. -# source://rbi//lib/rbi.rb#8 +# source://rbi//lib/rbi.rb#7 module RBI; end -# source://rbi//lib/rbi/model.rb#804 +# source://rbi//lib/rbi/model.rb#783 class RBI::Arg < ::RBI::Node - # : (String value, ?loc: Loc?) -> void - # # @return [Arg] a new instance of Arg # - # source://rbi//lib/rbi/model.rb#809 + # source://rbi//lib/rbi/model.rb#788 sig { params(value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(value, loc: T.unsafe(nil)); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#815 + # source://rbi//lib/rbi/model.rb#794 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#820 + # source://rbi//lib/rbi/model.rb#799 sig { returns(::String) } def to_s; end - # : String - # - # source://rbi//lib/rbi/model.rb#806 + # source://rbi//lib/rbi/model.rb#785 sig { returns(::String) } def value; end end -# Attributes +# @abstract # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/model.rb#300 +# source://rbi//lib/rbi/model.rb#292 class RBI::Attr < ::RBI::NodeWithComments include ::RBI::Indexable abstract! - # : (Symbol name, Array[Symbol] names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [Attr] a new instance of Attr # - # source://rbi//lib/rbi/model.rb#316 + # source://rbi//lib/rbi/model.rb#303 sig do params( name: ::Symbol, @@ -70,67 +58,50 @@ class RBI::Attr < ::RBI::NodeWithComments end def initialize(name, names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#394 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#403 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end # @abstract # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#58 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#59 sig { abstract.returns(T::Array[::RBI::Method]) } def convert_to_methods; end # @abstract # - # source://rbi//lib/rbi/model.rb#324 + # source://rbi//lib/rbi/model.rb#312 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#109 + # source://rbi//lib/rbi/index.rb#104 sig { override.returns(T::Array[::String]) } def index_ids; end - # : (Node other) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#403 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#412 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # : Array[Symbol] - # - # source://rbi//lib/rbi/model.rb#307 + # source://rbi//lib/rbi/model.rb#294 sig { returns(T::Array[::Symbol]) } def names; end - # : Array[Sig] - # - # source://rbi//lib/rbi/model.rb#313 + # source://rbi//lib/rbi/model.rb#300 sig { returns(T::Array[::RBI::Sig]) } def sigs; end - # : Visibility - # - # source://rbi//lib/rbi/model.rb#310 + # source://rbi//lib/rbi/model.rb#297 sig { returns(::RBI::Visibility) } def visibility; end - # : Visibility - # - # source://rbi//lib/rbi/model.rb#310 - # @return [Visibility] + # source://rbi//lib/rbi/model.rb#297 def visibility=(_arg0); end private - # : (String name, Sig? sig, Visibility visibility, Loc? loc, Array[Comment] comments) -> Method - # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#79 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#80 sig do params( name: ::String, @@ -142,9 +113,7 @@ class RBI::Attr < ::RBI::NodeWithComments end def create_getter_method(name, sig, visibility, loc, comments); end - # : (String name, Sig? sig, (Type | String)? attribute_type, Visibility visibility, Loc? loc, Array[Comment] comments) -> Method - # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#91 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#92 sig do params( name: ::String, @@ -157,22 +126,18 @@ class RBI::Attr < ::RBI::NodeWithComments end def create_setter_method(name, sig, attribute_type, visibility, loc, comments); end - # : -> [Sig?, (Type | String)?] - # # @raise [UnexpectedMultipleSigsError] # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#64 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#65 sig(:final) { returns([T.nilable(::RBI::Sig), T.nilable(T.any(::RBI::Type, ::String))]) } def parse_sig; end end -# source://rbi//lib/rbi/model.rb#327 +# source://rbi//lib/rbi/model.rb#315 class RBI::AttrAccessor < ::RBI::Attr - # : (Symbol name, *Symbol names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (AttrAccessor node) -> void } -> void - # # @return [AttrAccessor] a new instance of AttrAccessor # - # source://rbi//lib/rbi/model.rb#329 + # source://rbi//lib/rbi/model.rb#317 sig do params( name: ::Symbol, @@ -186,40 +151,30 @@ class RBI::AttrAccessor < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#432 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#441 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[Method] - # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#122 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#123 sig { override.returns(T::Array[::RBI::Method]) } def convert_to_methods; end - # : -> Array[String] - # - # source://rbi//lib/rbi/model.rb#336 + # source://rbi//lib/rbi/model.rb#324 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#343 + # source://rbi//lib/rbi/model.rb#331 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#349 +# source://rbi//lib/rbi/model.rb#337 class RBI::AttrReader < ::RBI::Attr - # : (Symbol name, *Symbol names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (AttrReader node) -> void } -> void - # # @return [AttrReader] a new instance of AttrReader # - # source://rbi//lib/rbi/model.rb#351 + # source://rbi//lib/rbi/model.rb#339 sig do params( name: ::Symbol, @@ -233,40 +188,30 @@ class RBI::AttrReader < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#416 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#425 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[Method] - # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#137 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#138 sig { override.returns(T::Array[::RBI::Method]) } def convert_to_methods; end - # : -> Array[String] - # - # source://rbi//lib/rbi/model.rb#358 + # source://rbi//lib/rbi/model.rb#346 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#365 + # source://rbi//lib/rbi/model.rb#353 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#371 +# source://rbi//lib/rbi/model.rb#359 class RBI::AttrWriter < ::RBI::Attr - # : (Symbol name, *Symbol names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (AttrWriter node) -> void } -> void - # # @return [AttrWriter] a new instance of AttrWriter # - # source://rbi//lib/rbi/model.rb#373 + # source://rbi//lib/rbi/model.rb#361 sig do params( name: ::Symbol, @@ -280,53 +225,41 @@ class RBI::AttrWriter < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#424 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#433 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[Method] - # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#147 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#148 sig { override.returns(T::Array[::RBI::Method]) } def convert_to_methods; end - # : -> Array[String] - # - # source://rbi//lib/rbi/model.rb#380 + # source://rbi//lib/rbi/model.rb#368 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#387 + # source://rbi//lib/rbi/model.rb#375 sig { override.returns(::String) } def to_s; end end # An arbitrary blank line that can be added both in trees and comments # -# source://rbi//lib/rbi/model.rb#73 +# source://rbi//lib/rbi/model.rb#70 class RBI::BlankLine < ::RBI::Comment - # : (?loc: Loc?) -> void - # # @return [BlankLine] a new instance of BlankLine # - # source://rbi//lib/rbi/model.rb#75 + # source://rbi//lib/rbi/model.rb#72 sig { params(loc: T.nilable(::RBI::Loc)).void } def initialize(loc: T.unsafe(nil)); end end -# source://rbi//lib/rbi/model.rb#644 +# source://rbi//lib/rbi/model.rb#629 class RBI::BlockParam < ::RBI::Param - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (BlockParam node) -> void } -> void - # # @return [BlockParam] a new instance of BlockParam # - # source://rbi//lib/rbi/model.rb#646 + # source://rbi//lib/rbi/model.rb#631 sig do params( name: ::String, @@ -337,26 +270,20 @@ class RBI::BlockParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#658 + # source://rbi//lib/rbi/model.rb#643 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#653 + # source://rbi//lib/rbi/model.rb#638 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#204 +# source://rbi//lib/rbi/model.rb#195 class RBI::Class < ::RBI::Scope - # : (String name, ?superclass_name: String?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Class node) -> void } -> void - # # @return [Class] a new instance of Class # - # source://rbi//lib/rbi/model.rb#212 + # source://rbi//lib/rbi/model.rb#203 sig do params( name: ::String, @@ -368,71 +295,48 @@ class RBI::Class < ::RBI::Scope end def initialize(name, superclass_name: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#362 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#371 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#221 + # source://rbi//lib/rbi/model.rb#212 sig { override.returns(::String) } def fully_qualified_name; end - # : String - # - # source://rbi//lib/rbi/model.rb#206 + # source://rbi//lib/rbi/model.rb#197 sig { returns(::String) } def name; end - # : String - # - # source://rbi//lib/rbi/model.rb#206 - # @return [String] + # source://rbi//lib/rbi/model.rb#197 def name=(_arg0); end - # : String? - # - # source://rbi//lib/rbi/model.rb#209 + # source://rbi//lib/rbi/model.rb#200 sig { returns(T.nilable(::String)) } def superclass_name; end - # : String? - # - # source://rbi//lib/rbi/model.rb#209 - # @return [String, nil] + # source://rbi//lib/rbi/model.rb#200 def superclass_name=(_arg0); end end -# source://rbi//lib/rbi/model.rb#54 +# source://rbi//lib/rbi/model.rb#51 class RBI::Comment < ::RBI::Node - # : (String text, ?loc: Loc?) -> void - # # @return [Comment] a new instance of Comment # - # source://rbi//lib/rbi/model.rb#59 + # source://rbi//lib/rbi/model.rb#56 sig { params(text: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(text, loc: T.unsafe(nil)); end - # : (Object other) -> bool - # - # source://rbi//lib/rbi/model.rb#65 + # source://rbi//lib/rbi/model.rb#62 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # : String - # - # source://rbi//lib/rbi/model.rb#56 + # source://rbi//lib/rbi/model.rb#53 sig { returns(::String) } def text; end - # : String - # - # source://rbi//lib/rbi/model.rb#56 - # @return [String] + # source://rbi//lib/rbi/model.rb#53 def text=(_arg0); end end @@ -451,64 +355,38 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#546 -# A tree showing incompatibles nodes -# Is rendered as a merge conflict between `left` and` right`: -# ~~~rb -# class Foo -# <<<<<<< left -# def m1; end -# def m2(a); end -# ======= -# def m1(a); end -# def m2; end -# >>>>>>> right -# end +# source://rbi//lib/rbi/rewriters/merge_trees.rb#555 class RBI::ConflictTree < ::RBI::Tree - # : (?left_name: String, ?right_name: String) -> void - # # @return [ConflictTree] a new instance of ConflictTree # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#554 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#563 sig { params(left_name: ::String, right_name: ::String).void } def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - # : Tree - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#548 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#557 sig { returns(::RBI::Tree) } def left; end - # : String - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#551 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#560 sig { returns(::String) } def left_name; end - # : Tree - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#548 - # @return [Tree] + # source://rbi//lib/rbi/rewriters/merge_trees.rb#557 def right; end - # : String - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#551 - # @return [String] + # source://rbi//lib/rbi/rewriters/merge_trees.rb#560 def right_name; end end # Consts # -# source://rbi//lib/rbi/model.rb#272 +# source://rbi//lib/rbi/model.rb#263 class RBI::Const < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Const node) -> void } -> void - # # @return [Const] a new instance of Const # - # source://rbi//lib/rbi/model.rb#277 + # source://rbi//lib/rbi/model.rb#268 sig do params( name: ::String, @@ -520,60 +398,45 @@ class RBI::Const < ::RBI::NodeWithComments end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#386 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#395 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#285 + # source://rbi//lib/rbi/model.rb#276 sig { returns(::String) } def fully_qualified_name; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#99 + # source://rbi//lib/rbi/index.rb#94 sig { override.returns(T::Array[::String]) } def index_ids; end - # : String - # - # source://rbi//lib/rbi/model.rb#274 + # source://rbi//lib/rbi/model.rb#265 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#293 + # source://rbi//lib/rbi/model.rb#284 sig { override.returns(::String) } def to_s; end - # : String - # - # source://rbi//lib/rbi/model.rb#274 - # @return [String] + # source://rbi//lib/rbi/model.rb#265 def value; end end -# source://rbi//lib/rbi/rewriters/merge_trees.rb#332 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#341 class RBI::DuplicateNodeError < ::RBI::Error; end -# source://rbi//lib/rbi.rb#9 +# source://rbi//lib/rbi.rb#8 class RBI::Error < ::StandardError; end -# source://rbi//lib/rbi/model.rb#694 +# source://rbi//lib/rbi/model.rb#676 class RBI::Extend < ::RBI::Mixin include ::RBI::Indexable - # : (String name, *String names, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Extend node) -> void } -> void - # # @return [Extend] a new instance of Extend # - # source://rbi//lib/rbi/model.rb#696 + # source://rbi//lib/rbi/model.rb#678 sig do params( name: ::String, @@ -585,34 +448,26 @@ class RBI::Extend < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#479 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#488 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#139 + # source://rbi//lib/rbi/index.rb#134 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#703 + # source://rbi//lib/rbi/model.rb#685 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#137 +# source://rbi//lib/rbi/model.rb#131 class RBI::File - # : (?strictness: String?, ?comments: Array[Comment]) ?{ (File file) -> void } -> void - # # @return [File] a new instance of File # - # source://rbi//lib/rbi/model.rb#148 + # source://rbi//lib/rbi/model.rb#142 sig do params( strictness: T.nilable(::String), @@ -622,35 +477,24 @@ class RBI::File end def initialize(strictness: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node node) -> void - # - # source://rbi//lib/rbi/model.rb#156 + # source://rbi//lib/rbi/model.rb#150 sig { params(node: ::RBI::Node).void } def <<(node); end - # : Array[Comment] - # - # source://rbi//lib/rbi/model.rb#145 + # source://rbi//lib/rbi/model.rb#139 sig { returns(T::Array[::RBI::Comment]) } def comments; end - # : Array[Comment] - # - # source://rbi//lib/rbi/model.rb#145 - # @return [Array] + # source://rbi//lib/rbi/model.rb#139 def comments=(_arg0); end - # : -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#161 + # source://rbi//lib/rbi/model.rb#155 sig { returns(T::Boolean) } def empty?; end - # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void - # - # source://rbi//lib/rbi/printer.rb#813 + # source://rbi//lib/rbi/printer.rb#817 sig do params( out: T.any(::IO, ::StringIO), @@ -661,53 +505,35 @@ class RBI::File end def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1112 + # source://rbi//lib/rbi/rbs_printer.rb#1210 sig { params(out: T.any(::IO, ::StringIO), indent: ::Integer, print_locs: T::Boolean).void } def rbs_print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end - # : (?indent: Integer, ?print_locs: bool) -> String - # - # source://rbi//lib/rbi/rbs_printer.rb#1118 + # source://rbi//lib/rbi/rbs_printer.rb#1216 sig { params(indent: ::Integer, print_locs: T::Boolean).returns(::String) } def rbs_string(indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end - # : Tree - # - # source://rbi//lib/rbi/model.rb#139 + # source://rbi//lib/rbi/model.rb#133 sig { returns(::RBI::Tree) } def root; end - # : Tree - # - # source://rbi//lib/rbi/model.rb#139 - # @return [Tree] + # source://rbi//lib/rbi/model.rb#133 def root=(_arg0); end - # : String? - # - # source://rbi//lib/rbi/model.rb#142 + # source://rbi//lib/rbi/model.rb#136 sig { returns(T.nilable(::String)) } def strictness; end - # : String? - # - # source://rbi//lib/rbi/model.rb#142 - # @return [String, nil] + # source://rbi//lib/rbi/model.rb#136 def strictness=(_arg0); end - # : (?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> String - # - # source://rbi//lib/rbi/printer.rb#819 + # source://rbi//lib/rbi/printer.rb#823 sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end end # source://rbi//lib/rbi/formatter.rb#5 class RBI::Formatter - # : (?add_sig_templates: bool, ?group_nodes: bool, ?max_line_length: Integer?, ?nest_singleton_methods: bool, ?nest_non_public_members: bool, ?sort_nodes: bool, ?replace_attributes_with_methods: bool) -> void - # # @return [Formatter] a new instance of Formatter # # source://rbi//lib/rbi/formatter.rb#10 @@ -724,32 +550,21 @@ class RBI::Formatter end def initialize(add_sig_templates: T.unsafe(nil), group_nodes: T.unsafe(nil), max_line_length: T.unsafe(nil), nest_singleton_methods: T.unsafe(nil), nest_non_public_members: T.unsafe(nil), sort_nodes: T.unsafe(nil), replace_attributes_with_methods: T.unsafe(nil)); end - # : (RBI::File file) -> void - # # source://rbi//lib/rbi/formatter.rb#35 sig { params(file: ::RBI::File).void } def format_file(file); end - # : (RBI::Tree tree) -> void - # # source://rbi//lib/rbi/formatter.rb#40 sig { params(tree: ::RBI::Tree).void } def format_tree(tree); end - # : Integer? - # # source://rbi//lib/rbi/formatter.rb#7 sig { returns(T.nilable(::Integer)) } def max_line_length; end - # : Integer? - # # source://rbi//lib/rbi/formatter.rb#7 - # @return [Integer, nil] def max_line_length=(_arg0); end - # : (RBI::File file) -> String - # # source://rbi//lib/rbi/formatter.rb#29 sig { params(file: ::RBI::File).returns(::String) } def print_file(file); end @@ -757,54 +572,78 @@ end # source://rbi//lib/rbi/rewriters/group_nodes.rb#84 class RBI::Group < ::RBI::Tree - # : (Kind kind) -> void - # # @return [Group] a new instance of Group # # source://rbi//lib/rbi/rewriters/group_nodes.rb#89 sig { params(kind: ::RBI::Group::Kind).void } def initialize(kind); end - # : Kind - # # source://rbi//lib/rbi/rewriters/group_nodes.rb#86 sig { returns(::RBI::Group::Kind) } def kind; end end # source://rbi//lib/rbi/rewriters/group_nodes.rb#94 -class RBI::Group::Kind < ::T::Enum - enums do - Attrs = new - Consts = new - Helpers = new - Inits = new - Methods = new - MixesInClassMethods = new - Mixins = new - RequiredAncestors = new - Sends = new - SingletonClasses = new - TEnums = new - TStructFields = new - TypeMembers = new +class RBI::Group::Kind + class << self + private + + # source://rbi//lib/rbi/rewriters/group_nodes.rb#109 + def new(*_arg0); end end end +# source://rbi//lib/rbi/rewriters/group_nodes.rb#101 +RBI::Group::Kind::Attrs = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#107 +RBI::Group::Kind::Consts = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#97 +RBI::Group::Kind::Helpers = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#104 +RBI::Group::Kind::Inits = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#105 +RBI::Group::Kind::Methods = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#99 +RBI::Group::Kind::MixesInClassMethods = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#95 +RBI::Group::Kind::Mixins = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#96 +RBI::Group::Kind::RequiredAncestors = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#100 +RBI::Group::Kind::Sends = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#106 +RBI::Group::Kind::SingletonClasses = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#103 +RBI::Group::Kind::TEnums = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#102 +RBI::Group::Kind::TStructFields = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#98 +RBI::Group::Kind::TypeMembers = T.let(T.unsafe(nil), RBI::Group::Kind) + # source://rbi//lib/rbi/rewriters/group_nodes.rb#5 class RBI::GroupNodesError < ::RBI::Error; end # Sorbet's misc. # -# source://rbi//lib/rbi/model.rb#1067 +# source://rbi//lib/rbi/model.rb#1045 class RBI::Helper < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Helper node) -> void } -> void - # # @return [Helper] a new instance of Helper # - # source://rbi//lib/rbi/model.rb#1072 + # source://rbi//lib/rbi/model.rb#1050 sig do params( name: ::String, @@ -815,42 +654,32 @@ class RBI::Helper < ::RBI::NodeWithComments end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#495 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#504 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#169 + # source://rbi//lib/rbi/index.rb#164 sig { override.returns(T::Array[::String]) } def index_ids; end - # : String - # - # source://rbi//lib/rbi/model.rb#1069 + # source://rbi//lib/rbi/model.rb#1047 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1080 + # source://rbi//lib/rbi/model.rb#1058 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#680 +# source://rbi//lib/rbi/model.rb#662 class RBI::Include < ::RBI::Mixin include ::RBI::Indexable - # : (String name, *String names, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Include node) -> void } -> void - # # @return [Include] a new instance of Include # - # source://rbi//lib/rbi/model.rb#682 + # source://rbi//lib/rbi/model.rb#664 sig do params( name: ::String, @@ -862,73 +691,53 @@ class RBI::Include < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#471 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#480 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#129 + # source://rbi//lib/rbi/index.rb#124 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#689 + # source://rbi//lib/rbi/model.rb#671 sig { override.returns(::String) } def to_s; end end # source://rbi//lib/rbi/index.rb#5 class RBI::Index < ::RBI::Visitor - # : -> void - # # @return [Index] a new instance of Index # - # source://rbi//lib/rbi/index.rb#18 + # source://rbi//lib/rbi/index.rb#16 sig { void } def initialize; end - # : (String id) -> Array[Node] - # - # source://rbi//lib/rbi/index.rb#29 + # source://rbi//lib/rbi/index.rb#27 sig { params(id: ::String).returns(T::Array[::RBI::Node]) } def [](id); end - # : (*Node nodes) -> void - # - # source://rbi//lib/rbi/index.rb#34 + # source://rbi//lib/rbi/index.rb#32 sig { params(nodes: ::RBI::Node).void } def index(*nodes); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#24 + # source://rbi//lib/rbi/index.rb#22 sig { returns(T::Array[::String]) } def keys; end - # : (Node? node) -> void - # - # source://rbi//lib/rbi/index.rb#40 + # source://rbi//lib/rbi/index.rb#38 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : ((Indexable & Node) node) -> void - # - # source://rbi//lib/rbi/index.rb#57 + # source://rbi//lib/rbi/index.rb#55 sig { params(node: T.all(::RBI::Indexable, ::RBI::Node)).void } def index_node(node); end class << self - # : (*Node node) -> Index - # - # source://rbi//lib/rbi/index.rb#10 + # source://rbi//lib/rbi/index.rb#8 sig { params(node: ::RBI::Node).returns(::RBI::Index) } def index(*node); end end @@ -936,9 +745,7 @@ end # A Node that can be referred to by a unique ID inside an index # -# @abstract Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/index.rb#70 +# source://rbi//lib/rbi/index.rb#69 module RBI::Indexable interface! @@ -949,49 +756,37 @@ module RBI::Indexable # # @abstract # - # source://rbi//lib/rbi/index.rb#81 - # Unique IDs that refer to this node. - # Some nodes can have multiple ids, for example an attribute accessor matches the ID of the + # source://rbi//lib/rbi/index.rb#76 sig { abstract.returns(T::Array[::String]) } def index_ids; end end -# source://rbi//lib/rbi/model.rb#825 +# source://rbi//lib/rbi/model.rb#804 class RBI::KwArg < ::RBI::Arg - # : (String keyword, String value, ?loc: Loc?) -> void - # # @return [KwArg] a new instance of KwArg # - # source://rbi//lib/rbi/model.rb#830 + # source://rbi//lib/rbi/model.rb#809 sig { params(keyword: ::String, value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(keyword, value, loc: T.unsafe(nil)); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#836 + # source://rbi//lib/rbi/model.rb#815 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : String - # - # source://rbi//lib/rbi/model.rb#827 + # source://rbi//lib/rbi/model.rb#806 sig { returns(::String) } def keyword; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#841 + # source://rbi//lib/rbi/model.rb#820 sig { returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#602 +# source://rbi//lib/rbi/model.rb#587 class RBI::KwOptParam < ::RBI::Param - # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwOptParam node) -> void } -> void - # # @return [KwOptParam] a new instance of KwOptParam # - # source://rbi//lib/rbi/model.rb#607 + # source://rbi//lib/rbi/model.rb#592 sig do params( name: ::String, @@ -1003,32 +798,24 @@ class RBI::KwOptParam < ::RBI::Param end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#620 + # source://rbi//lib/rbi/model.rb#605 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#615 + # source://rbi//lib/rbi/model.rb#600 sig { override.returns(::String) } def to_s; end - # : String - # - # source://rbi//lib/rbi/model.rb#604 + # source://rbi//lib/rbi/model.rb#589 sig { returns(::String) } def value; end end -# source://rbi//lib/rbi/model.rb#583 +# source://rbi//lib/rbi/model.rb#568 class RBI::KwParam < ::RBI::Param - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwParam node) -> void } -> void - # # @return [KwParam] a new instance of KwParam # - # source://rbi//lib/rbi/model.rb#585 + # source://rbi//lib/rbi/model.rb#570 sig do params( name: ::String, @@ -1039,26 +826,20 @@ class RBI::KwParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#597 + # source://rbi//lib/rbi/model.rb#582 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#592 + # source://rbi//lib/rbi/model.rb#577 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#625 +# source://rbi//lib/rbi/model.rb#610 class RBI::KwRestParam < ::RBI::Param - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwRestParam node) -> void } -> void - # # @return [KwRestParam] a new instance of KwRestParam # - # source://rbi//lib/rbi/model.rb#627 + # source://rbi//lib/rbi/model.rb#612 sig do params( name: ::String, @@ -1069,23 +850,17 @@ class RBI::KwRestParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#639 + # source://rbi//lib/rbi/model.rb#624 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#634 + # source://rbi//lib/rbi/model.rb#619 sig { override.returns(::String) } def to_s; end end # source://rbi//lib/rbi/loc.rb#5 class RBI::Loc - # : (?file: String?, ?begin_line: Integer?, ?end_line: Integer?, ?begin_column: Integer?, ?end_column: Integer?) -> void - # # @return [Loc] a new instance of Loc # # source://rbi//lib/rbi/loc.rb#26 @@ -1100,51 +875,36 @@ class RBI::Loc end def initialize(file: T.unsafe(nil), begin_line: T.unsafe(nil), end_line: T.unsafe(nil), begin_column: T.unsafe(nil), end_column: T.unsafe(nil)); end - # : Integer? - # # source://rbi//lib/rbi/loc.rb#23 - # @return [Integer, nil] def begin_column; end - # : Integer? - # # source://rbi//lib/rbi/loc.rb#23 sig { returns(T.nilable(::Integer)) } def begin_line; end - # : Integer? - # # source://rbi//lib/rbi/loc.rb#23 - # @return [Integer, nil] def end_column; end - # : Integer? - # # source://rbi//lib/rbi/loc.rb#23 - # @return [Integer, nil] def end_line; end - # : String? - # # source://rbi//lib/rbi/loc.rb#20 sig { returns(T.nilable(::String)) } def file; end - # : -> String? - # - # source://rbi//lib/rbi/loc.rb#44 + # source://rbi//lib/rbi/loc.rb#35 + sig { params(other: ::RBI::Loc).returns(::RBI::Loc) } + def join(other); end + + # source://rbi//lib/rbi/loc.rb#55 sig { returns(T.nilable(::String)) } def source; end - # : -> String - # - # source://rbi//lib/rbi/loc.rb#35 + # source://rbi//lib/rbi/loc.rb#46 sig { returns(::String) } def to_s; end class << self - # : (String file, Prism::Location prism_location) -> Loc - # # source://rbi//lib/rbi/loc.rb#8 sig { params(file: ::String, prism_location: ::Prism::Location).returns(::RBI::Loc) } def from_prism(file, prism_location); end @@ -1153,13 +913,11 @@ end # A tree that _might_ contain conflicts # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#320 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#329 class RBI::MergeTree < ::RBI::Tree - # : (?loc: Loc?, ?comments: Array[Comment], ?conflicts: Array[Rewriters::Merge::Conflict]) ?{ (Tree node) -> void } -> void - # # @return [MergeTree] a new instance of MergeTree # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#325 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#334 sig do params( loc: T.nilable(::RBI::Loc), @@ -1170,24 +928,20 @@ class RBI::MergeTree < ::RBI::Tree end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), conflicts: T.unsafe(nil), &block); end - # : Array[Rewriters::Merge::Conflict] - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#322 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#331 sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } def conflicts; end end # Methods and args # -# source://rbi//lib/rbi/model.rb#395 +# source://rbi//lib/rbi/model.rb#383 class RBI::Method < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String name, ?params: Array[Param], ?is_singleton: bool, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (Method node) -> void } -> void - # # @return [Method] a new instance of Method # - # source://rbi//lib/rbi/model.rb#412 + # source://rbi//lib/rbi/model.rb#400 sig do params( name: ::String, @@ -1202,57 +956,39 @@ class RBI::Method < ::RBI::NodeWithComments end def initialize(name, params: T.unsafe(nil), is_singleton: T.unsafe(nil), visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Param param) -> void - # - # source://rbi//lib/rbi/model.rb#432 + # source://rbi//lib/rbi/model.rb#420 sig { params(param: ::RBI::Param).void } def <<(param); end - # : (String name) -> void - # - # source://rbi//lib/rbi/model.rb#467 + # source://rbi//lib/rbi/model.rb#455 sig { params(name: ::String).void } def add_block_param(name); end - # : (String name, String default_value) -> void - # - # source://rbi//lib/rbi/model.rb#457 + # source://rbi//lib/rbi/model.rb#445 sig { params(name: ::String, default_value: ::String).void } def add_kw_opt_param(name, default_value); end - # : (String name) -> void - # - # source://rbi//lib/rbi/model.rb#452 + # source://rbi//lib/rbi/model.rb#440 sig { params(name: ::String).void } def add_kw_param(name); end - # : (String name) -> void - # - # source://rbi//lib/rbi/model.rb#462 + # source://rbi//lib/rbi/model.rb#450 sig { params(name: ::String).void } def add_kw_rest_param(name); end - # : (String name, String default_value) -> void - # - # source://rbi//lib/rbi/model.rb#442 + # source://rbi//lib/rbi/model.rb#430 sig { params(name: ::String, default_value: ::String).void } def add_opt_param(name, default_value); end - # : (String name) -> void - # - # source://rbi//lib/rbi/model.rb#437 + # source://rbi//lib/rbi/model.rb#425 sig { params(name: ::String).void } def add_param(name); end - # : (String name) -> void - # - # source://rbi//lib/rbi/model.rb#447 + # source://rbi//lib/rbi/model.rb#435 sig { params(name: ::String).void } def add_rest_param(name); end - # : (?params: Array[SigParam], ?return_type: (String | Type), ?is_abstract: bool, ?is_override: bool, ?is_overridable: bool, ?is_final: bool, ?type_params: Array[String], ?checked: Symbol?) ?{ (Sig node) -> void } -> void - # - # source://rbi//lib/rbi/model.rb#472 + # source://rbi//lib/rbi/model.rb#460 sig do params( params: T::Array[::RBI::SigParam], @@ -1268,102 +1004,68 @@ class RBI::Method < ::RBI::NodeWithComments end def add_sig(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#440 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#449 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#498 + # source://rbi//lib/rbi/model.rb#486 sig { returns(::String) } def fully_qualified_name; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#119 + # source://rbi//lib/rbi/index.rb#114 sig { override.returns(T::Array[::String]) } def index_ids; end - # : bool - # - # source://rbi//lib/rbi/model.rb#403 + # source://rbi//lib/rbi/model.rb#391 sig { returns(T::Boolean) } def is_singleton; end - # : bool - # - # source://rbi//lib/rbi/model.rb#403 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#391 def is_singleton=(_arg0); end - # : (Node other) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#450 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#459 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # : String - # - # source://rbi//lib/rbi/model.rb#397 + # source://rbi//lib/rbi/model.rb#385 sig { returns(::String) } def name; end - # : String - # - # source://rbi//lib/rbi/model.rb#397 - # @return [String] + # source://rbi//lib/rbi/model.rb#385 def name=(_arg0); end - # : Array[Param] - # - # source://rbi//lib/rbi/model.rb#400 + # source://rbi//lib/rbi/model.rb#388 sig { returns(T::Array[::RBI::Param]) } def params; end - # : Array[Sig] - # - # source://rbi//lib/rbi/model.rb#409 + # source://rbi//lib/rbi/model.rb#397 sig { returns(T::Array[::RBI::Sig]) } def sigs; end - # : Array[Sig] - # - # source://rbi//lib/rbi/model.rb#409 - # @return [Array] + # source://rbi//lib/rbi/model.rb#397 def sigs=(_arg0); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#508 + # source://rbi//lib/rbi/model.rb#496 sig { override.returns(::String) } def to_s; end - # : Visibility - # - # source://rbi//lib/rbi/model.rb#406 + # source://rbi//lib/rbi/model.rb#394 sig { returns(::RBI::Visibility) } def visibility; end - # : Visibility - # - # source://rbi//lib/rbi/model.rb#406 - # @return [Visibility] + # source://rbi//lib/rbi/model.rb#394 def visibility=(_arg0); end end -# source://rbi//lib/rbi/model.rb#1111 +# source://rbi//lib/rbi/model.rb#1089 class RBI::MixesInClassMethods < ::RBI::Mixin include ::RBI::Indexable - # : (String name, *String names, ?loc: Loc?, ?comments: Array[Comment]) ?{ (MixesInClassMethods node) -> void } -> void - # # @return [MixesInClassMethods] a new instance of MixesInClassMethods # - # source://rbi//lib/rbi/model.rb#1113 + # source://rbi//lib/rbi/model.rb#1091 sig do params( name: ::String, @@ -1375,40 +1077,30 @@ class RBI::MixesInClassMethods < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#487 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#496 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#149 + # source://rbi//lib/rbi/index.rb#144 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1120 + # source://rbi//lib/rbi/model.rb#1098 sig { override.returns(::String) } def to_s; end end -# Mixins +# @abstract # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/model.rb#665 +# source://rbi//lib/rbi/model.rb#651 class RBI::Mixin < ::RBI::NodeWithComments abstract! - # : (String name, Array[String] names, ?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [Mixin] a new instance of Mixin # - # source://rbi//lib/rbi/model.rb#674 + # source://rbi//lib/rbi/model.rb#656 sig do params( name: ::String, @@ -1419,28 +1111,22 @@ class RBI::Mixin < ::RBI::NodeWithComments end def initialize(name, names, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#463 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#472 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : Array[String] - # - # source://rbi//lib/rbi/model.rb#671 + # source://rbi//lib/rbi/model.rb#653 sig { returns(T::Array[::String]) } def names; end end -# source://rbi//lib/rbi/model.rb#184 +# source://rbi//lib/rbi/model.rb#175 class RBI::Module < ::RBI::Scope - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Module node) -> void } -> void - # # @return [Module] a new instance of Module # - # source://rbi//lib/rbi/model.rb#189 + # source://rbi//lib/rbi/model.rb#180 sig do params( name: ::String, @@ -1451,110 +1137,77 @@ class RBI::Module < ::RBI::Scope end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#370 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#379 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#197 + # source://rbi//lib/rbi/model.rb#188 sig { override.returns(::String) } def fully_qualified_name; end - # : String - # - # source://rbi//lib/rbi/model.rb#186 + # source://rbi//lib/rbi/model.rb#177 sig { returns(::String) } def name; end - # : String - # - # source://rbi//lib/rbi/model.rb#186 - # @return [String] + # source://rbi//lib/rbi/model.rb#177 def name=(_arg0); end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/model.rb#7 +# source://rbi//lib/rbi/model.rb#8 class RBI::Node abstract! - # : (?loc: Loc?) -> void - # # @return [Node] a new instance of Node # - # source://rbi//lib/rbi/model.rb#19 + # source://rbi//lib/rbi/model.rb#16 sig { params(loc: T.nilable(::RBI::Loc)).void } def initialize(loc: T.unsafe(nil)); end # Can `self` and `_other` be merged into a single definition? - # : (Node _other) -> bool # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#280 - # Can `self` and `_other` be merged into a single definition? + # source://rbi//lib/rbi/rewriters/merge_trees.rb#289 sig { params(_other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(_other); end - # : -> void - # - # source://rbi//lib/rbi/model.rb#25 + # source://rbi//lib/rbi/model.rb#22 sig { void } def detach; end - # : Loc? - # - # source://rbi//lib/rbi/model.rb#16 + # source://rbi//lib/rbi/model.rb#13 sig { returns(T.nilable(::RBI::Loc)) } def loc; end - # : Loc? - # - # source://rbi//lib/rbi/model.rb#16 - # @return [Loc, nil] + # source://rbi//lib/rbi/model.rb#13 def loc=(_arg0); end # Merge `self` and `other` into a single definition - # : (Node other) -> void # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#286 - # Merge `self` and `other` into a single definition + # source://rbi//lib/rbi/rewriters/merge_trees.rb#295 sig { params(other: ::RBI::Node).void } def merge_with(other); end - # : -> ConflictTree? - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#289 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#298 sig { returns(T.nilable(::RBI::ConflictTree)) } def parent_conflict_tree; end - # : -> Scope? - # - # source://rbi//lib/rbi/model.rb#47 + # source://rbi//lib/rbi/model.rb#44 sig { returns(T.nilable(::RBI::Scope)) } def parent_scope; end - # : Tree? - # - # source://rbi//lib/rbi/model.rb#13 + # source://rbi//lib/rbi/model.rb#10 sig { returns(T.nilable(::RBI::Tree)) } def parent_tree; end - # : Tree? - # - # source://rbi//lib/rbi/model.rb#13 - # @return [Tree, nil] + # source://rbi//lib/rbi/model.rb#10 def parent_tree=(_arg0); end - # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void - # - # source://rbi//lib/rbi/printer.rb#828 + # source://rbi//lib/rbi/printer.rb#832 sig do params( out: T.any(::IO, ::StringIO), @@ -1565,9 +1218,7 @@ class RBI::Node end def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?positional_names: bool) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1127 + # source://rbi//lib/rbi/rbs_printer.rb#1225 sig do params( out: T.any(::IO, ::StringIO), @@ -1578,87 +1229,64 @@ class RBI::Node end def rbs_print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end - # : (?indent: Integer, ?print_locs: bool, ?positional_names: bool) -> String - # - # source://rbi//lib/rbi/rbs_printer.rb#1133 + # source://rbi//lib/rbi/rbs_printer.rb#1231 sig { params(indent: ::Integer, print_locs: T::Boolean, positional_names: T::Boolean).returns(::String) } def rbs_string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end - # : (Node node) -> void - # # @raise [ReplaceNodeError] # - # source://rbi//lib/rbi/model.rb#34 + # source://rbi//lib/rbi/model.rb#31 sig { params(node: ::RBI::Node).void } def replace(node); end - # : (Gem::Version version) -> bool - # # @return [Boolean] # # source://rbi//lib/rbi/rewriters/filter_versions.rb#91 sig { params(version: ::Gem::Version).returns(T::Boolean) } def satisfies_version?(version); end - # : (?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> String - # - # source://rbi//lib/rbi/printer.rb#834 + # source://rbi//lib/rbi/printer.rb#838 sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/model.rb#90 +# source://rbi//lib/rbi/model.rb#88 class RBI::NodeWithComments < ::RBI::Node abstract! - # : (?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [NodeWithComments] a new instance of NodeWithComments # - # source://rbi//lib/rbi/model.rb#99 + # source://rbi//lib/rbi/model.rb#93 sig { params(loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : -> Array[String] - # - # source://rbi//lib/rbi/model.rb#105 + # source://rbi//lib/rbi/model.rb#99 sig { returns(T::Array[::String]) } def annotations; end - # : Array[Comment] - # - # source://rbi//lib/rbi/model.rb#96 + # source://rbi//lib/rbi/model.rb#90 sig { returns(T::Array[::RBI::Comment]) } def comments; end - # : Array[Comment] - # - # source://rbi//lib/rbi/model.rb#96 - # @return [Array] + # source://rbi//lib/rbi/model.rb#90 def comments=(_arg0); end - # : (Node other) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#303 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#312 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # : -> Array[Gem::Requirement] - # # source://rbi//lib/rbi/rewriters/filter_versions.rb#101 sig { returns(T::Array[::Gem::Requirement]) } def version_requirements; end end -# source://rbi//lib/rbi/model.rb#547 +# source://rbi//lib/rbi/model.rb#532 class RBI::OptParam < ::RBI::Param - # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (OptParam node) -> void } -> void - # # @return [OptParam] a new instance of OptParam # - # source://rbi//lib/rbi/model.rb#552 + # source://rbi//lib/rbi/model.rb#537 sig do params( name: ::String, @@ -1670,58 +1298,44 @@ class RBI::OptParam < ::RBI::Param end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#559 + # source://rbi//lib/rbi/model.rb#544 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : String - # - # source://rbi//lib/rbi/model.rb#549 + # source://rbi//lib/rbi/model.rb#534 sig { returns(::String) } def value; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/model.rb#513 +# source://rbi//lib/rbi/model.rb#502 class RBI::Param < ::RBI::NodeWithComments abstract! - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [Param] a new instance of Param # - # source://rbi//lib/rbi/model.rb#522 + # source://rbi//lib/rbi/model.rb#507 sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : String - # - # source://rbi//lib/rbi/model.rb#519 + # source://rbi//lib/rbi/model.rb#504 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#529 + # source://rbi//lib/rbi/model.rb#514 sig { override.returns(::String) } def to_s; end end # source://rbi//lib/rbi/parser.rb#7 class RBI::ParseError < ::RBI::Error - # : (String message, Loc location) -> void - # # @return [ParseError] a new instance of ParseError # # source://rbi//lib/rbi/parser.rb#12 sig { params(message: ::String, location: ::RBI::Loc).void } def initialize(message, location); end - # : Loc - # # source://rbi//lib/rbi/parser.rb#9 sig { returns(::RBI::Loc) } def location; end @@ -1729,264 +1343,186 @@ end # source://rbi//lib/rbi/parser.rb#49 class RBI::Parser - # : (String path) -> Tree - # # source://rbi//lib/rbi/parser.rb#80 sig { params(path: ::String).returns(::RBI::Tree) } def parse_file(path); end - # : (String string) -> Tree - # # source://rbi//lib/rbi/parser.rb#75 sig { params(string: ::String).returns(::RBI::Tree) } def parse_string(string); end private - # : (String source, file: String) -> Tree - # # source://rbi//lib/rbi/parser.rb#87 sig { params(source: ::String, file: ::String).returns(::RBI::Tree) } def parse(source, file:); end class << self - # : (String path) -> Tree - # # source://rbi//lib/rbi/parser.rb#57 sig { params(path: ::String).returns(::RBI::Tree) } def parse_file(path); end - # : (Array[String] paths) -> Array[Tree] - # # source://rbi//lib/rbi/parser.rb#62 sig { params(paths: T::Array[::String]).returns(T::Array[::RBI::Tree]) } def parse_files(paths); end - # : (String string) -> Tree - # # source://rbi//lib/rbi/parser.rb#52 sig { params(string: ::String).returns(::RBI::Tree) } def parse_string(string); end - # : (Array[String] strings) -> Array[Tree] - # # source://rbi//lib/rbi/parser.rb#68 sig { params(strings: T::Array[::String]).returns(T::Array[::RBI::Tree]) } def parse_strings(strings); end end end -# source://rbi//lib/rbi/parser.rb#954 +# source://rbi//lib/rbi/parser.rb#1000 class RBI::Parser::HeredocLocationVisitor < ::Prism::Visitor - # : (Prism::Source source, Integer begin_offset, Integer end_offset) -> void - # # @return [HeredocLocationVisitor] a new instance of HeredocLocationVisitor # - # source://rbi//lib/rbi/parser.rb#956 + # source://rbi//lib/rbi/parser.rb#1002 sig { params(source: ::Prism::Source, begin_offset: ::Integer, end_offset: ::Integer).void } def initialize(source, begin_offset, end_offset); end - # : -> Prism::Location - # - # source://rbi//lib/rbi/parser.rb#985 + # source://rbi//lib/rbi/parser.rb#1033 sig { returns(::Prism::Location) } def location; end - # : (Prism::InterpolatedStringNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#975 - sig { params(node: ::Prism::InterpolatedStringNode).void } + # source://rbi//lib/rbi/parser.rb#1023 + sig { override.params(node: ::Prism::InterpolatedStringNode).void } def visit_interpolated_string_node(node); end - # : (Prism::StringNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#965 - sig { params(node: ::Prism::StringNode).void } + # source://rbi//lib/rbi/parser.rb#1012 + sig { override.params(node: ::Prism::StringNode).void } def visit_string_node(node); end private - # : (Prism::StringNode | Prism::InterpolatedStringNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#996 + # source://rbi//lib/rbi/parser.rb#1044 sig { params(node: T.any(::Prism::InterpolatedStringNode, ::Prism::StringNode)).void } def handle_string_node(node); end end -# source://rbi//lib/rbi/parser.rb#871 +# source://rbi//lib/rbi/parser.rb#915 class RBI::Parser::SigBuilder < ::RBI::Parser::Visitor - # : (String content, file: String) -> void - # # @return [SigBuilder] a new instance of SigBuilder # - # source://rbi//lib/rbi/parser.rb#876 + # source://rbi//lib/rbi/parser.rb#920 sig { params(content: ::String, file: ::String).void } def initialize(content, file:); end - # : Sig - # - # source://rbi//lib/rbi/parser.rb#873 + # source://rbi//lib/rbi/parser.rb#917 sig { returns(::RBI::Sig) } def current; end - # : (Prism::AssocNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#946 + # source://rbi//lib/rbi/parser.rb#992 sig { override.params(node: ::Prism::AssocNode).void } def visit_assoc_node(node); end - # : (Prism::CallNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#884 + # source://rbi//lib/rbi/parser.rb#928 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end end -# source://rbi//lib/rbi/parser.rb#154 +# source://rbi//lib/rbi/parser.rb#164 class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor - # : (String source, comments: Array[Prism::Comment], file: String) -> void - # # @return [TreeBuilder] a new instance of TreeBuilder # - # source://rbi//lib/rbi/parser.rb#162 + # source://rbi//lib/rbi/parser.rb#172 sig { params(source: ::String, comments: T::Array[::Prism::Comment], file: ::String).void } def initialize(source, comments:, file:); end - # : Prism::Node? - # - # source://rbi//lib/rbi/parser.rb#159 + # source://rbi//lib/rbi/parser.rb#169 sig { returns(T.nilable(::Prism::Node)) } def last_node; end - # : Tree - # - # source://rbi//lib/rbi/parser.rb#156 + # source://rbi//lib/rbi/parser.rb#166 sig { returns(::RBI::Tree) } def tree; end - # : (Prism::CallNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#351 + # source://rbi//lib/rbi/parser.rb#361 sig { params(node: ::Prism::CallNode).void } def visit_call_node(node); end - # : (Prism::ClassNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#175 + # source://rbi//lib/rbi/parser.rb#185 sig { override.params(node: ::Prism::ClassNode).void } def visit_class_node(node); end - # : ((Prism::ConstantWriteNode | Prism::ConstantPathWriteNode) node) -> void - # - # source://rbi//lib/rbi/parser.rb#226 + # source://rbi//lib/rbi/parser.rb#236 sig { params(node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode)).void } def visit_constant_assign(node); end - # : (Prism::ConstantPathWriteNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#219 + # source://rbi//lib/rbi/parser.rb#229 sig { override.params(node: ::Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end - # : (Prism::ConstantWriteNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#211 + # source://rbi//lib/rbi/parser.rb#221 sig { override.params(node: ::Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end - # : (Prism::DefNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#281 + # source://rbi//lib/rbi/parser.rb#291 sig { override.params(node: ::Prism::DefNode).void } def visit_def_node(node); end - # : (Prism::ModuleNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#303 + # source://rbi//lib/rbi/parser.rb#313 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # : (Prism::ProgramNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#322 + # source://rbi//lib/rbi/parser.rb#332 sig { override.params(node: ::Prism::ProgramNode).void } def visit_program_node(node); end - # : (Prism::SingletonClassNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#334 + # source://rbi//lib/rbi/parser.rb#344 sig { override.params(node: ::Prism::SingletonClassNode).void } def visit_singleton_class_node(node); end private # Collect all the remaining comments within a node - # : (Prism::Node node) -> void # - # source://rbi//lib/rbi/parser.rb#525 - # Collect all the remaining comments within a node + # source://rbi//lib/rbi/parser.rb#539 sig { params(node: ::Prism::Node).void } def collect_dangling_comments(node); end # Collect all the remaining comments after visiting the tree - # : -> void # - # source://rbi//lib/rbi/parser.rb#543 - # Collect all the remaining comments after visiting the tree + # source://rbi//lib/rbi/parser.rb#557 sig { void } def collect_orphan_comments; end - # : -> Tree - # - # source://rbi//lib/rbi/parser.rb#566 + # source://rbi//lib/rbi/parser.rb#580 sig { returns(::RBI::Tree) } def current_scope; end - # : -> Array[Sig] - # - # source://rbi//lib/rbi/parser.rb#571 + # source://rbi//lib/rbi/parser.rb#585 sig { returns(T::Array[::RBI::Sig]) } def current_sigs; end - # : (Array[Sig] sigs) -> Array[Comment] - # - # source://rbi//lib/rbi/parser.rb#578 + # source://rbi//lib/rbi/parser.rb#592 sig { params(sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) } def detach_comments_from_sigs(sigs); end - # : (Prism::Node node) -> Array[Comment] - # - # source://rbi//lib/rbi/parser.rb#590 + # source://rbi//lib/rbi/parser.rb#604 sig { params(node: ::Prism::Node).returns(T::Array[::RBI::Comment]) } def node_comments(node); end - # : (Prism::Comment node) -> Comment - # - # source://rbi//lib/rbi/parser.rb#608 + # source://rbi//lib/rbi/parser.rb#666 sig { params(node: ::Prism::Comment).returns(::RBI::Comment) } def parse_comment(node); end - # : (Prism::Node? node) -> Array[Param] - # - # source://rbi//lib/rbi/parser.rb#647 + # source://rbi//lib/rbi/parser.rb#699 sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Param]) } def parse_params(node); end - # : (Prism::Node? node) -> Array[Arg] - # - # source://rbi//lib/rbi/parser.rb#621 + # source://rbi//lib/rbi/parser.rb#673 sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Arg]) } def parse_send_args(node); end - # : (Prism::CallNode node) -> Sig - # - # source://rbi//lib/rbi/parser.rb#721 + # source://rbi//lib/rbi/parser.rb#765 sig { params(node: ::Prism::CallNode).returns(::RBI::Sig) } def parse_sig(node); end - # : ((Prism::ConstantWriteNode | Prism::ConstantPathWriteNode) node) -> Struct? - # - # source://rbi//lib/rbi/parser.rb#730 + # source://rbi//lib/rbi/parser.rb#774 sig do params( node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode) @@ -1994,51 +1530,37 @@ class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor end def parse_struct(node); end - # : (Prism::CallNode send) -> void - # - # source://rbi//lib/rbi/parser.rb#778 + # source://rbi//lib/rbi/parser.rb#822 sig { params(send: ::Prism::CallNode).void } def parse_tstruct_field(send); end - # : (String name, Prism::Node node) -> Visibility - # - # source://rbi//lib/rbi/parser.rb#815 + # source://rbi//lib/rbi/parser.rb#859 sig { params(name: ::String, node: ::Prism::Node).returns(::RBI::Visibility) } def parse_visibility(name, node); end - # : -> void - # - # source://rbi//lib/rbi/parser.rb#829 + # source://rbi//lib/rbi/parser.rb#873 sig { void } def separate_header_comments; end - # : -> void - # - # source://rbi//lib/rbi/parser.rb#839 + # source://rbi//lib/rbi/parser.rb#883 sig { void } def set_root_tree_loc; end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/parser.rb#858 + # source://rbi//lib/rbi/parser.rb#902 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def t_enum_value?(node); end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/parser.rb#853 + # source://rbi//lib/rbi/parser.rb#897 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def type_variable_definition?(node); end end # source://rbi//lib/rbi/parser.rb#114 class RBI::Parser::Visitor < ::Prism::Visitor - # : (String source, file: String) -> void - # # @return [Visitor] a new instance of Visitor # # source://rbi//lib/rbi/parser.rb#116 @@ -2047,35 +1569,37 @@ class RBI::Parser::Visitor < ::Prism::Visitor private - # : (Prism::Node node) -> Prism::Location - # # source://rbi//lib/rbi/parser.rb#143 sig { params(node: ::Prism::Node).returns(::Prism::Location) } def adjust_prism_location_for_heredoc(node); end - # : (Prism::Node node) -> Loc - # # source://rbi//lib/rbi/parser.rb#126 sig { params(node: ::Prism::Node).returns(::RBI::Loc) } def node_loc(node); end - # : (Prism::Node? node) -> String? - # # source://rbi//lib/rbi/parser.rb#131 sig { params(node: T.nilable(::Prism::Node)).returns(T.nilable(::String)) } def node_string(node); end - # : (Prism::Node node) -> String - # # source://rbi//lib/rbi/parser.rb#138 sig { params(node: ::Prism::Node).returns(::String) } def node_string!(node); end + + # @return [Boolean] + # + # source://rbi//lib/rbi/parser.rb#154 + sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } + def self?(node); end + + # @return [Boolean] + # + # source://rbi//lib/rbi/parser.rb#159 + sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } + def t_sig_without_runtime?(node); end end # source://rbi//lib/rbi/printer.rb#7 class RBI::Printer < ::RBI::Visitor - # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void - # # @return [Printer] a new instance of Printer # # source://rbi//lib/rbi/printer.rb#21 @@ -2089,459 +1613,307 @@ class RBI::Printer < ::RBI::Visitor end def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # : Integer - # # source://rbi//lib/rbi/printer.rb#15 sig { returns(::Integer) } def current_indent; end - # : -> void - # # source://rbi//lib/rbi/printer.rb#39 sig { void } def dedent; end - # : bool - # # source://rbi//lib/rbi/printer.rb#9 - # @return [Boolean] def in_visibility_group; end - # : bool - # # source://rbi//lib/rbi/printer.rb#9 - # @return [Boolean] def in_visibility_group=(_arg0); end - # : -> void - # # source://rbi//lib/rbi/printer.rb#34 - # Printing sig { void } def indent; end - # : Integer? - # # source://rbi//lib/rbi/printer.rb#18 sig { returns(T.nilable(::Integer)) } def max_line_length; end - # : Node? - # # source://rbi//lib/rbi/printer.rb#12 sig { returns(T.nilable(::RBI::Node)) } def previous_node; end # Print a string without indentation nor `\n` at the end. - # : (String string) -> void # # source://rbi//lib/rbi/printer.rb#45 - # Print a string without indentation nor `\n` at the end. sig { params(string: ::String).void } def print(string); end - # : bool - # # source://rbi//lib/rbi/printer.rb#9 sig { returns(T::Boolean) } def print_locs; end - # : bool - # # source://rbi//lib/rbi/printer.rb#9 - # @return [Boolean] def print_locs=(_arg0); end # Print a string with indentation and `\n` at the end. - # : (String string) -> void # # source://rbi//lib/rbi/printer.rb#65 - # Print a string with indentation and `\n` at the end. sig { params(string: ::String).void } def printl(string); end # Print a string without indentation but with a `\n` at the end. - # : (?String? string) -> void # # source://rbi//lib/rbi/printer.rb#51 - # Print a string without indentation but with a `\n` at the end. sig { params(string: T.nilable(::String)).void } def printn(string = T.unsafe(nil)); end # Print a string with indentation but without a `\n` at the end. - # : (?String? string) -> void # # source://rbi//lib/rbi/printer.rb#58 - # Print a string with indentation but without a `\n` at the end. sig { params(string: T.nilable(::String)).void } def printt(string = T.unsafe(nil)); end - # : (Array[Node] nodes) -> void - # # source://rbi//lib/rbi/printer.rb#72 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end - # : (File file) -> void - # # source://rbi//lib/rbi/printer.rb#84 sig { override.params(file: ::RBI::File).void } def visit_file(file); end private - # : (Node node) -> bool - # # @return [Boolean] # # source://rbi//lib/rbi/printer.rb#680 sig { params(node: ::RBI::Node).returns(T::Boolean) } def oneline?(node); end - # : (Node node) -> void - # # source://rbi//lib/rbi/printer.rb#638 sig { params(node: ::RBI::Node).void } def print_blank_line_before(node); end - # : (Node node) -> void - # # source://rbi//lib/rbi/printer.rb#648 sig { params(node: ::RBI::Node).void } def print_loc(node); end - # : (Param node, last: bool) -> void - # # source://rbi//lib/rbi/printer.rb#654 sig { params(node: ::RBI::Param, last: T::Boolean).void } def print_param_comment_leading_space(node, last:); end - # : (Sig node) -> void - # - # source://rbi//lib/rbi/printer.rb#734 + # source://rbi//lib/rbi/printer.rb#736 sig { params(node: ::RBI::Sig).void } def print_sig_as_block(node); end - # : (Sig node) -> void - # # source://rbi//lib/rbi/printer.rb#709 sig { params(node: ::RBI::Sig).void } def print_sig_as_line(node); end - # : (SigParam node, last: bool) -> void - # # source://rbi//lib/rbi/printer.rb#672 sig { params(node: ::RBI::SigParam, last: T::Boolean).void } def print_sig_param_comment_leading_space(node, last:); end - # : (Sig node) -> Array[String] - # - # source://rbi//lib/rbi/printer.rb#792 + # source://rbi//lib/rbi/printer.rb#796 sig { params(node: ::RBI::Sig).returns(T::Array[::String]) } def sig_modifiers(node); end - # : (Arg node) -> void - # # source://rbi//lib/rbi/printer.rb#453 sig { override.params(node: ::RBI::Arg).void } def visit_arg(node); end - # : (Attr node) -> void - # # source://rbi//lib/rbi/printer.rb#258 sig { params(node: ::RBI::Attr).void } def visit_attr(node); end - # : (AttrAccessor node) -> void - # # source://rbi//lib/rbi/printer.rb#241 sig { override.params(node: ::RBI::AttrAccessor).void } def visit_attr_accessor(node); end - # : (AttrReader node) -> void - # # source://rbi//lib/rbi/printer.rb#247 sig { override.params(node: ::RBI::AttrReader).void } def visit_attr_reader(node); end - # : (AttrWriter node) -> void - # # source://rbi//lib/rbi/printer.rb#253 sig { override.params(node: ::RBI::AttrWriter).void } def visit_attr_writer(node); end - # : (BlankLine node) -> void - # # source://rbi//lib/rbi/printer.rb#138 sig { override.params(node: ::RBI::BlankLine).void } def visit_blank_line(node); end - # : (BlockParam node) -> void - # # source://rbi//lib/rbi/printer.rb#373 sig { override.params(node: ::RBI::BlockParam).void } def visit_block_param(node); end - # : (Class node) -> void - # # source://rbi//lib/rbi/printer.rb#158 sig { override.params(node: ::RBI::Class).void } def visit_class(node); end - # : (Comment node) -> void - # # source://rbi//lib/rbi/printer.rb#121 sig { override.params(node: ::RBI::Comment).void } def visit_comment(node); end - # : (ConflictTree node) -> void - # # source://rbi//lib/rbi/printer.rb#614 sig { override.params(node: ::RBI::ConflictTree).void } def visit_conflict_tree(node); end - # : (Const node) -> void - # # source://rbi//lib/rbi/printer.rb#231 sig { override.params(node: ::RBI::Const).void } def visit_const(node); end - # : (Extend node) -> void - # # source://rbi//lib/rbi/printer.rb#385 sig { override.params(node: ::RBI::Extend).void } def visit_extend(node); end - # : (Group node) -> void - # # source://rbi//lib/rbi/printer.rb#583 sig { override.params(node: ::RBI::Group).void } def visit_group(node); end - # : (Helper node) -> void - # # source://rbi//lib/rbi/printer.rb#567 sig { override.params(node: ::RBI::Helper).void } def visit_helper(node); end - # : (Include node) -> void - # # source://rbi//lib/rbi/printer.rb#379 sig { override.params(node: ::RBI::Include).void } def visit_include(node); end - # : (KwArg node) -> void - # # source://rbi//lib/rbi/printer.rb#459 sig { override.params(node: ::RBI::KwArg).void } def visit_kw_arg(node); end - # : (KwOptParam node) -> void - # # source://rbi//lib/rbi/printer.rb#361 sig { override.params(node: ::RBI::KwOptParam).void } def visit_kw_opt_param(node); end - # : (KwParam node) -> void - # # source://rbi//lib/rbi/printer.rb#355 sig { override.params(node: ::RBI::KwParam).void } def visit_kw_param(node); end - # : (KwRestParam node) -> void - # # source://rbi//lib/rbi/printer.rb#367 sig { override.params(node: ::RBI::KwRestParam).void } def visit_kw_rest_param(node); end - # : (Method node) -> void - # # source://rbi//lib/rbi/printer.rb#287 sig { override.params(node: ::RBI::Method).void } def visit_method(node); end - # : (MixesInClassMethods node) -> void - # # source://rbi//lib/rbi/printer.rb#577 sig { override.params(node: ::RBI::MixesInClassMethods).void } def visit_mixes_in_class_methods(node); end - # : (Mixin node) -> void - # # source://rbi//lib/rbi/printer.rb#390 sig { params(node: ::RBI::Mixin).void } def visit_mixin(node); end - # : (Module node) -> void - # # source://rbi//lib/rbi/printer.rb#152 sig { override.params(node: ::RBI::Module).void } def visit_module(node); end - # : (OptParam node) -> void - # # source://rbi//lib/rbi/printer.rb#343 sig { override.params(node: ::RBI::OptParam).void } def visit_opt_param(node); end - # : (Private node) -> void - # # source://rbi//lib/rbi/printer.rb#420 sig { override.params(node: ::RBI::Private).void } def visit_private(node); end - # : (Protected node) -> void - # # source://rbi//lib/rbi/printer.rb#414 sig { override.params(node: ::RBI::Protected).void } def visit_protected(node); end - # : (Public node) -> void - # # source://rbi//lib/rbi/printer.rb#408 sig { override.params(node: ::RBI::Public).void } def visit_public(node); end - # : (RBSComment node) -> void - # # source://rbi//lib/rbi/printer.rb#104 sig { override.params(node: ::RBI::RBSComment).void } def visit_rbs_comment(node); end - # : (ReqParam node) -> void - # # source://rbi//lib/rbi/printer.rb#337 sig { override.params(node: ::RBI::ReqParam).void } def visit_req_param(node); end - # : (RequiresAncestor node) -> void - # # source://rbi//lib/rbi/printer.rb#604 sig { override.params(node: ::RBI::RequiresAncestor).void } def visit_requires_ancestor(node); end - # : (RestParam node) -> void - # # source://rbi//lib/rbi/printer.rb#349 sig { override.params(node: ::RBI::RestParam).void } def visit_rest_param(node); end - # : (Scope node) -> void - # # source://rbi//lib/rbi/printer.rb#175 sig { params(node: ::RBI::Scope).void } def visit_scope(node); end - # : (Scope node) -> void - # # source://rbi//lib/rbi/printer.rb#220 sig { params(node: ::RBI::Scope).void } def visit_scope_body(node); end - # : (ScopeConflict node) -> void - # # source://rbi//lib/rbi/printer.rb#624 sig { override.params(node: ::RBI::ScopeConflict).void } def visit_scope_conflict(node); end - # : (Scope node) -> void - # # source://rbi//lib/rbi/printer.rb#185 sig { params(node: ::RBI::Scope).void } def visit_scope_header(node); end - # : (Send node) -> void - # # source://rbi//lib/rbi/printer.rb#435 sig { override.params(node: ::RBI::Send).void } def visit_send(node); end - # : (Sig node) -> void - # # source://rbi//lib/rbi/printer.rb#465 sig { override.params(node: ::RBI::Sig).void } def visit_sig(node); end - # : (SigParam node) -> void - # # source://rbi//lib/rbi/printer.rb#486 sig { override.params(node: ::RBI::SigParam).void } def visit_sig_param(node); end - # : (SingletonClass node) -> void - # # source://rbi//lib/rbi/printer.rb#170 sig { override.params(node: ::RBI::SingletonClass).void } def visit_singleton_class(node); end - # : (Struct node) -> void - # # source://rbi//lib/rbi/printer.rb#164 sig { override.params(node: ::RBI::Struct).void } def visit_struct(node); end - # : (TStructField node) -> void - # # source://rbi//lib/rbi/printer.rb#509 sig { params(node: ::RBI::TStructField).void } def visit_t_struct_field(node); end - # : (TEnum node) -> void - # # source://rbi//lib/rbi/printer.rb#528 sig { override.params(node: ::RBI::TEnum).void } def visit_tenum(node); end - # : (TEnumBlock node) -> void - # # source://rbi//lib/rbi/printer.rb#534 sig { override.params(node: ::RBI::TEnumBlock).void } def visit_tenum_block(node); end - # : (TEnumValue node) -> void - # # source://rbi//lib/rbi/printer.rb#547 sig { override.params(node: ::RBI::TEnumValue).void } def visit_tenum_value(node); end - # : (Tree node) -> void - # # source://rbi//lib/rbi/printer.rb#144 sig { override.params(node: ::RBI::Tree).void } def visit_tree(node); end - # : (TStruct node) -> void - # # source://rbi//lib/rbi/printer.rb#492 sig { override.params(node: ::RBI::TStruct).void } def visit_tstruct(node); end - # : (TStructConst node) -> void - # # source://rbi//lib/rbi/printer.rb#498 sig { override.params(node: ::RBI::TStructConst).void } def visit_tstruct_const(node); end - # : (TStructProp node) -> void - # # source://rbi//lib/rbi/printer.rb#504 sig { override.params(node: ::RBI::TStructProp).void } def visit_tstruct_prop(node); end - # : (TypeMember node) -> void - # # source://rbi//lib/rbi/printer.rb#557 sig { override.params(node: ::RBI::TypeMember).void } def visit_type_member(node); end - # : (Visibility node) -> void - # # source://rbi//lib/rbi/printer.rb#425 sig { params(node: ::RBI::Visibility).void } def visit_visibility(node); end - # : (VisibilityGroup node) -> void - # # source://rbi//lib/rbi/printer.rb#590 sig { override.params(node: ::RBI::VisibilityGroup).void } def visit_visibility_group(node); end @@ -2550,13 +1922,11 @@ end # source://rbi//lib/rbi/printer.rb#5 class RBI::PrinterError < ::RBI::Error; end -# source://rbi//lib/rbi/model.rb#763 +# source://rbi//lib/rbi/model.rb#742 class RBI::Private < ::RBI::Visibility - # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Private node) -> void } -> void - # # @return [Private] a new instance of Private # - # source://rbi//lib/rbi/model.rb#765 + # source://rbi//lib/rbi/model.rb#744 sig do params( loc: T.nilable(::RBI::Loc), @@ -2567,13 +1937,11 @@ class RBI::Private < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#755 +# source://rbi//lib/rbi/model.rb#734 class RBI::Protected < ::RBI::Visibility - # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Protected node) -> void } -> void - # # @return [Protected] a new instance of Protected # - # source://rbi//lib/rbi/model.rb#757 + # source://rbi//lib/rbi/model.rb#736 sig do params( loc: T.nilable(::RBI::Loc), @@ -2584,13 +1952,11 @@ class RBI::Protected < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#747 +# source://rbi//lib/rbi/model.rb#726 class RBI::Public < ::RBI::Visibility - # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Public node) -> void } -> void - # # @return [Public] a new instance of Public # - # source://rbi//lib/rbi/model.rb#749 + # source://rbi//lib/rbi/model.rb#728 sig do params( loc: T.nilable(::RBI::Loc), @@ -2606,57 +1972,41 @@ module RBI::RBS; end # source://rbi//lib/rbi/rbs/method_type_translator.rb#6 class RBI::RBS::MethodTypeTranslator - # : (Method) -> void - # # @return [MethodTypeTranslator] a new instance of MethodTypeTranslator # # source://rbi//lib/rbi/rbs/method_type_translator.rb#22 sig { params(method: ::RBI::Method).void } def initialize(method); end - # : Sig - # # source://rbi//lib/rbi/rbs/method_type_translator.rb#19 sig { returns(::RBI::Sig) } def result; end - # : (::RBS::MethodType) -> void - # # source://rbi//lib/rbi/rbs/method_type_translator.rb#28 sig { params(type: ::RBS::MethodType).void } def visit(type); end private - # : (::RBS::Types::Function::Param, Integer) -> SigParam - # # source://rbi//lib/rbi/rbs/method_type_translator.rb#100 sig { params(param: ::RBS::Types::Function::Param, index: ::Integer).returns(::RBI::SigParam) } def translate_function_param(param, index); end - # : (untyped) -> Type - # # source://rbi//lib/rbi/rbs/method_type_translator.rb#115 sig { params(type: T.untyped).returns(::RBI::Type) } def translate_type(type); end - # : (::RBS::Types::Block) -> void - # # @raise [Error] # # source://rbi//lib/rbi/rbs/method_type_translator.rb#42 sig { params(type: ::RBS::Types::Block).void } def visit_block_type(type); end - # : (::RBS::Types::Function) -> void - # # source://rbi//lib/rbi/rbs/method_type_translator.rb#57 sig { params(type: ::RBS::Types::Function).void } def visit_function_type(type); end class << self - # : (Method, ::RBS::MethodType) -> Sig - # # source://rbi//lib/rbi/rbs/method_type_translator.rb#11 sig { params(method: ::RBI::Method, type: ::RBS::MethodType).returns(::RBI::Sig) } def translate(method, type); end @@ -2669,9 +2019,7 @@ class RBI::RBS::MethodTypeTranslator::Error < ::RBI::Error; end # source://rbi//lib/rbi/rbs/type_translator.rb#6 class RBI::RBS::TypeTranslator class << self - # : (NodeType) -> Type - # - # source://rbi//lib/rbi/rbs/type_translator.rb#37 + # source://rbi//lib/rbi/rbs/type_translator.rb#33 sig do params( type: T.any(::RBS::Types::Alias, ::RBS::Types::Bases::Any, ::RBS::Types::Bases::Bool, ::RBS::Types::Bases::Bottom, ::RBS::Types::Bases::Class, ::RBS::Types::Bases::Instance, ::RBS::Types::Bases::Nil, ::RBS::Types::Bases::Self, ::RBS::Types::Bases::Top, ::RBS::Types::Bases::Void, ::RBS::Types::ClassInstance, ::RBS::Types::ClassSingleton, ::RBS::Types::Function, ::RBS::Types::Interface, ::RBS::Types::Intersection, ::RBS::Types::Literal, ::RBS::Types::Optional, ::RBS::Types::Proc, ::RBS::Types::Record, ::RBS::Types::Tuple, ::RBS::Types::Union, ::RBS::Types::UntypedFunction, ::RBS::Types::Variable) @@ -2681,21 +2029,15 @@ class RBI::RBS::TypeTranslator private - # : (::RBS::Types::ClassInstance) -> Type - # - # source://rbi//lib/rbi/rbs/type_translator.rb#99 + # source://rbi//lib/rbi/rbs/type_translator.rb#95 sig { params(type: ::RBS::Types::ClassInstance).returns(::RBI::Type) } def translate_class_instance(type); end - # : (::RBS::Types::Function) -> Type - # - # source://rbi//lib/rbi/rbs/type_translator.rb#107 + # source://rbi//lib/rbi/rbs/type_translator.rb#103 sig { params(type: ::RBS::Types::Function).returns(::RBI::Type) } def translate_function(type); end - # : (String type_name) -> String - # - # source://rbi//lib/rbi/rbs/type_translator.rb#154 + # source://rbi//lib/rbi/rbs/type_translator.rb#150 sig { params(type_name: ::String).returns(::String) } def translate_t_generic_type(type_name); end end @@ -2703,497 +2045,350 @@ end # A comment representing a RBS type prefixed with `#:` # -# source://rbi//lib/rbi/model.rb#81 +# source://rbi//lib/rbi/model.rb#78 class RBI::RBSComment < ::RBI::Comment - # : (Object other) -> bool - # - # source://rbi//lib/rbi/model.rb#83 + # source://rbi//lib/rbi/model.rb#80 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end end # source://rbi//lib/rbi/rbs_printer.rb#5 class RBI::RBSPrinter < ::RBI::Visitor - # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?positional_names: bool) -> void - # # @return [RBSPrinter] a new instance of RBSPrinter # - # source://rbi//lib/rbi/rbs_printer.rb#21 + # source://rbi//lib/rbi/rbs_printer.rb#30 sig do params( out: T.any(::IO, ::StringIO), indent: ::Integer, print_locs: T::Boolean, - positional_names: T::Boolean + positional_names: T::Boolean, + max_line_length: T.nilable(::Integer) ).void end - def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end + def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # : Integer - # # source://rbi//lib/rbi/rbs_printer.rb#15 sig { returns(::Integer) } def current_indent; end - # : -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#39 + # source://rbi//lib/rbi/rbs_printer.rb#49 sig { void } def dedent; end - # : bool - # # source://rbi//lib/rbi/rbs_printer.rb#9 - # @return [Boolean] def in_visibility_group; end - # : bool - # # source://rbi//lib/rbi/rbs_printer.rb#9 - # @return [Boolean] def in_visibility_group=(_arg0); end - # : -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#34 - # Printing + # source://rbi//lib/rbi/rbs_printer.rb#44 sig { void } def indent; end - # : bool - # + # source://rbi//lib/rbi/rbs_printer.rb#21 + sig { returns(T.nilable(::Integer)) } + def max_line_length; end + # source://rbi//lib/rbi/rbs_printer.rb#18 sig { returns(T::Boolean) } def positional_names; end - # : bool - # # source://rbi//lib/rbi/rbs_printer.rb#18 - # @return [Boolean] def positional_names=(_arg0); end - # : Node? - # # source://rbi//lib/rbi/rbs_printer.rb#12 sig { returns(T.nilable(::RBI::Node)) } def previous_node; end # Print a string without indentation nor `\n` at the end. - # : (String string) -> void # - # source://rbi//lib/rbi/rbs_printer.rb#45 - # Print a string without indentation nor `\n` at the end. + # source://rbi//lib/rbi/rbs_printer.rb#55 sig { params(string: ::String).void } def print(string); end - # : (RBI::Attr node, Sig sig) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#292 + # source://rbi//lib/rbi/rbs_printer.rb#302 sig { params(node: ::RBI::Attr, sig: ::RBI::Sig).void } def print_attr_sig(node, sig); end - # : bool - # # source://rbi//lib/rbi/rbs_printer.rb#9 sig { returns(T::Boolean) } def print_locs; end - # : bool - # # source://rbi//lib/rbi/rbs_printer.rb#9 - # @return [Boolean] def print_locs=(_arg0); end - # : (RBI::Method node, Sig sig) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#384 + # source://rbi//lib/rbi/rbs_printer.rb#398 sig { params(node: ::RBI::Method, sig: ::RBI::Sig).void } def print_method_sig(node, sig); end + # source://rbi//lib/rbi/rbs_printer.rb#415 + sig { params(node: ::RBI::Method, sig: ::RBI::Sig).void } + def print_method_sig_inline(node, sig); end + + # source://rbi//lib/rbi/rbs_printer.rb#477 + sig { params(node: ::RBI::Method, sig: ::RBI::Sig).void } + def print_method_sig_multiline(node, sig); end + # Print a string with indentation and `\n` at the end. - # : (String string) -> void # - # source://rbi//lib/rbi/rbs_printer.rb#65 - # Print a string with indentation and `\n` at the end. + # source://rbi//lib/rbi/rbs_printer.rb#75 sig { params(string: ::String).void } def printl(string); end # Print a string without indentation but with a `\n` at the end. - # : (?String? string) -> void # - # source://rbi//lib/rbi/rbs_printer.rb#51 - # Print a string without indentation but with a `\n` at the end. + # source://rbi//lib/rbi/rbs_printer.rb#61 sig { params(string: T.nilable(::String)).void } def printn(string = T.unsafe(nil)); end # Print a string with indentation but without a `\n` at the end. - # : (?String? string) -> void # - # source://rbi//lib/rbi/rbs_printer.rb#58 - # Print a string with indentation but without a `\n` at the end. + # source://rbi//lib/rbi/rbs_printer.rb#68 sig { params(string: T.nilable(::String)).void } def printt(string = T.unsafe(nil)); end - # : (Array[Node] nodes) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#72 + # source://rbi//lib/rbi/rbs_printer.rb#82 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end - # : (Arg node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#581 + # source://rbi//lib/rbi/rbs_printer.rb#678 sig { override.params(node: ::RBI::Arg).void } def visit_arg(node); end - # : (Attr node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#260 + # source://rbi//lib/rbi/rbs_printer.rb#270 sig { params(node: ::RBI::Attr).void } def visit_attr(node); end - # : (AttrAccessor node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#243 + # source://rbi//lib/rbi/rbs_printer.rb#253 sig { override.params(node: ::RBI::AttrAccessor).void } def visit_attr_accessor(node); end - # : (AttrReader node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#249 + # source://rbi//lib/rbi/rbs_printer.rb#259 sig { override.params(node: ::RBI::AttrReader).void } def visit_attr_reader(node); end - # : (AttrWriter node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#255 + # source://rbi//lib/rbi/rbs_printer.rb#265 sig { override.params(node: ::RBI::AttrWriter).void } def visit_attr_writer(node); end - # : (BlankLine node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#114 + # source://rbi//lib/rbi/rbs_printer.rb#124 sig { override.params(node: ::RBI::BlankLine).void } def visit_blank_line(node); end - # : (BlockParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#513 + # source://rbi//lib/rbi/rbs_printer.rb#610 sig { override.params(node: ::RBI::BlockParam).void } def visit_block_param(node); end - # : (Class node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#134 + # source://rbi//lib/rbi/rbs_printer.rb#144 sig { override.params(node: ::RBI::Class).void } def visit_class(node); end - # : (Comment node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#97 + # source://rbi//lib/rbi/rbs_printer.rb#107 sig { override.params(node: ::RBI::Comment).void } def visit_comment(node); end - # : (ConflictTree node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#717 + # source://rbi//lib/rbi/rbs_printer.rb#814 sig { override.params(node: ::RBI::ConflictTree).void } def visit_conflict_tree(node); end - # : (Const node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#227 + # source://rbi//lib/rbi/rbs_printer.rb#237 sig { override.params(node: ::RBI::Const).void } def visit_const(node); end - # : (Extend node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#525 + # source://rbi//lib/rbi/rbs_printer.rb#622 sig { override.params(node: ::RBI::Extend).void } def visit_extend(node); end - # : (File file) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#84 + # source://rbi//lib/rbi/rbs_printer.rb#94 sig { override.params(file: ::RBI::File).void } def visit_file(file); end - # : (Group node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#690 + # source://rbi//lib/rbi/rbs_printer.rb#787 sig { override.params(node: ::RBI::Group).void } def visit_group(node); end - # : (Helper node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#678 + # source://rbi//lib/rbi/rbs_printer.rb#775 sig { override.params(node: ::RBI::Helper).void } def visit_helper(node); end - # : (Include node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#519 + # source://rbi//lib/rbi/rbs_printer.rb#616 sig { override.params(node: ::RBI::Include).void } def visit_include(node); end - # : (KwArg node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#587 + # source://rbi//lib/rbi/rbs_printer.rb#684 sig { override.params(node: ::RBI::KwArg).void } def visit_kw_arg(node); end - # : (KwOptParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#501 + # source://rbi//lib/rbi/rbs_printer.rb#598 sig { override.params(node: ::RBI::KwOptParam).void } def visit_kw_opt_param(node); end - # : (KwParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#495 + # source://rbi//lib/rbi/rbs_printer.rb#592 sig { override.params(node: ::RBI::KwParam).void } def visit_kw_param(node); end - # : (KwRestParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#507 + # source://rbi//lib/rbi/rbs_printer.rb#604 sig { override.params(node: ::RBI::KwRestParam).void } def visit_kw_rest_param(node); end - # : (Method node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#315 + # source://rbi//lib/rbi/rbs_printer.rb#325 sig { override.params(node: ::RBI::Method).void } def visit_method(node); end - # : (MixesInClassMethods node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#684 + # source://rbi//lib/rbi/rbs_printer.rb#781 sig { override.params(node: ::RBI::MixesInClassMethods).void } def visit_mixes_in_class_methods(node); end - # : (Mixin node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#530 + # source://rbi//lib/rbi/rbs_printer.rb#627 sig { params(node: ::RBI::Mixin).void } def visit_mixin(node); end - # : (Module node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#128 + # source://rbi//lib/rbi/rbs_printer.rb#138 sig { override.params(node: ::RBI::Module).void } def visit_module(node); end - # : (OptParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#475 + # source://rbi//lib/rbi/rbs_printer.rb#572 sig { override.params(node: ::RBI::OptParam).void } def visit_opt_param(node); end - # : (Private node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#560 + # source://rbi//lib/rbi/rbs_printer.rb#657 sig { override.params(node: ::RBI::Private).void } def visit_private(node); end - # : (Protected node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#554 + # source://rbi//lib/rbi/rbs_printer.rb#651 sig { override.params(node: ::RBI::Protected).void } def visit_protected(node); end - # : (Public node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#548 + # source://rbi//lib/rbi/rbs_printer.rb#645 sig { override.params(node: ::RBI::Public).void } def visit_public(node); end - # : (ReqParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#465 + # source://rbi//lib/rbi/rbs_printer.rb#562 sig { override.params(node: ::RBI::ReqParam).void } def visit_req_param(node); end - # : (RequiresAncestor node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#711 + # source://rbi//lib/rbi/rbs_printer.rb#808 sig { override.params(node: ::RBI::RequiresAncestor).void } def visit_requires_ancestor(node); end - # : (RestParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#485 + # source://rbi//lib/rbi/rbs_printer.rb#582 sig { override.params(node: ::RBI::RestParam).void } def visit_rest_param(node); end - # : (Scope node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#151 + # source://rbi//lib/rbi/rbs_printer.rb#161 sig { params(node: ::RBI::Scope).void } def visit_scope(node); end - # : (Scope node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#214 + # source://rbi//lib/rbi/rbs_printer.rb#224 sig { params(node: ::RBI::Scope).void } def visit_scope_body(node); end - # : (ScopeConflict node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#727 + # source://rbi//lib/rbi/rbs_printer.rb#824 sig { override.params(node: ::RBI::ScopeConflict).void } def visit_scope_conflict(node); end - # : (Scope node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#161 + # source://rbi//lib/rbi/rbs_printer.rb#171 sig { params(node: ::RBI::Scope).void } def visit_scope_header(node); end - # : (Send node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#575 + # source://rbi//lib/rbi/rbs_printer.rb#672 sig { override.params(node: ::RBI::Send).void } def visit_send(node); end - # : (Sig node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#446 + # source://rbi//lib/rbi/rbs_printer.rb#543 sig { params(node: ::RBI::Sig).void } def visit_sig(node); end - # : (SigParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#459 + # source://rbi//lib/rbi/rbs_printer.rb#556 sig { params(node: ::RBI::SigParam).void } def visit_sig_param(node); end - # : (SingletonClass node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#146 + # source://rbi//lib/rbi/rbs_printer.rb#156 sig { override.params(node: ::RBI::SingletonClass).void } def visit_singleton_class(node); end - # : (Struct node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#140 + # source://rbi//lib/rbi/rbs_printer.rb#150 sig { override.params(node: ::RBI::Struct).void } def visit_struct(node); end - # : (TEnum node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#644 + # source://rbi//lib/rbi/rbs_printer.rb#741 sig { override.params(node: ::RBI::TEnum).void } def visit_tenum(node); end - # : (TEnumBlock node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#650 + # source://rbi//lib/rbi/rbs_printer.rb#747 sig { override.params(node: ::RBI::TEnumBlock).void } def visit_tenum_block(node); end - # : (TEnumValue node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#656 + # source://rbi//lib/rbi/rbs_printer.rb#753 sig { override.params(node: ::RBI::TEnumValue).void } def visit_tenum_value(node); end - # : (Tree node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#120 + # source://rbi//lib/rbi/rbs_printer.rb#130 sig { override.params(node: ::RBI::Tree).void } def visit_tree(node); end - # : (TStruct node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#593 + # source://rbi//lib/rbi/rbs_printer.rb#690 sig { override.params(node: ::RBI::TStruct).void } def visit_tstruct(node); end - # : (TStructConst node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#628 + # source://rbi//lib/rbi/rbs_printer.rb#725 sig { override.params(node: ::RBI::TStructConst).void } def visit_tstruct_const(node); end - # : (TStructProp node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#636 + # source://rbi//lib/rbi/rbs_printer.rb#733 sig { override.params(node: ::RBI::TStructProp).void } def visit_tstruct_prop(node); end - # : (TypeMember node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#672 + # source://rbi//lib/rbi/rbs_printer.rb#769 sig { override.params(node: ::RBI::TypeMember).void } def visit_type_member(node); end - # : (Visibility node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#565 + # source://rbi//lib/rbi/rbs_printer.rb#662 sig { params(node: ::RBI::Visibility).void } def visit_visibility(node); end - # : (VisibilityGroup node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#697 + # source://rbi//lib/rbi/rbs_printer.rb#794 sig { override.params(node: ::RBI::VisibilityGroup).void } def visit_visibility_group(node); end private - # : (Node node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rbs_printer.rb#830 + # source://rbi//lib/rbi/rbs_printer.rb#927 sig { params(node: ::RBI::Node).returns(T::Boolean) } def oneline?(node); end # Parse a string containing a `T.let(x, X)` and extract the type # # Returns `nil` is the string is not a `T.let`. - # : (String? code) -> String? # - # source://rbi//lib/rbi/rbs_printer.rb#864 - # Parse a string containing a `T.let(x, X)` and extract the type - # Returns `nil` is the string is not a `T.let`. + # source://rbi//lib/rbi/rbs_printer.rb#961 sig { params(code: T.nilable(::String)).returns(T.nilable(::String)) } def parse_t_let(code); end - # : ((Type | String) type) -> Type - # - # source://rbi//lib/rbi/rbs_printer.rb#852 + # source://rbi//lib/rbi/rbs_printer.rb#949 sig { params(type: T.any(::RBI::Type, ::String)).returns(::RBI::Type) } def parse_type(type); end - # : (Node node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#743 + # source://rbi//lib/rbi/rbs_printer.rb#840 sig { params(node: ::RBI::Node).void } def print_blank_line_before(node); end - # : (Node node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#762 + # source://rbi//lib/rbi/rbs_printer.rb#859 sig { params(node: ::RBI::Node).void } def print_loc(node); end - # : (Param node, last: bool) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#804 + # source://rbi//lib/rbi/rbs_printer.rb#901 sig { params(node: ::RBI::Param, last: T::Boolean).void } def print_param_comment_leading_space(node, last:); end - # : (Method node, SigParam param) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#768 + # source://rbi//lib/rbi/rbs_printer.rb#865 sig { params(node: ::RBI::Method, param: ::RBI::SigParam).void } def print_sig_param(node, param); end - # : (SigParam node, last: bool) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#822 + # source://rbi//lib/rbi/rbs_printer.rb#919 sig { params(node: ::RBI::SigParam, last: T::Boolean).void } def print_sig_param_comment_leading_space(node, last:); end end @@ -3204,13 +2399,11 @@ class RBI::RBSPrinter::Error < ::RBI::Error; end # source://rbi//lib/rbi/model.rb#5 class RBI::ReplaceNodeError < ::RBI::Error; end -# source://rbi//lib/rbi/model.rb#534 +# source://rbi//lib/rbi/model.rb#519 class RBI::ReqParam < ::RBI::Param - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (ReqParam node) -> void } -> void - # # @return [ReqParam] a new instance of ReqParam # - # source://rbi//lib/rbi/model.rb#536 + # source://rbi//lib/rbi/model.rb#521 sig do params( name: ::String, @@ -3221,51 +2414,39 @@ class RBI::ReqParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#542 + # source://rbi//lib/rbi/model.rb#527 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end end -# source://rbi//lib/rbi/model.rb#1125 +# source://rbi//lib/rbi/model.rb#1103 class RBI::RequiresAncestor < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [RequiresAncestor] a new instance of RequiresAncestor # - # source://rbi//lib/rbi/model.rb#1130 + # source://rbi//lib/rbi/model.rb#1108 sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#159 + # source://rbi//lib/rbi/index.rb#154 sig { override.returns(T::Array[::String]) } def index_ids; end - # : String - # - # source://rbi//lib/rbi/model.rb#1127 + # source://rbi//lib/rbi/model.rb#1105 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1137 + # source://rbi//lib/rbi/model.rb#1115 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#564 +# source://rbi//lib/rbi/model.rb#549 class RBI::RestParam < ::RBI::Param - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (RestParam node) -> void } -> void - # # @return [RestParam] a new instance of RestParam # - # source://rbi//lib/rbi/model.rb#566 + # source://rbi//lib/rbi/model.rb#551 sig do params( name: ::String, @@ -3276,15 +2457,11 @@ class RBI::RestParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#578 + # source://rbi//lib/rbi/model.rb#563 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#573 + # source://rbi//lib/rbi/model.rb#558 sig { override.returns(::String) } def to_s; end end @@ -3294,36 +2471,26 @@ module RBI::Rewriters; end # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#6 class RBI::Rewriters::AddSigTemplates < ::RBI::Visitor - # : (?with_todo_comment: bool) -> void - # # @return [AddSigTemplates] a new instance of AddSigTemplates # # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#8 sig { params(with_todo_comment: T::Boolean).void } def initialize(with_todo_comment: T.unsafe(nil)); end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#15 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (Attr attr) -> void - # # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#29 sig { params(attr: ::RBI::Attr).void } def add_attr_sig(attr); end - # : (Method method) -> void - # # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#44 sig { params(method: ::RBI::Method).void } def add_method_sig(method); end - # : (NodeWithComments node) -> void - # # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#55 sig { params(node: ::RBI::NodeWithComments).void } def add_todo_comment(node); end @@ -3331,30 +2498,22 @@ end # source://rbi//lib/rbi/rewriters/annotate.rb#6 class RBI::Rewriters::Annotate < ::RBI::Visitor - # : (String annotation, ?annotate_scopes: bool, ?annotate_properties: bool) -> void - # # @return [Annotate] a new instance of Annotate # # source://rbi//lib/rbi/rewriters/annotate.rb#8 sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } def initialize(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/annotate.rb#17 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (NodeWithComments node) -> void - # # source://rbi//lib/rbi/rewriters/annotate.rb#30 sig { params(node: ::RBI::NodeWithComments).void } def annotate_node(node); end - # : (Node node) -> bool - # # @return [Boolean] # # source://rbi//lib/rbi/rewriters/annotate.rb#37 @@ -3364,16 +2523,12 @@ end # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#22 class RBI::Rewriters::AttrToMethods < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#25 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (Node node, with: Array[Node]) -> void - # # @raise [ReplaceNodeError] # # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#38 @@ -3383,24 +2538,18 @@ end # source://rbi//lib/rbi/rewriters/deannotate.rb#6 class RBI::Rewriters::Deannotate < ::RBI::Visitor - # : (String annotation) -> void - # # @return [Deannotate] a new instance of Deannotate # # source://rbi//lib/rbi/rewriters/deannotate.rb#8 sig { params(annotation: ::String).void } def initialize(annotation); end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/deannotate.rb#15 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (NodeWithComments node) -> void - # # source://rbi//lib/rbi/rewriters/deannotate.rb#26 sig { params(node: ::RBI::NodeWithComments).void } def deannotate_node(node); end @@ -3459,59 +2608,18 @@ end # - RBI with no version annotations are automatically counted towards ALL versions # # source://rbi//lib/rbi/rewriters/filter_versions.rb#57 -# Take a gem version and filter out all RBI that is not relevant to that version based on @version annotations -# in comments. As an example: -# ~~~rb -# tree = Parser.parse_string(<<~RBI) -# class Foo -# # @version > 0.3.0 -# def bar -# end -# # @version <= 0.3.0 -# def bar(arg1) -# end -# RBI -# Rewriters::FilterVersions.filter(tree, Gem::Version.new("0.3.1")) -# assert_equal(<<~RBI, tree.string) -# ~~~ -# Supported operators: -# - equals `=` -# - not equals `!=` -# - greater than `>` -# - greater than or equal to `>=` -# - less than `<` -# - less than or equal to `<=` -# - pessimistic or twiddle-wakka`~>` -# And/or logic: -# - "And" logic: put multiple versions on the same line -# - e.g. `@version > 0.3.0, <1.0.0` means version must be greater than 0.3.0 AND less than 1.0.0 -# - "Or" logic: put multiple versions on subsequent lines -# - e.g. the following means version must be less than 0.3.0 OR greater than 1.0.0 -# ``` -# # @version < 0.3.0 -# # @version > 1.0.0 -# Prerelease versions: -# - Prerelease versions are considered less than their non-prerelease counterparts -# - e.g. `0.4.0-prerelease` is less than `0.4.0` -# RBI with no versions: class RBI::Rewriters::FilterVersions < ::RBI::Visitor - # : (Gem::Version version) -> void - # # @return [FilterVersions] a new instance of FilterVersions # # source://rbi//lib/rbi/rewriters/filter_versions.rb#69 sig { params(version: ::Gem::Version).void } def initialize(version); end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/filter_versions.rb#76 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end class << self - # : (Tree tree, Gem::Version version) -> void - # # source://rbi//lib/rbi/rewriters/filter_versions.rb#62 sig { params(tree: ::RBI::Tree, version: ::Gem::Version).void } def filter(tree, version); end @@ -3547,23 +2655,7 @@ RBI::Rewriters::FilterVersions::VERSION_PREFIX = T.let(T.unsafe(nil), String) # ~~~ # # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#30 -# Rewrite non-singleton methods inside singleton classes to singleton methods -# Example: -# ~~~rb -# class << self -# def m1; end -# def self.m2; end -# class << self -# def m3; end -# end -# end -# will be rewritten to: -# def self.m1; end -# def self.m2; end -# def self.m3; end class RBI::Rewriters::FlattenSingletonMethods < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#33 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end @@ -3592,29 +2684,13 @@ end # ~~~ # # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#27 -# Flattens visibility nodes into method nodes -# Example: -# ~~~rb -# class A -# def m1; end -# private -# def m2; end -# def m3; end -# end -# will be transformed into: -# private def m2; end -# private def m3; end class RBI::Rewriters::FlattenVisibilities < ::RBI::Visitor - # : -> void - # # @return [FlattenVisibilities] a new instance of FlattenVisibilities # # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#29 sig { void } def initialize; end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#37 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end @@ -3622,16 +2698,12 @@ end # source://rbi//lib/rbi/rewriters/group_nodes.rb#8 class RBI::Rewriters::GroupNodes < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/group_nodes.rb#11 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (Node node) -> Group::Kind - # # source://rbi//lib/rbi/rewriters/group_nodes.rb#35 sig { params(node: ::RBI::Node).returns(::RBI::Group::Kind) } def group_kind(node); end @@ -3672,45 +2744,22 @@ end # ~~~ # # source://rbi//lib/rbi/rewriters/merge_trees.rb#39 -# Merge two RBI trees together -# Be this `Tree`: -# ~~~rb -# class Foo -# attr_accessor :a -# def m; end -# C = 10 -# end -# Merged with this one: -# attr_reader :a -# def m(x); end -# Compatible definitions are merged together while incompatible definitions are moved into a `ConflictTree`: -# <<<<<<< left -# ======= -# >>>>>>> right class RBI::Rewriters::Merge - # : (?left_name: String, ?right_name: String, ?keep: Keep) -> void - # # @return [Merge] a new instance of Merge # # source://rbi//lib/rbi/rewriters/merge_trees.rb#66 sig { params(left_name: ::String, right_name: ::String, keep: ::RBI::Rewriters::Merge::Keep).void } def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # : (Tree tree) -> void - # # source://rbi//lib/rbi/rewriters/merge_trees.rb#75 sig { params(tree: ::RBI::Tree).void } def merge(tree); end - # : MergeTree - # # source://rbi//lib/rbi/rewriters/merge_trees.rb#63 sig { returns(::RBI::MergeTree) } def tree; end class << self - # : (Tree left, Tree right, ?left_name: String, ?right_name: String, ?keep: Keep) -> MergeTree - # # source://rbi//lib/rbi/rewriters/merge_trees.rb#50 sig do params( @@ -3728,22 +2777,30 @@ end # Used for logging / error displaying purpose # # source://rbi//lib/rbi/rewriters/merge_trees.rb#82 -class RBI::Rewriters::Merge::Conflict < ::T::Struct - const :left, ::RBI::Node - const :right, ::RBI::Node - const :left_name, ::String - const :right_name, ::String - - # : -> String +class RBI::Rewriters::Merge::Conflict + # @return [Conflict] a new instance of Conflict # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#89 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#90 + sig { params(left: ::RBI::Node, right: ::RBI::Node, left_name: ::String, right_name: ::String).void } + def initialize(left:, right:, left_name:, right_name:); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#84 + sig { returns(::RBI::Node) } + def left; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#87 sig { returns(::String) } - def to_s; end + def left_name; end - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end + # source://rbi//lib/rbi/rewriters/merge_trees.rb#84 + def right; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#87 + def right_name; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#98 + sig { returns(::String) } + def to_s; end end # Merge adjacent conflict trees @@ -3777,58 +2834,47 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#238 -# Merge adjacent conflict trees -# Transform this: -# ~~~rb -# class Foo -# <<<<<<< left -# def m1; end -# ======= -# def m1(a); end -# >>>>>>> right -# def m2(a); end -# def m2; end -# end -# Into this: +# source://rbi//lib/rbi/rewriters/merge_trees.rb#247 class RBI::Rewriters::Merge::ConflictTreeMerger < ::RBI::Visitor - # : (Node? node) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#241 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#250 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # : (Array[Node] nodes) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#247 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#256 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end private - # : (Tree left, Tree right) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#268 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#277 sig { params(left: ::RBI::Tree, right: ::RBI::Tree).void } def merge_conflict_trees(left, right); end end # source://rbi//lib/rbi/rewriters/merge_trees.rb#40 -class RBI::Rewriters::Merge::Keep < ::T::Enum - enums do - LEFT = new - NONE = new - RIGHT = new +class RBI::Rewriters::Merge::Keep + class << self + private + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#45 + def new(*_arg0); end end end -# source://rbi//lib/rbi/rewriters/merge_trees.rb#94 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#42 +RBI::Rewriters::Merge::Keep::LEFT = T.let(T.unsafe(nil), RBI::Rewriters::Merge::Keep) + +# source://rbi//lib/rbi/rewriters/merge_trees.rb#41 +RBI::Rewriters::Merge::Keep::NONE = T.let(T.unsafe(nil), RBI::Rewriters::Merge::Keep) + +# source://rbi//lib/rbi/rewriters/merge_trees.rb#43 +RBI::Rewriters::Merge::Keep::RIGHT = T.let(T.unsafe(nil), RBI::Rewriters::Merge::Keep) + +# source://rbi//lib/rbi/rewriters/merge_trees.rb#103 class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor - # : (Tree output, ?left_name: String, ?right_name: String, ?keep: Keep) -> void - # # @return [TreeMerger] a new instance of TreeMerger # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#99 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#108 sig do params( output: ::RBI::Tree, @@ -3839,55 +2885,39 @@ class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor end def initialize(output, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # : Array[Conflict] - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#96 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#105 sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } def conflicts; end - # : (Node? node) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#112 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#121 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : -> Tree - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#161 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#170 sig { returns(::RBI::Tree) } def current_scope; end - # : (Scope left, Scope right) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#178 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#187 sig { params(left: ::RBI::Scope, right: ::RBI::Scope).void } def make_conflict_scope(left, right); end - # : (Node left, Node right) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#185 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#194 sig { params(left: ::RBI::Node, right: ::RBI::Node).void } def make_conflict_tree(left, right); end - # : (Node node) -> Node? - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#166 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#175 sig { params(node: ::RBI::Node).returns(T.nilable(::RBI::Node)) } def previous_definition(node); end - # : (Scope left, Scope right) -> Scope - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#197 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#206 sig { params(left: ::RBI::Scope, right: ::RBI::Scope).returns(::RBI::Scope) } def replace_scope_header(left, right); end end # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#6 class RBI::Rewriters::NestNonPublicMembers < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#9 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end @@ -3895,8 +2925,6 @@ end # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#6 class RBI::Rewriters::NestSingletonMethods < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#9 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end @@ -3920,27 +2948,13 @@ end # ~~~ # # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#22 -# This rewriter moves top-level members into a top-level Object class -# Example: -# ~~~rb -# def foo; end -# attr_reader :bar -# will be rewritten to: -# class Object -# def foo; end -# attr_reader :bar -# end class RBI::Rewriters::NestTopLevelMembers < ::RBI::Visitor - # : -> void - # # @return [NestTopLevelMembers] a new instance of NestTopLevelMembers # # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#24 sig { void } def initialize; end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#32 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end @@ -3990,79 +3004,42 @@ end # ~~~ # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#48 -# Remove all definitions existing in the index from the current tree -# Let's create an `Index` from two different `Tree`s: -# ~~~rb -# tree1 = Parse.parse_string(<<~RBI) -# class Foo -# def foo; end -# end -# RBI -# tree2 = Parse.parse_string(<<~RBI) -# FOO = 10 -# index = Index.index(tree1, tree2) -# We can use `RemoveKnownDefinitions` to remove the definitions found in the `index` from the `Tree` to clean: -# tree_to_clean = Parser.parse_string(<<~RBI) -# def bar; end -# BAR = 42 -# cleaned_tree, operations = RemoveKnownDefinitions.remove(tree_to_clean, index) -# assert_equal(<<~RBI, cleaned_tree) -# assert_equal(<<~OPERATIONS, operations.join("\n")) -# Deleted ::Foo#foo at -:2:2-2-16 (duplicate from -:2:2-2:16) -# Deleted ::FOO at -:5:0-5:8 (duplicate from -:1:0-1:8) -# OPERATIONS class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor - # : (Index index) -> void - # # @return [RemoveKnownDefinitions] a new instance of RemoveKnownDefinitions # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#53 sig { params(index: ::RBI::Index).void } def initialize(index); end - # : Array[Operation] - # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#50 sig { returns(T::Array[::RBI::Rewriters::RemoveKnownDefinitions::Operation]) } def operations; end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#75 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # : (Array[Node] nodes) -> void - # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#69 sig { params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end private - # : (Node node, Node previous) -> bool - # # @return [Boolean] # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#103 sig { params(node: ::RBI::Node, previous: ::RBI::Node).returns(T::Boolean) } def can_delete_node?(node, previous); end - # : (Node node, Node previous) -> void - # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#121 sig { params(node: ::RBI::Node, previous: ::RBI::Node).void } def delete_node(node, previous); end - # : (Indexable node) -> Node? - # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#94 sig { params(node: ::RBI::Indexable).returns(T.nilable(::RBI::Node)) } def previous_definition_for(node); end class << self - # : (Tree tree, Index index) -> [Tree, Array[Operation]] - # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#61 sig do params( @@ -4075,52 +3052,45 @@ class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor end # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#126 -class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct - const :deleted_node, ::RBI::Node - const :duplicate_of, ::RBI::Node - - # : -> String +class RBI::Rewriters::RemoveKnownDefinitions::Operation + # @return [Operation] a new instance of Operation # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#131 + sig { params(deleted_node: ::RBI::Node, duplicate_of: ::RBI::Node).void } + def initialize(deleted_node:, duplicate_of:); end + + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#128 + sig { returns(::RBI::Node) } + def deleted_node; end + + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#128 + def duplicate_of; end + + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#137 sig { returns(::String) } def to_s; end - - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end end # source://rbi//lib/rbi/rewriters/sort_nodes.rb#6 class RBI::Rewriters::SortNodes < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/sort_nodes.rb#9 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (Group::Kind kind) -> Integer - # # source://rbi//lib/rbi/rewriters/sort_nodes.rb#74 sig { params(kind: ::RBI::Group::Kind).returns(::Integer) } def group_rank(kind); end - # : (Node node) -> String? - # # source://rbi//lib/rbi/rewriters/sort_nodes.rb#95 sig { params(node: ::RBI::Node).returns(T.nilable(::String)) } def node_name(node); end - # : (Node node) -> Integer - # # source://rbi//lib/rbi/rewriters/sort_nodes.rb#46 sig { params(node: ::RBI::Node).returns(::Integer) } def node_rank(node); end - # : (Node node) -> void - # # source://rbi//lib/rbi/rewriters/sort_nodes.rb#107 sig { params(node: ::RBI::Node).void } def sort_node_names!(node); end @@ -4130,28 +3100,20 @@ end # # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#7 class RBI::Rewriters::TranslateRBSSigs < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#12 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (Method | Attr) -> Array[RBSComment] - # # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#34 sig { params(node: T.any(::RBI::Attr, ::RBI::Method)).returns(T::Array[::RBI::RBSComment]) } def extract_rbs_comments(node); end - # : (Attr, RBSComment) -> Sig - # # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#61 sig { params(node: ::RBI::Attr, comment: ::RBI::RBSComment).returns(::RBI::Sig) } def translate_rbs_attr_type(node, comment); end - # : (Method, RBSComment) -> Sig - # # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#53 sig { params(node: ::RBI::Method, comment: ::RBI::RBSComment).returns(::RBI::Sig) } def translate_rbs_method_type(node, comment); end @@ -4160,39 +3122,31 @@ end # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#8 class RBI::Rewriters::TranslateRBSSigs::Error < ::RBI::Error; end -# Scopes -# -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/model.rb#168 +# source://rbi//lib/rbi/model.rb#163 class RBI::Scope < ::RBI::Tree include ::RBI::Indexable abstract! # Duplicate `self` scope without its body - # : -> self # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#337 - # Duplicate `self` scope without its body + # source://rbi//lib/rbi/rewriters/merge_trees.rb#346 sig { returns(T.self_type) } def dup_empty; end # @abstract # - # source://rbi//lib/rbi/model.rb#175 + # source://rbi//lib/rbi/model.rb#166 sig { abstract.returns(::String) } def fully_qualified_name; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#89 + # source://rbi//lib/rbi/index.rb#84 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#179 + # source://rbi//lib/rbi/model.rb#170 sig { override.returns(::String) } def to_s; end end @@ -4210,62 +3164,38 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#577 -# A conflict between two scope headers -# Is rendered as a merge conflict between `left` and` right` for scope definitions: -# ~~~rb -# <<<<<<< left -# class Foo -# ======= -# module Foo -# >>>>>>> right -# def m1; end -# end +# source://rbi//lib/rbi/rewriters/merge_trees.rb#586 class RBI::ScopeConflict < ::RBI::Tree - # : (left: Scope, right: Scope, ?left_name: String, ?right_name: String) -> void - # # @return [ScopeConflict] a new instance of ScopeConflict # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#585 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#594 sig { params(left: ::RBI::Scope, right: ::RBI::Scope, left_name: ::String, right_name: ::String).void } def initialize(left:, right:, left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - # : Scope - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#579 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#588 sig { returns(::RBI::Scope) } def left; end - # : String - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#582 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#591 sig { returns(::String) } def left_name; end - # : Scope - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#579 - # @return [Scope] + # source://rbi//lib/rbi/rewriters/merge_trees.rb#588 def right; end - # : String - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#582 - # @return [String] + # source://rbi//lib/rbi/rewriters/merge_trees.rb#591 def right_name; end end # Sends # -# source://rbi//lib/rbi/model.rb#773 +# source://rbi//lib/rbi/model.rb#752 class RBI::Send < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String method, ?Array[Arg] args, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Send node) -> void } -> void - # # @return [Send] a new instance of Send # - # source://rbi//lib/rbi/model.rb#781 + # source://rbi//lib/rbi/model.rb#760 sig do params( method: ::String, @@ -4277,60 +3207,44 @@ class RBI::Send < ::RBI::NodeWithComments end def initialize(method, args = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Arg arg) -> void - # - # source://rbi//lib/rbi/model.rb#789 + # source://rbi//lib/rbi/model.rb#768 sig { params(arg: ::RBI::Arg).void } def <<(arg); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#794 + # source://rbi//lib/rbi/model.rb#773 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : Array[Arg] - # - # source://rbi//lib/rbi/model.rb#778 + # source://rbi//lib/rbi/model.rb#757 sig { returns(T::Array[::RBI::Arg]) } def args; end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#503 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#512 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#189 + # source://rbi//lib/rbi/index.rb#184 sig { override.returns(T::Array[::String]) } def index_ids; end - # : String - # - # source://rbi//lib/rbi/model.rb#775 + # source://rbi//lib/rbi/model.rb#754 sig { returns(::String) } def method; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#799 + # source://rbi//lib/rbi/model.rb#778 sig { returns(::String) } def to_s; end end # Sorbet's sigs # -# source://rbi//lib/rbi/model.rb#848 +# source://rbi//lib/rbi/model.rb#827 class RBI::Sig < ::RBI::NodeWithComments - # : (?params: Array[SigParam], ?return_type: (Type | String), ?is_abstract: bool, ?is_override: bool, ?is_overridable: bool, ?is_final: bool, ?allow_incompatible_override: bool, ?type_params: Array[String], ?checked: Symbol?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Sig node) -> void } -> void - # # @return [Sig] a new instance of Sig # - # source://rbi//lib/rbi/model.rb#865 + # source://rbi//lib/rbi/model.rb#844 sig do params( params: T::Array[::RBI::SigParam], @@ -4340,6 +3254,7 @@ class RBI::Sig < ::RBI::NodeWithComments is_overridable: T::Boolean, is_final: T::Boolean, allow_incompatible_override: T::Boolean, + without_runtime: T::Boolean, type_params: T::Array[::String], checked: T.nilable(::Symbol), loc: T.nilable(::RBI::Loc), @@ -4347,130 +3262,85 @@ class RBI::Sig < ::RBI::NodeWithComments block: T.nilable(T.proc.params(node: ::RBI::Sig).void) ).void end - def initialize(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), allow_incompatible_override: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + def initialize(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), allow_incompatible_override: T.unsafe(nil), without_runtime: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (SigParam param) -> void - # - # source://rbi//lib/rbi/model.rb#893 + # source://rbi//lib/rbi/model.rb#874 sig { params(param: ::RBI::SigParam).void } def <<(param); end - # : (Object other) -> bool - # - # source://rbi//lib/rbi/model.rb#903 + # source://rbi//lib/rbi/model.rb#884 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # : (String name, (Type | String) type) -> void - # - # source://rbi//lib/rbi/model.rb#898 + # source://rbi//lib/rbi/model.rb#879 sig { params(name: ::String, type: T.any(::RBI::Type, ::String)).void } def add_param(name, type); end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def allow_incompatible_override; end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def allow_incompatible_override=(_arg0); end - # : Symbol? - # - # source://rbi//lib/rbi/model.rb#862 + # source://rbi//lib/rbi/model.rb#841 sig { returns(T.nilable(::Symbol)) } def checked; end - # : Symbol? - # - # source://rbi//lib/rbi/model.rb#862 - # @return [Symbol, nil] + # source://rbi//lib/rbi/model.rb#841 def checked=(_arg0); end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 + # source://rbi//lib/rbi/model.rb#835 sig { returns(T::Boolean) } def is_abstract; end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_abstract=(_arg0); end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_final; end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_final=(_arg0); end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_overridable; end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_overridable=(_arg0); end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_override; end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_override=(_arg0); end - # : Array[SigParam] - # - # source://rbi//lib/rbi/model.rb#850 + # source://rbi//lib/rbi/model.rb#829 sig { returns(T::Array[::RBI::SigParam]) } def params; end - # : (Type | String) - # - # source://rbi//lib/rbi/model.rb#853 + # source://rbi//lib/rbi/model.rb#832 sig { returns(T.any(::RBI::Type, ::String)) } def return_type; end - # : (Type | String) - # - # source://rbi//lib/rbi/model.rb#853 - # @return [Type, String] + # source://rbi//lib/rbi/model.rb#832 def return_type=(_arg0); end - # : Array[String] - # - # source://rbi//lib/rbi/model.rb#859 + # source://rbi//lib/rbi/model.rb#838 sig { returns(T::Array[::String]) } def type_params; end + + # source://rbi//lib/rbi/model.rb#835 + def without_runtime; end + + # source://rbi//lib/rbi/model.rb#835 + def without_runtime=(_arg0); end end -# source://rbi//lib/rbi/model.rb#912 +# source://rbi//lib/rbi/model.rb#893 class RBI::SigParam < ::RBI::NodeWithComments - # : (String name, (Type | String) type, ?loc: Loc?, ?comments: Array[Comment]) ?{ (SigParam node) -> void } -> void - # # @return [SigParam] a new instance of SigParam # - # source://rbi//lib/rbi/model.rb#920 + # source://rbi//lib/rbi/model.rb#901 sig do params( name: ::String, @@ -4482,32 +3352,24 @@ class RBI::SigParam < ::RBI::NodeWithComments end def initialize(name, type, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object other) -> bool - # - # source://rbi//lib/rbi/model.rb#928 + # source://rbi//lib/rbi/model.rb#909 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # : String - # - # source://rbi//lib/rbi/model.rb#914 + # source://rbi//lib/rbi/model.rb#895 sig { returns(::String) } def name; end - # : (Type | String) - # - # source://rbi//lib/rbi/model.rb#917 + # source://rbi//lib/rbi/model.rb#898 sig { returns(T.any(::RBI::Type, ::String)) } def type; end end -# source://rbi//lib/rbi/model.rb#228 +# source://rbi//lib/rbi/model.rb#219 class RBI::SingletonClass < ::RBI::Scope - # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (SingletonClass node) -> void } -> void - # # @return [SingletonClass] a new instance of SingletonClass # - # source://rbi//lib/rbi/model.rb#230 + # source://rbi//lib/rbi/model.rb#221 sig do params( loc: T.nilable(::RBI::Loc), @@ -4517,20 +3379,16 @@ class RBI::SingletonClass < ::RBI::Scope end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#237 + # source://rbi//lib/rbi/model.rb#228 sig { override.returns(::String) } def fully_qualified_name; end end -# source://rbi//lib/rbi/model.rb#242 +# source://rbi//lib/rbi/model.rb#233 class RBI::Struct < ::RBI::Scope - # : (String name, ?members: Array[Symbol], ?keyword_init: bool, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Struct struct) -> void } -> void - # # @return [Struct] a new instance of Struct # - # source://rbi//lib/rbi/model.rb#253 + # source://rbi//lib/rbi/model.rb#244 sig do params( name: ::String, @@ -4543,66 +3401,45 @@ class RBI::Struct < ::RBI::Scope end def initialize(name, members: T.unsafe(nil), keyword_init: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#378 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#387 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#263 + # source://rbi//lib/rbi/model.rb#254 sig { override.returns(::String) } def fully_qualified_name; end - # : bool - # - # source://rbi//lib/rbi/model.rb#250 + # source://rbi//lib/rbi/model.rb#241 sig { returns(T::Boolean) } def keyword_init; end - # : bool - # - # source://rbi//lib/rbi/model.rb#250 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#241 def keyword_init=(_arg0); end - # : Array[Symbol] - # - # source://rbi//lib/rbi/model.rb#247 + # source://rbi//lib/rbi/model.rb#238 sig { returns(T::Array[::Symbol]) } def members; end - # : Array[Symbol] - # - # source://rbi//lib/rbi/model.rb#247 - # @return [Array] + # source://rbi//lib/rbi/model.rb#238 def members=(_arg0); end - # : String - # - # source://rbi//lib/rbi/model.rb#244 + # source://rbi//lib/rbi/model.rb#235 sig { returns(::String) } def name; end - # : String - # - # source://rbi//lib/rbi/model.rb#244 - # @return [String] + # source://rbi//lib/rbi/model.rb#235 def name=(_arg0); end end # Sorbet's T::Enum # -# source://rbi//lib/rbi/model.rb#1014 +# source://rbi//lib/rbi/model.rb#992 class RBI::TEnum < ::RBI::Class - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TEnum klass) -> void } -> void - # # @return [TEnum] a new instance of TEnum # - # source://rbi//lib/rbi/model.rb#1016 + # source://rbi//lib/rbi/model.rb#994 sig do params( name: ::String, @@ -4614,13 +3451,11 @@ class RBI::TEnum < ::RBI::Class def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#1022 +# source://rbi//lib/rbi/model.rb#1000 class RBI::TEnumBlock < ::RBI::Scope - # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (TEnumBlock node) -> void } -> void - # # @return [TEnumBlock] a new instance of TEnumBlock # - # source://rbi//lib/rbi/model.rb#1024 + # source://rbi//lib/rbi/model.rb#1002 sig do params( loc: T.nilable(::RBI::Loc), @@ -4630,34 +3465,26 @@ class RBI::TEnumBlock < ::RBI::Scope end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1031 + # source://rbi//lib/rbi/model.rb#1009 sig { override.returns(::String) } def fully_qualified_name; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#219 + # source://rbi//lib/rbi/index.rb#214 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1037 + # source://rbi//lib/rbi/model.rb#1015 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#1042 +# source://rbi//lib/rbi/model.rb#1020 class RBI::TEnumValue < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TEnumValue node) -> void } -> void - # # @return [TEnumValue] a new instance of TEnumValue # - # source://rbi//lib/rbi/model.rb#1047 + # source://rbi//lib/rbi/model.rb#1025 sig do params( name: ::String, @@ -4668,40 +3495,30 @@ class RBI::TEnumValue < ::RBI::NodeWithComments end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1054 + # source://rbi//lib/rbi/model.rb#1032 sig { returns(::String) } def fully_qualified_name; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#229 + # source://rbi//lib/rbi/index.rb#224 sig { override.returns(T::Array[::String]) } def index_ids; end - # : String - # - # source://rbi//lib/rbi/model.rb#1044 + # source://rbi//lib/rbi/model.rb#1022 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1060 + # source://rbi//lib/rbi/model.rb#1038 sig { override.returns(::String) } def to_s; end end # Sorbet's T::Struct # -# source://rbi//lib/rbi/model.rb#935 +# source://rbi//lib/rbi/model.rb#916 class RBI::TStruct < ::RBI::Class - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TStruct klass) -> void } -> void - # # @return [TStruct] a new instance of TStruct # - # source://rbi//lib/rbi/model.rb#937 + # source://rbi//lib/rbi/model.rb#918 sig do params( name: ::String, @@ -4713,15 +3530,13 @@ class RBI::TStruct < ::RBI::Class def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#970 +# source://rbi//lib/rbi/model.rb#948 class RBI::TStructConst < ::RBI::TStructField include ::RBI::Indexable - # : (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TStructConst node) -> void } -> void - # # @return [TStructConst] a new instance of TStructConst # - # source://rbi//lib/rbi/model.rb#972 + # source://rbi//lib/rbi/model.rb#950 sig do params( name: ::String, @@ -4734,44 +3549,34 @@ class RBI::TStructConst < ::RBI::TStructField end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#519 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#528 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/model.rb#979 + # source://rbi//lib/rbi/model.rb#957 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#199 + # source://rbi//lib/rbi/index.rb#194 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#986 + # source://rbi//lib/rbi/model.rb#964 sig { override.returns(::String) } def to_s; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/model.rb#943 +# source://rbi//lib/rbi/model.rb#925 class RBI::TStructField < ::RBI::NodeWithComments abstract! - # : (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [TStructField] a new instance of TStructField # - # source://rbi//lib/rbi/model.rb#959 + # source://rbi//lib/rbi/model.rb#936 sig do params( name: ::String, @@ -4783,66 +3588,47 @@ class RBI::TStructField < ::RBI::NodeWithComments end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#511 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#520 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : String? - # - # source://rbi//lib/rbi/model.rb#956 + # source://rbi//lib/rbi/model.rb#933 sig { returns(T.nilable(::String)) } def default; end - # : String? - # - # source://rbi//lib/rbi/model.rb#956 - # @return [String, nil] + # source://rbi//lib/rbi/model.rb#933 def default=(_arg0); end # @abstract # - # source://rbi//lib/rbi/model.rb#967 + # source://rbi//lib/rbi/model.rb#945 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end - # : String - # - # source://rbi//lib/rbi/model.rb#950 + # source://rbi//lib/rbi/model.rb#927 sig { returns(::String) } def name; end - # : String - # - # source://rbi//lib/rbi/model.rb#950 - # @return [String] + # source://rbi//lib/rbi/model.rb#927 def name=(_arg0); end - # : (Type | String) - # - # source://rbi//lib/rbi/model.rb#953 + # source://rbi//lib/rbi/model.rb#930 sig { returns(T.any(::RBI::Type, ::String)) } def type; end - # : (Type | String) - # - # source://rbi//lib/rbi/model.rb#953 - # @return [Type, String] + # source://rbi//lib/rbi/model.rb#930 def type=(_arg0); end end -# source://rbi//lib/rbi/model.rb#991 +# source://rbi//lib/rbi/model.rb#969 class RBI::TStructProp < ::RBI::TStructField include ::RBI::Indexable - # : (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TStructProp node) -> void } -> void - # # @return [TStructProp] a new instance of TStructProp # - # source://rbi//lib/rbi/model.rb#993 + # source://rbi//lib/rbi/model.rb#971 sig do params( name: ::String, @@ -4855,40 +3641,30 @@ class RBI::TStructProp < ::RBI::TStructField end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#527 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#536 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/model.rb#1000 + # source://rbi//lib/rbi/model.rb#978 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#209 + # source://rbi//lib/rbi/index.rb#204 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1007 + # source://rbi//lib/rbi/model.rb#985 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#114 +# source://rbi//lib/rbi/model.rb#108 class RBI::Tree < ::RBI::NodeWithComments - # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Tree node) -> void } -> void - # # @return [Tree] a new instance of Tree # - # source://rbi//lib/rbi/model.rb#119 + # source://rbi//lib/rbi/model.rb#113 sig do params( loc: T.nilable(::RBI::Loc), @@ -4898,25 +3674,18 @@ class RBI::Tree < ::RBI::NodeWithComments end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node node) -> void - # - # source://rbi//lib/rbi/model.rb#126 + # source://rbi//lib/rbi/model.rb#120 sig { params(node: ::RBI::Node).void } def <<(node); end - # : (?with_todo_comment: bool) -> void - # # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#63 sig { params(with_todo_comment: T::Boolean).void } def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end - # : (String annotation, ?annotate_scopes: bool, ?annotate_properties: bool) -> void - # # source://rbi//lib/rbi/rewriters/annotate.rb#46 sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#38 sig do params( name: ::String, @@ -4926,19 +3695,15 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_class(name, superclass_name: T.unsafe(nil), &block); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#45 sig { params(name: ::String, value: ::String).void } def create_constant(name, value:); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#55 sig { params(name: ::String).void } def create_extend(name); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#50 sig { params(name: ::String).void } def create_include(name); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#90 sig do params( name: ::String, @@ -4952,19 +3717,18 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#60 sig { params(name: ::String).void } def create_mixes_in_class_methods(name); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#25 sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } def create_module(name, &block); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#9 + sig { params(node: ::RBI::Node).returns(::RBI::Node) } + def create_node(node); end + sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } def create_path(constant, &block); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#74 sig do params( name: ::String, @@ -4977,53 +3741,37 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end - # : (String annotation) -> void - # # source://rbi//lib/rbi/rewriters/deannotate.rb#38 sig { params(annotation: ::String).void } def deannotate!(annotation); end - # : -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#132 + # source://rbi//lib/rbi/model.rb#126 sig { returns(T::Boolean) } def empty?; end - # : (Gem::Version version) -> void - # # source://rbi//lib/rbi/rewriters/filter_versions.rb#113 sig { params(version: ::Gem::Version).void } def filter_versions!(version); end - # : -> void - # # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#58 sig { void } def flatten_singleton_methods!; end - # : -> void - # # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#57 sig { void } def flatten_visibilities!; end - # : -> void - # # source://rbi//lib/rbi/rewriters/group_nodes.rb#78 sig { void } def group_nodes!; end - # : -> Index - # - # source://rbi//lib/rbi/index.rb#64 + # source://rbi//lib/rbi/index.rb#62 sig { returns(::RBI::Index) } def index; end - # : (Tree other, ?left_name: String, ?right_name: String, ?keep: Rewriters::Merge::Keep) -> MergeTree - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#314 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#323 sig do params( other: ::RBI::Tree, @@ -5034,92 +3782,65 @@ class RBI::Tree < ::RBI::NodeWithComments end def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # : -> void - # # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#43 sig { void } def nest_non_public_members!; end - # : -> void - # # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#33 sig { void } def nest_singleton_methods!; end - # : -> void - # # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#60 sig { void } def nest_top_level_members!; end - # : Array[Node] - # - # source://rbi//lib/rbi/model.rb#116 + # source://rbi//lib/rbi/model.rb#110 sig { returns(T::Array[::RBI::Node]) } def nodes; end - # : -> void - # + sig { returns(T::Hash[::String, ::RBI::Node]) } + def nodes_cache; end + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#50 sig { void } def replace_attributes_with_methods!; end - # : -> void - # # source://rbi//lib/rbi/rewriters/sort_nodes.rb#118 sig { void } def sort_nodes!; end - # : -> void - # # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#82 sig { void } def translate_rbs_sigs!; end - - private - - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#123 - sig { params(node: ::RBI::Node).returns(::RBI::Node) } - def create_node(node); end - - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#118 - sig { returns(T::Hash[::String, ::RBI::Node]) } - def nodes_cache; end end # The base class for all RBI types. # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/type.rb#6 +# source://rbi//lib/rbi/type.rb#7 class RBI::Type abstract! - # : -> void - # # @return [Type] a new instance of Type # - # source://rbi//lib/rbi/type.rb#695 + # source://rbi//lib/rbi/type.rb#905 sig { void } def initialize; end # @abstract # - # source://rbi//lib/rbi/type.rb#741 + # source://rbi//lib/rbi/type.rb#976 sig { abstract.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : (BasicObject other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type.rb#744 + # source://rbi//lib/rbi/type.rb#979 sig { params(other: ::BasicObject).returns(T::Boolean) } def eql?(other); end - # : -> Integer - # - # source://rbi//lib/rbi/type.rb#750 + # source://rbi//lib/rbi/type.rb#985 sig { override.returns(::Integer) } def hash; end @@ -5132,27 +3853,16 @@ class RBI::Type # type.nilable.to_rbi # => "T.nilable(String)" # type.nilable.nilable.to_rbi # => "T.nilable(String)" # ``` - # : -> Type # - # source://rbi//lib/rbi/type.rb#709 - # Returns a new type that is `nilable` if it is not already. - # If the type is already nilable, it returns itself. - # ```ruby - # type = RBI::Type.simple("String") - # type.to_rbi # => "String" - # type.nilable.to_rbi # => "T.nilable(String)" - # type.nilable.nilable.to_rbi # => "T.nilable(String)" - # ``` + # source://rbi//lib/rbi/type.rb#919 sig { returns(::RBI::Type) } def nilable; end # Returns whether the type is nilable. - # : -> bool # # @return [Boolean] # - # source://rbi//lib/rbi/type.rb#736 - # Returns whether the type is nilable. + # source://rbi//lib/rbi/type.rb#946 sig { returns(T::Boolean) } def nilable?; end @@ -5166,36 +3876,52 @@ class RBI::Type # type.non_nilable.to_rbi # => "String" # type.non_nilable.non_nilable.to_rbi # => "String" # ``` - # : -> Type # - # source://rbi//lib/rbi/type.rb#724 - # Returns the non-nilable version of the type. - # If the type is already non-nilable, it returns itself. - # If the type is nilable, it returns the inner type. - # ```ruby - # type = RBI::Type.nilable(RBI::Type.simple("String")) - # type.to_rbi # => "T.nilable(String)" - # type.non_nilable.to_rbi # => "String" - # type.non_nilable.non_nilable.to_rbi # => "String" - # ``` + # source://rbi//lib/rbi/type.rb#934 sig { returns(::RBI::Type) } def non_nilable; end - # : -> String + # Returns a normalized version of the type. + # + # Normalized types are meant to be easier to process, not to read. + # For example, `T.any(TrueClass, FalseClass)` instead of `T::Boolean` or + # `T.any(String, NilClass)` instead of `T.nilable(String)`. + # + # This is the inverse of `#simplify`. + # + # + # @abstract # - # source://rbi//lib/rbi/rbs_printer.rb#1142 + # source://rbi//lib/rbi/type.rb#960 + sig { abstract.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/rbs_printer.rb#1240 sig { returns(::String) } def rbs_string; end + # Returns a simplified version of the type. + # + # Simplified types are meant to be easier to read, not to process. + # For example, `T::Boolean` instead of `T.any(TrueClass, FalseClass)` or + # `T.nilable(String)` instead of `T.any(String, NilClass)`. + # + # This is the inverse of `#normalize`. + # + # + # @abstract + # + # source://rbi//lib/rbi/type.rb#972 + sig { abstract.returns(::RBI::Type) } + def simplify; end + # @abstract # - # source://rbi//lib/rbi/type.rb#755 + # source://rbi//lib/rbi/type.rb#991 sig { abstract.returns(::String) } def to_rbi; end - # : -> String - # - # source://rbi//lib/rbi/type.rb#759 + # source://rbi//lib/rbi/type.rb#995 sig { override.returns(::String) } def to_s; end @@ -5204,12 +3930,8 @@ class RBI::Type # # Note that this method transforms types such as `T.all(String, String)` into `String`, so # it may return something other than a `All`. - # : (Type type1, Type type2, *Type types) -> Type # - # source://rbi//lib/rbi/type.rb#559 - # Builds a type that represents an intersection of multiple types like `T.all(String, Integer)`. - # Note that this method transforms types such as `T.all(String, String)` into `String`, so - # it may return something other than a `All`. + # source://rbi//lib/rbi/type.rb#847 sig { params(type1: ::RBI::Type, type2: ::RBI::Type, types: ::RBI::Type).returns(::RBI::Type) } def all(type1, type2, *types); end @@ -5217,52 +3939,38 @@ class RBI::Type # # Note that this method transforms types such as `T.any(String, NilClass)` into `T.nilable(String)`, so # it may return something other than a `Any`. - # : (Type type1, Type type2, *Type types) -> Type # - # source://rbi//lib/rbi/type.rb#586 - # Builds a type that represents a union of multiple types like `T.any(String, Integer)`. - # Note that this method transforms types such as `T.any(String, NilClass)` into `T.nilable(String)`, so - # it may return something other than a `Any`. + # source://rbi//lib/rbi/type.rb#856 sig { params(type1: ::RBI::Type, type2: ::RBI::Type, types: ::RBI::Type).returns(::RBI::Type) } def any(type1, type2, *types); end # Builds a type that represents `T.anything`. - # : -> Anything # - # source://rbi//lib/rbi/type.rb#484 - # Builds a type that represents `T.anything`. + # source://rbi//lib/rbi/type.rb#778 sig { returns(::RBI::Type::Anything) } def anything; end # Builds a type that represents `T.attached_class`. - # : -> AttachedClass # - # source://rbi//lib/rbi/type.rb#490 - # Builds a type that represents `T.attached_class`. + # source://rbi//lib/rbi/type.rb#784 sig { returns(::RBI::Type::AttachedClass) } def attached_class; end # Builds a type that represents `T::Boolean`. - # : -> Boolean # - # source://rbi//lib/rbi/type.rb#496 - # Builds a type that represents `T::Boolean`. + # source://rbi//lib/rbi/type.rb#790 sig { returns(::RBI::Type::Boolean) } def boolean; end # Builds a type that represents the singleton class of another type like `T.class_of(Foo)`. - # : (Simple type, ?Type? type_parameter) -> ClassOf # - # source://rbi//lib/rbi/type.rb#534 - # Builds a type that represents the singleton class of another type like `T.class_of(Foo)`. + # source://rbi//lib/rbi/type.rb#828 sig { params(type: ::RBI::Type::Simple, type_parameter: T.nilable(::RBI::Type)).returns(::RBI::Type::ClassOf) } def class_of(type, type_parameter = T.unsafe(nil)); end # Builds a type that represents a generic type like `T::Array[String]` or `T::Hash[Symbol, Integer]`. - # : (String name, *(Type | Array[Type]) params) -> Generic # - # source://rbi//lib/rbi/type.rb#651 - # Builds a type that represents a generic type like `T::Array[String]` or `T::Hash[Symbol, Integer]`. + # source://rbi//lib/rbi/type.rb#864 sig { params(name: ::String, params: T.any(::RBI::Type, T::Array[::RBI::Type])).returns(::RBI::Type::Generic) } def generic(name, *params); end @@ -5270,31 +3978,21 @@ class RBI::Type # # Note that this method transforms types such as `T.nilable(T.untyped)` into `T.untyped`, so # it may return something other than a `RBI::Type::Nilable`. - # : (Type type) -> Type # - # source://rbi//lib/rbi/type.rb#543 - # Builds a type that represents a nilable of another type like `T.nilable(String)`. - # Note that this method transforms types such as `T.nilable(T.untyped)` into `T.untyped`, so - # it may return something other than a `RBI::Type::Nilable`. + # source://rbi//lib/rbi/type.rb#837 sig { params(type: ::RBI::Type).returns(::RBI::Type) } def nilable(type); end # Builds a type that represents `T.noreturn`. - # : -> NoReturn # - # source://rbi//lib/rbi/type.rb#502 - # Builds a type that represents `T.noreturn`. + # source://rbi//lib/rbi/type.rb#796 sig { returns(::RBI::Type::NoReturn) } def noreturn; end - # : (Prism::Node node) -> Type - # # source://rbi//lib/rbi/type_parser.rb#26 sig { params(node: ::Prism::Node).returns(::RBI::Type) } def parse_node(node); end - # : (String string) -> Type - # # @raise [Error] # # source://rbi//lib/rbi/type_parser.rb#10 @@ -5302,181 +4000,134 @@ class RBI::Type def parse_string(string); end # Builds a type that represents a proc type like `T.proc.void`. - # : -> Proc # - # source://rbi//lib/rbi/type.rb#679 - # Builds a type that represents a proc type like `T.proc.void`. + # source://rbi//lib/rbi/type.rb#892 sig { returns(::RBI::Type::Proc) } def proc; end # Builds a type that represents `T.self_type`. - # : -> SelfType # - # source://rbi//lib/rbi/type.rb#508 - # Builds a type that represents `T.self_type`. + # source://rbi//lib/rbi/type.rb#802 sig { returns(::RBI::Type::SelfType) } def self_type; end # Builds a type that represents a shape type like `{name: String, age: Integer}`. - # : (?Hash[(String | Symbol), Type] types) -> Shape # - # source://rbi//lib/rbi/type.rb#671 - # Builds a type that represents a shape type like `{name: String, age: Integer}`. + # source://rbi//lib/rbi/type.rb#884 sig { params(types: T::Hash[T.any(::String, ::Symbol), ::RBI::Type]).returns(::RBI::Type::Shape) } def shape(types = T.unsafe(nil)); end # Builds a simple type like `String` or `::Foo::Bar`. # # It raises a `NameError` if the name is not a valid Ruby class identifier. - # : (String name) -> Simple # # @raise [NameError] # - # source://rbi//lib/rbi/type.rb#473 - # Builds a simple type like `String` or `::Foo::Bar`. - # It raises a `NameError` if the name is not a valid Ruby class identifier. + # source://rbi//lib/rbi/type.rb#767 sig { params(name: ::String).returns(::RBI::Type::Simple) } def simple(name); end # Builds a type that represents the class of another type like `T::Class[Foo]`. - # : (Type type) -> Class # - # source://rbi//lib/rbi/type.rb#528 - # Builds a type that represents the class of another type like `T::Class[Foo]`. + # source://rbi//lib/rbi/type.rb#822 sig { params(type: ::RBI::Type).returns(::RBI::Type::Class) } def t_class(type); end # Builds a type that represents a tuple type like `[String, Integer]`. - # : (*(Type | Array[Type]) types) -> Tuple # - # source://rbi//lib/rbi/type.rb#665 - # Builds a type that represents a tuple type like `[String, Integer]`. + # source://rbi//lib/rbi/type.rb#878 sig { params(types: T.any(::RBI::Type, T::Array[::RBI::Type])).returns(::RBI::Type::Tuple) } def tuple(*types); end # Builds a type that represents a type parameter like `T.type_parameter(:U)`. - # : (Symbol name) -> TypeParameter # - # source://rbi//lib/rbi/type.rb#657 - # Builds a type that represents a type parameter like `T.type_parameter(:U)`. + # source://rbi//lib/rbi/type.rb#870 sig { params(name: ::Symbol).returns(::RBI::Type::TypeParameter) } def type_parameter(name); end # Builds a type that represents `T.untyped`. - # : -> Untyped # - # source://rbi//lib/rbi/type.rb#514 - # Builds a type that represents `T.untyped`. + # source://rbi//lib/rbi/type.rb#808 sig { returns(::RBI::Type::Untyped) } def untyped; end # Builds a type that represents `void`. - # : -> Void # - # source://rbi//lib/rbi/type.rb#520 - # Builds a type that represents `void`. + # source://rbi//lib/rbi/type.rb#814 sig { returns(::RBI::Type::Void) } def void; end private - # : (Prism::CallNode node) -> Array[Prism::Node] - # - # source://rbi//lib/rbi/type_parser.rb#287 + # source://rbi//lib/rbi/type_parser.rb#289 sig { params(node: ::Prism::CallNode).returns(T::Array[::Prism::Node]) } def call_chain(node); end - # : (Prism::CallNode node, Integer count) -> Array[Prism::Node] - # - # source://rbi//lib/rbi/type_parser.rb#274 + # source://rbi//lib/rbi/type_parser.rb#276 sig { params(node: ::Prism::CallNode, count: ::Integer).returns(T::Array[::Prism::Node]) } def check_arguments_at_least!(node, count); end - # : (Prism::CallNode node, Integer count) -> Array[Prism::Node] - # - # source://rbi//lib/rbi/type_parser.rb#259 + # source://rbi//lib/rbi/type_parser.rb#261 sig { params(node: ::Prism::CallNode, count: ::Integer).returns(T::Array[::Prism::Node]) } def check_arguments_exactly!(node, count); end - # : (Prism::CallNode node) -> Type - # # @raise [Error] # # source://rbi//lib/rbi/type_parser.rb#71 sig { params(node: ::Prism::CallNode).returns(::RBI::Type) } def parse_call(node); end - # : ((Prism::ConstantReadNode | Prism::ConstantPathNode) node) -> Type - # # source://rbi//lib/rbi/type_parser.rb#54 sig { params(node: T.any(::Prism::ConstantPathNode, ::Prism::ConstantReadNode)).returns(::RBI::Type) } def parse_constant(node); end - # : (Prism::CallNode node) -> Type - # # @raise [Error] # # source://rbi//lib/rbi/type_parser.rb#211 sig { params(node: ::Prism::CallNode).returns(::RBI::Type) } def parse_proc(node); end - # : ((Prism::HashNode | Prism::KeywordHashNode) node) -> Type - # # source://rbi//lib/rbi/type_parser.rb#190 sig { params(node: T.any(::Prism::HashNode, ::Prism::KeywordHashNode)).returns(::RBI::Type) } def parse_shape(node); end - # : (Prism::ArrayNode node) -> Type - # # source://rbi//lib/rbi/type_parser.rb#185 sig { params(node: ::Prism::ArrayNode).returns(::RBI::Type) } def parse_tuple(node); end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type_parser.rb#300 + # source://rbi//lib/rbi/type_parser.rb#302 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def t?(node); end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type_parser.rb#312 + # source://rbi//lib/rbi/type_parser.rb#314 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def t_boolean?(node); end - # : (Prism::ConstantPathNode node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type_parser.rb#319 + # source://rbi//lib/rbi/type_parser.rb#321 sig { params(node: ::Prism::ConstantPathNode).returns(T::Boolean) } def t_class?(node); end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type_parser.rb#324 + # source://rbi//lib/rbi/type_parser.rb#326 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def t_class_of?(node); end - # : (Prism::CallNode node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type_parser.rb#331 + # source://rbi//lib/rbi/type_parser.rb#333 sig { params(node: ::Prism::CallNode).returns(T::Boolean) } def t_proc?(node); end - # : (String name) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type.rb#689 + # source://rbi//lib/rbi/type.rb#899 sig { params(name: ::String).returns(T::Boolean) } def valid_identifier?(name); end end @@ -5484,178 +4135,192 @@ end # A type that is intersection of multiple types like `T.all(String, Integer)`. # -# source://rbi//lib/rbi/type.rb#252 +# source://rbi//lib/rbi/type.rb#384 class RBI::Type::All < ::RBI::Type::Composite - # : -> String - # - # source://rbi//lib/rbi/type.rb#255 + # source://rbi//lib/rbi/type.rb#393 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#413 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#387 sig { override.returns(::String) } def to_rbi; end end # A type that is union of multiple types like `T.any(String, Integer)`. # -# source://rbi//lib/rbi/type.rb#261 +# source://rbi//lib/rbi/type.rb#426 class RBI::Type::Any < ::RBI::Type::Composite - # : -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type.rb#269 + # source://rbi//lib/rbi/type.rb#434 sig { returns(T::Boolean) } def nilable?; end - # : -> String - # - # source://rbi//lib/rbi/type.rb#264 + # source://rbi//lib/rbi/type.rb#440 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#460 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#429 sig { override.returns(::String) } def to_rbi; end end # `T.anything`. # -# source://rbi//lib/rbi/type.rb#43 +# source://rbi//lib/rbi/type.rb#51 class RBI::Type::Anything < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#46 + # source://rbi//lib/rbi/type.rb#54 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#52 + # source://rbi//lib/rbi/type.rb#66 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#72 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#60 sig { override.returns(::String) } def to_rbi; end end # `T.attached_class`. # -# source://rbi//lib/rbi/type.rb#58 +# source://rbi//lib/rbi/type.rb#78 class RBI::Type::AttachedClass < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#61 + # source://rbi//lib/rbi/type.rb#81 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#67 + # source://rbi//lib/rbi/type.rb#93 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#99 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#87 sig { override.returns(::String) } def to_rbi; end end # `T::Boolean`. # -# source://rbi//lib/rbi/type.rb#73 +# source://rbi//lib/rbi/type.rb#105 class RBI::Type::Boolean < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#76 + # source://rbi//lib/rbi/type.rb#108 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#82 + # source://rbi//lib/rbi/type.rb#120 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#126 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#114 sig { override.returns(::String) } def to_rbi; end end # The class of another type like `T::Class[Foo]`. # -# source://rbi//lib/rbi/type.rb#150 +# source://rbi//lib/rbi/type.rb#242 class RBI::Type::Class < ::RBI::Type - # : (Type type) -> void - # # @return [Class] a new instance of Class # - # source://rbi//lib/rbi/type.rb#155 + # source://rbi//lib/rbi/type.rb#247 sig { params(type: ::RBI::Type).void } def initialize(type); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#162 + # source://rbi//lib/rbi/type.rb#254 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#168 + # source://rbi//lib/rbi/type.rb#266 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#272 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#260 sig { override.returns(::String) } def to_rbi; end - # : Type - # - # source://rbi//lib/rbi/type.rb#152 + # source://rbi//lib/rbi/type.rb#244 sig { returns(::RBI::Type) } def type; end end # The singleton class of another type like `T.class_of(Foo)`. # -# source://rbi//lib/rbi/type.rb#174 +# source://rbi//lib/rbi/type.rb#278 class RBI::Type::ClassOf < ::RBI::Type - # : (Simple type, ?Type? type_parameter) -> void - # # @return [ClassOf] a new instance of ClassOf # - # source://rbi//lib/rbi/type.rb#182 + # source://rbi//lib/rbi/type.rb#286 sig { params(type: ::RBI::Type::Simple, type_parameter: T.nilable(::RBI::Type)).void } def initialize(type, type_parameter = T.unsafe(nil)); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#190 + # source://rbi//lib/rbi/type.rb#294 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#196 + # source://rbi//lib/rbi/type.rb#310 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#316 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#300 sig { override.returns(::String) } def to_rbi; end - # : Simple - # - # source://rbi//lib/rbi/type.rb#176 + # source://rbi//lib/rbi/type.rb#280 sig { returns(::RBI::Type::Simple) } def type; end - # : Type? - # - # source://rbi//lib/rbi/type.rb#179 + # source://rbi//lib/rbi/type.rb#283 sig { returns(T.nilable(::RBI::Type)) } def type_parameter; end end # A type that is composed of multiple types like `T.all(String, Integer)`. # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/type.rb#230 +# source://rbi//lib/rbi/type.rb#366 class RBI::Type::Composite < ::RBI::Type abstract! - # : (Array[Type] types) -> void - # # @return [Composite] a new instance of Composite # - # source://rbi//lib/rbi/type.rb#239 + # source://rbi//lib/rbi/type.rb#371 sig { params(types: T::Array[::RBI::Type]).void } def initialize(types); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#246 + # source://rbi//lib/rbi/type.rb#378 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : Array[Type] - # - # source://rbi//lib/rbi/type.rb#236 + # source://rbi//lib/rbi/type.rb#368 sig { returns(T::Array[::RBI::Type]) } def types; end end @@ -5665,200 +4330,194 @@ class RBI::Type::Error < ::RBI::Error; end # A generic type like `T::Array[String]` or `T::Hash[Symbol, Integer]`. # -# source://rbi//lib/rbi/type.rb#277 +# source://rbi//lib/rbi/type.rb#511 class RBI::Type::Generic < ::RBI::Type - # : (String name, *Type params) -> void - # # @return [Generic] a new instance of Generic # - # source://rbi//lib/rbi/type.rb#285 + # source://rbi//lib/rbi/type.rb#519 sig { params(name: ::String, params: ::RBI::Type).void } def initialize(name, *params); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#293 + # source://rbi//lib/rbi/type.rb#527 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : String - # - # source://rbi//lib/rbi/type.rb#279 + # source://rbi//lib/rbi/type.rb#513 sig { returns(::String) } def name; end - # : Array[Type] - # - # source://rbi//lib/rbi/type.rb#282 + # source://rbi//lib/rbi/type.rb#539 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#516 sig { returns(T::Array[::RBI::Type]) } def params; end - # : -> String - # - # source://rbi//lib/rbi/type.rb#299 + # source://rbi//lib/rbi/type.rb#545 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#533 sig { override.returns(::String) } def to_rbi; end end # A type that can be `nil` like `T.nilable(String)`. # -# source://rbi//lib/rbi/type.rb#206 +# source://rbi//lib/rbi/type.rb#322 class RBI::Type::Nilable < ::RBI::Type - # : (Type type) -> void - # # @return [Nilable] a new instance of Nilable # - # source://rbi//lib/rbi/type.rb#211 + # source://rbi//lib/rbi/type.rb#327 sig { params(type: ::RBI::Type).void } def initialize(type); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#218 + # source://rbi//lib/rbi/type.rb#334 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#224 + # source://rbi//lib/rbi/type.rb#346 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#352 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#340 sig { override.returns(::String) } def to_rbi; end - # : Type - # - # source://rbi//lib/rbi/type.rb#208 + # source://rbi//lib/rbi/type.rb#324 sig { returns(::RBI::Type) } def type; end end # `T.noreturn`. # -# source://rbi//lib/rbi/type.rb#88 +# source://rbi//lib/rbi/type.rb#132 class RBI::Type::NoReturn < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#91 + # source://rbi//lib/rbi/type.rb#135 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#97 + # source://rbi//lib/rbi/type.rb#147 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#153 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#141 sig { override.returns(::String) } def to_rbi; end end # A proc type like `T.proc.void`. # -# source://rbi//lib/rbi/type.rb#385 +# source://rbi//lib/rbi/type.rb#667 class RBI::Type::Proc < ::RBI::Type - # : -> void - # # @return [Proc] a new instance of Proc # - # source://rbi//lib/rbi/type.rb#396 + # source://rbi//lib/rbi/type.rb#678 sig { void } def initialize; end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#405 + # source://rbi//lib/rbi/type.rb#687 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : (untyped type) -> self - # - # source://rbi//lib/rbi/type.rb#433 + # source://rbi//lib/rbi/type.rb#715 sig { params(type: T.untyped).returns(T.self_type) } def bind(type); end - # : (**Type params) -> self - # - # source://rbi//lib/rbi/type.rb#415 + # source://rbi//lib/rbi/type.rb#747 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#697 sig { params(params: ::RBI::Type).returns(T.self_type) } def params(**params); end - # : Type? - # - # source://rbi//lib/rbi/type.rb#393 + # source://rbi//lib/rbi/type.rb#675 sig { returns(T.nilable(::RBI::Type)) } def proc_bind; end - # : Hash[Symbol, Type] - # - # source://rbi//lib/rbi/type.rb#387 + # source://rbi//lib/rbi/type.rb#669 sig { returns(T::Hash[::Symbol, ::RBI::Type]) } def proc_params; end - # : Type - # - # source://rbi//lib/rbi/type.rb#390 + # source://rbi//lib/rbi/type.rb#672 sig { returns(::RBI::Type) } def proc_returns; end - # : (untyped type) -> self - # - # source://rbi//lib/rbi/type.rb#421 + # source://rbi//lib/rbi/type.rb#703 sig { params(type: T.untyped).returns(T.self_type) } def returns(type); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#440 + # source://rbi//lib/rbi/type.rb#753 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#722 sig { override.returns(::String) } def to_rbi; end - # : -> self - # - # source://rbi//lib/rbi/type.rb#427 + # source://rbi//lib/rbi/type.rb#709 sig { returns(T.self_type) } def void; end end # `T.self_type`. # -# source://rbi//lib/rbi/type.rb#103 +# source://rbi//lib/rbi/type.rb#159 class RBI::Type::SelfType < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#106 + # source://rbi//lib/rbi/type.rb#162 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#112 + # source://rbi//lib/rbi/type.rb#174 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#180 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#168 sig { override.returns(::String) } def to_rbi; end end # A shape type like `{name: String, age: Integer}`. # -# source://rbi//lib/rbi/type.rb#355 +# source://rbi//lib/rbi/type.rb#625 class RBI::Type::Shape < ::RBI::Type - # : (Hash[(String | Symbol), Type] types) -> void - # # @return [Shape] a new instance of Shape # - # source://rbi//lib/rbi/type.rb#360 + # source://rbi//lib/rbi/type.rb#630 sig { params(types: T::Hash[T.any(::String, ::Symbol), ::RBI::Type]).void } def initialize(types); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#367 + # source://rbi//lib/rbi/type.rb#637 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#373 + # source://rbi//lib/rbi/type.rb#653 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#659 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#643 sig { override.returns(::String) } def to_rbi; end - # : Hash[(String | Symbol), Type] - # - # source://rbi//lib/rbi/type.rb#357 + # source://rbi//lib/rbi/type.rb#627 sig { returns(T::Hash[T.any(::String, ::Symbol), ::RBI::Type]) } def types; end end @@ -5867,229 +4526,194 @@ end # # It can also be a qualified name like `::Foo` or `Foo::Bar`. # -# source://rbi//lib/rbi/type.rb#17 -# A type that represents a simple class name like `String` or `Foo`. +# source://rbi//lib/rbi/type.rb#13 class RBI::Type::Simple < ::RBI::Type - # : (String name) -> void - # # @return [Simple] a new instance of Simple # - # source://rbi//lib/rbi/type.rb#22 + # source://rbi//lib/rbi/type.rb#18 sig { params(name: ::String).void } def initialize(name); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#29 + # source://rbi//lib/rbi/type.rb#25 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : String - # - # source://rbi//lib/rbi/type.rb#19 + # source://rbi//lib/rbi/type.rb#15 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/type.rb#35 + # source://rbi//lib/rbi/type.rb#37 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#43 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#31 sig { override.returns(::String) } def to_rbi; end end # A tuple type like `[String, Integer]`. # -# source://rbi//lib/rbi/type.rb#331 +# source://rbi//lib/rbi/type.rb#589 class RBI::Type::Tuple < ::RBI::Type - # : (Array[Type] types) -> void - # # @return [Tuple] a new instance of Tuple # - # source://rbi//lib/rbi/type.rb#336 + # source://rbi//lib/rbi/type.rb#594 sig { params(types: T::Array[::RBI::Type]).void } def initialize(types); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#343 + # source://rbi//lib/rbi/type.rb#601 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#349 + # source://rbi//lib/rbi/type.rb#613 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#619 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#607 sig { override.returns(::String) } def to_rbi; end - # : Array[Type] - # - # source://rbi//lib/rbi/type.rb#333 + # source://rbi//lib/rbi/type.rb#591 sig { returns(T::Array[::RBI::Type]) } def types; end end # A type parameter like `T.type_parameter(:U)`. # -# source://rbi//lib/rbi/type.rb#305 +# source://rbi//lib/rbi/type.rb#551 class RBI::Type::TypeParameter < ::RBI::Type - # : (Symbol name) -> void - # # @return [TypeParameter] a new instance of TypeParameter # - # source://rbi//lib/rbi/type.rb#310 + # source://rbi//lib/rbi/type.rb#556 sig { params(name: ::Symbol).void } def initialize(name); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#317 + # source://rbi//lib/rbi/type.rb#563 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : Symbol - # - # source://rbi//lib/rbi/type.rb#307 + # source://rbi//lib/rbi/type.rb#553 sig { returns(::Symbol) } def name; end - # : -> String - # - # source://rbi//lib/rbi/type.rb#323 + # source://rbi//lib/rbi/type.rb#575 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#581 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#569 sig { override.returns(::String) } def to_rbi; end end # `T.untyped`. # -# source://rbi//lib/rbi/type.rb#118 +# source://rbi//lib/rbi/type.rb#186 class RBI::Type::Untyped < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#121 + # source://rbi//lib/rbi/type.rb#189 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#127 + # source://rbi//lib/rbi/type.rb#201 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#207 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#195 sig { override.returns(::String) } def to_rbi; end end # source://rbi//lib/rbi/type_visitor.rb#6 class RBI::Type::Visitor - # : (Type node) -> void - # # source://rbi//lib/rbi/type_visitor.rb#10 sig { params(node: ::RBI::Type).void } def visit(node); end private - # : (Type::All type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#56 sig { params(type: ::RBI::Type::All).void } def visit_all(type); end - # : (Type::Any type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#59 sig { params(type: ::RBI::Type::Any).void } def visit_any(type); end - # : (Type::Anything type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#62 sig { params(type: ::RBI::Type::Anything).void } def visit_anything(type); end - # : (Type::AttachedClass type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#65 sig { params(type: ::RBI::Type::AttachedClass).void } def visit_attached_class(type); end - # : (Type::Boolean type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#68 sig { params(type: ::RBI::Type::Boolean).void } def visit_boolean(type); end - # : (Type::Class type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#71 sig { params(type: ::RBI::Type::Class).void } def visit_class(type); end - # : (Type::ClassOf type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#74 sig { params(type: ::RBI::Type::ClassOf).void } def visit_class_of(type); end - # : (Type::Generic type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#77 sig { params(type: ::RBI::Type::Generic).void } def visit_generic(type); end - # : (Type::Nilable type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#80 sig { params(type: ::RBI::Type::Nilable).void } def visit_nilable(type); end - # : (Type::NoReturn type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#86 sig { params(type: ::RBI::Type::NoReturn).void } def visit_no_return(type); end - # : (Type::Proc type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#89 sig { params(type: ::RBI::Type::Proc).void } def visit_proc(type); end - # : (Type::SelfType type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#92 sig { params(type: ::RBI::Type::SelfType).void } def visit_self_type(type); end - # : (Type::Shape type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#98 sig { params(type: ::RBI::Type::Shape).void } def visit_shape(type); end - # : (Type::Simple type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#83 sig { params(type: ::RBI::Type::Simple).void } def visit_simple(type); end - # : (Type::Tuple type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#101 sig { params(type: ::RBI::Type::Tuple).void } def visit_tuple(type); end - # : (Type::TypeParameter type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#104 sig { params(type: ::RBI::Type::TypeParameter).void } def visit_type_parameter(type); end - # : (Type::Untyped type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#107 sig { params(type: ::RBI::Type::Untyped).void } def visit_untyped(type); end - # : (Type::Void type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#95 sig { params(type: ::RBI::Type::Void).void } def visit_void(type); end @@ -6100,30 +4724,32 @@ class RBI::Type::Visitor::Error < ::RBI::Error; end # `void`. # -# source://rbi//lib/rbi/type.rb#133 +# source://rbi//lib/rbi/type.rb#213 class RBI::Type::Void < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#136 + # source://rbi//lib/rbi/type.rb#216 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#142 + # source://rbi//lib/rbi/type.rb#228 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#234 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#222 sig { override.returns(::String) } def to_rbi; end end -# source://rbi//lib/rbi/model.rb#1085 +# source://rbi//lib/rbi/model.rb#1063 class RBI::TypeMember < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TypeMember node) -> void } -> void - # # @return [TypeMember] a new instance of TypeMember # - # source://rbi//lib/rbi/model.rb#1090 + # source://rbi//lib/rbi/model.rb#1068 sig do params( name: ::String, @@ -6135,188 +4761,129 @@ class RBI::TypeMember < ::RBI::NodeWithComments end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1098 + # source://rbi//lib/rbi/model.rb#1076 sig { returns(::String) } def fully_qualified_name; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#179 + # source://rbi//lib/rbi/index.rb#174 sig { override.returns(T::Array[::String]) } def index_ids; end - # : String - # - # source://rbi//lib/rbi/model.rb#1087 + # source://rbi//lib/rbi/model.rb#1065 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1106 + # source://rbi//lib/rbi/model.rb#1084 sig { override.returns(::String) } def to_s; end - # : String - # - # source://rbi//lib/rbi/model.rb#1087 - # @return [String] + # source://rbi//lib/rbi/model.rb#1065 def value; end end -# source://rbi//lib/rbi/rbs_printer.rb#885 +# source://rbi//lib/rbi/rbs_printer.rb#982 class RBI::TypePrinter - # : -> void - # # @return [TypePrinter] a new instance of TypePrinter # - # source://rbi//lib/rbi/rbs_printer.rb#890 - sig { void } - def initialize; end + # source://rbi//lib/rbi/rbs_printer.rb#987 + sig { params(max_line_length: T.nilable(::Integer)).void } + def initialize(max_line_length: T.unsafe(nil)); end - # : String - # - # source://rbi//lib/rbi/rbs_printer.rb#887 + # source://rbi//lib/rbi/rbs_printer.rb#984 sig { returns(::String) } def string; end - # : (Type node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#895 + # source://rbi//lib/rbi/rbs_printer.rb#993 sig { params(node: ::RBI::Type).void } def visit(node); end - # : (Type::All type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1010 + # source://rbi//lib/rbi/rbs_printer.rb#1108 sig { params(type: ::RBI::Type::All).void } def visit_all(type); end - # : (Type::Any type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1020 + # source://rbi//lib/rbi/rbs_printer.rb#1118 sig { params(type: ::RBI::Type::Any).void } def visit_any(type); end - # : (Type::Anything type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#960 + # source://rbi//lib/rbi/rbs_printer.rb#1058 sig { params(type: ::RBI::Type::Anything).void } def visit_anything(type); end - # : (Type::AttachedClass type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#985 + # source://rbi//lib/rbi/rbs_printer.rb#1083 sig { params(type: ::RBI::Type::AttachedClass).void } def visit_attached_class(type); end - # : (Type::Boolean type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#944 + # source://rbi//lib/rbi/rbs_printer.rb#1042 sig { params(type: ::RBI::Type::Boolean).void } def visit_boolean(type); end - # : (Type::Class type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1087 + # source://rbi//lib/rbi/rbs_printer.rb#1185 sig { params(type: ::RBI::Type::Class).void } def visit_class(type); end - # : (Type::ClassOf type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1003 + # source://rbi//lib/rbi/rbs_printer.rb#1101 sig { params(type: ::RBI::Type::ClassOf).void } def visit_class_of(type); end - # : (Type::Generic type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#949 + # source://rbi//lib/rbi/rbs_printer.rb#1047 sig { params(type: ::RBI::Type::Generic).void } def visit_generic(type); end - # : (Type::Nilable type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#990 + # source://rbi//lib/rbi/rbs_printer.rb#1088 sig { params(type: ::RBI::Type::Nilable).void } def visit_nilable(type); end - # : (Type::NoReturn type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#970 + # source://rbi//lib/rbi/rbs_printer.rb#1068 sig { params(type: ::RBI::Type::NoReturn).void } def visit_no_return(type); end - # : (Type::Proc type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1060 + # source://rbi//lib/rbi/rbs_printer.rb#1158 sig { params(type: ::RBI::Type::Proc).void } def visit_proc(type); end - # : (Type::SelfType type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#980 + # source://rbi//lib/rbi/rbs_printer.rb#1078 sig { params(type: ::RBI::Type::SelfType).void } def visit_self_type(type); end - # : (Type::Shape type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1040 + # source://rbi//lib/rbi/rbs_printer.rb#1138 sig { params(type: ::RBI::Type::Shape).void } def visit_shape(type); end - # : (Type::Simple type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#939 + # source://rbi//lib/rbi/rbs_printer.rb#1037 sig { params(type: ::RBI::Type::Simple).void } def visit_simple(type); end - # : (Type::Tuple type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1030 + # source://rbi//lib/rbi/rbs_printer.rb#1128 sig { params(type: ::RBI::Type::Tuple).void } def visit_tuple(type); end - # : (Type::TypeParameter type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1082 + # source://rbi//lib/rbi/rbs_printer.rb#1180 sig { params(type: ::RBI::Type::TypeParameter).void } def visit_type_parameter(type); end - # : (Type::Untyped type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#975 + # source://rbi//lib/rbi/rbs_printer.rb#1073 sig { params(type: ::RBI::Type::Untyped).void } def visit_untyped(type); end - # : (Type::Void type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#965 + # source://rbi//lib/rbi/rbs_printer.rb#1063 sig { params(type: ::RBI::Type::Void).void } def visit_void(type); end private - # : (String type_name) -> String - # - # source://rbi//lib/rbi/rbs_printer.rb#1096 + # source://rbi//lib/rbi/rbs_printer.rb#1194 sig { params(type_name: ::String).returns(::String) } def translate_t_type(type_name); end end # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#5 class RBI::UnexpectedMultipleSigsError < ::RBI::Error - # : (Node node) -> void - # # @return [UnexpectedMultipleSigsError] a new instance of UnexpectedMultipleSigsError # # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#10 sig { params(node: ::RBI::Node).void } def initialize(node); end - # : Node - # # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#7 sig { returns(::RBI::Node) } def node; end @@ -6324,22 +4891,16 @@ end # source://rbi//lib/rbi/parser.rb#18 class RBI::UnexpectedParserError < ::RBI::Error - # : (Exception parent_exception, Loc last_location) -> void - # # @return [UnexpectedParserError] a new instance of UnexpectedParserError # # source://rbi//lib/rbi/parser.rb#23 sig { params(parent_exception: ::Exception, last_location: ::RBI::Loc).void } def initialize(parent_exception, last_location); end - # : Loc - # # source://rbi//lib/rbi/parser.rb#20 sig { returns(::RBI::Loc) } def last_location; end - # : (?io: (IO | StringIO)) -> void - # # source://rbi//lib/rbi/parser.rb#30 sig { params(io: T.any(::IO, ::StringIO)).void } def print_debug(io: T.unsafe(nil)); end @@ -6348,363 +4909,251 @@ end # source://rbi//lib/rbi/version.rb#5 RBI::VERSION = T.let(T.unsafe(nil), String) -# Visibility -# -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/model.rb#710 +# source://rbi//lib/rbi/model.rb#693 class RBI::Visibility < ::RBI::NodeWithComments abstract! - # : (Symbol visibility, ?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [Visibility] a new instance of Visibility # - # source://rbi//lib/rbi/model.rb#719 + # source://rbi//lib/rbi/model.rb#698 sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(visibility, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#725 + # source://rbi//lib/rbi/model.rb#704 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#742 + # source://rbi//lib/rbi/model.rb#721 sig { returns(T::Boolean) } def private?; end - # : -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#737 + # source://rbi//lib/rbi/model.rb#716 sig { returns(T::Boolean) } def protected?; end - # : -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#732 + # source://rbi//lib/rbi/model.rb#711 sig { returns(T::Boolean) } def public?; end - # : Symbol - # - # source://rbi//lib/rbi/model.rb#716 + # source://rbi//lib/rbi/model.rb#695 sig { returns(::Symbol) } def visibility; end end # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#49 class RBI::VisibilityGroup < ::RBI::Tree - # : (Visibility visibility) -> void - # # @return [VisibilityGroup] a new instance of VisibilityGroup # # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#54 sig { params(visibility: ::RBI::Visibility).void } def initialize(visibility); end - # : Visibility - # # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#51 sig { returns(::RBI::Visibility) } def visibility; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/visitor.rb#7 +# source://rbi//lib/rbi/visitor.rb#8 class RBI::Visitor abstract! - # : (Node? node) -> void - # - # source://rbi//lib/rbi/visitor.rb#13 + # source://rbi//lib/rbi/visitor.rb#10 sig { params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # : (Array[Node] nodes) -> void - # - # source://rbi//lib/rbi/visitor.rb#111 + # source://rbi//lib/rbi/visitor.rb#108 sig { params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end - # : (File file) -> void - # - # source://rbi//lib/rbi/visitor.rb#116 + # source://rbi//lib/rbi/visitor.rb#113 sig { params(file: ::RBI::File).void } def visit_file(file); end private - # : (Arg node) -> void - # - # source://rbi//lib/rbi/visitor.rb#201 + # source://rbi//lib/rbi/visitor.rb#198 sig { params(node: ::RBI::Arg).void } def visit_arg(node); end - # : (AttrAccessor node) -> void - # - # source://rbi//lib/rbi/visitor.rb#150 + # source://rbi//lib/rbi/visitor.rb#147 sig { params(node: ::RBI::AttrAccessor).void } def visit_attr_accessor(node); end - # : (AttrReader node) -> void - # - # source://rbi//lib/rbi/visitor.rb#153 + # source://rbi//lib/rbi/visitor.rb#150 sig { params(node: ::RBI::AttrReader).void } def visit_attr_reader(node); end - # : (AttrWriter node) -> void - # - # source://rbi//lib/rbi/visitor.rb#156 + # source://rbi//lib/rbi/visitor.rb#153 sig { params(node: ::RBI::AttrWriter).void } def visit_attr_writer(node); end - # : (BlankLine node) -> void - # - # source://rbi//lib/rbi/visitor.rb#129 + # source://rbi//lib/rbi/visitor.rb#126 sig { params(node: ::RBI::BlankLine).void } def visit_blank_line(node); end - # : (BlockParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#180 + # source://rbi//lib/rbi/visitor.rb#177 sig { params(node: ::RBI::BlockParam).void } def visit_block_param(node); end - # : (Class node) -> void - # - # source://rbi//lib/rbi/visitor.rb#135 + # source://rbi//lib/rbi/visitor.rb#132 sig { params(node: ::RBI::Class).void } def visit_class(node); end - # : (Comment node) -> void - # - # source://rbi//lib/rbi/visitor.rb#123 + # source://rbi//lib/rbi/visitor.rb#120 sig { params(node: ::RBI::Comment).void } def visit_comment(node); end - # : (ConflictTree node) -> void - # - # source://rbi//lib/rbi/visitor.rb#249 + # source://rbi//lib/rbi/visitor.rb#246 sig { params(node: ::RBI::ConflictTree).void } def visit_conflict_tree(node); end - # : (Const node) -> void - # - # source://rbi//lib/rbi/visitor.rb#147 + # source://rbi//lib/rbi/visitor.rb#144 sig { params(node: ::RBI::Const).void } def visit_const(node); end - # : (Extend node) -> void - # - # source://rbi//lib/rbi/visitor.rb#186 + # source://rbi//lib/rbi/visitor.rb#183 sig { params(node: ::RBI::Extend).void } def visit_extend(node); end - # : (Group node) -> void - # - # source://rbi//lib/rbi/visitor.rb#243 + # source://rbi//lib/rbi/visitor.rb#240 sig { params(node: ::RBI::Group).void } def visit_group(node); end - # : (Helper node) -> void - # - # source://rbi//lib/rbi/visitor.rb#231 + # source://rbi//lib/rbi/visitor.rb#228 sig { params(node: ::RBI::Helper).void } def visit_helper(node); end - # : (Include node) -> void - # - # source://rbi//lib/rbi/visitor.rb#183 + # source://rbi//lib/rbi/visitor.rb#180 sig { params(node: ::RBI::Include).void } def visit_include(node); end - # : (KwArg node) -> void - # - # source://rbi//lib/rbi/visitor.rb#204 + # source://rbi//lib/rbi/visitor.rb#201 sig { params(node: ::RBI::KwArg).void } def visit_kw_arg(node); end - # : (KwOptParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#174 + # source://rbi//lib/rbi/visitor.rb#171 sig { params(node: ::RBI::KwOptParam).void } def visit_kw_opt_param(node); end - # : (KwParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#171 + # source://rbi//lib/rbi/visitor.rb#168 sig { params(node: ::RBI::KwParam).void } def visit_kw_param(node); end - # : (KwRestParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#177 + # source://rbi//lib/rbi/visitor.rb#174 sig { params(node: ::RBI::KwRestParam).void } def visit_kw_rest_param(node); end - # : (Method node) -> void - # - # source://rbi//lib/rbi/visitor.rb#159 + # source://rbi//lib/rbi/visitor.rb#156 sig { params(node: ::RBI::Method).void } def visit_method(node); end - # : (MixesInClassMethods node) -> void - # - # source://rbi//lib/rbi/visitor.rb#237 + # source://rbi//lib/rbi/visitor.rb#234 sig { params(node: ::RBI::MixesInClassMethods).void } def visit_mixes_in_class_methods(node); end - # : (Module node) -> void - # - # source://rbi//lib/rbi/visitor.rb#132 + # source://rbi//lib/rbi/visitor.rb#129 sig { params(node: ::RBI::Module).void } def visit_module(node); end - # : (OptParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#165 + # source://rbi//lib/rbi/visitor.rb#162 sig { params(node: ::RBI::OptParam).void } def visit_opt_param(node); end - # : (Private node) -> void - # - # source://rbi//lib/rbi/visitor.rb#195 + # source://rbi//lib/rbi/visitor.rb#192 sig { params(node: ::RBI::Private).void } def visit_private(node); end - # : (Protected node) -> void - # - # source://rbi//lib/rbi/visitor.rb#192 + # source://rbi//lib/rbi/visitor.rb#189 sig { params(node: ::RBI::Protected).void } def visit_protected(node); end - # : (Public node) -> void - # - # source://rbi//lib/rbi/visitor.rb#189 + # source://rbi//lib/rbi/visitor.rb#186 sig { params(node: ::RBI::Public).void } def visit_public(node); end - # : (RBSComment node) -> void - # - # source://rbi//lib/rbi/visitor.rb#126 + # source://rbi//lib/rbi/visitor.rb#123 sig { params(node: ::RBI::RBSComment).void } def visit_rbs_comment(node); end - # : (ReqParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#162 + # source://rbi//lib/rbi/visitor.rb#159 sig { params(node: ::RBI::ReqParam).void } def visit_req_param(node); end - # : (RequiresAncestor node) -> void - # - # source://rbi//lib/rbi/visitor.rb#240 + # source://rbi//lib/rbi/visitor.rb#237 sig { params(node: ::RBI::RequiresAncestor).void } def visit_requires_ancestor(node); end - # : (RestParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#168 + # source://rbi//lib/rbi/visitor.rb#165 sig { params(node: ::RBI::RestParam).void } def visit_rest_param(node); end - # : (ScopeConflict node) -> void - # - # source://rbi//lib/rbi/visitor.rb#252 + # source://rbi//lib/rbi/visitor.rb#249 sig { params(node: ::RBI::ScopeConflict).void } def visit_scope_conflict(node); end - # : (Send node) -> void - # - # source://rbi//lib/rbi/visitor.rb#198 + # source://rbi//lib/rbi/visitor.rb#195 sig { params(node: ::RBI::Send).void } def visit_send(node); end - # : (Sig node) -> void - # - # source://rbi//lib/rbi/visitor.rb#207 + # source://rbi//lib/rbi/visitor.rb#204 sig { params(node: ::RBI::Sig).void } def visit_sig(node); end - # : (SigParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#210 + # source://rbi//lib/rbi/visitor.rb#207 sig { params(node: ::RBI::SigParam).void } def visit_sig_param(node); end - # : (SingletonClass node) -> void - # - # source://rbi//lib/rbi/visitor.rb#138 + # source://rbi//lib/rbi/visitor.rb#135 sig { params(node: ::RBI::SingletonClass).void } def visit_singleton_class(node); end - # : (Struct node) -> void - # - # source://rbi//lib/rbi/visitor.rb#141 + # source://rbi//lib/rbi/visitor.rb#138 sig { params(node: ::RBI::Struct).void } def visit_struct(node); end - # : (TEnum node) -> void - # - # source://rbi//lib/rbi/visitor.rb#222 + # source://rbi//lib/rbi/visitor.rb#219 sig { params(node: ::RBI::TEnum).void } def visit_tenum(node); end - # : (TEnumBlock node) -> void - # - # source://rbi//lib/rbi/visitor.rb#225 + # source://rbi//lib/rbi/visitor.rb#222 sig { params(node: ::RBI::TEnumBlock).void } def visit_tenum_block(node); end - # : (TEnumValue node) -> void - # - # source://rbi//lib/rbi/visitor.rb#228 + # source://rbi//lib/rbi/visitor.rb#225 sig { params(node: ::RBI::TEnumValue).void } def visit_tenum_value(node); end - # : (Tree node) -> void - # - # source://rbi//lib/rbi/visitor.rb#144 + # source://rbi//lib/rbi/visitor.rb#141 sig { params(node: ::RBI::Tree).void } def visit_tree(node); end - # : (TStruct node) -> void - # - # source://rbi//lib/rbi/visitor.rb#213 + # source://rbi//lib/rbi/visitor.rb#210 sig { params(node: ::RBI::TStruct).void } def visit_tstruct(node); end - # : (TStructConst node) -> void - # - # source://rbi//lib/rbi/visitor.rb#216 + # source://rbi//lib/rbi/visitor.rb#213 sig { params(node: ::RBI::TStructConst).void } def visit_tstruct_const(node); end - # : (TStructProp node) -> void - # - # source://rbi//lib/rbi/visitor.rb#219 + # source://rbi//lib/rbi/visitor.rb#216 sig { params(node: ::RBI::TStructProp).void } def visit_tstruct_prop(node); end - # : (TypeMember node) -> void - # - # source://rbi//lib/rbi/visitor.rb#234 + # source://rbi//lib/rbi/visitor.rb#231 sig { params(node: ::RBI::TypeMember).void } def visit_type_member(node); end - # : (VisibilityGroup node) -> void - # - # source://rbi//lib/rbi/visitor.rb#246 + # source://rbi//lib/rbi/visitor.rb#243 sig { params(node: ::RBI::VisibilityGroup).void } def visit_visibility_group(node); end end diff --git a/sorbet/rbi/gems/rbs@3.9.2.rbi b/sorbet/rbi/gems/rbs@4.0.0.dev.4.rbi similarity index 80% rename from sorbet/rbi/gems/rbs@3.9.2.rbi rename to sorbet/rbi/gems/rbs@4.0.0.dev.4.rbi index 681f7787..c515772f 100644 --- a/sorbet/rbi/gems/rbs@3.9.2.rbi +++ b/sorbet/rbi/gems/rbs@4.0.0.dev.4.rbi @@ -5,38 +5,29 @@ # Please instead update this file by running `bin/tapioca gem rbs`. -# source://rbs//lib/rbs/namespace.rb#120 -module Kernel - # source://rbs//lib/rbs/namespace.rb#121 - def Namespace(name); end - - # source://rbs//lib/rbs/type_name.rb#105 - def TypeName(string); end -end - # source://rbs//lib/rbs/version.rb#3 module RBS class << self - # source://rbs//lib/rbs.rb#69 + # source://rbs//lib/rbs.rb#81 def logger; end # Returns the value of attribute logger_level. # - # source://rbs//lib/rbs.rb#66 + # source://rbs//lib/rbs.rb#78 def logger_level; end - # source://rbs//lib/rbs.rb#78 + # source://rbs//lib/rbs.rb#90 def logger_level=(level); end # Returns the value of attribute logger_output. # - # source://rbs//lib/rbs.rb#67 + # source://rbs//lib/rbs.rb#79 def logger_output; end - # source://rbs//lib/rbs.rb#73 + # source://rbs//lib/rbs.rb#85 def logger_output=(val); end - # source://rbs//lib/rbs.rb#83 + # source://rbs//lib/rbs.rb#95 def print_warning; end end end @@ -54,7 +45,7 @@ class RBS::AST::Annotation # source://rbs//lib/rbs/ast/annotation.rb#14 def ==(other); end - # source://rbs//lib/rbs/ast/annotation.rb#14 + # source://rbs//lib/rbs/ast/annotation.rb#18 def eql?(other); end # source://rbs//lib/rbs/ast/annotation.rb#20 @@ -84,7 +75,7 @@ class RBS::AST::Comment # source://rbs//lib/rbs/ast/comment.rb#14 def ==(other); end - # source://rbs//lib/rbs/ast/comment.rb#14 + # source://rbs//lib/rbs/ast/comment.rb#18 def eql?(other); end # source://rbs//lib/rbs/ast/comment.rb#20 @@ -127,7 +118,7 @@ class RBS::AST::Declarations::AliasDecl < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#424 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#434 + # source://rbs//lib/rbs/ast/declarations.rb#440 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#442 @@ -175,7 +166,7 @@ class RBS::AST::Declarations::Class < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#95 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#119 + # source://rbs//lib/rbs/ast/declarations.rb#127 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#129 @@ -228,7 +219,7 @@ class RBS::AST::Declarations::Class::Super # source://rbs//lib/rbs/ast/declarations.rb#58 def args; end - # source://rbs//lib/rbs/ast/declarations.rb#67 + # source://rbs//lib/rbs/ast/declarations.rb#71 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#73 @@ -274,7 +265,7 @@ class RBS::AST::Declarations::Constant < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#351 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#362 + # source://rbs//lib/rbs/ast/declarations.rb#368 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#370 @@ -319,7 +310,7 @@ class RBS::AST::Declarations::Global < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#389 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#400 + # source://rbs//lib/rbs/ast/declarations.rb#406 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#408 @@ -366,7 +357,7 @@ class RBS::AST::Declarations::Interface < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#254 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#278 + # source://rbs//lib/rbs/ast/declarations.rb#285 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#287 @@ -428,7 +419,7 @@ class RBS::AST::Declarations::Module < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#195 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#220 + # source://rbs//lib/rbs/ast/declarations.rb#228 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#230 @@ -481,7 +472,7 @@ class RBS::AST::Declarations::Module::Self # source://rbs//lib/rbs/ast/declarations.rb#150 def args; end - # source://rbs//lib/rbs/ast/declarations.rb#159 + # source://rbs//lib/rbs/ast/declarations.rb#163 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#165 @@ -539,7 +530,7 @@ class RBS::AST::Declarations::TypeAlias < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#310 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#321 + # source://rbs//lib/rbs/ast/declarations.rb#328 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#330 @@ -675,7 +666,7 @@ class RBS::AST::Members::Alias < ::RBS::AST::Members::Base # source://rbs//lib/rbs/ast/members.rb#405 def comment; end - # source://rbs//lib/rbs/ast/members.rb#416 + # source://rbs//lib/rbs/ast/members.rb#423 def eql?(other); end # source://rbs//lib/rbs/ast/members.rb#425 @@ -757,7 +748,7 @@ module RBS::AST::Members::Attribute # source://rbs//lib/rbs/ast/members.rb#267 def comment; end - # source://rbs//lib/rbs/ast/members.rb#281 + # source://rbs//lib/rbs/ast/members.rb#290 def eql?(other); end # source://rbs//lib/rbs/ast/members.rb#292 @@ -848,7 +839,7 @@ module RBS::AST::Members::LocationOnly # source://rbs//lib/rbs/ast/members.rb#372 def ==(other); end - # source://rbs//lib/rbs/ast/members.rb#372 + # source://rbs//lib/rbs/ast/members.rb#376 def eql?(other); end # source://rbs//lib/rbs/ast/members.rb#378 @@ -880,7 +871,7 @@ class RBS::AST::Members::MethodDefinition < ::RBS::AST::Members::Base # source://rbs//lib/rbs/ast/members.rb#51 def comment; end - # source://rbs//lib/rbs/ast/members.rb#66 + # source://rbs//lib/rbs/ast/members.rb#75 def eql?(other); end # source://rbs//lib/rbs/ast/members.rb#77 @@ -953,7 +944,7 @@ class RBS::AST::Members::MethodDefinition::Overload # source://rbs//lib/rbs/ast/members.rb#11 def annotations; end - # source://rbs//lib/rbs/ast/members.rb#18 + # source://rbs//lib/rbs/ast/members.rb#26 def eql?(other); end # source://rbs//lib/rbs/ast/members.rb#22 @@ -1053,7 +1044,7 @@ module RBS::AST::Members::Var # source://rbs//lib/rbs/ast/members.rb#125 def comment; end - # source://rbs//lib/rbs/ast/members.rb#134 + # source://rbs//lib/rbs/ast/members.rb#138 def eql?(other); end # source://rbs//lib/rbs/ast/members.rb#140 @@ -1075,6 +1066,475 @@ module RBS::AST::Members::Var def type; end end +# source://rbs//lib/rbs/ast/ruby/comment_block.rb#5 +module RBS::AST::Ruby; end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#6 +module RBS::AST::Ruby::Annotations; end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#7 +class RBS::AST::Ruby::Annotations::Base + # @return [Base] a new instance of Base + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#10 + def initialize(location, prefix_location); end + + # source://rbs//lib/rbs/ast/ruby/annotations.rb#15 + def buffer; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#8 + def location; end + + # Returns the value of attribute prefix_location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#8 + def prefix_location; end +end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#36 +class RBS::AST::Ruby::Annotations::ColonMethodTypeAnnotation < ::RBS::AST::Ruby::Annotations::Base + # @return [ColonMethodTypeAnnotation] a new instance of ColonMethodTypeAnnotation + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#39 + def initialize(location:, prefix_location:, annotations:, method_type:); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#37 + def annotations; end + + # source://rbs//lib/rbs/ast/ruby/annotations.rb#45 + def map_type_name; end + + # Returns the value of attribute method_type. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#37 + def method_type; end +end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#55 +class RBS::AST::Ruby::Annotations::MethodTypesAnnotation < ::RBS::AST::Ruby::Annotations::Base + # @return [MethodTypesAnnotation] a new instance of MethodTypesAnnotation + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#60 + def initialize(location:, prefix_location:, overloads:, vertical_bar_locations:); end + + # source://rbs//lib/rbs/ast/ruby/annotations.rb#66 + def map_type_name(&block); end + + # Returns the value of attribute overloads. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#58 + def overloads; end + + # Returns the value of attribute vertical_bar_locations. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#58 + def vertical_bar_locations; end +end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#56 +RBS::AST::Ruby::Annotations::MethodTypesAnnotation::Overload = RBS::AST::Members::MethodDefinition::Overload + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#20 +class RBS::AST::Ruby::Annotations::NodeTypeAssertion < ::RBS::AST::Ruby::Annotations::Base + # @return [NodeTypeAssertion] a new instance of NodeTypeAssertion + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#23 + def initialize(location:, prefix_location:, type:); end + + # source://rbs//lib/rbs/ast/ruby/annotations.rb#28 + def map_type_name; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#21 + def type; end +end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#88 +class RBS::AST::Ruby::Annotations::ReturnTypeAnnotation < ::RBS::AST::Ruby::Annotations::Base + # @return [ReturnTypeAnnotation] a new instance of ReturnTypeAnnotation + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#97 + def initialize(location:, prefix_location:, return_location:, colon_location:, return_type:, comment_location:); end + + # Returns the value of attribute colon_location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#91 + def colon_location; end + + # Returns the value of attribute comment_location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#95 + def comment_location; end + + # source://rbs//lib/rbs/ast/ruby/annotations.rb#105 + def map_type_name(&block); end + + # Returns the value of attribute return_location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#89 + def return_location; end + + # Returns the value of attribute return_type. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#93 + def return_type; end +end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#78 +class RBS::AST::Ruby::Annotations::SkipAnnotation < ::RBS::AST::Ruby::Annotations::Base + # @return [SkipAnnotation] a new instance of SkipAnnotation + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#81 + def initialize(location:, prefix_location:, skip_location:, comment_location:); end + + # Returns the value of attribute comment_location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#79 + def comment_location; end + + # Returns the value of attribute skip_location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#79 + def skip_location; end +end + +# source://rbs//lib/rbs/ast/ruby/comment_block.rb#6 +class RBS::AST::Ruby::CommentBlock + # @return [CommentBlock] a new instance of CommentBlock + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#9 + def initialize(source_buffer, comments); end + + # Returns the value of attribute comment_buffer. + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#7 + def comment_buffer; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#204 + def comments; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#98 + def each_paragraph(variables, &block); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#50 + def end_line; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#36 + def leading?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#208 + def leading_annotation?(index); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#174 + def line_location(start_line, end_line); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#54 + def line_starts; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#7 + def name; end + + # Returns the value of attribute offsets. + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#7 + def offsets; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#180 + def parse_annotation_lines(start_line, end_line, variables); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#46 + def start_line; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#169 + def text(comment_index); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#41 + def trailing?; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#190 + def trailing_annotation(variables); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#130 + def yield_annotation(start_line, end_line, current_line, variables, &block); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#110 + def yield_paragraph(start_line, current_line, variables, &block); end + + class << self + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#60 + def build(buffer, comments); end + end +end + +# source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 +class RBS::AST::Ruby::CommentBlock::AnnotationSyntaxError < ::Struct + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def error; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def error=(_); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def location; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def location=(_); end + + class << self + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def [](*_arg0); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def inspect; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def keyword_init?; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def members; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/ast/ruby/declarations.rb#6 +module RBS::AST::Ruby::Declarations; end + +# source://rbs//lib/rbs/ast/ruby/declarations.rb#7 +class RBS::AST::Ruby::Declarations::Base + include ::RBS::AST::Ruby::Helpers::ConstantHelper + include ::RBS::AST::Ruby::Helpers::LocationHelper + + # @return [Base] a new instance of Base + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#13 + def initialize(buffer); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#8 + def buffer; end +end + +# source://rbs//lib/rbs/ast/ruby/declarations.rb#18 +class RBS::AST::Ruby::Declarations::ClassDecl < ::RBS::AST::Ruby::Declarations::Base + # @return [ClassDecl] a new instance of ClassDecl + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#25 + def initialize(buffer, name, node); end + + # Returns the value of attribute class_name. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#19 + def class_name; end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#32 + def each_decl(&block); end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#46 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#21 + def members; end + + # Returns the value of attribute node. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#23 + def node; end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#42 + def super_class; end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#44 + def type_params; end +end + +# source://rbs//lib/rbs/ast/ruby/declarations.rb#51 +class RBS::AST::Ruby::Declarations::ModuleDecl < ::RBS::AST::Ruby::Declarations::Base + # @return [ModuleDecl] a new instance of ModuleDecl + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#58 + def initialize(buffer, name, node); end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#65 + def each_decl(&block); end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#79 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#54 + def members; end + + # Returns the value of attribute module_name. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#52 + def module_name; end + + # Returns the value of attribute node. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#56 + def node; end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#77 + def self_types; end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#75 + def type_params; end +end + +# source://rbs//lib/rbs/ast/ruby/helpers/constant_helper.rb#6 +module RBS::AST::Ruby::Helpers; end + +# source://rbs//lib/rbs/ast/ruby/helpers/constant_helper.rb#7 +module RBS::AST::Ruby::Helpers::ConstantHelper + private + + # source://rbs//lib/rbs/ast/ruby/helpers/constant_helper.rb#10 + def constant_as_type_name(node); end + + class << self + # source://rbs//lib/rbs/ast/ruby/helpers/constant_helper.rb#10 + def constant_as_type_name(node); end + end +end + +# source://rbs//lib/rbs/ast/ruby/helpers/location_helper.rb#7 +module RBS::AST::Ruby::Helpers::LocationHelper + # source://rbs//lib/rbs/ast/ruby/helpers/location_helper.rb#8 + def rbs_location(location); end +end + +# source://rbs//lib/rbs/ast/ruby/members.rb#6 +module RBS::AST::Ruby::Members; end + +# source://rbs//lib/rbs/ast/ruby/members.rb#7 +class RBS::AST::Ruby::Members::Base + include ::RBS::AST::Ruby::Helpers::LocationHelper + + # @return [Base] a new instance of Base + # + # source://rbs//lib/rbs/ast/ruby/members.rb#10 + def initialize(buffer); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#8 + def buffer; end +end + +# source://rbs//lib/rbs/ast/ruby/members.rb#180 +class RBS::AST::Ruby::Members::DefMember < ::RBS::AST::Ruby::Members::Base + # @return [DefMember] a new instance of DefMember + # + # source://rbs//lib/rbs/ast/ruby/members.rb#187 + def initialize(buffer, name, node, method_type); end + + # source://rbs//lib/rbs/ast/ruby/members.rb#206 + def annotations; end + + # source://rbs//lib/rbs/ast/ruby/members.rb#194 + def location; end + + # Returns the value of attribute method_type. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#185 + def method_type; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#183 + def name; end + + # Returns the value of attribute node. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#184 + def node; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/ruby/members.rb#202 + def overloading?; end + + # source://rbs//lib/rbs/ast/ruby/members.rb#198 + def overloads; end +end + +# source://rbs//lib/rbs/ast/ruby/members.rb#181 +RBS::AST::Ruby::Members::DefMember::Overload = RBS::AST::Members::MethodDefinition::Overload + +# source://rbs//lib/rbs/ast/ruby/members.rb#17 +class RBS::AST::Ruby::Members::MethodTypeAnnotation + # @return [MethodTypeAnnotation] a new instance of MethodTypeAnnotation + # + # source://rbs//lib/rbs/ast/ruby/members.rb#64 + def initialize(type_annotations:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/ruby/members.rb#139 + def empty?; end + + # source://rbs//lib/rbs/ast/ruby/members.rb#68 + def map_type_name(&block); end + + # source://rbs//lib/rbs/ast/ruby/members.rb#143 + def overloads; end + + # Returns the value of attribute type_annotations. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#62 + def type_annotations; end + + class << self + # source://rbs//lib/rbs/ast/ruby/members.rb#81 + def build(leading_block, trailing_block, variables); end + end +end + +# source://rbs//lib/rbs/ast/ruby/members.rb#18 +class RBS::AST::Ruby::Members::MethodTypeAnnotation::DocStyle + # @return [DocStyle] a new instance of DocStyle + # + # source://rbs//lib/rbs/ast/ruby/members.rb#21 + def initialize; end + + # source://rbs//lib/rbs/ast/ruby/members.rb#25 + def map_type_name(&block); end + + # source://rbs//lib/rbs/ast/ruby/members.rb#31 + def method_type; end + + # Returns the value of attribute return_type_annotation. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#19 + def return_type_annotation; end + + # Sets the attribute return_type_annotation + # + # @param value the value to set the attribute return_type_annotation to. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#19 + def return_type_annotation=(_arg0); end +end + # source://rbs//lib/rbs/ast/type_param.rb#5 class RBS::AST::TypeParam # @return [TypeParam] a new instance of TypeParam @@ -1090,7 +1550,7 @@ class RBS::AST::TypeParam # source://rbs//lib/rbs/ast/type_param.rb#6 def default_type; end - # source://rbs//lib/rbs/ast/type_param.rb#33 + # source://rbs//lib/rbs/ast/type_param.rb#42 def eql?(other); end # source://rbs//lib/rbs/ast/type_param.rb#44 @@ -1296,28 +1756,52 @@ end # source://rbs//lib/rbs/ancestor_graph.rb#5 class RBS::AncestorGraph::InstanceNode < ::Struct + # source://rbs//lib/rbs/ancestor_graph.rb#5 def type_name; end + + # source://rbs//lib/rbs/ancestor_graph.rb#5 def type_name=(_); end class << self + # source://rbs//lib/rbs/ancestor_graph.rb#5 def [](*_arg0); end + + # source://rbs//lib/rbs/ancestor_graph.rb#5 def inspect; end + + # source://rbs//lib/rbs/ancestor_graph.rb#5 def keyword_init?; end + + # source://rbs//lib/rbs/ancestor_graph.rb#5 def members; end + + # source://rbs//lib/rbs/ancestor_graph.rb#5 def new(*_arg0); end end end # source://rbs//lib/rbs/ancestor_graph.rb#6 class RBS::AncestorGraph::SingletonNode < ::Struct + # source://rbs//lib/rbs/ancestor_graph.rb#6 def type_name; end + + # source://rbs//lib/rbs/ancestor_graph.rb#6 def type_name=(_); end class << self + # source://rbs//lib/rbs/ancestor_graph.rb#6 def [](*_arg0); end + + # source://rbs//lib/rbs/ancestor_graph.rb#6 def inspect; end + + # source://rbs//lib/rbs/ancestor_graph.rb#6 def keyword_init?; end + + # source://rbs//lib/rbs/ancestor_graph.rb#6 def members; end + + # source://rbs//lib/rbs/ancestor_graph.rb#6 def new(*_arg0); end end end @@ -1329,24 +1813,33 @@ class RBS::BaseError < ::StandardError; end class RBS::Buffer # @return [Buffer] a new instance of Buffer # - # source://rbs//lib/rbs/buffer.rb#8 - def initialize(name:, content:); end + # source://rbs//lib/rbs/buffer.rb#9 + def initialize(content:, name: T.unsafe(nil), parent: T.unsafe(nil)); end + + # source://rbs//lib/rbs/buffer.rb#126 + def absolute_position(position); end # Returns the value of attribute content. # # source://rbs//lib/rbs/buffer.rb#6 def content; end - # source://rbs//lib/rbs/buffer.rb#63 + # source://rbs//lib/rbs/buffer.rb#143 + def detach; end + + # source://rbs//lib/rbs/buffer.rb#81 def inspect; end - # source://rbs//lib/rbs/buffer.rb#59 + # source://rbs//lib/rbs/buffer.rb#73 def last_position; end - # source://rbs//lib/rbs/buffer.rb#13 + # source://rbs//lib/rbs/buffer.rb#26 + def line_count; end + + # source://rbs//lib/rbs/buffer.rb#22 def lines; end - # source://rbs//lib/rbs/buffer.rb#49 + # source://rbs//lib/rbs/buffer.rb#63 def loc_to_pos(loc); end # Returns the value of attribute name. @@ -1354,11 +1847,31 @@ class RBS::Buffer # source://rbs//lib/rbs/buffer.rb#5 def name; end - # source://rbs//lib/rbs/buffer.rb#37 + # Returns the value of attribute parent. + # + # source://rbs//lib/rbs/buffer.rb#7 + def parent; end + + # source://rbs//lib/rbs/buffer.rb#111 + def parent_buffer; end + + # source://rbs//lib/rbs/buffer.rb#117 + def parent_position(position); end + + # source://rbs//lib/rbs/buffer.rb#51 def pos_to_loc(pos); end - # source://rbs//lib/rbs/buffer.rb#17 + # source://rbs//lib/rbs/buffer.rb#30 def ranges; end + + # source://rbs//lib/rbs/buffer.rb#85 + def rbs_location(location, loc2 = T.unsafe(nil)); end + + # source://rbs//lib/rbs/buffer.rb#93 + def sub_buffer(lines:); end + + # source://rbs//lib/rbs/buffer.rb#135 + def top_buffer; end end # source://rbs//lib/rbs/builtin_names.rb#4 @@ -1959,7 +2472,10 @@ class RBS::Collection::Sources::Rubygems class << self private + # source://rbs//lib/rbs/collection/sources/rubygems.rb#11 def allocate; end + + # source://rbs//lib/rbs/collection/sources/rubygems.rb#11 def new(*_arg0); end end end @@ -1998,7 +2514,10 @@ class RBS::Collection::Sources::Stdlib class << self private + # source://rbs//lib/rbs/collection/sources/stdlib.rb#11 def allocate; end + + # source://rbs//lib/rbs/collection/sources/stdlib.rb#11 def new(*_arg0); end end end @@ -2021,7 +2540,7 @@ class RBS::Constant # source://rbs//lib/rbs/constant.rb#7 def entry; end - # source://rbs//lib/rbs/constant.rb#15 + # source://rbs//lib/rbs/constant.rb#22 def eql?(other); end # source://rbs//lib/rbs/constant.rb#24 @@ -2038,51 +2557,51 @@ class RBS::Constant def type; end end -# source://rbs//lib/rbs/errors.rb#577 +# source://rbs//lib/rbs/errors.rb#578 class RBS::CyclicClassAliasDefinitionError < ::RBS::BaseError include ::RBS::DetailedMessageable # @return [CyclicClassAliasDefinitionError] a new instance of CyclicClassAliasDefinitionError # - # source://rbs//lib/rbs/errors.rb#582 + # source://rbs//lib/rbs/errors.rb#583 def initialize(entry); end # Returns the value of attribute alias_entry. # - # source://rbs//lib/rbs/errors.rb#580 + # source://rbs//lib/rbs/errors.rb#581 def alias_entry; end - # source://rbs//lib/rbs/errors.rb#588 + # source://rbs//lib/rbs/errors.rb#589 def location; end end -# source://rbs//lib/rbs/errors.rb#538 +# source://rbs//lib/rbs/errors.rb#539 class RBS::CyclicTypeParameterBound < ::RBS::BaseError include ::RBS::DetailedMessageable # @return [CyclicTypeParameterBound] a new instance of CyclicTypeParameterBound # - # source://rbs//lib/rbs/errors.rb#543 + # source://rbs//lib/rbs/errors.rb#544 def initialize(type_name:, method_name:, params:, location:); end # Returns the value of attribute location. # - # source://rbs//lib/rbs/errors.rb#541 + # source://rbs//lib/rbs/errors.rb#542 def location; end # Returns the value of attribute method_name. # - # source://rbs//lib/rbs/errors.rb#541 + # source://rbs//lib/rbs/errors.rb#542 def method_name; end # Returns the value of attribute params. # - # source://rbs//lib/rbs/errors.rb#541 + # source://rbs//lib/rbs/errors.rb#542 def params; end # Returns the value of attribute type_name. # - # source://rbs//lib/rbs/errors.rb#541 + # source://rbs//lib/rbs/errors.rb#542 def type_name; end end @@ -2090,170 +2609,170 @@ end class RBS::Definition # @return [Definition] a new instance of Definition # - # source://rbs//lib/rbs/definition.rb#297 + # source://rbs//lib/rbs/definition.rb#302 def initialize(type_name:, entry:, self_type:, ancestors:); end # Returns the value of attribute ancestors. # - # source://rbs//lib/rbs/definition.rb#291 + # source://rbs//lib/rbs/definition.rb#296 def ancestors; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#320 + # source://rbs//lib/rbs/definition.rb#325 def class?; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#337 + # source://rbs//lib/rbs/definition.rb#342 def class_type?; end # Returns the value of attribute class_variables. # - # source://rbs//lib/rbs/definition.rb#295 + # source://rbs//lib/rbs/definition.rb#300 def class_variables; end - # source://rbs//lib/rbs/definition.rb#384 + # source://rbs//lib/rbs/definition.rb#389 def each_type(&block); end # Returns the value of attribute entry. # - # source://rbs//lib/rbs/definition.rb#290 + # source://rbs//lib/rbs/definition.rb#295 def entry; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#341 + # source://rbs//lib/rbs/definition.rb#346 def instance_type?; end # Returns the value of attribute instance_variables. # - # source://rbs//lib/rbs/definition.rb#294 + # source://rbs//lib/rbs/definition.rb#299 def instance_variables; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#328 + # source://rbs//lib/rbs/definition.rb#333 def interface?; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#345 + # source://rbs//lib/rbs/definition.rb#350 def interface_type?; end - # source://rbs//lib/rbs/definition.rb#374 + # source://rbs//lib/rbs/definition.rb#379 def map_method_type(&block); end # Returns the value of attribute methods. # - # source://rbs//lib/rbs/definition.rb#293 + # source://rbs//lib/rbs/definition.rb#298 def methods; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#324 + # source://rbs//lib/rbs/definition.rb#329 def module?; end # Returns the value of attribute self_type. # - # source://rbs//lib/rbs/definition.rb#292 + # source://rbs//lib/rbs/definition.rb#297 def self_type; end - # source://rbs//lib/rbs/definition.rb#362 + # source://rbs//lib/rbs/definition.rb#367 def sub(s); end # Returns the value of attribute type_name. # - # source://rbs//lib/rbs/definition.rb#289 + # source://rbs//lib/rbs/definition.rb#294 def type_name; end - # source://rbs//lib/rbs/definition.rb#349 + # source://rbs//lib/rbs/definition.rb#354 def type_params; end - # source://rbs//lib/rbs/definition.rb#353 + # source://rbs//lib/rbs/definition.rb#358 def type_params_decl; end end -# source://rbs//lib/rbs/definition.rb#204 +# source://rbs//lib/rbs/definition.rb#209 module RBS::Definition::Ancestor; end -# source://rbs//lib/rbs/definition.rb#205 +# source://rbs//lib/rbs/definition.rb#210 class RBS::Definition::Ancestor::Instance # @return [Instance] a new instance of Instance # - # source://rbs//lib/rbs/definition.rb#208 + # source://rbs//lib/rbs/definition.rb#213 def initialize(name:, args:, source:); end - # source://rbs//lib/rbs/definition.rb#214 + # source://rbs//lib/rbs/definition.rb#219 def ==(other); end # Returns the value of attribute args. # - # source://rbs//lib/rbs/definition.rb#206 + # source://rbs//lib/rbs/definition.rb#211 def args; end - # source://rbs//lib/rbs/definition.rb#214 + # source://rbs//lib/rbs/definition.rb#223 def eql?(other); end - # source://rbs//lib/rbs/definition.rb#220 + # source://rbs//lib/rbs/definition.rb#225 def hash; end # Returns the value of attribute name. # - # source://rbs//lib/rbs/definition.rb#206 + # source://rbs//lib/rbs/definition.rb#211 def name; end # Returns the value of attribute source. # - # source://rbs//lib/rbs/definition.rb#206 + # source://rbs//lib/rbs/definition.rb#211 def source; end end -# source://rbs//lib/rbs/definition.rb#225 +# source://rbs//lib/rbs/definition.rb#230 class RBS::Definition::Ancestor::Singleton # @return [Singleton] a new instance of Singleton # - # source://rbs//lib/rbs/definition.rb#228 + # source://rbs//lib/rbs/definition.rb#233 def initialize(name:); end - # source://rbs//lib/rbs/definition.rb#232 + # source://rbs//lib/rbs/definition.rb#237 def ==(other); end - # source://rbs//lib/rbs/definition.rb#232 + # source://rbs//lib/rbs/definition.rb#241 def eql?(other); end - # source://rbs//lib/rbs/definition.rb#238 + # source://rbs//lib/rbs/definition.rb#243 def hash; end # Returns the value of attribute name. # - # source://rbs//lib/rbs/definition.rb#226 + # source://rbs//lib/rbs/definition.rb#231 def name; end end -# source://rbs//lib/rbs/definition.rb#244 +# source://rbs//lib/rbs/definition.rb#249 class RBS::Definition::InstanceAncestors # @return [InstanceAncestors] a new instance of InstanceAncestors # - # source://rbs//lib/rbs/definition.rb#249 + # source://rbs//lib/rbs/definition.rb#254 def initialize(type_name:, params:, ancestors:); end # Returns the value of attribute ancestors. # - # source://rbs//lib/rbs/definition.rb#247 + # source://rbs//lib/rbs/definition.rb#252 def ancestors; end - # source://rbs//lib/rbs/definition.rb#255 + # source://rbs//lib/rbs/definition.rb#260 def apply(args, env:, location:); end # Returns the value of attribute params. # - # source://rbs//lib/rbs/definition.rb#246 + # source://rbs//lib/rbs/definition.rb#251 def params; end # Returns the value of attribute type_name. # - # source://rbs//lib/rbs/definition.rb#245 + # source://rbs//lib/rbs/definition.rb#250 def type_name; end end @@ -2261,91 +2780,91 @@ end class RBS::Definition::Method # @return [Method] a new instance of Method # - # source://rbs//lib/rbs/definition.rb#102 + # source://rbs//lib/rbs/definition.rb#107 def initialize(super_method:, defs:, accessibility:, alias_of:, annotations: T.unsafe(nil), alias_member: T.unsafe(nil)); end - # source://rbs//lib/rbs/definition.rb#112 + # source://rbs//lib/rbs/definition.rb#117 def ==(other); end # Returns the value of attribute accessibility. # - # source://rbs//lib/rbs/definition.rb#96 + # source://rbs//lib/rbs/definition.rb#101 def accessibility; end # Returns the value of attribute alias_member. # - # source://rbs//lib/rbs/definition.rb#100 + # source://rbs//lib/rbs/definition.rb#105 def alias_member; end # Returns the value of attribute alias_of. # - # source://rbs//lib/rbs/definition.rb#99 + # source://rbs//lib/rbs/definition.rb#104 def alias_of; end # Returns the value of attribute annotations. # - # source://rbs//lib/rbs/definition.rb#98 + # source://rbs//lib/rbs/definition.rb#103 def annotations; end - # source://rbs//lib/rbs/definition.rb#146 + # source://rbs//lib/rbs/definition.rb#151 def comments; end - # source://rbs//lib/rbs/definition.rb#128 + # source://rbs//lib/rbs/definition.rb#133 def defined_in; end # Returns the value of attribute defs. # - # source://rbs//lib/rbs/definition.rb#95 + # source://rbs//lib/rbs/definition.rb#100 def defs; end - # source://rbs//lib/rbs/definition.rb#112 + # source://rbs//lib/rbs/definition.rb#127 def eql?(other); end # Returns the value of attribute extra_annotations. # - # source://rbs//lib/rbs/definition.rb#97 + # source://rbs//lib/rbs/definition.rb#102 def extra_annotations; end - # source://rbs//lib/rbs/definition.rb#124 + # source://rbs//lib/rbs/definition.rb#129 def hash; end - # source://rbs//lib/rbs/definition.rb#135 + # source://rbs//lib/rbs/definition.rb#140 def implemented_in; end - # source://rbs//lib/rbs/definition.rb#185 + # source://rbs//lib/rbs/definition.rb#190 def map_method_type(&block); end - # source://rbs//lib/rbs/definition.rb#171 + # source://rbs//lib/rbs/definition.rb#176 def map_type(&block); end - # source://rbs//lib/rbs/definition.rb#178 + # source://rbs//lib/rbs/definition.rb#183 def map_type_bound(&block); end - # source://rbs//lib/rbs/definition.rb#150 + # source://rbs//lib/rbs/definition.rb#155 def members; end - # source://rbs//lib/rbs/definition.rb#142 + # source://rbs//lib/rbs/definition.rb#147 def method_types; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#158 + # source://rbs//lib/rbs/definition.rb#163 def private?; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#154 + # source://rbs//lib/rbs/definition.rb#159 def public?; end - # source://rbs//lib/rbs/definition.rb#162 + # source://rbs//lib/rbs/definition.rb#167 def sub(s); end # Returns the value of attribute super_method. # - # source://rbs//lib/rbs/definition.rb#94 + # source://rbs//lib/rbs/definition.rb#99 def super_method; end - # source://rbs//lib/rbs/definition.rb#191 + # source://rbs//lib/rbs/definition.rb#196 def update(super_method: T.unsafe(nil), defs: T.unsafe(nil), accessibility: T.unsafe(nil), alias_of: T.unsafe(nil), annotations: T.unsafe(nil), alias_member: T.unsafe(nil)); end end @@ -2372,10 +2891,10 @@ class RBS::Definition::Method::TypeDef # source://rbs//lib/rbs/definition.rb#34 def defined_in; end - # source://rbs//lib/rbs/definition.rb#84 + # source://rbs//lib/rbs/definition.rb#89 def each_annotation(&block); end - # source://rbs//lib/rbs/definition.rb#50 + # source://rbs//lib/rbs/definition.rb#58 def eql?(other); end # source://rbs//lib/rbs/definition.rb#60 @@ -2398,7 +2917,7 @@ class RBS::Definition::Method::TypeDef # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#75 + # source://rbs//lib/rbs/definition.rb#80 def overload?; end # Returns the value of attribute overload_annotations. @@ -2411,25 +2930,25 @@ class RBS::Definition::Method::TypeDef # source://rbs//lib/rbs/definition.rb#32 def type; end - # source://rbs//lib/rbs/definition.rb#68 + # source://rbs//lib/rbs/definition.rb#73 def update(type: T.unsafe(nil), member: T.unsafe(nil), defined_in: T.unsafe(nil), implemented_in: T.unsafe(nil)); end end -# source://rbs//lib/rbs/definition.rb#279 +# source://rbs//lib/rbs/definition.rb#284 class RBS::Definition::SingletonAncestors # @return [SingletonAncestors] a new instance of SingletonAncestors # - # source://rbs//lib/rbs/definition.rb#283 + # source://rbs//lib/rbs/definition.rb#288 def initialize(type_name:, ancestors:); end # Returns the value of attribute ancestors. # - # source://rbs//lib/rbs/definition.rb#281 + # source://rbs//lib/rbs/definition.rb#286 def ancestors; end # Returns the value of attribute type_name. # - # source://rbs//lib/rbs/definition.rb#280 + # source://rbs//lib/rbs/definition.rb#285 def type_name; end end @@ -2496,7 +3015,7 @@ class RBS::DefinitionBuilder # source://rbs//lib/rbs/definition_builder.rb#33 def define_interface(definition, type_name, subst); end - # source://rbs//lib/rbs/definition_builder.rb#642 + # source://rbs//lib/rbs/definition_builder.rb#646 def define_method(methods, definition, method, subst, self_type_methods, defined_in:, implemented_in: T.unsafe(nil)); end # source://rbs//lib/rbs/definition_builder.rb#25 @@ -2507,19 +3026,19 @@ class RBS::DefinitionBuilder # source://rbs//lib/rbs/definition_builder.rb#5 def env; end - # source://rbs//lib/rbs/definition_builder.rb#826 + # source://rbs//lib/rbs/definition_builder.rb#861 def expand_alias(type_name); end - # source://rbs//lib/rbs/definition_builder.rb#830 + # source://rbs//lib/rbs/definition_builder.rb#865 def expand_alias1(type_name); end - # source://rbs//lib/rbs/definition_builder.rb#837 + # source://rbs//lib/rbs/definition_builder.rb#872 def expand_alias2(type_name, args); end - # source://rbs//lib/rbs/definition_builder.rb#581 + # source://rbs//lib/rbs/definition_builder.rb#585 def import_methods(definition, module_name, module_methods, interfaces_methods, subst, self_type_methods); end - # source://rbs//lib/rbs/definition_builder.rb#543 + # source://rbs//lib/rbs/definition_builder.rb#547 def insert_variable(type_name, variables, name:, type:, source:); end # Returns the value of attribute instance_cache. @@ -2556,10 +3075,10 @@ class RBS::DefinitionBuilder # source://rbs//lib/rbs/definition_builder.rb#66 def tapp_subst(name, args); end - # source://rbs//lib/rbs/definition_builder.rb#822 + # source://rbs//lib/rbs/definition_builder.rb#857 def try_cache(type_name, cache:); end - # source://rbs//lib/rbs/definition_builder.rb#861 + # source://rbs//lib/rbs/definition_builder.rb#896 def update(env:, except:, ancestor_builder:); end # source://rbs//lib/rbs/definition_builder.rb#437 @@ -2567,16 +3086,16 @@ class RBS::DefinitionBuilder # @raise [NoTypeFoundError] # - # source://rbs//lib/rbs/definition_builder.rb#890 + # source://rbs//lib/rbs/definition_builder.rb#925 def validate_type_name(name, location); end - # source://rbs//lib/rbs/definition_builder.rb#461 + # source://rbs//lib/rbs/definition_builder.rb#465 def validate_type_params(definition, ancestors:, methods:); end - # source://rbs//lib/rbs/definition_builder.rb#879 + # source://rbs//lib/rbs/definition_builder.rb#914 def validate_type_presence(type); end - # source://rbs//lib/rbs/definition_builder.rb#553 + # source://rbs//lib/rbs/definition_builder.rb#557 def validate_variable(var); end end @@ -2592,10 +3111,10 @@ class RBS::DefinitionBuilder::AncestorBuilder # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#151 def env; end - # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#608 + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#611 def fill_ancestor_source(ancestor, name:, source:, &block); end - # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#436 + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#439 def instance_ancestors(type_name, building_ancestors: T.unsafe(nil)); end # Returns the value of attribute instance_ancestors_cache. @@ -2603,7 +3122,7 @@ class RBS::DefinitionBuilder::AncestorBuilder # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#154 def instance_ancestors_cache; end - # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#572 + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#575 def interface_ancestors(type_name, building_ancestors: T.unsafe(nil)); end # Returns the value of attribute interface_ancestors_cache. @@ -2611,7 +3130,7 @@ class RBS::DefinitionBuilder::AncestorBuilder # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#160 def interface_ancestors_cache; end - # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#416 + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#421 def mixin_ancestors(entry, type_name, included_modules:, included_interfaces:, extended_modules:, prepended_modules:, extended_interfaces:); end # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#350 @@ -2641,7 +3160,7 @@ class RBS::DefinitionBuilder::AncestorBuilder # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#156 def one_singleton_ancestors_cache; end - # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#517 + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#520 def singleton_ancestors(type_name, building_ancestors: T.unsafe(nil)); end # Returns the value of attribute singleton_ancestors_cache. @@ -2750,26 +3269,26 @@ class RBS::DefinitionBuilder::MethodBuilder # source://rbs//lib/rbs/definition_builder/method_builder.rb#91 def initialize(env:); end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#194 + # source://rbs//lib/rbs/definition_builder/method_builder.rb#209 def build_alias(methods, type, member:); end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#199 + # source://rbs//lib/rbs/definition_builder/method_builder.rb#214 def build_attribute(methods, type, member:, accessibility:); end # source://rbs//lib/rbs/definition_builder/method_builder.rb#99 def build_instance(type_name); end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#174 + # source://rbs//lib/rbs/definition_builder/method_builder.rb#189 def build_interface(type_name); end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#215 + # source://rbs//lib/rbs/definition_builder/method_builder.rb#230 def build_method(methods, type, member:, accessibility:); end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#145 + # source://rbs//lib/rbs/definition_builder/method_builder.rb#160 def build_singleton(type_name); end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#226 - def each_member_with_accessibility(members, accessibility: T.unsafe(nil)); end + # source://rbs//lib/rbs/definition_builder/method_builder.rb#241 + def each_rbs_member_with_accessibility(members, accessibility: T.unsafe(nil)); end # Returns the value of attribute env. # @@ -2791,7 +3310,7 @@ class RBS::DefinitionBuilder::MethodBuilder # source://rbs//lib/rbs/definition_builder/method_builder.rb#88 def singleton_methods; end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#239 + # source://rbs//lib/rbs/definition_builder/method_builder.rb#254 def update(env:, except:); end end @@ -2897,21 +3416,21 @@ class RBS::Diff def each_diff_methods(kind, before_methods, after_methods); end end -# source://rbs//lib/rbs/errors.rb#418 +# source://rbs//lib/rbs/errors.rb#419 class RBS::DuplicatedDeclarationError < ::RBS::LoadingError # @return [DuplicatedDeclarationError] a new instance of DuplicatedDeclarationError # - # source://rbs//lib/rbs/errors.rb#422 + # source://rbs//lib/rbs/errors.rb#423 def initialize(name, *decls); end # Returns the value of attribute decls. # - # source://rbs//lib/rbs/errors.rb#420 + # source://rbs//lib/rbs/errors.rb#421 def decls; end # Returns the value of attribute name. # - # source://rbs//lib/rbs/errors.rb#419 + # source://rbs//lib/rbs/errors.rb#420 def name; end end @@ -2990,330 +3509,337 @@ end class RBS::Environment # @return [Environment] a new instance of Environment # - # source://rbs//lib/rbs/environment.rb#145 + # source://rbs//lib/rbs/environment.rb#48 def initialize; end - # source://rbs//lib/rbs/environment.rb#470 - def <<(decl); end - - # source://rbs//lib/rbs/environment.rb#807 + # source://rbs//lib/rbs/environment.rb#841 def absolute_type(resolver, map, type, context:); end - # source://rbs//lib/rbs/environment.rb#802 + # source://rbs//lib/rbs/environment.rb#836 def absolute_type_name(resolver, map, type_name, context:); end - # source://rbs//lib/rbs/environment.rb#476 - def add_signature(buffer:, directives:, decls:); end + # source://rbs//lib/rbs/environment.rb#417 + def add_source(source); end - # source://rbs//lib/rbs/environment.rb#539 + # source://rbs//lib/rbs/environment.rb#522 def append_context(context, decl); end - # source://rbs//lib/rbs/environment.rb#818 + # source://rbs//lib/rbs/environment.rb#852 def buffers; end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#218 + # source://rbs//lib/rbs/environment.rb#117 def class_alias?(name); end # Returns the value of attribute class_alias_decls. # - # source://rbs//lib/rbs/environment.rb#12 + # source://rbs//lib/rbs/environment.rb#10 def class_alias_decls; end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#202 + # source://rbs//lib/rbs/environment.rb#101 def class_decl?(name); end # Returns the value of attribute class_decls. # - # source://rbs//lib/rbs/environment.rb#7 + # source://rbs//lib/rbs/environment.rb#5 def class_decls; end - # source://rbs//lib/rbs/environment.rb#226 + # source://rbs//lib/rbs/environment.rb#125 def class_entry(type_name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#198 + # source://rbs//lib/rbs/environment.rb#97 def constant_decl?(name); end # Returns the value of attribute constant_decls. # - # source://rbs//lib/rbs/environment.rb#10 + # source://rbs//lib/rbs/environment.rb#8 def constant_decls; end - # source://rbs//lib/rbs/environment.rb#274 + # source://rbs//lib/rbs/environment.rb#173 def constant_entry(type_name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#194 + # source://rbs//lib/rbs/environment.rb#93 def constant_name?(name); end - # Returns the value of attribute declarations. - # - # source://rbs//lib/rbs/environment.rb#5 + # source://rbs//lib/rbs/environment.rb#14 def declarations; end + # source://rbs//lib/rbs/environment.rb#432 + def each_rbs_source(&block); end + + # source://rbs//lib/rbs/environment.rb#444 + def each_ruby_source(&block); end + # Returns the value of attribute global_decls. # - # source://rbs//lib/rbs/environment.rb#11 + # source://rbs//lib/rbs/environment.rb#9 def global_decls; end - # source://rbs//lib/rbs/environment.rb#373 - def insert_decl(decl, outer:, namespace:); end + # source://rbs//lib/rbs/environment.rb#272 + def insert_rbs_decl(decl, context:, namespace:); end - # source://rbs//lib/rbs/environment.rb#813 + # source://rbs//lib/rbs/environment.rb#369 + def insert_ruby_decl(decl, context:, namespace:); end + + # source://rbs//lib/rbs/environment.rb#847 def inspect; end # Returns the value of attribute interface_decls. # - # source://rbs//lib/rbs/environment.rb#8 + # source://rbs//lib/rbs/environment.rb#6 def interface_decls; end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#176 + # source://rbs//lib/rbs/environment.rb#75 def interface_name?(name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#210 + # source://rbs//lib/rbs/environment.rb#109 def module_alias?(name); end - # source://rbs//lib/rbs/environment.rb#266 + # source://rbs//lib/rbs/environment.rb#165 def module_class_entry(type_name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#206 + # source://rbs//lib/rbs/environment.rb#105 def module_decl?(name); end - # source://rbs//lib/rbs/environment.rb#235 + # source://rbs//lib/rbs/environment.rb#134 def module_entry(type_name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#184 + # source://rbs//lib/rbs/environment.rb#83 def module_name?(name); end - # source://rbs//lib/rbs/environment.rb#332 + # source://rbs//lib/rbs/environment.rb#231 def normalize_module_name(name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#336 + # source://rbs//lib/rbs/environment.rb#235 def normalize_module_name?(name); end - # source://rbs//lib/rbs/environment.rb#328 + # source://rbs//lib/rbs/environment.rb#227 def normalize_type_name(name); end - # source://rbs//lib/rbs/environment.rb#297 + # source://rbs//lib/rbs/environment.rb#196 def normalize_type_name!(name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#278 + # source://rbs//lib/rbs/environment.rb#177 def normalize_type_name?(name); end - # source://rbs//lib/rbs/environment.rb#244 + # source://rbs//lib/rbs/environment.rb#143 def normalized_class_entry(type_name); end - # source://rbs//lib/rbs/environment.rb#270 + # source://rbs//lib/rbs/environment.rb#169 def normalized_module_class_entry(type_name); end - # source://rbs//lib/rbs/environment.rb#255 + # source://rbs//lib/rbs/environment.rb#154 def normalized_module_entry(type_name); end - # source://rbs//lib/rbs/environment.rb#323 + # source://rbs//lib/rbs/environment.rb#222 def normalized_type_name!(name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#310 + # source://rbs//lib/rbs/environment.rb#209 def normalized_type_name?(type_name); end - # source://rbs//lib/rbs/environment.rb#548 - def resolve_declaration(resolver, map, decl, outer:, prefix:); end + # source://rbs//lib/rbs/environment.rb#531 + def resolve_declaration(resolver, map, decl, context:, prefix:); end - # source://rbs//lib/rbs/environment.rb#688 + # source://rbs//lib/rbs/environment.rb#722 def resolve_member(resolver, map, member, context:); end - # source://rbs//lib/rbs/environment.rb#788 + # source://rbs//lib/rbs/environment.rb#822 def resolve_method_type(resolver, map, type, context:); end - # source://rbs//lib/rbs/environment.rb#489 + # source://rbs//lib/rbs/environment.rb#667 + def resolve_ruby_decl(resolver, decl, context:, prefix:); end + + # source://rbs//lib/rbs/environment.rb#708 + def resolve_ruby_member(resolver, member, context:); end + + # source://rbs//lib/rbs/environment.rb#462 def resolve_signature(resolver, table, dirs, decls, only: T.unsafe(nil)); end - # source://rbs//lib/rbs/environment.rb#511 + # source://rbs//lib/rbs/environment.rb#484 def resolve_type_names(only: T.unsafe(nil)); end - # source://rbs//lib/rbs/environment.rb#796 + # source://rbs//lib/rbs/environment.rb#830 def resolve_type_params(resolver, map, params, context:); end - # source://rbs//lib/rbs/environment.rb#533 + # source://rbs//lib/rbs/environment.rb#516 def resolver_context(*nesting); end - # Returns the value of attribute signatures. + # Returns the value of attribute sources. # - # source://rbs//lib/rbs/environment.rb#14 - def signatures; end + # source://rbs//lib/rbs/environment.rb#12 + def sources; end # Returns the value of attribute type_alias_decls. # - # source://rbs//lib/rbs/environment.rb#9 + # source://rbs//lib/rbs/environment.rb#7 def type_alias_decls; end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#180 + # source://rbs//lib/rbs/environment.rb#79 def type_alias_name?(name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#188 + # source://rbs//lib/rbs/environment.rb#87 def type_name?(name); end - # source://rbs//lib/rbs/environment.rb#822 + # source://rbs//lib/rbs/environment.rb#856 def unload(buffers); end - # source://rbs//lib/rbs/environment.rb#483 + # source://rbs//lib/rbs/environment.rb#456 def validate_type_params; end private - # source://rbs//lib/rbs/environment.rb#158 + # source://rbs//lib/rbs/environment.rb#59 def initialize_copy(other); end class << self - # source://rbs//lib/rbs/environment.rb#170 + # source://rbs//lib/rbs/environment.rb#69 def from_loader(loader); end end end -# source://rbs//lib/rbs/environment.rb#130 +# source://rbs//lib/rbs/environment.rb#33 class RBS::Environment::ClassAliasEntry < ::RBS::Environment::SingleEntry; end -# source://rbs//lib/rbs/environment.rb#100 -class RBS::Environment::ClassEntry < ::RBS::Environment::MultiEntry - # source://rbs//lib/rbs/environment.rb#101 - def primary; end -end +# source://rbs//lib/rbs/environment/class_entry.rb#5 +class RBS::Environment::ClassEntry + # @return [ClassEntry] a new instance of ClassEntry + # + # source://rbs//lib/rbs/environment/class_entry.rb#10 + def initialize(name); end -# source://rbs//lib/rbs/environment.rb#139 -class RBS::Environment::ConstantEntry < ::RBS::Environment::SingleEntry; end + # source://rbs//lib/rbs/environment/class_entry.rb#15 + def <<(context_decl); end + + # Returns the value of attribute context_decls. + # + # source://rbs//lib/rbs/environment/class_entry.rb#8 + def context_decls; end -# source://rbs//lib/rbs/environment.rb#16 -module RBS::Environment::ContextUtil - # source://rbs//lib/rbs/environment.rb#17 - def calculate_context(decls); end + # source://rbs//lib/rbs/environment/class_entry.rb#21 + def each_decl(&block); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment/class_entry.rb#31 + def empty?; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/environment/class_entry.rb#6 + def name; end + + # source://rbs//lib/rbs/environment/class_entry.rb#35 + def primary_decl; end + + # source://rbs//lib/rbs/environment/class_entry.rb#47 + def type_params; end + + # source://rbs//lib/rbs/environment/class_entry.rb#52 + def validate_type_params; end end -# source://rbs//lib/rbs/environment.rb#142 +# source://rbs//lib/rbs/environment.rb#42 +class RBS::Environment::ConstantEntry < ::RBS::Environment::SingleEntry; end + +# source://rbs//lib/rbs/environment.rb#45 class RBS::Environment::GlobalEntry < ::RBS::Environment::SingleEntry; end -# source://rbs//lib/rbs/environment.rb#133 +# source://rbs//lib/rbs/environment.rb#36 class RBS::Environment::InterfaceEntry < ::RBS::Environment::SingleEntry; end -# source://rbs//lib/rbs/environment.rb#127 +# source://rbs//lib/rbs/environment.rb#30 class RBS::Environment::ModuleAliasEntry < ::RBS::Environment::SingleEntry; end -# source://rbs//lib/rbs/environment.rb#85 -class RBS::Environment::ModuleEntry < ::RBS::Environment::MultiEntry - # source://rbs//lib/rbs/environment.rb#92 - def primary; end +# source://rbs//lib/rbs/environment/module_entry.rb#5 +class RBS::Environment::ModuleEntry + # @return [ModuleEntry] a new instance of ModuleEntry + # + # source://rbs//lib/rbs/environment/module_entry.rb#10 + def initialize(name); end - # source://rbs//lib/rbs/environment.rb#86 - def self_types; end -end + # source://rbs//lib/rbs/environment/module_entry.rb#15 + def <<(context_decl); end -# source://rbs//lib/rbs/environment.rb#29 -class RBS::Environment::MultiEntry - # @return [MultiEntry] a new instance of MultiEntry + # Returns the value of attribute context_decls. # - # source://rbs//lib/rbs/environment.rb#43 - def initialize(name:); end + # source://rbs//lib/rbs/environment/module_entry.rb#8 + def context_decls; end - # @return [Boolean] - # - # source://rbs//lib/rbs/environment.rb#70 - def compatible_params?(ps1, ps2); end + # source://rbs//lib/rbs/environment/module_entry.rb#20 + def each_decl(&block); end - # Returns the value of attribute decls. + # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#41 - def decls; end - - # source://rbs//lib/rbs/environment.rb#48 - def insert(decl:, outer:); end + # source://rbs//lib/rbs/environment/module_entry.rb#30 + def empty?; end # Returns the value of attribute name. # - # source://rbs//lib/rbs/environment.rb#40 + # source://rbs//lib/rbs/environment/module_entry.rb#6 def name; end - # source://rbs//lib/rbs/environment.rb#80 - def primary; end + # source://rbs//lib/rbs/environment/module_entry.rb#34 + def primary_decl; end - # source://rbs//lib/rbs/environment.rb#76 + # source://rbs//lib/rbs/environment/module_entry.rb#43 + def self_types; end + + # source://rbs//lib/rbs/environment/module_entry.rb#38 def type_params; end - # source://rbs//lib/rbs/environment.rb#53 + # source://rbs//lib/rbs/environment/module_entry.rb#49 def validate_type_params; end end -# source://rbs//lib/rbs/environment.rb#30 -class RBS::Environment::MultiEntry::D < ::Struct - include ::RBS::Environment::ContextUtil - - # source://rbs//lib/rbs/environment.rb#35 - def context; end - - def decl; end - def decl=(_); end - def outer; end - def outer=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# source://rbs//lib/rbs/environment.rb#109 +# source://rbs//lib/rbs/environment.rb#18 class RBS::Environment::SingleEntry - include ::RBS::Environment::ContextUtil - # @return [SingleEntry] a new instance of SingleEntry # - # source://rbs//lib/rbs/environment.rb#114 - def initialize(name:, decl:, outer:); end + # source://rbs//lib/rbs/environment.rb#23 + def initialize(name:, decl:, context:); end - # source://rbs//lib/rbs/environment.rb#122 + # Returns the value of attribute context. + # + # source://rbs//lib/rbs/environment.rb#20 def context; end # Returns the value of attribute decl. # - # source://rbs//lib/rbs/environment.rb#112 + # source://rbs//lib/rbs/environment.rb#21 def decl; end # Returns the value of attribute name. # - # source://rbs//lib/rbs/environment.rb#110 + # source://rbs//lib/rbs/environment.rb#19 def name; end - - # Returns the value of attribute outer. - # - # source://rbs//lib/rbs/environment.rb#111 - def outer; end end -# source://rbs//lib/rbs/environment.rb#136 +# source://rbs//lib/rbs/environment.rb#39 class RBS::Environment::TypeAliasEntry < ::RBS::Environment::SingleEntry; end # source://rbs//lib/rbs/environment/use_map.rb#5 @@ -3478,42 +4004,78 @@ end # source://rbs//lib/rbs/environment_walker.rb#5 class RBS::EnvironmentWalker::InstanceNode < ::Struct + # source://rbs//lib/rbs/environment_walker.rb#5 def type_name; end + + # source://rbs//lib/rbs/environment_walker.rb#5 def type_name=(_); end class << self + # source://rbs//lib/rbs/environment_walker.rb#5 def [](*_arg0); end + + # source://rbs//lib/rbs/environment_walker.rb#5 def inspect; end + + # source://rbs//lib/rbs/environment_walker.rb#5 def keyword_init?; end + + # source://rbs//lib/rbs/environment_walker.rb#5 def members; end + + # source://rbs//lib/rbs/environment_walker.rb#5 def new(*_arg0); end end end # source://rbs//lib/rbs/environment_walker.rb#6 class RBS::EnvironmentWalker::SingletonNode < ::Struct + # source://rbs//lib/rbs/environment_walker.rb#6 def type_name; end + + # source://rbs//lib/rbs/environment_walker.rb#6 def type_name=(_); end class << self + # source://rbs//lib/rbs/environment_walker.rb#6 def [](*_arg0); end + + # source://rbs//lib/rbs/environment_walker.rb#6 def inspect; end + + # source://rbs//lib/rbs/environment_walker.rb#6 def keyword_init?; end + + # source://rbs//lib/rbs/environment_walker.rb#6 def members; end + + # source://rbs//lib/rbs/environment_walker.rb#6 def new(*_arg0); end end end # source://rbs//lib/rbs/environment_walker.rb#7 class RBS::EnvironmentWalker::TypeNameNode < ::Struct + # source://rbs//lib/rbs/environment_walker.rb#7 def type_name; end + + # source://rbs//lib/rbs/environment_walker.rb#7 def type_name=(_); end class << self + # source://rbs//lib/rbs/environment_walker.rb#7 def [](*_arg0); end + + # source://rbs//lib/rbs/environment_walker.rb#7 def inspect; end + + # source://rbs//lib/rbs/environment_walker.rb#7 def keyword_init?; end + + # source://rbs//lib/rbs/environment_walker.rb#7 def members; end + + # source://rbs//lib/rbs/environment_walker.rb#7 def new(*_arg0); end end end @@ -3537,7 +4099,7 @@ class RBS::GenericParameterMismatchError < ::RBS::LoadingError # @return [GenericParameterMismatchError] a new instance of GenericParameterMismatchError # # source://rbs//lib/rbs/errors.rb#411 - def initialize(name:, decl:); end + def initialize(name:, decl:, location: T.unsafe(nil)); end # Returns the value of attribute decl. # @@ -3550,21 +4112,21 @@ class RBS::GenericParameterMismatchError < ::RBS::LoadingError def name; end end -# source://rbs//lib/rbs/errors.rb#553 +# source://rbs//lib/rbs/errors.rb#554 class RBS::InconsistentClassModuleAliasError < ::RBS::BaseError include ::RBS::DetailedMessageable # @return [InconsistentClassModuleAliasError] a new instance of InconsistentClassModuleAliasError # - # source://rbs//lib/rbs/errors.rb#558 + # source://rbs//lib/rbs/errors.rb#559 def initialize(entry); end # Returns the value of attribute alias_entry. # - # source://rbs//lib/rbs/errors.rb#556 + # source://rbs//lib/rbs/errors.rb#557 def alias_entry; end - # source://rbs//lib/rbs/errors.rb#572 + # source://rbs//lib/rbs/errors.rb#573 def location; end end @@ -3591,6 +4153,217 @@ class RBS::InheritModuleError < ::RBS::DefinitionError end end +# source://rbs//lib/rbs/inline_parser.rb#4 +class RBS::InlineParser + class << self + # source://rbs//lib/rbs/inline_parser.rb#34 + def parse(buffer, prism); end + end +end + +# source://rbs//lib/rbs/inline_parser/comment_association.rb#5 +class RBS::InlineParser::CommentAssociation + # @return [CommentAssociation] a new instance of CommentAssociation + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#8 + def initialize(blocks); end + + # Returns the value of attribute associated_blocks. + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#6 + def associated_blocks; end + + # Returns the value of attribute blocks. + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#6 + def blocks; end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#84 + def each_enclosed_block(node); end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#104 + def each_unassociated_block; end + + # Returns the value of attribute end_line_map. + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#6 + def end_line_map; end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#47 + def leading_block(node); end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#55 + def leading_block!(node); end + + # Returns the value of attribute start_line_map. + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#6 + def start_line_map; end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#63 + def trailing_block(node); end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#76 + def trailing_block!(node); end + + class << self + # source://rbs//lib/rbs/inline_parser/comment_association.rb#24 + def build(buffer, result); end + end +end + +# source://rbs//lib/rbs/inline_parser/comment_association.rb#29 +class RBS::InlineParser::CommentAssociation::Reference + # @return [Reference] a new instance of Reference + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#32 + def initialize(block, association); end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#37 + def associate!; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#42 + def associated?; end + + # Returns the value of attribute block. + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#30 + def block; end +end + +# source://rbs//lib/rbs/inline_parser.rb#16 +module RBS::InlineParser::Diagnostic; end + +# source://rbs//lib/rbs/inline_parser.rb#31 +class RBS::InlineParser::Diagnostic::AnnotationSyntaxError < ::RBS::InlineParser::Diagnostic::Base; end + +# source://rbs//lib/rbs/inline_parser.rb#17 +class RBS::InlineParser::Diagnostic::Base + # @return [Base] a new instance of Base + # + # source://rbs//lib/rbs/inline_parser.rb#20 + def initialize(location, message); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/inline_parser.rb#18 + def location; end + + # Returns the value of attribute message. + # + # source://rbs//lib/rbs/inline_parser.rb#18 + def message; end +end + +# source://rbs//lib/rbs/inline_parser.rb#27 +class RBS::InlineParser::Diagnostic::NonConstantClassName < ::RBS::InlineParser::Diagnostic::Base; end + +# source://rbs//lib/rbs/inline_parser.rb#28 +class RBS::InlineParser::Diagnostic::NonConstantModuleName < ::RBS::InlineParser::Diagnostic::Base; end + +# source://rbs//lib/rbs/inline_parser.rb#26 +class RBS::InlineParser::Diagnostic::NotImplementedYet < ::RBS::InlineParser::Diagnostic::Base; end + +# source://rbs//lib/rbs/inline_parser.rb#29 +class RBS::InlineParser::Diagnostic::TopLevelMethodDefinition < ::RBS::InlineParser::Diagnostic::Base; end + +# source://rbs//lib/rbs/inline_parser.rb#30 +class RBS::InlineParser::Diagnostic::UnusedInlineAnnotation < ::RBS::InlineParser::Diagnostic::Base; end + +# source://rbs//lib/rbs/inline_parser.rb#42 +class RBS::InlineParser::Parser < ::Prism::Visitor + include ::RBS::AST::Ruby::Helpers::ConstantHelper + include ::RBS::AST::Ruby::Helpers::LocationHelper + + # @return [Parser] a new instance of Parser + # + # source://rbs//lib/rbs/inline_parser.rb#48 + def initialize(result); end + + # source://rbs//lib/rbs/inline_parser.rb#54 + def buffer; end + + # Returns the value of attribute comments. + # + # source://rbs//lib/rbs/inline_parser.rb#43 + def comments; end + + # source://rbs//lib/rbs/inline_parser.rb#58 + def current_module; end + + # source://rbs//lib/rbs/inline_parser.rb#62 + def current_module!; end + + # source://rbs//lib/rbs/inline_parser.rb#66 + def diagnostics; end + + # source://rbs//lib/rbs/inline_parser.rb#171 + def insert_declaration(decl); end + + # Returns the value of attribute module_nesting. + # + # source://rbs//lib/rbs/inline_parser.rb#43 + def module_nesting; end + + # source://rbs//lib/rbs/inline_parser.rb#70 + def push_module_nesting(mod); end + + # source://rbs//lib/rbs/inline_parser.rb#179 + def report_unused_annotation(*annotations); end + + # source://rbs//lib/rbs/inline_parser.rb#194 + def report_unused_block(block); end + + # Returns the value of attribute result. + # + # source://rbs//lib/rbs/inline_parser.rb#43 + def result; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/inline_parser.rb#77 + def skip_node?(node); end + + # source://rbs//lib/rbs/inline_parser.rb#88 + def visit_class_node(node); end + + # source://rbs//lib/rbs/inline_parser.rb#132 + def visit_def_node(node); end + + # source://rbs//lib/rbs/inline_parser.rb#110 + def visit_module_node(node); end +end + +# source://rbs//lib/rbs/inline_parser.rb#5 +class RBS::InlineParser::Result + # @return [Result] a new instance of Result + # + # source://rbs//lib/rbs/inline_parser.rb#8 + def initialize(buffer, prism); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/inline_parser.rb#6 + def buffer; end + + # Returns the value of attribute declarations. + # + # source://rbs//lib/rbs/inline_parser.rb#6 + def declarations; end + + # Returns the value of attribute diagnostics. + # + # source://rbs//lib/rbs/inline_parser.rb#6 + def diagnostics; end + + # Returns the value of attribute prism_result. + # + # source://rbs//lib/rbs/inline_parser.rb#6 + def prism_result; end +end + # source://rbs//lib/rbs/errors.rb#341 class RBS::InstanceVariableDuplicationError < ::RBS::VariableDuplicationError # source://rbs//lib/rbs/errors.rb#342 @@ -3671,28 +4444,28 @@ class RBS::InvalidTypeApplicationError < ::RBS::DefinitionError end end -# source://rbs//lib/rbs/errors.rb#431 +# source://rbs//lib/rbs/errors.rb#432 class RBS::InvalidVarianceAnnotationError < ::RBS::DefinitionError include ::RBS::DetailedMessageable # @return [InvalidVarianceAnnotationError] a new instance of InvalidVarianceAnnotationError # - # source://rbs//lib/rbs/errors.rb#438 + # source://rbs//lib/rbs/errors.rb#439 def initialize(type_name:, param:, location:); end # Returns the value of attribute location. # - # source://rbs//lib/rbs/errors.rb#436 + # source://rbs//lib/rbs/errors.rb#437 def location; end # Returns the value of attribute param. # - # source://rbs//lib/rbs/errors.rb#435 + # source://rbs//lib/rbs/errors.rb#436 def param; end # Returns the value of attribute type_name. # - # source://rbs//lib/rbs/errors.rb#434 + # source://rbs//lib/rbs/errors.rb#435 def type_name; end end @@ -3701,42 +4474,64 @@ class RBS::LoadingError < ::RBS::BaseError; end # source://rbs//lib/rbs/location_aux.rb#4 class RBS::Location + # source://rbs//lib/rbs.rb#72 def initialize(_arg0, _arg1, _arg2); end - # source://rbs//lib/rbs/location_aux.rb#71 + # source://rbs//lib/rbs/location_aux.rb#79 def ==(other); end + # source://rbs//lib/rbs.rb#72 def [](_arg0); end + + # source://rbs//lib/rbs.rb#72 def _add_optional_child(_arg0, _arg1, _arg2); end + + # source://rbs//lib/rbs.rb#72 def _add_optional_no_child(_arg0); end + + # source://rbs//lib/rbs.rb#72 def _add_required_child(_arg0, _arg1, _arg2); end + + # source://rbs//lib/rbs.rb#72 + def _end_pos; end + + # source://rbs//lib/rbs.rb#72 def _optional_keys; end + + # source://rbs//lib/rbs.rb#72 def _required_keys; end - # source://rbs//lib/rbs/location_aux.rb#102 + # source://rbs//lib/rbs.rb#72 + def _start_pos; end + + # source://rbs//lib/rbs/location_aux.rb#110 def add_optional_child(name, range); end - # source://rbs//lib/rbs/location_aux.rb#98 + # source://rbs//lib/rbs/location_aux.rb#106 def add_required_child(name, range); end + # source://rbs//lib/rbs/location_aux.rb#27 def aref(_arg0); end + + # source://rbs//lib/rbs.rb#72 def buffer; end - # source://rbs//lib/rbs/location_aux.rb#110 + # source://rbs//lib/rbs/location_aux.rb#118 def each_optional_key(&block); end - # source://rbs//lib/rbs/location_aux.rb#118 + # source://rbs//lib/rbs/location_aux.rb#126 def each_required_key(&block); end - # source://rbs//lib/rbs/location_aux.rb#47 + # source://rbs//lib/rbs/location_aux.rb#55 def end_column; end - # source://rbs//lib/rbs/location_aux.rb#43 + # source://rbs//lib/rbs/location_aux.rb#51 def end_line; end - # source://rbs//lib/rbs/location_aux.rb#55 + # source://rbs//lib/rbs/location_aux.rb#63 def end_loc; end + # source://rbs//lib/rbs/location_aux.rb#35 def end_pos; end # source://rbs//lib/rbs/location_aux.rb#5 @@ -3744,54 +4539,62 @@ class RBS::Location # @return [Boolean] # - # source://rbs//lib/rbs/location_aux.rb#126 + # source://rbs//lib/rbs/location_aux.rb#134 def key?(name); end - # source://rbs//lib/rbs/location_aux.rb#31 + # source://rbs//lib/rbs/location_aux.rb#146 + def local_location; end + + # source://rbs//lib/rbs/location_aux.rb#166 + def local_source; end + + # source://rbs//lib/rbs/location_aux.rb#39 def name; end # @return [Boolean] # - # source://rbs//lib/rbs/location_aux.rb#130 + # source://rbs//lib/rbs/location_aux.rb#138 def optional_key?(name); end - # source://rbs//lib/rbs/location_aux.rb#59 + # source://rbs//lib/rbs/location_aux.rb#67 def range; end # @return [Boolean] # - # source://rbs//lib/rbs/location_aux.rb#134 + # source://rbs//lib/rbs/location_aux.rb#142 def required_key?(name); end - # source://rbs//lib/rbs/location_aux.rb#63 + # source://rbs//lib/rbs/location_aux.rb#71 def source; end - # source://rbs//lib/rbs/location_aux.rb#39 + # source://rbs//lib/rbs/location_aux.rb#47 def start_column; end - # source://rbs//lib/rbs/location_aux.rb#35 + # source://rbs//lib/rbs/location_aux.rb#43 def start_line; end - # source://rbs//lib/rbs/location_aux.rb#51 + # source://rbs//lib/rbs/location_aux.rb#59 def start_loc; end + # source://rbs//lib/rbs/location_aux.rb#31 def start_pos; end - # source://rbs//lib/rbs/location_aux.rb#78 + # source://rbs//lib/rbs/location_aux.rb#86 def to_json(state = T.unsafe(nil)); end - # source://rbs//lib/rbs/location_aux.rb#67 + # source://rbs//lib/rbs/location_aux.rb#75 def to_s; end private + # source://rbs//lib/rbs.rb#72 def initialize_copy(_arg0); end class << self # source://rbs//lib/rbs/location_aux.rb#16 def new(buffer_ = T.unsafe(nil), start_pos_ = T.unsafe(nil), end_pos_ = T.unsafe(nil), buffer: T.unsafe(nil), start_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end - # source://rbs//lib/rbs/location_aux.rb#94 + # source://rbs//lib/rbs/location_aux.rb#102 def to_string(location, default: T.unsafe(nil)); end end end @@ -3931,35 +4734,35 @@ class RBS::MethodType def with_nonreturn_void?; end end -# source://rbs//lib/rbs/errors.rb#467 +# source://rbs//lib/rbs/errors.rb#468 class RBS::MixinClassError < ::RBS::DefinitionError include ::RBS::DetailedMessageable # @return [MixinClassError] a new instance of MixinClassError # - # source://rbs//lib/rbs/errors.rb#473 + # source://rbs//lib/rbs/errors.rb#474 def initialize(type_name:, member:); end - # source://rbs//lib/rbs/errors.rb#480 + # source://rbs//lib/rbs/errors.rb#481 def location; end # Returns the value of attribute member. # - # source://rbs//lib/rbs/errors.rb#471 + # source://rbs//lib/rbs/errors.rb#472 def member; end # Returns the value of attribute type_name. # - # source://rbs//lib/rbs/errors.rb#470 + # source://rbs//lib/rbs/errors.rb#471 def type_name; end private - # source://rbs//lib/rbs/errors.rb#492 + # source://rbs//lib/rbs/errors.rb#493 def mixin_name; end class << self - # source://rbs//lib/rbs/errors.rb#484 + # source://rbs//lib/rbs/errors.rb#485 def check!(type_name:, env:, member:); end end end @@ -3996,7 +4799,7 @@ class RBS::Namespace # source://rbs//lib/rbs/namespace.rb#55 def empty?; end - # source://rbs//lib/rbs/namespace.rb#59 + # source://rbs//lib/rbs/namespace.rb#63 def eql?(other); end # source://rbs//lib/rbs/namespace.rb#65 @@ -4140,43 +4943,65 @@ class RBS::NoTypeFoundError < ::RBS::DefinitionError end end -# source://rbs//lib/rbs/errors.rb#524 +# source://rbs//lib/rbs/errors.rb#525 class RBS::NonregularTypeAliasError < ::RBS::BaseError include ::RBS::DetailedMessageable # @return [NonregularTypeAliasError] a new instance of NonregularTypeAliasError # - # source://rbs//lib/rbs/errors.rb#530 + # source://rbs//lib/rbs/errors.rb#531 def initialize(diagnostic:, location:); end # Returns the value of attribute diagnostic. # - # source://rbs//lib/rbs/errors.rb#527 + # source://rbs//lib/rbs/errors.rb#528 def diagnostic; end # Returns the value of attribute location. # - # source://rbs//lib/rbs/errors.rb#528 + # source://rbs//lib/rbs/errors.rb#529 def location; end end # source://rbs//lib/rbs/parser/lex_result.rb#4 class RBS::Parser class << self + # source://rbs//lib/rbs.rb#72 def _lex(_arg0, _arg1); end + + # source://rbs//lib/rbs.rb#72 + def _parse_inline_leading_annotation(_arg0, _arg1, _arg2, _arg3); end + + # source://rbs//lib/rbs.rb#72 + def _parse_inline_trailing_annotation(_arg0, _arg1, _arg2, _arg3); end + + # source://rbs//lib/rbs.rb#72 def _parse_method_type(_arg0, _arg1, _arg2, _arg3, _arg4); end + + # source://rbs//lib/rbs.rb#72 def _parse_signature(_arg0, _arg1, _arg2); end + + # source://rbs//lib/rbs.rb#72 def _parse_type(_arg0, _arg1, _arg2, _arg3, _arg4); end - # source://rbs//lib/rbs/parser_aux.rb#71 + # source://rbs//lib/rbs.rb#72 + def _parse_type_params(_arg0, _arg1, _arg2, _arg3); end + + # source://rbs//lib/rbs/parser_aux.rb#76 def buffer(source); end - # source://rbs//lib/rbs/parser_aux.rb#62 + # source://rbs//lib/rbs/parser_aux.rb#67 def lex(source); end - # source://rbs//lib/rbs/parser_aux.rb#38 + # source://rbs//lib/rbs/parser_aux.rb#43 def magic_comment(buf); end + # source://rbs//lib/rbs/parser_aux.rb#119 + def parse_inline_leading_annotation(source, range, variables: T.unsafe(nil)); end + + # source://rbs//lib/rbs/parser_aux.rb#124 + def parse_inline_trailing_annotation(source, range, variables: T.unsafe(nil)); end + # source://rbs//lib/rbs/parser_aux.rb#13 def parse_method_type(source, range: T.unsafe(nil), variables: T.unsafe(nil), require_eof: T.unsafe(nil)); end @@ -4185,10 +5010,13 @@ class RBS::Parser # source://rbs//lib/rbs/parser_aux.rb#8 def parse_type(source, range: T.unsafe(nil), variables: T.unsafe(nil), require_eof: T.unsafe(nil)); end + + # source://rbs//lib/rbs/parser_aux.rb#38 + def parse_type_params(source, module_type_params: T.unsafe(nil)); end end end -# source://rbs//lib/rbs/parser_aux.rb#80 +# source://rbs//lib/rbs/parser_aux.rb#85 RBS::Parser::KEYWORDS = T.let(T.unsafe(nil), Hash) # source://rbs//lib/rbs/parser/lex_result.rb#5 @@ -4374,7 +5202,7 @@ class RBS::Prototype::RB # backward compatible # - # source://rbs//lib/rbs/prototype/rb.rb#719 + # source://rbs//lib/rbs/prototype/rb.rb#762 def node_type(node, default: T.unsafe(nil)); end # source://rbs//lib/rbs/prototype/rb.rb#719 @@ -4661,7 +5489,6 @@ class RBS::Prototype::Runtime::DataGenerator < ::RBS::Prototype::Runtime::ValueO def add_decl_members(decl); end # def self.new: (untyped foo, untyped bar) -> instance - # | (foo: untyped, bar: untyped) -> instance # # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#237 def build_s_new; end @@ -4729,7 +5556,6 @@ class RBS::Prototype::Runtime::StructGenerator < ::RBS::Prototype::Runtime::Valu def build_s_keyword_init_p; end # def self.new: (?untyped foo, ?untyped bar) -> instance - # | (?foo: untyped, ?bar: untyped) -> instance # # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#117 def build_s_new; end @@ -4883,26 +5709,26 @@ class RBS::RDocPlugin::Parser def fully_qualified_name(outer_name:, decl:); end end -# source://rbs//lib/rbs/errors.rb#447 +# source://rbs//lib/rbs/errors.rb#448 class RBS::RecursiveAliasDefinitionError < ::RBS::DefinitionError include ::RBS::DetailedMessageable # @return [RecursiveAliasDefinitionError] a new instance of RecursiveAliasDefinitionError # - # source://rbs//lib/rbs/errors.rb#453 + # source://rbs//lib/rbs/errors.rb#454 def initialize(type:, defs:); end # Returns the value of attribute defs. # - # source://rbs//lib/rbs/errors.rb#451 + # source://rbs//lib/rbs/errors.rb#452 def defs; end - # source://rbs//lib/rbs/errors.rb#460 + # source://rbs//lib/rbs/errors.rb#461 def location; end # Returns the value of attribute type. # - # source://rbs//lib/rbs/errors.rb#450 + # source://rbs//lib/rbs/errors.rb#451 def type; end end @@ -4929,26 +5755,26 @@ class RBS::RecursiveAncestorError < ::RBS::DefinitionError end end -# source://rbs//lib/rbs/errors.rb#506 +# source://rbs//lib/rbs/errors.rb#507 class RBS::RecursiveTypeAliasError < ::RBS::BaseError include ::RBS::DetailedMessageable # @return [RecursiveTypeAliasError] a new instance of RecursiveTypeAliasError # - # source://rbs//lib/rbs/errors.rb#512 + # source://rbs//lib/rbs/errors.rb#513 def initialize(alias_names:, location:); end # Returns the value of attribute alias_names. # - # source://rbs//lib/rbs/errors.rb#509 + # source://rbs//lib/rbs/errors.rb#510 def alias_names; end # Returns the value of attribute location. # - # source://rbs//lib/rbs/errors.rb#510 + # source://rbs//lib/rbs/errors.rb#511 def location; end - # source://rbs//lib/rbs/errors.rb#519 + # source://rbs//lib/rbs/errors.rb#520 def name; end end @@ -5033,18 +5859,38 @@ end # source://rbs//lib/rbs/repository.rb#69 class RBS::Repository::VersionPath < ::Struct + # source://rbs//lib/rbs/repository.rb#69 def gem; end + + # source://rbs//lib/rbs/repository.rb#69 def gem=(_); end + + # source://rbs//lib/rbs/repository.rb#69 def path; end + + # source://rbs//lib/rbs/repository.rb#69 def path=(_); end + + # source://rbs//lib/rbs/repository.rb#69 def version; end + + # source://rbs//lib/rbs/repository.rb#69 def version=(_); end class << self + # source://rbs//lib/rbs/repository.rb#69 def [](*_arg0); end + + # source://rbs//lib/rbs/repository.rb#69 def inspect; end + + # source://rbs//lib/rbs/repository.rb#69 def keyword_init?; end + + # source://rbs//lib/rbs/repository.rb#69 def members; end + + # source://rbs//lib/rbs/repository.rb#69 def new(*_arg0); end end end @@ -5182,6 +6028,72 @@ class RBS::Resolver::TypeNameResolver def try_cache(query); end end +# source://rbs//lib/rbs/source.rb#4 +module RBS::Source; end + +# source://rbs//lib/rbs/source.rb#5 +class RBS::Source::RBS + # @return [RBS] a new instance of RBS + # + # source://rbs//lib/rbs/source.rb#8 + def initialize(buffer, directives, decls); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/source.rb#6 + def buffer; end + + # Returns the value of attribute declarations. + # + # source://rbs//lib/rbs/source.rb#6 + def declarations; end + + # Returns the value of attribute directives. + # + # source://rbs//lib/rbs/source.rb#6 + def directives; end + + # source://rbs//lib/rbs/source.rb#25 + def each_declaration_type_name(names, decl, &block); end + + # source://rbs//lib/rbs/source.rb#14 + def each_type_name(&block); end +end + +# source://rbs//lib/rbs/source.rb#52 +class RBS::Source::Ruby + # @return [Ruby] a new instance of Ruby + # + # source://rbs//lib/rbs/source.rb#58 + def initialize(buffer, prism, declarations, diagnostics); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/source.rb#53 + def buffer; end + + # Returns the value of attribute declarations. + # + # source://rbs//lib/rbs/source.rb#55 + def declarations; end + + # Returns the value of attribute diagnostics. + # + # source://rbs//lib/rbs/source.rb#56 + def diagnostics; end + + # source://rbs//lib/rbs/source.rb#76 + def each_declaration_type_name(names, decl, &block); end + + # source://rbs//lib/rbs/source.rb#65 + def each_type_name(&block); end + + # Returns the value of attribute prism_result. + # + # source://rbs//lib/rbs/source.rb#54 + def prism_result; end +end + # source://rbs//lib/rbs/substitution.rb#4 class RBS::Substitution # @return [Substitution] a new instance of Substitution @@ -5192,7 +6104,7 @@ class RBS::Substitution # source://rbs//lib/rbs/substitution.rb#66 def +(other); end - # source://rbs//lib/rbs/substitution.rb#37 + # source://rbs//lib/rbs/substitution.rb#53 def [](ty); end # source://rbs//lib/rbs/substitution.rb#16 @@ -5244,12 +6156,12 @@ class RBS::Subtractor private - # source://rbs//lib/rbs/subtractor.rb#177 + # source://rbs//lib/rbs/subtractor.rb#178 def absolute_typename(name, context:); end # @return [Boolean] # - # source://rbs//lib/rbs/subtractor.rb#160 + # source://rbs//lib/rbs/subtractor.rb#161 def access_modifier?(decl); end # @return [Boolean] @@ -5263,7 +6175,7 @@ class RBS::Subtractor # source://rbs//lib/rbs/subtractor.rb#48 def filter_members(decl, context:); end - # source://rbs//lib/rbs/subtractor.rb#148 + # source://rbs//lib/rbs/subtractor.rb#149 def filter_redundant_access_modifiers(decls); end # @return [Boolean] @@ -5283,13 +6195,13 @@ class RBS::Subtractor # @return [Boolean] # - # source://rbs//lib/rbs/subtractor.rb#137 + # source://rbs//lib/rbs/subtractor.rb#138 def mixin_exist?(owner, mixin, context:); end - # source://rbs//lib/rbs/subtractor.rb#186 + # source://rbs//lib/rbs/subtractor.rb#187 def typename_candidates(name, context:); end - # source://rbs//lib/rbs/subtractor.rb#164 + # source://rbs//lib/rbs/subtractor.rb#165 def update_decl(decl, members:); end end @@ -5469,7 +6381,7 @@ class RBS::TypeName # source://rbs//lib/rbs/type_name.rb#47 def class?; end - # source://rbs//lib/rbs/type_name.rb#25 + # source://rbs//lib/rbs/type_name.rb#29 def eql?(other); end # source://rbs//lib/rbs/type_name.rb#31 @@ -5519,27 +6431,27 @@ class RBS::TypeName end end -# source://rbs//lib/rbs/errors.rb#604 +# source://rbs//lib/rbs/errors.rb#605 class RBS::TypeParamDefaultReferenceError < ::RBS::DefinitionError include ::RBS::DetailedMessageable # @return [TypeParamDefaultReferenceError] a new instance of TypeParamDefaultReferenceError # - # source://rbs//lib/rbs/errors.rb#610 + # source://rbs//lib/rbs/errors.rb#611 def initialize(type_param, location:); end # Returns the value of attribute location. # - # source://rbs//lib/rbs/errors.rb#608 + # source://rbs//lib/rbs/errors.rb#609 def location; end # Returns the value of attribute type_param. # - # source://rbs//lib/rbs/errors.rb#607 + # source://rbs//lib/rbs/errors.rb#608 def type_param; end class << self - # source://rbs//lib/rbs/errors.rb#616 + # source://rbs//lib/rbs/errors.rb#617 def check!(type_params); end end end @@ -5587,7 +6499,7 @@ module RBS::Types::Application # source://rbs//lib/rbs/types.rb#284 def each_type(&block); end - # source://rbs//lib/rbs/types.rb#258 + # source://rbs//lib/rbs/types.rb#262 def eql?(other); end # source://rbs//lib/rbs/types.rb#268 @@ -5649,7 +6561,7 @@ class RBS::Types::Bases::Base # source://rbs//lib/rbs/types.rb#49 def ==(other); end - # source://rbs//lib/rbs/types.rb#49 + # source://rbs//lib/rbs/types.rb#57 def eql?(other); end # @return [Boolean] @@ -5713,13 +6625,18 @@ class RBS::Types::Bases::Void < ::RBS::Types::Bases::Base; end class RBS::Types::Block # @return [Block] a new instance of Block # - # source://rbs//lib/rbs/types.rb#1343 - def initialize(type:, required:, self_type: T.unsafe(nil)); end + # source://rbs//lib/rbs/types.rb#1344 + def initialize(type:, required:, location: T.unsafe(nil), self_type: T.unsafe(nil)); end - # source://rbs//lib/rbs/types.rb#1349 + # source://rbs//lib/rbs/types.rb#1351 def ==(other); end - # source://rbs//lib/rbs/types.rb#1374 + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#1342 + def location; end + + # source://rbs//lib/rbs/types.rb#1376 def map_type(&block); end # Returns the value of attribute required. @@ -5732,10 +6649,10 @@ class RBS::Types::Block # source://rbs//lib/rbs/types.rb#1341 def self_type; end - # source://rbs//lib/rbs/types.rb#1364 + # source://rbs//lib/rbs/types.rb#1366 def sub(s); end - # source://rbs//lib/rbs/types.rb#1356 + # source://rbs//lib/rbs/types.rb#1358 def to_json(state = T.unsafe(nil)); end # Returns the value of attribute type. @@ -5785,7 +6702,7 @@ class RBS::Types::ClassSingleton # source://rbs//lib/rbs/types.rb#211 def ==(other); end - # source://rbs//lib/rbs/types.rb#211 + # source://rbs//lib/rbs/types.rb#215 def eql?(other); end # @return [Boolean] @@ -5865,7 +6782,7 @@ class RBS::Types::Function # source://rbs//lib/rbs/types.rb#1153 def empty?; end - # source://rbs//lib/rbs/types.rb#972 + # source://rbs//lib/rbs/types.rb#984 def eql?(other); end # source://rbs//lib/rbs/types.rb#998 @@ -5977,7 +6894,7 @@ class RBS::Types::Function::Param # source://rbs//lib/rbs/types.rb#917 def ==(other); end - # source://rbs//lib/rbs/types.rb#917 + # source://rbs//lib/rbs/types.rb#921 def eql?(other); end # source://rbs//lib/rbs/types.rb#923 @@ -6048,7 +6965,7 @@ class RBS::Types::Intersection # source://rbs//lib/rbs/types.rb#869 def each_type(&block); end - # source://rbs//lib/rbs/types.rb#831 + # source://rbs//lib/rbs/types.rb#835 def eql?(other); end # source://rbs//lib/rbs/types.rb#841 @@ -6098,7 +7015,7 @@ class RBS::Types::Intersection def with_nonreturn_void?; end end -# source://rbs//lib/rbs/types.rb#1518 +# source://rbs//lib/rbs/types.rb#1520 class RBS::Types::Literal include ::RBS::Types::NoFreeVariables include ::RBS::Types::NoSubst @@ -6107,56 +7024,56 @@ class RBS::Types::Literal # @return [Literal] a new instance of Literal # - # source://rbs//lib/rbs/types.rb#1522 + # source://rbs//lib/rbs/types.rb#1524 def initialize(literal:, location:); end - # source://rbs//lib/rbs/types.rb#1527 + # source://rbs//lib/rbs/types.rb#1529 def ==(other); end - # source://rbs//lib/rbs/types.rb#1527 + # source://rbs//lib/rbs/types.rb#1533 def eql?(other); end # @return [Boolean] # - # source://rbs//lib/rbs/types.rb#1554 + # source://rbs//lib/rbs/types.rb#1556 def has_classish_type?; end # @return [Boolean] # - # source://rbs//lib/rbs/types.rb#1550 + # source://rbs//lib/rbs/types.rb#1552 def has_self_type?; end - # source://rbs//lib/rbs/types.rb#1533 + # source://rbs//lib/rbs/types.rb#1535 def hash; end # Returns the value of attribute literal. # - # source://rbs//lib/rbs/types.rb#1519 + # source://rbs//lib/rbs/types.rb#1521 def literal; end # Returns the value of attribute location. # - # source://rbs//lib/rbs/types.rb#1520 + # source://rbs//lib/rbs/types.rb#1522 def location; end - # source://rbs//lib/rbs/types.rb#1542 + # source://rbs//lib/rbs/types.rb#1544 def to_json(state = T.unsafe(nil)); end - # source://rbs//lib/rbs/types.rb#1546 + # source://rbs//lib/rbs/types.rb#1548 def to_s(level = T.unsafe(nil)); end # @return [Boolean] # - # source://rbs//lib/rbs/types.rb#1558 + # source://rbs//lib/rbs/types.rb#1560 def with_nonreturn_void?; end class << self - # source://rbs//lib/rbs/types.rb#1578 + # source://rbs//lib/rbs/types.rb#1580 def unescape_string(string, is_double_quote); end end end -# source://rbs//lib/rbs/types.rb#1562 +# source://rbs//lib/rbs/types.rb#1564 RBS::Types::Literal::TABLE = T.let(T.unsafe(nil), Hash) # source://rbs//lib/rbs/types.rb#5 @@ -6190,7 +7107,7 @@ class RBS::Types::Optional # source://rbs//lib/rbs/types.rb#692 def each_type; end - # source://rbs//lib/rbs/types.rb#654 + # source://rbs//lib/rbs/types.rb#658 def eql?(other); end # source://rbs//lib/rbs/types.rb#664 @@ -6240,76 +7157,76 @@ class RBS::Types::Optional def with_nonreturn_void?; end end -# source://rbs//lib/rbs/types.rb#1395 +# source://rbs//lib/rbs/types.rb#1397 class RBS::Types::Proc # @return [Proc] a new instance of Proc # - # source://rbs//lib/rbs/types.rb#1401 + # source://rbs//lib/rbs/types.rb#1403 def initialize(location:, type:, block:, self_type: T.unsafe(nil)); end - # source://rbs//lib/rbs/types.rb#1408 + # source://rbs//lib/rbs/types.rb#1410 def ==(other); end # Returns the value of attribute block. # - # source://rbs//lib/rbs/types.rb#1397 + # source://rbs//lib/rbs/types.rb#1399 def block; end - # source://rbs//lib/rbs/types.rb#1462 + # source://rbs//lib/rbs/types.rb#1464 def each_type(&block); end - # source://rbs//lib/rbs/types.rb#1408 + # source://rbs//lib/rbs/types.rb#1414 def eql?(other); end - # source://rbs//lib/rbs/types.rb#1418 + # source://rbs//lib/rbs/types.rb#1420 def free_variables(set = T.unsafe(nil)); end # @return [Boolean] # - # source://rbs//lib/rbs/types.rb#1501 + # source://rbs//lib/rbs/types.rb#1503 def has_classish_type?; end # @return [Boolean] # - # source://rbs//lib/rbs/types.rb#1497 + # source://rbs//lib/rbs/types.rb#1499 def has_self_type?; end - # source://rbs//lib/rbs/types.rb#1414 + # source://rbs//lib/rbs/types.rb#1416 def hash; end # Returns the value of attribute location. # - # source://rbs//lib/rbs/types.rb#1399 + # source://rbs//lib/rbs/types.rb#1401 def location; end - # source://rbs//lib/rbs/types.rb#1484 + # source://rbs//lib/rbs/types.rb#1486 def map_type(&block); end - # source://rbs//lib/rbs/types.rb#1475 + # source://rbs//lib/rbs/types.rb#1477 def map_type_name(&block); end # Returns the value of attribute self_type. # - # source://rbs//lib/rbs/types.rb#1398 + # source://rbs//lib/rbs/types.rb#1400 def self_type; end - # source://rbs//lib/rbs/types.rb#1435 + # source://rbs//lib/rbs/types.rb#1437 def sub(s); end - # source://rbs//lib/rbs/types.rb#1425 + # source://rbs//lib/rbs/types.rb#1427 def to_json(state = T.unsafe(nil)); end - # source://rbs//lib/rbs/types.rb#1446 + # source://rbs//lib/rbs/types.rb#1448 def to_s(level = T.unsafe(nil)); end # Returns the value of attribute type. # - # source://rbs//lib/rbs/types.rb#1396 + # source://rbs//lib/rbs/types.rb#1398 def type; end # @return [Boolean] # - # source://rbs//lib/rbs/types.rb#1505 + # source://rbs//lib/rbs/types.rb#1507 def with_nonreturn_void?; end end @@ -6331,7 +7248,7 @@ class RBS::Types::Record # source://rbs//lib/rbs/types.rb#605 def each_type(&block); end - # source://rbs//lib/rbs/types.rb#555 + # source://rbs//lib/rbs/types.rb#559 def eql?(other); end # Returns the value of attribute fields. @@ -6386,15 +7303,15 @@ class RBS::Types::Record def with_nonreturn_void?; end end -# source://rbs//lib/rbs/types.rb#1383 +# source://rbs//lib/rbs/types.rb#1385 module RBS::Types::SelfTypeBindingHelper private - # source://rbs//lib/rbs/types.rb#1386 + # source://rbs//lib/rbs/types.rb#1388 def self_type_binding_to_s(t); end class << self - # source://rbs//lib/rbs/types.rb#1386 + # source://rbs//lib/rbs/types.rb#1388 def self_type_binding_to_s(t); end end end @@ -6412,7 +7329,7 @@ class RBS::Types::Tuple # source://rbs//lib/rbs/types.rb#488 def each_type(&block); end - # source://rbs//lib/rbs/types.rb#451 + # source://rbs//lib/rbs/types.rb#455 def eql?(other); end # source://rbs//lib/rbs/types.rb#461 @@ -6475,7 +7392,7 @@ class RBS::Types::Union # source://rbs//lib/rbs/types.rb#786 def each_type(&block); end - # source://rbs//lib/rbs/types.rb#740 + # source://rbs//lib/rbs/types.rb#744 def eql?(other); end # source://rbs//lib/rbs/types.rb#750 @@ -6546,7 +7463,7 @@ class RBS::Types::UntypedFunction # source://rbs//lib/rbs/types.rb#1302 def empty?; end - # source://rbs//lib/rbs/types.rb#1326 + # source://rbs//lib/rbs/types.rb#1330 def eql?(other); end # source://rbs//lib/rbs/types.rb#1248 @@ -6613,7 +7530,7 @@ class RBS::Types::Variable # source://rbs//lib/rbs/types.rb#144 def ==(other); end - # source://rbs//lib/rbs/types.rb#144 + # source://rbs//lib/rbs/types.rb#148 def eql?(other); end # source://rbs//lib/rbs/types.rb#154 @@ -6876,18 +7793,18 @@ class RBS::Vendorer def vendor_dir; end end -# source://rbs//lib/rbs/errors.rb#593 +# source://rbs//lib/rbs/errors.rb#594 class RBS::WillSyntaxError < ::RBS::DefinitionError include ::RBS::DetailedMessageable # @return [WillSyntaxError] a new instance of WillSyntaxError # - # source://rbs//lib/rbs/errors.rb#598 + # source://rbs//lib/rbs/errors.rb#599 def initialize(message, location:); end # Returns the value of attribute location. # - # source://rbs//lib/rbs/errors.rb#596 + # source://rbs//lib/rbs/errors.rb#597 def location; end end diff --git a/sorbet/rbi/gems/rdoc@6.13.1.rbi b/sorbet/rbi/gems/rdoc@6.14.2.rbi similarity index 92% rename from sorbet/rbi/gems/rdoc@6.13.1.rbi rename to sorbet/rbi/gems/rdoc@6.14.2.rbi index aea95f5b..e7f7d0d1 100644 --- a/sorbet/rbi/gems/rdoc@6.13.1.rbi +++ b/sorbet/rbi/gems/rdoc@6.14.2.rbi @@ -5,15 +5,7 @@ # Please instead update this file by running `bin/tapioca gem rdoc`. -module ERB::Escape - private - - def html_escape(_arg0); end - - class << self - def html_escape(_arg0); end - end -end +module ERB::Escape; end # RDoc produces documentation for Ruby source files by parsing the source and # extracting the definition for classes, modules, methods, includes and @@ -125,7 +117,7 @@ class RDoc::Alias < ::RDoc::CodeObject # Aliased method's name # - # source://rdoc//lib/rdoc/code_object/alias.rb#14 + # source://rdoc//lib/rdoc/code_object/alias.rb#16 def name; end # '::' for the alias of a singleton method/attribute, '#' for instance-level. @@ -145,7 +137,7 @@ class RDoc::Alias < ::RDoc::CodeObject # New name with prefix '::' or '#'. # - # source://rdoc//lib/rdoc/code_object/alias.rb#94 + # source://rdoc//lib/rdoc/code_object/alias.rb#98 def pretty_name; end # New name with prefix '::' or '#'. @@ -509,7 +501,7 @@ class RDoc::ClassModule < ::RDoc::Context # Handy wrapper for marking up this class or module's comment # - # source://rdoc//lib/rdoc/generator/markup.rb#131 + # source://rdoc//lib/rdoc/generator/markup.rb#143 def description; end # Ancestors list for this ClassModule: the list of included modules @@ -525,7 +517,7 @@ class RDoc::ClassModule < ::RDoc::Context # # Ancestors of this class or module only # - # source://rdoc//lib/rdoc/code_object/class_module.rb#167 + # source://rdoc//lib/rdoc/code_object/class_module.rb#186 def direct_ancestors; end # Does this ClassModule or any of its methods have document_self set? @@ -1100,7 +1092,7 @@ class RDoc::Comment # # For duck-typing when merging classes at load time # - # source://rdoc//lib/rdoc/comment.rb#24 + # source://rdoc//lib/rdoc/comment.rb#34 def file; end # The format of this comment. Defaults to RDoc::Markup @@ -1187,7 +1179,7 @@ class RDoc::Comment # # Alias for text # - # source://rdoc//lib/rdoc/comment.rb#39 + # source://rdoc//lib/rdoc/comment.rb#44 def to_s; end # Returns true if this comment is in TomDoc format. @@ -1901,7 +1893,7 @@ end # Sections can be referenced multiple times and will be collapsed into a # single section. # -# source://rdoc//lib/rdoc/code_object/context/section.rb#13 +# source://rdoc//lib/rdoc/code_object/context/section.rb#14 class RDoc::Context::Section include ::RDoc::Text include ::RDoc::Generator::Markup @@ -1910,37 +1902,37 @@ class RDoc::Context::Section # # @return [Section] a new instance of Section # - # source://rdoc//lib/rdoc/code_object/context/section.rb#42 + # source://rdoc//lib/rdoc/code_object/context/section.rb#43 def initialize(parent, title, comment); end # Sections are equal when they have the same #title # - # source://rdoc//lib/rdoc/code_object/context/section.rb#54 + # source://rdoc//lib/rdoc/code_object/context/section.rb#55 def ==(other); end # Adds +comment+ to this section # - # source://rdoc//lib/rdoc/code_object/context/section.rb#63 + # source://rdoc//lib/rdoc/code_object/context/section.rb#64 def add_comment(comment); end # Anchor reference for linking to this section # - # source://rdoc//lib/rdoc/code_object/context/section.rb#74 + # source://rdoc//lib/rdoc/code_object/context/section.rb#75 def aref; end # Section comment # - # source://rdoc//lib/rdoc/code_object/context/section.rb#22 + # source://rdoc//lib/rdoc/code_object/context/section.rb#23 def comment; end # Section comments # - # source://rdoc//lib/rdoc/code_object/context/section.rb#27 + # source://rdoc//lib/rdoc/code_object/context/section.rb#28 def comments; end # Sections are equal when they have the same #title # - # source://rdoc//lib/rdoc/code_object/context/section.rb#54 + # source://rdoc//lib/rdoc/code_object/context/section.rb#59 def eql?(other); end # Extracts the comment for this section from the original comment block. @@ -1951,58 +1943,58 @@ class RDoc::Context::Section # # :section: The title # # The body # - # source://rdoc//lib/rdoc/code_object/context/section.rb#89 + # source://rdoc//lib/rdoc/code_object/context/section.rb#90 def extract_comment(comment); end - # source://rdoc//lib/rdoc/code_object/context/section.rb#115 + # source://rdoc//lib/rdoc/code_object/context/section.rb#116 def hash; end # The files comments in this section come from # - # source://rdoc//lib/rdoc/code_object/context/section.rb#122 + # source://rdoc//lib/rdoc/code_object/context/section.rb#123 def in_files; end - # source://rdoc//lib/rdoc/code_object/context/section.rb#111 + # source://rdoc//lib/rdoc/code_object/context/section.rb#112 def inspect; end # Serializes this Section. The title and parsed comment are saved, but not # the section parent which must be restored manually. # - # source://rdoc//lib/rdoc/code_object/context/section.rb#130 + # source://rdoc//lib/rdoc/code_object/context/section.rb#131 def marshal_dump; end # De-serializes this Section. The section parent must be restored manually. # - # source://rdoc//lib/rdoc/code_object/context/section.rb#141 + # source://rdoc//lib/rdoc/code_object/context/section.rb#142 def marshal_load(array); end # Context this Section lives in # - # source://rdoc//lib/rdoc/code_object/context/section.rb#32 + # source://rdoc//lib/rdoc/code_object/context/section.rb#33 def parent; end # Parses +comment_location+ into an RDoc::Markup::Document composed of # multiple RDoc::Markup::Documents with their file set. # - # source://rdoc//lib/rdoc/code_object/context/section.rb#152 + # source://rdoc//lib/rdoc/code_object/context/section.rb#153 def parse; end # The section's title, or 'Top Section' if the title is nil. # # This is used by the table of contents template so the name is silly. # - # source://rdoc//lib/rdoc/code_object/context/section.rb#161 + # source://rdoc//lib/rdoc/code_object/context/section.rb#162 def plain_html; end # Removes a comment from this section if it is from the same file as # +comment+ # - # source://rdoc//lib/rdoc/code_object/context/section.rb#169 + # source://rdoc//lib/rdoc/code_object/context/section.rb#170 def remove_comment(target_comment); end # Section title # - # source://rdoc//lib/rdoc/code_object/context/section.rb#37 + # source://rdoc//lib/rdoc/code_object/context/section.rb#38 def title; end end @@ -2459,6 +2451,11 @@ module RDoc::Generator::Markup # source://rdoc//lib/rdoc/generator/markup.rb#20 def as_href(from_path); end + # The preferred URL for this object. + # + # source://rdoc//lib/rdoc/generator/markup.rb#61 + def canonical_url; end + # Build a webcvs URL starting for the given +url+ with +full_path+ appended # as the destination path. If +url+ contains '%s' +full_path+ will be # will replace the %s using sprintf on the +url+. @@ -2830,1247 +2827,1247 @@ class RDoc::Markdown # # @return [Markdown] a new instance of Markdown # - # source://rdoc//lib/rdoc/markdown.rb#668 + # source://rdoc//lib/rdoc/markdown.rb#188 def initialize(extensions = T.unsafe(nil), debug = T.unsafe(nil)); end # Alphanumeric = %literals.Alphanumeric # - # source://rdoc//lib/rdoc/markdown.rb#14727 + # source://rdoc//lib/rdoc/markdown.rb#14767 def _Alphanumeric; end # AlphanumericAscii = %literals.AlphanumericAscii # - # source://rdoc//lib/rdoc/markdown.rb#14734 + # source://rdoc//lib/rdoc/markdown.rb#14774 def _AlphanumericAscii; end # AtxHeading = AtxStart:s @Spacechar+ AtxInline+:a (@Sp /#*/ @Sp)? @Newline { RDoc::Markup::Heading.new(s, a.join) } # - # source://rdoc//lib/rdoc/markdown.rb#1162 + # source://rdoc//lib/rdoc/markdown.rb#1202 def _AtxHeading; end # AtxInline = !@Newline !(@Sp /#*/ @Sp @Newline) Inline # - # source://rdoc//lib/rdoc/markdown.rb#1080 + # source://rdoc//lib/rdoc/markdown.rb#1120 def _AtxInline; end # AtxStart = < /\#{1,6}/ > { text.length } # - # source://rdoc//lib/rdoc/markdown.rb#1136 + # source://rdoc//lib/rdoc/markdown.rb#1176 def _AtxStart; end # AutoLink = (AutoLinkUrl | AutoLinkEmail) # - # source://rdoc//lib/rdoc/markdown.rb#11596 + # source://rdoc//lib/rdoc/markdown.rb#11636 def _AutoLink; end # AutoLinkEmail = "<" "mailto:"? < /[\w+.\/!%~$-]+/i "@" (!@Newline !">" .)+ > ">" { "mailto:#{text}" } # - # source://rdoc//lib/rdoc/markdown.rb#11729 + # source://rdoc//lib/rdoc/markdown.rb#11769 def _AutoLinkEmail; end # AutoLinkUrl = "<" < /[A-Za-z]+/ "://" (!@Newline !">" .)+ > ">" { text } # - # source://rdoc//lib/rdoc/markdown.rb#11614 + # source://rdoc//lib/rdoc/markdown.rb#11654 def _AutoLinkUrl; end # BOM = %literals.BOM # - # source://rdoc//lib/rdoc/markdown.rb#14741 + # source://rdoc//lib/rdoc/markdown.rb#14781 def _BOM; end # BlankLine = @Sp @Newline { "\n" } # - # source://rdoc//lib/rdoc/markdown.rb#14170 + # source://rdoc//lib/rdoc/markdown.rb#14210 def _BlankLine; end # Block = @BlankLine* (BlockQuote | Verbatim | CodeFence | Table | Note | Reference | HorizontalRule | Heading | OrderedList | BulletList | DefinitionList | HtmlBlock | StyleBlock | Para | Plain) # - # source://rdoc//lib/rdoc/markdown.rb#939 + # source://rdoc//lib/rdoc/markdown.rb#979 def _Block; end # BlockQuote = BlockQuoteRaw:a { RDoc::Markup::BlockQuote.new(*a) } # - # source://rdoc//lib/rdoc/markdown.rb#1576 + # source://rdoc//lib/rdoc/markdown.rb#1616 def _BlockQuote; end # BlockQuoteRaw = @StartList:a (">" " "? Line:l { a << l } (!">" !@BlankLine Line:c { a << c })* (@BlankLine:n { a << n })*)+ { inner_parse a.join } # - # source://rdoc//lib/rdoc/markdown.rb#1599 + # source://rdoc//lib/rdoc/markdown.rb#1639 def _BlockQuoteRaw; end # Bullet = !HorizontalRule @NonindentSpace /[+*-]/ @Spacechar+ # - # source://rdoc//lib/rdoc/markdown.rb#2164 + # source://rdoc//lib/rdoc/markdown.rb#2204 def _Bullet; end # BulletList = &Bullet (ListTight | ListLoose):a { RDoc::Markup::List.new(:BULLET, *a) } # - # source://rdoc//lib/rdoc/markdown.rb#2208 + # source://rdoc//lib/rdoc/markdown.rb#2248 def _BulletList; end # CharEntity = "&" < /[A-Za-z0-9]+/ > ";" { if entity = HTML_ENTITIES[text] then entity.pack 'U*' else "&#{text};" end } # - # source://rdoc//lib/rdoc/markdown.rb#14834 + # source://rdoc//lib/rdoc/markdown.rb#14874 def _CharEntity; end # Code = (Ticks1 @Sp < ((!"`" Nonspacechar)+ | !Ticks1 /`+/ | !(@Sp Ticks1) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks1 | Ticks2 @Sp < ((!"`" Nonspacechar)+ | !Ticks2 /`+/ | !(@Sp Ticks2) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks2 | Ticks3 @Sp < ((!"`" Nonspacechar)+ | !Ticks3 /`+/ | !(@Sp Ticks3) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks3 | Ticks4 @Sp < ((!"`" Nonspacechar)+ | !Ticks4 /`+/ | !(@Sp Ticks4) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks4 | Ticks5 @Sp < ((!"`" Nonspacechar)+ | !Ticks5 /`+/ | !(@Sp Ticks5) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks5) { "#{text}" } # - # source://rdoc//lib/rdoc/markdown.rb#12533 + # source://rdoc//lib/rdoc/markdown.rb#12573 def _Code; end # CodeFence = &{ github? } Ticks3 (@Sp StrChunk:format)? Spnl < ((!"`" Nonspacechar)+ | !Ticks3 /`+/ | Spacechar | @Newline)+ > Ticks3 @Sp @Newline* { verbatim = RDoc::Markup::Verbatim.new text verbatim.format = format.intern if format.instance_of?(String) verbatim } # - # source://rdoc//lib/rdoc/markdown.rb#15703 + # source://rdoc//lib/rdoc/markdown.rb#15743 def _CodeFence; end # DecEntity = "&#" < /[0-9]+/ > ";" { [text.to_i].pack 'U' } # - # source://rdoc//lib/rdoc/markdown.rb#14798 + # source://rdoc//lib/rdoc/markdown.rb#14838 def _DecEntity; end # DefinitionList = &{ definition_lists? } DefinitionListItem+:list { RDoc::Markup::List.new :NOTE, *list.flatten } # - # source://rdoc//lib/rdoc/markdown.rb#16361 + # source://rdoc//lib/rdoc/markdown.rb#16404 def _DefinitionList; end # DefinitionListDefinition = @NonindentSpace ":" @Space Inlines:a @BlankLine+ { paragraph a } # - # source://rdoc//lib/rdoc/markdown.rb#16504 + # source://rdoc//lib/rdoc/markdown.rb#16547 def _DefinitionListDefinition; end # DefinitionListItem = DefinitionListLabel+:label DefinitionListDefinition+:defns { list_items = [] list_items << RDoc::Markup::ListItem.new(label, defns.shift) list_items.concat defns.map { |defn| RDoc::Markup::ListItem.new nil, defn } unless list_items.empty? list_items } # - # source://rdoc//lib/rdoc/markdown.rb#16405 + # source://rdoc//lib/rdoc/markdown.rb#16448 def _DefinitionListItem; end # DefinitionListLabel = Inline:label @Sp @Newline { label } # - # source://rdoc//lib/rdoc/markdown.rb#16471 + # source://rdoc//lib/rdoc/markdown.rb#16514 def _DefinitionListLabel; end # Digit = [0-9] # - # source://rdoc//lib/rdoc/markdown.rb#14713 + # source://rdoc//lib/rdoc/markdown.rb#14753 def _Digit; end # Doc = BOM? Block*:a { RDoc::Markup::Document.new(*a.compact) } # - # source://rdoc//lib/rdoc/markdown.rb#899 + # source://rdoc//lib/rdoc/markdown.rb#939 def _Doc; end # Emph = (EmphStar | EmphUl) # - # source://rdoc//lib/rdoc/markdown.rb#10293 + # source://rdoc//lib/rdoc/markdown.rb#10333 def _Emph; end # EmphStar = "*" !@Whitespace @StartList:a (!"*" Inline:b { a << b } | StrongStar:b { a << b })+ "*" { emphasis a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10329 + # source://rdoc//lib/rdoc/markdown.rb#10369 def _EmphStar; end # EmphUl = "_" !@Whitespace @StartList:a (!"_" Inline:b { a << b } | StrongUl:b { a << b })+ "_" { emphasis a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10487 + # source://rdoc//lib/rdoc/markdown.rb#10527 def _EmphUl; end # EmptyTitle = "" # - # source://rdoc//lib/rdoc/markdown.rb#12108 + # source://rdoc//lib/rdoc/markdown.rb#12148 def _EmptyTitle; end # Endline = (@LineBreak | @TerminalEndline | @NormalEndline) # - # source://rdoc//lib/rdoc/markdown.rb#9927 + # source://rdoc//lib/rdoc/markdown.rb#9967 def _Endline; end # Entity = (HexEntity | DecEntity | CharEntity):a { a } # - # source://rdoc//lib/rdoc/markdown.rb#9890 + # source://rdoc//lib/rdoc/markdown.rb#9930 def _Entity; end # Enumerator = @NonindentSpace [0-9]+ "." @Spacechar+ # - # source://rdoc//lib/rdoc/markdown.rb#2697 + # source://rdoc//lib/rdoc/markdown.rb#2737 def _Enumerator; end # Eof = !. # - # source://rdoc//lib/rdoc/markdown.rb#14564 + # source://rdoc//lib/rdoc/markdown.rb#14604 def _Eof; end # EscapedChar = "\\" !@Newline < /[:\\`|*_{}\[\]()#+.!><-]/ > { text } # - # source://rdoc//lib/rdoc/markdown.rb#9851 + # source://rdoc//lib/rdoc/markdown.rb#9891 def _EscapedChar; end # ExplicitLink = ExplicitLinkWithLabel:a { "{#{a[:label]}}[#{a[:link]}]" } # - # source://rdoc//lib/rdoc/markdown.rb#11146 + # source://rdoc//lib/rdoc/markdown.rb#11186 def _ExplicitLink; end # ExplicitLinkWithLabel = Label:label "(" @Sp Source:link Spnl Title @Sp ")" { { label: label, link: link } } # - # source://rdoc//lib/rdoc/markdown.rb#11169 + # source://rdoc//lib/rdoc/markdown.rb#11209 def _ExplicitLinkWithLabel; end # ExtendedSpecialChar = &{ notes? } "^" # - # source://rdoc//lib/rdoc/markdown.rb#15206 + # source://rdoc//lib/rdoc/markdown.rb#15246 def _ExtendedSpecialChar; end # Heading = (SetextHeading | AtxHeading) # - # source://rdoc//lib/rdoc/markdown.rb#1558 + # source://rdoc//lib/rdoc/markdown.rb#1598 def _Heading; end # HexEntity = /&#x/i < /[0-9a-fA-F]+/ > ";" { [text.to_i(16)].pack 'U' } # - # source://rdoc//lib/rdoc/markdown.rb#14762 + # source://rdoc//lib/rdoc/markdown.rb#14802 def _HexEntity; end # HorizontalRule = @NonindentSpace ("*" @Sp "*" @Sp "*" (@Sp "*")* | "-" @Sp "-" @Sp "-" (@Sp "-")* | "_" @Sp "_" @Sp "_" (@Sp "_")*) @Sp @Newline @BlankLine+ { RDoc::Markup::Rule.new 1 } # - # source://rdoc//lib/rdoc/markdown.rb#1942 + # source://rdoc//lib/rdoc/markdown.rb#1982 def _HorizontalRule; end # HtmlAnchor = HtmlOpenAnchor (HtmlAnchor | !HtmlCloseAnchor .)* HtmlCloseAnchor # - # source://rdoc//lib/rdoc/markdown.rb#2981 + # source://rdoc//lib/rdoc/markdown.rb#3021 def _HtmlAnchor; end # HtmlAttribute = (AlphanumericAscii | "-")+ Spnl ("=" Spnl (Quoted | (!">" Nonspacechar)+))? Spnl # - # source://rdoc//lib/rdoc/markdown.rb#14295 + # source://rdoc//lib/rdoc/markdown.rb#14335 def _HtmlAttribute; end # HtmlBlock = < (HtmlBlockInTags | HtmlComment | HtmlBlockSelfClosing | HtmlUnclosed) > @BlankLine+ { if html? then RDoc::Markup::Raw.new text end } # - # source://rdoc//lib/rdoc/markdown.rb#8778 + # source://rdoc//lib/rdoc/markdown.rb#8818 def _HtmlBlock; end # HtmlBlockAddress = HtmlBlockOpenAddress (HtmlBlockAddress | !HtmlBlockCloseAddress .)* HtmlBlockCloseAddress # - # source://rdoc//lib/rdoc/markdown.rb#3147 + # source://rdoc//lib/rdoc/markdown.rb#3187 def _HtmlBlockAddress; end # HtmlBlockBlockquote = HtmlBlockOpenBlockquote (HtmlBlockBlockquote | !HtmlBlockCloseBlockquote .)* HtmlBlockCloseBlockquote # - # source://rdoc//lib/rdoc/markdown.rb#3313 + # source://rdoc//lib/rdoc/markdown.rb#3353 def _HtmlBlockBlockquote; end # HtmlBlockCenter = HtmlBlockOpenCenter (HtmlBlockCenter | !HtmlBlockCloseCenter .)* HtmlBlockCloseCenter # - # source://rdoc//lib/rdoc/markdown.rb#3479 + # source://rdoc//lib/rdoc/markdown.rb#3519 def _HtmlBlockCenter; end # HtmlBlockCloseAddress = "<" Spnl "/" ("address" | "ADDRESS") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3095 + # source://rdoc//lib/rdoc/markdown.rb#3135 def _HtmlBlockCloseAddress; end # HtmlBlockCloseBlockquote = "<" Spnl "/" ("blockquote" | "BLOCKQUOTE") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3261 + # source://rdoc//lib/rdoc/markdown.rb#3301 def _HtmlBlockCloseBlockquote; end # HtmlBlockCloseCenter = "<" Spnl "/" ("center" | "CENTER") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3427 + # source://rdoc//lib/rdoc/markdown.rb#3467 def _HtmlBlockCloseCenter; end # HtmlBlockCloseDd = "<" Spnl "/" ("dd" | "DD") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6747 + # source://rdoc//lib/rdoc/markdown.rb#6787 def _HtmlBlockCloseDd; end # HtmlBlockCloseDir = "<" Spnl "/" ("dir" | "DIR") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3593 + # source://rdoc//lib/rdoc/markdown.rb#3633 def _HtmlBlockCloseDir; end # HtmlBlockCloseDiv = "<" Spnl "/" ("div" | "DIV") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3759 + # source://rdoc//lib/rdoc/markdown.rb#3799 def _HtmlBlockCloseDiv; end # HtmlBlockCloseDl = "<" Spnl "/" ("dl" | "DL") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3925 + # source://rdoc//lib/rdoc/markdown.rb#3965 def _HtmlBlockCloseDl; end # HtmlBlockCloseDt = "<" Spnl "/" ("dt" | "DT") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6913 + # source://rdoc//lib/rdoc/markdown.rb#6953 def _HtmlBlockCloseDt; end # HtmlBlockCloseFieldset = "<" Spnl "/" ("fieldset" | "FIELDSET") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4091 + # source://rdoc//lib/rdoc/markdown.rb#4131 def _HtmlBlockCloseFieldset; end # HtmlBlockCloseForm = "<" Spnl "/" ("form" | "FORM") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4257 + # source://rdoc//lib/rdoc/markdown.rb#4297 def _HtmlBlockCloseForm; end # HtmlBlockCloseFrameset = "<" Spnl "/" ("frameset" | "FRAMESET") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7079 + # source://rdoc//lib/rdoc/markdown.rb#7119 def _HtmlBlockCloseFrameset; end # HtmlBlockCloseH1 = "<" Spnl "/" ("h1" | "H1") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4423 + # source://rdoc//lib/rdoc/markdown.rb#4463 def _HtmlBlockCloseH1; end # HtmlBlockCloseH2 = "<" Spnl "/" ("h2" | "H2") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4589 + # source://rdoc//lib/rdoc/markdown.rb#4629 def _HtmlBlockCloseH2; end # HtmlBlockCloseH3 = "<" Spnl "/" ("h3" | "H3") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4755 + # source://rdoc//lib/rdoc/markdown.rb#4795 def _HtmlBlockCloseH3; end # HtmlBlockCloseH4 = "<" Spnl "/" ("h4" | "H4") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4921 + # source://rdoc//lib/rdoc/markdown.rb#4961 def _HtmlBlockCloseH4; end # HtmlBlockCloseH5 = "<" Spnl "/" ("h5" | "H5") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5087 + # source://rdoc//lib/rdoc/markdown.rb#5127 def _HtmlBlockCloseH5; end # HtmlBlockCloseH6 = "<" Spnl "/" ("h6" | "H6") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5253 + # source://rdoc//lib/rdoc/markdown.rb#5293 def _HtmlBlockCloseH6; end # HtmlBlockCloseHead = "<" Spnl "/" ("head" | "HEAD") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8562 + # source://rdoc//lib/rdoc/markdown.rb#8602 def _HtmlBlockCloseHead; end # HtmlBlockCloseLi = "<" Spnl "/" ("li" | "LI") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7245 + # source://rdoc//lib/rdoc/markdown.rb#7285 def _HtmlBlockCloseLi; end # HtmlBlockCloseMenu = "<" Spnl "/" ("menu" | "MENU") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5419 + # source://rdoc//lib/rdoc/markdown.rb#5459 def _HtmlBlockCloseMenu; end # HtmlBlockCloseNoframes = "<" Spnl "/" ("noframes" | "NOFRAMES") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5585 + # source://rdoc//lib/rdoc/markdown.rb#5625 def _HtmlBlockCloseNoframes; end # HtmlBlockCloseNoscript = "<" Spnl "/" ("noscript" | "NOSCRIPT") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5751 + # source://rdoc//lib/rdoc/markdown.rb#5791 def _HtmlBlockCloseNoscript; end # HtmlBlockCloseOl = "<" Spnl "/" ("ol" | "OL") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5917 + # source://rdoc//lib/rdoc/markdown.rb#5957 def _HtmlBlockCloseOl; end # HtmlBlockCloseP = "<" Spnl "/" ("p" | "P") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6083 + # source://rdoc//lib/rdoc/markdown.rb#6123 def _HtmlBlockCloseP; end # HtmlBlockClosePre = "<" Spnl "/" ("pre" | "PRE") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6249 + # source://rdoc//lib/rdoc/markdown.rb#6289 def _HtmlBlockClosePre; end # HtmlBlockCloseScript = "<" Spnl "/" ("script" | "SCRIPT") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8407 + # source://rdoc//lib/rdoc/markdown.rb#8447 def _HtmlBlockCloseScript; end # HtmlBlockCloseTable = "<" Spnl "/" ("table" | "TABLE") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6415 + # source://rdoc//lib/rdoc/markdown.rb#6455 def _HtmlBlockCloseTable; end # HtmlBlockCloseTbody = "<" Spnl "/" ("tbody" | "TBODY") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7411 + # source://rdoc//lib/rdoc/markdown.rb#7451 def _HtmlBlockCloseTbody; end # HtmlBlockCloseTd = "<" Spnl "/" ("td" | "TD") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7577 + # source://rdoc//lib/rdoc/markdown.rb#7617 def _HtmlBlockCloseTd; end # HtmlBlockCloseTfoot = "<" Spnl "/" ("tfoot" | "TFOOT") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7743 + # source://rdoc//lib/rdoc/markdown.rb#7783 def _HtmlBlockCloseTfoot; end # HtmlBlockCloseTh = "<" Spnl "/" ("th" | "TH") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7909 + # source://rdoc//lib/rdoc/markdown.rb#7949 def _HtmlBlockCloseTh; end # HtmlBlockCloseThead = "<" Spnl "/" ("thead" | "THEAD") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8075 + # source://rdoc//lib/rdoc/markdown.rb#8115 def _HtmlBlockCloseThead; end # HtmlBlockCloseTr = "<" Spnl "/" ("tr" | "TR") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8241 + # source://rdoc//lib/rdoc/markdown.rb#8281 def _HtmlBlockCloseTr; end # HtmlBlockCloseUl = "<" Spnl "/" ("ul" | "UL") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6581 + # source://rdoc//lib/rdoc/markdown.rb#6621 def _HtmlBlockCloseUl; end # HtmlBlockDd = HtmlBlockOpenDd (HtmlBlockDd | !HtmlBlockCloseDd .)* HtmlBlockCloseDd # - # source://rdoc//lib/rdoc/markdown.rb#6799 + # source://rdoc//lib/rdoc/markdown.rb#6839 def _HtmlBlockDd; end # HtmlBlockDir = HtmlBlockOpenDir (HtmlBlockDir | !HtmlBlockCloseDir .)* HtmlBlockCloseDir # - # source://rdoc//lib/rdoc/markdown.rb#3645 + # source://rdoc//lib/rdoc/markdown.rb#3685 def _HtmlBlockDir; end # HtmlBlockDiv = HtmlBlockOpenDiv (HtmlBlockDiv | !HtmlBlockCloseDiv .)* HtmlBlockCloseDiv # - # source://rdoc//lib/rdoc/markdown.rb#3811 + # source://rdoc//lib/rdoc/markdown.rb#3851 def _HtmlBlockDiv; end # HtmlBlockDl = HtmlBlockOpenDl (HtmlBlockDl | !HtmlBlockCloseDl .)* HtmlBlockCloseDl # - # source://rdoc//lib/rdoc/markdown.rb#3977 + # source://rdoc//lib/rdoc/markdown.rb#4017 def _HtmlBlockDl; end # HtmlBlockDt = HtmlBlockOpenDt (HtmlBlockDt | !HtmlBlockCloseDt .)* HtmlBlockCloseDt # - # source://rdoc//lib/rdoc/markdown.rb#6965 + # source://rdoc//lib/rdoc/markdown.rb#7005 def _HtmlBlockDt; end # HtmlBlockFieldset = HtmlBlockOpenFieldset (HtmlBlockFieldset | !HtmlBlockCloseFieldset .)* HtmlBlockCloseFieldset # - # source://rdoc//lib/rdoc/markdown.rb#4143 + # source://rdoc//lib/rdoc/markdown.rb#4183 def _HtmlBlockFieldset; end # HtmlBlockForm = HtmlBlockOpenForm (HtmlBlockForm | !HtmlBlockCloseForm .)* HtmlBlockCloseForm # - # source://rdoc//lib/rdoc/markdown.rb#4309 + # source://rdoc//lib/rdoc/markdown.rb#4349 def _HtmlBlockForm; end # HtmlBlockFrameset = HtmlBlockOpenFrameset (HtmlBlockFrameset | !HtmlBlockCloseFrameset .)* HtmlBlockCloseFrameset # - # source://rdoc//lib/rdoc/markdown.rb#7131 + # source://rdoc//lib/rdoc/markdown.rb#7171 def _HtmlBlockFrameset; end # HtmlBlockH1 = HtmlBlockOpenH1 (HtmlBlockH1 | !HtmlBlockCloseH1 .)* HtmlBlockCloseH1 # - # source://rdoc//lib/rdoc/markdown.rb#4475 + # source://rdoc//lib/rdoc/markdown.rb#4515 def _HtmlBlockH1; end # HtmlBlockH2 = HtmlBlockOpenH2 (HtmlBlockH2 | !HtmlBlockCloseH2 .)* HtmlBlockCloseH2 # - # source://rdoc//lib/rdoc/markdown.rb#4641 + # source://rdoc//lib/rdoc/markdown.rb#4681 def _HtmlBlockH2; end # HtmlBlockH3 = HtmlBlockOpenH3 (HtmlBlockH3 | !HtmlBlockCloseH3 .)* HtmlBlockCloseH3 # - # source://rdoc//lib/rdoc/markdown.rb#4807 + # source://rdoc//lib/rdoc/markdown.rb#4847 def _HtmlBlockH3; end # HtmlBlockH4 = HtmlBlockOpenH4 (HtmlBlockH4 | !HtmlBlockCloseH4 .)* HtmlBlockCloseH4 # - # source://rdoc//lib/rdoc/markdown.rb#4973 + # source://rdoc//lib/rdoc/markdown.rb#5013 def _HtmlBlockH4; end # HtmlBlockH5 = HtmlBlockOpenH5 (HtmlBlockH5 | !HtmlBlockCloseH5 .)* HtmlBlockCloseH5 # - # source://rdoc//lib/rdoc/markdown.rb#5139 + # source://rdoc//lib/rdoc/markdown.rb#5179 def _HtmlBlockH5; end # HtmlBlockH6 = HtmlBlockOpenH6 (HtmlBlockH6 | !HtmlBlockCloseH6 .)* HtmlBlockCloseH6 # - # source://rdoc//lib/rdoc/markdown.rb#5305 + # source://rdoc//lib/rdoc/markdown.rb#5345 def _HtmlBlockH6; end # HtmlBlockHead = HtmlBlockOpenHead (!HtmlBlockCloseHead .)* HtmlBlockCloseHead # - # source://rdoc//lib/rdoc/markdown.rb#8614 + # source://rdoc//lib/rdoc/markdown.rb#8654 def _HtmlBlockHead; end # HtmlBlockInTags = (HtmlAnchor | HtmlBlockAddress | HtmlBlockBlockquote | HtmlBlockCenter | HtmlBlockDir | HtmlBlockDiv | HtmlBlockDl | HtmlBlockFieldset | HtmlBlockForm | HtmlBlockH1 | HtmlBlockH2 | HtmlBlockH3 | HtmlBlockH4 | HtmlBlockH5 | HtmlBlockH6 | HtmlBlockMenu | HtmlBlockNoframes | HtmlBlockNoscript | HtmlBlockOl | HtmlBlockP | HtmlBlockPre | HtmlBlockTable | HtmlBlockUl | HtmlBlockDd | HtmlBlockDt | HtmlBlockFrameset | HtmlBlockLi | HtmlBlockTbody | HtmlBlockTd | HtmlBlockTfoot | HtmlBlockTh | HtmlBlockThead | HtmlBlockTr | HtmlBlockScript | HtmlBlockHead) # - # source://rdoc//lib/rdoc/markdown.rb#8661 + # source://rdoc//lib/rdoc/markdown.rb#8701 def _HtmlBlockInTags; end # HtmlBlockLi = HtmlBlockOpenLi (HtmlBlockLi | !HtmlBlockCloseLi .)* HtmlBlockCloseLi # - # source://rdoc//lib/rdoc/markdown.rb#7297 + # source://rdoc//lib/rdoc/markdown.rb#7337 def _HtmlBlockLi; end # HtmlBlockMenu = HtmlBlockOpenMenu (HtmlBlockMenu | !HtmlBlockCloseMenu .)* HtmlBlockCloseMenu # - # source://rdoc//lib/rdoc/markdown.rb#5471 + # source://rdoc//lib/rdoc/markdown.rb#5511 def _HtmlBlockMenu; end # HtmlBlockNoframes = HtmlBlockOpenNoframes (HtmlBlockNoframes | !HtmlBlockCloseNoframes .)* HtmlBlockCloseNoframes # - # source://rdoc//lib/rdoc/markdown.rb#5637 + # source://rdoc//lib/rdoc/markdown.rb#5677 def _HtmlBlockNoframes; end # HtmlBlockNoscript = HtmlBlockOpenNoscript (HtmlBlockNoscript | !HtmlBlockCloseNoscript .)* HtmlBlockCloseNoscript # - # source://rdoc//lib/rdoc/markdown.rb#5803 + # source://rdoc//lib/rdoc/markdown.rb#5843 def _HtmlBlockNoscript; end # HtmlBlockOl = HtmlBlockOpenOl (HtmlBlockOl | !HtmlBlockCloseOl .)* HtmlBlockCloseOl # - # source://rdoc//lib/rdoc/markdown.rb#5969 + # source://rdoc//lib/rdoc/markdown.rb#6009 def _HtmlBlockOl; end # HtmlBlockOpenAddress = "<" Spnl ("address" | "ADDRESS") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3039 + # source://rdoc//lib/rdoc/markdown.rb#3079 def _HtmlBlockOpenAddress; end # HtmlBlockOpenBlockquote = "<" Spnl ("blockquote" | "BLOCKQUOTE") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3205 + # source://rdoc//lib/rdoc/markdown.rb#3245 def _HtmlBlockOpenBlockquote; end # HtmlBlockOpenCenter = "<" Spnl ("center" | "CENTER") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3371 + # source://rdoc//lib/rdoc/markdown.rb#3411 def _HtmlBlockOpenCenter; end # HtmlBlockOpenDd = "<" Spnl ("dd" | "DD") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6691 + # source://rdoc//lib/rdoc/markdown.rb#6731 def _HtmlBlockOpenDd; end # HtmlBlockOpenDir = "<" Spnl ("dir" | "DIR") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3537 + # source://rdoc//lib/rdoc/markdown.rb#3577 def _HtmlBlockOpenDir; end # HtmlBlockOpenDiv = "<" Spnl ("div" | "DIV") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3703 + # source://rdoc//lib/rdoc/markdown.rb#3743 def _HtmlBlockOpenDiv; end # HtmlBlockOpenDl = "<" Spnl ("dl" | "DL") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3869 + # source://rdoc//lib/rdoc/markdown.rb#3909 def _HtmlBlockOpenDl; end # HtmlBlockOpenDt = "<" Spnl ("dt" | "DT") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6857 + # source://rdoc//lib/rdoc/markdown.rb#6897 def _HtmlBlockOpenDt; end # HtmlBlockOpenFieldset = "<" Spnl ("fieldset" | "FIELDSET") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4035 + # source://rdoc//lib/rdoc/markdown.rb#4075 def _HtmlBlockOpenFieldset; end # HtmlBlockOpenForm = "<" Spnl ("form" | "FORM") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4201 + # source://rdoc//lib/rdoc/markdown.rb#4241 def _HtmlBlockOpenForm; end # HtmlBlockOpenFrameset = "<" Spnl ("frameset" | "FRAMESET") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7023 + # source://rdoc//lib/rdoc/markdown.rb#7063 def _HtmlBlockOpenFrameset; end # HtmlBlockOpenH1 = "<" Spnl ("h1" | "H1") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4367 + # source://rdoc//lib/rdoc/markdown.rb#4407 def _HtmlBlockOpenH1; end # HtmlBlockOpenH2 = "<" Spnl ("h2" | "H2") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4533 + # source://rdoc//lib/rdoc/markdown.rb#4573 def _HtmlBlockOpenH2; end # HtmlBlockOpenH3 = "<" Spnl ("h3" | "H3") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4699 + # source://rdoc//lib/rdoc/markdown.rb#4739 def _HtmlBlockOpenH3; end # HtmlBlockOpenH4 = "<" Spnl ("h4" | "H4") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4865 + # source://rdoc//lib/rdoc/markdown.rb#4905 def _HtmlBlockOpenH4; end # HtmlBlockOpenH5 = "<" Spnl ("h5" | "H5") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5031 + # source://rdoc//lib/rdoc/markdown.rb#5071 def _HtmlBlockOpenH5; end # HtmlBlockOpenH6 = "<" Spnl ("h6" | "H6") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5197 + # source://rdoc//lib/rdoc/markdown.rb#5237 def _HtmlBlockOpenH6; end # HtmlBlockOpenHead = "<" Spnl ("head" | "HEAD") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#8506 + # source://rdoc//lib/rdoc/markdown.rb#8546 def _HtmlBlockOpenHead; end # HtmlBlockOpenLi = "<" Spnl ("li" | "LI") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7189 + # source://rdoc//lib/rdoc/markdown.rb#7229 def _HtmlBlockOpenLi; end # HtmlBlockOpenMenu = "<" Spnl ("menu" | "MENU") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5363 + # source://rdoc//lib/rdoc/markdown.rb#5403 def _HtmlBlockOpenMenu; end # HtmlBlockOpenNoframes = "<" Spnl ("noframes" | "NOFRAMES") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5529 + # source://rdoc//lib/rdoc/markdown.rb#5569 def _HtmlBlockOpenNoframes; end # HtmlBlockOpenNoscript = "<" Spnl ("noscript" | "NOSCRIPT") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5695 + # source://rdoc//lib/rdoc/markdown.rb#5735 def _HtmlBlockOpenNoscript; end # HtmlBlockOpenOl = "<" Spnl ("ol" | "OL") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5861 + # source://rdoc//lib/rdoc/markdown.rb#5901 def _HtmlBlockOpenOl; end # HtmlBlockOpenP = "<" Spnl ("p" | "P") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6027 + # source://rdoc//lib/rdoc/markdown.rb#6067 def _HtmlBlockOpenP; end # HtmlBlockOpenPre = "<" Spnl ("pre" | "PRE") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6193 + # source://rdoc//lib/rdoc/markdown.rb#6233 def _HtmlBlockOpenPre; end # HtmlBlockOpenScript = "<" Spnl ("script" | "SCRIPT") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#8351 + # source://rdoc//lib/rdoc/markdown.rb#8391 def _HtmlBlockOpenScript; end # HtmlBlockOpenTable = "<" Spnl ("table" | "TABLE") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6359 + # source://rdoc//lib/rdoc/markdown.rb#6399 def _HtmlBlockOpenTable; end # HtmlBlockOpenTbody = "<" Spnl ("tbody" | "TBODY") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7355 + # source://rdoc//lib/rdoc/markdown.rb#7395 def _HtmlBlockOpenTbody; end # HtmlBlockOpenTd = "<" Spnl ("td" | "TD") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7521 + # source://rdoc//lib/rdoc/markdown.rb#7561 def _HtmlBlockOpenTd; end # HtmlBlockOpenTfoot = "<" Spnl ("tfoot" | "TFOOT") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7687 + # source://rdoc//lib/rdoc/markdown.rb#7727 def _HtmlBlockOpenTfoot; end # HtmlBlockOpenTh = "<" Spnl ("th" | "TH") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7853 + # source://rdoc//lib/rdoc/markdown.rb#7893 def _HtmlBlockOpenTh; end # HtmlBlockOpenThead = "<" Spnl ("thead" | "THEAD") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#8019 + # source://rdoc//lib/rdoc/markdown.rb#8059 def _HtmlBlockOpenThead; end # HtmlBlockOpenTr = "<" Spnl ("tr" | "TR") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#8185 + # source://rdoc//lib/rdoc/markdown.rb#8225 def _HtmlBlockOpenTr; end # HtmlBlockOpenUl = "<" Spnl ("ul" | "UL") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6525 + # source://rdoc//lib/rdoc/markdown.rb#6565 def _HtmlBlockOpenUl; end # HtmlBlockP = HtmlBlockOpenP (HtmlBlockP | !HtmlBlockCloseP .)* HtmlBlockCloseP # - # source://rdoc//lib/rdoc/markdown.rb#6135 + # source://rdoc//lib/rdoc/markdown.rb#6175 def _HtmlBlockP; end # HtmlBlockPre = HtmlBlockOpenPre (HtmlBlockPre | !HtmlBlockClosePre .)* HtmlBlockClosePre # - # source://rdoc//lib/rdoc/markdown.rb#6301 + # source://rdoc//lib/rdoc/markdown.rb#6341 def _HtmlBlockPre; end # HtmlBlockScript = HtmlBlockOpenScript (!HtmlBlockCloseScript .)* HtmlBlockCloseScript # - # source://rdoc//lib/rdoc/markdown.rb#8459 + # source://rdoc//lib/rdoc/markdown.rb#8499 def _HtmlBlockScript; end # HtmlBlockSelfClosing = "<" Spnl HtmlBlockType Spnl HtmlAttribute* "/" Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8906 + # source://rdoc//lib/rdoc/markdown.rb#8946 def _HtmlBlockSelfClosing; end # HtmlBlockTable = HtmlBlockOpenTable (HtmlBlockTable | !HtmlBlockCloseTable .)* HtmlBlockCloseTable # - # source://rdoc//lib/rdoc/markdown.rb#6467 + # source://rdoc//lib/rdoc/markdown.rb#6507 def _HtmlBlockTable; end # HtmlBlockTbody = HtmlBlockOpenTbody (HtmlBlockTbody | !HtmlBlockCloseTbody .)* HtmlBlockCloseTbody # - # source://rdoc//lib/rdoc/markdown.rb#7463 + # source://rdoc//lib/rdoc/markdown.rb#7503 def _HtmlBlockTbody; end # HtmlBlockTd = HtmlBlockOpenTd (HtmlBlockTd | !HtmlBlockCloseTd .)* HtmlBlockCloseTd # - # source://rdoc//lib/rdoc/markdown.rb#7629 + # source://rdoc//lib/rdoc/markdown.rb#7669 def _HtmlBlockTd; end # HtmlBlockTfoot = HtmlBlockOpenTfoot (HtmlBlockTfoot | !HtmlBlockCloseTfoot .)* HtmlBlockCloseTfoot # - # source://rdoc//lib/rdoc/markdown.rb#7795 + # source://rdoc//lib/rdoc/markdown.rb#7835 def _HtmlBlockTfoot; end # HtmlBlockTh = HtmlBlockOpenTh (HtmlBlockTh | !HtmlBlockCloseTh .)* HtmlBlockCloseTh # - # source://rdoc//lib/rdoc/markdown.rb#7961 + # source://rdoc//lib/rdoc/markdown.rb#8001 def _HtmlBlockTh; end # HtmlBlockThead = HtmlBlockOpenThead (HtmlBlockThead | !HtmlBlockCloseThead .)* HtmlBlockCloseThead # - # source://rdoc//lib/rdoc/markdown.rb#8127 + # source://rdoc//lib/rdoc/markdown.rb#8167 def _HtmlBlockThead; end # HtmlBlockTr = HtmlBlockOpenTr (HtmlBlockTr | !HtmlBlockCloseTr .)* HtmlBlockCloseTr # - # source://rdoc//lib/rdoc/markdown.rb#8293 + # source://rdoc//lib/rdoc/markdown.rb#8333 def _HtmlBlockTr; end # HtmlBlockType = ("ADDRESS" | "BLOCKQUOTE" | "CENTER" | "DD" | "DIR" | "DIV" | "DL" | "DT" | "FIELDSET" | "FORM" | "FRAMESET" | "H1" | "H2" | "H3" | "H4" | "H5" | "H6" | "HR" | "ISINDEX" | "LI" | "MENU" | "NOFRAMES" | "NOSCRIPT" | "OL" | "P" | "PRE" | "SCRIPT" | "TABLE" | "TBODY" | "TD" | "TFOOT" | "TH" | "THEAD" | "TR" | "UL" | "address" | "blockquote" | "center" | "dd" | "dir" | "div" | "dl" | "dt" | "fieldset" | "form" | "frameset" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "hr" | "isindex" | "li" | "menu" | "noframes" | "noscript" | "ol" | "p" | "pre" | "script" | "table" | "tbody" | "td" | "tfoot" | "th" | "thead" | "tr" | "ul") # - # source://rdoc//lib/rdoc/markdown.rb#8961 + # source://rdoc//lib/rdoc/markdown.rb#9001 def _HtmlBlockType; end # HtmlBlockUl = HtmlBlockOpenUl (HtmlBlockUl | !HtmlBlockCloseUl .)* HtmlBlockCloseUl # - # source://rdoc//lib/rdoc/markdown.rb#6633 + # source://rdoc//lib/rdoc/markdown.rb#6673 def _HtmlBlockUl; end # HtmlCloseAnchor = "<" Spnl "/" ("a" | "A") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#2929 + # source://rdoc//lib/rdoc/markdown.rb#2969 def _HtmlCloseAnchor; end # HtmlComment = "" .)* "-->" # - # source://rdoc//lib/rdoc/markdown.rb#14437 + # source://rdoc//lib/rdoc/markdown.rb#14477 def _HtmlComment; end # HtmlOpenAnchor = "<" Spnl ("a" | "A") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#2873 + # source://rdoc//lib/rdoc/markdown.rb#2913 def _HtmlOpenAnchor; end # HtmlTag = "<" Spnl "/"? AlphanumericAscii+ Spnl HtmlAttribute* "/"? Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#14484 + # source://rdoc//lib/rdoc/markdown.rb#14524 def _HtmlTag; end # HtmlUnclosed = "<" Spnl HtmlUnclosedType Spnl HtmlAttribute* Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8838 + # source://rdoc//lib/rdoc/markdown.rb#8878 def _HtmlUnclosed; end # HtmlUnclosedType = ("HR" | "hr") # - # source://rdoc//lib/rdoc/markdown.rb#8888 + # source://rdoc//lib/rdoc/markdown.rb#8928 def _HtmlUnclosedType; end # Image = "!" ExplicitLinkWithLabel:a { "rdoc-image:#{a[:link]}:#{a[:label]}" } # - # source://rdoc//lib/rdoc/markdown.rb#10982 + # source://rdoc//lib/rdoc/markdown.rb#11022 def _Image; end # InStyleTags = StyleOpen (!StyleClose .)* StyleClose # - # source://rdoc//lib/rdoc/markdown.rb#9291 + # source://rdoc//lib/rdoc/markdown.rb#9331 def _InStyleTags; end # Indent = /\t| / # - # source://rdoc//lib/rdoc/markdown.rb#14882 + # source://rdoc//lib/rdoc/markdown.rb#14922 def _Indent; end # IndentedLine = Indent Line # - # source://rdoc//lib/rdoc/markdown.rb#14889 + # source://rdoc//lib/rdoc/markdown.rb#14929 def _IndentedLine; end # Inline = (Str | @Endline | UlOrStarLine | @Space | Strong | Emph | Strike | Image | Link | NoteReference | InlineNote | Code | RawHtml | Entity | EscapedChar | Symbol) # - # source://rdoc//lib/rdoc/markdown.rb#9596 + # source://rdoc//lib/rdoc/markdown.rb#9636 def _Inline; end # InlineNote = &{ notes? } "^[" @StartList:a (!"]" Inline:l { a << l })+ "]" { ref = [:inline, @note_order.length] @footnotes[ref] = paragraph a note_for ref } # - # source://rdoc//lib/rdoc/markdown.rb#15453 + # source://rdoc//lib/rdoc/markdown.rb#15493 def _InlineNote; end # Inlines = (!@Endline Inline:i { i } | @Endline:c !(&{ github? } Ticks3 /[^`\n]*$/) &Inline { c })+:chunks @Endline? { chunks } # - # source://rdoc//lib/rdoc/markdown.rb#9375 + # source://rdoc//lib/rdoc/markdown.rb#9415 def _Inlines; end # Label = "[" (!"^" &{ notes? } | &. &{ !notes? }) @StartList:a (!"]" Inline:l { a << l })* "]" { a.join.gsub(/\s+/, ' ') } # - # source://rdoc//lib/rdoc/markdown.rb#11929 + # source://rdoc//lib/rdoc/markdown.rb#11969 def _Label; end # Line = @RawLine:a { a } # - # source://rdoc//lib/rdoc/markdown.rb#14960 + # source://rdoc//lib/rdoc/markdown.rb#15000 def _Line; end # LineBreak = " " @NormalEndline { RDoc::Markup::HardBreak.new } # - # source://rdoc//lib/rdoc/markdown.rb#10052 + # source://rdoc//lib/rdoc/markdown.rb#10092 def _LineBreak; end # Link = (ExplicitLink | ReferenceLink | AutoLink) # - # source://rdoc//lib/rdoc/markdown.rb#11010 + # source://rdoc//lib/rdoc/markdown.rb#11050 def _Link; end # ListBlock = !@BlankLine Line:a ListBlockLine*:c { [a, *c] } # - # source://rdoc//lib/rdoc/markdown.rb#2558 + # source://rdoc//lib/rdoc/markdown.rb#2598 def _ListBlock; end # ListBlockLine = !@BlankLine !(Indent? (Bullet | Enumerator)) !HorizontalRule OptionallyIndentedLine # - # source://rdoc//lib/rdoc/markdown.rb#2803 + # source://rdoc//lib/rdoc/markdown.rb#2843 def _ListBlockLine; end # ListContinuationBlock = @StartList:a @BlankLine* { a << "\n" } (Indent ListBlock:b { a.concat b })+ { a } # - # source://rdoc//lib/rdoc/markdown.rb#2602 + # source://rdoc//lib/rdoc/markdown.rb#2642 def _ListContinuationBlock; end # ListItem = (Bullet | Enumerator) @StartList:a ListBlock:b { a << b } (ListContinuationBlock:c { a.push(*c) })* { list_item_from a } # - # source://rdoc//lib/rdoc/markdown.rb#2402 + # source://rdoc//lib/rdoc/markdown.rb#2442 def _ListItem; end # ListItemTight = (Bullet | Enumerator) ListBlock:a (!@BlankLine ListContinuationBlock:b { a.push(*b) })* !ListContinuationBlock { list_item_from a } # - # source://rdoc//lib/rdoc/markdown.rb#2478 + # source://rdoc//lib/rdoc/markdown.rb#2518 def _ListItemTight; end # ListLoose = @StartList:a (ListItem:b @BlankLine* { a << b })+ { a } # - # source://rdoc//lib/rdoc/markdown.rb#2314 + # source://rdoc//lib/rdoc/markdown.rb#2354 def _ListLoose; end # ListTight = ListItemTight+:a @BlankLine* !(Bullet | Enumerator) { a } # - # source://rdoc//lib/rdoc/markdown.rb#2249 + # source://rdoc//lib/rdoc/markdown.rb#2289 def _ListTight; end # Newline = %literals.Newline # - # source://rdoc//lib/rdoc/markdown.rb#14748 + # source://rdoc//lib/rdoc/markdown.rb#14788 def _Newline; end # NonblankIndentedLine = !@BlankLine IndentedLine # - # source://rdoc//lib/rdoc/markdown.rb#1831 + # source://rdoc//lib/rdoc/markdown.rb#1871 def _NonblankIndentedLine; end # NonindentSpace = / {0,3}/ # - # source://rdoc//lib/rdoc/markdown.rb#14875 + # source://rdoc//lib/rdoc/markdown.rb#14915 def _NonindentSpace; end # Nonspacechar = !@Spacechar !@Newline . # - # source://rdoc//lib/rdoc/markdown.rb#14574 + # source://rdoc//lib/rdoc/markdown.rb#14614 def _Nonspacechar; end # NormalChar = !(@SpecialChar | @Spacechar | @Newline) . # - # source://rdoc//lib/rdoc/markdown.rb#14675 + # source://rdoc//lib/rdoc/markdown.rb#14715 def _NormalChar; end # NormalEndline = @Sp @Newline !@BlankLine !">" !AtxStart !(Line /={1,}|-{1,}/ @Newline) { "\n" } # - # source://rdoc//lib/rdoc/markdown.rb#9948 + # source://rdoc//lib/rdoc/markdown.rb#9988 def _NormalEndline; end # Note = &{ notes? } @NonindentSpace RawNoteReference:ref ":" @Sp @StartList:a RawNoteBlock:i { a.concat i } (&Indent RawNoteBlock:i { a.concat i })* { @footnotes[ref] = paragraph a nil } # - # source://rdoc//lib/rdoc/markdown.rb#15355 + # source://rdoc//lib/rdoc/markdown.rb#15395 def _Note; end # NoteReference = &{ notes? } RawNoteReference:ref { note_for ref } # - # source://rdoc//lib/rdoc/markdown.rb#15229 + # source://rdoc//lib/rdoc/markdown.rb#15269 def _NoteReference; end # Notes = (Note | SkipBlock)* # - # source://rdoc//lib/rdoc/markdown.rb#15560 + # source://rdoc//lib/rdoc/markdown.rb#15600 def _Notes; end # OptionallyIndentedLine = Indent? Line # - # source://rdoc//lib/rdoc/markdown.rb#14910 + # source://rdoc//lib/rdoc/markdown.rb#14950 def _OptionallyIndentedLine; end # OrderedList = &Enumerator (ListTight | ListLoose):a { RDoc::Markup::List.new(:NUMBER, *a) } # - # source://rdoc//lib/rdoc/markdown.rb#2762 + # source://rdoc//lib/rdoc/markdown.rb#2802 def _OrderedList; end # Para = @NonindentSpace Inlines:a @BlankLine+ { paragraph a } # - # source://rdoc//lib/rdoc/markdown.rb#1014 + # source://rdoc//lib/rdoc/markdown.rb#1054 def _Para; end # Plain = Inlines:a { paragraph a } # - # source://rdoc//lib/rdoc/markdown.rb#1057 + # source://rdoc//lib/rdoc/markdown.rb#1097 def _Plain; end # Quoted = ("\"" (!"\"" .)* "\"" | "'" (!"'" .)* "'") # - # source://rdoc//lib/rdoc/markdown.rb#14197 + # source://rdoc//lib/rdoc/markdown.rb#14237 def _Quoted; end # RawHtml = < (HtmlComment | HtmlBlockScript | HtmlTag) > { if html? then text else '' end } # - # source://rdoc//lib/rdoc/markdown.rb#14130 + # source://rdoc//lib/rdoc/markdown.rb#14170 def _RawHtml; end # RawLine = (< /[^\r\n]*/ @Newline > | < .+ > @Eof) { text } # - # source://rdoc//lib/rdoc/markdown.rb#14983 + # source://rdoc//lib/rdoc/markdown.rb#15023 def _RawLine; end # RawNoteBlock = @StartList:a (!@BlankLine !RawNoteReference OptionallyIndentedLine:l { a << l })+ < @BlankLine* > { a << text } { a } # - # source://rdoc//lib/rdoc/markdown.rb#15582 + # source://rdoc//lib/rdoc/markdown.rb#15622 def _RawNoteBlock; end # RawNoteReference = "[^" < (!@Newline !"]" .)+ > "]" { text } # - # source://rdoc//lib/rdoc/markdown.rb#15259 + # source://rdoc//lib/rdoc/markdown.rb#15299 def _RawNoteReference; end # RefSrc = < Nonspacechar+ > { text } # - # source://rdoc//lib/rdoc/markdown.rb#12048 + # source://rdoc//lib/rdoc/markdown.rb#12088 def _RefSrc; end # RefTitle = (RefTitleSingle | RefTitleDouble | RefTitleParens | EmptyTitle) # - # source://rdoc//lib/rdoc/markdown.rb#12084 + # source://rdoc//lib/rdoc/markdown.rb#12124 def _RefTitle; end # RefTitleDouble = Spnl "\"" < (!("\"" @Sp @Newline | @Newline) .)* > "\"" { text } # - # source://rdoc//lib/rdoc/markdown.rb#12207 + # source://rdoc//lib/rdoc/markdown.rb#12247 def _RefTitleDouble; end # RefTitleParens = Spnl "(" < (!(")" @Sp @Newline | @Newline) .)* > ")" { text } # - # source://rdoc//lib/rdoc/markdown.rb#12299 + # source://rdoc//lib/rdoc/markdown.rb#12339 def _RefTitleParens; end # RefTitleSingle = Spnl "'" < (!("'" @Sp @Newline | @Newline) .)* > "'" { text } # - # source://rdoc//lib/rdoc/markdown.rb#12115 + # source://rdoc//lib/rdoc/markdown.rb#12155 def _RefTitleSingle; end # Reference = @NonindentSpace !"[]" Label:label ":" Spnl RefSrc:link RefTitle @BlankLine+ { # TODO use title reference label, link nil } # - # source://rdoc//lib/rdoc/markdown.rb#11854 + # source://rdoc//lib/rdoc/markdown.rb#11894 def _Reference; end # ReferenceLink = (ReferenceLinkDouble | ReferenceLinkSingle) # - # source://rdoc//lib/rdoc/markdown.rb#11031 + # source://rdoc//lib/rdoc/markdown.rb#11071 def _ReferenceLink; end # ReferenceLinkDouble = Label:content < Spnl > !"[]" Label:label { link_to content, label, text } # - # source://rdoc//lib/rdoc/markdown.rb#11049 + # source://rdoc//lib/rdoc/markdown.rb#11089 def _ReferenceLinkDouble; end # ReferenceLinkSingle = Label:content < (Spnl "[]")? > { link_to content, content, text } # - # source://rdoc//lib/rdoc/markdown.rb#11095 + # source://rdoc//lib/rdoc/markdown.rb#11135 def _ReferenceLinkSingle; end # References = (Reference | SkipBlock)* # - # source://rdoc//lib/rdoc/markdown.rb#12391 + # source://rdoc//lib/rdoc/markdown.rb#12431 def _References; end # SetextBottom1 = /={1,}/ @Newline # - # source://rdoc//lib/rdoc/markdown.rb#1272 + # source://rdoc//lib/rdoc/markdown.rb#1312 def _SetextBottom1; end # SetextBottom2 = /-{1,}/ @Newline # - # source://rdoc//lib/rdoc/markdown.rb#1293 + # source://rdoc//lib/rdoc/markdown.rb#1333 def _SetextBottom2; end # SetextHeading = (SetextHeading1 | SetextHeading2) # - # source://rdoc//lib/rdoc/markdown.rb#1254 + # source://rdoc//lib/rdoc/markdown.rb#1294 def _SetextHeading; end # SetextHeading1 = &(@RawLine SetextBottom1) @StartList:a (!@Endline Inline:b { a << b })+ @Sp @Newline SetextBottom1 { RDoc::Markup::Heading.new(1, a.join) } # - # source://rdoc//lib/rdoc/markdown.rb#1314 + # source://rdoc//lib/rdoc/markdown.rb#1354 def _SetextHeading1; end # SetextHeading2 = &(@RawLine SetextBottom2) @StartList:a (!@Endline Inline:b { a << b })+ @Sp @Newline SetextBottom2 { RDoc::Markup::Heading.new(2, a.join) } # - # source://rdoc//lib/rdoc/markdown.rb#1436 + # source://rdoc//lib/rdoc/markdown.rb#1476 def _SetextHeading2; end # SkipBlock = (HtmlBlock | (!"#" !SetextBottom1 !SetextBottom2 !@BlankLine @RawLine)+ @BlankLine* | @BlankLine+ | @RawLine) # - # source://rdoc//lib/rdoc/markdown.rb#15062 + # source://rdoc//lib/rdoc/markdown.rb#15102 def _SkipBlock; end # Source = ("<" < SourceContents > ">" | < SourceContents >) { text } # - # source://rdoc//lib/rdoc/markdown.rb#11228 + # source://rdoc//lib/rdoc/markdown.rb#11268 def _Source; end # SourceContents = ((!"(" !")" !">" Nonspacechar)+ | "(" SourceContents ")")* # - # source://rdoc//lib/rdoc/markdown.rb#11288 + # source://rdoc//lib/rdoc/markdown.rb#11328 def _SourceContents; end # Sp = @Spacechar* # - # source://rdoc//lib/rdoc/markdown.rb#14606 + # source://rdoc//lib/rdoc/markdown.rb#14646 def _Sp; end # Space = @Spacechar+ { " " } # - # source://rdoc//lib/rdoc/markdown.rb#9656 + # source://rdoc//lib/rdoc/markdown.rb#9696 def _Space; end # Spacechar = %literals.Spacechar # - # source://rdoc//lib/rdoc/markdown.rb#14755 + # source://rdoc//lib/rdoc/markdown.rb#14795 def _Spacechar; end # SpecialChar = (/[~*_`&\[\]() { text } | < @Spacechar /\*+/ &@Spacechar > { text }) # - # source://rdoc//lib/rdoc/markdown.rb#10139 + # source://rdoc//lib/rdoc/markdown.rb#10179 def _StarLine; end # StartList = &. { [] } # - # source://rdoc//lib/rdoc/markdown.rb#14936 + # source://rdoc//lib/rdoc/markdown.rb#14976 def _StartList; end # Str = @StartList:a < @NormalChar+ > { a = text } (StrChunk:c { a << c })* { a } # - # source://rdoc//lib/rdoc/markdown.rb#9688 + # source://rdoc//lib/rdoc/markdown.rb#9728 def _Str; end # StrChunk = < (@NormalChar | /_+/ &Alphanumeric)+ > { text } # - # source://rdoc//lib/rdoc/markdown.rb#9761 + # source://rdoc//lib/rdoc/markdown.rb#9801 def _StrChunk; end # Strike = &{ strike? } "~~" !@Whitespace @StartList:a (!"~~" Inline:b { a << b })+ "~~" { strike a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10871 + # source://rdoc//lib/rdoc/markdown.rb#10911 def _Strike; end # Strong = (StrongStar | StrongUl) # - # source://rdoc//lib/rdoc/markdown.rb#10645 + # source://rdoc//lib/rdoc/markdown.rb#10685 def _Strong; end # StrongStar = "**" !@Whitespace @StartList:a (!"**" Inline:b { a << b })+ "**" { strong a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10663 + # source://rdoc//lib/rdoc/markdown.rb#10703 def _StrongStar; end # StrongUl = "__" !@Whitespace @StartList:a (!"__" Inline:b { a << b })+ "__" { strong a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10767 + # source://rdoc//lib/rdoc/markdown.rb#10807 def _StrongUl; end # StyleBlock = < InStyleTags > @BlankLine* { if css? then RDoc::Markup::Raw.new text end } # - # source://rdoc//lib/rdoc/markdown.rb#9338 + # source://rdoc//lib/rdoc/markdown.rb#9378 def _StyleBlock; end # StyleClose = "<" Spnl "/" ("style" | "STYLE") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#9239 + # source://rdoc//lib/rdoc/markdown.rb#9279 def _StyleClose; end # StyleOpen = "<" Spnl ("style" | "STYLE") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#9183 + # source://rdoc//lib/rdoc/markdown.rb#9223 def _StyleOpen; end # Symbol = < @SpecialChar > { text } # - # source://rdoc//lib/rdoc/markdown.rb#10079 + # source://rdoc//lib/rdoc/markdown.rb#10119 def _Symbol; end - # Table = &{ github? } TableHead:header TableLine:line TableRow+:body { table = RDoc::Markup::Table.new(header, line, body) } + # Table = &{ github? } TableHead:header TableLine:line TableRow+:body { table = RDoc::Markup::Table.new(header, line, body) parse_table_cells(table) } # - # source://rdoc//lib/rdoc/markdown.rb#15959 + # source://rdoc//lib/rdoc/markdown.rb#15999 def _Table; end # TableAlign = < /:?-+:?/ > @Sp { text.start_with?(":") ? (text.end_with?(":") ? :center : :left) : (text.end_with?(":") ? :right : nil) } # - # source://rdoc//lib/rdoc/markdown.rb#16326 + # source://rdoc//lib/rdoc/markdown.rb#16369 def _TableAlign; end # TableAlign2 = "|" @Sp TableAlign # - # source://rdoc//lib/rdoc/markdown.rb#16300 + # source://rdoc//lib/rdoc/markdown.rb#16343 def _TableAlign2; end # TableHead = TableItem2+:items "|"? @Newline { items } # - # source://rdoc//lib/rdoc/markdown.rb#16015 + # source://rdoc//lib/rdoc/markdown.rb#16058 def _TableHead; end # TableItem = < /(?:\\.|[^|\n])+/ > { text.strip.gsub(/\\(.)/, '\1') } # - # source://rdoc//lib/rdoc/markdown.rb#16181 + # source://rdoc//lib/rdoc/markdown.rb#16224 def _TableItem; end # TableItem2 = "|" TableItem # - # source://rdoc//lib/rdoc/markdown.rb#16160 + # source://rdoc//lib/rdoc/markdown.rb#16203 def _TableItem2; end # TableLine = ((TableAlign:align1 TableAlign2*:aligns {[align1, *aligns] }):line | TableAlign2+:line) "|"? @Newline { line } # - # source://rdoc//lib/rdoc/markdown.rb#16207 + # source://rdoc//lib/rdoc/markdown.rb#16250 def _TableLine; end # TableRow = ((TableItem:item1 TableItem2*:items { [item1, *items] }):row | TableItem2+:row) "|"? @Newline { row } # - # source://rdoc//lib/rdoc/markdown.rb#16067 + # source://rdoc//lib/rdoc/markdown.rb#16110 def _TableRow; end # TerminalEndline = @Sp @Newline @Eof # - # source://rdoc//lib/rdoc/markdown.rb#10026 + # source://rdoc//lib/rdoc/markdown.rb#10066 def _TerminalEndline; end # Ticks1 = "`" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12413 + # source://rdoc//lib/rdoc/markdown.rb#12453 def _Ticks1; end # Ticks2 = "``" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12437 + # source://rdoc//lib/rdoc/markdown.rb#12477 def _Ticks2; end # Ticks3 = "```" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12461 + # source://rdoc//lib/rdoc/markdown.rb#12501 def _Ticks3; end # Ticks4 = "````" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12485 + # source://rdoc//lib/rdoc/markdown.rb#12525 def _Ticks4; end # Ticks5 = "`````" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12509 + # source://rdoc//lib/rdoc/markdown.rb#12549 def _Ticks5; end # Title = (TitleSingle | TitleDouble | ""):a { a } # - # source://rdoc//lib/rdoc/markdown.rb#11405 + # source://rdoc//lib/rdoc/markdown.rb#11445 def _Title; end # TitleDouble = "\"" (!("\"" @Sp (")" | @Newline)) .)* "\"" # - # source://rdoc//lib/rdoc/markdown.rb#11519 + # source://rdoc//lib/rdoc/markdown.rb#11559 def _TitleDouble; end # TitleSingle = "'" (!("'" @Sp (")" | @Newline)) .)* "'" # - # source://rdoc//lib/rdoc/markdown.rb#11442 + # source://rdoc//lib/rdoc/markdown.rb#11482 def _TitleSingle; end # UlLine = (< /_{4,}/ > { text } | < @Spacechar /_+/ &@Spacechar > { text }) # - # source://rdoc//lib/rdoc/markdown.rb#10216 + # source://rdoc//lib/rdoc/markdown.rb#10256 def _UlLine; end # UlOrStarLine = (UlLine | StarLine):a { a } # - # source://rdoc//lib/rdoc/markdown.rb#10105 + # source://rdoc//lib/rdoc/markdown.rb#10145 def _UlOrStarLine; end # Verbatim = VerbatimChunk+:a { RDoc::Markup::Verbatim.new(*a.flatten) } # - # source://rdoc//lib/rdoc/markdown.rb#1905 + # source://rdoc//lib/rdoc/markdown.rb#1945 def _Verbatim; end # VerbatimChunk = @BlankLine*:a NonblankIndentedLine+:b { a.concat b } # - # source://rdoc//lib/rdoc/markdown.rb#1855 + # source://rdoc//lib/rdoc/markdown.rb#1895 def _VerbatimChunk; end # Whitespace = (@Spacechar | @Newline) # - # source://rdoc//lib/rdoc/markdown.rb#10311 + # source://rdoc//lib/rdoc/markdown.rb#10351 def _Whitespace; end # root = Doc # - # source://rdoc//lib/rdoc/markdown.rb#892 + # source://rdoc//lib/rdoc/markdown.rb#932 def _root; end # source://rdoc//lib/rdoc/markdown.rb#502 @@ -4232,12 +4229,22 @@ class RDoc::Markdown # Parses `markdown` into an RDoc::Document # - # source://rdoc//lib/rdoc/markdown.rb#808 + # source://rdoc//lib/rdoc/markdown.rb#414 def parse(markdown); end + # Parses inline markdown in a single table cell + # + # source://rdoc//lib/rdoc/markdown.rb#903 + def parse_cell_inline(text); end + + # Parses inline markdown in table cells + # + # source://rdoc//lib/rdoc/markdown.rb#888 + def parse_table_cells(table); end + # The internal kpeg parse method # - # source://rdoc//lib/rdoc/markdown.rb#414 + # source://rdoc//lib/rdoc/markdown.rb#787 def peg_parse(rule = T.unsafe(nil)); end # Returns the value of attribute pos. @@ -4291,7 +4298,7 @@ class RDoc::Markdown # :stopdoc: # - # source://rdoc//lib/rdoc/markdown.rb#887 + # source://rdoc//lib/rdoc/markdown.rb#927 def setup_foreign_grammar; end # Prepares for parsing +str+. If you define a custom initialize you must @@ -4336,7 +4343,7 @@ class RDoc::Markdown # # @return [Markdown] a new instance of Markdown # - # source://rdoc//lib/rdoc/markdown.rb#188 + # source://rdoc//lib/rdoc/markdown.rb#663 def orig_initialize(str, debug = T.unsafe(nil)); end class << self @@ -4362,63 +4369,92 @@ class RDoc::Markdown::KpegPosInfo < ::Struct # Returns the value of attribute char # # @return [Object] the current value of char + # + # source://rdoc//lib/rdoc/markdown.rb#257 def char; end # Sets the attribute char # # @param value [Object] the value to set the attribute char to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markdown.rb#257 def char=(_); end # Returns the value of attribute col # # @return [Object] the current value of col + # + # source://rdoc//lib/rdoc/markdown.rb#257 def col; end # Sets the attribute col # # @param value [Object] the value to set the attribute col to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markdown.rb#257 def col=(_); end # Returns the value of attribute line # # @return [Object] the current value of line + # + # source://rdoc//lib/rdoc/markdown.rb#257 def line; end # Sets the attribute line # # @param value [Object] the value to set the attribute line to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markdown.rb#257 def line=(_); end # Returns the value of attribute lno # # @return [Object] the current value of lno + # + # source://rdoc//lib/rdoc/markdown.rb#257 def lno; end # Sets the attribute lno # # @param value [Object] the value to set the attribute lno to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markdown.rb#257 def lno=(_); end # Returns the value of attribute pos # # @return [Object] the current value of pos + # + # source://rdoc//lib/rdoc/markdown.rb#257 def pos; end # Sets the attribute pos # # @param value [Object] the value to set the attribute pos to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markdown.rb#257 def pos=(_); end class << self + # source://rdoc//lib/rdoc/markdown.rb#257 def [](*_arg0); end + + # source://rdoc//lib/rdoc/markdown.rb#257 def inspect; end + + # source://rdoc//lib/rdoc/markdown.rb#257 def keyword_init?; end + + # source://rdoc//lib/rdoc/markdown.rb#257 def members; end + + # source://rdoc//lib/rdoc/markdown.rb#257 def new(*_arg0); end end end @@ -4611,63 +4647,92 @@ class RDoc::Markdown::Literals::KpegPosInfo < ::Struct # Returns the value of attribute char # # @return [Object] the current value of char + # + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def char; end # Sets the attribute char # # @param value [Object] the value to set the attribute char to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def char=(_); end # Returns the value of attribute col # # @return [Object] the current value of col + # + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def col; end # Sets the attribute col # # @param value [Object] the value to set the attribute col to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def col=(_); end # Returns the value of attribute line # # @return [Object] the current value of line + # + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def line; end # Sets the attribute line # # @param value [Object] the value to set the attribute line to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def line=(_); end # Returns the value of attribute lno # # @return [Object] the current value of lno + # + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def lno; end # Sets the attribute lno # # @param value [Object] the value to set the attribute lno to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def lno=(_); end # Returns the value of attribute pos # # @return [Object] the current value of pos + # + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def pos; end # Sets the attribute pos # # @param value [Object] the value to set the attribute pos to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def pos=(_); end class << self + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def [](*_arg0); end + + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def inspect; end + + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def keyword_init?; end + + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def members; end + + # source://rdoc//lib/rdoc/markdown/literals.rb#86 def new(*_arg0); end end end @@ -4856,6 +4921,53 @@ class RDoc::Markup::AttrChanger < ::Struct # source://rdoc//lib/rdoc/markup/attr_changer.rb#14 def to_s; end + + # Returns the value of attribute turn_off + # + # @return [Object] the current value of turn_off + # + # source://rdoc//lib/rdoc/markup/attr_changer.rb#4 + def turn_off; end + + # Sets the attribute turn_off + # + # @param value [Object] the value to set the attribute turn_off to. + # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markup/attr_changer.rb#4 + def turn_off=(_); end + + # Returns the value of attribute turn_on + # + # @return [Object] the current value of turn_on + # + # source://rdoc//lib/rdoc/markup/attr_changer.rb#4 + def turn_on; end + + # Sets the attribute turn_on + # + # @param value [Object] the value to set the attribute turn_on to. + # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markup/attr_changer.rb#4 + def turn_on=(_); end + + class << self + # source://rdoc//lib/rdoc/markup/attr_changer.rb#4 + def [](*_arg0); end + + # source://rdoc//lib/rdoc/markup/attr_changer.rb#4 + def inspect; end + + # source://rdoc//lib/rdoc/markup/attr_changer.rb#4 + def keyword_init?; end + + # source://rdoc//lib/rdoc/markup/attr_changer.rb#4 + def members; end + + # source://rdoc//lib/rdoc/markup/attr_changer.rb#4 + def new(*_arg0); end + end end # An array of attributes which parallels the characters in a string. @@ -5327,6 +5439,74 @@ class RDoc::Markup::Formatter end end +# Tag for inline markup containing a +bit+ for the bitmask and the +on+ and +# +off+ triggers. +# +# source://rdoc//lib/rdoc/markup/formatter.rb#19 +class RDoc::Markup::Formatter::InlineTag < ::Struct + # Returns the value of attribute bit + # + # @return [Object] the current value of bit + # + # source://rdoc//lib/rdoc/markup/formatter.rb#19 + def bit; end + + # Sets the attribute bit + # + # @param value [Object] the value to set the attribute bit to. + # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markup/formatter.rb#19 + def bit=(_); end + + # Returns the value of attribute off + # + # @return [Object] the current value of off + # + # source://rdoc//lib/rdoc/markup/formatter.rb#19 + def off; end + + # Sets the attribute off + # + # @param value [Object] the value to set the attribute off to. + # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markup/formatter.rb#19 + def off=(_); end + + # Returns the value of attribute on + # + # @return [Object] the current value of on + # + # source://rdoc//lib/rdoc/markup/formatter.rb#19 + def on; end + + # Sets the attribute on + # + # @param value [Object] the value to set the attribute on to. + # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/markup/formatter.rb#19 + def on=(_); end + + class << self + # source://rdoc//lib/rdoc/markup/formatter.rb#19 + def [](*_arg0); end + + # source://rdoc//lib/rdoc/markup/formatter.rb#19 + def inspect; end + + # source://rdoc//lib/rdoc/markup/formatter.rb#19 + def keyword_init?; end + + # source://rdoc//lib/rdoc/markup/formatter.rb#19 + def members; end + + # source://rdoc//lib/rdoc/markup/formatter.rb#19 + def new(*_arg0); end + end +end + # A hard-break in the middle of a paragraph. # # source://rdoc//lib/rdoc/markup/hard_break.rb#5 @@ -5361,13 +5541,40 @@ class RDoc::Markup::Heading < ::Struct # source://rdoc//lib/rdoc/markup/heading.rb#55 def label(context = T.unsafe(nil)); end + # source://rdoc//lib/rdoc/markup/heading.rb#6 + def level; end + + # source://rdoc//lib/rdoc/markup/heading.rb#6 + def level=(_); end + # source://rdoc//lib/rdoc/markup/heading.rb#68 def plain_html; end # source://rdoc//lib/rdoc/markup/heading.rb#78 def pretty_print(q); end + # source://rdoc//lib/rdoc/markup/heading.rb#6 + def text; end + + # source://rdoc//lib/rdoc/markup/heading.rb#6 + def text=(_); end + class << self + # source://rdoc//lib/rdoc/markup/heading.rb#6 + def [](*_arg0); end + + # source://rdoc//lib/rdoc/markup/heading.rb#6 + def inspect; end + + # source://rdoc//lib/rdoc/markup/heading.rb#6 + def keyword_init?; end + + # source://rdoc//lib/rdoc/markup/heading.rb#6 + def members; end + + # source://rdoc//lib/rdoc/markup/heading.rb#6 + def new(*_arg0); end + # source://rdoc//lib/rdoc/markup/heading.rb#22 def to_html; end @@ -6129,7 +6336,7 @@ end # Outputs RDoc markup as HTML. # -# source://rdoc//lib/rdoc/markup/to_html.rb#7 +# source://rdoc//lib/rdoc/markup/to_html.rb#8 class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter include ::RDoc::Text @@ -6137,114 +6344,114 @@ class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter # # @return [ToHtml] a new instance of ToHtml # - # source://rdoc//lib/rdoc/markup/to_html.rb#45 + # source://rdoc//lib/rdoc/markup/to_html.rb#46 def initialize(options, markup = T.unsafe(nil)); end # Adds +blank_line+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#296 + # source://rdoc//lib/rdoc/markup/to_html.rb#300 def accept_blank_line(blank_line); end # Adds +block_quote+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#195 + # source://rdoc//lib/rdoc/markup/to_html.rb#199 def accept_block_quote(block_quote); end # Adds +heading+ to the output. The headings greater than 6 are trimmed to # level 6. # - # source://rdoc//lib/rdoc/markup/to_html.rb#304 + # source://rdoc//lib/rdoc/markup/to_html.rb#308 def accept_heading(heading); end # Finishes consumption of +list+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#267 + # source://rdoc//lib/rdoc/markup/to_html.rb#271 def accept_list_end(list); end # Finishes consumption of +list_item+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#289 + # source://rdoc//lib/rdoc/markup/to_html.rb#293 def accept_list_item_end(list_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#278 + # source://rdoc//lib/rdoc/markup/to_html.rb#282 def accept_list_item_start(list_item); end # Prepares the visitor for consuming +list+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#258 + # source://rdoc//lib/rdoc/markup/to_html.rb#262 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#208 + # source://rdoc//lib/rdoc/markup/to_html.rb#212 def accept_paragraph(paragraph); end # Adds +raw+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#325 + # source://rdoc//lib/rdoc/markup/to_html.rb#329 def accept_raw(raw); end # Adds +rule+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#251 + # source://rdoc//lib/rdoc/markup/to_html.rb#255 def accept_rule(rule); end # Adds +table+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#332 + # source://rdoc//lib/rdoc/markup/to_html.rb#336 def accept_table(header, body, aligns); end # Adds +verbatim+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#221 + # source://rdoc//lib/rdoc/markup/to_html.rb#225 def accept_verbatim(verbatim); end # The RDoc::CodeObject HTML is being generated for. This is used to # generate namespaced URI fragments # - # source://rdoc//lib/rdoc/markup/to_html.rb#33 + # source://rdoc//lib/rdoc/markup/to_html.rb#34 def code_object; end # The RDoc::CodeObject HTML is being generated for. This is used to # generate namespaced URI fragments # - # source://rdoc//lib/rdoc/markup/to_html.rb#33 + # source://rdoc//lib/rdoc/markup/to_html.rb#34 def code_object=(_arg0); end # CGI-escapes +text+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#357 + # source://rdoc//lib/rdoc/markup/to_html.rb#361 def convert_string(text); end # Returns the generated output # - # source://rdoc//lib/rdoc/markup/to_html.rb#188 + # source://rdoc//lib/rdoc/markup/to_html.rb#192 def end_accepting; end # Path to this document for relative links # - # source://rdoc//lib/rdoc/markup/to_html.rb#38 + # source://rdoc//lib/rdoc/markup/to_html.rb#39 def from_path; end # Path to this document for relative links # - # source://rdoc//lib/rdoc/markup/to_html.rb#38 + # source://rdoc//lib/rdoc/markup/to_html.rb#39 def from_path=(_arg0); end # Generate a link to +url+ with content +text+. Handles the special cases # for img: and link: described under handle_regexp_HYPERLINK # - # source://rdoc//lib/rdoc/markup/to_html.rb#365 + # source://rdoc//lib/rdoc/markup/to_html.rb#369 def gen_url(url, text); end - # source://rdoc//lib/rdoc/markup/to_html.rb#85 + # source://rdoc//lib/rdoc/markup/to_html.rb#86 def handle_RDOCLINK(url); end # +target+ is a
# - # source://rdoc//lib/rdoc/markup/to_html.rb#115 + # source://rdoc//lib/rdoc/markup/to_html.rb#119 def handle_regexp_HARD_BREAK(target); end # +target+ is a potential link. The following schemes are handled: @@ -6258,7 +6465,7 @@ class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter # link::: # Reference to a local file relative to the output directory. # - # source://rdoc//lib/rdoc/markup/to_html.rb#131 + # source://rdoc//lib/rdoc/markup/to_html.rb#135 def handle_regexp_HYPERLINK(target); end # +target+ is an rdoc-schemed link that will be converted into a hyperlink. @@ -6269,76 +6476,76 @@ class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter # For the +rdoc-label+ scheme the footnote and label prefixes are stripped # when creating a link. All other contents will be linked verbatim. # - # source://rdoc//lib/rdoc/markup/to_html.rb#146 + # source://rdoc//lib/rdoc/markup/to_html.rb#150 def handle_regexp_RDOCLINK(target); end # This +target+ is a link where the label is different from the URL # label[url] or {long label}[url] # - # source://rdoc//lib/rdoc/markup/to_html.rb#154 + # source://rdoc//lib/rdoc/markup/to_html.rb#158 def handle_regexp_TIDYLINK(target); end # Determines the HTML list element for +list_type+ and +open_tag+ # # @raise [RDoc::Error] # - # source://rdoc//lib/rdoc/markup/to_html.rb#390 + # source://rdoc//lib/rdoc/markup/to_html.rb#394 def html_list_name(list_type, open_tag); end - # source://rdoc//lib/rdoc/markup/to_html.rb#26 + # source://rdoc//lib/rdoc/markup/to_html.rb#27 def in_list_entry; end # Adds regexp handlings about link notations. # - # source://rdoc//lib/rdoc/markup/to_html.rb#80 + # source://rdoc//lib/rdoc/markup/to_html.rb#81 def init_link_notation_regexp_handlings; end # Adds regexp handlings. # - # source://rdoc//lib/rdoc/markup/to_html.rb#70 + # source://rdoc//lib/rdoc/markup/to_html.rb#71 def init_regexp_handlings; end # Maps attributes to HTML tags # - # source://rdoc//lib/rdoc/markup/to_html.rb#399 + # source://rdoc//lib/rdoc/markup/to_html.rb#403 def init_tags; end - # source://rdoc//lib/rdoc/markup/to_html.rb#27 + # source://rdoc//lib/rdoc/markup/to_html.rb#28 def list; end # Returns the HTML end-tag for +list_type+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#425 + # source://rdoc//lib/rdoc/markup/to_html.rb#429 def list_end_for(list_type); end # Returns the HTML tag for +list_type+, possible using a label from # +list_item+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#409 + # source://rdoc//lib/rdoc/markup/to_html.rb#413 def list_item_start(list_item, list_type); end # Returns true if text is valid ruby syntax # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/to_html.rb#439 + # source://rdoc//lib/rdoc/markup/to_html.rb#443 def parseable?(text); end - # source://rdoc//lib/rdoc/markup/to_html.rb#25 + # source://rdoc//lib/rdoc/markup/to_html.rb#26 def res; end # Prepares the visitor for HTML generation # - # source://rdoc//lib/rdoc/markup/to_html.rb#179 + # source://rdoc//lib/rdoc/markup/to_html.rb#183 def start_accepting; end # Converts +item+ to HTML using RDoc::Text#to_html # - # source://rdoc//lib/rdoc/markup/to_html.rb#453 + # source://rdoc//lib/rdoc/markup/to_html.rb#457 def to_html(item); end end -# source://rdoc//lib/rdoc/markup/to_html.rb#65 +# source://rdoc//lib/rdoc/markup/to_html.rb#66 RDoc::Markup::ToHtml::URL_CHARACTERS_REGEXP_STR = T.let(T.unsafe(nil), String) # Subclass of the RDoc::Markup::ToHtml class that supports looking up method @@ -6467,12 +6674,12 @@ class RDoc::Markup::ToHtmlSnippet < ::RDoc::Markup::ToHtml # Raw sections are untrusted and ignored # - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#62 def accept_raw(*node); end # Rules are ignored # - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#67 def accept_rule(*node); end # Adds +verbatim+ to the output @@ -6583,22 +6790,22 @@ class RDoc::Markup::ToJoinedParagraph < ::RDoc::Markup::Formatter # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#12 def initialize; end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#35 def accept_block_quote(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#36 def accept_heading(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#37 def accept_list_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#38 def accept_list_item_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#39 def accept_list_item_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#40 def accept_list_start(*node); end # Converts the parts of +paragraph+ to a single entry. @@ -6606,16 +6813,16 @@ class RDoc::Markup::ToJoinedParagraph < ::RDoc::Markup::Formatter # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#25 def accept_paragraph(paragraph); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#41 def accept_raw(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#42 def accept_rule(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#44 def accept_table(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#43 def accept_verbatim(*node); end # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#19 @@ -6629,74 +6836,74 @@ end # converted to their link part and cross-reference links have the suppression # marks removed (\\SomeClass is converted to SomeClass). # -# source://rdoc//lib/rdoc/markup/to_label.rb#9 +# source://rdoc//lib/rdoc/markup/to_label.rb#10 class RDoc::Markup::ToLabel < ::RDoc::Markup::Formatter # Creates a new formatter that will output HTML-safe labels # # @return [ToLabel] a new instance of ToLabel # - # source://rdoc//lib/rdoc/markup/to_label.rb#16 + # source://rdoc//lib/rdoc/markup/to_label.rb#17 def initialize(markup = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#60 def accept_blank_line(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#61 def accept_block_quote(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#62 def accept_heading(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#63 def accept_list_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#64 def accept_list_item_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#65 def accept_list_item_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#66 def accept_list_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#67 def accept_paragraph(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#68 def accept_raw(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#69 def accept_rule(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#70 def accept_verbatim(*node); end # Converts +text+ to an HTML-safe label # - # source://rdoc//lib/rdoc/markup/to_label.rb#32 + # source://rdoc//lib/rdoc/markup/to_label.rb#33 def convert(text); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#71 def end_accepting(*node); end # Converts the CROSSREF +target+ to plain text, removing the suppression # marker, if any # - # source://rdoc//lib/rdoc/markup/to_label.rb#42 + # source://rdoc//lib/rdoc/markup/to_label.rb#43 def handle_regexp_CROSSREF(target); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#72 def handle_regexp_HARD_BREAK(*node); end # Converts the TIDYLINK +target+ to just the text part # - # source://rdoc//lib/rdoc/markup/to_label.rb#51 + # source://rdoc//lib/rdoc/markup/to_label.rb#52 def handle_regexp_TIDYLINK(target); end - # source://rdoc//lib/rdoc/markup/to_label.rb#11 + # source://rdoc//lib/rdoc/markup/to_label.rb#12 def res; end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_label.rb#73 def start_accepting(*node); end end @@ -6780,161 +6987,164 @@ class RDoc::Markup::ToRdoc < ::RDoc::Markup::Formatter # # @return [ToRdoc] a new instance of ToRdoc # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#45 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#55 def initialize(markup = T.unsafe(nil)); end # Adds +blank_line+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#77 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#78 def accept_blank_line(blank_line); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#84 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#85 def accept_block_quote(block_quote); end # Adds +heading+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#99 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#100 def accept_heading(heading); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#211 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#212 def accept_indented_paragraph(paragraph); end # Finishes consumption of +list+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#110 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#111 def accept_list_end(list); end # Finishes consumption of +list_item+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#119 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#120 def accept_list_item_end(list_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#143 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#144 def accept_list_item_start(list_item); end # Prepares the visitor for consuming +list+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#176 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#177 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#203 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#204 def accept_paragraph(paragraph); end # Adds +raw+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#221 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#222 def accept_raw(raw); end # Adds +rule+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#228 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#229 def accept_rule(rule); end # Adds +table+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#251 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#252 def accept_table(header, body, aligns); end # Outputs +verbatim+ indented 2 columns # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#237 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#238 def accept_verbatim(verbatim); end # Applies attribute-specific markup to +text+ using RDoc::AttributeManager # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#279 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#280 def attributes(text); end # Returns the generated output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#287 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#288 def end_accepting; end # Adds a newline to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#303 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#304 def handle_regexp_HARD_BREAK(target); end # Removes preceding \\ from the suppressed crossref +target+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#294 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#295 def handle_regexp_SUPPRESSED_CROSSREF(target); end # Current indent amount for output in characters # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#10 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#20 def indent; end # Current indent amount for output in characters # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#10 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#20 def indent=(_arg0); end # Maps attributes to HTML sequences # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#68 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#69 def init_tags; end # Stack of current list indexes for alphabetic and numeric lists # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#20 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#30 def list_index; end # Stack of list types # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#25 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#35 def list_type; end # Stack of list widths for indentation # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#30 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#40 def list_width; end # Prefix for the next list item. See #use_prefix # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#35 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#45 def prefix; end # Output accumulator # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#40 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#50 def res; end # Prepares the visitor for text generation # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#310 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#311 def start_accepting; end # Adds the stored #prefix to the output and clears it. Lists generate a # prefix for later consumption. # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#324 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#325 def use_prefix; end # Output width in characters # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#15 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#25 def width; end # Output width in characters # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#15 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#25 def width=(_arg0); end # Wraps +text+ to #width # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#334 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#335 def wrap(text); end end +# source://rdoc//lib/rdoc/markup/to_rdoc.rb#6 +RDoc::Markup::ToRdoc::DEFAULT_HEADINGS = T.let(T.unsafe(nil), Hash) + # Extracts just the RDoc::Markup::Heading elements from a # RDoc::Markup::Document to help build a table of contents # @@ -6945,12 +7155,12 @@ class RDoc::Markup::ToTableOfContents < ::RDoc::Markup::Formatter # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#27 def initialize; end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#77 def accept_blank_line(*node); end # :stopdoc: # - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#74 def accept_block_quote(*node); end # Adds +document+ to the output, using its heading cutoff if present @@ -6963,34 +7173,34 @@ class RDoc::Markup::ToTableOfContents < ::RDoc::Markup::Formatter # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#45 def accept_heading(heading); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#80 def accept_list_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#83 def accept_list_end_bullet(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#82 def accept_list_item_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#81 def accept_list_item_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#84 def accept_list_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#78 def accept_paragraph(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#75 def accept_raw(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#76 def accept_rule(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#85 def accept_table(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#79 def accept_verbatim(*node); end # Returns the table of contents @@ -7091,7 +7301,7 @@ class RDoc::Markup::ToTtOnly < ::RDoc::Markup::Formatter # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#74 def accept_blank_line(markup_item); end # Adds tts from +block_quote+ to the output @@ -7102,7 +7312,7 @@ class RDoc::Markup::ToTtOnly < ::RDoc::Markup::Formatter # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#75 def accept_heading(markup_item); end # Pops the list type for +list+ from #list_type @@ -7113,7 +7323,7 @@ class RDoc::Markup::ToTtOnly < ::RDoc::Markup::Formatter # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#76 def accept_list_item_end(markup_item); end # Prepares the visitor for consuming +list_item+ @@ -7134,19 +7344,19 @@ class RDoc::Markup::ToTtOnly < ::RDoc::Markup::Formatter # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#77 def accept_raw(markup_item); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#78 def accept_rule(markup_item); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#79 def accept_verbatim(markup_item); end # Does nothing to +markup_item+ because it doesn't have any user-built @@ -7274,7 +7484,7 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # If it has this comment then line numbers are added to +src+ and the , # line dddd portion of the comment is removed. # - # source://rdoc//lib/rdoc/generator/markup.rb#77 + # source://rdoc//lib/rdoc/generator/markup.rb#89 def add_line_numbers(src); end # Array of other names for this method/attribute @@ -7338,7 +7548,7 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # Full method/attribute name including namespace # - # source://rdoc//lib/rdoc/code_object/method_attr.rb#293 + # source://rdoc//lib/rdoc/code_object/method_attr.rb#294 def full_name; end # HTML id-friendly method/attribute name @@ -7349,7 +7559,7 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # source://rdoc//lib/rdoc/code_object/method_attr.rb#98 def initialize_visibility; end - # source://rdoc//lib/rdoc/code_object/method_attr.rb#297 + # source://rdoc//lib/rdoc/code_object/method_attr.rb#298 def inspect; end # The method/attribute we're aliasing @@ -7366,7 +7576,7 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # # Prepends line numbers if +options.line_numbers+ is true. # - # source://rdoc//lib/rdoc/generator/markup.rb#101 + # source://rdoc//lib/rdoc/generator/markup.rb#113 def markup_code; end # Name of this method/attribute. @@ -7379,12 +7589,12 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # source://rdoc//lib/rdoc/code_object/method_attr.rb#12 def name=(_arg0); end - # source://rdoc//lib/rdoc/code_object/method_attr.rb#398 + # source://rdoc//lib/rdoc/code_object/method_attr.rb#399 def name_ord_range; end # '::' for a class method/attribute, '#' for an instance method. # - # source://rdoc//lib/rdoc/code_object/method_attr.rb#312 + # source://rdoc//lib/rdoc/code_object/method_attr.rb#313 def name_prefix; end # Parameters for this method @@ -7399,26 +7609,26 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # Name of our parent with special handling for un-marshaled methods # - # source://rdoc//lib/rdoc/code_object/method_attr.rb#340 + # source://rdoc//lib/rdoc/code_object/method_attr.rb#341 def parent_name; end # Path to this method for use with HTML generator output. # - # source://rdoc//lib/rdoc/code_object/method_attr.rb#333 + # source://rdoc//lib/rdoc/code_object/method_attr.rb#334 def path; end # Method/attribute name with class/instance indicator # - # source://rdoc//lib/rdoc/code_object/method_attr.rb#319 + # source://rdoc//lib/rdoc/code_object/method_attr.rb#320 def pretty_name; end - # source://rdoc//lib/rdoc/code_object/method_attr.rb#344 + # source://rdoc//lib/rdoc/code_object/method_attr.rb#345 def pretty_print(q); end # Used by RDoc::Generator::JsonIndex to create a record for the search # engine. # - # source://rdoc//lib/rdoc/code_object/method_attr.rb#378 + # source://rdoc//lib/rdoc/code_object/method_attr.rb#379 def search_record; end # A method/attribute to look at, @@ -7457,12 +7667,12 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # source://rdoc//lib/rdoc/code_object/method_attr.rb#27 def text; end - # source://rdoc//lib/rdoc/code_object/method_attr.rb#390 + # source://rdoc//lib/rdoc/code_object/method_attr.rb#391 def to_s; end # Type of method/attribute (class or instance) # - # source://rdoc//lib/rdoc/code_object/method_attr.rb#326 + # source://rdoc//lib/rdoc/code_object/method_attr.rb#327 def type; end # public, protected, private @@ -7503,7 +7713,7 @@ class RDoc::Mixin < ::RDoc::CodeObject # source://rdoc//lib/rdoc/code_object/mixin.rb#32 def ==(other); end - # source://rdoc//lib/rdoc/code_object/mixin.rb#32 + # source://rdoc//lib/rdoc/code_object/mixin.rb#36 def eql?(other); end # Full name based on #module @@ -7693,10 +7903,10 @@ end class RDoc::Options # @return [Options] a new instance of Options # - # source://rdoc//lib/rdoc/options.rb#376 + # source://rdoc//lib/rdoc/options.rb#381 def initialize(loaded_options = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/options.rb#506 + # source://rdoc//lib/rdoc/options.rb#513 def ==(other); end # Exclude the default patterns as well if true. @@ -7714,6 +7924,16 @@ class RDoc::Options # source://rdoc//lib/rdoc/options.rb#364 def autolink_excluded_words=(_arg0); end + # The preferred root URL for the documentation + # + # source://rdoc//lib/rdoc/options.rb#379 + def canonical_root; end + + # The preferred root URL for the documentation + # + # source://rdoc//lib/rdoc/options.rb#379 + def canonical_root=(_arg0); end + # Character-set for HTML output. #encoding is preferred over #charset # # source://rdoc//lib/rdoc/options.rb#152 @@ -7726,12 +7946,12 @@ class RDoc::Options # Check that the files on the command line exist # - # source://rdoc//lib/rdoc/options.rb#533 + # source://rdoc//lib/rdoc/options.rb#540 def check_files; end # Ensure only one generator is loaded # - # source://rdoc//lib/rdoc/options.rb#554 + # source://rdoc//lib/rdoc/options.rb#561 def check_generator; end # The prefix to use for class and module page paths @@ -7758,7 +7978,7 @@ class RDoc::Options # from a source file, so that a title set from the command line # will have the priority. # - # source://rdoc//lib/rdoc/options.rb#566 + # source://rdoc//lib/rdoc/options.rb#573 def default_title=(string); end # If true, RDoc will not write any files. @@ -7799,7 +8019,7 @@ class RDoc::Options # Create a regexp for #exclude # - # source://rdoc//lib/rdoc/options.rb#594 + # source://rdoc//lib/rdoc/options.rb#601 def exclude; end # Files matching this pattern will be excluded @@ -7831,13 +8051,13 @@ class RDoc::Options # existent files, creating a regexp for #exclude and setting a default # #template. # - # source://rdoc//lib/rdoc/options.rb#612 + # source://rdoc//lib/rdoc/options.rb#619 def finish; end # Fixes the page_dir to be relative to the root_dir and adds the page_dir to # the files list. # - # source://rdoc//lib/rdoc/options.rb#653 + # source://rdoc//lib/rdoc/options.rb#660 def finish_page_dir; end # Create the output even if the output directory does not look @@ -7884,7 +8104,7 @@ class RDoc::Options # Returns a properly-space list of generators and their descriptions. # - # source://rdoc//lib/rdoc/options.rb#672 + # source://rdoc//lib/rdoc/options.rb#679 def generator_descriptions; end # For #== @@ -7916,10 +8136,10 @@ class RDoc::Options # source://rdoc//lib/rdoc/options.rb#212 def hyperlink_all=(_arg0); end - # source://rdoc//lib/rdoc/options.rb#386 + # source://rdoc//lib/rdoc/options.rb#391 def init_ivars; end - # source://rdoc//lib/rdoc/options.rb#434 + # source://rdoc//lib/rdoc/options.rb#440 def init_with(map); end # Include line numbers in the source code @@ -8008,7 +8228,7 @@ class RDoc::Options # source://rdoc//lib/rdoc/options.rb#258 def output_decoration=(_arg0); end - # source://rdoc//lib/rdoc/options.rb#469 + # source://rdoc//lib/rdoc/options.rb#475 def override(map); end # Directory where guides, FAQ, and other pages not associated with a class @@ -8025,7 +8245,7 @@ class RDoc::Options # Parses command line options. # - # source://rdoc//lib/rdoc/options.rb#698 + # source://rdoc//lib/rdoc/options.rb#705 def parse(argv); end # Is RDoc in pipe mode? @@ -8040,12 +8260,12 @@ class RDoc::Options # Don't display progress as we process the files # - # source://rdoc//lib/rdoc/options.rb#1270 + # source://rdoc//lib/rdoc/options.rb#1277 def quiet; end # Set quietness to +bool+ # - # source://rdoc//lib/rdoc/options.rb#1277 + # source://rdoc//lib/rdoc/options.rb#1284 def quiet=(bool); end # Array of directories to search for files to satisfy an :include: @@ -8074,7 +8294,7 @@ class RDoc::Options # Removes directories from +path+ that are outside the current directory # - # source://rdoc//lib/rdoc/options.rb#1284 + # source://rdoc//lib/rdoc/options.rb#1291 def sanitize_path(path); end # Set up an output generator for the named +generator_name+. @@ -8083,7 +8303,7 @@ class RDoc::Options # the options instance. This allows generators to add custom options or set # default options. # - # source://rdoc//lib/rdoc/options.rb#1311 + # source://rdoc//lib/rdoc/options.rb#1318 def setup_generator(generator_name = T.unsafe(nil)); end # Include the '#' at the front of hyperlinked instance method names @@ -8148,7 +8368,7 @@ class RDoc::Options # Finds the template dir for +template+ # - # source://rdoc//lib/rdoc/options.rb#1333 + # source://rdoc//lib/rdoc/options.rb#1340 def template_dir_for(template); end # Additional template stylesheets @@ -8173,7 +8393,7 @@ class RDoc::Options # For dumping YAML # - # source://rdoc//lib/rdoc/options.rb#573 + # source://rdoc//lib/rdoc/options.rb#580 def to_yaml(*options); end # Should RDoc update the timestamps in the output dir? @@ -8212,12 +8432,12 @@ class RDoc::Options # When +:all+ is passed, visibility is set to +:private+, similarly to # RDOCOPT="--all", see #visibility for more information. # - # source://rdoc//lib/rdoc/options.rb#1350 + # source://rdoc//lib/rdoc/options.rb#1357 def visibility=(visibility); end # Displays a warning using Kernel#warn if we're being verbose # - # source://rdoc//lib/rdoc/options.rb#1362 + # source://rdoc//lib/rdoc/options.rb#1369 def warn(message); end # Warn if rdoc-ref links can't be resolved @@ -8245,10 +8465,10 @@ class RDoc::Options # Writes the YAML file .rdoc_options to the current directory containing the # parsed options. # - # source://rdoc//lib/rdoc/options.rb#1370 + # source://rdoc//lib/rdoc/options.rb#1377 def write_options; end - # source://rdoc//lib/rdoc/options.rb#465 + # source://rdoc//lib/rdoc/options.rb#471 def yaml_initialize(tag, map); end class << self @@ -8257,12 +8477,12 @@ class RDoc::Options # # @raise [RDoc::Error] # - # source://rdoc//lib/rdoc/options.rb#1384 + # source://rdoc//lib/rdoc/options.rb#1391 def load_options; end end end -# source://rdoc//lib/rdoc/options.rb#381 +# source://rdoc//lib/rdoc/options.rb#386 RDoc::Options::DEFAULT_EXCLUDE = T.let(T.unsafe(nil), Array) # A parser is simple a class that subclasses RDoc::Parser and implements #scan @@ -8906,67 +9126,91 @@ class RDoc::Parser::ChangeLog::Git::LogEntry < ::Struct # Returns the value of attribute author # # @return [Object] the current value of author + # + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def author; end # Sets the attribute author # # @param value [Object] the value to set the attribute author to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def author=(_); end # Returns the value of attribute base # # @return [Object] the current value of base + # + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def base; end # Sets the attribute base # # @param value [Object] the value to set the attribute base to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def base=(_); end # Returns the value of attribute commit # # @return [Object] the current value of commit + # + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def commit; end # Sets the attribute commit # # @param value [Object] the value to set the attribute commit to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def commit=(_); end # Returns the value of attribute contents # # @return [Object] the current value of contents + # + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def contents; end # Sets the attribute contents # # @param value [Object] the value to set the attribute contents to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def contents=(_); end # Returns the value of attribute date # # @return [Object] the current value of date + # + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def date; end # Sets the attribute date # # @param value [Object] the value to set the attribute date to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def date=(_); end # Returns the value of attribute email # # @return [Object] the current value of email + # + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def email; end # Sets the attribute email # # @param value [Object] the value to set the attribute email to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def email=(_); end # source://rdoc//lib/rdoc/parser/changelog.rb#299 @@ -8982,10 +9226,19 @@ class RDoc::Parser::ChangeLog::Git::LogEntry < ::Struct def text; end class << self + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def [](*_arg0); end + + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def inspect; end + + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def keyword_init?; end + + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def members; end + + # source://rdoc//lib/rdoc/parser/changelog.rb#271 def new(*_arg0); end end end @@ -9106,63 +9359,92 @@ class RDoc::Parser::RipperStateLex::Token < ::Struct # Returns the value of attribute char_no # # @return [Object] the current value of char_no + # + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def char_no; end # Sets the attribute char_no # # @param value [Object] the value to set the attribute char_no to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def char_no=(_); end # Returns the value of attribute kind # # @return [Object] the current value of kind + # + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def kind; end # Sets the attribute kind # # @param value [Object] the value to set the attribute kind to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def kind=(_); end # Returns the value of attribute line_no # # @return [Object] the current value of line_no + # + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def line_no; end # Sets the attribute line_no # # @param value [Object] the value to set the attribute line_no to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def line_no=(_); end # Returns the value of attribute state # # @return [Object] the current value of state + # + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def state; end # Sets the attribute state # # @param value [Object] the value to set the attribute state to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def state=(_); end # Returns the value of attribute text # # @return [Object] the current value of text + # + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def text; end # Sets the attribute text # # @param value [Object] the value to set the attribute text to. # @return [Object] the newly set value + # + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def text=(_); end class << self + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def [](*_arg0); end + + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def inspect; end + + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def keyword_init?; end + + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def members; end + + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#10 def new(*_arg0); end end end @@ -10210,7 +10492,7 @@ class RDoc::RD::Inline # The markup of this reference in RDoc format # - # source://rdoc//lib/rdoc/rd/inline.rb#15 + # source://rdoc//lib/rdoc/rd/inline.rb#69 def to_s; end class << self @@ -12304,7 +12586,7 @@ module RDoc::TokenStream # Starts collecting tokens # - # source://rdoc//lib/rdoc/token_stream.rb#91 + # source://rdoc//lib/rdoc/token_stream.rb#95 def start_collecting_tokens; end # Current token stream @@ -12524,7 +12806,7 @@ class RDoc::TopLevel < ::RDoc::Context # Returns a URL for this source file on some web repository. Use the -W # command line option to set. # - # source://rdoc//lib/rdoc/generator/markup.rb#149 + # source://rdoc//lib/rdoc/generator/markup.rb#161 def cvs_url; end # Only a TopLevel that contains text file) will be displayed. See also @@ -12537,7 +12819,7 @@ class RDoc::TopLevel < ::RDoc::Context # An RDoc::TopLevel is equal to another with the same relative_name # - # source://rdoc//lib/rdoc/code_object/top_level.rb#58 + # source://rdoc//lib/rdoc/code_object/top_level.rb#62 def eql?(other); end # See RDoc::TopLevel::find_class_or_module @@ -12589,7 +12871,7 @@ class RDoc::TopLevel < ::RDoc::Context # Base name of this file # - # source://rdoc//lib/rdoc/code_object/top_level.rb#111 + # source://rdoc//lib/rdoc/code_object/top_level.rb#115 def name; end # Returns the NormalClass "Object", creating it if not found. diff --git a/sorbet/rbi/gems/regexp_parser@2.10.0.rbi b/sorbet/rbi/gems/regexp_parser@2.11.2.rbi similarity index 84% rename from sorbet/rbi/gems/regexp_parser@2.10.0.rbi rename to sorbet/rbi/gems/regexp_parser@2.11.2.rbi index f1d81748..99f7d695 100644 --- a/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +++ b/sorbet/rbi/gems/regexp_parser@2.11.2.rbi @@ -5,275 +5,275 @@ # Please instead update this file by running `bin/tapioca gem regexp_parser`. -# source://regexp_parser//lib/regexp_parser/expression/shared.rb#1 +# source://regexp_parser//lib/regexp_parser/expression/shared.rb#3 module Regexp::Expression; end -# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#5 +# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#7 class Regexp::Expression::Alternation < ::Regexp::Expression::SequenceOperation - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + # source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#10 def alternatives; end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#11 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#131 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#132 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#6 +# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#8 Regexp::Expression::Alternation::OPERAND = Regexp::Expression::Alternative # A sequence of expressions, used by Alternation as one of its alternatives. # -# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#3 +# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#5 class Regexp::Expression::Alternative < ::Regexp::Expression::Sequence - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#10 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#12 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#4 module Regexp::Expression::Anchor; end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#18 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#20 Regexp::Expression::Anchor::BOL = Regexp::Expression::Anchor::BeginningOfLine -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#20 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#22 Regexp::Expression::Anchor::BOS = Regexp::Expression::Anchor::BeginningOfString -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#3 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#5 class Regexp::Expression::Anchor::Base < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#149 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#5 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#7 class Regexp::Expression::Anchor::BeginningOfLine < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#11 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#13 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#8 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#10 class Regexp::Expression::Anchor::BeginningOfString < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#12 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#14 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#19 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#21 Regexp::Expression::Anchor::EOL = Regexp::Expression::Anchor::EndOfLine -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#21 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#23 Regexp::Expression::Anchor::EOS = Regexp::Expression::Anchor::EndOfString -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#22 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#24 Regexp::Expression::Anchor::EOSobEOL = Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#6 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#8 class Regexp::Expression::Anchor::EndOfLine < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#13 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#15 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#9 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#11 class Regexp::Expression::Anchor::EndOfString < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#14 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#16 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#11 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#13 class Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#15 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#17 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#16 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#18 class Regexp::Expression::Anchor::MatchStart < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#16 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#18 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#14 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#16 class Regexp::Expression::Anchor::NonWordBoundary < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#17 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#19 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#13 + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#15 def negative?; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#13 +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#15 class Regexp::Expression::Anchor::WordBoundary < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#18 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#20 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#64 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#66 module Regexp::Expression::Assertion; end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#65 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#67 class Regexp::Expression::Assertion::Base < ::Regexp::Expression::Group::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#149 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#67 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#69 class Regexp::Expression::Assertion::Lookahead < ::Regexp::Expression::Assertion::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#19 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#21 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#70 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#72 class Regexp::Expression::Assertion::Lookbehind < ::Regexp::Expression::Assertion::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#20 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#22 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#68 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#70 class Regexp::Expression::Assertion::NegativeLookahead < ::Regexp::Expression::Assertion::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#21 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#23 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#14 + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#16 def negative?; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#71 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#73 class Regexp::Expression::Assertion::NegativeLookbehind < ::Regexp::Expression::Assertion::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#22 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#24 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#15 + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#17 def negative?; end end # alias for symmetry between token symbol and Expression class name # -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#55 +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#57 Regexp::Expression::Backref = Regexp::Expression::Backreference -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#4 module Regexp::Expression::Backreference; end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#3 +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#5 class Regexp::Expression::Backreference::Base < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#155 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#157 def match_length; end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#140 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#142 def referential?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#15 +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#17 class Regexp::Expression::Backreference::Name < ::Regexp::Expression::Backreference::Base # @return [Name] a new instance of Name # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#19 + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#21 def initialize(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#23 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#25 def human_name; end # Returns the value of attribute name. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#16 + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#18 def name; end # Returns the value of attribute name. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#16 + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#19 def reference; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#31 +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#33 class Regexp::Expression::Backreference::NameCall < ::Regexp::Expression::Backreference::Name - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#24 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#26 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#43 +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#45 class Regexp::Expression::Backreference::NameRecursionLevel < ::Regexp::Expression::Backreference::Name # @return [NameRecursionLevel] a new instance of NameRecursionLevel # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#46 + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#48 def initialize(token, options = T.unsafe(nil)); end # Returns the value of attribute recursion_level. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#44 + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#46 def recursion_level; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#5 +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#7 class Regexp::Expression::Backreference::Number < ::Regexp::Expression::Backreference::Base # @return [Number] a new instance of Number # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#11 def initialize(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#25 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#27 def human_name; end # Returns the value of attribute number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#6 + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#8 def number; end # Returns the value of attribute number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#6 + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#9 def reference; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#30 +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#32 class Regexp::Expression::Backreference::NumberCall < ::Regexp::Expression::Backreference::Number - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#27 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#29 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#32 +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#34 class Regexp::Expression::Backreference::NumberCallRelative < ::Regexp::Expression::Backreference::NumberRelative - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#28 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#30 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#34 +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#36 class Regexp::Expression::Backreference::NumberRecursionLevel < ::Regexp::Expression::Backreference::NumberRelative # @return [NumberRecursionLevel] a new instance of NumberRecursionLevel # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#37 + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#39 def initialize(token, options = T.unsafe(nil)); end # Returns the value of attribute recursion_level. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#35 + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#37 def recursion_level; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#25 +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#27 class Regexp::Expression::Backreference::NumberRelative < ::Regexp::Expression::Backreference::Number # Returns the value of attribute effective_number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#26 + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#28 def effective_number; end # Sets the attribute effective_number # # @param value the value to set the attribute effective_number to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#26 + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#28 def effective_number=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#26 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#28 def human_name; end # Returns the value of attribute effective_number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#26 + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#29 def reference; end end -# source://regexp_parser//lib/regexp_parser/expression/base.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/base.rb#4 class Regexp::Expression::Base include ::Regexp::Expression::Shared include ::Regexp::Expression::ReferencedExpressions @@ -281,160 +281,160 @@ class Regexp::Expression::Base # @return [Base] a new instance of Base # - # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#7 def initialize(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#8 + # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#13 def =~(string, offset = T.unsafe(nil)); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#25 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#30 def a?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#25 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#27 def ascii_classes?; end - # source://regexp_parser//lib/regexp_parser/expression/base.rb#60 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#76 def attributes; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#10 def case_insensitive?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def conditional_level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def conditional_level=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def custom_to_s_handling; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def custom_to_s_handling=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#20 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#25 def d?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#20 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#22 def default_classes?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#20 def extended?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#16 def free_spacing?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/base.rb#47 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#49 def greedy?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#13 def i?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14 def ignore_case?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/base.rb#51 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#56 def lazy?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def level=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8 def m?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#8 + # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#10 def match(string, offset = T.unsafe(nil)); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#5 def match?(string); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#8 def matches?(string); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#5 def multiline?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def nesting_level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def options; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def options=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def parent; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def parent=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/base.rb#56 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#58 def possessive?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def pre_quantifier_decorations; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def pre_quantifier_decorations=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def quantifier; end - # source://regexp_parser//lib/regexp_parser/expression/base.rb#17 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#19 def quantify(*args); end # Deprecated. Prefer `#repetitions` which has a more uniform interface. # - # source://regexp_parser//lib/regexp_parser/expression/base.rb#26 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#28 def quantity; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/base.rb#51 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#53 def reluctant?; end - # source://regexp_parser//lib/regexp_parser/expression/base.rb#31 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#33 def repetitions; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def set_level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def set_level=(_arg0); end # %l Level (depth) of the expression. Returns 'root' for the root @@ -470,7 +470,7 @@ class Regexp::Expression::Base # %m Most info, same as '%b %q' # %a All info, same as '%m %t' # - # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#37 + # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#100 def strfre(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end # %l Level (depth) of the expression. Returns 'root' for the root @@ -506,683 +506,691 @@ class Regexp::Expression::Base # %m Most info, same as '%b %q' # %a All info, same as '%m %t' # - # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#37 + # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#39 def strfregexp(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def te; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def te=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def text; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def text=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/base.rb#60 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#62 def to_h; end - # source://regexp_parser//lib/regexp_parser/expression/base.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#11 def to_re(format = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def token; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def token=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def ts; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def ts=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def type; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 def type=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#30 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#35 def u?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#30 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#32 def unicode_classes?; end - # source://regexp_parser//lib/regexp_parser/expression/base.rb#21 + # source://regexp_parser//lib/regexp_parser/expression/base.rb#23 def unquantified_clone; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14 + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#19 def x?; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#4 class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression # @return [CharacterSet] a new instance of CharacterSet # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#6 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#8 def initialize(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#16 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#18 def close; end # Returns the value of attribute closed. # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#5 def closed; end # Sets the attribute closed # # @param value the value to set the attribute closed to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#5 def closed=(_arg0); end # Returns the value of attribute closed. # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#6 def closed?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#99 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#12 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#14 def negate; end # Returns the value of attribute negative. # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#5 def negative; end # Sets the attribute negative # # @param value the value to set the attribute negative to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#5 def negative=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#16 + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#18 def negative?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#15 + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#17 def parts; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#3 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#5 class Regexp::Expression::CharacterSet::IntersectedSequence < ::Regexp::Expression::Sequence - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#29 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#31 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#99 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#5 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#7 class Regexp::Expression::CharacterSet::Intersection < ::Regexp::Expression::SequenceOperation - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#30 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#32 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#99 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#6 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#8 Regexp::Expression::CharacterSet::Intersection::OPERAND = Regexp::Expression::CharacterSet::IntersectedSequence -# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#3 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#5 class Regexp::Expression::CharacterSet::Range < ::Regexp::Expression::Subexpression - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#8 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#10 def <<(exp); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#14 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#16 def complete?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#31 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#33 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#99 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#16 + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#18 def parts; end - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#4 + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#6 def ts; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#4 module Regexp::Expression::CharacterType; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#5 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#7 class Regexp::Expression::CharacterType::Any < ::Regexp::Expression::CharacterType::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#32 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#34 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#3 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#5 class Regexp::Expression::CharacterType::Base < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#99 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#17 + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#19 def negative?; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#6 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#8 class Regexp::Expression::CharacterType::Digit < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#15 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#17 class Regexp::Expression::CharacterType::ExtendedGrapheme < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#8 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#10 class Regexp::Expression::CharacterType::Hex < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#14 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#16 class Regexp::Expression::CharacterType::Linebreak < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#7 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#9 class Regexp::Expression::CharacterType::NonDigit < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#9 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#11 class Regexp::Expression::CharacterType::NonHex < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#13 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#15 class Regexp::Expression::CharacterType::NonSpace < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#11 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#13 class Regexp::Expression::CharacterType::NonWord < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#12 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#14 class Regexp::Expression::CharacterType::Space < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#10 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#12 class Regexp::Expression::CharacterType::Word < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#8 +# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#10 class Regexp::Expression::Comment < ::Regexp::Expression::FreeSpace - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#33 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#35 def human_name; end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#130 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#132 def comment?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#4 module Regexp::Expression::Conditional; end -# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#18 +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#20 class Regexp::Expression::Conditional::Branch < ::Regexp::Expression::Sequence - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#34 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#36 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#9 +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#11 class Regexp::Expression::Conditional::Condition < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#35 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#37 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#149 def match_length; end # Name or number of the referenced capturing group that determines state. # Returns a String if reference is by name, Integer if by number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#12 + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#14 def reference; end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#141 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#143 def referential?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#20 +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#22 class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexpression - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#21 + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#23 def <<(exp); end # @raise [TooManyBranches] # - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#25 + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#27 def add_sequence(active_opts = T.unsafe(nil), params = T.unsafe(nil)); end # @raise [TooManyBranches] # - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#25 + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#32 def branch(active_opts = T.unsafe(nil), params = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#41 + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#43 def branches; end - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#37 + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#39 def condition; end - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#32 + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#34 def condition=(exp); end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#36 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#38 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#131 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#132 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#17 + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#19 def parts; end - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#45 + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#47 def reference; end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#142 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#144 def referential?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#3 +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#5 class Regexp::Expression::Conditional::TooManyBranches < ::Regexp::Parser::Error # @return [TooManyBranches] a new instance of TooManyBranches # - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#4 + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#6 def initialize; end end # alias for symmetry between Token::* and Expression::* # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#29 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#32 Regexp::Expression::Escape = Regexp::Expression::EscapeSequence -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#4 module Regexp::Expression::EscapeSequence; end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#22 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#25 class Regexp::Expression::EscapeSequence::AbstractMetaControlSequence < ::Regexp::Expression::EscapeSequence::Base private - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#40 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#48 def control_sequence_to_s(control_sequence); end - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#45 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#53 def meta_char_to_codepoint(meta_char); end end # \e # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#5 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#7 class Regexp::Expression::EscapeSequence::AsciiEscape < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#2 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#4 def codepoint; end end # \b # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#6 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#8 class Regexp::Expression::EscapeSequence::Backspace < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#5 def codepoint; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#3 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#5 class Regexp::Expression::EscapeSequence::Base < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_char.rb#2 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_char.rb#4 def char; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#99 def match_length; end end # \a # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#7 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#9 class Regexp::Expression::EscapeSequence::Bell < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#4 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#6 def codepoint; end end # e.g. \u000A # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#18 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#20 class Regexp::Expression::EscapeSequence::Codepoint < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#16 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#18 def codepoint; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#20 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#22 class Regexp::Expression::EscapeSequence::CodepointList < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#20 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#28 def char; end - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#28 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#36 def chars; end - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#24 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#32 def codepoint; end - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#32 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#40 def codepoints; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#164 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#166 def match_length; end end # e.g. \cB # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#23 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#26 class Regexp::Expression::EscapeSequence::Control < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#52 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#60 def codepoint; end end # \f # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#8 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#10 class Regexp::Expression::EscapeSequence::FormFeed < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#5 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#7 def codepoint; end end # e.g. \x0A # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#17 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#19 class Regexp::Expression::EscapeSequence::Hex < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#15 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#17 def codepoint; end end # e.g. \j, \@, \😀 (ineffectual escapes) # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#14 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#16 class Regexp::Expression::EscapeSequence::Literal < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#11 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#13 def codepoint; end end # e.g. \M-Z # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#24 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#27 class Regexp::Expression::EscapeSequence::Meta < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#58 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#66 def codepoint; end end # e.g. \M-\cX # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#25 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#28 class Regexp::Expression::EscapeSequence::MetaControl < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#64 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#72 def codepoint; end end # \n # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#9 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#11 class Regexp::Expression::EscapeSequence::Newline < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#6 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#8 def codepoint; end end # e.g. \012 # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#16 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#18 class Regexp::Expression::EscapeSequence::Octal < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#13 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#15 def codepoint; end end # \r # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#10 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#12 class Regexp::Expression::EscapeSequence::Return < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#7 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#9 def codepoint; end end # \t # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#11 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#13 class Regexp::Expression::EscapeSequence::Tab < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#8 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#10 + def codepoint; end +end + +# e.g. \xE2\x82\xAC +# +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#23 +class Regexp::Expression::EscapeSequence::UTF8Hex < ::Regexp::Expression::EscapeSequence::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#21 def codepoint; end end # \v # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#12 +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#14 class Regexp::Expression::EscapeSequence::VerticalTab < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_codepoint.rb#11 def codepoint; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#4 class Regexp::Expression::FreeSpace < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#149 def match_length; end # @raise [Regexp::Parser::Error] # - # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#5 def quantify(*_args); end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#135 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#137 def decorative?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#4 module Regexp::Expression::Group; end # Special case. Absence group can match 0.. chars, irrespective of content. # TODO: in theory, they *can* exclude match lengths with `.`: `(?~.{3})` # -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#19 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#21 class Regexp::Expression::Group::Absence < ::Regexp::Expression::Group::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#172 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#174 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#20 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#22 class Regexp::Expression::Group::Atomic < ::Regexp::Expression::Group::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#3 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#5 class Regexp::Expression::Group::Base < ::Regexp::Expression::Subexpression - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#18 + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#20 def parts; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#40 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#42 class Regexp::Expression::Group::Capture < ::Regexp::Expression::Group::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#37 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#39 def human_name; end # Returns the value of attribute number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#44 def identifier; end # Returns the value of attribute number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#43 def number; end # Sets the attribute number # # @param value the value to set the attribute number to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#43 def number=(_arg0); end # Returns the value of attribute number_at_level. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#43 def number_at_level; end # Sets the attribute number_at_level # # @param value the value to set the attribute number_at_level to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#43 def number_at_level=(_arg0); end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#126 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#128 def capturing?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#60 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#62 class Regexp::Expression::Group::Comment < ::Regexp::Expression::Group::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#20 + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#22 def parts; end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#131 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#133 def comment?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#136 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#138 def decorative?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#45 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#47 class Regexp::Expression::Group::Named < ::Regexp::Expression::Group::Capture # @return [Named] a new instance of Named # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#49 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#51 def initialize(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#38 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#40 def human_name; end # Returns the value of attribute name. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#46 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#49 def identifier; end # Returns the value of attribute name. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#46 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#48 def name; end private - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#54 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#56 def initialize_copy(orig); end end # TODO: should split off OptionsSwitch in v3.0.0. Maybe even make it no # longer inherit from Group because it is effectively a terminal expression. # -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#23 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#25 class Regexp::Expression::Group::Options < ::Regexp::Expression::Group::Base # Returns the value of attribute option_changes. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#24 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#26 def option_changes; end # Sets the attribute option_changes # # @param value the value to set the attribute option_changes to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#24 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#26 def option_changes=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#31 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#33 def quantify(*args); end private - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#26 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#28 def initialize_copy(orig); end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#6 +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#8 class Regexp::Expression::Group::Passive < ::Regexp::Expression::Group::Base # @return [Passive] a new instance of Passive # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#11 def initialize(*_arg0); end # Sets the attribute implicit # # @param value the value to set the attribute implicit to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#7 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#9 def implicit=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#14 + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#16 def implicit?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#19 + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#21 def parts; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#4 module Regexp::Expression::Keep; end # TODO: in regexp_parser v3.0.0 this should possibly be a Subexpression # that contains all expressions to its left. # -# source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#5 +# source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#7 class Regexp::Expression::Keep::Mark < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#39 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#41 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#149 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/literal.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/classes/literal.rb#4 class Regexp::Expression::Literal < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#40 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#42 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#105 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#107 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#85 +# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#87 Regexp::Expression::MatchLength = Regexp::MatchLength -# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#10 +# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#12 Regexp::Expression::Nonposixclass = Regexp::Expression::PosixClass -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#118 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#120 Regexp::Expression::Nonproperty = Regexp::Expression::UnicodeProperty -# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#4 class Regexp::Expression::PosixClass < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#99 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#5 def name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#18 + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#20 def negative?; end end # alias for symmetry between token symbol and Expression class name # -# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#9 +# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#11 Regexp::Expression::Posixclass = Regexp::Expression::PosixClass # alias for symmetry between token symbol and Expression class name # -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#117 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#119 Regexp::Expression::Property = Regexp::Expression::UnicodeProperty # TODO: in v3.0.0, maybe put Shared back into Base, and inherit from Base and @@ -1190,160 +1198,160 @@ Regexp::Expression::Property = Regexp::Expression::UnicodeProperty # or introduce an Expression::Quantifiable intermediate class. # Or actually allow chaining as a more concise but tricky solution than PR#69. # -# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#6 +# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#8 class Regexp::Expression::Quantifier include ::Regexp::Expression::Shared extend ::Regexp::Expression::Shared::ClassMethods # @return [Quantifier] a new instance of Quantifier # - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#11 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#13 def initialize(*args); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def conditional_level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def conditional_level=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def custom_to_s_handling; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def custom_to_s_handling=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#32 def greedy?; end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#38 def lazy?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def level=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#42 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#44 def max; end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#38 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#40 def min; end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#46 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#48 def mode; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def nesting_level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def options; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def options=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def parent; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def parent=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#32 def possessive?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def pre_quantifier_decorations; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def pre_quantifier_decorations=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def quantifier; end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#32 def reluctant?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def set_level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def set_level=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def te; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def te=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def text; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def text=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#19 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#21 def to_h; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def token; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def token=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def ts; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def ts=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def type; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 def type=(_arg0); end private - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#52 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#54 def deprecated_old_init(token, text, _min, _max, _mode = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#64 + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#66 def derived_data; end end -# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 +# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#11 Regexp::Expression::Quantifier::MODES = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/expression/methods/referenced_expressions.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/methods/referenced_expressions.rb#4 module Regexp::Expression::ReferencedExpressions - # source://regexp_parser//lib/regexp_parser/expression/methods/referenced_expressions.rb#5 + # source://regexp_parser//lib/regexp_parser/expression/methods/referenced_expressions.rb#7 def referenced_expression; end # Returns the value of attribute referenced_expressions. # - # source://regexp_parser//lib/regexp_parser/expression/methods/referenced_expressions.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/methods/referenced_expressions.rb#5 def referenced_expressions; end # Sets the attribute referenced_expressions # # @param value the value to set the attribute referenced_expressions to. # - # source://regexp_parser//lib/regexp_parser/expression/methods/referenced_expressions.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/methods/referenced_expressions.rb#5 def referenced_expressions=(_arg0); end private - # source://regexp_parser//lib/regexp_parser/expression/methods/referenced_expressions.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/methods/referenced_expressions.rb#11 def initialize_copy(orig); end end -# source://regexp_parser//lib/regexp_parser/expression/classes/root.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/classes/root.rb#4 class Regexp::Expression::Root < ::Regexp::Expression::Subexpression - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#41 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#43 def human_name; end class << self - # source://regexp_parser//lib/regexp_parser/expression/classes/root.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/classes/root.rb#5 def build(options = T.unsafe(nil)); end end end @@ -1355,52 +1363,52 @@ end # Used as the base class for the Alternation alternatives, Conditional # branches, and CharacterSet::Intersection intersected sequences. # -# source://regexp_parser//lib/regexp_parser/expression/sequence.rb#8 +# source://regexp_parser//lib/regexp_parser/expression/sequence.rb#10 class Regexp::Expression::Sequence < ::Regexp::Expression::Subexpression - # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#27 + # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#29 def quantify(token, *args); end - # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#23 + # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#25 def ts; end class << self - # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#10 + # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#12 def add_to(exp, params = T.unsafe(nil), active_opts = T.unsafe(nil)); end end end # abstract class # -# source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#3 +# source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#5 class Regexp::Expression::SequenceOperation < ::Regexp::Expression::Subexpression - # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#12 + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#14 def <<(exp); end - # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#16 + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#18 def add_sequence(active_opts = T.unsafe(nil), params = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#7 def operands; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#8 def operator; end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#22 + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#24 def parts; end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#6 def sequences; end - # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#8 + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#10 def ts; end end # alias for symmetry between token symbol and Expression class name # -# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#22 +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#24 Regexp::Expression::Set = Regexp::Expression::CharacterSet -# source://regexp_parser//lib/regexp_parser/expression/shared.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/shared.rb#4 module Regexp::Expression::Shared mixes_in_class_methods ::Regexp::Expression::Shared::ClassMethods @@ -1409,7 +1417,7 @@ module Regexp::Expression::Shared # When changing the conditions, please make sure to update # #pretty_print_instance_variables so that it includes all relevant values. # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#101 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#103 def ==(other); end # Deep-compare two expressions for equality. @@ -1417,25 +1425,25 @@ module Regexp::Expression::Shared # When changing the conditions, please make sure to update # #pretty_print_instance_variables so that it includes all relevant values. # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#101 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#110 def ===(other); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#51 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#53 def base_length; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#124 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#126 def capturing?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#96 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#99 def coded_offset; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#128 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#130 def comment?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#133 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#135 def decorative?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#47 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#49 def ends_at(include_quantifier = T.unsafe(nil)); end # Deep-compare two expressions for equality. @@ -1443,18 +1451,18 @@ module Regexp::Expression::Shared # When changing the conditions, please make sure to update # #pretty_print_instance_variables so that it includes all relevant values. # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#101 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#111 def eql?(other); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#55 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#57 def full_length; end # default implementation, e.g. "atomic group", "hex escape", "word type", .. # - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#4 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#6 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/printing.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/methods/printing.rb#5 def inspect; end # Test if this expression has the given test_token, and optionally a given @@ -1477,25 +1485,25 @@ module Regexp::Expression::Shared # # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#36 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#38 def is?(test_token, test_type = T.unsafe(nil)); end # not an alias so as to respect overrides of #negative? # # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#8 + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#10 def negated?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#3 + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#5 def negative?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#100 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#103 def nesting_level=(lvl); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#92 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#95 def offset; end # Test if this expression matches an entry in the given scope spec. @@ -1534,50 +1542,50 @@ module Regexp::Expression::Shared # # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#75 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#77 def one_of?(scope, top = T.unsafe(nil)); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#111 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#113 def optional?; end # default implementation # - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#4 + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#6 def parts; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#84 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#87 def pre_quantifier_decoration(expression_format = T.unsafe(nil)); end # Make pretty-print work despite #inspect implementation. # - # source://regexp_parser//lib/regexp_parser/expression/methods/printing.rb#12 + # source://regexp_parser//lib/regexp_parser/expression/methods/printing.rb#14 def pretty_print(q); end # Called by pretty_print (ruby/pp) and #inspect. # - # source://regexp_parser//lib/regexp_parser/expression/methods/printing.rb#17 + # source://regexp_parser//lib/regexp_parser/expression/methods/printing.rb#19 def pretty_print_instance_variables; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#115 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#117 def quantified?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#106 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#109 def quantifier=(qtf); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#88 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#91 def quantifier_affix(expression_format = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#138 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#140 def referential?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#43 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#45 def starts_at; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#120 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#122 def terminal?; end # #to_s reproduces the original source, as an unparser would. @@ -1593,7 +1601,7 @@ module Regexp::Expression::Shared # lit.to_s(:base) # => 'a' # without quantifier # lit.to_s(:original) # => 'a +' # with quantifier AND intermittent decorations # - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#72 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#74 def to_s(format = T.unsafe(nil)); end # #to_s reproduces the original source, as an unparser would. @@ -1609,10 +1617,10 @@ module Regexp::Expression::Shared # lit.to_s(:base) # => 'a' # without quantifier # lit.to_s(:original) # => 'a +' # with quantifier AND intermittent decorations # - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#72 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#85 def to_str(format = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#37 + # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#39 def token_class; end # Test if this expression has the given test_type, which can be either @@ -1626,83 +1634,83 @@ module Regexp::Expression::Shared # # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#13 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#15 def type?(test_type); end private - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#18 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#20 def init_from_token_and_options(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#32 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#34 def initialize_copy(orig); end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#10 + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#12 def intersperse(expressions, separator); end class << self # @private # - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#5 + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#7 def included(mod); end end end # filled in ./methods/*.rb # -# source://regexp_parser//lib/regexp_parser/expression/shared.rb#3 +# source://regexp_parser//lib/regexp_parser/expression/shared.rb#5 module Regexp::Expression::Shared::ClassMethods - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#125 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#127 def capturing?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#129 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#131 def comment?; end # Convenience method to init a valid Expression without a Regexp::Token # # @raise [ArgumentError] # - # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#5 + # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#7 def construct(params = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#15 + # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#17 def construct_defaults; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#134 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#136 def decorative?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#139 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#141 def referential?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#121 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#123 def terminal?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#25 + # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#27 def token_class; end end -# source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#4 class Regexp::Expression::Subexpression < ::Regexp::Expression::Base include ::Enumerable # @return [Subexpression] a new instance of Subexpression # - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#7 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#9 def initialize(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#20 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#22 def <<(exp); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#28 def [](*args, &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#28 def at(*args, &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#33 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#35 def dig(*indices); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#28 def each(*args, &block); end # Traverses the expression, passing each recursive child to the @@ -1710,68 +1718,68 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base # If the block takes two arguments, the indices of the children within # their parents are also passed to it. # - # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#8 + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#10 def each_expression(include_self = T.unsafe(nil), &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#28 def empty?(*args, &block); end # Returns the value of attribute expressions. # - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#7 def expressions; end # Sets the attribute expressions # # @param value the value to set the attribute expressions to. # - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#7 def expressions=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#50 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#52 def extract_quantifier_target(quantifier_description); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#28 def fetch(*args, &block); end # Returns a new array with the results of calling the given block once # for every expression. If a block is not given, returns an array with # each expression and its level index as an array. # - # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#56 + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#58 def flat_map(include_self = T.unsafe(nil), &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#28 def index(*args, &block); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#118 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#120 def inner_match_length; end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#28 def join(*args, &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#28 def last(*args, &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#28 def length(*args, &block); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#111 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#113 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#21 + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#23 def parts; end - # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#102 + # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#114 def strfre_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#102 + # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#104 def strfregexp_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#39 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#41 def te; end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#43 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#45 def to_h; end # Traverses the subexpression (depth-first, pre-order) and calls the given @@ -1787,10 +1795,10 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base # # Returns self. # - # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#32 + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#34 def traverse(include_self = T.unsafe(nil), &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#28 def values_at(*args, &block); end # Traverses the subexpression (depth-first, pre-order) and calls the given @@ -1806,285 +1814,285 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base # # Returns self. # - # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#32 + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#53 def walk(include_self = T.unsafe(nil), &block); end protected - # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#66 + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#68 def each_expression_with_index(&block); end - # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#73 + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#75 def each_expression_without_index(&block); end private # Override base method to clone the expressions as well. # - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#13 + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#15 def initialize_copy(orig); end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#122 + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#124 def terminal?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#2 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#4 module Regexp::Expression::UnicodeProperty; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#108 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#110 class Regexp::Expression::UnicodeProperty::Age < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#13 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#15 class Regexp::Expression::UnicodeProperty::Alnum < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#14 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#16 class Regexp::Expression::UnicodeProperty::Alpha < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#31 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#33 class Regexp::Expression::UnicodeProperty::Any < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#15 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#17 class Regexp::Expression::UnicodeProperty::Ascii < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#32 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#34 class Regexp::Expression::UnicodeProperty::Assigned < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#3 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#5 class Regexp::Expression::UnicodeProperty::Base < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#99 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#4 + # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#6 def name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#19 + # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#21 def negative?; end - # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#8 + # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#10 def shortcut; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#16 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#18 class Regexp::Expression::UnicodeProperty::Blank < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#109 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#111 class Regexp::Expression::UnicodeProperty::Block < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#17 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#19 class Regexp::Expression::UnicodeProperty::Cntrl < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#97 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#99 module Regexp::Expression::UnicodeProperty::Codepoint; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#100 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#102 class Regexp::Expression::UnicodeProperty::Codepoint::Any < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#98 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#100 class Regexp::Expression::UnicodeProperty::Codepoint::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#101 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#103 class Regexp::Expression::UnicodeProperty::Codepoint::Control < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#102 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#104 class Regexp::Expression::UnicodeProperty::Codepoint::Format < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#104 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#106 class Regexp::Expression::UnicodeProperty::Codepoint::PrivateUse < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#103 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#105 class Regexp::Expression::UnicodeProperty::Codepoint::Surrogate < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#105 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#107 class Regexp::Expression::UnicodeProperty::Codepoint::Unassigned < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#110 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#112 class Regexp::Expression::UnicodeProperty::Derived < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#18 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#20 class Regexp::Expression::UnicodeProperty::Digit < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#111 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#113 class Regexp::Expression::UnicodeProperty::Emoji < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#112 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#114 class Regexp::Expression::UnicodeProperty::Enumerated < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#19 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#21 class Regexp::Expression::UnicodeProperty::Graph < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#34 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#36 module Regexp::Expression::UnicodeProperty::Letter; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#37 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#39 class Regexp::Expression::UnicodeProperty::Letter::Any < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#35 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#37 class Regexp::Expression::UnicodeProperty::Letter::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#38 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#40 class Regexp::Expression::UnicodeProperty::Letter::Cased < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#40 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#42 class Regexp::Expression::UnicodeProperty::Letter::Lowercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#42 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#44 class Regexp::Expression::UnicodeProperty::Letter::Modifier < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#43 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#45 class Regexp::Expression::UnicodeProperty::Letter::Other < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#41 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#43 class Regexp::Expression::UnicodeProperty::Letter::Titlecase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#39 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#41 class Regexp::Expression::UnicodeProperty::Letter::Uppercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#20 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#22 class Regexp::Expression::UnicodeProperty::Lower < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#46 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#48 module Regexp::Expression::UnicodeProperty::Mark; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#49 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#51 class Regexp::Expression::UnicodeProperty::Mark::Any < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#47 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#49 class Regexp::Expression::UnicodeProperty::Mark::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#50 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#52 class Regexp::Expression::UnicodeProperty::Mark::Combining < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#53 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#55 class Regexp::Expression::UnicodeProperty::Mark::Enclosing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#51 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#53 class Regexp::Expression::UnicodeProperty::Mark::Nonspacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#52 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#54 class Regexp::Expression::UnicodeProperty::Mark::Spacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#29 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#31 class Regexp::Expression::UnicodeProperty::Newline < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#56 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#58 module Regexp::Expression::UnicodeProperty::Number; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#59 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#61 class Regexp::Expression::UnicodeProperty::Number::Any < ::Regexp::Expression::UnicodeProperty::Number::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#57 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#59 class Regexp::Expression::UnicodeProperty::Number::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#60 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#62 class Regexp::Expression::UnicodeProperty::Number::Decimal < ::Regexp::Expression::UnicodeProperty::Number::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#61 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#63 class Regexp::Expression::UnicodeProperty::Number::Letter < ::Regexp::Expression::UnicodeProperty::Number::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#62 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#64 class Regexp::Expression::UnicodeProperty::Number::Other < ::Regexp::Expression::UnicodeProperty::Number::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#21 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#23 class Regexp::Expression::UnicodeProperty::Print < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#22 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#24 class Regexp::Expression::UnicodeProperty::Punct < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#65 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#67 module Regexp::Expression::UnicodeProperty::Punctuation; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#68 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#70 class Regexp::Expression::UnicodeProperty::Punctuation::Any < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#66 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#68 class Regexp::Expression::UnicodeProperty::Punctuation::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#72 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#74 class Regexp::Expression::UnicodeProperty::Punctuation::Close < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#69 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#71 class Regexp::Expression::UnicodeProperty::Punctuation::Connector < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#70 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#72 class Regexp::Expression::UnicodeProperty::Punctuation::Dash < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#74 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#76 class Regexp::Expression::UnicodeProperty::Punctuation::Final < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#73 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#75 class Regexp::Expression::UnicodeProperty::Punctuation::Initial < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#71 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#73 class Regexp::Expression::UnicodeProperty::Punctuation::Open < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#75 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#77 class Regexp::Expression::UnicodeProperty::Punctuation::Other < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#113 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#115 class Regexp::Expression::UnicodeProperty::Script < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#78 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#80 module Regexp::Expression::UnicodeProperty::Separator; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#81 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#83 class Regexp::Expression::UnicodeProperty::Separator::Any < ::Regexp::Expression::UnicodeProperty::Separator::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#79 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#81 class Regexp::Expression::UnicodeProperty::Separator::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#83 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#85 class Regexp::Expression::UnicodeProperty::Separator::Line < ::Regexp::Expression::UnicodeProperty::Separator::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#84 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#86 class Regexp::Expression::UnicodeProperty::Separator::Paragraph < ::Regexp::Expression::UnicodeProperty::Separator::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#82 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#84 class Regexp::Expression::UnicodeProperty::Separator::Space < ::Regexp::Expression::UnicodeProperty::Separator::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#23 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#25 class Regexp::Expression::UnicodeProperty::Space < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#87 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#89 module Regexp::Expression::UnicodeProperty::Symbol; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#90 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#92 class Regexp::Expression::UnicodeProperty::Symbol::Any < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#88 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#90 class Regexp::Expression::UnicodeProperty::Symbol::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#92 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#94 class Regexp::Expression::UnicodeProperty::Symbol::Currency < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#91 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#93 class Regexp::Expression::UnicodeProperty::Symbol::Math < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#93 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#95 class Regexp::Expression::UnicodeProperty::Symbol::Modifier < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#94 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#96 class Regexp::Expression::UnicodeProperty::Symbol::Other < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#24 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#26 class Regexp::Expression::UnicodeProperty::Upper < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#25 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#27 class Regexp::Expression::UnicodeProperty::Word < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#27 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#29 class Regexp::Expression::UnicodeProperty::XPosixPunct < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#26 +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#28 class Regexp::Expression::UnicodeProperty::Xdigit < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#11 +# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#13 class Regexp::Expression::WhiteSpace < ::Regexp::Expression::FreeSpace - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#42 + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#44 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#12 + # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#14 def merge(exp); end end @@ -2093,554 +2101,564 @@ end # normalizes tokens for the parser, and checks if they are implemented by the # given syntax flavor. # -# source://regexp_parser//lib/regexp_parser/lexer.rb#5 +# source://regexp_parser//lib/regexp_parser/lexer.rb#7 class Regexp::Lexer - # source://regexp_parser//lib/regexp_parser/lexer.rb#71 + # source://regexp_parser//lib/regexp_parser/lexer.rb#73 def emit(token); end - # source://regexp_parser//lib/regexp_parser/lexer.rb#20 + # source://regexp_parser//lib/regexp_parser/lexer.rb#22 def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end private - # source://regexp_parser//lib/regexp_parser/lexer.rb#91 + # source://regexp_parser//lib/regexp_parser/lexer.rb#93 def ascend(type, token); end # Returns the value of attribute block. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def block; end # Sets the attribute block # # @param value the value to set the attribute block to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def block=(_arg0); end # if a codepoint list is followed by a quantifier, that quantifier applies # to the last codepoint, e.g. /\u{61 62 63}{3}/ =~ 'abccc' # c.f. #break_literal. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#143 + # source://regexp_parser//lib/regexp_parser/lexer.rb#145 def break_codepoint_list(token); end # called by scan to break a literal run that is longer than one character # into two separate tokens when it is followed by a quantifier # - # source://regexp_parser//lib/regexp_parser/lexer.rb#123 + # source://regexp_parser//lib/regexp_parser/lexer.rb#125 def break_literal(token); end # Returns the value of attribute collect_tokens. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def collect_tokens; end # Sets the attribute collect_tokens # # @param value the value to set the attribute collect_tokens to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def collect_tokens=(_arg0); end # Returns the value of attribute conditional_nesting. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def conditional_nesting; end # Sets the attribute conditional_nesting # # @param value the value to set the attribute conditional_nesting to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def conditional_nesting=(_arg0); end - # source://regexp_parser//lib/regexp_parser/lexer.rb#106 + # source://regexp_parser//lib/regexp_parser/lexer.rb#108 def descend(type, token); end - # source://regexp_parser//lib/regexp_parser/lexer.rb#162 + # source://regexp_parser//lib/regexp_parser/lexer.rb#164 def merge_condition(current, last); end # Returns the value of attribute nesting. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def nesting; end # Sets the attribute nesting # # @param value the value to set the attribute nesting to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def nesting=(_arg0); end # Returns the value of attribute preprev_token. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def preprev_token; end # Sets the attribute preprev_token # # @param value the value to set the attribute preprev_token to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def preprev_token=(_arg0); end # Returns the value of attribute prev_token. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def prev_token; end # Sets the attribute prev_token # # @param value the value to set the attribute prev_token to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def prev_token=(_arg0); end # Returns the value of attribute set_nesting. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def set_nesting; end # Sets the attribute set_nesting # # @param value the value to set the attribute set_nesting to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def set_nesting=(_arg0); end # Returns the value of attribute shift. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def shift; end # Sets the attribute shift # # @param value the value to set the attribute shift to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def shift=(_arg0); end # Returns the value of attribute tokens. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def tokens; end # Sets the attribute tokens # # @param value the value to set the attribute tokens to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser//lib/regexp_parser/lexer.rb#89 def tokens=(_arg0); end class << self - # source://regexp_parser//lib/regexp_parser/lexer.rb#16 + # source://regexp_parser//lib/regexp_parser/lexer.rb#18 def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end - # source://regexp_parser//lib/regexp_parser/lexer.rb#16 + # source://regexp_parser//lib/regexp_parser/lexer.rb#84 def scan(input, syntax = T.unsafe(nil), options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end end end -# source://regexp_parser//lib/regexp_parser/lexer.rb#12 +# source://regexp_parser//lib/regexp_parser/lexer.rb#14 Regexp::Lexer::CLOSING_TOKENS = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/lexer.rb#14 +# source://regexp_parser//lib/regexp_parser/lexer.rb#16 Regexp::Lexer::CONDITION_TOKENS = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/lexer.rb#7 +# source://regexp_parser//lib/regexp_parser/lexer.rb#9 Regexp::Lexer::OPENING_TOKENS = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#1 +# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#3 class Regexp::MatchLength include ::Enumerable # @return [MatchLength] a new instance of MatchLength # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#9 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#11 def initialize(exp, opts = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#24 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#26 def each(opts = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#35 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#37 def endless_each; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#44 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#46 def fixed?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#40 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#42 def include?(length); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#60 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#62 def inspect; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#52 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#54 def max; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#48 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#50 def min; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#56 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#58 def minmax; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#65 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#67 def to_re; end private # Returns the value of attribute base_max. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73 def base_max; end # Sets the attribute base_max # # @param value the value to set the attribute base_max to. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73 def base_max=(_arg0); end # Returns the value of attribute base_min. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73 def base_min; end # Sets the attribute base_min # # @param value the value to set the attribute base_min to. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73 def base_min=(_arg0); end # Returns the value of attribute exp_class. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73 def exp_class; end # Sets the attribute exp_class # # @param value the value to set the attribute exp_class to. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73 def exp_class=(_arg0); end # Returns the value of attribute max_rep. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73 def max_rep; end # Sets the attribute max_rep # # @param value the value to set the attribute max_rep to. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73 def max_rep=(_arg0); end # Returns the value of attribute min_rep. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73 def min_rep; end # Sets the attribute min_rep # # @param value the value to set the attribute min_rep to. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73 def min_rep=(_arg0); end # Returns the value of attribute reify. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73 def reify; end # Sets the attribute reify # # @param value the value to set the attribute reify to. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73 def reify=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#74 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#76 def test_regexp; end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#4 + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#6 def of(obj); end end end -# source://regexp_parser//lib/regexp_parser/version.rb#2 +# source://regexp_parser//lib/regexp_parser/version.rb#4 class Regexp::Parser include ::Regexp::Expression - # source://regexp_parser//lib/regexp_parser/parser.rb#25 + # source://regexp_parser//lib/regexp_parser/parser.rb#27 def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end private - # source://regexp_parser//lib/regexp_parser/parser.rb#574 + # source://regexp_parser//lib/regexp_parser/parser.rb#577 def active_opts; end - # source://regexp_parser//lib/regexp_parser/parser.rb#99 + # source://regexp_parser//lib/regexp_parser/parser.rb#101 def anchor(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#262 + # source://regexp_parser//lib/regexp_parser/parser.rb#264 def assign_effective_number(exp); end # Assigns referenced expressions to referring expressions, e.g. if there is # an instance of Backreference::Number, its #referenced_expression is set to # the instance of Group::Capture that it refers to via its number. # - # source://regexp_parser//lib/regexp_parser/parser.rb#581 + # source://regexp_parser//lib/regexp_parser/parser.rb#584 def assign_referenced_expressions; end - # source://regexp_parser//lib/regexp_parser/parser.rb#227 + # source://regexp_parser//lib/regexp_parser/parser.rb#229 def backref(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#202 + # source://regexp_parser//lib/regexp_parser/parser.rb#204 def captured_group_count_at_level; end # Returns the value of attribute captured_group_counts. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def captured_group_counts; end # Sets the attribute captured_group_counts # # @param value the value to set the attribute captured_group_counts to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def captured_group_counts=(_arg0); end - # source://regexp_parser//lib/regexp_parser/parser.rb#570 + # source://regexp_parser//lib/regexp_parser/parser.rb#573 def close_completed_character_set_range; end - # source://regexp_parser//lib/regexp_parser/parser.rb#210 + # source://regexp_parser//lib/regexp_parser/parser.rb#212 def close_group; end - # source://regexp_parser//lib/regexp_parser/parser.rb#538 + # source://regexp_parser//lib/regexp_parser/parser.rb#541 def close_set; end - # source://regexp_parser//lib/regexp_parser/parser.rb#269 + # source://regexp_parser//lib/regexp_parser/parser.rb#271 def conditional(token); end # Returns the value of attribute conditional_nesting. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def conditional_nesting; end # Sets the attribute conditional_nesting # # @param value the value to set the attribute conditional_nesting to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def conditional_nesting=(_arg0); end - # source://regexp_parser//lib/regexp_parser/parser.rb#206 + # source://regexp_parser//lib/regexp_parser/parser.rb#208 def count_captured_group; end # @yield [node] # - # source://regexp_parser//lib/regexp_parser/parser.rb#216 + # source://regexp_parser//lib/regexp_parser/parser.rb#218 def decrease_nesting; end - # source://regexp_parser//lib/regexp_parser/parser.rb#305 + # source://regexp_parser//lib/regexp_parser/parser.rb#307 def escape(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#60 + # source://regexp_parser//lib/regexp_parser/parser.rb#62 def extract_options(input, options); end - # source://regexp_parser//lib/regexp_parser/parser.rb#349 + # source://regexp_parser//lib/regexp_parser/parser.rb#352 def free_space(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#114 + # source://regexp_parser//lib/regexp_parser/parser.rb#116 def group(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#509 + # source://regexp_parser//lib/regexp_parser/parser.rb#512 def increase_group_level(exp); end - # source://regexp_parser//lib/regexp_parser/parser.rb#549 + # source://regexp_parser//lib/regexp_parser/parser.rb#552 def intersection(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#360 + # source://regexp_parser//lib/regexp_parser/parser.rb#363 def keep(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#364 + # source://regexp_parser//lib/regexp_parser/parser.rb#367 def literal(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#368 + # source://regexp_parser//lib/regexp_parser/parser.rb#371 def meta(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#534 + # source://regexp_parser//lib/regexp_parser/parser.rb#537 def negate_set; end - # source://regexp_parser//lib/regexp_parser/parser.rb#299 + # source://regexp_parser//lib/regexp_parser/parser.rb#301 def nest(exp); end - # source://regexp_parser//lib/regexp_parser/parser.rb#294 + # source://regexp_parser//lib/regexp_parser/parser.rb#296 def nest_conditional(exp); end # Returns the value of attribute nesting. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def nesting; end # Sets the attribute nesting # # @param value the value to set the attribute nesting to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def nesting=(_arg0); end # Returns the value of attribute node. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def node; end # Sets the attribute node # # @param value the value to set the attribute node to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def node=(_arg0); end - # source://regexp_parser//lib/regexp_parser/parser.rb#165 + # source://regexp_parser//lib/regexp_parser/parser.rb#167 def open_group(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#527 + # source://regexp_parser//lib/regexp_parser/parser.rb#530 def open_set(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#130 + # source://regexp_parser//lib/regexp_parser/parser.rb#132 def options_group(token); end # Returns the value of attribute options_stack. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def options_stack; end # Sets the attribute options_stack # # @param value the value to set the attribute options_stack to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def options_stack=(_arg0); end - # source://regexp_parser//lib/regexp_parser/parser.rb#76 + # source://regexp_parser//lib/regexp_parser/parser.rb#78 def parse_token(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#390 + # source://regexp_parser//lib/regexp_parser/parser.rb#393 def posixclass(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#397 + # source://regexp_parser//lib/regexp_parser/parser.rb#400 def property(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#479 + # source://regexp_parser//lib/regexp_parser/parser.rb#482 def quantifier(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#542 + # source://regexp_parser//lib/regexp_parser/parser.rb#545 def range(token); end # Returns the value of attribute root. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def root; end # Sets the attribute root # # @param value the value to set the attribute root to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def root=(_arg0); end - # source://regexp_parser//lib/regexp_parser/parser.rb#379 + # source://regexp_parser//lib/regexp_parser/parser.rb#382 def sequence_operation(klass, token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#515 + # source://regexp_parser//lib/regexp_parser/parser.rb#518 def set(token); end # Returns the value of attribute switching_options. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def switching_options; end # Sets the attribute switching_options # # @param value the value to set the attribute switching_options to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser//lib/regexp_parser/parser.rb#58 def switching_options=(_arg0); end - # source://regexp_parser//lib/regexp_parser/parser.rb#198 + # source://regexp_parser//lib/regexp_parser/parser.rb#200 def total_captured_group_count; end - # source://regexp_parser//lib/regexp_parser/parser.rb#553 + # source://regexp_parser//lib/regexp_parser/parser.rb#556 def type(token); end class << self - # source://regexp_parser//lib/regexp_parser/parser.rb#21 + # source://regexp_parser//lib/regexp_parser/parser.rb#23 def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end end end -# source://regexp_parser//lib/regexp_parser/parser.rb#128 +# source://regexp_parser//lib/regexp_parser/parser.rb#130 Regexp::Parser::ENC_FLAGS = T.let(T.unsafe(nil), Array) # base class for all gem-specific errors # -# source://regexp_parser//lib/regexp_parser/error.rb#3 +# source://regexp_parser//lib/regexp_parser/error.rb#5 class Regexp::Parser::Error < ::StandardError; end -# source://regexp_parser//lib/regexp_parser/parser.rb#127 +# source://regexp_parser//lib/regexp_parser/parser.rb#129 Regexp::Parser::MOD_FLAGS = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/parser.rb#7 +# source://regexp_parser//lib/regexp_parser/parser.rb#9 class Regexp::Parser::ParserError < ::Regexp::Parser::Error; end -# source://regexp_parser//lib/regexp_parser/parser.rb#394 +# source://regexp_parser//lib/regexp_parser/parser.rb#397 Regexp::Parser::UP = Regexp::Expression::UnicodeProperty -# source://regexp_parser//lib/regexp_parser/parser.rb#395 +# source://regexp_parser//lib/regexp_parser/parser.rb#398 Regexp::Parser::UPTokens = Regexp::Syntax::Token::UnicodeProperty -# source://regexp_parser//lib/regexp_parser/parser.rb#15 +# source://regexp_parser//lib/regexp_parser/parser.rb#17 class Regexp::Parser::UnknownTokenError < ::Regexp::Parser::ParserError # @return [UnknownTokenError] a new instance of UnknownTokenError # - # source://regexp_parser//lib/regexp_parser/parser.rb#16 + # source://regexp_parser//lib/regexp_parser/parser.rb#18 def initialize(type, token); end end -# source://regexp_parser//lib/regexp_parser/parser.rb#9 +# source://regexp_parser//lib/regexp_parser/parser.rb#11 class Regexp::Parser::UnknownTokenTypeError < ::Regexp::Parser::ParserError # @return [UnknownTokenTypeError] a new instance of UnknownTokenTypeError # - # source://regexp_parser//lib/regexp_parser/parser.rb#10 + # source://regexp_parser//lib/regexp_parser/parser.rb#12 def initialize(type, token); end end -# source://regexp_parser//lib/regexp_parser/version.rb#3 +# source://regexp_parser//lib/regexp_parser/version.rb#5 Regexp::Parser::VERSION = T.let(T.unsafe(nil), String) -# source://regexp_parser//lib/regexp_parser/scanner/errors/scanner_error.rb#3 +# source://regexp_parser//lib/regexp_parser/scanner/errors/scanner_error.rb#5 class Regexp::Scanner + # only public for #||= to work on ruby <= 2.5 + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2417 + def capturing_group_count; end + + # only public for #||= to work on ruby <= 2.5 + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2417 + def capturing_group_count=(_arg0); end + # Emits an array with the details of the scanned pattern # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2363 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 def emit(type, token, text); end # only public for #||= to work on ruby <= 2.5 # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2388 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2417 def literal_run; end # only public for #||= to work on ruby <= 2.5 # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2388 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2417 def literal_run=(_arg0); end # @raise [PrematureEndError] @@ -2653,170 +2671,182 @@ class Regexp::Scanner # Appends one or more characters to the literal buffer, to be emitted later # by a call to emit_literal. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2425 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2463 def append_literal(data, ts, te); end # Returns the value of attribute block. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def block; end # Sets the attribute block # # @param value the value to set the attribute block to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def block=(_arg0); end # Returns the value of attribute char_pos. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def char_pos; end # Sets the attribute char_pos # # @param value the value to set the attribute char_pos to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def char_pos=(_arg0); end # Returns the value of attribute collect_tokens. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def collect_tokens; end # Sets the attribute collect_tokens # # @param value the value to set the attribute collect_tokens to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def collect_tokens=(_arg0); end # Returns the value of attribute conditional_stack. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def conditional_stack; end # Sets the attribute conditional_stack # # @param value the value to set the attribute conditional_stack to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def conditional_stack=(_arg0); end # Copy from ts to te from data as text # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2419 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2457 def copy(data, ts, te); end # Emits the literal run collected by calls to the append_literal method. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2430 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2468 def emit_literal; end - # source://regexp_parser//lib/regexp_parser/scanner.rb#2465 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2503 def emit_meta_control_sequence(data, ts, te, token); end - # source://regexp_parser//lib/regexp_parser/scanner.rb#2436 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2474 def emit_options(text); end + # source://regexp_parser//lib/regexp_parser/scanner.rb#2428 + def extract_encoding(input_object, options); end + # Returns the value of attribute free_spacing. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def free_spacing; end # Sets the attribute free_spacing # # @param value the value to set the attribute free_spacing to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def free_spacing=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2398 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2436 def free_spacing?(input_object, options); end # Returns the value of attribute group_depth. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def group_depth; end # Sets the attribute group_depth # # @param value the value to set the attribute group_depth to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def group_depth=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2410 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2448 def in_group?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2414 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2452 def in_set?; end # Returns the value of attribute prev_token. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def prev_token; end # Sets the attribute prev_token # # @param value the value to set the attribute prev_token to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def prev_token=(_arg0); end + # Returns the value of attribute regexp_encoding. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 + def regexp_encoding; end + + # Sets the attribute regexp_encoding + # + # @param value the value to set the attribute regexp_encoding to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 + def regexp_encoding=(_arg0); end + # Returns the value of attribute set_depth. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def set_depth; end # Sets the attribute set_depth # # @param value the value to set the attribute set_depth to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def set_depth=(_arg0); end # Returns the value of attribute spacing_stack. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def spacing_stack; end # Sets the attribute spacing_stack # # @param value the value to set the attribute spacing_stack to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def spacing_stack=(_arg0); end # Returns the value of attribute tokens. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def tokens; end # Sets the attribute tokens # # @param value the value to set the attribute tokens to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2421 def tokens=(_arg0); end class << self - # source://regexp_parser//lib/regexp_parser/scanner.rb#2349 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2377 def long_prop_map; end - # source://regexp_parser//lib/regexp_parser/scanner.rb#2353 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2381 def parse_prop_map(name); end - # source://regexp_parser//lib/regexp_parser/scanner.rb#2357 - def posix_classes; end - # Scans the given regular expression text, or Regexp object and collects the # emitted token into an array that gets returned at the end. If a block is # given, it gets called for each emitted token. @@ -2829,98 +2859,103 @@ class Regexp::Scanner # lazy-load property maps when first needed # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2345 + # source://regexp_parser//lib/regexp_parser/scanner.rb#2373 def short_prop_map; end end end # Invalid back reference. Used for name a number refs/calls. # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#44 +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#46 class Regexp::Scanner::InvalidBackrefError < ::Regexp::Scanner::ValidationError # @return [InvalidBackrefError] a new instance of InvalidBackrefError # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#45 + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#47 def initialize(what, reason); end end # Invalid group. Used for named groups. # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#29 +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#31 class Regexp::Scanner::InvalidGroupError < ::Regexp::Scanner::ValidationError # @return [InvalidGroupError] a new instance of InvalidGroupError # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#30 + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#32 def initialize(what, reason); end end # Invalid groupOption. Used for inline options. # TODO: should become InvalidGroupOptionError in v3.0.0 for consistency # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#37 +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#39 class Regexp::Scanner::InvalidGroupOption < ::Regexp::Scanner::ValidationError # @return [InvalidGroupOption] a new instance of InvalidGroupOption # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#38 + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#40 def initialize(option, text); end end # Invalid sequence format. Used for escape sequences, mainly. # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#22 +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#24 class Regexp::Scanner::InvalidSequenceError < ::Regexp::Scanner::ValidationError # @return [InvalidSequenceError] a new instance of InvalidSequenceError # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#23 + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#25 def initialize(what = T.unsafe(nil), where = T.unsafe(nil)); end end +# Use each_with_object for required_ruby_version >= 2.2,or #to_h for >= 2.6 +# +# source://regexp_parser//lib/regexp_parser/scanner.rb#2386 +Regexp::Scanner::POSIX_CLASSES = T.let(T.unsafe(nil), Hash) + # Unexpected end of pattern # -# source://regexp_parser//lib/regexp_parser/scanner/errors/premature_end_error.rb#3 +# source://regexp_parser//lib/regexp_parser/scanner/errors/premature_end_error.rb#5 class Regexp::Scanner::PrematureEndError < ::Regexp::Scanner::ScannerError # @return [PrematureEndError] a new instance of PrematureEndError # - # source://regexp_parser//lib/regexp_parser/scanner/errors/premature_end_error.rb#4 + # source://regexp_parser//lib/regexp_parser/scanner/errors/premature_end_error.rb#6 def initialize(where = T.unsafe(nil)); end end # General scanner error (catch all) # -# source://regexp_parser//lib/regexp_parser/scanner/errors/scanner_error.rb#5 +# source://regexp_parser//lib/regexp_parser/scanner/errors/scanner_error.rb#7 class Regexp::Scanner::ScannerError < ::Regexp::Parser::Error; end # The POSIX class name was not recognized by the scanner. # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#58 +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#60 class Regexp::Scanner::UnknownPosixClassError < ::Regexp::Scanner::ValidationError # @return [UnknownPosixClassError] a new instance of UnknownPosixClassError # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#59 + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#61 def initialize(text, _); end end # The property name was not recognized by the scanner. # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#51 +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#53 class Regexp::Scanner::UnknownUnicodePropertyError < ::Regexp::Scanner::ValidationError # @return [UnknownUnicodePropertyError] a new instance of UnknownUnicodePropertyError # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#52 + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#54 def initialize(name, _); end end # Base for all scanner validation errors # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#3 +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#5 class Regexp::Scanner::ValidationError < ::Regexp::Scanner::ScannerError class << self # Centralizes and unifies the handling of validation related errors. # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#5 + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#7 def for(type, problem, reason = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#9 + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#11 def types; end end end @@ -2928,65 +2963,65 @@ end # After loading all the tokens the map is full. Extract all tokens and types # into the All and Types constants. # -# source://regexp_parser//lib/regexp_parser/syntax.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax.rb#5 module Regexp::Syntax private - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#61 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#63 def comparable(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#44 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#46 def const_missing(const_name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#51 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#53 def fallback_version_class(version); end # Returns the syntax specification class for the given syntax # version name. The special names 'any' and '*' return Syntax::Any. # - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#22 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#24 def for(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#26 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#28 def new(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#57 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#59 def specified_versions; end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#32 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#34 def supported?(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#36 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#38 def version_class(version); end class << self - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#61 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#63 def comparable(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#44 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#46 def const_missing(const_name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#51 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#53 def fallback_version_class(version); end # Returns the syntax specification class for the given syntax # version name. The special names 'any' and '*' return Syntax::Any. # - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#22 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#24 def for(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#26 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#28 def new(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#57 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#59 def specified_versions; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#32 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#34 def supported?(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#36 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#38 def version_class(version); end end end @@ -2995,19 +3030,19 @@ end # is useful during development, testing, and should be useful for some types # of transformations as well. # -# source://regexp_parser//lib/regexp_parser/syntax/any.rb#5 +# source://regexp_parser//lib/regexp_parser/syntax/any.rb#7 class Regexp::Syntax::Any < ::Regexp::Syntax::Base class << self # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/syntax/any.rb#8 + # source://regexp_parser//lib/regexp_parser/syntax/any.rb#10 def implements?(_type, _token); end end end # A lookup map of supported types and tokens in a given syntax # -# source://regexp_parser//lib/regexp_parser/syntax/base.rb#9 +# source://regexp_parser//lib/regexp_parser/syntax/base.rb#11 class Regexp::Syntax::Base include ::Regexp::Syntax::Token @@ -3015,781 +3050,834 @@ class Regexp::Syntax::Base # # @return [Base] a new instance of Base # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#99 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#101 def initialize; end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#104 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#106 def method_missing(name, *args); end private # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#115 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#117 def respond_to_missing?(name, include_private = T.unsafe(nil)); end class << self - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#46 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#48 def added_features; end # @raise [NotImplementedError] # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#40 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#46 def check!(type, token); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#31 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#36 def check?(type, token); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#26 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#28 def excludes(type, tokens); end # Returns the value of attribute features. # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#13 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#15 def features; end # Sets the attribute features # # @param value the value to set the attribute features to. # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#13 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#15 def features=(_arg0); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#36 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#38 def implementations(type); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#21 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#23 def implements(type, tokens); end # @raise [NotImplementedError] # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#40 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#42 def implements!(type, token); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#31 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#33 def implements?(type, token); end # automatically inherit features through the syntax class hierarchy # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#16 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#18 def inherited(subclass); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#54 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#56 def normalize(type, token); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#74 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#76 def normalize_backref(type, token); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#65 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#67 def normalize_group(type, token); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#50 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#52 def removed_features; end end end -# source://regexp_parser//lib/regexp_parser/syntax/versions.rb#8 +# source://regexp_parser//lib/regexp_parser/syntax/versions.rb#10 Regexp::Syntax::CURRENT = Regexp::Syntax::V3_2_0 -# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#6 +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#8 class Regexp::Syntax::InvalidVersionNameError < ::Regexp::Syntax::SyntaxError # @return [InvalidVersionNameError] a new instance of InvalidVersionNameError # - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#7 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#9 def initialize(name); end end -# source://regexp_parser//lib/regexp_parser/syntax/base.rb#2 +# source://regexp_parser//lib/regexp_parser/syntax/base.rb#4 class Regexp::Syntax::NotImplementedError < ::Regexp::Syntax::SyntaxError # @return [NotImplementedError] a new instance of NotImplementedError # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#3 + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#5 def initialize(syntax, type, token); end end -# source://regexp_parser//lib/regexp_parser/syntax.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax.rb#6 class Regexp::Syntax::SyntaxError < ::Regexp::Parser::Error; end -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#5 module Regexp::Syntax::Token; end -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#42 +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#44 Regexp::Syntax::Token::All = T.let(T.unsafe(nil), Array) # alias for symmetry between Token::* and Expression::* # -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#15 +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#17 module Regexp::Syntax::Token::Alternation; end -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#16 +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#18 Regexp::Syntax::Token::Alternation::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#17 +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#19 Regexp::Syntax::Token::Alternation::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#5 module Regexp::Syntax::Token::Anchor; end -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#9 +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#11 Regexp::Syntax::Token::Anchor::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#6 Regexp::Syntax::Token::Anchor::Basic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#5 +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#7 Regexp::Syntax::Token::Anchor::Extended = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#7 +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#9 Regexp::Syntax::Token::Anchor::MatchStart = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#6 +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#8 Regexp::Syntax::Token::Anchor::String = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#10 +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#12 Regexp::Syntax::Token::Anchor::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#5 module Regexp::Syntax::Token::Assertion; end -# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#7 +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#9 Regexp::Syntax::Token::Assertion::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#6 Regexp::Syntax::Token::Assertion::Lookahead = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#5 +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#7 Regexp::Syntax::Token::Assertion::Lookbehind = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#8 +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#10 Regexp::Syntax::Token::Assertion::Type = T.let(T.unsafe(nil), Symbol) # alias for symmetry between token symbol and Expression class name # -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#31 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#33 Regexp::Syntax::Token::Backref = Regexp::Syntax::Token::Backreference -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#5 module Regexp::Syntax::Token::Backreference; end -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#15 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#17 Regexp::Syntax::Token::Backreference::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#7 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#9 Regexp::Syntax::Token::Backreference::Name = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#6 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#8 Regexp::Syntax::Token::Backreference::Number = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#5 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#7 Regexp::Syntax::Token::Backreference::NumberRef = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#6 Regexp::Syntax::Token::Backreference::Plain = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#9 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#11 Regexp::Syntax::Token::Backreference::RecursionLevel = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#16 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#18 Regexp::Syntax::Token::Backreference::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#11 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#13 Regexp::Syntax::Token::Backreference::V1_8_6 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#13 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#15 Regexp::Syntax::Token::Backreference::V1_9_1 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#5 module Regexp::Syntax::Token::CharacterSet; end -# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#7 +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#9 Regexp::Syntax::Token::CharacterSet::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#6 Regexp::Syntax::Token::CharacterSet::Basic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#5 +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#7 Regexp::Syntax::Token::CharacterSet::Extended = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#8 +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#10 Regexp::Syntax::Token::CharacterSet::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#5 module Regexp::Syntax::Token::CharacterType; end -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#10 +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#12 Regexp::Syntax::Token::CharacterType::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#6 Regexp::Syntax::Token::CharacterType::Basic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#8 +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#10 Regexp::Syntax::Token::CharacterType::Clustered = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#5 +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#7 Regexp::Syntax::Token::CharacterType::Extended = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#6 +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#8 Regexp::Syntax::Token::CharacterType::Hex = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#11 +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#13 Regexp::Syntax::Token::CharacterType::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#5 module Regexp::Syntax::Token::Conditional; end -# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#9 +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#11 Regexp::Syntax::Token::Conditional::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#6 +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#8 Regexp::Syntax::Token::Conditional::Condition = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#6 Regexp::Syntax::Token::Conditional::Delimiters = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#7 +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#9 Regexp::Syntax::Token::Conditional::Separator = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#11 +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#13 Regexp::Syntax::Token::Conditional::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#5 module Regexp::Syntax::Token::Escape; end -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#8 +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#10 Regexp::Syntax::Token::Escape::ASCII = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#24 +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#26 Regexp::Syntax::Token::Escape::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#6 Regexp::Syntax::Token::Escape::Basic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#6 +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#8 Regexp::Syntax::Token::Escape::Control = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#20 +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#22 Regexp::Syntax::Token::Escape::Hex = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#13 +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#15 Regexp::Syntax::Token::Escape::Meta = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#22 +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#24 Regexp::Syntax::Token::Escape::Octal = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#25 +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#27 Regexp::Syntax::Token::Escape::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#11 +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#13 Regexp::Syntax::Token::Escape::Unicode = T.let(T.unsafe(nil), Array) # alias for symmetry between Token::* and Expression::* # -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#31 +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#33 Regexp::Syntax::Token::EscapeSequence = Regexp::Syntax::Token::Escape -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#11 +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#13 module Regexp::Syntax::Token::FreeSpace; end -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#12 +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#14 Regexp::Syntax::Token::FreeSpace::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#13 +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#15 Regexp::Syntax::Token::FreeSpace::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#5 module Regexp::Syntax::Token::Group; end -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#17 +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#19 Regexp::Syntax::Token::Group::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#8 +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#10 Regexp::Syntax::Token::Group::Atomic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#6 Regexp::Syntax::Token::Group::Basic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#10 +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#12 Regexp::Syntax::Token::Group::Comment = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#5 +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#7 Regexp::Syntax::Token::Group::Extended = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#7 +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#9 Regexp::Syntax::Token::Group::Named = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#9 +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#11 Regexp::Syntax::Token::Group::Passive = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#18 +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#20 Regexp::Syntax::Token::Group::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#12 +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#14 Regexp::Syntax::Token::Group::V1_8_6 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#15 +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#17 Regexp::Syntax::Token::Group::V2_4_1 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#5 module Regexp::Syntax::Token::Keep; end -# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#6 +# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#8 Regexp::Syntax::Token::Keep::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#6 Regexp::Syntax::Token::Keep::Mark = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#7 +# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#9 Regexp::Syntax::Token::Keep::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#6 +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#8 module Regexp::Syntax::Token::Literal; end -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#7 +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#9 Regexp::Syntax::Token::Literal::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#8 +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#10 Regexp::Syntax::Token::Literal::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#6 Regexp::Syntax::Token::Map = T.let(T.unsafe(nil), Hash) -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#5 module Regexp::Syntax::Token::Meta; end -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#8 +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#10 Regexp::Syntax::Token::Meta::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#5 +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#7 Regexp::Syntax::Token::Meta::Alternation = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#6 Regexp::Syntax::Token::Meta::Basic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#6 +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#8 Regexp::Syntax::Token::Meta::Extended = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#9 +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#11 Regexp::Syntax::Token::Meta::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#5 module Regexp::Syntax::Token::PosixClass; end -# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#9 +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#11 Regexp::Syntax::Token::PosixClass::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#7 +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#9 Regexp::Syntax::Token::PosixClass::Extensions = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#11 +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#13 Regexp::Syntax::Token::PosixClass::NonType = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#6 Regexp::Syntax::Token::PosixClass::Standard = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#10 +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#12 Regexp::Syntax::Token::PosixClass::Type = T.let(T.unsafe(nil), Symbol) # alias for symmetry between token symbol and Token module name # -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#749 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#764 Regexp::Syntax::Token::Property = Regexp::Syntax::Token::UnicodeProperty -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#5 module Regexp::Syntax::Token::Quantifier; end -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#29 +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#31 Regexp::Syntax::Token::Quantifier::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#6 Regexp::Syntax::Token::Quantifier::Greedy = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#22 +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#24 Regexp::Syntax::Token::Quantifier::Interval = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#26 +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#28 Regexp::Syntax::Token::Quantifier::IntervalAll = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#24 +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#26 Regexp::Syntax::Token::Quantifier::IntervalPossessive = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#23 +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#25 Regexp::Syntax::Token::Quantifier::IntervalReluctant = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#16 +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#18 Regexp::Syntax::Token::Quantifier::Possessive = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#10 +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#12 Regexp::Syntax::Token::Quantifier::Reluctant = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#30 +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#32 Regexp::Syntax::Token::Quantifier::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#28 +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#30 Regexp::Syntax::Token::Quantifier::V1_8_6 = T.let(T.unsafe(nil), Array) # alias for symmetry between token symbol and Token module name # -# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#14 +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#16 Regexp::Syntax::Token::Set = Regexp::Syntax::Token::CharacterSet # Type is the same as Backreference so keeping it here, for now. # -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#20 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#22 module Regexp::Syntax::Token::SubexpressionCall; end -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#24 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#26 Regexp::Syntax::Token::SubexpressionCall::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#21 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#23 Regexp::Syntax::Token::SubexpressionCall::Name = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#22 +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#24 Regexp::Syntax::Token::SubexpressionCall::Number = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#43 +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#45 Regexp::Syntax::Token::Types = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#5 module Regexp::Syntax::Token::UnicodeProperty; end -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#64 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#68 Regexp::Syntax::Token::UnicodeProperty::Age = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#40 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#42 Regexp::Syntax::Token::UnicodeProperty::Age_V1_9_3 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#44 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#46 Regexp::Syntax::Token::UnicodeProperty::Age_V2_0_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#46 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#48 Regexp::Syntax::Token::UnicodeProperty::Age_V2_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#48 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#50 Regexp::Syntax::Token::UnicodeProperty::Age_V2_3_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#50 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#52 Regexp::Syntax::Token::UnicodeProperty::Age_V2_4_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#52 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#54 Regexp::Syntax::Token::UnicodeProperty::Age_V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#54 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#56 Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#56 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#58 Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_2 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#58 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#60 Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_3 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#60 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#62 Regexp::Syntax::Token::UnicodeProperty::Age_V3_1_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#62 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#64 Regexp::Syntax::Token::UnicodeProperty::Age_V3_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#739 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#66 +Regexp::Syntax::Token::UnicodeProperty::Age_V3_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#754 Regexp::Syntax::Token::UnicodeProperty::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#13 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#15 module Regexp::Syntax::Token::UnicodeProperty::Category; end -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#36 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#38 Regexp::Syntax::Token::UnicodeProperty::Category::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#33 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#35 Regexp::Syntax::Token::UnicodeProperty::Category::Codepoint = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#14 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#16 Regexp::Syntax::Token::UnicodeProperty::Category::Letter = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#17 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#19 Regexp::Syntax::Token::UnicodeProperty::Category::Mark = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#20 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#22 Regexp::Syntax::Token::UnicodeProperty::Category::Number = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#23 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#25 Regexp::Syntax::Token::UnicodeProperty::Category::Punctuation = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#30 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#32 Regexp::Syntax::Token::UnicodeProperty::Category::Separator = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#27 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#29 Regexp::Syntax::Token::UnicodeProperty::Category::Symbol = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#6 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#8 Regexp::Syntax::Token::UnicodeProperty::CharType_V1_9_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#9 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#11 Regexp::Syntax::Token::UnicodeProperty::CharType_V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#133 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#143 Regexp::Syntax::Token::UnicodeProperty::Derived = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#66 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#70 Regexp::Syntax::Token::UnicodeProperty::Derived_V1_9_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#120 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#124 Regexp::Syntax::Token::UnicodeProperty::Derived_V2_0_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#125 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#129 Regexp::Syntax::Token::UnicodeProperty::Derived_V2_4_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#129 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#133 Regexp::Syntax::Token::UnicodeProperty::Derived_V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#724 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#137 +Regexp::Syntax::Token::UnicodeProperty::Derived_V3_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#738 Regexp::Syntax::Token::UnicodeProperty::Emoji = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#694 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#708 Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#702 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#716 Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_6_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#722 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#736 Regexp::Syntax::Token::UnicodeProperty::Enumerated = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#706 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#720 Regexp::Syntax::Token::UnicodeProperty::Enumerated_V2_4_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#742 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#757 Regexp::Syntax::Token::UnicodeProperty::NonType = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#11 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#13 Regexp::Syntax::Token::UnicodeProperty::POSIX = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#332 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#342 Regexp::Syntax::Token::UnicodeProperty::Script = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#135 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#145 Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#231 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#241 Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_3 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#237 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#247 Regexp::Syntax::Token::UnicodeProperty::Script_V2_0_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#247 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#257 Regexp::Syntax::Token::UnicodeProperty::Script_V2_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#273 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#283 Regexp::Syntax::Token::UnicodeProperty::Script_V2_3_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#282 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#292 Regexp::Syntax::Token::UnicodeProperty::Script_V2_4_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#291 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#301 Regexp::Syntax::Token::UnicodeProperty::Script_V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#298 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#308 Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#308 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#318 Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_2 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#315 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#325 Regexp::Syntax::Token::UnicodeProperty::Script_V3_1_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#322 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#332 Regexp::Syntax::Token::UnicodeProperty::Script_V3_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#741 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#756 Regexp::Syntax::Token::UnicodeProperty::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#692 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#706 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#334 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#344 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V1_9_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#433 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#443 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_0_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#561 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#571 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#596 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#606 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_3_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#609 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#619 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_4_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#623 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#633 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#633 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#643 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#647 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#657 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_2 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#659 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#669 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_1_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#670 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#680 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#726 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#702 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#740 Regexp::Syntax::Token::UnicodeProperty::V1_9_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#727 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#741 Regexp::Syntax::Token::UnicodeProperty::V1_9_3 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#728 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#742 Regexp::Syntax::Token::UnicodeProperty::V2_0_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#729 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#743 Regexp::Syntax::Token::UnicodeProperty::V2_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#730 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#744 Regexp::Syntax::Token::UnicodeProperty::V2_3_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#731 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#745 Regexp::Syntax::Token::UnicodeProperty::V2_4_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#732 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#746 Regexp::Syntax::Token::UnicodeProperty::V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#733 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#747 Regexp::Syntax::Token::UnicodeProperty::V2_6_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#734 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#748 Regexp::Syntax::Token::UnicodeProperty::V2_6_2 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#735 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#749 Regexp::Syntax::Token::UnicodeProperty::V2_6_3 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#736 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#750 Regexp::Syntax::Token::UnicodeProperty::V3_1_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#737 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#751 Regexp::Syntax::Token::UnicodeProperty::V3_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#12 +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#752 +Regexp::Syntax::Token::UnicodeProperty::V3_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#14 class Regexp::Syntax::UnknownSyntaxNameError < ::Regexp::Syntax::SyntaxError # @return [UnknownSyntaxNameError] a new instance of UnknownSyntaxNameError # - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#13 + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#15 def initialize(name); end end -# source://regexp_parser//lib/regexp_parser/syntax/versions/1.8.6.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/1.8.6.rb#3 class Regexp::Syntax::V1_8_6 < ::Regexp::Syntax::Base; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/1.9.1.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/1.9.1.rb#3 class Regexp::Syntax::V1_9_1 < ::Regexp::Syntax::V1_8_6; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/1.9.3.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/1.9.3.rb#3 class Regexp::Syntax::V1_9_3 < ::Regexp::Syntax::V1_9_1; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.0.0.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.0.0.rb#3 class Regexp::Syntax::V2_0_0 < ::Regexp::Syntax::V1_9_3; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.2.0.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.2.0.rb#3 class Regexp::Syntax::V2_2_0 < ::Regexp::Syntax::V2_0_0; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.3.0.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.3.0.rb#3 class Regexp::Syntax::V2_3_0 < ::Regexp::Syntax::V2_2_0; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.4.0.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.4.0.rb#3 class Regexp::Syntax::V2_4_0 < ::Regexp::Syntax::V2_3_0; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.4.1.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.4.1.rb#3 class Regexp::Syntax::V2_4_1 < ::Regexp::Syntax::V2_4_0; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.5.0.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.5.0.rb#3 class Regexp::Syntax::V2_5_0 < ::Regexp::Syntax::V2_4_1; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.0.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.0.rb#3 class Regexp::Syntax::V2_6_0 < ::Regexp::Syntax::V2_5_0; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.2.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.2.rb#3 class Regexp::Syntax::V2_6_2 < ::Regexp::Syntax::V2_6_0; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.3.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.3.rb#3 class Regexp::Syntax::V2_6_3 < ::Regexp::Syntax::V2_6_2; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/3.1.0.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/3.1.0.rb#3 class Regexp::Syntax::V3_1_0 < ::Regexp::Syntax::V2_6_3; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/3.2.0.rb#1 +# source://regexp_parser//lib/regexp_parser/syntax/versions/3.2.0.rb#3 class Regexp::Syntax::V3_2_0 < ::Regexp::Syntax::V3_1_0; end -# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#4 +# source://regexp_parser//lib/regexp_parser/syntax/versions/3.5.0.rb#1 +class Regexp::Syntax::V3_5_0 < ::Regexp::Syntax::V3_2_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#6 Regexp::Syntax::VERSION_CONST_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#2 +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#4 Regexp::Syntax::VERSION_FORMAT = T.let(T.unsafe(nil), String) -# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#3 +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#5 Regexp::Syntax::VERSION_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://regexp_parser//lib/regexp_parser/token.rb#2 +# source://regexp_parser//lib/regexp_parser/token.rb#4 Regexp::TOKEN_KEYS = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/token.rb#13 +# source://regexp_parser//lib/regexp_parser/token.rb#15 class Regexp::Token < ::Struct + # source://regexp_parser//lib/regexp_parser/token.rb#15 def conditional_level; end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def conditional_level=(_); end - # source://regexp_parser//lib/regexp_parser/token.rb#20 + # source://regexp_parser//lib/regexp_parser/token.rb#22 def length; end + # source://regexp_parser//lib/regexp_parser/token.rb#15 def level; end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def level=(_); end # Returns the value of attribute next. # - # source://regexp_parser//lib/regexp_parser/token.rb#14 + # source://regexp_parser//lib/regexp_parser/token.rb#16 def next; end # Sets the attribute next # # @param value the value to set the attribute next to. # - # source://regexp_parser//lib/regexp_parser/token.rb#14 + # source://regexp_parser//lib/regexp_parser/token.rb#16 def next=(_arg0); end - # source://regexp_parser//lib/regexp_parser/token.rb#16 + # source://regexp_parser//lib/regexp_parser/token.rb#18 def offset; end # Returns the value of attribute previous. # - # source://regexp_parser//lib/regexp_parser/token.rb#14 + # source://regexp_parser//lib/regexp_parser/token.rb#16 def previous; end # Sets the attribute previous # # @param value the value to set the attribute previous to. # - # source://regexp_parser//lib/regexp_parser/token.rb#14 + # source://regexp_parser//lib/regexp_parser/token.rb#16 def previous=(_arg0); end + # source://regexp_parser//lib/regexp_parser/token.rb#15 def set_level; end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def set_level=(_); end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def te; end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def te=(_); end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def text; end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def text=(_); end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def token; end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def token=(_); end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def ts; end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def ts=(_); end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def type; end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def type=(_); end class << self + # source://regexp_parser//lib/regexp_parser/token.rb#15 def [](*_arg0); end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def inspect; end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def keyword_init?; end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def members; end + + # source://regexp_parser//lib/regexp_parser/token.rb#15 def new(*_arg0); end end end diff --git a/sorbet/rbi/gems/reline@0.6.1.rbi b/sorbet/rbi/gems/reline@0.6.2.rbi similarity index 100% rename from sorbet/rbi/gems/reline@0.6.1.rbi rename to sorbet/rbi/gems/reline@0.6.2.rbi diff --git a/sorbet/rbi/gems/require-hooks@0.2.2.rbi b/sorbet/rbi/gems/require-hooks@0.2.2.rbi new file mode 100644 index 00000000..4ad4b3df --- /dev/null +++ b/sorbet/rbi/gems/require-hooks@0.2.2.rbi @@ -0,0 +1,111 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `require-hooks` gem. +# Please instead update this file by running `bin/tapioca gem require-hooks`. + + +# source://require-hooks//lib/require-hooks/api.rb#3 +module RequireHooks + class << self + # Define a block to wrap the code loading. + # The return value MUST be a result of calling the passed block. + # For example, you can use such hooks for instrumentation, debugging purposes. + # + # RequireHooks.around_load do |path, &block| + # puts "Loading #{path}" + # block.call.tap { puts "Loaded #{path}" } + # end + # + # source://require-hooks//lib/require-hooks/api.rb#71 + def around_load(patterns: T.unsafe(nil), exclude_patterns: T.unsafe(nil), &block); end + + # source://require-hooks//lib/require-hooks/api.rb#107 + def context_for(path); end + + # This hook should be used to manually compile byte code to be loaded by the VM. + # The arguments are (path, source = nil), where source is only defined if transformations took place. + # Otherwise, you MUST read the source code from the file yourself. + # + # The return value MUST be either nil (continue to the next hook or default behavior) or a platform-specific bytecode object (e.g., RubyVM::InstructionSequence). + # + # RequireHooks.hijack_load do |path, source| + # source ||= File.read(path) + # if defined?(RubyVM::InstructionSequence) + # RubyVM::InstructionSequence.compile(source) + # elsif defined?(JRUBY_VERSION) + # JRuby.compile(source) + # end + # end + # + # source://require-hooks//lib/require-hooks/api.rb#103 + def hijack_load(patterns: T.unsafe(nil), exclude_patterns: T.unsafe(nil), &block); end + + # Returns the value of attribute print_warnings. + # + # source://require-hooks//lib/require-hooks/api.rb#61 + def print_warnings; end + + # Sets the attribute print_warnings + # + # @param value the value to set the attribute print_warnings to. + # + # source://require-hooks//lib/require-hooks/api.rb#61 + def print_warnings=(_arg0); end + + # Define hooks to perform source-to-source transformations. + # The return value MUST be either String (new source code) or nil (indicating that no transformations were performed). + # + # NOTE: The second argument (`source`) MAY be nil, indicating that no transformer tried to transform the source code. + # + # + # RequireHooks.source_transform do |path, source| + # end + # + # source://require-hooks//lib/require-hooks/api.rb#85 + def source_transform(patterns: T.unsafe(nil), exclude_patterns: T.unsafe(nil), &block); end + end +end + +# source://require-hooks//lib/require-hooks/api.rb#8 +class RequireHooks::Context + # @return [Context] a new instance of Context + # + # source://require-hooks//lib/require-hooks/api.rb#9 + def initialize(around_load, source_transform, hijack_load); end + + # @return [Boolean] + # + # source://require-hooks//lib/require-hooks/api.rb#15 + def empty?; end + + # @return [Boolean] + # + # source://require-hooks//lib/require-hooks/api.rb#23 + def hijack?; end + + # source://require-hooks//lib/require-hooks/api.rb#37 + def perform_source_transform(path); end + + # source://require-hooks//lib/require-hooks/api.rb#27 + def run_around_load_callbacks(path); end + + # @return [Boolean] + # + # source://require-hooks//lib/require-hooks/api.rb#19 + def source_transform?; end + + # source://require-hooks//lib/require-hooks/api.rb#49 + def try_hijack_load(path, source); end +end + +# source://require-hooks//lib/require-hooks/mode/load_iseq.rb#4 +module RequireHooks::LoadIseq + # source://require-hooks//lib/require-hooks/mode/load_iseq.rb#5 + def load_iseq(path); end +end + +class RubyVM::InstructionSequence + extend ::RequireHooks::LoadIseq + extend ::Bootsnap::CompileCache::ISeq::InstructionSequenceMixin +end diff --git a/sorbet/rbi/gems/rexml@3.4.1.rbi b/sorbet/rbi/gems/rexml@3.4.2.rbi similarity index 92% rename from sorbet/rbi/gems/rexml@3.4.1.rbi rename to sorbet/rbi/gems/rexml@3.4.2.rbi index a8f3de3b..2720fdc2 100644 --- a/sorbet/rbi/gems/rexml@3.4.1.rbi +++ b/sorbet/rbi/gems/rexml@3.4.2.rbi @@ -113,12 +113,15 @@ class REXML::Attribute # Returns a copy of this attribute # - # source://rexml//lib/rexml/attribute.rb#164 + # source://rexml//lib/rexml/attribute.rb#161 def clone; end # source://rexml//lib/rexml/attribute.rb#132 def doctype; end + # source://rexml//lib/rexml/attribute.rb#205 + def document; end + # The element to which this attribute belongs # # source://rexml//lib/rexml/attribute.rb#15 @@ -129,7 +132,7 @@ class REXML::Attribute # # Returns this attribute # - # source://rexml//lib/rexml/attribute.rb#172 + # source://rexml//lib/rexml/attribute.rb#169 def element=(element); end # Creates (and returns) a hash from both the name and value @@ -137,7 +140,7 @@ class REXML::Attribute # source://rexml//lib/rexml/attribute.rb#111 def hash; end - # source://rexml//lib/rexml/attribute.rb#198 + # source://rexml//lib/rexml/attribute.rb#195 def inspect; end # Returns the namespace URL, if defined, or nil otherwise @@ -165,13 +168,13 @@ class REXML::Attribute # source://rexml//lib/rexml/attribute.rb#95 def namespace(arg = T.unsafe(nil)); end - # source://rexml//lib/rexml/attribute.rb#194 + # source://rexml//lib/rexml/attribute.rb#191 def node_type; end # The normalized value of this attribute. That is, the attribute with # entities intact. # - # source://rexml//lib/rexml/attribute.rb#158 + # source://rexml//lib/rexml/attribute.rb#155 def normalized=(new_normalized); end # Returns the namespace of the attribute. @@ -191,12 +194,12 @@ class REXML::Attribute # # This method is usually not called directly. # - # source://rexml//lib/rexml/attribute.rb#185 + # source://rexml//lib/rexml/attribute.rb#182 def remove; end # Returns the attribute value, with entities replaced # - # source://rexml//lib/rexml/attribute.rb#140 + # source://rexml//lib/rexml/attribute.rb#137 def to_s; end # Returns this attribute out as XML source, expanding the name @@ -212,22 +215,22 @@ class REXML::Attribute # Returns the UNNORMALIZED value of this attribute. That is, entities # have been expanded to their values # - # source://rexml//lib/rexml/attribute.rb#149 + # source://rexml//lib/rexml/attribute.rb#146 def value; end # Writes this attribute (EG, puts 'key="value"' to the output) # - # source://rexml//lib/rexml/attribute.rb#190 + # source://rexml//lib/rexml/attribute.rb#187 def write(output, indent = T.unsafe(nil)); end - # source://rexml//lib/rexml/attribute.rb#204 + # source://rexml//lib/rexml/attribute.rb#201 def xpath; end end # A class that defines the set of Attributes of an Element and provides # operations for accessing elements in that set. # -# source://rexml//lib/rexml/element.rb#2137 +# source://rexml//lib/rexml/element.rb#2131 class REXML::Attributes < ::Hash # :call-seq: # new(element) @@ -248,7 +251,7 @@ class REXML::Attributes < ::Hash # # @return [Attributes] a new instance of Attributes # - # source://rexml//lib/rexml/element.rb#2156 + # source://rexml//lib/rexml/element.rb#2150 def initialize(element); end # :call-seq: @@ -271,7 +274,7 @@ class REXML::Attributes < ::Hash # attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3' # attrs.include?('baz') # => true # - # source://rexml//lib/rexml/element.rb#2522 + # source://rexml//lib/rexml/element.rb#2520 def <<(attribute); end # :call-seq: @@ -295,7 +298,7 @@ class REXML::Attributes < ::Hash # # Related: get_attribute (returns an \Attribute object). # - # source://rexml//lib/rexml/element.rb#2181 + # source://rexml//lib/rexml/element.rb#2175 def [](name); end # :call-seq: @@ -321,7 +324,7 @@ class REXML::Attributes < ::Hash # attrs['baz:att'] = nil # attrs.include?('baz:att') # => false # - # source://rexml//lib/rexml/element.rb#2365 + # source://rexml//lib/rexml/element.rb#2358 def []=(name, value); end # :call-seq: @@ -344,7 +347,7 @@ class REXML::Attributes < ::Hash # attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3' # attrs.include?('baz') # => true # - # source://rexml//lib/rexml/element.rb#2522 + # source://rexml//lib/rexml/element.rb#2516 def add(attribute); end # :call-seq: @@ -375,7 +378,7 @@ class REXML::Attributes < ::Hash # attrs.delete(attr) # => # => # attrs.delete(attr) # => # => # - # source://rexml//lib/rexml/element.rb#2475 + # source://rexml//lib/rexml/element.rb#2471 def delete(attribute); end # :call-seq: @@ -394,7 +397,7 @@ class REXML::Attributes < ::Hash # attrs = ele.attributes # attrs.delete_all('att') # => [att='<'] # - # source://rexml//lib/rexml/element.rb#2544 + # source://rexml//lib/rexml/element.rb#2538 def delete_all(name); end # :call-seq: @@ -419,7 +422,7 @@ class REXML::Attributes < ::Hash # ["bar:att", "2"] # ["att", "<"] # - # source://rexml//lib/rexml/element.rb#2283 + # source://rexml//lib/rexml/element.rb#2276 def each; end # :call-seq: @@ -444,7 +447,7 @@ class REXML::Attributes < ::Hash # [REXML::Attribute, bar:att='2'] # [REXML::Attribute, att='<'] # - # source://rexml//lib/rexml/element.rb#2250 + # source://rexml//lib/rexml/element.rb#2243 def each_attribute; end # :call-seq: @@ -466,7 +469,7 @@ class REXML::Attributes < ::Hash # attrs.get_attribute('att') # => att='<' # attrs.get_attribute('nosuch') # => nil # - # source://rexml//lib/rexml/element.rb#2309 + # source://rexml//lib/rexml/element.rb#2302 def get_attribute(name); end # :call-seq: @@ -486,7 +489,7 @@ class REXML::Attributes < ::Hash # attrs.get_attribute_ns('http://foo', 'att') # => foo:att='1' # attrs.get_attribute_ns('http://foo', 'nosuch') # => nil # - # source://rexml//lib/rexml/element.rb#2570 + # source://rexml//lib/rexml/element.rb#2564 def get_attribute_ns(namespace, name); end # :call-seq: @@ -503,7 +506,7 @@ class REXML::Attributes < ::Hash # ele = d.root.elements['//ele'] # => # ele.attributes.length # => 3 # - # source://rexml//lib/rexml/element.rb#2221 + # source://rexml//lib/rexml/element.rb#2214 def length; end # :call-seq: @@ -515,7 +518,7 @@ class REXML::Attributes < ::Hash # d = REXML::Document.new(xml_string) # d.root.attributes.namespaces # => {"xmlns"=>"foo", "x"=>"bar", "y"=>"twee"} # - # source://rexml//lib/rexml/element.rb#2431 + # source://rexml//lib/rexml/element.rb#2426 def namespaces; end # :call-seq: @@ -529,7 +532,7 @@ class REXML::Attributes < ::Hash # d = REXML::Document.new(xml_string) # d.root.attributes.prefixes # => ["x", "y"] # - # source://rexml//lib/rexml/element.rb#2406 + # source://rexml//lib/rexml/element.rb#2400 def prefixes; end # :call-seq: @@ -546,7 +549,7 @@ class REXML::Attributes < ::Hash # ele = d.root.elements['//ele'] # => # ele.attributes.length # => 3 # - # source://rexml//lib/rexml/element.rb#2221 + # source://rexml//lib/rexml/element.rb#2219 def size; end # :call-seq: @@ -565,7 +568,7 @@ class REXML::Attributes < ::Hash # attrs = ele.attributes.to_a # => [foo:att='1', bar:att='2', att='<'] # attrs.first.class # => REXML::Attribute # - # source://rexml//lib/rexml/element.rb#2203 + # source://rexml//lib/rexml/element.rb#2196 def to_a; end end @@ -648,7 +651,7 @@ class REXML::Child # This doesn't yet handle encodings # - # source://rexml//lib/rexml/child.rb#91 + # source://rexml//lib/rexml/child.rb#90 def bytes; end # Returns:: the document this child belongs to, or nil if this child @@ -657,7 +660,7 @@ class REXML::Child # source://rexml//lib/rexml/child.rb#85 def document; end - # source://rexml//lib/rexml/node.rb#11 + # source://rexml//lib/rexml/child.rb#58 def next_sibling; end # Sets the next sibling of this child. This can be used to insert a child @@ -688,7 +691,7 @@ class REXML::Child # source://rexml//lib/rexml/child.rb#52 def parent=(other); end - # source://rexml//lib/rexml/node.rb#17 + # source://rexml//lib/rexml/child.rb#59 def previous_sibling; end # Sets the previous sibling of this child. This can be used to insert a @@ -767,7 +770,7 @@ class REXML::Comment < ::REXML::Child # The content text # - # source://rexml//lib/rexml/comment.rb#14 + # source://rexml//lib/rexml/comment.rb#58 def to_s; end # == DEPRECATED @@ -794,20 +797,20 @@ module REXML::DClonable; end # This is an abstract class. You never use this directly; it serves as a # parent class for the specific declarations. # -# source://rexml//lib/rexml/doctype.rb#242 +# source://rexml//lib/rexml/doctype.rb#238 class REXML::Declaration < ::REXML::Child # @return [Declaration] a new instance of Declaration # - # source://rexml//lib/rexml/doctype.rb#243 + # source://rexml//lib/rexml/doctype.rb#239 def initialize(src); end - # source://rexml//lib/rexml/doctype.rb#248 + # source://rexml//lib/rexml/doctype.rb#244 def to_s; end # == DEPRECATED # See REXML::Formatters # - # source://rexml//lib/rexml/doctype.rb#255 + # source://rexml//lib/rexml/doctype.rb#251 def write(output, indent); end end @@ -837,7 +840,7 @@ class REXML::DocType < ::REXML::Parent # source://rexml//lib/rexml/doctype.rb#80 def initialize(first, parent = T.unsafe(nil)); end - # source://rexml//lib/rexml/doctype.rb#185 + # source://rexml//lib/rexml/doctype.rb#181 def add(child); end # source://rexml//lib/rexml/doctype.rb#125 @@ -858,7 +861,7 @@ class REXML::DocType < ::REXML::Parent # source://rexml//lib/rexml/doctype.rb#66 def entities; end - # source://rexml//lib/rexml/doctype.rb#181 + # source://rexml//lib/rexml/doctype.rb#177 def entity(name); end # name is the name of the doctype @@ -887,7 +890,7 @@ class REXML::DocType < ::REXML::Parent # # Method contributed by Henrik Martensson # - # source://rexml//lib/rexml/doctype.rb#229 + # source://rexml//lib/rexml/doctype.rb#225 def notation(name); end # This method returns a list of notations that have been declared in the @@ -896,7 +899,7 @@ class REXML::DocType < ::REXML::Parent # # Method contributed by Henrik Martensson # - # source://rexml//lib/rexml/doctype.rb#221 + # source://rexml//lib/rexml/doctype.rb#217 def notations; end # This method retrieves the public identifier identifying the document's @@ -904,14 +907,14 @@ class REXML::DocType < ::REXML::Parent # # Method contributed by Henrik Martensson # - # source://rexml//lib/rexml/doctype.rb#195 + # source://rexml//lib/rexml/doctype.rb#191 def public; end # This method retrieves the system identifier identifying the document's DTD # # Method contributed by Henrik Martensson # - # source://rexml//lib/rexml/doctype.rb#207 + # source://rexml//lib/rexml/doctype.rb#203 def system; end # output:: @@ -1038,7 +1041,7 @@ class REXML::Document < ::REXML::Element # d.add(REXML::Element.new('foo')) # d.to_s # => "" # - # source://rexml//lib/rexml/document.rb#172 + # source://rexml//lib/rexml/document.rb#203 def <<(child); end # :call-seq: @@ -1165,7 +1168,7 @@ class REXML::Document < ::REXML::Element # d = doc_type # d ? d.name : "UNDEFINED" # - # source://rexml//lib/rexml/document.rb#131 + # source://rexml//lib/rexml/document.rb#136 def name; end # :call-seq: @@ -1223,8 +1226,8 @@ class REXML::Document < ::REXML::Element def version; end # :call-seq: - # doc.write(output=$stdout, indent=-1, transtive=false, ie_hack=false, encoding=nil) - # doc.write(options={:output => $stdout, :indent => -1, :transtive => false, :ie_hack => false, :encoding => nil}) + # doc.write(output=$stdout, indent=-1, transitive=false, ie_hack=false, encoding=nil) + # doc.write(options={:output => $stdout, :indent => -1, :transitive => false, :ie_hack => false, :encoding => nil}) # # Write the XML tree out, optionally with indent. This writes out the # entire XML document, including XML declarations, doctype declarations, @@ -1299,9 +1302,27 @@ class REXML::Document < ::REXML::Element private - # source://rexml//lib/rexml/document.rb#451 + # source://rexml//lib/rexml/document.rb#465 def build(source); end + # New document level cache is created and available in this block. + # This API is thread unsafe. Users can't change this document in this block. + # + # source://rexml//lib/rexml/document.rb#456 + def enable_cache; end + + # Returns the value of attribute namespaces_cache. + # + # source://rexml//lib/rexml/document.rb#452 + def namespaces_cache; end + + # Sets the attribute namespaces_cache + # + # @param value the value to set the attribute namespaces_cache to. + # + # source://rexml//lib/rexml/document.rb#452 + def namespaces_cache=(_arg0); end + class << self # Get the entity expansion limit. By default the limit is set to 10000. # @@ -1682,7 +1703,7 @@ class REXML::Element < ::REXML::Parent # root[:attr] # => "value" # root[:nosuch] # => nil # - # source://rexml//lib/rexml/element.rb#1246 + # source://rexml//lib/rexml/element.rb#1238 def [](name_or_index); end # :call-seq: @@ -1711,7 +1732,7 @@ class REXML::Element < ::REXML::Parent # e.add_attribute(a) # => attr='VALUE' # e['attr'] # => "VALUE" # - # source://rexml//lib/rexml/element.rb#1345 + # source://rexml//lib/rexml/element.rb#1336 def add_attribute(key, value = T.unsafe(nil)); end # :call-seq: @@ -1737,7 +1758,7 @@ class REXML::Element < ::REXML::Parent # a = [['foo' => 'bar'], ['baz' => 'bat']] # e.add_attributes(a) # - # source://rexml//lib/rexml/element.rb#1376 + # source://rexml//lib/rexml/element.rb#1367 def add_attributes(hash); end # :call-seq: @@ -1774,7 +1795,7 @@ class REXML::Element < ::REXML::Parent # e0.add_element(e1, {'bat' => '0', 'bam' => '1'}) # e0[1] # => # - # source://rexml//lib/rexml/element.rb#732 + # source://rexml//lib/rexml/element.rb#725 def add_element(element, attrs = T.unsafe(nil)); end # :call-seq: @@ -1795,7 +1816,7 @@ class REXML::Element < ::REXML::Parent # e.add_namespace('baz', 'bat') # e.namespaces # => {"xmlns"=>"bar", "baz"=>"bat"} # - # source://rexml//lib/rexml/element.rb#655 + # source://rexml//lib/rexml/element.rb#648 def add_namespace(prefix, uri = T.unsafe(nil)); end # :call-seq: @@ -1837,7 +1858,7 @@ class REXML::Element < ::REXML::Parent # a.add_text(REXML::Text.new('baz')) # a.to_a # => ["foo", , "bar", "baz", "baz"] # - # source://rexml//lib/rexml/element.rb#1147 + # source://rexml//lib/rexml/element.rb#1139 def add_text(text); end # :call-seq: @@ -1869,7 +1890,7 @@ class REXML::Element < ::REXML::Parent # document.root.attribute("x") # => x='x' # document.root.attribute("x", "a") # => a:x='a:x' # - # source://rexml//lib/rexml/element.rb#1287 + # source://rexml//lib/rexml/element.rb#1279 def attribute(name, namespace = T.unsafe(nil)); end # Mechanisms for accessing attributes and child elements of this @@ -1894,7 +1915,7 @@ class REXML::Element < ::REXML::Parent # cds.frozen? # => true # cds.map {|cd| cd.class } # => [REXML::CData, REXML::CData] # - # source://rexml//lib/rexml/element.rb#1420 + # source://rexml//lib/rexml/element.rb#1411 def cdatas; end # :call-seq: @@ -1927,7 +1948,7 @@ class REXML::Element < ::REXML::Parent # cs.map {|c| c.class } # => [REXML::Comment, REXML::Comment] # cs.map {|c| c.to_s } # => ["foo", "bar"] # - # source://rexml//lib/rexml/element.rb#1441 + # source://rexml//lib/rexml/element.rb#1432 def comments; end # The context holds information about the processing environment, such as @@ -1953,7 +1974,7 @@ class REXML::Element < ::REXML::Parent # e.delete_attribute('bar') # => # e.delete_attribute('bar') # => nil # - # source://rexml//lib/rexml/element.rb#1395 + # source://rexml//lib/rexml/element.rb#1386 def delete_attribute(key); end # :call-seq: @@ -1993,7 +2014,7 @@ class REXML::Element < ::REXML::Parent # a.delete_element('//c') # => # a.delete_element('//c') # => nil # - # source://rexml//lib/rexml/element.rb#778 + # source://rexml//lib/rexml/element.rb#771 def delete_element(element); end # :call-seq: @@ -2018,7 +2039,7 @@ class REXML::Element < ::REXML::Parent # d.root.delete_namespace('nosuch') # d.to_s # => "" # - # source://rexml//lib/rexml/element.rb#687 + # source://rexml//lib/rexml/element.rb#680 def delete_namespace(namespace = T.unsafe(nil)); end # :call-seq: @@ -2061,7 +2082,7 @@ class REXML::Element < ::REXML::Parent # ... # # - # source://rexml//lib/rexml/element.rb#930 + # source://rexml//lib/rexml/element.rb#923 def each_element(xpath = T.unsafe(nil), &block); end # :call-seq: @@ -2113,7 +2134,7 @@ class REXML::Element < ::REXML::Parent # # # - # source://rexml//lib/rexml/element.rb#847 + # source://rexml//lib/rexml/element.rb#840 def each_element_with_attribute(key, value = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end # :call-seq: @@ -2163,7 +2184,7 @@ class REXML::Element < ::REXML::Parent # # ... # - # source://rexml//lib/rexml/element.rb#904 + # source://rexml//lib/rexml/element.rb#897 def each_element_with_text(text = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end # Mechanisms for accessing attributes and child elements of this @@ -2187,7 +2208,7 @@ class REXML::Element < ::REXML::Parent # d = REXML::Document.new(xml_string) # d.root.get_elements('//a') # => [ ... , ] # - # source://rexml//lib/rexml/element.rb#949 + # source://rexml//lib/rexml/element.rb#942 def get_elements(xpath); end # :call-seq: @@ -2207,7 +2228,7 @@ class REXML::Element < ::REXML::Parent # # d.root.get_text(1) # => "this is bold!" # - # source://rexml//lib/rexml/element.rb#1053 + # source://rexml//lib/rexml/element.rb#1045 def get_text(path = T.unsafe(nil)); end # :call-seq: @@ -2222,7 +2243,7 @@ class REXML::Element < ::REXML::Parent # # @return [Boolean] # - # source://rexml//lib/rexml/element.rb#1315 + # source://rexml//lib/rexml/element.rb#1306 def has_attributes?; end # :call-seq: @@ -2239,7 +2260,7 @@ class REXML::Element < ::REXML::Parent # # @return [Boolean] # - # source://rexml//lib/rexml/element.rb#794 + # source://rexml//lib/rexml/element.rb#787 def has_elements?; end # :call-seq: @@ -2256,7 +2277,7 @@ class REXML::Element < ::REXML::Parent # # @return [Boolean] # - # source://rexml//lib/rexml/element.rb#1002 + # source://rexml//lib/rexml/element.rb#995 def has_text?; end # :call-seq: @@ -2266,7 +2287,7 @@ class REXML::Element < ::REXML::Parent # # See {Element Context}[../doc/rexml/context_rdoc.html]. # - # source://rexml//lib/rexml/element.rb#513 + # source://rexml//lib/rexml/element.rb#512 def ignore_whitespace_nodes; end # :call-seq: @@ -2310,7 +2331,7 @@ class REXML::Element < ::REXML::Parent # is.map {|i| i.class } # => [REXML::Instruction, REXML::Instruction] # is.map {|i| i.to_s } # => ["", ""] # - # source://rexml//lib/rexml/element.rb#1462 + # source://rexml//lib/rexml/element.rb#1453 def instructions; end # :call-seq: @@ -2333,7 +2354,7 @@ class REXML::Element < ::REXML::Parent # b.namespace('y') # => "2" # b.namespace('nosuch') # => nil # - # source://rexml//lib/rexml/element.rb#618 + # source://rexml//lib/rexml/element.rb#619 def namespace(prefix = T.unsafe(nil)); end # :call-seq: @@ -2355,7 +2376,7 @@ class REXML::Element < ::REXML::Parent # d.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"} # d.elements['//c'].namespaces # => {"x"=>"1", "y"=>"2", "z"=>"3"} # - # source://rexml//lib/rexml/element.rb#591 + # source://rexml//lib/rexml/element.rb#590 def namespaces; end # :call-seq: @@ -2368,7 +2389,7 @@ class REXML::Element < ::REXML::Parent # d.root.elements['b'].next_element #-> # d.root.elements['c'].next_element #-> nil # - # source://rexml//lib/rexml/element.rb#963 + # source://rexml//lib/rexml/element.rb#956 def next_element; end # :call-seq: @@ -2380,7 +2401,7 @@ class REXML::Element < ::REXML::Parent # a = d.root # => # a.node_type # => :element # - # source://rexml//lib/rexml/element.rb#1168 + # source://rexml//lib/rexml/element.rb#1160 def node_type; end # :call-seq: @@ -2402,7 +2423,7 @@ class REXML::Element < ::REXML::Parent # d.elements['//b'].prefixes # => ["x", "y"] # d.elements['//c'].prefixes # => ["x", "y", "z"] # - # source://rexml//lib/rexml/element.rb#565 + # source://rexml//lib/rexml/element.rb#564 def prefixes; end # :call-seq: @@ -2415,7 +2436,7 @@ class REXML::Element < ::REXML::Parent # d.root.elements['c'].previous_element #-> # d.root.elements['b'].previous_element #-> nil # - # source://rexml//lib/rexml/element.rb#979 + # source://rexml//lib/rexml/element.rb#972 def previous_element; end # :call-seq: @@ -2428,7 +2449,7 @@ class REXML::Element < ::REXML::Parent # The evaluation is tested against +expanded_name+, and so is namespace # sensitive. # - # source://rexml//lib/rexml/element.rb#533 + # source://rexml//lib/rexml/element.rb#532 def raw; end # :call-seq: @@ -2513,7 +2534,7 @@ class REXML::Element < ::REXML::Parent # Note also that the text note is retrieved by method get_text, # and so is always normalized text. # - # source://rexml//lib/rexml/element.rb#1030 + # source://rexml//lib/rexml/element.rb#1023 def text(path = T.unsafe(nil)); end # :call-seq: @@ -2541,7 +2562,7 @@ class REXML::Element < ::REXML::Parent # # d.root.text = nil #-> '' # - # source://rexml//lib/rexml/element.rb#1089 + # source://rexml//lib/rexml/element.rb#1081 def text=(text); end # :call-seq: @@ -2556,7 +2577,7 @@ class REXML::Element < ::REXML::Parent # ts.map {|t| t.class } # => [REXML::Text, REXML::Text] # ts.map {|t| t.to_s } # => ["text", "more"] # - # source://rexml//lib/rexml/element.rb#1478 + # source://rexml//lib/rexml/element.rb#1469 def texts; end # :call-seq: @@ -2570,7 +2591,7 @@ class REXML::Element < ::REXML::Parent # The evaluation is tested against the element's +expanded_name+, # and so is namespace-sensitive. # - # source://rexml//lib/rexml/element.rb#490 + # source://rexml//lib/rexml/element.rb#489 def whitespace; end # == DEPRECATED @@ -2596,7 +2617,7 @@ class REXML::Element < ::REXML::Parent # doc.write( out ) #-> doc is written to the string 'out' # doc.write( $stdout ) #-> doc written to the console # - # source://rexml//lib/rexml/element.rb#1504 + # source://rexml//lib/rexml/element.rb#1495 def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end # :call-seq: @@ -2619,25 +2640,28 @@ class REXML::Element < ::REXML::Parent # e = REXML::Element.new('foo') # e.xpath # => "foo" # - # source://rexml//lib/rexml/element.rb#1192 + # source://rexml//lib/rexml/element.rb#1184 def xpath; end private - # source://rexml//lib/rexml/element.rb#1521 + # source://rexml//lib/rexml/element.rb#1519 def __to_xpath_helper(node); end + # source://rexml//lib/rexml/element.rb#1511 + def calculate_namespaces; end + # A private helper method # - # source://rexml//lib/rexml/element.rb#1536 + # source://rexml//lib/rexml/element.rb#1534 def each_with_something(test, max = T.unsafe(nil), name = T.unsafe(nil)); end end -# source://rexml//lib/rexml/doctype.rb#261 +# source://rexml//lib/rexml/doctype.rb#257 class REXML::ElementDecl < ::REXML::Declaration # @return [ElementDecl] a new instance of ElementDecl # - # source://rexml//lib/rexml/doctype.rb#262 + # source://rexml//lib/rexml/doctype.rb#258 def initialize(src); end end @@ -2683,7 +2707,7 @@ end # elements = d.root.elements # elements # => # ... > # -# source://rexml//lib/rexml/element.rb#1591 +# source://rexml//lib/rexml/element.rb#1589 class REXML::Elements include ::Enumerable @@ -2700,7 +2724,7 @@ class REXML::Elements # # @return [Elements] a new instance of Elements # - # source://rexml//lib/rexml/element.rb#1604 + # source://rexml//lib/rexml/element.rb#1602 def initialize(parent); end # :call-seq: @@ -2765,7 +2789,7 @@ class REXML::Elements # element.parent # => ... # element.context # => {:raw=>:all} # - # source://rexml//lib/rexml/element.rb#1921 + # source://rexml//lib/rexml/element.rb#1927 def <<(element = T.unsafe(nil)); end # :call-seq: @@ -2821,7 +2845,7 @@ class REXML::Elements # eles[4, 'book'] # => ... # eles[5, 'book'] # => nil # - # source://rexml//lib/rexml/element.rb#1676 + # source://rexml//lib/rexml/element.rb#1674 def [](index, name = T.unsafe(nil)); end # :call-seq: @@ -2860,7 +2884,7 @@ class REXML::Elements # eles[50] = REXML::Text.new('bar') # => "bar" # eles.size # => 5 # - # source://rexml//lib/rexml/element.rb#1731 + # source://rexml//lib/rexml/element.rb#1725 def []=(index, element); end # :call-seq: @@ -2925,7 +2949,7 @@ class REXML::Elements # element.parent # => ... # element.context # => {:raw=>:all} # - # source://rexml//lib/rexml/element.rb#1921 + # source://rexml//lib/rexml/element.rb#1915 def add(element = T.unsafe(nil)); end # :call-seq: @@ -2945,7 +2969,7 @@ class REXML::Elements # xpath = '//book [@category="web"]' # elements.collect(xpath) {|element| element.size } # => [17, 9] # - # source://rexml//lib/rexml/element.rb#1984 + # source://rexml//lib/rexml/element.rb#1978 def collect(xpath = T.unsafe(nil)); end # :call-seq: @@ -2989,7 +3013,7 @@ class REXML::Elements # elements.delete('//book [@category="children"]') # => ... # elements.delete('//nosuch') # => nil # - # source://rexml//lib/rexml/element.rb#1821 + # source://rexml//lib/rexml/element.rb#1815 def delete(element); end # :call-seq: @@ -3009,7 +3033,7 @@ class REXML::Elements # elements.size # => 0 # elements.delete_all('//book') # => [] # - # source://rexml//lib/rexml/element.rb#1847 + # source://rexml//lib/rexml/element.rb#1841 def delete_all(xpath); end # :call-seq: @@ -3040,7 +3064,7 @@ class REXML::Elements # ... # ... # - # source://rexml//lib/rexml/element.rb#1963 + # source://rexml//lib/rexml/element.rb#1957 def each(xpath = T.unsafe(nil)); end # :call-seq: @@ -3055,7 +3079,7 @@ class REXML::Elements # # @return [Boolean] # - # source://rexml//lib/rexml/element.rb#1751 + # source://rexml//lib/rexml/element.rb#1745 def empty?; end # :call-seq: @@ -3072,7 +3096,7 @@ class REXML::Elements # elements.index(ele_4) # => 3 # elements.index(ele_3) # => -1 # - # source://rexml//lib/rexml/element.rb#1769 + # source://rexml//lib/rexml/element.rb#1763 def index(element); end # :call-seq: @@ -3152,7 +3176,7 @@ class REXML::Elements # total += element.size # end # => 26 # - # source://rexml//lib/rexml/element.rb#2069 + # source://rexml//lib/rexml/element.rb#2063 def inject(xpath = T.unsafe(nil), initial = T.unsafe(nil)); end # :call-seq: @@ -3166,7 +3190,7 @@ class REXML::Elements # elements = REXML::Elements.new(d.root) # elements.parent == d.root # => true # - # source://rexml//lib/rexml/element.rb#1619 + # source://rexml//lib/rexml/element.rb#1617 def parent; end # :call-seq: @@ -3178,7 +3202,7 @@ class REXML::Elements # d.root.elements.size # => 3 # Three elements. # d.root.size # => 6 # Three elements plus three text nodes.. # - # source://rexml//lib/rexml/element.rb#2093 + # source://rexml//lib/rexml/element.rb#2087 def size; end # :call-seq: @@ -3199,23 +3223,23 @@ class REXML::Elements # # elements.to_a('//c') # => [] # - # source://rexml//lib/rexml/element.rb#2117 + # source://rexml//lib/rexml/element.rb#2111 def to_a(xpath = T.unsafe(nil)); end private # Private helper class. Removes quotes from quoted strings # - # source://rexml//lib/rexml/element.rb#2125 + # source://rexml//lib/rexml/element.rb#2119 def literalize(name); end end # source://rexml//lib/rexml/encoding.rb#4 module REXML::Encoding - # source://rexml//lib/rexml/encoding.rb#29 + # source://rexml//lib/rexml/encoding.rb#26 def decode(string); end - # source://rexml//lib/rexml/encoding.rb#25 + # source://rexml//lib/rexml/encoding.rb#22 def encode(string); end # ID ---> Encoding name @@ -3228,7 +3252,7 @@ module REXML::Encoding private - # source://rexml//lib/rexml/encoding.rb#34 + # source://rexml//lib/rexml/encoding.rb#31 def find_encoding(name); end end @@ -3321,17 +3345,17 @@ class REXML::Entity < ::REXML::Child end end -# source://rexml//lib/rexml/doctype.rb#267 +# source://rexml//lib/rexml/doctype.rb#263 class REXML::ExternalEntity < ::REXML::Child # @return [ExternalEntity] a new instance of ExternalEntity # - # source://rexml//lib/rexml/doctype.rb#268 + # source://rexml//lib/rexml/doctype.rb#264 def initialize(src); end - # source://rexml//lib/rexml/doctype.rb#272 + # source://rexml//lib/rexml/doctype.rb#268 def to_s; end - # source://rexml//lib/rexml/doctype.rb#275 + # source://rexml//lib/rexml/doctype.rb#271 def write(output, indent); end end @@ -3675,48 +3699,48 @@ end # A Source that wraps an IO. See the Source class for method # documentation # -# source://rexml//lib/rexml/source.rb#215 +# source://rexml//lib/rexml/source.rb#220 class REXML::IOSource < ::REXML::Source # block_size has been deprecated # # @return [IOSource] a new instance of IOSource # - # source://rexml//lib/rexml/source.rb#219 + # source://rexml//lib/rexml/source.rb#224 def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end # @return the current line in the source # - # source://rexml//lib/rexml/source.rb#324 + # source://rexml//lib/rexml/source.rb#329 def current_line; end # @return [Boolean] # - # source://rexml//lib/rexml/source.rb#319 + # source://rexml//lib/rexml/source.rb#324 def empty?; end - # source://rexml//lib/rexml/source.rb#279 + # source://rexml//lib/rexml/source.rb#284 def ensure_buffer; end - # source://rexml//lib/rexml/source.rb#283 + # source://rexml//lib/rexml/source.rb#288 def match(pattern, cons = T.unsafe(nil)); end # @return [Boolean] # - # source://rexml//lib/rexml/source.rb#302 + # source://rexml//lib/rexml/source.rb#307 def match?(pattern, cons = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#240 + # source://rexml//lib/rexml/source.rb#245 def read(term = T.unsafe(nil), min_bytes = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#261 + # source://rexml//lib/rexml/source.rb#266 def read_until(term); end private - # source://rexml//lib/rexml/source.rb#371 + # source://rexml//lib/rexml/source.rb#376 def encoding_updated; end - # source://rexml//lib/rexml/source.rb#346 + # source://rexml//lib/rexml/source.rb#351 def readline(term = T.unsafe(nil)); end end @@ -3810,6 +3834,11 @@ module REXML::Namespace # source://rexml//lib/rexml/namespace.rb#43 def has_name?(other, ns = T.unsafe(nil)); end + # The name of the object, valid if set + # + # source://rexml//lib/rexml/namespace.rb#53 + def local_name; end + # The name of the object, valid if set # # source://rexml//lib/rexml/namespace.rb#9 @@ -3882,48 +3911,48 @@ module REXML::Node def to_s(indent = T.unsafe(nil)); end end -# source://rexml//lib/rexml/doctype.rb#280 +# source://rexml//lib/rexml/doctype.rb#276 class REXML::NotationDecl < ::REXML::Child # @return [NotationDecl] a new instance of NotationDecl # - # source://rexml//lib/rexml/doctype.rb#282 + # source://rexml//lib/rexml/doctype.rb#278 def initialize(name, middle, pub, sys); end # This method retrieves the name of the notation. # # Method contributed by Henrik Martensson # - # source://rexml//lib/rexml/doctype.rb#307 + # source://rexml//lib/rexml/doctype.rb#302 def name; end # Returns the value of attribute public. # - # source://rexml//lib/rexml/doctype.rb#281 + # source://rexml//lib/rexml/doctype.rb#277 def public; end # Sets the attribute public # # @param value the value to set the attribute public to. # - # source://rexml//lib/rexml/doctype.rb#281 + # source://rexml//lib/rexml/doctype.rb#277 def public=(_arg0); end # Returns the value of attribute system. # - # source://rexml//lib/rexml/doctype.rb#281 + # source://rexml//lib/rexml/doctype.rb#277 def system; end # Sets the attribute system # # @param value the value to set the attribute system to. # - # source://rexml//lib/rexml/doctype.rb#281 + # source://rexml//lib/rexml/doctype.rb#277 def system=(_arg0); end - # source://rexml//lib/rexml/doctype.rb#290 + # source://rexml//lib/rexml/doctype.rb#286 def to_s; end - # source://rexml//lib/rexml/doctype.rb#300 + # source://rexml//lib/rexml/doctype.rb#295 def write(output, indent = T.unsafe(nil)); end end @@ -3964,7 +3993,7 @@ class REXML::Parent < ::REXML::Child # source://rexml//lib/rexml/parent.rb#13 def initialize(parent = T.unsafe(nil)); end - # source://rexml//lib/rexml/parent.rb#18 + # source://rexml//lib/rexml/parent.rb#25 def <<(object); end # Fetches a child at a given index @@ -3987,7 +4016,7 @@ class REXML::Parent < ::REXML::Child # source://rexml//lib/rexml/parent.rb#18 def add(object); end - # source://rexml//lib/rexml/parent.rb#115 + # source://rexml//lib/rexml/parent.rb#160 def children; end # Deeply clones this object. This creates a complete duplicate of this @@ -4008,7 +4037,7 @@ class REXML::Parent < ::REXML::Child # source://rexml//lib/rexml/parent.rb#39 def each(&block); end - # source://rexml//lib/rexml/parent.rb#39 + # source://rexml//lib/rexml/parent.rb#61 def each_child(&block); end # source://rexml//lib/rexml/parent.rb#51 @@ -4049,7 +4078,7 @@ class REXML::Parent < ::REXML::Child # @return the number of children of this parent # - # source://rexml//lib/rexml/parent.rb#130 + # source://rexml//lib/rexml/parent.rb#134 def length; end # @return [Boolean] @@ -4057,7 +4086,7 @@ class REXML::Parent < ::REXML::Child # source://rexml//lib/rexml/parent.rb#162 def parent?; end - # source://rexml//lib/rexml/parent.rb#18 + # source://rexml//lib/rexml/parent.rb#24 def push(object); end # Replaces one child with another, making sure the nodelist is correct @@ -4161,51 +4190,51 @@ end class REXML::Parsers::BaseParser # @return [BaseParser] a new instance of BaseParser # - # source://rexml//lib/rexml/parsers/baseparser.rb#163 + # source://rexml//lib/rexml/parsers/baseparser.rb#164 def initialize(source); end - # source://rexml//lib/rexml/parsers/baseparser.rb#173 + # source://rexml//lib/rexml/parsers/baseparser.rb#175 def add_listener(listener); end # Returns true if there are no more events # # @return [Boolean] # - # source://rexml//lib/rexml/parsers/baseparser.rb#208 + # source://rexml//lib/rexml/parsers/baseparser.rb#210 def empty?; end - # source://rexml//lib/rexml/parsers/baseparser.rb#543 + # source://rexml//lib/rexml/parsers/baseparser.rb#532 def entity(reference, entities); end # Returns the value of attribute entity_expansion_count. # - # source://rexml//lib/rexml/parsers/baseparser.rb#178 + # source://rexml//lib/rexml/parsers/baseparser.rb#180 def entity_expansion_count; end # Sets the attribute entity_expansion_limit # # @param value the value to set the attribute entity_expansion_limit to. # - # source://rexml//lib/rexml/parsers/baseparser.rb#179 + # source://rexml//lib/rexml/parsers/baseparser.rb#181 def entity_expansion_limit=(_arg0); end # Sets the attribute entity_expansion_text_limit # # @param value the value to set the attribute entity_expansion_text_limit to. # - # source://rexml//lib/rexml/parsers/baseparser.rb#180 + # source://rexml//lib/rexml/parsers/baseparser.rb#182 def entity_expansion_text_limit=(_arg0); end # Returns true if there are more events. Synonymous with !empty? # # @return [Boolean] # - # source://rexml//lib/rexml/parsers/baseparser.rb#213 + # source://rexml//lib/rexml/parsers/baseparser.rb#215 def has_next?; end # Escapes all possible entities # - # source://rexml//lib/rexml/parsers/baseparser.rb#554 + # source://rexml//lib/rexml/parsers/baseparser.rb#543 def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end # Peek at the +depth+ event in the stack. The first element on the stack @@ -4215,78 +4244,90 @@ class REXML::Parsers::BaseParser # event, so you can effectively pre-parse the entire document (pull the # entire thing into memory) using this method. # - # source://rexml//lib/rexml/parsers/baseparser.rb#229 + # source://rexml//lib/rexml/parsers/baseparser.rb#231 def peek(depth = T.unsafe(nil)); end - # source://rexml//lib/rexml/parsers/baseparser.rb#198 + # source://rexml//lib/rexml/parsers/baseparser.rb#200 def position; end # Returns the next event. This is a +PullEvent+ object. # - # source://rexml//lib/rexml/parsers/baseparser.rb#244 + # source://rexml//lib/rexml/parsers/baseparser.rb#246 def pull; end - # source://rexml//lib/rexml/parsers/baseparser.rb#187 + # source://rexml//lib/rexml/parsers/baseparser.rb#189 def reset; end # Returns the value of attribute source. # - # source://rexml//lib/rexml/parsers/baseparser.rb#177 + # source://rexml//lib/rexml/parsers/baseparser.rb#179 def source; end - # source://rexml//lib/rexml/parsers/baseparser.rb#182 + # source://rexml//lib/rexml/parsers/baseparser.rb#184 def stream=(source); end # Unescapes all possible entities # - # source://rexml//lib/rexml/parsers/baseparser.rb#570 + # source://rexml//lib/rexml/parsers/baseparser.rb#559 def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end # Push an event back on the head of the stream. This method # has (theoretically) infinite depth. # - # source://rexml//lib/rexml/parsers/baseparser.rb#219 + # source://rexml//lib/rexml/parsers/baseparser.rb#221 def unshift(token); end private - # source://rexml//lib/rexml/parsers/baseparser.rb#619 + # source://rexml//lib/rexml/parsers/baseparser.rb#608 def add_namespace(prefix, uri); end # @return [Boolean] # - # source://rexml//lib/rexml/parsers/baseparser.rb#652 + # source://rexml//lib/rexml/parsers/baseparser.rb#641 def need_source_encoding_update?(xml_declaration_encoding); end - # source://rexml//lib/rexml/parsers/baseparser.rb#791 + # source://rexml//lib/rexml/parsers/baseparser.rb#647 + def normalize_xml_declaration_encoding(xml_declaration_encoding); end + + # source://rexml//lib/rexml/parsers/baseparser.rb#844 + def parse_attribute_value_with_equal(name); end + + # source://rexml//lib/rexml/parsers/baseparser.rb#863 def parse_attributes(prefixes); end - # source://rexml//lib/rexml/parsers/baseparser.rb#671 + # source://rexml//lib/rexml/parsers/baseparser.rb#664 def parse_id(base_error_message, accept_external_id:, accept_public_id:); end - # source://rexml//lib/rexml/parsers/baseparser.rb#699 + # source://rexml//lib/rexml/parsers/baseparser.rb#692 def parse_id_invalid_details(accept_external_id:, accept_public_id:); end - # source://rexml//lib/rexml/parsers/baseparser.rb#658 + # source://rexml//lib/rexml/parsers/baseparser.rb#651 def parse_name(base_error_message); end - # source://rexml//lib/rexml/parsers/baseparser.rb#634 + # source://rexml//lib/rexml/parsers/baseparser.rb#623 def pop_namespaces_restore; end - # source://rexml//lib/rexml/parsers/baseparser.rb#737 + # source://rexml//lib/rexml/parsers/baseparser.rb#730 + def process_comment; end + + # source://rexml//lib/rexml/parsers/baseparser.rb#742 def process_instruction; end - # source://rexml//lib/rexml/parsers/baseparser.rb#254 + # source://rexml//lib/rexml/parsers/baseparser.rb#256 def pull_event; end - # source://rexml//lib/rexml/parsers/baseparser.rb#628 + # source://rexml//lib/rexml/parsers/baseparser.rb#617 def push_namespaces_restore; end - # source://rexml//lib/rexml/parsers/baseparser.rb#645 + # source://rexml//lib/rexml/parsers/baseparser.rb#634 def record_entity_expansion(delta = T.unsafe(nil)); end - # source://rexml//lib/rexml/parsers/baseparser.rb#777 + # source://rexml//lib/rexml/parsers/baseparser.rb#830 def scan_quote; end + + # source://rexml//lib/rexml/parsers/baseparser.rb#764 + def xml_declaration; end end # source://rexml//lib/rexml/parsers/baseparser.rb#130 @@ -4301,31 +4342,34 @@ REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp) # source://rexml//lib/rexml/parsers/baseparser.rb#143 module REXML::Parsers::BaseParser::Private; end -# source://rexml//lib/rexml/parsers/baseparser.rb#147 +# source://rexml//lib/rexml/parsers/baseparser.rb#148 REXML::Parsers::BaseParser::Private::ATTLISTDECL_END = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#152 +# source://rexml//lib/rexml/parsers/baseparser.rb#153 REXML::Parsers::BaseParser::Private::CARRIAGE_RETURN_NEWLINE_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#153 +# source://rexml//lib/rexml/parsers/baseparser.rb#154 REXML::Parsers::BaseParser::Private::CHARACTER_REFERENCES = T.let(T.unsafe(nil), Regexp) # source://rexml//lib/rexml/parsers/baseparser.rb#146 REXML::Parsers::BaseParser::Private::CLOSE_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#154 +# source://rexml//lib/rexml/parsers/baseparser.rb#155 REXML::Parsers::BaseParser::Private::DEFAULT_ENTITIES_PATTERNS = T.let(T.unsafe(nil), Hash) -# source://rexml//lib/rexml/parsers/baseparser.rb#151 +# source://rexml//lib/rexml/parsers/baseparser.rb#152 REXML::Parsers::BaseParser::Private::ENTITYDECL_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#149 +# source://rexml//lib/rexml/parsers/baseparser.rb#147 +REXML::Parsers::BaseParser::Private::EQUAL_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#150 REXML::Parsers::BaseParser::Private::GEDECL_PATTERN = T.let(T.unsafe(nil), String) -# source://rexml//lib/rexml/parsers/baseparser.rb#148 +# source://rexml//lib/rexml/parsers/baseparser.rb#149 REXML::Parsers::BaseParser::Private::NAME_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#150 +# source://rexml//lib/rexml/parsers/baseparser.rb#151 REXML::Parsers::BaseParser::Private::PEDECL_PATTERN = T.let(T.unsafe(nil), String) # source://rexml//lib/rexml/parsers/baseparser.rb#144 @@ -4334,7 +4378,7 @@ REXML::Parsers::BaseParser::Private::PEREFERENCE_PATTERN = T.let(T.unsafe(nil), # source://rexml//lib/rexml/parsers/baseparser.rb#145 REXML::Parsers::BaseParser::Private::TAG_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#159 +# source://rexml//lib/rexml/parsers/baseparser.rb#160 REXML::Parsers::BaseParser::Private::XML_PREFIXED_NAMESPACE = T.let(T.unsafe(nil), String) # source://rexml//lib/rexml/parsers/baseparser.rb#66 @@ -4403,7 +4447,7 @@ class REXML::Parsers::XPathParser # For backward compatibility # - # source://rexml//lib/rexml/parsers/xpathparser.rb#174 + # source://rexml//lib/rexml/parsers/xpathparser.rb#221 def preciate_to_string(parsed, &block); end # source://rexml//lib/rexml/parsers/xpathparser.rb#36 @@ -4414,61 +4458,35 @@ class REXML::Parsers::XPathParser private - # | AdditiveExpr ('+' | '-') MultiplicativeExpr - # | MultiplicativeExpr - # # source://rexml//lib/rexml/parsers/xpathparser.rb#505 def AdditiveExpr(path, parsed); end - # | AndExpr S 'and' S EqualityExpr - # | EqualityExpr - # # source://rexml//lib/rexml/parsers/xpathparser.rb#438 def AndExpr(path, parsed); end - # | EqualityExpr ('=' | '!=') RelationalExpr - # | RelationalExpr - # # source://rexml//lib/rexml/parsers/xpathparser.rb#457 def EqualityExpr(path, parsed); end - # | FilterExpr Predicate - # | PrimaryExpr - # # source://rexml//lib/rexml/parsers/xpathparser.rb#608 def FilterExpr(path, parsed); end - # | FUNCTION_NAME '(' ( expr ( ',' expr )* )? ')' - # # source://rexml//lib/rexml/parsers/xpathparser.rb#663 def FunctionCall(rest, parsed); end # LocationPath - # | RelativeLocationPath - # | '/' RelativeLocationPath? - # | '//' RelativeLocationPath # # source://rexml//lib/rexml/parsers/xpathparser.rb#243 def LocationPath(path, parsed); end - # | MultiplicativeExpr ('*' | S ('div' | 'mod') S) UnaryExpr - # | UnaryExpr - # # source://rexml//lib/rexml/parsers/xpathparser.rb#528 def MultiplicativeExpr(path, parsed); end # source://rexml//lib/rexml/parsers/xpathparser.rb#343 def NodeTest(path, parsed); end - # | OrExpr S 'or' S AndExpr - # | AndExpr - # # source://rexml//lib/rexml/parsers/xpathparser.rb#419 def OrExpr(path, parsed); end - # | LocationPath - # | FilterExpr ('/' | '//') RelativeLocationPath - # # source://rexml//lib/rexml/parsers/xpathparser.rb#590 def PathExpr(path, parsed); end @@ -4480,24 +4498,15 @@ class REXML::Parsers::XPathParser # source://rexml//lib/rexml/parsers/xpathparser.rb#626 def PrimaryExpr(path, parsed); end - # | RelationalExpr ('<' | '>' | '<=' | '>=') AdditiveExpr - # | AdditiveExpr - # # source://rexml//lib/rexml/parsers/xpathparser.rb#480 def RelationalExpr(path, parsed); end # source://rexml//lib/rexml/parsers/xpathparser.rb#267 def RelativeLocationPath(path, parsed); end - # | '-' UnaryExpr - # | UnionExpr - # # source://rexml//lib/rexml/parsers/xpathparser.rb#553 def UnaryExpr(path, parsed); end - # | UnionExpr '|' PathExpr - # | PathExpr - # # source://rexml//lib/rexml/parsers/xpathparser.rb#571 def UnionExpr(path, parsed); end @@ -4521,11 +4530,6 @@ REXML::Parsers::XPathParser::LOCAL_NAME_WILDCARD = T.let(T.unsafe(nil), Regexp) # true/false, if a positive match # String, if a name match # NodeTest -# | ('*' | NCNAME ':' '*' | QNAME) NameTest -# | '*' ':' NCNAME NameTest since XPath 2.0 -# | NODE_TYPE '(' ')' NodeType -# | PI '(' LITERAL ')' PI -# | '[' expr ']' Predicate # # source://rexml//lib/rexml/parsers/xpathparser.rb#338 REXML::Parsers::XPathParser::PREFIX_WILDCARD = T.let(T.unsafe(nil), Regexp) @@ -4580,28 +4584,28 @@ class REXML::Source # @param encoding if non-null, sets the encoding of the source to this # @return [Source] a new instance of Source # - # source://rexml//lib/rexml/source.rb#87 + # source://rexml//lib/rexml/source.rb#88 def initialize(arg, encoding = T.unsafe(nil)); end # The current buffer (what we're going to read next) # - # source://rexml//lib/rexml/source.rb#100 + # source://rexml//lib/rexml/source.rb#101 def buffer; end - # source://rexml//lib/rexml/source.rb#110 + # source://rexml//lib/rexml/source.rb#111 def buffer_encoding=(encoding); end # @return the current line in the source # - # source://rexml//lib/rexml/source.rb#175 + # source://rexml//lib/rexml/source.rb#180 def current_line; end - # source://rexml//lib/rexml/source.rb#104 + # source://rexml//lib/rexml/source.rb#105 def drop_parsed_content; end # @return [Boolean] true if the Source is exhausted # - # source://rexml//lib/rexml/source.rb#170 + # source://rexml//lib/rexml/source.rb#175 def empty?; end # Returns the value of attribute encoding. @@ -4612,10 +4616,10 @@ class REXML::Source # Inherited from Encoding # Overridden to support optimized en/decoding # - # source://rexml//lib/rexml/source.rb#116 + # source://rexml//lib/rexml/source.rb#117 def encoding=(enc); end - # source://rexml//lib/rexml/source.rb#134 + # source://rexml//lib/rexml/source.rb#135 def ensure_buffer; end # The line number of the last consumed text @@ -4623,50 +4627,56 @@ class REXML::Source # source://rexml//lib/rexml/source.rb#64 def line; end - # source://rexml//lib/rexml/source.rb#137 + # source://rexml//lib/rexml/source.rb#138 def match(pattern, cons = T.unsafe(nil)); end # @return [Boolean] # - # source://rexml//lib/rexml/source.rb#145 + # source://rexml//lib/rexml/source.rb#146 def match?(pattern, cons = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#161 + # source://rexml//lib/rexml/source.rb#166 def peek_byte; end - # source://rexml//lib/rexml/source.rb#153 + # source://rexml//lib/rexml/source.rb#158 def position; end - # source://rexml//lib/rexml/source.rb#157 + # source://rexml//lib/rexml/source.rb#162 def position=(pos); end - # source://rexml//lib/rexml/source.rb#121 + # source://rexml//lib/rexml/source.rb#122 def read(term = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#124 + # source://rexml//lib/rexml/source.rb#125 def read_until(term); end - # source://rexml//lib/rexml/source.rb#165 + # source://rexml//lib/rexml/source.rb#170 def scan_byte; end + # source://rexml//lib/rexml/source.rb#154 + def skip_spaces; end + private - # source://rexml//lib/rexml/source.rb#184 + # source://rexml//lib/rexml/source.rb#189 def detect_encoding; end - # source://rexml//lib/rexml/source.rb#202 + # source://rexml//lib/rexml/source.rb#207 def encoding_updated; end end # source://rexml//lib/rexml/source.rb#67 module REXML::Source::Private; end -# source://rexml//lib/rexml/source.rb#69 +# source://rexml//lib/rexml/source.rb#70 REXML::Source::Private::PRE_DEFINED_TERM_PATTERNS = T.let(T.unsafe(nil), Hash) -# source://rexml//lib/rexml/source.rb#68 +# source://rexml//lib/rexml/source.rb#69 REXML::Source::Private::SCANNER_RESET_SIZE = T.let(T.unsafe(nil), Integer) +# source://rexml//lib/rexml/source.rb#68 +REXML::Source::Private::SPACES_PATTERN = T.let(T.unsafe(nil), Regexp) + # Generates Source-s. USE THIS CLASS. # # source://rexml//lib/rexml/source.rb#38 @@ -4756,10 +4766,10 @@ class REXML::Text < ::REXML::Child # source://rexml//lib/rexml/text.rb#174 def empty?; end - # source://rexml//lib/rexml/text.rb#274 + # source://rexml//lib/rexml/text.rb#271 def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end - # source://rexml//lib/rexml/text.rb#228 + # source://rexml//lib/rexml/text.rb#225 def inspect; end # source://rexml//lib/rexml/text.rb#170 @@ -4792,7 +4802,7 @@ class REXML::Text < ::REXML::Child # u = Text.new( "sean russell", false, nil, true ) # u.to_s #-> "sean russell" # - # source://rexml//lib/rexml/text.rb#223 + # source://rexml//lib/rexml/text.rb#220 def to_s; end # Returns the string value of this text. This is the text without @@ -4809,7 +4819,7 @@ class REXML::Text < ::REXML::Child # u = Text.new( "sean russell", false, nil, true ) # u.value #-> "sean russell" # - # source://rexml//lib/rexml/text.rb#245 + # source://rexml//lib/rexml/text.rb#242 def value; end # Sets the contents of this text node. This expects the text to be @@ -4820,16 +4830,16 @@ class REXML::Text < ::REXML::Child # e[0].value = "bar" # bar # e[0].value = "" # <a> # - # source://rexml//lib/rexml/text.rb#257 + # source://rexml//lib/rexml/text.rb#254 def value=(val); end - # source://rexml//lib/rexml/text.rb#263 + # source://rexml//lib/rexml/text.rb#260 def wrap(string, width, addnewline = T.unsafe(nil)); end # == DEPRECATED # See REXML::Formatters # - # source://rexml//lib/rexml/text.rb#289 + # source://rexml//lib/rexml/text.rb#288 def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end # Writes out text, substituting special characters beforehand. @@ -4847,42 +4857,42 @@ class REXML::Text < ::REXML::Child # } # puts ascOut # - # source://rexml//lib/rexml/text.rb#321 + # source://rexml//lib/rexml/text.rb#318 def write_with_substitution(out, input); end # FIXME # This probably won't work properly # - # source://rexml//lib/rexml/text.rb#301 + # source://rexml//lib/rexml/text.rb#300 def xpath; end private - # source://rexml//lib/rexml/text.rb#334 + # source://rexml//lib/rexml/text.rb#331 def clear_cache; end class << self # check for illegal characters # # source://rexml//lib/rexml/text.rb#116 - def check(string, pattern, doctype); end + def check(string, pattern, doctype = T.unsafe(nil)); end - # source://rexml//lib/rexml/text.rb#404 + # source://rexml//lib/rexml/text.rb#401 def expand(ref, doctype, filter); end # Escapes all possible entities # - # source://rexml//lib/rexml/text.rb#366 + # source://rexml//lib/rexml/text.rb#363 def normalize(input, doctype = T.unsafe(nil), entity_filter = T.unsafe(nil)); end # Reads text, substituting entities # - # source://rexml//lib/rexml/text.rb#340 + # source://rexml//lib/rexml/text.rb#337 def read_with_substitution(input, illegal = T.unsafe(nil)); end # Unescapes all possible entities # - # source://rexml//lib/rexml/text.rb#390 + # source://rexml//lib/rexml/text.rb#387 def unnormalize(string, doctype = T.unsafe(nil), filter = T.unsafe(nil), illegal = T.unsafe(nil), entity_expansion_text_limit: T.unsafe(nil)); end end end @@ -4935,12 +4945,12 @@ class REXML::XMLDecl < ::REXML::Child # source://rexml//lib/rexml/xmldecl.rb#98 def nowrite; end - # source://rexml//lib/rexml/encoding.rb#7 + # source://rexml//lib/rexml/xmldecl.rb#74 def old_enc=(encoding); end # Returns the value of attribute standalone. # - # source://rexml//lib/rexml/xmldecl.rb#17 + # source://rexml//lib/rexml/xmldecl.rb#73 def stand_alone?; end # Returns the value of attribute standalone. @@ -5033,7 +5043,7 @@ class REXML::XPath # XPath.each( node, '/book/publisher/text()=$publisher', {}, {"publisher"=>"O'Reilly"}) \ # {|el| ... } # - # source://rexml//lib/rexml/xpath.rb#60 + # source://rexml//lib/rexml/xpath.rb#55 def each(element, path = T.unsafe(nil), namespaces = T.unsafe(nil), variables = T.unsafe(nil), options = T.unsafe(nil), &block); end # Finds and returns the first node that matches the supplied xpath. @@ -5059,31 +5069,31 @@ class REXML::XPath # Returns an array of nodes matching a given XPath. # - # source://rexml//lib/rexml/xpath.rb#72 + # source://rexml//lib/rexml/xpath.rb#62 def match(element, path = T.unsafe(nil), namespaces = T.unsafe(nil), variables = T.unsafe(nil), options = T.unsafe(nil)); end end end # @private # -# source://rexml//lib/rexml/xpath_parser.rb#963 +# source://rexml//lib/rexml/xpath_parser.rb#965 class REXML::XPathNode # @return [XPathNode] a new instance of XPathNode # - # source://rexml//lib/rexml/xpath_parser.rb#965 + # source://rexml//lib/rexml/xpath_parser.rb#967 def initialize(node, context = T.unsafe(nil)); end # Returns the value of attribute context. # - # source://rexml//lib/rexml/xpath_parser.rb#964 + # source://rexml//lib/rexml/xpath_parser.rb#966 def context; end - # source://rexml//lib/rexml/xpath_parser.rb#974 + # source://rexml//lib/rexml/xpath_parser.rb#976 def position; end # Returns the value of attribute raw_node. # - # source://rexml//lib/rexml/xpath_parser.rb#964 + # source://rexml//lib/rexml/xpath_parser.rb#966 def raw_node; end end @@ -5101,7 +5111,7 @@ class REXML::XPathParser # source://rexml//lib/rexml/xpath_parser.rb#60 def initialize(strict: T.unsafe(nil)); end - # source://rexml//lib/rexml/xpath_parser.rb#94 + # source://rexml//lib/rexml/xpath_parser.rb#107 def []=(variable_name, value); end # Performs a depth-first (document order) XPath search, and returns the @@ -5109,66 +5119,66 @@ class REXML::XPathParser # # FIXME: This method is incomplete! # - # source://rexml//lib/rexml/xpath_parser.rb#103 + # source://rexml//lib/rexml/xpath_parser.rb#116 def first(path_stack, node); end - # source://rexml//lib/rexml/xpath_parser.rb#84 - def get_first(path, nodeset); end + # source://rexml//lib/rexml/xpath_parser.rb#97 + def get_first(path, node); end - # source://rexml//lib/rexml/xpath_parser.rb#139 - def match(path_stack, nodeset); end + # source://rexml//lib/rexml/xpath_parser.rb#153 + def match(path_stack, node); end # source://rexml//lib/rexml/xpath_parser.rb#69 def namespaces=(namespaces = T.unsafe(nil)); end # source://rexml//lib/rexml/xpath_parser.rb#79 - def parse(path, nodeset); end + def parse(path, node); end - # source://rexml//lib/rexml/xpath_parser.rb#89 - def predicate(path, nodeset); end + # source://rexml//lib/rexml/xpath_parser.rb#102 + def predicate(path, node); end # source://rexml//lib/rexml/xpath_parser.rb#74 def variables=(vars = T.unsafe(nil)); end private - # source://rexml//lib/rexml/xpath_parser.rb#779 + # source://rexml//lib/rexml/xpath_parser.rb#781 def child(nodeset); end - # source://rexml//lib/rexml/xpath_parser.rb#920 + # source://rexml//lib/rexml/xpath_parser.rb#922 def compare(a, operator, b); end - # source://rexml//lib/rexml/xpath_parser.rb#682 + # source://rexml//lib/rexml/xpath_parser.rb#687 def descendant(nodeset, include_self); end - # source://rexml//lib/rexml/xpath_parser.rb#693 + # source://rexml//lib/rexml/xpath_parser.rb#698 def descendant_recursive(raw_node, new_nodeset, new_nodes, include_self); end - # source://rexml//lib/rexml/xpath_parser.rb#942 + # source://rexml//lib/rexml/xpath_parser.rb#944 def each_unnode(nodeset); end - # source://rexml//lib/rexml/xpath_parser.rb#641 + # source://rexml//lib/rexml/xpath_parser.rb#646 def enter(tag, *args); end - # source://rexml//lib/rexml/xpath_parser.rb#819 + # source://rexml//lib/rexml/xpath_parser.rb#821 def equality_relational_compare(set1, op, set2); end - # source://rexml//lib/rexml/xpath_parser.rb#591 + # source://rexml//lib/rexml/xpath_parser.rb#596 def evaluate_predicate(expression, nodesets); end # Expr takes a stack of path elements and a set of nodes (either a Parent # or an Array and returns an Array of matching nodes # - # source://rexml//lib/rexml/xpath_parser.rb#175 + # source://rexml//lib/rexml/xpath_parser.rb#186 def expr(path_stack, nodeset, context = T.unsafe(nil)); end - # source://rexml//lib/rexml/xpath_parser.rb#582 + # source://rexml//lib/rexml/xpath_parser.rb#587 def filter_nodeset(nodeset); end - # source://rexml//lib/rexml/xpath_parser.rb#749 + # source://rexml//lib/rexml/xpath_parser.rb#754 def following(node); end - # source://rexml//lib/rexml/xpath_parser.rb#760 + # source://rexml//lib/rexml/xpath_parser.rb#765 def following_node_of(node); end # Returns a String namespace for a node, given a prefix @@ -5177,22 +5187,22 @@ class REXML::XPathParser # 1. Use the supplied namespace mapping first. # 2. If no mapping was supplied, use the context node to look up the namespace # - # source://rexml//lib/rexml/xpath_parser.rb#163 + # source://rexml//lib/rexml/xpath_parser.rb#174 def get_namespace(node, prefix); end - # source://rexml//lib/rexml/xpath_parser.rb#646 + # source://rexml//lib/rexml/xpath_parser.rb#651 def leave(tag, *args); end - # source://rexml//lib/rexml/xpath_parser.rb#767 + # source://rexml//lib/rexml/xpath_parser.rb#771 def next_sibling_node(node); end - # source://rexml//lib/rexml/xpath_parser.rb#477 + # source://rexml//lib/rexml/xpath_parser.rb#488 def node_test(path_stack, nodesets, any_type: T.unsafe(nil)); end - # source://rexml//lib/rexml/xpath_parser.rb#806 + # source://rexml//lib/rexml/xpath_parser.rb#808 def norm(b); end - # source://rexml//lib/rexml/xpath_parser.rb#894 + # source://rexml//lib/rexml/xpath_parser.rb#896 def normalize_compare_values(a, operator, b); end # Builds a nodeset of all of the preceding nodes of the supplied node, @@ -5200,10 +5210,10 @@ class REXML::XPathParser # preceding:: includes every element in the document that precedes this node, # except for ancestors # - # source://rexml//lib/rexml/xpath_parser.rb#712 + # source://rexml//lib/rexml/xpath_parser.rb#717 def preceding(node); end - # source://rexml//lib/rexml/xpath_parser.rb#734 + # source://rexml//lib/rexml/xpath_parser.rb#739 def preceding_node_of(node); end # Reorders an array of nodes so that they are in document order @@ -5215,24 +5225,24 @@ class REXML::XPathParser # I wouldn't have to do this. Maybe add a document IDX for each node? # Problems with mutable documents. Or, rewrite everything. # - # source://rexml//lib/rexml/xpath_parser.rb#659 + # source://rexml//lib/rexml/xpath_parser.rb#664 def sort(array_of_nodes, order); end - # source://rexml//lib/rexml/xpath_parser.rb#441 + # source://rexml//lib/rexml/xpath_parser.rb#452 def step(path_stack, any_type: T.unsafe(nil), order: T.unsafe(nil)); end # @return [Boolean] # - # source://rexml//lib/rexml/xpath_parser.rb#154 + # source://rexml//lib/rexml/xpath_parser.rb#165 def strict?; end - # source://rexml//lib/rexml/xpath_parser.rb#634 + # source://rexml//lib/rexml/xpath_parser.rb#639 def trace(*args); end - # source://rexml//lib/rexml/xpath_parser.rb#954 + # source://rexml//lib/rexml/xpath_parser.rb#956 def unnode(nodeset); end - # source://rexml//lib/rexml/xpath_parser.rb#881 + # source://rexml//lib/rexml/xpath_parser.rb#883 def value_type(value); end end diff --git a/sorbet/rbi/gems/rgeo-geojson@2.2.0.rbi b/sorbet/rbi/gems/rgeo-geojson@2.2.0.rbi index 6f46b6c0..2775993f 100644 --- a/sorbet/rbi/gems/rgeo-geojson@2.2.0.rbi +++ b/sorbet/rbi/gems/rgeo-geojson@2.2.0.rbi @@ -50,7 +50,7 @@ module RGeo::Feature::Instance # Convert a geometry to a GeoJSON Hash # - # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#29 + # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#32 def as_json; end # Convert a geometry to a GeoJSON String @@ -60,7 +60,7 @@ module RGeo::Feature::Instance # Convert a geometry to a GeoJSON String # - # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#35 + # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#38 def to_json; end end @@ -270,7 +270,7 @@ module RGeo::GeoJSON::ConversionMethods # Convert a geometry to a GeoJSON Hash # - # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#8 + # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#11 def as_json; end # Convert a geometry to a GeoJSON String @@ -280,7 +280,7 @@ module RGeo::GeoJSON::ConversionMethods # Convert a geometry to a GeoJSON String # - # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#14 + # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#17 def to_json; end end @@ -399,7 +399,7 @@ class RGeo::GeoJSON::Feature # Gets the value of the given named property. # Returns nil if the given property is not found. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#105 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#108 def [](key); end # Two features are equal if their geometries, IDs, and properties diff --git a/sorbet/rbi/gems/rgeo@3.0.1.rbi b/sorbet/rbi/gems/rgeo@3.0.1.rbi index fc8c2152..ddac4e2e 100644 --- a/sorbet/rbi/gems/rgeo@3.0.1.rbi +++ b/sorbet/rbi/gems/rgeo@3.0.1.rbi @@ -34,7 +34,7 @@ module RGeo::Cartesian # RGeo::Cartesian.simple_factory for details. Unsupported options # are ignored. # - # source://rgeo//lib/rgeo/cartesian/interface.rb#29 + # source://rgeo//lib/rgeo/cartesian/interface.rb#36 def factory(opts = T.unsafe(nil)); end # Creates and returns a cartesian factory of the preferred @@ -162,7 +162,7 @@ module RGeo::Cartesian::Analysis # # @return [Boolean] # - # source://rgeo//lib/rgeo/cartesian/analysis.rb#28 + # source://rgeo//lib/rgeo/cartesian/analysis.rb#35 def counter_clockwise?(ring); end # Given a LineString, which must be a ring, determine whether the @@ -216,7 +216,7 @@ class RGeo::Cartesian::BoundingBox # @return [Boolean] # - # source://rgeo//lib/rgeo/cartesian/bounding_box.rb#104 + # source://rgeo//lib/rgeo/cartesian/bounding_box.rb#111 def ==(other); end # Adjusts the extents of this bounding box to encompass the given @@ -454,7 +454,7 @@ class RGeo::Cartesian::Factory # # @return [Boolean] # - # source://rgeo//lib/rgeo/cartesian/factory.rb#80 + # source://rgeo//lib/rgeo/cartesian/factory.rb#86 def ==(other); end # See RGeo::Feature::Factory#collection @@ -596,154 +596,154 @@ class RGeo::Cartesian::GeometryCollectionImpl include ::RGeo::ImplHelper::ValidOp include ::RGeo::Cartesian::GeometryMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def node(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def size(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_add(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#277 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#410 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_contains?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/feature/geometry.rb#372 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_crosses?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#16 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#86 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_node; end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#105 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#66 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_size; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def within?(*args); end end @@ -831,30 +831,47 @@ class RGeo::Cartesian::GeometryGraph::GeomEdge < ::Struct # Returns the value of attribute exterior_edge # # @return [Object] the current value of exterior_edge + # + # source://rgeo//lib/rgeo/cartesian/planar_graph.rb#259 def exterior_edge; end # Sets the attribute exterior_edge # # @param value [Object] the value to set the attribute exterior_edge to. # @return [Object] the newly set value + # + # source://rgeo//lib/rgeo/cartesian/planar_graph.rb#259 def exterior_edge=(_); end # Returns the value of attribute interior_edges # # @return [Object] the current value of interior_edges + # + # source://rgeo//lib/rgeo/cartesian/planar_graph.rb#259 def interior_edges; end # Sets the attribute interior_edges # # @param value [Object] the value to set the attribute interior_edges to. # @return [Object] the newly set value + # + # source://rgeo//lib/rgeo/cartesian/planar_graph.rb#259 def interior_edges=(_); end class << self + # source://rgeo//lib/rgeo/cartesian/planar_graph.rb#259 def [](*_arg0); end + + # source://rgeo//lib/rgeo/cartesian/planar_graph.rb#259 def inspect; end + + # source://rgeo//lib/rgeo/cartesian/planar_graph.rb#259 def keyword_init?; end + + # source://rgeo//lib/rgeo/cartesian/planar_graph.rb#259 def members; end + + # source://rgeo//lib/rgeo/cartesian/planar_graph.rb#259 def new(*_arg0); end end end @@ -904,148 +921,148 @@ class RGeo::Cartesian::LineImpl include ::RGeo::Cartesian::GeometryMethods include ::RGeo::Cartesian::LineStringMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def length(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def ring?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#50 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#90 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#89 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#16 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#85 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_length; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#70 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_ring?; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def within?(*args); end end @@ -1062,148 +1079,148 @@ class RGeo::Cartesian::LineStringImpl include ::RGeo::Cartesian::GeometryMethods include ::RGeo::Cartesian::LineStringMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def length(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def ring?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#50 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#90 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#89 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#16 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#85 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_length; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#70 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_ring?; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def within?(*args); end end @@ -1256,154 +1273,154 @@ class RGeo::Cartesian::LinearRingImpl include ::RGeo::Cartesian::GeometryMethods include ::RGeo::Cartesian::LineStringMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def ccw?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def length(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def ring?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#50 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#163 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_ccw?; end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#90 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#89 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#16 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#85 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_length; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#70 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_ring?; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def within?(*args); end end @@ -1423,160 +1440,160 @@ class RGeo::Cartesian::MultiLineStringImpl include ::RGeo::Cartesian::GeometryMethods include ::RGeo::Cartesian::MultiLineStringMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def length(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def node(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def size(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_geometry_collection_methods.rb#101 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/impl_helper/basic_geometry_collection_methods.rb#120 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/feature/geometry.rb#372 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_crosses?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#16 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#128 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_length; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#86 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_node; end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#105 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#66 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_size; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def within?(*args); end end @@ -1600,154 +1617,154 @@ class RGeo::Cartesian::MultiPointImpl include ::RGeo::ImplHelper::ValidOp include ::RGeo::Cartesian::GeometryMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def node(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def size(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_geometry_collection_methods.rb#149 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#410 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_contains?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/feature/geometry.rb#372 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_crosses?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#16 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#86 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_node; end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#105 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#66 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_size; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def within?(*args); end end @@ -1766,166 +1783,166 @@ class RGeo::Cartesian::MultiPolygonImpl include ::RGeo::ImplHelper::ValidOp include ::RGeo::Cartesian::GeometryMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def area(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def centroid(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def node(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def size(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_geometry_collection_methods.rb#173 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_area; end - # source://rgeo//lib/rgeo/impl_helper/basic_geometry_collection_methods.rb#177 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/feature/multi_surface.rb#57 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_centroid; end - # source://rgeo//lib/rgeo/impl_helper/basic_geometry_collection_methods.rb#190 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/feature/geometry.rb#372 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_crosses?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#16 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#86 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_node; end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/multi_surface.rb#69 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#66 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_size; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def within?(*args); end end @@ -2140,136 +2157,136 @@ class RGeo::Cartesian::PointImpl include ::RGeo::Cartesian::GeometryMethods include ::RGeo::Cartesian::PointMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_point_methods.rb#58 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_boundary; end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#56 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_buffer(distance); end - # source://rgeo//lib/rgeo/feature/geometry.rb#410 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_contains?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/basic_point_methods.rb#62 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/feature/geometry.rb#372 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_crosses?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#44 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_distance(rhs); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#16 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def within?(*args); end end @@ -2295,160 +2312,160 @@ class RGeo::Cartesian::PolygonImpl include ::RGeo::Cartesian::ValidOp include ::RGeo::Cartesian::GeometryMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def area(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def centroid(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def interior_ring_n(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_add(other); end - # source://rgeo//lib/rgeo/feature/surface.rb#50 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_area; end - # source://rgeo//lib/rgeo/impl_helper/basic_polygon_methods.rb#52 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/feature/surface.rb#63 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_centroid; end - # source://rgeo//lib/rgeo/impl_helper/basic_polygon_methods.rb#78 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/feature/geometry.rb#372 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_crosses?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/cartesian/feature_methods.rb#16 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_envelope; end - # source://rgeo//lib/rgeo/impl_helper/basic_polygon_methods.rb#32 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_interior_ring_n(idx); end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/surface.rb#75 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/cartesian/feature_classes.rb#104 def within?(*args); end end @@ -2463,7 +2480,7 @@ class RGeo::Cartesian::Segment # @return [Boolean] # - # source://rgeo//lib/rgeo/cartesian/calculations.rb#32 + # source://rgeo//lib/rgeo/cartesian/calculations.rb#35 def ==(other); end # @return [Boolean] @@ -2613,41 +2630,62 @@ class RGeo::Cartesian::SweeplineIntersector::Event < ::Struct # Returns the value of attribute is_start # # @return [Object] the current value of is_start + # + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#20 def is_start; end # Sets the attribute is_start # # @param value [Object] the value to set the attribute is_start to. # @return [Object] the newly set value + # + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#20 def is_start=(_); end # Returns the value of attribute point # # @return [Object] the current value of point + # + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#20 def point; end # Sets the attribute point # # @param value [Object] the value to set the attribute point to. # @return [Object] the newly set value + # + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#20 def point=(_); end # Returns the value of attribute segment # # @return [Object] the current value of segment + # + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#20 def segment; end # Sets the attribute segment # # @param value [Object] the value to set the attribute segment to. # @return [Object] the newly set value + # + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#20 def segment=(_); end class << self + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#20 def [](*_arg0); end + + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#20 def inspect; end + + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#20 def keyword_init?; end + + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#20 def members; end + + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#20 def new(*_arg0); end end end @@ -2657,41 +2695,62 @@ class RGeo::Cartesian::SweeplineIntersector::Intersection < ::Struct # Returns the value of attribute point # # @return [Object] the current value of point + # + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#21 def point; end # Sets the attribute point # # @param value [Object] the value to set the attribute point to. # @return [Object] the newly set value + # + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#21 def point=(_); end # Returns the value of attribute s1 # # @return [Object] the current value of s1 + # + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#21 def s1; end # Sets the attribute s1 # # @param value [Object] the value to set the attribute s1 to. # @return [Object] the newly set value + # + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#21 def s1=(_); end # Returns the value of attribute s2 # # @return [Object] the current value of s2 + # + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#21 def s2; end # Sets the attribute s2 # # @param value [Object] the value to set the attribute s2 to. # @return [Object] the newly set value + # + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#21 def s2=(_); end class << self + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#21 def [](*_arg0); end + + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#21 def inspect; end + + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#21 def keyword_init?; end + + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#21 def members; end + + # source://rgeo//lib/rgeo/cartesian/sweepline_intersector.rb#21 def new(*_arg0); end end end @@ -2745,7 +2804,7 @@ module RGeo::Cartesian::ValidOpHelpers # @param poly [RGeo::Feature::Polygon] # @return [String] invalid_reason # - # source://rgeo//lib/rgeo/cartesian/valid_op.rb#55 + # source://rgeo//lib/rgeo/cartesian/valid_op.rb#16 def check_connected_interiors(poly); end # Checks that there are no invalid intersections between the components @@ -2754,28 +2813,28 @@ module RGeo::Cartesian::ValidOpHelpers # @param poly [RGeo::Feature::Polygon] # @return [String] invalid_reason # - # source://rgeo//lib/rgeo/cartesian/valid_op.rb#26 + # source://rgeo//lib/rgeo/cartesian/valid_op.rb#16 def check_consistent_area(poly); end - # source://rgeo//lib/rgeo/impl_helper/valid_op.rb#326 + # source://rgeo//lib/rgeo/cartesian/valid_op.rb#16 def check_consistent_area_mp(mpoly); end - # source://rgeo//lib/rgeo/impl_helper/valid_op.rb#261 + # source://rgeo//lib/rgeo/cartesian/valid_op.rb#16 def check_holes_in_shell(poly); end - # source://rgeo//lib/rgeo/impl_helper/valid_op.rb#279 + # source://rgeo//lib/rgeo/cartesian/valid_op.rb#16 def check_holes_not_nested(poly); end - # source://rgeo//lib/rgeo/impl_helper/valid_op.rb#187 + # source://rgeo//lib/rgeo/cartesian/valid_op.rb#16 def check_invalid_coordinate(point); end - # source://rgeo//lib/rgeo/impl_helper/valid_op.rb#239 + # source://rgeo//lib/rgeo/cartesian/valid_op.rb#16 def check_no_self_intersecting_rings(poly); end - # source://rgeo//lib/rgeo/impl_helper/valid_op.rb#230 + # source://rgeo//lib/rgeo/cartesian/valid_op.rb#16 def check_no_self_intersections(ring); end - # source://rgeo//lib/rgeo/impl_helper/valid_op.rb#338 + # source://rgeo//lib/rgeo/cartesian/valid_op.rb#16 def check_shells_not_nested(mpoly); end end end @@ -2965,7 +3024,7 @@ class RGeo::CoordSys::CS::Base # # @return [Boolean] # - # source://rgeo//lib/rgeo/coord_sys/cs/entities.rb#160 + # source://rgeo//lib/rgeo/coord_sys/cs/entities.rb#163 def ==(other); end # Psych support @@ -3028,6 +3087,7 @@ class RGeo::CoordSys::CS::Base class << self private + # source://rgeo//lib/rgeo/coord_sys/cs/entities.rb#234 def new(*_arg0); end end end @@ -4708,7 +4768,7 @@ module RGeo::Feature # casting behavior by defining the override_cast method. See # RGeo::Feature::Factory#override_cast for more details. # - # source://rgeo-geojson/2.2.0/lib/rgeo/geo_json/entities.rb#12 + # source://rgeo//lib/rgeo/feature/types.rb#158 def cast(obj, *params); end end end @@ -5093,10 +5153,7 @@ end # factory-ness. # # source://rgeo//lib/rgeo/feature/factory.rb#37 -module RGeo::Feature::Factory::Instance - # source://rgeo-geojson/2.2.0/lib/rgeo/geo_json/conversion_methods.rb#45 - def parse_geojson(input); end -end +module RGeo::Feature::Factory::Instance; end # A FactoryGenerator is a callable object (usually a Proc) that # takes a configuration as a hash and returns a factory. These are @@ -6035,19 +6092,7 @@ end # feature-ness. # # source://rgeo//lib/rgeo/feature/types.rb#14 -module RGeo::Feature::Instance - # source://rgeo-geojson/2.2.0/lib/rgeo/geo_json/conversion_methods.rb#29 - def as_geojson; end - - # source://rgeo-geojson/2.2.0/lib/rgeo/geo_json/conversion_methods.rb#29 - def as_json; end - - # source://rgeo-geojson/2.2.0/lib/rgeo/geo_json/conversion_methods.rb#35 - def to_geojson; end - - # source://rgeo-geojson/2.2.0/lib/rgeo/geo_json/conversion_methods.rb#35 - def to_json; end -end +module RGeo::Feature::Instance; end # == SFS 1.1 Description # @@ -6693,7 +6738,7 @@ module RGeo::Feature::Type # Note that feature objects need not actually include this module. # Therefore, the is_a? method will generally not work. # - # source://rgeo//lib/rgeo/feature/types.rb#59 + # source://rgeo//lib/rgeo/feature/types.rb#63 def ===(rhs); end # source://rgeo//lib/rgeo/feature/types.rb#94 @@ -6732,7 +6777,7 @@ module RGeo::Feature::Type # # RGeo::Feature::Point.type_name # "Point" # - # source://rgeo//lib/rgeo/feature/types.rb#89 + # source://rgeo//lib/rgeo/feature/types.rb#92 def to_s; end # Returns the OpenGIS type name of this type. For example: @@ -7043,7 +7088,7 @@ class RGeo::Geographic::Factory # # @return [Boolean] # - # source://rgeo//lib/rgeo/geographic/factory.rb#91 + # source://rgeo//lib/rgeo/geographic/factory.rb#98 def ==(other); end # See RGeo::Feature::Factory#collection @@ -7243,154 +7288,154 @@ class RGeo::Geographic::ProjectedGeometryCollectionImpl include ::RGeo::ImplHelper::BasicGeometryCollectionMethods include ::RGeo::Geographic::ProjectedGeometryMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def node(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def size(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_add(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#62 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_boundary; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#107 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_buffer(distance); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#91 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#123 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#83 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#135 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#71 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_disjoint?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#103 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_distance(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#21 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_envelope; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#127 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersection(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#75 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersects?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#86 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_node; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#95 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_overlaps?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#143 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#66 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_size; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#139 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_sym_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#79 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_touches?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#131 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_union(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#87 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_within?(rhs); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def within?(*args); end end @@ -7540,148 +7585,148 @@ class RGeo::Geographic::ProjectedLineImpl include ::RGeo::Geographic::ProjectedNCurveMethods include ::RGeo::Geographic::ProjectedLineStringMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def length(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def ring?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_add(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#62 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_boundary; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#107 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_buffer(distance); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#91 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#123 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#83 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#135 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#71 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_disjoint?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#103 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_distance(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#21 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_envelope; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#127 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersection(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#75 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersects?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#185 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_length; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#95 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_overlaps?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#70 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_ring?; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#139 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_sym_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#79 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_touches?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#131 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_union(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#87 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_within?(rhs); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def within?(*args); end end @@ -7698,148 +7743,148 @@ class RGeo::Geographic::ProjectedLineStringImpl include ::RGeo::Geographic::ProjectedNCurveMethods include ::RGeo::Geographic::ProjectedLineStringMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def length(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def ring?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_add(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#62 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_boundary; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#107 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_buffer(distance); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#91 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#123 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#83 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#135 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#71 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_disjoint?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#103 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_distance(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#21 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_envelope; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#127 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersection(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#75 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersects?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#185 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_length; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#95 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_overlaps?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#70 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_ring?; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#139 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_sym_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#79 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_touches?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#131 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_union(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#87 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_within?(rhs); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def within?(*args); end end @@ -7869,154 +7914,154 @@ class RGeo::Geographic::ProjectedLinearRingImpl include ::RGeo::Geographic::ProjectedLineStringMethods include ::RGeo::Geographic::ProjectedLinearRingMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def ccw?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def length(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def ring?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_add(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#62 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_boundary; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#107 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_buffer(distance); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#163 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_ccw?; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#91 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#123 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#83 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#135 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#71 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_disjoint?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#103 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_distance(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#21 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_envelope; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#127 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersection(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#75 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersects?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#185 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_length; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#95 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_overlaps?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#70 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_ring?; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#139 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_sym_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#79 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_touches?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#131 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_union(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#87 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_within?(rhs); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def within?(*args); end end @@ -8043,160 +8088,160 @@ class RGeo::Geographic::ProjectedMultiLineStringImpl include ::RGeo::Geographic::ProjectedGeometryMethods include ::RGeo::Geographic::ProjectedNCurveMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def length(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def node(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def size(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_add(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#62 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_boundary; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#107 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_buffer(distance); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#91 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#123 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#83 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#135 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#71 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_disjoint?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#103 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_distance(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#21 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_envelope; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#127 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersection(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#75 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersects?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#185 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_length; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#86 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_node; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#95 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_overlaps?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#143 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#66 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_size; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#139 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_sym_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#79 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_touches?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#131 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_union(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#87 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_within?(rhs); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def within?(*args); end end @@ -8213,154 +8258,154 @@ class RGeo::Geographic::ProjectedMultiPointImpl include ::RGeo::ImplHelper::BasicMultiPointMethods include ::RGeo::Geographic::ProjectedGeometryMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def node(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def size(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_add(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#62 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_boundary; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#107 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_buffer(distance); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#91 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#123 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#83 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#135 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#71 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_disjoint?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#103 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_distance(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#21 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_envelope; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#127 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersection(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#75 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersects?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#86 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_node; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#95 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_overlaps?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#143 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#66 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_size; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#139 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_sym_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#79 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_touches?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#131 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_union(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#87 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_within?(rhs); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def within?(*args); end end @@ -8380,166 +8425,166 @@ class RGeo::Geographic::ProjectedMultiPolygonImpl include ::RGeo::Geographic::ProjectedNSurfaceMethods include ::RGeo::Geographic::ProjectedMultiPolygonMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def area(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def centroid(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def node(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def size(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_add(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#207 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_area; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#62 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_boundary; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#107 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_buffer(distance); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#211 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_centroid; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#91 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#123 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#83 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#135 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#71 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_disjoint?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#103 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_distance(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#21 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_envelope; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#127 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersection(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#75 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersects?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#86 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_node; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#95 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_overlaps?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#143 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#66 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_size; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#139 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_sym_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#79 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_touches?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#131 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_union(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#87 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_within?(rhs); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def within?(*args); end end @@ -8581,169 +8626,169 @@ class RGeo::Geographic::ProjectedPointImpl include ::RGeo::Geographic::ProjectedGeometryMethods include ::RGeo::Geographic::ProjectedPointMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#17 def lat(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#17 def latitude(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#17 def lon(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#17 def longitude(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_add(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#62 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_boundary; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#107 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_buffer(distance); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#91 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#123 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#83 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#135 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#71 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_disjoint?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#103 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_distance(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#21 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_envelope; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#127 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersection(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#75 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersects?(rhs); end - # source://rgeo//lib/rgeo/impl_helper/basic_point_methods.rb#26 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_lat; end - # source://rgeo//lib/rgeo/impl_helper/basic_point_methods.rb#26 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_latitude; end - # source://rgeo//lib/rgeo/impl_helper/basic_point_methods.rb#22 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_lon; end - # source://rgeo//lib/rgeo/impl_helper/basic_point_methods.rb#22 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_longitude; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#95 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_overlaps?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#139 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_sym_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#79 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_touches?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#131 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_union(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#87 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_within?(rhs); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def within?(*args); end end # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#148 module RGeo::Geographic::ProjectedPointMethods - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#149 + # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#155 def canonical_lon; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#149 + # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#154 def canonical_longitude; end # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#157 @@ -8780,160 +8825,160 @@ class RGeo::Geographic::ProjectedPolygonImpl include ::RGeo::Geographic::ProjectedNSurfaceMethods include ::RGeo::Geographic::ProjectedPolygonMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def area(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def centroid(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def interior_ring_n(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_add(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#207 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_area; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#62 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_boundary; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#107 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_buffer(distance); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#211 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_centroid; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#91 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#123 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#83 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#135 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#71 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_disjoint?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#103 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_distance(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#21 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_envelope; end - # source://rgeo//lib/rgeo/impl_helper/basic_polygon_methods.rb#32 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_interior_ring_n(idx); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#127 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersection(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#75 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_intersects?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#95 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_overlaps?(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#143 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#139 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_sym_difference(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#79 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_touches?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#131 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_union(rhs); end - # source://rgeo//lib/rgeo/geographic/projected_feature_methods.rb#87 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def unsafe_within?(rhs); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/projected_feature_classes.rb#101 def within?(*args); end end @@ -8977,12 +9022,12 @@ class RGeo::Geographic::ProjectedWindow # If y_factor is not explicitly given, it defaults to the same as # the x_factor. # - # source://rgeo//lib/rgeo/geographic/projected_window.rb#238 + # source://rgeo//lib/rgeo/geographic/projected_window.rb#249 def *(x_factor_, y_factor_ = T.unsafe(nil)); end # @return [Boolean] # - # source://rgeo//lib/rgeo/geographic/projected_window.rb#66 + # source://rgeo//lib/rgeo/geographic/projected_window.rb#71 def ==(other); end # Returns the center of the rectangle in _unprojected_ @@ -9055,7 +9100,7 @@ class RGeo::Geographic::ProjectedWindow # Returns the height of the rectangle. # - # source://rgeo//lib/rgeo/geographic/projected_window.rb#119 + # source://rgeo//lib/rgeo/geographic/projected_window.rb#122 def height; end # source://rgeo//lib/rgeo/geographic/projected_window.rb#62 @@ -9104,7 +9149,7 @@ class RGeo::Geographic::ProjectedWindow # Returns the width of the rectangle. # - # source://rgeo//lib/rgeo/geographic/projected_window.rb#110 + # source://rgeo//lib/rgeo/geographic/projected_window.rb#115 def width; end # Returns a new window resulting from adding the given margin to @@ -9259,154 +9304,154 @@ class RGeo::Geographic::SphericalGeometryCollectionImpl include ::RGeo::ImplHelper::ValidOp include ::RGeo::Geographic::SphericalGeometryMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def node(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def size(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_add(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#277 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#410 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_contains?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/feature/geometry.rb#372 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_crosses?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#182 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#86 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_node; end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#105 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#66 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_size; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def within?(*args); end end @@ -9447,148 +9492,148 @@ class RGeo::Geographic::SphericalLineImpl include ::RGeo::Geographic::SphericalGeometryMethods include ::RGeo::Geographic::SphericalLineStringMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def length(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def ring?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#50 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#90 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/geographic/spherical_feature_methods.rb#154 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#182 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/geographic/spherical_feature_methods.rb#145 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersects?(rhs); end - # source://rgeo//lib/rgeo/geographic/spherical_feature_methods.rb#141 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_length; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#70 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_ring?; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def within?(*args); end end @@ -9605,148 +9650,148 @@ class RGeo::Geographic::SphericalLineStringImpl include ::RGeo::Geographic::SphericalGeometryMethods include ::RGeo::Geographic::SphericalLineStringMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def length(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def ring?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#50 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#90 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/geographic/spherical_feature_methods.rb#154 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#182 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/geographic/spherical_feature_methods.rb#145 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersects?(rhs); end - # source://rgeo//lib/rgeo/geographic/spherical_feature_methods.rb#141 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_length; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#70 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_ring?; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def within?(*args); end end @@ -9813,154 +9858,154 @@ class RGeo::Geographic::SphericalLinearRingImpl include ::RGeo::Geographic::SphericalGeometryMethods include ::RGeo::Geographic::SphericalLineStringMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def ccw?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def length(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def ring?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#50 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#163 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_ccw?; end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#90 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/geographic/spherical_feature_methods.rb#154 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_crosses?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#182 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/geographic/spherical_feature_methods.rb#145 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersects?(rhs); end - # source://rgeo//lib/rgeo/geographic/spherical_feature_methods.rb#141 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_length; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_line_string_methods.rb#70 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_ring?; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def within?(*args); end end @@ -9978,7 +10023,7 @@ class RGeo::Geographic::SphericalMath::ArcXYZ # @return [Boolean] # - # source://rgeo//lib/rgeo/geographic/spherical_math.rb#137 + # source://rgeo//lib/rgeo/geographic/spherical_math.rb#140 def ==(other); end # source://rgeo//lib/rgeo/geographic/spherical_math.rb#147 @@ -10043,7 +10088,7 @@ class RGeo::Geographic::SphericalMath::PointXYZ # @return [Boolean] # - # source://rgeo//lib/rgeo/geographic/spherical_math.rb#40 + # source://rgeo//lib/rgeo/geographic/spherical_math.rb#43 def ==(other); end # Creates some point that is perpendicular to this point @@ -10111,160 +10156,160 @@ class RGeo::Geographic::SphericalMultiLineStringImpl include ::RGeo::Geographic::SphericalGeometryMethods include ::RGeo::Geographic::SphericalMultiLineStringMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def length(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def node(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def size(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_geometry_collection_methods.rb#101 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/impl_helper/basic_geometry_collection_methods.rb#120 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/feature/geometry.rb#372 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_crosses?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#182 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/geographic/spherical_feature_methods.rb#211 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_length; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#86 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_node; end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#105 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#66 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_size; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def within?(*args); end end @@ -10288,154 +10333,154 @@ class RGeo::Geographic::SphericalMultiPointImpl include ::RGeo::ImplHelper::ValidOp include ::RGeo::Geographic::SphericalGeometryMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def node(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def size(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_geometry_collection_methods.rb#149 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#410 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_contains?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/feature/geometry.rb#372 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_crosses?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#182 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#86 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_node; end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#105 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#66 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_size; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def within?(*args); end end @@ -10454,166 +10499,166 @@ class RGeo::Geographic::SphericalMultiPolygonImpl include ::RGeo::ImplHelper::ValidOp include ::RGeo::Geographic::SphericalGeometryMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def area(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def centroid(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def node(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def size(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_geometry_collection_methods.rb#173 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_area; end - # source://rgeo//lib/rgeo/impl_helper/basic_geometry_collection_methods.rb#177 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/feature/multi_surface.rb#57 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_centroid; end - # source://rgeo//lib/rgeo/impl_helper/basic_geometry_collection_methods.rb#190 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/feature/geometry.rb#372 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_crosses?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#182 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#86 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_node; end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/multi_surface.rb#69 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry_collection.rb#66 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_size; end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def within?(*args); end end @@ -10629,160 +10674,160 @@ class RGeo::Geographic::SphericalPointImpl include ::RGeo::Geographic::SphericalGeometryMethods include ::RGeo::Geographic::SphericalPointMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#18 def lat(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#18 def latitude(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#18 def lon(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#18 def longitude(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_add(other); end - # source://rgeo//lib/rgeo/impl_helper/basic_point_methods.rb#58 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_boundary; end - # source://rgeo//lib/rgeo/geographic/spherical_feature_methods.rb#69 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_buffer(distance); end - # source://rgeo//lib/rgeo/feature/geometry.rb#410 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_contains?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/basic_point_methods.rb#62 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/feature/geometry.rb#372 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_crosses?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/geographic/spherical_feature_methods.rb#38 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_distance(rhs); end - # source://rgeo//lib/rgeo/impl_helper/basic_point_methods.rb#54 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_envelope; end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/basic_point_methods.rb#26 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_lat; end - # source://rgeo//lib/rgeo/impl_helper/basic_point_methods.rb#26 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_latitude; end - # source://rgeo//lib/rgeo/impl_helper/basic_point_methods.rb#22 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_lon; end - # source://rgeo//lib/rgeo/impl_helper/basic_point_methods.rb#22 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_longitude; end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def within?(*args); end end @@ -10830,160 +10875,160 @@ class RGeo::Geographic::SphericalPolygonImpl include ::RGeo::Geographic::SphericalGeometryMethods include ::RGeo::Geographic::SphericalPolygonMethods - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def *(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def +(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def -(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def area(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def boundary(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def buffer(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def centroid(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def contains?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def convex_hull(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def crosses?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def disjoint?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def distance(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def envelope(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def interior_ring_n(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersection(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def intersects?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def overlaps?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def point_on_surface(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def relate?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def sym_difference(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def touches?(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def transform(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unary_union(*args); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def union(*args); end - # source://rgeo//lib/rgeo/feature/geometry.rb#701 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_add(other); end - # source://rgeo//lib/rgeo/feature/surface.rb#50 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_area; end - # source://rgeo//lib/rgeo/impl_helper/basic_polygon_methods.rb#52 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_boundary; end - # source://rgeo//lib/rgeo/feature/geometry.rb#516 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_buffer(_distance_); end - # source://rgeo//lib/rgeo/geographic/spherical_feature_methods.rb#217 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_centroid; end - # source://rgeo//lib/rgeo/impl_helper/basic_polygon_methods.rb#78 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_contains?(rhs); end - # source://rgeo//lib/rgeo/feature/geometry.rb#529 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_convex_hull; end - # source://rgeo//lib/rgeo/feature/geometry.rb#372 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_crosses?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#583 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#315 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_disjoint?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#501 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_distance(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#182 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_envelope; end - # source://rgeo//lib/rgeo/impl_helper/basic_polygon_methods.rb#32 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_interior_ring_n(idx); end - # source://rgeo//lib/rgeo/feature/geometry.rb#547 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersection(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#334 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_intersects?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#710 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_multiply(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#429 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_overlaps?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/surface.rb#75 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_point_on_surface; end - # source://rgeo//lib/rgeo/feature/geometry.rb#455 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_relate?(_another_geometry, _intersection_pattern_matrix_); end - # source://rgeo//lib/rgeo/feature/geometry.rb#692 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_remove(other); end - # source://rgeo//lib/rgeo/feature/geometry.rb#601 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_sym_difference(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#353 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_touches?(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#722 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_transform(other_factory); end - # source://rgeo//lib/rgeo/feature/geometry.rb#630 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_unary_union; end - # source://rgeo//lib/rgeo/feature/geometry.rb#565 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_union(_another_geometry); end - # source://rgeo//lib/rgeo/feature/geometry.rb#391 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def unsafe_within?(_another_geometry); end - # source://rgeo//lib/rgeo/impl_helper/validity_check.rb#77 + # source://rgeo//lib/rgeo/geographic/spherical_feature_classes.rb#103 def within?(*args); end end @@ -11236,7 +11281,7 @@ class RGeo::Geos::ZMFactory # # @return [Boolean] # - # source://rgeo//lib/rgeo/geos/zm_factory.rb#195 + # source://rgeo//lib/rgeo/geos/zm_factory.rb#198 def ==(other); end # Returns the resolution used by buffer calculations on geometries @@ -11400,7 +11445,7 @@ module RGeo::Geos::ZMGeometryCollectionMethods include ::ActiveSupport::ToJsonWithActiveSupportEncoder include ::Enumerable - # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#324 + # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#327 def [](idx); end # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#329 @@ -11412,7 +11457,7 @@ module RGeo::Geos::ZMGeometryCollectionMethods # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#319 def num_geometries; end - # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#319 + # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#322 def size; end end @@ -11429,18 +11474,18 @@ module RGeo::Geos::ZMGeometryMethods # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#14 def initialize(factory, zgeometry, mgeometry); end - # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#144 + # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#181 def *(rhs); end - # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#149 + # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#180 def +(rhs); end - # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#154 + # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#179 def -(rhs); end # @return [Boolean] # - # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#96 + # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#177 def ==(rhs); end # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#72 @@ -11498,7 +11543,7 @@ module RGeo::Geos::ZMGeometryMethods # @return [Boolean] # - # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#168 + # source://rgeo//lib/rgeo/geos/zm_feature_methods.rb#176 def eql?(rhs); end # @return [Boolean] @@ -12771,7 +12816,7 @@ class RGeo::WKRep::WKBParser # The #parse_hex method is a synonym, present for historical # reasons but deprecated. Use #parse instead. # - # source://rgeo//lib/rgeo/wkrep/wkb_parser.rb#107 + # source://rgeo//lib/rgeo/wkrep/wkb_parser.rb#128 def parse_hex(data); end # source://rgeo//lib/rgeo/wkrep/wkb_parser.rb#92 @@ -12907,7 +12952,7 @@ class RGeo::WKRep::WKTGenerator # Returns the format for type tags. See WKTGenerator for details. # - # source://rgeo//lib/rgeo/wkrep/wkt_generator.rb#63 + # source://rgeo//lib/rgeo/wkrep/wkt_generator.rb#64 def type_format; end private diff --git a/sorbet/rbi/gems/rouge@4.5.1.rbi b/sorbet/rbi/gems/rouge@4.6.0.rbi similarity index 99% rename from sorbet/rbi/gems/rouge@4.5.1.rbi rename to sorbet/rbi/gems/rouge@4.6.0.rbi index 7ed5bbf8..826a37a3 100644 --- a/sorbet/rbi/gems/rouge@4.5.1.rbi +++ b/sorbet/rbi/gems/rouge@4.6.0.rbi @@ -784,6 +784,7 @@ class Rouge::InheritableHash < ::Hash # source://rouge//lib/rouge/util.rb#32 def keys; end + # source://rouge//lib/rouge/util.rb#31 def own_keys; end # source://rouge//lib/rouge/util.rb#17 @@ -799,7 +800,7 @@ class Rouge::InheritableList # source://rouge//lib/rouge/util.rb#42 def initialize(parent = T.unsafe(nil)); end - # source://rouge//lib/rouge/util.rb#61 + # source://rouge//lib/rouge/util.rb#64 def <<(o); end # source://rouge//lib/rouge/util.rb#50 @@ -1431,6 +1432,20 @@ end # source://rouge//lib/rouge/lexers/bibtex.rb#9 class Rouge::Lexers::BibTeX < ::Rouge::RegexLexer; end +# source://rouge//lib/rouge/lexers/bicep.rb#3 +class Rouge::Lexers::Bicep < ::Rouge::RegexLexer + class << self + # source://rouge//lib/rouge/lexers/bicep.rb#17 + def datatypes; end + + # source://rouge//lib/rouge/lexers/bicep.rb#21 + def functions; end + + # source://rouge//lib/rouge/lexers/bicep.rb#10 + def keywords; end + end +end + # source://rouge//lib/rouge/lexers/brainfuck.rb#6 class Rouge::Lexers::Brainfuck < ::Rouge::RegexLexer; end @@ -1541,18 +1556,21 @@ end # source://rouge//lib/rouge/lexers/css.rb#6 class Rouge::Lexers::CSS < ::Rouge::RegexLexer class << self - # source://rouge//lib/rouge/lexers/css.rb#19 - def attributes; end - - # source://rouge//lib/rouge/lexers/css.rb#120 + # source://rouge//lib/rouge/lexers/css.rb#124 def builtins; end - # source://rouge//lib/rouge/lexers/css.rb#151 - def constants; end + # source://rouge//lib/rouge/lexers/css.rb#170 + def colors; end + + # source://rouge//lib/rouge/lexers/css.rb#198 + def functions; end + + # source://rouge//lib/rouge/lexers/css.rb#19 + def properties; end # source: http://www.w3.org/TR/CSS21/syndata.html#vendor-keyword-history # - # source://rouge//lib/rouge/lexers/css.rb#181 + # source://rouge//lib/rouge/lexers/css.rb#217 def vendor_prefixes; end end end @@ -1561,7 +1579,22 @@ end class Rouge::Lexers::CSVS < ::Rouge::RegexLexer; end # source://rouge//lib/rouge/lexers/csharp.rb#6 -class Rouge::Lexers::CSharp < ::Rouge::RegexLexer; end +class Rouge::Lexers::CSharp < ::Rouge::RegexLexer + class << self + # source://rouge//lib/rouge/lexers/csharp.rb#43 + def cpp_keywords; end + + # Reserved Identifiers + # Contextual Keywords + # LINQ Query Expressions + # + # source://rouge//lib/rouge/lexers/csharp.rb#20 + def keywords; end + + # source://rouge//lib/rouge/lexers/csharp.rb#36 + def keywords_type; end + end +end # source://rouge//lib/rouge/lexers/cuda.rb#7 class Rouge::Lexers::CUDA < ::Rouge::Lexers::Cpp @@ -3634,14 +3667,14 @@ end # source://rouge//lib/rouge/lexers/python.rb#6 class Rouge::Lexers::Python < ::Rouge::RegexLexer - # source://rouge//lib/rouge/lexers/python.rb#73 + # source://rouge//lib/rouge/lexers/python.rb#76 def current_string; end class << self # source://rouge//lib/rouge/lexers/python.rb#28 def builtins; end - # source://rouge//lib/rouge/lexers/python.rb#42 + # source://rouge//lib/rouge/lexers/python.rb#44 def builtins_pseudo; end # @return [Boolean] @@ -3649,7 +3682,7 @@ class Rouge::Lexers::Python < ::Rouge::RegexLexer # source://rouge//lib/rouge/lexers/python.rb#15 def detect?(text); end - # source://rouge//lib/rouge/lexers/python.rb#46 + # source://rouge//lib/rouge/lexers/python.rb#48 def exceptions; end # source://rouge//lib/rouge/lexers/python.rb#19 @@ -3657,22 +3690,22 @@ class Rouge::Lexers::Python < ::Rouge::RegexLexer end end -# source://rouge//lib/rouge/lexers/python.rb#247 +# source://rouge//lib/rouge/lexers/python.rb#274 class Rouge::Lexers::Python::StringRegister < ::Array # @return [Boolean] # - # source://rouge//lib/rouge/lexers/python.rb#248 + # source://rouge//lib/rouge/lexers/python.rb#275 def delim?(delim); end - # source://rouge//lib/rouge/lexers/python.rb#252 + # source://rouge//lib/rouge/lexers/python.rb#279 def register(type: T.unsafe(nil), delim: T.unsafe(nil)); end - # source://rouge//lib/rouge/lexers/python.rb#256 + # source://rouge//lib/rouge/lexers/python.rb#283 def remove; end # @return [Boolean] # - # source://rouge//lib/rouge/lexers/python.rb#260 + # source://rouge//lib/rouge/lexers/python.rb#287 def type?(type); end end diff --git a/sorbet/rbi/gems/rspec-core@3.13.3.rbi b/sorbet/rbi/gems/rspec-core@3.13.5.rbi similarity index 100% rename from sorbet/rbi/gems/rspec-core@3.13.3.rbi rename to sorbet/rbi/gems/rspec-core@3.13.5.rbi diff --git a/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi b/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi similarity index 100% rename from sorbet/rbi/gems/rspec-expectations@3.13.3.rbi rename to sorbet/rbi/gems/rspec-expectations@3.13.5.rbi diff --git a/sorbet/rbi/gems/rspec-mocks@3.13.4.rbi b/sorbet/rbi/gems/rspec-mocks@3.13.5.rbi similarity index 100% rename from sorbet/rbi/gems/rspec-mocks@3.13.4.rbi rename to sorbet/rbi/gems/rspec-mocks@3.13.5.rbi diff --git a/sorbet/rbi/gems/rspec-rails@7.1.1.rbi b/sorbet/rbi/gems/rspec-rails@8.0.2.rbi similarity index 97% rename from sorbet/rbi/gems/rspec-rails@7.1.1.rbi rename to sorbet/rbi/gems/rspec-rails@8.0.2.rbi index 806475e9..6e76eb27 100644 --- a/sorbet/rbi/gems/rspec-rails@7.1.1.rbi +++ b/sorbet/rbi/gems/rspec-rails@8.0.2.rbi @@ -116,7 +116,7 @@ end class RSpec::Rails::Railtie < ::Rails::Railtie private - # source://rspec-rails//lib/rspec-rails.rb#68 + # source://rspec-rails//lib/rspec-rails.rb#67 def config_default_preview_path(options); end # @return [Boolean] @@ -129,6 +129,6 @@ class RSpec::Rails::Railtie < ::Rails::Railtie # @return [Boolean] # - # source://rspec-rails//lib/rspec-rails.rb#81 + # source://rspec-rails//lib/rspec-rails.rb#73 def supports_action_mailer_previews?(config); end end diff --git a/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi b/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi index c57a8114..ee08fb47 100644 --- a/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi +++ b/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi @@ -23,7 +23,7 @@ module RSpec::Sorbet::Doubles # @return [void] # - # source://sorbet-runtime/0.5.12003/lib/types/private/methods/_methods.rb#257 + # source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#54 def allow_instance_doubles!(*args, **_arg1, &blk); end # source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#36 diff --git a/sorbet/rbi/gems/rspec-support@3.13.2.rbi b/sorbet/rbi/gems/rspec-support@3.13.5.rbi similarity index 100% rename from sorbet/rbi/gems/rspec-support@3.13.2.rbi rename to sorbet/rbi/gems/rspec-support@3.13.5.rbi diff --git a/sorbet/rbi/gems/rubocop-ast@1.44.0.rbi b/sorbet/rbi/gems/rubocop-ast@1.46.0.rbi similarity index 82% rename from sorbet/rbi/gems/rubocop-ast@1.44.0.rbi rename to sorbet/rbi/gems/rubocop-ast@1.46.0.rbi index 7e2f21e9..09c38a68 100644 --- a/sorbet/rbi/gems/rubocop-ast@1.44.0.rbi +++ b/sorbet/rbi/gems/rubocop-ast@1.46.0.rbi @@ -192,7 +192,7 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node # # @return [Array] an array of value nodes # - # source://ast/2.4.3/lib/ast/node.rb#56 + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#18 def values; end end @@ -216,7 +216,7 @@ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node # # @return [Symbol] the name of the variable being assigned # - # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12 + # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#15 def lhs; end # The name of the variable being assigned as a symbol. @@ -230,12 +230,12 @@ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node # # @return [Node] the expression being assigned. # - # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20 + # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#23 def rhs; end end # Common functionality for primitive literal nodes: `sym`, `str`, -# `int`, `float`, `rational`... +# `int`, `float`, `rational`, `complex`... # # source://rubocop-ast//lib/rubocop/ast/node/mixin/basic_literal_node.rb#7 module RuboCop::AST::BasicLiteralNode @@ -452,7 +452,7 @@ end # parser = Parser::Ruby25.new(builder) # root_node = parser.parse(buffer) # -# source://rubocop-ast//lib/rubocop/ast/builder.rb#128 +# source://rubocop-ast//lib/rubocop/ast/builder.rb#129 class RuboCop::AST::Builder < ::Parser::Builders::Default include ::RuboCop::AST::BuilderExtensions end @@ -468,7 +468,7 @@ module RuboCop::AST::BuilderExtensions # @api private # @return [Node] the generated node # - # source://rubocop-ast//lib/rubocop/ast/builder.rb#100 + # source://rubocop-ast//lib/rubocop/ast/builder.rb#101 def n(type, children, source_map); end # Overwrite the base method to allow strings with invalid encoding @@ -476,14 +476,14 @@ module RuboCop::AST::BuilderExtensions # # @api private # - # source://rubocop-ast//lib/rubocop/ast/builder.rb#106 + # source://rubocop-ast//lib/rubocop/ast/builder.rb#107 def string_value(token); end private # @api private # - # source://rubocop-ast//lib/rubocop/ast/builder.rb#112 + # source://rubocop-ast//lib/rubocop/ast/builder.rb#113 def node_klass(type); end class << self @@ -628,17 +628,17 @@ class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17 def expression; end - # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14 + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#12 def lhs; end - # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14 + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#11 def name; end # The expression being assigned to the variable. # # @return [Node] the expression being assigned. # - # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17 + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#20 def rhs; end end @@ -676,526 +676,524 @@ end module RuboCop::AST::CollectionNode extend ::RuboCop::SimpleForwardable - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def &(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def *(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def +(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def -(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def <<(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def [](*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def []=(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def all?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def any?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def append(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def assoc(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def at(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def bsearch(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def bsearch_index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def chain(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def chunk(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def chunk_while(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def clear(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def collect(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def collect!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def collect_concat(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def combination(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def compact(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def compact!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def compact_blank(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def compact_blank!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def concat(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def count(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def cycle(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def deconstruct(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def delete(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def delete_at(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def delete_if(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def detect(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def difference(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def dig(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def drop(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def drop_while(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each_cons(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each_entry(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each_index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each_slice(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each_with_index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each_with_object(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def empty?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def entries(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def exclude?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def excluding(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def extract!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def extract_options!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def fetch(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def fetch_values(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def fifth(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def fill(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def filter(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def filter!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def filter_map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def find(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def find_all(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def find_index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def first(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def flat_map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def flatten(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def flatten!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def forty_two(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def fourth(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def from(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def grep(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def grep_v(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def group_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def in_groups(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def in_groups_of(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def in_order_of(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def include?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def including(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def index_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def index_with(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def inject(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def inquiry(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def insert(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def intersect?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def intersection(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def join(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def keep_if(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def last(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def lazy(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def length(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def many?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def map!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def max(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def max_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def maximum(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def member?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def min(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def min_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def minimum(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def minmax(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def minmax_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def none?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def one?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def pack(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def partition(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def permutation(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def pick(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def place(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def pluck(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def pop(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def prepend(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def product(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def push(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def rassoc(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def reduce(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def reject(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def reject!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def repeated_combination(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def repeated_permutation(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def replace(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def reverse(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def reverse!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def reverse_each(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def rindex(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def rotate(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def rotate!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def sample(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def second(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def second_to_last(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def select(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def select!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def shelljoin(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def shift(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def shuffle(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def shuffle!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def size(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def slice(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def slice!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def slice_after(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def slice_before(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def slice_when(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def sole(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def sort(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def sort!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def sort_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def sort_by!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def split(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def sum(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def take(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def take_while(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def tally(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def third(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def third_to_last(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def to(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def to_ary(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def to_cbor(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def to_formatted_s(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def to_fs(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def to_h(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def to_msgpack(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def to_sentence(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def to_set(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def to_xml(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def transpose(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def union(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def uniq(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def uniq!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def unshift(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def values_at(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def without(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def zip(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def |(*_arg0, **_arg1, &_arg2); end end # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#9 RuboCop::AST::CollectionNode::ARRAY_METHODS = T.let(T.unsafe(nil), Array) +# A node extension for `complex` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available to +# all `complex` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/complex_node.rb#8 +class RuboCop::AST::ComplexNode < ::RuboCop::AST::Node + include ::RuboCop::AST::BasicLiteralNode + include ::RuboCop::AST::NumericNode +end + # Common functionality for nodes that have conditions: # `if`, `while`, `until`, `case`. # This currently doesn't include `when` nodes, because they have multiple @@ -1258,7 +1256,7 @@ module RuboCop::AST::ConstantNode # Note: some classes might have uppercase in which case this method # returns false # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#21 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#24 def class_name?; end # Yield nodes for the namespace @@ -1379,7 +1377,7 @@ class RuboCop::AST::DefinedNode < ::RuboCop::AST::Node include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://ast/2.4.3/lib/ast/node.rb#56 + # source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#16 def arguments; end # source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#12 @@ -2307,7 +2305,7 @@ class RuboCop::AST::MasgnNode < ::RuboCop::AST::Node # # @return [Node] the right hand side of a multiple assignment. # - # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39 + # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#42 def rhs; end # In contrast to `expression`, `values` always returns a Ruby array @@ -2361,7 +2359,7 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the dispatched method is a setter # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#107 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#110 def assignment?; end # Checks whether the dispatched method is a bare access modifier that @@ -2849,19 +2847,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node # @return [Node] a new instance of Node # @see https://www.rubydoc.info/gems/ast/AST/Node:initialize # - # source://rubocop-ast//lib/rubocop/ast/node.rb#145 + # source://rubocop-ast//lib/rubocop/ast/node.rb#148 def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def __ENCODING___type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def __FILE___type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def __LINE___type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def alias_type?; end # Returns an array of ancestor nodes. @@ -2869,183 +2867,188 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] an array of ancestor nodes # - # source://rubocop-ast//lib/rubocop/ast/node.rb#310 + # source://rubocop-ast//lib/rubocop/ast/node.rb#313 def ancestors; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def and_asgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def and_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#539 + # source://rubocop-ast//lib/rubocop/ast/node.rb#542 def any_block_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#519 + # source://rubocop-ast//lib/rubocop/ast/node.rb#522 def any_def_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#546 + def any_match_pattern_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def arg_expr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def arg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def args_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#515 + # source://rubocop-ast//lib/rubocop/ast/node.rb#518 def argument?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#523 + # source://rubocop-ast//lib/rubocop/ast/node.rb#526 def argument_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def array_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def array_pattern_with_tail_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def array_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#467 + # source://rubocop-ast//lib/rubocop/ast/node.rb#470 def assignment?; end # Some cops treat the shovel operator as a kind of assignment. # - # source://rubocop-ast//lib/rubocop/ast/node.rb#417 + # source://rubocop-ast//lib/rubocop/ast/node.rb#420 def assignment_or_similar?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def back_ref_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#471 + # source://rubocop-ast//lib/rubocop/ast/node.rb#474 def basic_conditional?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#425 + # source://rubocop-ast//lib/rubocop/ast/node.rb#428 def basic_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def begin_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def block_pass_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def block_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def blockarg_expr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def blockarg_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#527 + # source://rubocop-ast//lib/rubocop/ast/node.rb#530 def boolean_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def break_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#507 + # source://rubocop-ast//lib/rubocop/ast/node.rb#510 def call_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def case_match_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def case_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def casgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def cbase_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#511 + # source://rubocop-ast//lib/rubocop/ast/node.rb#514 def chained?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#587 + # source://rubocop-ast//lib/rubocop/ast/node.rb#594 def class_constructor?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#605 + # source://rubocop-ast//lib/rubocop/ast/node.rb#612 def class_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def class_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#207 + # source://rubocop-ast//lib/rubocop/ast/node.rb#210 def complete!; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#212 + # source://rubocop-ast//lib/rubocop/ast/node.rb#215 def complete?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def complex_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#475 + # source://rubocop-ast//lib/rubocop/ast/node.rb#478 def conditional?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#356 + # source://rubocop-ast//lib/rubocop/ast/node.rb#359 def const_name; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def const_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def const_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def csend_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def cvar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def cvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def def_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#376 + # source://rubocop-ast//lib/rubocop/ast/node.rb#379 def defined_module; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#381 + # source://rubocop-ast//lib/rubocop/ast/node.rb#384 def defined_module_name; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def defined_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def defs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def dstr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def dsym_type?; end # Calls the given block for each ancestor node from parent to root. @@ -3058,169 +3061,169 @@ class RuboCop::AST::Node < ::Parser::AST::Node # @return [Enumerator] if no block is given # @yieldparam node [Node] each ancestor node # - # source://rubocop-ast//lib/rubocop/ast/node.rb#298 + # source://rubocop-ast//lib/rubocop/ast/node.rb#301 def each_ancestor(*types, &block); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def eflipflop_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def empty_else_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#411 + # source://rubocop-ast//lib/rubocop/ast/node.rb#414 def empty_source?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def ensure_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#459 + # source://rubocop-ast//lib/rubocop/ast/node.rb#462 def equals_asgn?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def erange_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def false_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#433 + # source://rubocop-ast//lib/rubocop/ast/node.rb#436 def falsey_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def find_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#324 + # source://rubocop-ast//lib/rubocop/ast/node.rb#327 def first_line; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def float_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def for_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def forward_arg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def forward_args_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def forwarded_args_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def forwarded_kwrestarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def forwarded_restarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#584 + # source://rubocop-ast//lib/rubocop/ast/node.rb#591 def global_const?(param0 = T.unsafe(nil), param1); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#543 + # source://rubocop-ast//lib/rubocop/ast/node.rb#550 def guard_clause?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def gvar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def gvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def hash_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def hash_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def ident_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def if_guard_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def if_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def iflipflop_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#441 + # source://rubocop-ast//lib/rubocop/ast/node.rb#444 def immutable_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def in_match_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def in_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def index_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def indexasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def int_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def irange_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def itarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def itblock_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def ivar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def ivasgn_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#488 + # source://rubocop-ast//lib/rubocop/ast/node.rb#491 def keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwargs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwbegin_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwnilarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwoptarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwrestarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwsplat_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#578 + # source://rubocop-ast//lib/rubocop/ast/node.rb#585 def lambda?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#581 + # source://rubocop-ast//lib/rubocop/ast/node.rb#588 def lambda_or_proc?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def lambda_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#328 + # source://rubocop-ast//lib/rubocop/ast/node.rb#331 def last_line; end # Use is discouraged, this is a potentially slow method and can lead @@ -3228,7 +3231,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Node, nil] the left (aka previous) sibling # - # source://rubocop-ast//lib/rubocop/ast/node.rb#250 + # source://rubocop-ast//lib/rubocop/ast/node.rb#253 def left_sibling; end # Use is discouraged, this is a potentially slow method and can lead @@ -3236,22 +3239,22 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the left (aka previous) siblings # - # source://rubocop-ast//lib/rubocop/ast/node.rb#260 + # source://rubocop-ast//lib/rubocop/ast/node.rb#263 def left_siblings; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#332 + # source://rubocop-ast//lib/rubocop/ast/node.rb#335 def line_count; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#421 + # source://rubocop-ast//lib/rubocop/ast/node.rb#424 def literal?; end # Shortcut to safely check if a location is present # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#551 + # source://rubocop-ast//lib/rubocop/ast/node.rb#558 def loc?(which_loc); end # Shortcut to safely test a particular location, even if @@ -3259,86 +3262,86 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#559 + # source://rubocop-ast//lib/rubocop/ast/node.rb#566 def loc_is?(which_loc, str); end # NOTE: `loop { }` is a normal method call and thus not a loop keyword. # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#484 + # source://rubocop-ast//lib/rubocop/ast/node.rb#487 def loop_keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def lvar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def lvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def masgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_alt_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_as_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_current_line_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#566 + # source://rubocop-ast//lib/rubocop/ast/node.rb#573 def match_guard_clause?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_nil_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_pattern_p_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_rest_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_var_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_with_lvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_with_trailing_comma_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def mlhs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#612 + # source://rubocop-ast//lib/rubocop/ast/node.rb#619 def module_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def module_type?; end # Predicates # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#403 + # source://rubocop-ast//lib/rubocop/ast/node.rb#406 def multiline?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#437 + # source://rubocop-ast//lib/rubocop/ast/node.rb#440 def mutable_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#743 + # source://rubocop-ast//lib/rubocop/ast/node.rb#750 def new_class_or_module_block?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def next_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def nil_type?; end # Common destructuring method. This can be used to normalize @@ -3348,98 +3351,98 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the different parts of the ndde # - # source://ast/2.4.3/lib/ast/node.rb#56 + # source://rubocop-ast//lib/rubocop/ast/node.rb#284 def node_parts; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#338 + # source://rubocop-ast//lib/rubocop/ast/node.rb#341 def nonempty_line_count; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def not_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def nth_ref_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def numargs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def numblock_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#531 + # source://rubocop-ast//lib/rubocop/ast/node.rb#534 def numeric_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def objc_kwarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def objc_restarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def objc_varargs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def op_asgn_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#499 + # source://rubocop-ast//lib/rubocop/ast/node.rb#502 def operator_keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def optarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def or_asgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def or_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def pair_type?; end # Returns the parent node, or `nil` if the receiver is a root node. # # @return [Node, nil] the parent node or `nil` # - # source://rubocop-ast//lib/rubocop/ast/node.rb#189 + # source://rubocop-ast//lib/rubocop/ast/node.rb#192 def parent; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#198 + # source://rubocop-ast//lib/rubocop/ast/node.rb#201 def parent?; end # Searching the AST # - # source://rubocop-ast//lib/rubocop/ast/node.rb#387 + # source://rubocop-ast//lib/rubocop/ast/node.rb#390 def parent_module_name; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#503 + # source://rubocop-ast//lib/rubocop/ast/node.rb#506 def parenthesized_call?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def pin_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#479 + # source://rubocop-ast//lib/rubocop/ast/node.rb#482 def post_condition_loop?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def postexe_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def preexe_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#571 + # source://rubocop-ast//lib/rubocop/ast/node.rb#578 def proc?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def procarg0_type?; end # Some expressions are evaluated for their value, some for their side @@ -3452,60 +3455,60 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#655 + # source://rubocop-ast//lib/rubocop/ast/node.rb#662 def pure?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#535 + # source://rubocop-ast//lib/rubocop/ast/node.rb#538 def range_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def rational_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#349 + # source://rubocop-ast//lib/rubocop/ast/node.rb#352 def receiver(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#129 + # source://rubocop-ast//lib/rubocop/ast/node.rb#131 def recursive_basic_literal?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#129 + # source://rubocop-ast//lib/rubocop/ast/node.rb#131 def recursive_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def redo_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#455 + # source://rubocop-ast//lib/rubocop/ast/node.rb#458 def reference?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def regexp_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def regopt_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def resbody_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def rescue_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def restarg_expr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def restarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def retry_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def return_type?; end # Use is discouraged, this is a potentially slow method and can lead @@ -3513,7 +3516,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Node, nil] the right (aka next) sibling # - # source://rubocop-ast//lib/rubocop/ast/node.rb#241 + # source://rubocop-ast//lib/rubocop/ast/node.rb#244 def right_sibling; end # Use is discouraged, this is a potentially slow method and can lead @@ -3521,18 +3524,18 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the right (aka next) siblings # - # source://rubocop-ast//lib/rubocop/ast/node.rb#269 + # source://rubocop-ast//lib/rubocop/ast/node.rb#272 def right_siblings; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#203 + # source://rubocop-ast//lib/rubocop/ast/node.rb#206 def root?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def sclass_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def self_type?; end # Most nodes are of 'send' type, so this method is defined @@ -3540,15 +3543,15 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#182 + # source://rubocop-ast//lib/rubocop/ast/node.rb#185 def send_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def shadowarg_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#463 + # source://rubocop-ast//lib/rubocop/ast/node.rb#466 def shorthand_asgn?; end # Returns the index of the receiver node in its siblings. (Sibling index @@ -3557,58 +3560,58 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Integer, nil] the index of the receiver node in its siblings # - # source://rubocop-ast//lib/rubocop/ast/node.rb#234 + # source://rubocop-ast//lib/rubocop/ast/node.rb#237 def sibling_index; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#407 + # source://rubocop-ast//lib/rubocop/ast/node.rb#410 def single_line?; end # NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}` # # @return [String, nil] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#316 + # source://rubocop-ast//lib/rubocop/ast/node.rb#319 def source; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#342 + # source://rubocop-ast//lib/rubocop/ast/node.rb#345 def source_length; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#320 + # source://rubocop-ast//lib/rubocop/ast/node.rb#323 def source_range; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#495 + # source://rubocop-ast//lib/rubocop/ast/node.rb#498 def special_keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def splat_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#354 + # source://rubocop-ast//lib/rubocop/ast/node.rb#357 def str_content(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def str_type?; end # @deprecated Use `:class_constructor?` # - # source://rubocop-ast//lib/rubocop/ast/node.rb#600 + # source://rubocop-ast//lib/rubocop/ast/node.rb#607 def struct_constructor?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def super_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def sym_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def true_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#429 + # source://rubocop-ast//lib/rubocop/ast/node.rb#432 def truthy_literal?; end # Determine if the node is one of several node types in a single query @@ -3617,19 +3620,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#164 + # source://rubocop-ast//lib/rubocop/ast/node.rb#167 def type?(*types); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def undef_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def unless_guard_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def until_post_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def until_type?; end # Override `AST::Node#updated` so that `AST::Processor` does not try to @@ -3638,7 +3641,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # identical subtrees. Rather, the entire AST must be copied any time any # part of it is changed. # - # source://rubocop-ast//lib/rubocop/ast/node.rb#223 + # source://rubocop-ast//lib/rubocop/ast/node.rb#226 def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end # Some expressions are evaluated for their value, some for their side @@ -3651,78 +3654,78 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#625 + # source://rubocop-ast//lib/rubocop/ast/node.rb#632 def value_used?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#451 + # source://rubocop-ast//lib/rubocop/ast/node.rb#454 def variable?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def when_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def while_post_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def while_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def xstr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def yield_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def zsuper_type?; end protected - # source://rubocop-ast//lib/rubocop/ast/node.rb#193 + # source://rubocop-ast//lib/rubocop/ast/node.rb#196 def parent=(node); end private # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#682 + # source://rubocop-ast//lib/rubocop/ast/node.rb#689 def begin_value_used?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#693 + # source://rubocop-ast//lib/rubocop/ast/node.rb#700 def case_if_value_used?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#367 + # source://rubocop-ast//lib/rubocop/ast/node.rb#370 def defined_module0(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#687 + # source://rubocop-ast//lib/rubocop/ast/node.rb#694 def for_value_used?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#729 + # source://rubocop-ast//lib/rubocop/ast/node.rb#736 def parent_module_name_for_block(ancestor); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#717 + # source://rubocop-ast//lib/rubocop/ast/node.rb#724 def parent_module_name_for_sclass(sclass_node); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#704 + # source://rubocop-ast//lib/rubocop/ast/node.rb#711 def parent_module_name_part(node); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#673 + # source://rubocop-ast//lib/rubocop/ast/node.rb#680 def visit_ancestors(types); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#699 + # source://rubocop-ast//lib/rubocop/ast/node.rb#706 def while_until_value_used?; end class << self private - # source://rubocop-ast//lib/rubocop/ast/node.rb#124 + # source://rubocop-ast//lib/rubocop/ast/node.rb#127 def def_recursive_literal_predicate(kind); end end end @@ -3886,13 +3889,13 @@ class RuboCop::AST::NodePattern # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 def ast; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#75 def captures(*_arg0, **_arg1, &_arg2); end # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111 def encode_with(coder); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#93 def eql?(other); end # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#119 @@ -3915,7 +3918,7 @@ class RuboCop::AST::NodePattern # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 def match_code; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#75 def named_parameters(*_arg0, **_arg1, &_arg2); end # Returns the value of attribute pattern. @@ -3923,7 +3926,7 @@ class RuboCop::AST::NodePattern # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 def pattern; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#75 def positional_parameters(*_arg0, **_arg1, &_arg2); end # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95 @@ -4007,7 +4010,7 @@ class RuboCop::AST::NodePattern::Comment # Returns the value of attribute location. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#8 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#9 def loc; end # Returns the value of attribute location. @@ -4036,7 +4039,7 @@ class RuboCop::AST::NodePattern::Compiler # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15 def initialize; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#24 def bind(*_arg0, **_arg1, &_arg2); end # Returns the value of attribute binding. @@ -4119,7 +4122,7 @@ class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::Nod # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#32 def visit_named_parameter; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#24 def visit_number; end # Assumes other types are node patterns. @@ -4130,13 +4133,13 @@ class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::Nod # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#36 def visit_positional_parameter; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#26 def visit_regexp; end # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#40 def visit_set; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#25 def visit_string; end # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 @@ -4180,74 +4183,74 @@ end class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::Compiler # @return [Debug] a new instance of Debug # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#116 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#118 def initialize; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#131 def comments(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#121 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123 def named_parameters; end # Returns the value of attribute node_ids. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#33 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#35 def node_ids; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#125 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#127 def parser; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#131 def tokens(*_arg0, **_arg1, &_arg2); end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#36 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#38 class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer # @api private # @return [Colorizer] a new instance of Colorizer # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#98 def initialize(pattern, compiler: T.unsafe(nil)); end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96 def compiler; end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96 def node_pattern; end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96 def pattern; end # @api private # @return [Node] the Ruby AST # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#103 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#105 def test(ruby, trace: T.unsafe(nil)); end private # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#113 def ruby_ast(ruby); end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#37 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#39 RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::COLOR_SCHEME = T.let(T.unsafe(nil), Hash) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#92 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST::NodePattern::Compiler::Debug # Result of a NodePattern run against a particular AST @@ -4255,129 +4258,154 @@ RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST:: # # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # @api private # @return [Hash] a map for {character_position => color} # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#56 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#58 def color_map(color_scheme = T.unsafe(nil)); end # @api private # @return [String] a Rainbow colorized version of ruby # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#50 def colorize(color_scheme = T.unsafe(nil)); end # Returns the value of attribute colorizer # # @return [Object] the current value of colorizer + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def colorizer; end # Sets the attribute colorizer # # @param value [Object] the value to set the attribute colorizer to. # @return [Object] the newly set value + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def colorizer=(_); end # @api private # @return [Hash] a map for {node => matched?}, depth-first # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#66 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#68 def match_map; end # @api private # @return [Boolean] a value of `Trace#matched?` or `:not_visitable` # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#74 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#76 def matched?(node); end # Returns the value of attribute returned # # @return [Object] the current value of returned + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def returned; end # Sets the attribute returned # # @param value [Object] the value to set the attribute returned to. # @return [Object] the newly set value + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def returned=(_); end # Returns the value of attribute ruby_ast # # @return [Object] the current value of ruby_ast + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def ruby_ast; end # Sets the attribute ruby_ast # # @param value [Object] the value to set the attribute ruby_ast to. # @return [Object] the newly set value + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def ruby_ast=(_); end # Returns the value of attribute trace # # @return [Object] the current value of trace + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def trace; end # Sets the attribute trace # # @param value [Object] the value to set the attribute trace to. # @return [Object] the newly set value + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def trace=(_); end private # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#87 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#89 def ast; end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#81 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#83 def color_map_for(node, color); end class << self + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def [](*_arg0); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def inspect; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def keyword_init?; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def members; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def new(*_arg0); end end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#132 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#134 module RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#133 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#135 def do_compile; end private # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#143 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#145 def node_id; end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#139 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#141 def tracer(kind); end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#149 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#151 class RuboCop::AST::NodePattern::Compiler::Debug::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#154 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#156 class RuboCop::AST::NodePattern::Compiler::Debug::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler end @@ -4392,17 +4420,17 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Trace # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#14 def initialize; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#18 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#19 def enter(node_id); end # return nil (not visited), false (not matched) or true (matched) # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#28 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#30 def matched?(node_id); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#23 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#25 def success(node_id); end end @@ -4546,7 +4574,7 @@ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST: private - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#20 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#59 def compile(node); end # Compilation helpers @@ -4800,7 +4828,7 @@ class RuboCop::AST::NodePattern::LexerRex # The StringScanner for this lexer. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#48 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#55 def match; end # The match groups for the current scan. @@ -5062,7 +5090,7 @@ RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash) # # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#96 class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#98 def arity(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -5076,7 +5104,7 @@ class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::No # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#104 def nb_captures; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#98 def rest?(*_arg0, **_arg1, &_arg2); end end @@ -5205,140 +5233,140 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#19 def initialize(builder = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#333 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#335 def _reduce_10(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#337 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#339 def _reduce_11(val, _values); end # reduce 12 omitted # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#343 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#345 def _reduce_13(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#347 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#349 def _reduce_14(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#351 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#353 def _reduce_15(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#355 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#357 def _reduce_16(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#359 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#361 def _reduce_17(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#363 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#365 def _reduce_18(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#367 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#369 def _reduce_19(val, _values); end # reduce 1 omitted # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#301 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#303 def _reduce_2(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#371 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#373 def _reduce_20(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#375 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#377 def _reduce_21(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#379 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#381 def _reduce_22(val, _values); end # reduce 24 omitted # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#387 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#389 def _reduce_25(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#393 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#395 def _reduce_26(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#305 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#307 def _reduce_3(val, _values); end # reduce 32 omitted # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#413 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#415 def _reduce_33(val, _values); end # reduce 36 omitted # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#423 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#425 def _reduce_37(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#427 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#429 def _reduce_38(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#431 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#433 def _reduce_39(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#309 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#311 def _reduce_4(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#435 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#437 def _reduce_40(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#439 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#441 def _reduce_41(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#443 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#445 def _reduce_42(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#447 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#449 def _reduce_43(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#451 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#453 def _reduce_44(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#455 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#457 def _reduce_45(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#459 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#461 def _reduce_46(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#313 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#315 def _reduce_5(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#317 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#319 def _reduce_6(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#321 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#323 def _reduce_7(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#325 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#327 def _reduce_8(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#329 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#331 def _reduce_9(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#463 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#465 def _reduce_none(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46 def emit_atom(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46 def emit_call(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46 def emit_capture(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46 def emit_list(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46 def emit_unary_op(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46 def emit_union(*_arg0, **_arg1, &_arg2); end # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40 def inspect; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#48 def next_token(*_arg0, **_arg1, &_arg2); end # (Similar API to `parser` gem) @@ -5374,10 +5402,10 @@ RuboCop::AST::NodePattern::Parser::Lexer = RuboCop::AST::NodePattern::Lexer # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#227 RuboCop::AST::NodePattern::Parser::Racc_arg = T.let(T.unsafe(nil), Array) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#293 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#295 RuboCop::AST::NodePattern::Parser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#243 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#244 RuboCop::AST::NodePattern::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array) # Overrides Parser to use `WithMeta` variants and provide additional methods @@ -5507,6 +5535,9 @@ RuboCop::AST::NodePattern::Sets::SET_AND_RETURN_AND_RAISE_AND_THROW_ETC = T.let( # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE_ETC = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ANY_NONE = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_AP_P_PP_ETC = T.let(T.unsafe(nil), Set) @@ -5679,7 +5710,7 @@ RuboCop::AST::NodePattern::Sets::SET_HEAD_ASSERT_RESPONSE = T.let(T.unsafe(nil), RuboCop::AST::NodePattern::Sets::SET_HTML_HTML5 = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 -RuboCop::AST::NodePattern::Sets::SET_IF_UNLESS = T.let(T.unsafe(nil), Set) +RuboCop::AST::NodePattern::Sets::SET_IF = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INCLUDE_EXTEND_PREPEND = T.let(T.unsafe(nil), Set) @@ -6005,7 +6036,7 @@ RuboCop::AST::NodePattern::Sets::SET_____2 = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#55 RuboCop::AST::NodePattern::VAR = T.let(T.unsafe(nil), String) -# Common functionality for primitive numeric nodes: `int`, `float`, `rational`... +# Common functionality for primitive numeric nodes: `int`, `float`, `rational`, `complex`... # # source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#6 module RuboCop::AST::NumericNode @@ -6043,7 +6074,7 @@ class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node # @return [AsgnNode] the assignment node # - # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#10 + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#13 def lhs; end # The name of the variable being assigned as a symbol. @@ -6064,7 +6095,7 @@ class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node # # @return [Node] the expression being assigned. # - # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#32 + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#35 def rhs; end end @@ -6228,7 +6259,7 @@ module RuboCop::AST::ParameterizedNode # # @return [Boolean] whether the node is a splat argument # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#48 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#52 def rest_argument?; end # Checks whether any argument of the node is a splat @@ -6420,7 +6451,7 @@ class RuboCop::AST::ProcessedSource # @deprecated use contains_comment? # @return [Boolean] if any of the lines in the given `source_range` has a comment. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#157 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#161 def commented?(source_range); end # Returns the value of attribute comments. @@ -6556,38 +6587,38 @@ class RuboCop::AST::ProcessedSource private - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#327 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#329 def builder_class(parser_engine); end # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#218 def comment_index; end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#337 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#339 def create_parser(ruby_version, parser_engine, prism_result); end # The Parser gem does not support Ruby 3.5 or later. # It is also not fully compatible with Ruby 3.4 but for # now respects using parser for backwards compatibility. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#383 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#385 def default_parser_engine(ruby_version); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#391 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#393 def first_token_index(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#396 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#398 def last_token_index(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#366 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#368 def normalize_parser_engine(parser_engine, ruby_version); end # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#224 def parse(source, ruby_version, parser_engine, prism_result); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#259 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#260 def parser_class(ruby_version, parser_engine); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#401 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#403 def source_range(range_or_node); end # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#243 @@ -6945,7 +6976,7 @@ class RuboCop::AST::SuperNode < ::RuboCop::AST::Node include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://ast/2.4.3/lib/ast/node.rb#56 + # source://rubocop-ast//lib/rubocop/ast/node/super_node.rb#20 def arguments; end # Custom destructuring method. This can be used to normalize @@ -7132,397 +7163,397 @@ RuboCop::AST::Token::LEFT_PAREN_TYPES = T.let(T.unsafe(nil), Array) module RuboCop::AST::Traversal extend ::RuboCop::AST::Traversal::CallbackCompiler - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#183 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on___ENCODING__(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on___FILE__(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on___LINE__(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_alias(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_and(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_and_asgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_arg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_arg_expr(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_args(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_array(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_array_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_array_pattern_with_tail(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_back_ref(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_begin(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#160 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_block(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_block_pass(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_blockarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_break(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_case(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_case_match(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#155 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_casgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_cbase(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#156 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_class(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_complex(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#154 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_const(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_const_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#165 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_csend(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_cvar(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#140 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_cvasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#157 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_def(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_defined?(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#163 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_defs(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_dstr(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_dsym(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_eflipflop(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_empty_else(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_ensure(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_erange(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_false(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_find_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_float(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_for(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_forward_arg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_forward_args(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_forwarded_args(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_forwarded_kwrestarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_forwarded_restarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_gvar(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#140 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_gvasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_hash(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_hash_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#159 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_if(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_if_guard(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_iflipflop(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_in_match(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_in_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_index(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_indexasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_int(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_irange(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#162 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_itblock(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_ivar(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#140 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_ivasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwargs(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwbegin(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwnilarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#141 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwoptarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwrestarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#134 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwsplat(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_lambda(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_lvar(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#140 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_lvasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_masgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_alt(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_as(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_current_line(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_nil_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_pattern_p(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#134 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_rest(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_var(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_with_lvasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_with_trailing_comma(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_mlhs(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#142 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_module(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_mrasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_next(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_nil(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_not(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_nth_ref(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#161 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_numblock(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#158 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_op_asgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#141 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_optarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_or(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_or_asgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_pair(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_pin(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_postexe(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_preexe(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_procarg0(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_rasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_rational(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_redo(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_regexp(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#144 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_regopt(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_resbody(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_rescue(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_restarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_retry(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_return(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#142 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_sclass(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_self(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#165 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_send(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_shadowarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#134 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_splat(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_str(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_super(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_sym(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_true(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_undef(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_unless_guard(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#142 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_until(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_until_post(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_when(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#142 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_while(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_while_post(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_xstr(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_yield(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_zsuper(node); end # source://rubocop-ast//lib/rubocop/ast/traversal.rb#17 @@ -7708,7 +7739,7 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://ast/2.4.3/lib/ast/node.rb#56 + # source://rubocop-ast//lib/rubocop/ast/node/yield_node.rb#20 def arguments; end # Custom destructuring method. This can be used to normalize @@ -7720,346 +7751,9 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node def node_parts; end end -class RuboCop::CommentConfig - # source://standard/1.49.0/lib/standard/rubocop/ext.rb#20 - def initialize(processed_source); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#63 - def comment_only_line?(line_number); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def config(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#51 - def cop_disabled_line_ranges; end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#39 - def cop_enabled_at_line?(cop, line_number); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#47 - def cop_opted_in?(cop); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#55 - def extra_enabled_comments; end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#30 - def processed_source; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def registry(*_arg0, **_arg1, &_arg2); end - - private - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#96 - def analyze; end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#124 - def analyze_cop(analysis, directive); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#144 - def analyze_disabled(analysis, directive); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#155 - def analyze_rest(analysis, directive); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#135 - def analyze_single_line(analysis, directive); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#164 - def cop_line_ranges(analysis); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#170 - def each_directive; end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#69 - def extra_enabled_comments_with_names(extras:, names:); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#190 - def handle_enable_all(directive, names, extras); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#204 - def handle_switch(directive, names, extras); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#115 - def inject_disabled_cops_directives(analyses); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#183 - def non_comment_token_line_numbers; end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#34 - def old_initialize(processed_source); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#83 - def opt_in_cops; end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#179 - def qualified_cop_name(cop_name); end -end - -class RuboCop::Config - # source://rubocop/1.75.2/lib/rubocop/config.rb#31 - def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def [](*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def []=(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#212 - def active_support_extensions_enabled?; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#127 - def add_excludes_from_higher_level(highest_config); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#239 - def allowed_camel_case_file?(file); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#283 - def base_dir_for_path_parameters; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#313 - def bundler_lock_file_path; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#85 - def check; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#180 - def clusivity_config_for_badge?(badge); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#200 - def cop_enabled?(name); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def delete(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#139 - def deprecation_check; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def dig(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#204 - def disabled_new_cops?; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def each(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def each_key(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#208 - def enabled_new_cops?; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def fetch(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#261 - def file_to_exclude?(file); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#220 - def file_to_include?(file); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#196 - def for_all_cops; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#166 - def for_badge(badge); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#153 - def for_cop(cop); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#191 - def for_department(department_name); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#160 - def for_enabled_cop(cop); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#338 - def gem_versions_in_target; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#342 - def inspect; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#110 - def internal?; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def key?(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def keys(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#81 - def loaded_features; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#21 - def loaded_path; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#77 - def loaded_plugins; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#115 - def make_excludes_absolute; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def map(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def merge(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#293 - def parser_engine; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#274 - def path_relative_to_config(path); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#270 - def patterns_to_exclude; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#266 - def patterns_to_include; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#324 - def pending_cops; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#253 - def possibly_include_hidden?; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def replace(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#105 - def signature; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#308 - def smart_loaded_path; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#216 - def string_literals_frozen_by_default?; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#297 - def target_rails_version; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def target_ruby_version(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def to_h(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def to_hash(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#101 - def to_s; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def transform_values(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def validate(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#92 - def validate_after_resolution; end - - private - - # source://rubocop/1.75.2/lib/rubocop/config.rb#392 - def department_of(qualified_cop_name); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#380 - def enable_cop?(qualified_cop_name, cop_options); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#367 - def gem_version_to_major_minor_float(gem_version); end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#373 - def read_gem_versions_from_target_lockfile; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#354 - def read_rails_version_from_bundler_lock_file; end - - # source://rubocop/1.75.2/lib/rubocop/config.rb#349 - def target_rails_version_from_bundler_lock_file; end - - class << self - # source://rubocop/1.75.2/lib/rubocop/config.rb#23 - def create(hash, path, check: T.unsafe(nil)); end - end -end - -class RuboCop::ConfigValidator - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#28 - def initialize(config); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def for_all_cops(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def smart_loaded_path(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#65 - def target_ruby_version; end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#34 - def validate; end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#61 - def validate_after_resolution; end - - private - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#100 - def alert_about_unrecognized_cops(invalid_cop_names); end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#264 - def check_cop_config_value(hash, parent = T.unsafe(nil)); end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#73 - def check_obsoletions; end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#80 - def check_target_ruby; end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#205 - def each_invalid_parameter(cop_name); end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#116 - def list_unknown_cops(invalid_cop_names); end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#284 - def param_error_message(parent, key, value, supposed_values); end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#252 - def reject_conflicting_safe_settings; end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#243 - def reject_mutually_exclusive_defaults; end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#139 - def suggestion(name); end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#71 - def target_ruby; end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#217 - def validate_enforced_styles(valid_cop_names); end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#166 - def validate_new_cops_parameter; end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#191 - def validate_parameter_names(valid_cop_names); end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#177 - def validate_parameter_shape(valid_cop_names); end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#237 - def validate_support_and_has_list(name, formats, valid); end - - # source://rubocop/1.75.2/lib/rubocop/config_validator.rb#155 - def validate_syntax_cop; end -end +class RuboCop::CommentConfig; end +class RuboCop::Config; end +class RuboCop::ConfigValidator; end # Similar to `Forwardable#def_delegators`, but simpler & faster # diff --git a/sorbet/rbi/gems/rubocop-performance@1.25.0.rbi b/sorbet/rbi/gems/rubocop-performance@1.25.0.rbi index ea49ead1..9fadac9e 100644 --- a/sorbet/rbi/gems/rubocop-performance@1.25.0.rbi +++ b/sorbet/rbi/gems/rubocop-performance@1.25.0.rbi @@ -12,36 +12,7 @@ module RuboCop; end module RuboCop::Cop; end module RuboCop::Cop::Lint; end - -class RuboCop::Cop::Lint::UnusedMethodArgument < ::RuboCop::Cop::Base - # source://rubocop/1.75.2/lib/rubocop/cop/lint/unused_method_argument.rb#75 - def not_implemented?(param0 = T.unsafe(nil)); end - - private - - # source://rubocop/1.75.2/lib/rubocop/cop/lint/unused_method_argument.rb#128 - def allowed_exception_class?(node); end - - # source://rubocop/1.75.2/lib/rubocop/cop/lint/unused_method_argument.rb#90 - def autocorrect(corrector, node); end - - # source://rubocop/1.75.2/lib/rubocop/cop/lint/unused_method_argument.rb#94 - def check_argument(variable); end - - # source://rubocop/1.75.2/lib/rubocop/cop/lint/unused_method_argument.rb#102 - def ignored_method?(body); end - - # source://rubocop/1.75.2/lib/rubocop/cop/lint/unused_method_argument.rb#107 - def message(variable); end - - class << self - # source://rubocop-performance//lib/rubocop-performance.rb#12 - def autocorrect_incompatible_with; end - - # source://rubocop/1.75.2/lib/rubocop/cop/lint/unused_method_argument.rb#84 - def joining_forces; end - end -end +class RuboCop::Cop::Lint::UnusedMethodArgument < ::RuboCop::Cop::Base; end # source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#5 module RuboCop::Cop::Performance; end @@ -110,7 +81,7 @@ class RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice < ::RuboCop::Cop::B # source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#41 def endless_range_slice?(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#52 + # source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#62 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#52 @@ -847,7 +818,7 @@ class RuboCop::Cop::Performance::Count < ::RuboCop::Cop::Base # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#55 def count_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#62 + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#75 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#62 @@ -935,7 +906,7 @@ class RuboCop::Cop::Performance::DeletePrefix < ::RuboCop::Cop::Base # source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#66 def delete_prefix_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#71 + # source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#90 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#71 @@ -998,7 +969,7 @@ class RuboCop::Cop::Performance::DeleteSuffix < ::RuboCop::Cop::Base # source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#66 def delete_suffix_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#71 + # source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#90 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#71 @@ -1040,7 +1011,7 @@ class RuboCop::Cop::Performance::Detect < ::RuboCop::Cop::Base # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#41 def detect_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#50 + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#66 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#50 @@ -1202,10 +1173,10 @@ class RuboCop::Cop::Performance::EndWith < ::RuboCop::Cop::Base include ::RuboCop::Cop::RegexpMetacharacter extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#63 + # source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#77 def on_csend(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#63 + # source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#78 def on_match_with_lvasgn(node); end # source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#63 @@ -1268,7 +1239,7 @@ class RuboCop::Cop::Performance::FixedSize < ::RuboCop::Cop::Base # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#52 def counter(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#56 + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#65 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#56 @@ -1334,7 +1305,7 @@ class RuboCop::Cop::Performance::FlatMap < ::RuboCop::Cop::Base # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#28 def flat_map_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#39 + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#49 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#39 @@ -1404,7 +1375,7 @@ class RuboCop::Cop::Performance::InefficientHashSearch < ::RuboCop::Cop::Base # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#47 def inefficient_include?(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#51 + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#63 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#51 @@ -1531,7 +1502,7 @@ class RuboCop::Cop::Performance::MapCompact < ::RuboCop::Cop::Base # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#41 def map_compact(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#54 + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#65 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#54 @@ -1702,7 +1673,7 @@ RuboCop::Cop::Performance::OpenStruct::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A class RuboCop::Cop::Performance::RangeInclude < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#44 + # source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#53 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#44 @@ -1754,7 +1725,7 @@ class RuboCop::Cop::Performance::RedundantBlockCall < ::RuboCop::Cop::Base # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#47 def on_def(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#47 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#60 def on_defs(node); end private @@ -2135,7 +2106,7 @@ RuboCop::Cop::Performance::RedundantSortBlock::MSG = T.let(T.unsafe(nil), String class RuboCop::Cop::Performance::RedundantSplitRegexpArgument < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#27 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#38 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#27 @@ -2442,7 +2413,7 @@ class RuboCop::Cop::Performance::ReverseEach < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#33 + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#44 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#33 @@ -2486,7 +2457,7 @@ class RuboCop::Cop::Performance::ReverseFirst < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#30 + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#42 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#30 @@ -2530,7 +2501,7 @@ class RuboCop::Cop::Performance::SelectMap < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#27 + # source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#37 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#27 @@ -2597,7 +2568,7 @@ class RuboCop::Cop::Performance::Size < ::RuboCop::Cop::Base # source://rubocop-performance//lib/rubocop/cop/performance/size.rb#52 def hash?(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/size.rb#65 + # source://rubocop-performance//lib/rubocop/cop/performance/size.rb#72 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/size.rb#65 @@ -2660,7 +2631,7 @@ RuboCop::Cop::Performance::SortReverse::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Performance::Squeeze < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#39 + # source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#61 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#39 @@ -2727,10 +2698,10 @@ class RuboCop::Cop::Performance::StartWith < ::RuboCop::Cop::Base include ::RuboCop::Cop::RegexpMetacharacter extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#63 + # source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#77 def on_csend(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#63 + # source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#78 def on_match_with_lvasgn(node); end # source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#63 @@ -2763,7 +2734,7 @@ RuboCop::Cop::Performance::StartWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar class RuboCop::Cop::Performance::StringBytesize < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/string_bytesize.rb#32 + # source://rubocop-performance//lib/rubocop/cop/performance/string_bytesize.rb#41 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/string_bytesize.rb#32 @@ -2863,10 +2834,10 @@ RuboCop::Cop::Performance::StringIdentifierArgument::TWO_ARGUMENTS_METHOD = T.le class RuboCop::Cop::Performance::StringInclude < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#37 + # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#54 def on_csend(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#37 + # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#55 def on_match_with_lvasgn(node); end # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#37 @@ -2909,7 +2880,7 @@ class RuboCop::Cop::Performance::StringReplacement < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#37 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#45 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#37 @@ -3019,13 +2990,13 @@ class RuboCop::Cop::Performance::Sum < ::RuboCop::Cop::Base # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#102 def acc_plus_elem?(param0 = T.unsafe(nil), param1, param2); end - # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#102 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#105 def elem_plus_acc?(param0 = T.unsafe(nil), param1, param2); end # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#115 def on_block(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#107 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#113 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#107 @@ -3126,13 +3097,13 @@ class RuboCop::Cop::Performance::TimesMap < ::RuboCop::Cop::Base # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#51 def on_block(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#46 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#49 def on_csend(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#51 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#55 def on_itblock(node); end - # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#51 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#54 def on_numblock(node); end # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#46 @@ -3248,7 +3219,7 @@ class RuboCop::Cop::Performance::ZipWithoutBlock < ::RuboCop::Cop::Base # source://rubocop-performance//lib/rubocop/cop/performance/zip_without_block.rb#27 def map_with_array?(param0 = T.unsafe(nil)); end - # source://rubocop-performance//lib/rubocop/cop/performance/zip_without_block.rb#35 + # source://rubocop-performance//lib/rubocop/cop/performance/zip_without_block.rb#40 def on_csend(node); end # source://rubocop-performance//lib/rubocop/cop/performance/zip_without_block.rb#35 diff --git a/sorbet/rbi/gems/rubocop-rails@2.31.0.rbi b/sorbet/rbi/gems/rubocop-rails@2.33.3.rbi similarity index 97% rename from sorbet/rbi/gems/rubocop-rails@2.31.0.rbi rename to sorbet/rbi/gems/rubocop-rails@2.33.3.rbi index efa51f55..743604ef 100644 --- a/sorbet/rbi/gems/rubocop-rails@2.31.0.rbi +++ b/sorbet/rbi/gems/rubocop-rails@2.33.3.rbi @@ -235,6 +235,10 @@ class RuboCop::Cop::Gemspec::AddRuntimeDependency < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end +class RuboCop::Cop::Gemspec::AttributeAssignment < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + class RuboCop::Cop::Gemspec::DependencyVersion < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end @@ -277,10 +281,10 @@ module RuboCop::Cop::IndexMethod # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#99 def on_csend(node); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#74 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#87 def on_itblock(node); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#74 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#86 def on_numblock(node); end # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#89 @@ -288,10 +292,10 @@ module RuboCop::Cop::IndexMethod private - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#163 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#167 def execute_correction(corrector, node, correction); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#140 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#144 def extract_captures(match); end # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#127 @@ -299,7 +303,7 @@ module RuboCop::Cop::IndexMethod # @raise [NotImplementedError] # - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#145 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#149 def new_method_name; end # @abstract Implemented with `def_node_matcher` @@ -326,7 +330,7 @@ module RuboCop::Cop::IndexMethod # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#113 def on_bad_to_h(_node); end - # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#149 + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#153 def prepare_correction(node); end end @@ -337,34 +341,46 @@ class RuboCop::Cop::IndexMethod::Autocorrection < ::Struct # Returns the value of attribute block_node # # @return [Object] the current value of block_node + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 def block_node; end # Sets the attribute block_node # # @param value [Object] the value to set the attribute block_node to. # @return [Object] the newly set value + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 def block_node=(_); end # Returns the value of attribute leading # # @return [Object] the current value of leading + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 def leading; end # Sets the attribute leading # # @param value [Object] the value to set the attribute leading to. # @return [Object] the newly set value + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 def leading=(_); end # Returns the value of attribute match # # @return [Object] the current value of match + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 def match; end # Sets the attribute match # # @param value [Object] the value to set the attribute match to. # @return [Object] the newly set value + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 def match=(_); end # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#60 @@ -382,15 +398,20 @@ class RuboCop::Cop::IndexMethod::Autocorrection < ::Struct # Returns the value of attribute trailing # # @return [Object] the current value of trailing + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 def trailing; end # Sets the attribute trailing # # @param value [Object] the value to set the attribute trailing to. # @return [Object] the newly set value + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 def trailing=(_); end class << self + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 def [](*_arg0); end # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#21 @@ -405,9 +426,16 @@ class RuboCop::Cop::IndexMethod::Autocorrection < ::Struct # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#25 def from_to_h(node, match); end + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 def inspect; end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 def keyword_init?; end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 def members; end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#20 def new(*_arg0); end end end @@ -424,30 +452,47 @@ class RuboCop::Cop::IndexMethod::Captures < ::Struct # Returns the value of attribute transformed_argname # # @return [Object] the current value of transformed_argname + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#10 def transformed_argname; end # Sets the attribute transformed_argname # # @param value [Object] the value to set the attribute transformed_argname to. # @return [Object] the newly set value + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#10 def transformed_argname=(_); end # Returns the value of attribute transforming_body_expr # # @return [Object] the current value of transforming_body_expr + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#10 def transforming_body_expr; end # Sets the attribute transforming_body_expr # # @param value [Object] the value to set the attribute transforming_body_expr to. # @return [Object] the newly set value + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#10 def transforming_body_expr=(_); end class << self + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#10 def [](*_arg0); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#10 def inspect; end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#10 def keyword_init?; end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#10 def members; end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#10 def new(*_arg0); end end end @@ -549,6 +594,10 @@ class RuboCop::Cop::Layout::EmptyLines < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end +class RuboCop::Cop::Layout::EmptyLinesAfterModuleInclusion < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end @@ -1453,6 +1502,10 @@ class RuboCop::Cop::Lint::UselessConstantScoping < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end +class RuboCop::Cop::Lint::UselessDefaultValueArgument < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + class RuboCop::Cop::Lint::UselessDefined < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end @@ -1469,6 +1522,10 @@ class RuboCop::Cop::Lint::UselessNumericOperation < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end +class RuboCop::Cop::Lint::UselessOr < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + class RuboCop::Cop::Lint::UselessRescue < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end @@ -1610,7 +1667,11 @@ class RuboCop::Cop::Naming::MethodParameterName < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end -class RuboCop::Cop::Naming::PredicateName < ::RuboCop::Cop::Base +class RuboCop::Cop::Naming::PredicateMethod < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + +class RuboCop::Cop::Naming::PredicatePrefix < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end @@ -2102,7 +2163,7 @@ class RuboCop::Cop::Rails::ActiveRecordAliases < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rails//lib/rubocop/cop/rails/active_record_aliases.rb#28 + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_aliases.rb#43 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/active_record_aliases.rb#28 @@ -2268,7 +2329,7 @@ class RuboCop::Cop::Rails::ActiveSupportAliases < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#40 def ends_with?(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#43 + # source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#57 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#43 @@ -2444,10 +2505,10 @@ class RuboCop::Cop::Rails::ApplicationController < ::RuboCop::Cop::Base include ::RuboCop::Cop::EnforceSuperclass extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#13 + # source://rubocop-rails//lib/rubocop/cop/rails/application_controller.rb#31 def class_definition(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#17 + # source://rubocop-rails//lib/rubocop/cop/rails/application_controller.rb#31 def class_new_definition(param0 = T.unsafe(nil)); end end @@ -2484,10 +2545,10 @@ class RuboCop::Cop::Rails::ApplicationJob < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/application_job.rb#37 def autocorrect(node); end - # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#13 + # source://rubocop-rails//lib/rubocop/cop/rails/application_job.rb#34 def class_definition(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#17 + # source://rubocop-rails//lib/rubocop/cop/rails/application_job.rb#34 def class_new_definition(param0 = T.unsafe(nil)); end end @@ -2521,10 +2582,10 @@ class RuboCop::Cop::Rails::ApplicationMailer < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRailsVersion - # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#13 + # source://rubocop-rails//lib/rubocop/cop/rails/application_mailer.rb#34 def class_definition(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#17 + # source://rubocop-rails//lib/rubocop/cop/rails/application_mailer.rb#34 def class_new_definition(param0 = T.unsafe(nil)); end end @@ -2562,10 +2623,10 @@ class RuboCop::Cop::Rails::ApplicationRecord < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRailsVersion - # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#13 + # source://rubocop-rails//lib/rubocop/cop/rails/application_record.rb#39 def class_definition(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#17 + # source://rubocop-rails//lib/rubocop/cop/rails/application_record.rb#39 def class_new_definition(param0 = T.unsafe(nil)); end end @@ -3380,7 +3441,7 @@ class RuboCop::Cop::Rails::Date < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#73 def on_const(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#81 + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#90 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#81 @@ -3607,11 +3668,15 @@ class RuboCop::Cop::Rails::Delegate < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#149 def prefixed_method_name(body); end + # @return [Boolean] + # # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#166 - def private_or_protected_delegation(node); end + def private_or_protected_delegation?(node); end + # @return [Boolean] + # # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#176 - def private_or_protected_inline(node); end + def private_or_protected_inline?(node); end # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#87 def register_offense(node); end @@ -4005,7 +4070,7 @@ class RuboCop::Cop::Rails::DynamicFindBy < ::RuboCop::Cop::Base include ::RuboCop::Cop::ActiveRecordHelper extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#50 + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#63 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#50 @@ -4336,17 +4401,25 @@ class RuboCop::Cop::Rails::EnvLocal < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRailsVersion + # source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#33 + def not_rails_env_local?(param0 = T.unsafe(nil)); end + # source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#57 def on_and(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#47 + # source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#37 def on_or(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#36 - def rails_env_local_and?(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#28 - def rails_env_local_or?(param0 = T.unsafe(nil)); end + def rails_env_local?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#79 + def environments(nodes); end + + # source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#87 + def offense_range(nodes); end end # source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#23 @@ -4804,7 +4877,7 @@ class RuboCop::Cop::Rails::FindBy < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rails//lib/rubocop/cop/rails/find_by.rb#34 + # source://rubocop-rails//lib/rubocop/cop/rails/find_by.rb#44 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/find_by.rb#34 @@ -4857,7 +4930,7 @@ class RuboCop::Cop::Rails::FindById < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#33 def find_by?(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#40 + # source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#53 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#40 @@ -4887,6 +4960,63 @@ RuboCop::Cop::Rails::FindById::MSG = T.let(T.unsafe(nil), String) # source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#24 RuboCop::Cop::Rails::FindById::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Avoid memoizing `find_by` results with `||=`. +# +# It is common to see code that attempts to memoize `find_by` result by `||=`, +# but `find_by` may return `nil`, in which case it is not memoized as intended. +# +# @example +# # bad - exclusively doing memoization +# def current_user +# @current_user ||= User.find_by(id: session[:user_id]) +# end +# +# # good +# def current_user +# return @current_user if defined?(@current_user) +# +# @current_user = User.find_by(id: session[:user_id]) +# end +# +# # bad - method contains other code +# def current_user +# @current_user ||= User.find_by(id: session[:user_id]) +# @current_user.do_something +# end +# +# # good +# def current_user +# if defined?(@current_user) +# @current_user +# else +# @current_user = User.find_by(id: session[:user_id]) +# end +# @current_user.do_something +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/find_by_or_assignment_memoization.rb#43 +class RuboCop::Cop::Rails::FindByOrAssignmentMemoization < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by_or_assignment_memoization.rb#50 + def find_by_or_assignment_memoization(param0 = T.unsafe(nil)); end + + # When a method body contains only memoization, the correction can be more succinct. + # + # source://rubocop-rails//lib/rubocop/cop/rails/find_by_or_assignment_memoization.rb#58 + def on_def(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by_or_assignment_memoization.rb#73 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/find_by_or_assignment_memoization.rb#46 +RuboCop::Cop::Rails::FindByOrAssignmentMemoization::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/find_by_or_assignment_memoization.rb#48 +RuboCop::Cop::Rails::FindByOrAssignmentMemoization::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Identifies usages of `all.each` and change them to use `all.find_each` instead. # # @example @@ -5794,28 +5924,28 @@ end # # good # [1, 2, 3].index_with { |el| foo(el) } # -# source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#20 +# source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#25 class RuboCop::Cop::Rails::IndexWith < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable include ::RuboCop::Cop::IndexMethod extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRailsVersion - # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#27 + # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#32 def on_bad_each_with_object(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#66 + # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#71 def on_bad_hash_brackets_map(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#49 + # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#54 def on_bad_map_to_h(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#34 + # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#39 def on_bad_to_h(param0 = T.unsafe(nil)); end private - # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#87 + # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#92 def new_method_name; end end @@ -5842,7 +5972,7 @@ end class RuboCop::Cop::Rails::Inquiry < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable - # source://rubocop-rails//lib/rubocop/cop/rails/inquiry.rb#29 + # source://rubocop-rails//lib/rubocop/cop/rails/inquiry.rb#36 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/inquiry.rb#29 @@ -6533,7 +6663,7 @@ class RuboCop::Cop::Rails::NotNullColumn < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#89 def on_block(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#89 + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#92 def on_numblock(node); end # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#84 @@ -6578,6 +6708,60 @@ RuboCop::Cop::Rails::NotNullColumn::TEXT_TYPE_VALUES = T.let(T.unsafe(nil), Arra # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#49 RuboCop::Cop::Rails::NotNullColumn::VIRTUAL_TYPE_VALUES = T.let(T.unsafe(nil), Array) +# Prefer symbol arguments over strings in `order` method. +# +# @example +# # bad +# User.order('name') +# User.order('name DESC') +# +# # good +# User.order(:name) +# User.order(name: :desc) +# +# source://rubocop-rails//lib/rubocop/cop/rails/order_arguments.rb#20 +class RuboCop::Cop::Rails::OrderArguments < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/order_arguments.rb#42 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/order_arguments.rb#33 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/order_arguments.rb#27 + def string_order(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/order_arguments.rb#60 + def convert_to_preferred_arguments(order_expressions); end + + # source://rubocop-rails//lib/rubocop/cop/rails/order_arguments.rb#76 + def extract_column_and_direction(order_expression); end + + # source://rubocop-rails//lib/rubocop/cop/rails/order_arguments.rb#46 + def find_offense_range(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/order_arguments.rb#72 + def positional_column?(column_name); end + + # source://rubocop-rails//lib/rubocop/cop/rails/order_arguments.rb#50 + def replacement(order_expressions); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/order_arguments.rb#23 +RuboCop::Cop::Rails::OrderArguments::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/order_arguments.rb#31 +RuboCop::Cop::Rails::OrderArguments::ORDER_EXPRESSION_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rails//lib/rubocop/cop/rails/order_arguments.rb#25 +RuboCop::Cop::Rails::OrderArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for places where ordering by `id` column is used. # # Don't use the `id` column for ordering. The sequence of ids is not guaranteed @@ -6638,7 +6822,7 @@ class RuboCop::Cop::Rails::Output < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/output.rb#31 def io_output?(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/output.rb#41 + # source://rubocop-rails//lib/rubocop/cop/rails/output.rb#42 def on_send(node); end # source://rubocop-rails//lib/rubocop/cop/rails/output.rb#27 @@ -6648,10 +6832,10 @@ class RuboCop::Cop::Rails::Output < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/output.rb#54 + # source://rubocop-rails//lib/rubocop/cop/rails/output.rb#57 def match_gvar?(sym); end - # source://rubocop-rails//lib/rubocop/cop/rails/output.rb#58 + # source://rubocop-rails//lib/rubocop/cop/rails/output.rb#61 def offense_range(node); end end @@ -6728,7 +6912,7 @@ class RuboCop::Cop::Rails::OutputSafety < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#69 def i18n_method?(param0); end - # source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#73 + # source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#82 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#73 @@ -6788,7 +6972,7 @@ class RuboCop::Cop::Rails::Pick < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRailsVersion - # source://rubocop-rails//lib/rubocop/cop/rails/pick.rb#44 + # source://rubocop-rails//lib/rubocop/cop/rails/pick.rb#59 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/pick.rb#44 @@ -6833,6 +7017,9 @@ RuboCop::Cop::Rails::Pick::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # end # ---- # +# If a method call has no receiver, like `do_something { users.map { |user| user[:foo] }`, +# it is not considered part of an iteration and will be detected. +# # @example # # bad # Post.published.map { |post| post[:title] } @@ -6842,47 +7029,47 @@ RuboCop::Cop::Rails::Pick::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Post.published.pluck(:title) # [{ a: :b, c: :d }].pluck(:a) # -# source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#50 +# source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#53 class RuboCop::Cop::Rails::Pluck < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRailsVersion - # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#63 + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#66 def on_block(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#63 + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#87 def on_itblock(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#63 + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#86 def on_numblock(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#58 + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#61 def pluck_candidate?(param0 = T.unsafe(nil)); end private - # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#114 + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#117 def message(replacement, node); end - # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#101 + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#104 def offense_range(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#105 + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#108 def register_offense(node, key); end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#95 + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#98 def use_block_argument_in_key?(block_argument, key); end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#88 + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#91 def use_one_block_argument?(argument); end end -# source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#54 +# source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#57 RuboCop::Cop::Rails::Pluck::MSG = T.let(T.unsafe(nil), String) # Enforces the use of `ids` over `pluck(:id)` and `pluck(primary_key)`. @@ -6911,7 +7098,7 @@ class RuboCop::Cop::Rails::PluckId < ::RuboCop::Cop::Base include ::RuboCop::Cop::ActiveRecordHelper extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rails//lib/rubocop/cop/rails/pluck_id.rb#40 + # source://rubocop-rails//lib/rubocop/cop/rails/pluck_id.rb#50 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/pluck_id.rb#40 @@ -6967,7 +7154,7 @@ class RuboCop::Cop::Rails::PluckInWhere < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rails//lib/rubocop/cop/rails/pluck_in_where.rb#59 + # source://rubocop-rails//lib/rubocop/cop/rails/pluck_in_where.rb#77 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/pluck_in_where.rb#59 @@ -7687,8 +7874,10 @@ class RuboCop::Cop::Rails::RedundantPresenceValidationOnBelongsTo < ::RuboCop::C # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#191 def add_offense_and_correct(node, all_keys, keys, options, presence); end + # @return [Boolean] + # # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#219 - def belongs_to_for(model_class_node, key); end + def belongs_to_for?(model_class_node, key); end # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#251 def extract_validation_for_keys(corrector, node, keys, options); end @@ -7789,10 +7978,10 @@ class RuboCop::Cop::Rails::RedundantReceiverInWithOptions < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#71 def on_block(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#71 + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#88 def on_itblock(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#71 + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#87 def on_numblock(node); end private @@ -8415,10 +8604,10 @@ class RuboCop::Cop::Rails::ReversibleMigration < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#199 def on_block(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#199 + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#208 def on_itblock(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#199 + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#207 def on_numblock(node); end # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#186 @@ -8937,7 +9126,7 @@ class RuboCop::Cop::Rails::SaveBang < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#144 def check_assignment(assignment); end - # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#155 + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#167 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#155 @@ -8966,8 +9155,10 @@ class RuboCop::Cop::Rails::SaveBang < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#198 def call_to_persisted?(node); end + # @return [Boolean] + # # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#230 - def check_used_in_condition_or_compound_boolean(node); end + def check_used_in_condition_or_compound_boolean?(node); end # @return [Boolean] # @@ -9206,7 +9397,7 @@ class RuboCop::Cop::Rails::SelectMap < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rails//lib/rubocop/cop/rails/select_map.rb#29 + # source://rubocop-rails//lib/rubocop/cop/rails/select_map.rb#43 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/select_map.rb#29 @@ -9333,7 +9524,7 @@ class RuboCop::Cop::Rails::SkipsModelValidations < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#61 def good_touch?(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#75 + # source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#84 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#75 @@ -9499,7 +9690,7 @@ class RuboCop::Cop::Rails::StrongParametersExpect < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRailsVersion - # source://rubocop-rails//lib/rubocop/cop/rails/strong_parameters_expect.rb#46 + # source://rubocop-rails//lib/rubocop/cop/rails/strong_parameters_expect.rb#73 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/strong_parameters_expect.rb#46 @@ -9653,7 +9844,7 @@ class RuboCop::Cop::Rails::TimeZone < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#61 def on_const(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#70 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#78 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#70 @@ -9661,7 +9852,7 @@ class RuboCop::Cop::Rails::TimeZone < ::RuboCop::Cop::Base private - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#230 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#232 def acceptable_methods(klass, method_name, node); end # @return [Boolean] @@ -9675,24 +9866,24 @@ class RuboCop::Cop::Rails::TimeZone < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#99 def autocorrect_time_new(node, corrector); end - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#141 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#143 def build_message(klass, method_name, node); end - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#190 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#192 def check_localtime(node); end # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#119 def check_time_node(klass, node); end - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#154 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#156 def extract_method_chain(node); end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#214 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#216 def flexible?; end - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#222 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#224 def good_methods; end # Only add the method to the chain if the method being @@ -9700,7 +9891,7 @@ class RuboCop::Cop::Rails::TimeZone < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#165 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#167 def method_from_time_class?(node); end # checks that parent node of send_type @@ -9708,22 +9899,22 @@ class RuboCop::Cop::Rails::TimeZone < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#176 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#178 def method_send?(node); end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#210 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#212 def need_check_localtime?(chain); end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#206 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#208 def not_danger_chain?(chain); end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#253 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#255 def offset_option_provided?(node); end # Time.new, Time.at, and Time.now can be called with a time zone offset @@ -9733,7 +9924,7 @@ class RuboCop::Cop::Rails::TimeZone < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#244 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#246 def offset_provided?(node); end # remove redundant `.in_time_zone` from `Time.zone.now.in_time_zone` @@ -9741,15 +9932,15 @@ class RuboCop::Cop::Rails::TimeZone < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#106 def remove_redundant_in_time_zone(corrector, node); end - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#261 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#263 def replacement(node); end - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#182 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#184 def safe_method(method_name, node); end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#218 + # source://rubocop-rails//lib/rubocop/cop/rails/time_zone.rb#220 def strict?; end end @@ -9837,7 +10028,7 @@ class RuboCop::Cop::Rails::ToFormattedS < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRailsVersion - # source://rubocop-rails//lib/rubocop/cop/rails/to_formatted_s.rb#35 + # source://rubocop-rails//lib/rubocop/cop/rails/to_formatted_s.rb#42 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/to_formatted_s.rb#35 @@ -9866,7 +10057,7 @@ class RuboCop::Cop::Rails::ToSWithArgument < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRailsVersion - # source://rubocop-rails//lib/rubocop/cop/rails/to_s_with_argument.rb#61 + # source://rubocop-rails//lib/rubocop/cop/rails/to_s_with_argument.rb#68 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/to_s_with_argument.rb#61 @@ -10015,20 +10206,20 @@ class RuboCop::Cop::Rails::TransactionExitStatement < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#115 + # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#118 def nested_block?(statement_node); end - # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#105 + # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#108 def statement(statement_node); end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#124 + # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#127 def transaction_method?(method_name); end # @return [Boolean] # - # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#120 + # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#123 def transaction_method_name?(method_name); end end @@ -10275,7 +10466,7 @@ class RuboCop::Cop::Rails::UnusedIgnoredColumns < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#33 def ignored_columns(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#45 + # source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#56 def on_op_asgn(node); end # source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#45 @@ -10450,7 +10641,7 @@ class RuboCop::Cop::Rails::WhereEquals < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#44 + # source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#63 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#44 @@ -10546,9 +10737,9 @@ class RuboCop::Cop::Rails::WhereExists < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#61 - def exists_with_args?(param0 = T.unsafe(nil)); end + def exists_with_arg?(param0 = T.unsafe(nil)); end - # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#65 + # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#78 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#65 @@ -10581,8 +10772,10 @@ class RuboCop::Cop::Rails::WhereExists < ::RuboCop::Cop::Base # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#86 def exists_style?; end + # @return [Boolean] + # # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#90 - def find_offenses(node, &block); end + def find_offenses?(node, &block); end # @return [Boolean] # @@ -10691,7 +10884,7 @@ class RuboCop::Cop::Rails::WhereNot < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#40 + # source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#57 def on_csend(node); end # source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#40 @@ -11066,6 +11259,10 @@ class RuboCop::Cop::Style::CollectionMethods < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end +class RuboCop::Cop::Style::CollectionQuerying < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + class RuboCop::Cop::Style::ColonMethodCall < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end @@ -11203,6 +11400,10 @@ class RuboCop::Cop::Style::EmptyMethod < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end +class RuboCop::Cop::Style::EmptyStringInsideInterpolation < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + class RuboCop::Cop::Style::Encoding < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end @@ -11686,6 +11887,10 @@ class RuboCop::Cop::Style::RedundantArrayConstructor < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end +class RuboCop::Cop::Style::RedundantArrayFlatten < ::RuboCop::Cop::Base + include ::RuboCop::Rails::MigrationFileSkippable +end + class RuboCop::Cop::Style::RedundantAssignment < ::RuboCop::Cop::Base include ::RuboCop::Rails::MigrationFileSkippable end diff --git a/sorbet/rbi/gems/rubocop-rspec@3.5.0.rbi b/sorbet/rbi/gems/rubocop-rspec@3.7.0.rbi similarity index 97% rename from sorbet/rbi/gems/rubocop-rspec@3.5.0.rbi rename to sorbet/rbi/gems/rubocop-rspec@3.7.0.rbi index 8ddb2ff7..2013938a 100644 --- a/sorbet/rbi/gems/rubocop-rspec@3.5.0.rbi +++ b/sorbet/rbi/gems/rubocop-rspec@3.7.0.rbi @@ -489,39 +489,39 @@ class RuboCop::Cop::RSpec::ChangeByZero < ::RuboCop::Cop::RSpec::Base private - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#132 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#133 def autocorrect(corrector, node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#139 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#140 def autocorrect_compound(corrector, node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#118 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#120 def compound_expectations?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#149 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#150 def insert_operator(corrector, node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#123 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#124 def message(change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#127 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#128 def message_compound(change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#173 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#174 def negated_matcher; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#177 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#178 def preferred_method; end # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#104 def register_offense(node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#162 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#163 def remove_by_zero(corrector, node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#158 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#159 def replace_node(node, change_node); end end @@ -988,38 +988,38 @@ RuboCop::Cop::RSpec::DescribeSymbol::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # end # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#71 +# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#76 class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RSpec::Namespace extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#80 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#85 def common_instance_exec_closure?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#97 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#108 def contains_described_class?(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#92 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#103 def described_constant(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#100 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#111 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#85 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#96 def rspec_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#89 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#100 def scope_changing_syntax?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#136 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#147 def allowed?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#117 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#128 def autocorrect(corrector, match); end # @example @@ -1033,7 +1033,7 @@ class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Base # @param const [Array] # @return [Array] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#200 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#213 def collapse_namespace(namespace, const); end # @example @@ -1043,50 +1043,50 @@ class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @return [Array] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#217 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#230 def const_name(node); end # @yield [node] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#127 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#138 def find_usage(node, &block); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#185 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#198 def full_const_name(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#140 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#151 def message(offense); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#163 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#176 def offensive?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#171 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#184 def offensive_described_class?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#159 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#172 def only_static_constants?; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#149 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#160 def scope_change?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#155 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#166 def skippable_block?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#76 +# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#81 RuboCop::Cop::RSpec::DescribedClass::DESCRIBED_CLASS = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#77 +# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#82 RuboCop::Cop::RSpec::DescribedClass::MSG = T.let(T.unsafe(nil), String) # Avoid opening modules and defining specs within them. @@ -1135,6 +1135,7 @@ RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), St # - let, let! # - subject, subject! # - expect, is_expected, expect_any_instance_of +# - raise_error, raise_exception # # By default all of the RSpec methods and aliases are allowed. By setting # a config like: @@ -1169,19 +1170,19 @@ RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), St # # ... # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#58 +# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#59 class RuboCop::Cop::RSpec::Dialect < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::MethodPreference extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#67 + # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#68 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#65 + # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#66 def rspec_method?(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#62 +# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#63 RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String) # Avoid duplicated metadata. @@ -1578,7 +1579,7 @@ class RuboCop::Cop::RSpec::EmptyLineAfterHook < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#60 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#60 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#70 def on_numblock(node); end private @@ -2113,8 +2114,8 @@ RuboCop::Cop::RSpec::ExpectActual::SKIPPED_MATCHERS = T.let(T.unsafe(nil), Array # Checks for consistent style of change matcher. # -# Enforces either passing object and attribute as arguments to the matcher -# or passing a block that reads the attribute value. +# Enforces either passing a receiver and message as method arguments, +# or a block. # # This cop can be configured using the `EnforcedStyle` option. # @@ -2136,31 +2137,31 @@ RuboCop::Cop::RSpec::ExpectActual::SKIPPED_MATCHERS = T.let(T.unsafe(nil), Array # # good # expect { run }.to change { Foo.bar } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#32 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#51 class RuboCop::Cop::RSpec::ExpectChange < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#41 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#60 def expect_change_with_arguments(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#46 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#65 def expect_change_with_block(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#72 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#91 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#60 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#79 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#36 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#55 RuboCop::Cop::RSpec::ExpectChange::MSG_BLOCK = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#37 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#56 RuboCop::Cop::RSpec::ExpectChange::MSG_CALL = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#38 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#57 RuboCop::Cop::RSpec::ExpectChange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Do not use `expect` in hooks such as `before`. @@ -2189,7 +2190,7 @@ class RuboCop::Cop::RSpec::ExpectInHook < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#30 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#30 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#40 def on_numblock(node); end private @@ -2482,7 +2483,7 @@ class RuboCop::Cop::RSpec::HookArgument < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#78 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#78 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#91 def on_numblock(node); end # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#69 @@ -2546,7 +2547,7 @@ class RuboCop::Cop::RSpec::HooksBeforeExamples < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#41 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#41 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#47 def on_numblock(node); end private @@ -2822,6 +2823,36 @@ RuboCop::Cop::RSpec::ImplicitSubject::MSG_REQUIRE_IMPLICIT = T.let(T.unsafe(nil) # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#73 RuboCop::Cop::RSpec::ImplicitSubject::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Checks for usage of `include_examples`. +# +# `include_examples`, unlike `it_behaves_like`, does not create its +# own context. As such, using `subject`, `let`, `before`/`after`, etc. +# within shared examples included with `include_examples` can have +# unexpected behavior and side effects. +# +# Prefer using `it_behaves_like` instead. +# +# @example +# # bad +# include_examples 'examples' +# +# # good +# it_behaves_like 'examples' +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/include_examples.rb#73 +class RuboCop::Cop::RSpec::IncludeExamples < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/include_examples.rb#80 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/include_examples.rb#76 +RuboCop::Cop::RSpec::IncludeExamples::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/include_examples.rb#78 +RuboCop::Cop::RSpec::IncludeExamples::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Do not set up test data using indexes (e.g., `item_1`, `item_2`). # # It makes reading the test harder because it's not clear what exactly @@ -3181,16 +3212,18 @@ RuboCop::Cop::RSpec::ItBehavesLike::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#19 class RuboCop::Cop::RSpec::IteratedExpectation < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#24 + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#26 def each?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#33 + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#35 def each_numblock?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#40 + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#42 def expectation?(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#44 + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#46 def on_block(node); end # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#52 @@ -3198,18 +3231,29 @@ class RuboCop::Cop::RSpec::IteratedExpectation < ::RuboCop::Cop::RSpec::Base private + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#60 + def check_offense(node, argument); end + # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#66 + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#88 def only_expectations?(body, arg); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#62 + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#84 def single_expectation?(body, arg); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#73 + def single_expectation_replacement(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#80 + def uses_argument_in_matcher?(node, argument); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#20 +# source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#22 RuboCop::Cop::RSpec::IteratedExpectation::MSG = T.let(T.unsafe(nil), String) # Enforce that subject is the first definition in the test. @@ -3363,17 +3407,22 @@ class RuboCop::Cop::RSpec::LeakyConstantDeclaration < ::RuboCop::Cop::RSpec::Bas # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#101 def on_casgn(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#107 + # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#108 def on_class(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#113 + # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#115 def on_module(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#121 + # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#128 + def explicit_namespace?(namespace); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#124 def inside_describe_block?(node); end end @@ -3742,7 +3791,7 @@ module RuboCop::Cop::RSpec::Metadata # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#43 def on_metadata(_symbols, _hash); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#30 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#41 def on_numblock(node); end # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#21 @@ -4016,7 +4065,7 @@ class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#86 def expect?(param0 = T.unsafe(nil)); end - # source://rubocop/1.75.2/lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#75 def max=(value); end # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#93 @@ -4131,7 +4180,7 @@ RuboCop::Cop::RSpec::MultipleExpectations::TRUE_NODE = T.let(T.unsafe(nil), Proc class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::Variable - # source://rubocop/1.75.2/lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#89 def max=(value); end # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 @@ -4473,7 +4522,7 @@ end class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop/1.75.2/lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#105 def max=(value); end # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#107 @@ -4587,7 +4636,7 @@ class RuboCop::Cop::RSpec::NoExpectationExample < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::BlockNode] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#89 + # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#98 def on_numblock(node); end # @param node [RuboCop::AST::Node] @@ -4807,19 +4856,19 @@ RuboCop::Cop::RSpec::Pending::MSG = T.let(T.unsafe(nil), String) # # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#59 class RuboCop::Cop::RSpec::PendingWithoutReason < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#82 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#81 def metadata_without_reason?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#97 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#96 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#93 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#92 def skipped_by_example_group_method?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#72 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#71 def skipped_by_example_method?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#77 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#76 def skipped_by_example_method_with_block?(param0 = T.unsafe(nil)); end # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#63 @@ -4829,22 +4878,22 @@ class RuboCop::Cop::RSpec::PendingWithoutReason < ::RuboCop::Cop::RSpec::Base # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#118 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#117 def block_node_example_group?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#130 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#129 def on_pending_by_metadata(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#146 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#145 def on_skipped_by_example_group_method(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#136 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#135 def on_skipped_by_example_method(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#124 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#123 def on_skipped_by_in_example_method(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#111 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#110 def parent_node(node); end end @@ -4967,7 +5016,7 @@ RuboCop::Cop::RSpec::ReceiveCounts::MSG = T.let(T.unsafe(nil), String) # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#30 RuboCop::Cop::RSpec::ReceiveCounts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# Checks for multiple messages stubbed on the same object. +# Prefer `receive_messages` over multiple `receive`s on the same object. # # @example # # bad @@ -5046,7 +5095,7 @@ class RuboCop::Cop::RSpec::ReceiveMessages < ::RuboCop::Cop::RSpec::Base # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#155 + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#154 def requires_quotes?(value); end # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#91 @@ -5110,7 +5159,7 @@ class RuboCop::Cop::RSpec::RedundantAround < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#23 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#23 + # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#30 def on_numblock(node); end # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#32 @@ -5778,7 +5827,9 @@ RuboCop::Cop::RSpec::ScatteredLet::MSG = T.let(T.unsafe(nil), String) # Checks for setup scattered across multiple hooks in an example group. # -# Unify `before`, `after`, and `around` hooks when possible. +# Unify `before` and `after` hooks when possible. +# However, `around` hooks are allowed to be defined multiple times, +# as unifying them would typically make the code harder to read. # # @example # # bad @@ -5795,31 +5846,37 @@ RuboCop::Cop::RSpec::ScatteredLet::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#25 +# # good +# describe Foo do +# around { |example| before1; example.call; after1 } +# around { |example| before2; example.call; after2 } +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#33 class RuboCop::Cop::RSpec::ScatteredSetup < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#33 + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#41 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#76 + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#84 def autocorrect(corrector, first_occurrence, occurrence); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#61 + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#69 def lines_msg(numbers); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#69 + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#77 def message(occurrences, occurrence); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#48 + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#56 def repeated_hooks(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#30 +# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#38 RuboCop::Cop::RSpec::ScatteredSetup::MSG = T.let(T.unsafe(nil), String) # Checks for proper shared_context and shared_examples usage. @@ -6088,7 +6145,7 @@ class RuboCop::Cop::RSpec::SkipBlockInsideExample < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/skip_block_inside_example.rb#29 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/skip_block_inside_example.rb#29 + # source://rubocop-rspec//lib/rubocop/cop/rspec/skip_block_inside_example.rb#36 def on_numblock(node); end private @@ -7071,7 +7128,7 @@ class RuboCop::RSpec::Concept # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#14 + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#18 def ==(other); end # @return [Boolean] @@ -7236,10 +7293,10 @@ class RuboCop::RSpec::Hook < ::RuboCop::RSpec::Concept private - # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#74 + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#76 def scope_argument; end - # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#70 + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#72 def scope_name; end # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#51 @@ -7283,10 +7340,10 @@ module RuboCop::RSpec::Language # source://rubocop-rspec//lib/rubocop/rspec/language.rb#52 def hook?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#68 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#65 def include?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#60 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#57 def let?(param0 = T.unsafe(nil)); end # source://rubocop-rspec//lib/rubocop/rspec/language.rb#22 @@ -7298,7 +7355,7 @@ module RuboCop::RSpec::Language # source://rubocop-rspec//lib/rubocop/rspec/language.rb#37 def spec_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#76 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#73 def subject?(param0 = T.unsafe(nil)); end class << self @@ -7318,129 +7375,137 @@ end # This is used in Dialect and DescribeClass cops to detect RSpec blocks. # -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#204 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#207 module RuboCop::RSpec::Language::ALL class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#205 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#208 + def all(element); end + end +end + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#75 +module RuboCop::RSpec::Language::ErrorMatchers + class << self + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#76 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#78 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#81 module RuboCop::RSpec::Language::ExampleGroups class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#80 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#83 def all(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#90 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#93 def focused(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#86 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#89 def regular(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#94 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#97 def skipped(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#100 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#103 module RuboCop::RSpec::Language::Examples class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#102 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#105 def all(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#113 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#116 def focused(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#121 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#124 def pending(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#109 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#112 def regular(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#117 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#120 def skipped(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#127 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#130 module RuboCop::RSpec::Language::Expectations class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#128 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#131 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#133 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#136 module RuboCop::RSpec::Language::Helpers class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#134 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#137 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#145 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#148 module RuboCop::RSpec::Language::HookScopes class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#147 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#150 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#146 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#149 RuboCop::RSpec::Language::HookScopes::ALL = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#139 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#142 module RuboCop::RSpec::Language::Hooks class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#140 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#143 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#152 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#155 module RuboCop::RSpec::Language::Includes class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#154 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#157 def all(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#163 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#166 def context(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#159 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#162 def examples(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#169 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#172 module RuboCop::RSpec::Language::Runners class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#172 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#175 def all(element = T.unsafe(nil)); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#170 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#173 RuboCop::RSpec::Language::Runners::ALL = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#180 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#183 module RuboCop::RSpec::Language::SharedGroups class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#182 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#185 def all(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#191 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#194 def context(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#187 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#190 def examples(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#197 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#200 module RuboCop::RSpec::Language::Subjects class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#198 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#201 def all(element); end end end diff --git a/sorbet/rbi/gems/rubocop-shopify@2.16.0.rbi b/sorbet/rbi/gems/rubocop-shopify@2.17.1.rbi similarity index 100% rename from sorbet/rbi/gems/rubocop-shopify@2.16.0.rbi rename to sorbet/rbi/gems/rubocop-shopify@2.17.1.rbi diff --git a/sorbet/rbi/gems/rubocop-thread_safety@0.7.2.rbi b/sorbet/rbi/gems/rubocop-thread_safety@0.7.3.rbi similarity index 99% rename from sorbet/rbi/gems/rubocop-thread_safety@0.7.2.rbi rename to sorbet/rbi/gems/rubocop-thread_safety@0.7.3.rbi index 69067770..1c898cc5 100644 --- a/sorbet/rbi/gems/rubocop-thread_safety@0.7.2.rbi +++ b/sorbet/rbi/gems/rubocop-thread_safety@0.7.3.rbi @@ -158,7 +158,7 @@ class RuboCop::Cop::ThreadSafety::ClassInstanceVariable < ::RuboCop::Cop::Base # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_instance_variable.rb#81 def on_ivar(node); end - # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_instance_variable.rb#81 + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_instance_variable.rb#88 def on_ivasgn(node); end # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_instance_variable.rb#90 @@ -269,7 +269,7 @@ class RuboCop::Cop::ThreadSafety::DirChdir < ::RuboCop::Cop::Base # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#34 def chdir?(param0 = T.unsafe(nil)); end - # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#41 + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#55 def on_csend(node); end # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/dir_chdir.rb#41 @@ -467,7 +467,7 @@ class RuboCop::Cop::ThreadSafety::NewThread < ::RuboCop::Cop::Base # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/new_thread.rb#18 def new_thread?(param0 = T.unsafe(nil)); end - # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/new_thread.rb#22 + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/new_thread.rb#25 def on_csend(node); end # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/new_thread.rb#22 @@ -536,7 +536,7 @@ class RuboCop::Cop::ThreadSafety::RackMiddlewareInstanceVariable < ::RuboCop::Co # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb#68 def on_class(node); end - # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb#88 + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb#96 def on_csend(node); end # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb#88 diff --git a/sorbet/rbi/gems/rubocop@1.75.5.rbi b/sorbet/rbi/gems/rubocop@1.80.2.rbi similarity index 94% rename from sorbet/rbi/gems/rubocop@1.75.5.rbi rename to sorbet/rbi/gems/rubocop@1.80.2.rbi index 191322e8..563631c2 100644 --- a/sorbet/rbi/gems/rubocop@1.75.5.rbi +++ b/sorbet/rbi/gems/rubocop@1.80.2.rbi @@ -98,44 +98,50 @@ class RuboCop::CLI private - # source://rubocop//lib/rubocop/cli.rb#156 + # source://rubocop//lib/rubocop/cli.rb#162 def act_on_options; end - # source://rubocop//lib/rubocop/cli.rb#198 + # source://rubocop//lib/rubocop/cli.rb#210 def apply_default_formatter; end - # source://rubocop//lib/rubocop/cli.rb#125 + # source://rubocop//lib/rubocop/cli.rb#131 def execute_runners; end - # source://rubocop//lib/rubocop/cli.rb#182 + # source://rubocop//lib/rubocop/cli.rb#194 def handle_editor_mode; end # @raise [Finished] # - # source://rubocop//lib/rubocop/cli.rb#187 + # source://rubocop//lib/rubocop/cli.rb#199 def handle_exiting_options; end - # source://rubocop//lib/rubocop/cli.rb#144 + # source://rubocop//lib/rubocop/cli.rb#150 def parallel_by_default!; end - # source://rubocop//lib/rubocop/cli.rb#80 + # source://rubocop//lib/rubocop/cli.rb#86 def profile_if_needed; end - # source://rubocop//lib/rubocop/cli.rb#113 + # source://rubocop//lib/rubocop/cli.rb#224 + def report_pending_cops; end + + # source://rubocop//lib/rubocop/cli.rb#119 def require_gem(name); end - # source://rubocop//lib/rubocop/cli.rb#121 + # source://rubocop//lib/rubocop/cli.rb#127 def run_command(name); end - # source://rubocop//lib/rubocop/cli.rb#174 + # source://rubocop//lib/rubocop/cli.rb#181 def set_options_to_config_loader; end - # source://rubocop//lib/rubocop/cli.rb#133 + # source://rubocop//lib/rubocop/cli.rb#189 + def set_options_to_pending_cops_reporter; end + + # source://rubocop//lib/rubocop/cli.rb#139 def suggest_extensions; end # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/cli.rb#137 + # source://rubocop//lib/rubocop/cli.rb#143 def validate_options_vs_config; end end @@ -506,19 +512,32 @@ class RuboCop::CLI::Command::ShowCops::ExactMatcher < ::Struct # Returns the value of attribute pattern # # @return [Object] the current value of pattern + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def pattern; end # Sets the attribute pattern # # @param value [Object] the value to set the attribute pattern to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def pattern=(_); end class << self + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def inspect; end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def keyword_init?; end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def members; end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def new(*_arg0); end end end @@ -536,19 +555,32 @@ class RuboCop::CLI::Command::ShowCops::WildcardMatcher < ::Struct # Returns the value of attribute pattern # # @return [Object] the current value of pattern + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def pattern; end # Sets the attribute pattern # # @param value [Object] the value to set the attribute pattern to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def pattern=(_); end class << self + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def inspect; end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def keyword_init?; end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def members; end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def new(*_arg0); end end end @@ -832,7 +864,7 @@ class RuboCop::CommentConfig # @return [CommentConfig] a new instance of CommentConfig # - # source://standard/1.49.0/lib/standard/rubocop/ext.rb#20 + # source://rubocop//lib/rubocop/comment_config.rb#34 def initialize(processed_source); end # @return [Boolean] @@ -840,7 +872,7 @@ class RuboCop::CommentConfig # source://rubocop//lib/rubocop/comment_config.rb#63 def comment_only_line?(line_number); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/comment_config.rb#32 def config(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/comment_config.rb#51 @@ -864,7 +896,7 @@ class RuboCop::CommentConfig # source://rubocop//lib/rubocop/comment_config.rb#30 def processed_source; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/comment_config.rb#32 def registry(*_arg0, **_arg1, &_arg2); end private @@ -908,9 +940,6 @@ class RuboCop::CommentConfig # source://rubocop//lib/rubocop/comment_config.rb#183 def non_comment_token_line_numbers; end - # source://rubocop//lib/rubocop/comment_config.rb#34 - def old_initialize(processed_source); end - # source://rubocop//lib/rubocop/comment_config.rb#83 def opt_in_cops; end @@ -954,19 +983,32 @@ class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Expression < :: # Returns the value of attribute line # # @return [Object] the current value of line + # + # source://rubocop//lib/rubocop/comment_config.rb#19 def line; end # Sets the attribute line # # @param value [Object] the value to set the attribute line to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/comment_config.rb#19 def line=(_); end class << self + # source://rubocop//lib/rubocop/comment_config.rb#19 def [](*_arg0); end + + # source://rubocop//lib/rubocop/comment_config.rb#19 def inspect; end + + # source://rubocop//lib/rubocop/comment_config.rb#19 def keyword_init?; end + + # source://rubocop//lib/rubocop/comment_config.rb#19 def members; end + + # source://rubocop//lib/rubocop/comment_config.rb#19 def new(*_arg0); end end end @@ -976,19 +1018,32 @@ class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Loc < ::Struct # Returns the value of attribute expression # # @return [Object] the current value of expression + # + # source://rubocop//lib/rubocop/comment_config.rb#18 def expression; end # Sets the attribute expression # # @param value [Object] the value to set the attribute expression to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/comment_config.rb#18 def expression=(_); end class << self + # source://rubocop//lib/rubocop/comment_config.rb#18 def [](*_arg0); end + + # source://rubocop//lib/rubocop/comment_config.rb#18 def inspect; end + + # source://rubocop//lib/rubocop/comment_config.rb#18 def keyword_init?; end + + # source://rubocop//lib/rubocop/comment_config.rb#18 def members; end + + # source://rubocop//lib/rubocop/comment_config.rb#18 def new(*_arg0); end end end @@ -998,30 +1053,47 @@ class RuboCop::CommentConfig::CopAnalysis < ::Struct # Returns the value of attribute line_ranges # # @return [Object] the current value of line_ranges + # + # source://rubocop//lib/rubocop/comment_config.rb#28 def line_ranges; end # Sets the attribute line_ranges # # @param value [Object] the value to set the attribute line_ranges to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/comment_config.rb#28 def line_ranges=(_); end # Returns the value of attribute start_line_number # # @return [Object] the current value of start_line_number + # + # source://rubocop//lib/rubocop/comment_config.rb#28 def start_line_number; end # Sets the attribute start_line_number # # @param value [Object] the value to set the attribute start_line_number to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/comment_config.rb#28 def start_line_number=(_); end class << self + # source://rubocop//lib/rubocop/comment_config.rb#28 def [](*_arg0); end + + # source://rubocop//lib/rubocop/comment_config.rb#28 def inspect; end + + # source://rubocop//lib/rubocop/comment_config.rb#28 def keyword_init?; end + + # source://rubocop//lib/rubocop/comment_config.rb#28 def members; end + + # source://rubocop//lib/rubocop/comment_config.rb#28 def new(*_arg0); end end end @@ -1043,10 +1115,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#31 def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def [](*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def []=(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -1090,13 +1162,13 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#200 def cop_enabled?(name); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def delete(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#139 def deprecation_check; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def dig(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -1104,10 +1176,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#204 def disabled_new_cops?; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def each(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def each_key(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -1115,7 +1187,7 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#208 def enabled_new_cops?; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def fetch(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -1177,10 +1249,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#110 def internal?; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def key?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def keys(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#81 @@ -1197,10 +1269,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#115 def make_excludes_absolute; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def merge(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#293 @@ -1226,7 +1298,7 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#253 def possibly_include_hidden?; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def replace(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#105 @@ -1243,22 +1315,22 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#297 def target_rails_version; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#99 def target_ruby_version(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def to_h(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def to_hash(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#101 def to_s; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def transform_values(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#99 def validate(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#92 @@ -1304,30 +1376,47 @@ class RuboCop::Config::CopConfig < ::Struct # Returns the value of attribute metadata # # @return [Object] the current value of metadata + # + # source://rubocop//lib/rubocop/config.rb#17 def metadata; end # Sets the attribute metadata # # @param value [Object] the value to set the attribute metadata to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/config.rb#17 def metadata=(_); end # Returns the value of attribute name # # @return [Object] the current value of name + # + # source://rubocop//lib/rubocop/config.rb#17 def name; end # Sets the attribute name # # @param value [Object] the value to set the attribute name to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/config.rb#17 def name=(_); end class << self + # source://rubocop//lib/rubocop/config.rb#17 def [](*_arg0); end + + # source://rubocop//lib/rubocop/config.rb#17 def inspect; end + + # source://rubocop//lib/rubocop/config.rb#17 def keyword_init?; end + + # source://rubocop//lib/rubocop/config.rb#17 def members; end + + # source://rubocop//lib/rubocop/config.rb#17 def new(*_arg0); end end end @@ -1430,7 +1519,7 @@ class RuboCop::ConfigLoader extend ::RuboCop::FileFinder class << self - # source://rubocop//lib/rubocop/config_loader.rb#152 + # source://rubocop//lib/rubocop/config_loader.rb#130 def add_excludes_from_files(config, config_file); end # Used to add features that were required inside a config or from @@ -1438,7 +1527,7 @@ class RuboCop::ConfigLoader # # @api private # - # source://rubocop//lib/rubocop/config_loader.rb#241 + # source://rubocop//lib/rubocop/config_loader.rb#204 def add_loaded_features(loaded_features); end # Used to add plugins that were required inside a config or from @@ -1446,13 +1535,13 @@ class RuboCop::ConfigLoader # # @api private # - # source://rubocop//lib/rubocop/config_loader.rb#234 + # source://rubocop//lib/rubocop/config_loader.rb#197 def add_loaded_plugins(loaded_plugins); end - # source://rubocop//lib/rubocop/config_loader.rb#91 + # source://rubocop//lib/rubocop/config_loader.rb#83 def add_missing_namespaces(path, hash); end - # source://rubocop//lib/rubocop/config_loader.rb#41 + # source://rubocop//lib/rubocop/config_loader.rb#33 def clear_options; end # Returns the path of .rubocop.yml searching upwards in the @@ -1461,90 +1550,90 @@ class RuboCop::ConfigLoader # user's home directory is checked. If there's no .rubocop.yml # there either, the path to the default file is returned. # - # source://rubocop//lib/rubocop/config_loader.rb#119 + # source://rubocop//lib/rubocop/config_loader.rb#111 def configuration_file_for(target_dir); end - # source://rubocop//lib/rubocop/config_loader.rb#123 + # source://rubocop//lib/rubocop/config_loader.rb#115 def configuration_from_file(config_file, check: T.unsafe(nil)); end # Returns the value of attribute debug. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#25 def debug; end # Sets the attribute debug # # @param value the value to set the attribute debug to. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#25 def debug=(_arg0); end # Returns the value of attribute debug. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#30 def debug?; end - # source://rubocop//lib/rubocop/config_loader.rb#162 + # source://rubocop//lib/rubocop/config_loader.rb#140 def default_configuration; end # Sets the attribute default_configuration # # @param value the value to set the attribute default_configuration to. # - # source://rubocop//lib/rubocop/config_loader.rb#35 + # source://rubocop//lib/rubocop/config_loader.rb#27 def default_configuration=(_arg0); end # Returns the value of attribute disable_pending_cops. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#25 def disable_pending_cops; end # Sets the attribute disable_pending_cops # # @param value the value to set the attribute disable_pending_cops to. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#25 def disable_pending_cops=(_arg0); end # Returns the value of attribute enable_pending_cops. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#25 def enable_pending_cops; end # Sets the attribute enable_pending_cops # # @param value the value to set the attribute enable_pending_cops to. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#25 def enable_pending_cops=(_arg0); end # Returns the value of attribute ignore_parent_exclusion. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#25 def ignore_parent_exclusion; end # Sets the attribute ignore_parent_exclusion # # @param value the value to set the attribute ignore_parent_exclusion to. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#25 def ignore_parent_exclusion=(_arg0); end # Returns the value of attribute ignore_parent_exclusion. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#31 def ignore_parent_exclusion?; end # Returns the value of attribute ignore_unrecognized_cops. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#25 def ignore_unrecognized_cops; end # Sets the attribute ignore_unrecognized_cops # # @param value the value to set the attribute ignore_unrecognized_cops to. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#25 def ignore_unrecognized_cops=(_arg0); end # This API is primarily intended for testing and documenting plugins. @@ -1552,83 +1641,69 @@ class RuboCop::ConfigLoader # so this API is usually not needed. It is intended to be used only when implementing tests # that do not use `rubocop/rspec/support`. # - # source://rubocop//lib/rubocop/config_loader.rb#174 + # source://rubocop//lib/rubocop/config_loader.rb#152 def inject_defaults!(config_yml_path); end - # source://rubocop//lib/rubocop/config_loader.rb#53 + # source://rubocop//lib/rubocop/config_loader.rb#45 def load_file(file, check: T.unsafe(nil)); end # @raise [TypeError] # - # source://rubocop//lib/rubocop/config_loader.rb#78 + # source://rubocop//lib/rubocop/config_loader.rb#70 def load_yaml_configuration(absolute_path); end # Returns the value of attribute loaded_features. # - # source://rubocop//lib/rubocop/config_loader.rb#36 + # source://rubocop//lib/rubocop/config_loader.rb#28 def loaded_features; end # Returns the value of attribute loaded_plugins. # - # source://rubocop//lib/rubocop/config_loader.rb#36 + # source://rubocop//lib/rubocop/config_loader.rb#28 def loaded_plugins; end # Return a recursive merge of two hashes. That is, a normal hash merge, # with the addition that any value that is a hash, and occurs in both # arguments, will also be merged. And so on. # - # source://rubocop//lib/rubocop/config_loader.rb#110 + # source://rubocop//lib/rubocop/config_loader.rb#102 def merge(base_hash, derived_hash); end # Merges the given configuration with the default one. # - # source://rubocop//lib/rubocop/config_loader.rb#227 + # source://rubocop//lib/rubocop/config_loader.rb#190 def merge_with_default(config, config_file, unset_nil: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/config_loader.rb#143 - def pending_cops_only_qualified(pending_cops); end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/config_loader.rb#147 - def possible_new_cops?(config); end - # Returns the path RuboCop inferred as the root of the project. No file # searches will go past this directory. # # @deprecated Use `RuboCop::ConfigFinder.project_root` instead. # - # source://rubocop//lib/rubocop/config_loader.rb#202 + # source://rubocop//lib/rubocop/config_loader.rb#180 def project_root; end - # source://rubocop//lib/rubocop/config_loader.rb#211 - def warn_on_pending_cops(pending_cops); end - - # source://rubocop//lib/rubocop/config_loader.rb#219 - def warn_pending_cop(cop); end - private - # source://rubocop//lib/rubocop/config_loader.rb#255 + # source://rubocop//lib/rubocop/config_loader.rb#218 def check_duplication(yaml_code, absolute_path); end - # source://rubocop//lib/rubocop/config_loader.rb#247 + # source://rubocop//lib/rubocop/config_loader.rb#210 def file_path(file); end # Read the specified file, or exit with a friendly, concise message on # stderr. Care is taken to use the standard OS exit code for a "file not # found" error. # - # source://rubocop//lib/rubocop/config_loader.rb#275 + # source://rubocop//lib/rubocop/config_loader.rb#238 def read_file(absolute_path); end - # source://rubocop//lib/rubocop/config_loader.rb#251 + # source://rubocop//lib/rubocop/config_loader.rb#214 def resolver; end - # source://rubocop//lib/rubocop/config_loader.rb#281 + # source://rubocop//lib/rubocop/config_loader.rb#244 def yaml_tree_to_hash(yaml_tree); end - # source://rubocop//lib/rubocop/config_loader.rb#291 + # source://rubocop//lib/rubocop/config_loader.rb#254 def yaml_tree_to_hash!(yaml_tree); end end end @@ -2422,7 +2497,7 @@ class RuboCop::ConfigStore # Returns the value of attribute validated. # - # source://rubocop//lib/rubocop/config_store.rb#7 + # source://rubocop//lib/rubocop/config_store.rb#8 def validated?; end end @@ -2438,10 +2513,10 @@ class RuboCop::ConfigValidator # source://rubocop//lib/rubocop/config_validator.rb#28 def initialize(config); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config_validator.rb#26 def for_all_cops(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config_validator.rb#26 def smart_loaded_path(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config_validator.rb#65 @@ -2633,18 +2708,18 @@ class RuboCop::Cop::AlignmentCorrector private - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#113 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#116 def alignment_column(align_to); end - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#40 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#43 def autocorrect_line(corrector, line_begin_pos, expr, column_delta, taboo_ranges); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#81 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#84 def block_comment_within?(expr); end - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#87 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#90 def calculate_range(expr, line_begin_pos, column_delta); end # Some special kinds of string literals are not composed of literal @@ -2655,19 +2730,19 @@ class RuboCop::Cop::AlignmentCorrector # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#75 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#78 def delimited_string_literal?(node); end - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#99 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#102 def each_line(expr); end - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#60 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#63 def inside_string_range(node); end - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#54 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#57 def inside_string_ranges(node); end - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#107 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#110 def whitespace_range(node); end end end @@ -2968,19 +3043,32 @@ module RuboCop::Cop::AutocorrectLogic # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#51 def disable_offense(offense_range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#135 - def disable_offense_at_end_of_line(range, eol_comment); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#139 + def disable_offense_at_end_of_line(range); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#147 def disable_offense_before_and_after(range_by_lines); end # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#77 def disable_offense_with_eol_or_surround_comment(range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#96 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#143 + def eol_comment; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#85 + def eol_comment_would_be_inside_literal?(offense_range, literal_range); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#100 def heredoc_range(node); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#131 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#92 + def line_with_eol_comment_too_long?(range); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#135 def max_line_length; end # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#63 @@ -2988,36 +3076,31 @@ module RuboCop::Cop::AutocorrectLogic # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#108 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#112 def multiline_string?(node); end # Expand the given range to include all of any lines it covers. Does not # include newline at end of the last line. # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#121 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#125 def range_by_lines(range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#112 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#116 def range_of_first_line(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#88 - def range_overlaps_offense?(offense_range, range); end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#104 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#108 def string_continuation?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#92 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#96 def surrounding_heredoc?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#100 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#104 def surrounding_percent_array?(node); end end @@ -3054,7 +3137,7 @@ class RuboCop::Cop::Badge # source://rubocop//lib/rubocop/cop/badge.rb#13 def department_name; end - # source://rubocop//lib/rubocop/cop/badge.rb#41 + # source://rubocop//lib/rubocop/cop/badge.rb#44 def eql?(other); end # source://rubocop//lib/rubocop/cop/badge.rb#46 @@ -3229,7 +3312,7 @@ class RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/base.rb#183 def message(_range = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/base.rb#238 + # source://rubocop//lib/rubocop/cop/base.rb#242 def name; end # @deprecated Make potential errors with previous API more obvious @@ -3509,52 +3592,77 @@ class RuboCop::Cop::Base::InvestigationReport < ::Struct # Returns the value of attribute cop # # @return [Object] the current value of cop + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def cop; end # Sets the attribute cop # # @param value [Object] the value to set the attribute cop to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def cop=(_); end # Returns the value of attribute corrector # # @return [Object] the current value of corrector + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def corrector; end # Sets the attribute corrector # # @param value [Object] the value to set the attribute corrector to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def corrector=(_); end # Returns the value of attribute offenses # # @return [Object] the current value of offenses + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def offenses; end # Sets the attribute offenses # # @param value [Object] the value to set the attribute offenses to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def offenses=(_); end # Returns the value of attribute processed_source # # @return [Object] the current value of processed_source + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def processed_source; end # Sets the attribute processed_source # # @param value [Object] the value to set the attribute processed_source to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def processed_source=(_); end class << self + # source://rubocop//lib/rubocop/cop/base.rb#48 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cop/base.rb#48 def inspect; end + + # source://rubocop//lib/rubocop/cop/base.rb#48 def keyword_init?; end + + # source://rubocop//lib/rubocop/cop/base.rb#48 def members; end + + # source://rubocop//lib/rubocop/cop/base.rb#48 def new(*_arg0); end end end @@ -4191,31 +4299,31 @@ RuboCop::Cop::Bundler::OrderedGems::MSG = T.let(T.unsafe(nil), String) # # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#6 module RuboCop::Cop::CheckAssignment - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#17 def on_and_asgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#13 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#11 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#12 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#10 def on_ivasgn(node); end # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#14 def on_masgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#15 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#16 def on_or_asgn(node); end # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#19 @@ -4402,7 +4510,7 @@ end module RuboCop::Cop::CodeLength extend ::RuboCop::ExcludeLimit - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#11 def max=(value); end private @@ -4503,388 +4611,388 @@ class RuboCop::Cop::Commissioner # source://rubocop//lib/rubocop/cop/commissioner.rb#79 def investigate(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on___ENCODING__(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on___FILE__(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on___LINE__(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_alias(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_and(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_and_asgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_arg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_arg_expr(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_args(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_array(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_array_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_array_pattern_with_tail(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_back_ref(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_begin(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_block(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_block_pass(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_blockarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_break(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_case(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_case_match(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_cbase(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_class(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_complex(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_const(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_const_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_cvar(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_def(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_defined?(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_dstr(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_dsym(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_eflipflop(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_empty_else(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_ensure(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_erange(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_false(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_find_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_float(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_for(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_forward_arg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_forward_args(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_forwarded_args(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_forwarded_kwrestarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_forwarded_restarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_gvar(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_hash(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_hash_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_if(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_if_guard(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_iflipflop(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_in_match(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_in_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_index(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_indexasgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_int(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_irange(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_ivar(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_kwarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_kwargs(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_kwbegin(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_kwnilarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_kwoptarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_kwrestarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_kwsplat(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_lambda(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_lvar(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_masgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_match_alt(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_match_as(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_match_current_line(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_match_nil_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_match_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_match_pattern_p(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_match_rest(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_match_var(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_match_with_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_match_with_trailing_comma(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_mlhs(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_module(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_next(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_nil(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_not(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_nth_ref(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_optarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_or(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_or_asgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_pair(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_pin(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_postexe(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_preexe(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_procarg0(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_rational(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_redo(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_regexp(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_regopt(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_resbody(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_rescue(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_restarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_retry(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_return(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_sclass(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_self(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_send(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_shadowarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_splat(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_str(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_super(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_sym(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_true(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_undef(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_unless_guard(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_until(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_until_post(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_when(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_while(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_while_post(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_xstr(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_yield(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#67 def on_zsuper(node); end private @@ -4940,12 +5048,16 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct # Returns the value of attribute cop_reports # # @return [Object] the current value of cop_reports + # + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def cop_reports; end # Sets the attribute cop_reports # # @param value [Object] the value to set the attribute cop_reports to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def cop_reports=(_); end # source://rubocop//lib/rubocop/cop/commissioner.rb#19 @@ -4957,12 +5069,16 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct # Returns the value of attribute errors # # @return [Object] the current value of errors + # + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def errors; end # Sets the attribute errors # # @param value [Object] the value to set the attribute errors to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def errors=(_); end # source://rubocop//lib/rubocop/cop/commissioner.rb#35 @@ -4977,19 +5093,32 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct # Returns the value of attribute processed_source # # @return [Object] the current value of processed_source + # + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def processed_source; end # Sets the attribute processed_source # # @param value [Object] the value to set the attribute processed_source to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def processed_source=(_); end class << self + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def inspect; end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def keyword_init?; end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def members; end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def new(*_arg0); end end end @@ -5025,7 +5154,7 @@ module RuboCop::Cop::ConfigurableEnforcedStyle # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#19 def ambiguous_style_detected(*possibilities); end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#72 def conflicting_styles_detected; end # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#11 @@ -5068,7 +5197,7 @@ module RuboCop::Cop::ConfigurableEnforcedStyle # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#15 def unexpected_style_detected(unexpected); end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#73 def unrecognized_style_detected; end end @@ -5255,41 +5384,62 @@ class RuboCop::Cop::Cop::Correction < ::Struct # Returns the value of attribute cop # # @return [Object] the current value of cop + # + # source://rubocop//lib/rubocop/cop/cop.rb#17 def cop; end # Sets the attribute cop # # @param value [Object] the value to set the attribute cop to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/cop.rb#17 def cop=(_); end # Returns the value of attribute lambda # # @return [Object] the current value of lambda + # + # source://rubocop//lib/rubocop/cop/cop.rb#17 def lambda; end # Sets the attribute lambda # # @param value [Object] the value to set the attribute lambda to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/cop.rb#17 def lambda=(_); end # Returns the value of attribute node # # @return [Object] the current value of node + # + # source://rubocop//lib/rubocop/cop/cop.rb#17 def node; end # Sets the attribute node # # @param value [Object] the value to set the attribute node to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/cop.rb#17 def node=(_); end class << self + # source://rubocop//lib/rubocop/cop/cop.rb#17 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cop/cop.rb#17 def inspect; end + + # source://rubocop//lib/rubocop/cop/cop.rb#17 def keyword_init?; end + + # source://rubocop//lib/rubocop/cop/cop.rb#17 def members; end + + # source://rubocop//lib/rubocop/cop/cop.rb#17 def new(*_arg0); end end end @@ -5342,7 +5492,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # Legacy # - # source://parser/3.3.8.0/lib/parser/source/tree_rewriter.rb#252 + # source://rubocop//lib/rubocop/cop/corrector.rb#45 def rewrite; end # Swaps sources at the given ranges. @@ -5671,12 +5821,7 @@ module RuboCop::Cop::EndKeywordAlignment private - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#60 - def accept_end_kw_alignment?(end_loc); end - - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#50 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#49 def add_offense_for_misalignment(node, align_with); end # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#19 @@ -5687,21 +5832,21 @@ module RuboCop::Cop::EndKeywordAlignment # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#75 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#69 def line_break_before_keyword?(whole_expression, rhs); end - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#35 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#34 def matching_ranges(end_loc, align_ranges); end - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#41 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#40 def start_line_range(node); end - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#65 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#59 def style_parameter_name; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#69 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#63 def variable_alignment?(whole_expression, rhs, end_alignment_style); end end @@ -5762,7 +5907,7 @@ class RuboCop::Cop::ForToEachCorrector private - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#57 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#62 def collection_end; end # Returns the value of attribute collection_node. @@ -5770,13 +5915,13 @@ class RuboCop::Cop::ForToEachCorrector # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25 def collection_node; end - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#31 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#36 def collection_source; end # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#27 def correction; end - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#45 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#50 def end_range; end # Returns the value of attribute for_node. @@ -5784,12 +5929,12 @@ class RuboCop::Cop::ForToEachCorrector # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25 def for_node; end - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#53 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#58 def keyword_begin; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#39 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#44 def requires_parentheses?; end # Returns the value of attribute variable_node. @@ -5891,7 +6036,7 @@ end module RuboCop::Cop::FrozenStringLiteral private - # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#36 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#41 def frozen_heredoc?(node); end # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#20 @@ -5977,6 +6122,76 @@ RuboCop::Cop::Gemspec::AddRuntimeDependency::MSG = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/cop/gemspec/add_runtime_dependency.rb#26 RuboCop::Cop::Gemspec::AddRuntimeDependency::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Use consistent style for Gemspec attributes assignment. +# +# @example +# +# # bad +# # This example uses two styles for assignment of metadata attribute. +# Gem::Specification.new do |spec| +# spec.metadata = { 'key' => 'value' } +# spec.metadata['another-key'] = 'another-value' +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.metadata['key'] = 'value' +# spec.metadata['another-key'] = 'another-value' +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.metadata = { 'key' => 'value', 'another-key' => 'another-value' } +# end +# +# # bad +# # This example uses two styles for assignment of authors attribute. +# Gem::Specification.new do |spec| +# spec.authors = %w[author-0 author-1] +# spec.authors[2] = 'author-2' +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.authors = %w[author-0 author-1 author-2] +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.authors[0] = 'author-0' +# spec.authors[1] = 'author-1' +# spec.authors[2] = 'author-2' +# end +# +# # good +# # This example uses consistent assignment per attribute, +# # even though two different styles are used overall. +# Gem::Specification.new do |spec| +# spec.metadata = { 'key' => 'value' } +# spec.authors[0] = 'author-0' +# spec.authors[1] = 'author-1' +# spec.authors[2] = 'author-2' +# end +# +# source://rubocop//lib/rubocop/cop/gemspec/attribute_assignment.rb#57 +class RuboCop::Cop::Gemspec::AttributeAssignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::GemspecHelp + + # source://rubocop//lib/rubocop/cop/gemspec/attribute_assignment.rb#62 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/gemspec/attribute_assignment.rb#77 + def source_assignments(ast); end + + # source://rubocop//lib/rubocop/cop/gemspec/attribute_assignment.rb#84 + def source_indexed_assignments(ast); end +end + +# source://rubocop//lib/rubocop/cop/gemspec/attribute_assignment.rb#60 +RuboCop::Cop::Gemspec::AttributeAssignment::MSG = T.let(T.unsafe(nil), String) + # Enforce that gem dependency version specifications or a commit reference (branch, # ref, or tag) are either required or forbidden. # @@ -6254,10 +6469,11 @@ RuboCop::Cop::Gemspec::DevelopmentDependencies::RESTRICT_ON_SEND = T.let(T.unsaf # An attribute assignment method calls should be listed only once # in a gemspec. # -# Assigning to an attribute with the same name using `spec.foo =` will be -# an unintended usage. On the other hand, duplication of methods such -# as `spec.requirements`, `spec.add_runtime_dependency`, and others are -# permitted because it is the intended use of appending values. +# Assigning to an attribute with the same name using `spec.foo =` or +# `spec.attribute#[]=` will be an unintended usage. On the other hand, +# duplication of methods such # as `spec.requirements`, +# `spec.add_runtime_dependency`, and others are permitted because it is +# the intended use of appending values. # # @example # # bad @@ -6283,32 +6499,44 @@ RuboCop::Cop::Gemspec::DevelopmentDependencies::RESTRICT_ON_SEND = T.let(T.unsaf # spec.add_dependency('parser', '>= 2.3.3.1', '< 3.0') # end # -# source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#37 +# # bad +# Gem::Specification.new do |spec| +# spec.metadata["key"] = "value" +# spec.metadata["key"] = "value" +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.metadata["key"] = "value" +# end +# +# source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#50 class RuboCop::Cop::Gemspec::DuplicatedAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::GemspecHelp - # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#45 - def assignment_method_declarations(param0); end - - # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#50 + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#57 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#68 + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#83 def duplicated_assignment_method_nodes; end - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#62 - def match_block_variable_name?(receiver_name); end + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#91 + def duplicated_indexed_assignment_method_nodes; end - # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#76 + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#66 + def process_assignment_method_nodes; end + + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#74 + def process_indexed_assignment_method_nodes; end + + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#98 def register_offense(node, assignment, line_of_first_occurrence); end end -# source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#41 +# source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#54 RuboCop::Cop::Gemspec::DuplicatedAssignment::MSG = T.let(T.unsafe(nil), String) # Dependencies in the gemspec should be alphabetically sorted. @@ -6453,30 +6681,33 @@ class RuboCop::Cop::Gemspec::RequireMFA < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#70 def metadata(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#87 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#78 + def metadata_assignment(param0); end + + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#95 def on_block(node); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#78 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#86 def rubygems_mfa_required(param0); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#83 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#91 def true_string?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#115 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#123 def autocorrect(corrector, node, block_var, metadata); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#139 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#153 def change_value(corrector, value); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#125 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#133 def correct_metadata(corrector, metadata); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#133 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#141 def insert_mfa_required(corrector, node, block_var); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#108 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#116 def mfa_value(metadata_value); end end @@ -6619,11 +6850,22 @@ RuboCop::Cop::Gemspec::RubyVersionGlobalsUsage::MSG = T.let(T.unsafe(nil), Strin module RuboCop::Cop::GemspecHelp extend ::RuboCop::AST::NodePattern::Macros + # source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#30 + def assignment_method_declarations(param0); end + # source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#20 def gem_specification(param0); end # source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#10 def gem_specification?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#36 + def indexed_assignment_method_declarations(param0); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#45 + def match_block_variable_name?(receiver_name); end end # Source and spec generator for new cops @@ -7069,22 +7311,35 @@ class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct # Returns the value of attribute node # # @return [Object] the current value of node + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14 def node; end # Sets the attribute node # # @param value [Object] the value to set the attribute node to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14 def node=(_); end # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#15 def selector; end class << self + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14 def inspect; end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14 def keyword_init?; end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14 def members; end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14 def new(*_arg0); end end end @@ -7107,7 +7362,7 @@ module RuboCop::Cop::HashSubset # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#21 def block_with_first_arg_check?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#36 + # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#47 def on_csend(node); end # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#36 @@ -7283,34 +7538,46 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # Returns the value of attribute block_node # # @return [Object] the current value of block_node + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 def block_node; end # Sets the attribute block_node # # @param value [Object] the value to set the attribute block_node to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 def block_node=(_); end # Returns the value of attribute leading # # @return [Object] the current value of leading + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 def leading; end # Sets the attribute leading # # @param value [Object] the value to set the attribute leading to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 def leading=(_); end # Returns the value of attribute match # # @return [Object] the current value of match + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 def match; end # Sets the attribute match # # @param value [Object] the value to set the attribute match to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 def match=(_); end # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#72 @@ -7328,15 +7595,20 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # Returns the value of attribute trailing # # @return [Object] the current value of trailing + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 def trailing; end # Sets the attribute trailing # # @param value [Object] the value to set the attribute trailing to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 def trailing=(_); end class << self + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 def [](*_arg0); end # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#32 @@ -7351,9 +7623,16 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#52 def from_to_h(node, match); end + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 def inspect; end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 def keyword_init?; end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 def members; end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31 def new(*_arg0); end end end @@ -7375,34 +7654,46 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct # Returns the value of attribute transformed_argname # # @return [Object] the current value of transformed_argname + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 def transformed_argname; end # Sets the attribute transformed_argname # # @param value [Object] the value to set the attribute transformed_argname to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 def transformed_argname=(_); end # Returns the value of attribute transforming_body_expr # # @return [Object] the current value of transforming_body_expr + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 def transforming_body_expr; end # Sets the attribute transforming_body_expr # # @param value [Object] the value to set the attribute transforming_body_expr to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 def transforming_body_expr=(_); end # Returns the value of attribute unchanged_body_expr # # @return [Object] the current value of unchanged_body_expr + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 def unchanged_body_expr; end # Sets the attribute unchanged_body_expr # # @param value [Object] the value to set the attribute unchanged_body_expr to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 def unchanged_body_expr=(_); end # @return [Boolean] @@ -7411,10 +7702,19 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct def use_transformed_argname?; end class << self + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 def inspect; end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 def keyword_init?; end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 def members; end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 def new(*_arg0); end end end @@ -7426,7 +7726,7 @@ RuboCop::Cop::HashTransformMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#6 module RuboCop::Cop::Heredoc - # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9 + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#14 def on_dstr(node); end # @raise [NotImplementedError] @@ -7437,7 +7737,7 @@ module RuboCop::Cop::Heredoc # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9 def on_str(node); end - # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9 + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#15 def on_xstr(node); end private @@ -7544,16 +7844,16 @@ module RuboCop::Cop::Interpolation # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 def on_dstr(node); end - # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 + # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#14 def on_dsym(node); end # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#17 def on_node_with_interpolations(node); end - # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 + # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#15 def on_regexp(node); end - # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 + # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#13 def on_xstr(node); end end @@ -7683,16 +7983,16 @@ class RuboCop::Cop::Layout::AccessModifierIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#50 def on_block(node); end # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 def on_class(node); end - # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#49 def on_module(node); end - # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#48 def on_sclass(node); end private @@ -7766,7 +8066,7 @@ class RuboCop::Cop::Layout::ArgumentAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#54 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#63 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#54 @@ -8060,10 +8360,10 @@ class RuboCop::Cop::Layout::BlockAlignment < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#84 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#84 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#89 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#84 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#88 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#91 @@ -8163,10 +8463,10 @@ class RuboCop::Cop::Layout::BlockEndNewline < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#33 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#33 + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#46 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#33 + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#45 def on_numblock(node); end private @@ -8366,6 +8666,11 @@ RuboCop::Cop::Layout::CaseIndentation::MSG = T.let(T.unsafe(nil), String) # * Private attribute macros (`attr_accessor`, `attr_writer`, `attr_reader`) # * Private instance methods # +# NOTE: Simply enabling the cop with `Enabled: true` will not use +# the example order shown below. +# To enforce the order of macros like `attr_reader`, +# you must define both `ExpectedOrder` *and* `Categories`. +# # You can configure the following order: # # [source,yaml] @@ -8412,6 +8717,36 @@ RuboCop::Cop::Layout::CaseIndentation::MSG = T.let(T.unsafe(nil), String) # - extend # ---- # +# If you only set `ExpectedOrder` +# without defining `Categories`, +# macros such as `attr_reader` or `has_many` +# will not be recognized as part of a category, and their order will not be validated. +# For example, the following will NOT raise any offenses, even if the order is incorrect: +# +# [source,yaml] +# ---- +# Layout/ClassStructure: +# Enabled: true +# ExpectedOrder: +# - public_attribute_macros +# - initializer +# ---- +# +# To make it work as expected, you must also specify `Categories` like this: +# +# [source,yaml] +# ---- +# Layout/ClassStructure: +# ExpectedOrder: +# - public_attribute_macros +# - initializer +# Categories: +# attribute_macros: +# - attr_reader +# - attr_writer +# - attr_accessor +# ---- +# # @example # # bad # # Expect extend be before constant @@ -8476,7 +8811,7 @@ RuboCop::Cop::Layout::CaseIndentation::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#142 +# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#177 class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Base include ::RuboCop::Cop::VisibilityHelp include ::RuboCop::Cop::CommentsHelp @@ -8485,35 +8820,35 @@ class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Base # Validates code style on class declaration. # Add offense when find a node out of expected order. # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#158 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#193 def on_class(class_node); end # Validates code style on class declaration. # Add offense when find a node out of expected order. # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#158 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#204 def on_sclass(class_node); end private # Autocorrect by swapping between two nodes autocorrecting them # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#174 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#209 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#305 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#340 def begin_pos_with_comment(node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#328 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#363 def buffer; end # Setting categories hash allow you to group methods in group to match # in the {expected_order}. # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#340 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#375 def categories; end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#234 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#269 def class_elements(class_node); end # Classifies a node to match with something in the {expected_order} @@ -8525,21 +8860,21 @@ class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Base # by method name # @return String otherwise trying to {humanize_node} of the current node # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#194 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#229 def classify(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#271 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#306 def dynamic_constant?(node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#295 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#330 def end_position_for(node); end # Load expected order from `ExpectedOrder` config. # Define new terms in the expected order by adding new {categories}. # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#334 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#369 def expected_order; end # Categorize a node according to the {expected_order} @@ -8549,51 +8884,51 @@ class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Base # @param node to be analysed. # @return [String] with the key category or the `method_name` as string # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#212 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#247 def find_category(node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#324 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#359 def find_heredoc(node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#262 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#297 def humanize_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#246 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#281 def ignore?(node, classification); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#253 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#288 def ignore_for_autocorrect?(node, sibling); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#289 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#324 def marked_as_private_constant?(node, name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#279 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#314 def private_constant?(node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#320 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#355 def start_line_position(node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#225 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#260 def walk_over_nested_class_definition(class_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#316 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#351 def whole_line_comment_at_line?(line); end end -# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#147 +# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#182 RuboCop::Cop::Layout::ClassStructure::HUMANIZED_NODE_TYPE = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#154 +# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#189 RuboCop::Cop::Layout::ClassStructure::MSG = T.let(T.unsafe(nil), String) # Checks the indentation of here document closings. @@ -8759,13 +9094,13 @@ class RuboCop::Cop::Layout::ClosingParenthesisIndentation < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#84 def on_begin(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#79 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#82 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#88 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#88 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#91 def on_defs(node); end # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#79 @@ -8949,7 +9284,7 @@ class RuboCop::Cop::Layout::ConditionPosition < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#27 def on_if(node); end - # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#33 + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#36 def on_until(node); end # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#33 @@ -9007,7 +9342,7 @@ class RuboCop::Cop::Layout::DefEndAlignment < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#43 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#43 + # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#46 def on_defs(node); end # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#48 @@ -9047,7 +9382,7 @@ class RuboCop::Cop::Layout::DotPosition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#34 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#45 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#34 @@ -9538,10 +9873,10 @@ class RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition < ::RuboCop::Cop::B # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#93 def on_rescue(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#70 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#73 def on_until(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#75 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#80 def on_until_post(node); end # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#70 @@ -9827,6 +10162,81 @@ RuboCop::Cop::Layout::EmptyLines::LINE_OFFSET = T.let(T.unsafe(nil), Integer) # source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#25 RuboCop::Cop::Layout::EmptyLines::MSG = T.let(T.unsafe(nil), String) +# Checks for an empty line after a module inclusion method (`extend`, +# `include` and `prepend`), or a group of them. +# +# @example +# # bad +# class Foo +# include Bar +# attr_reader :baz +# end +# +# # good +# class Foo +# include Bar +# +# attr_reader :baz +# end +# +# # also good - multiple module inclusions grouped together +# class Foo +# extend Bar +# include Baz +# prepend Qux +# end +# +# source://rubocop//lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb#30 +class RuboCop::Cop::Layout::EmptyLinesAfterModuleInclusion < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb#40 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb#85 + def allowed_method?(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb#54 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb#69 + def enable_directive_comment?(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb#75 + def line_empty?(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb#65 + def next_line_empty_or_enable_directive_comment?(line); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb#93 + def next_line_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb#79 + def require_empty_line?(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb#36 +RuboCop::Cop::Layout::EmptyLinesAfterModuleInclusion::MODULE_INCLUSION_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb#34 +RuboCop::Cop::Layout::EmptyLinesAfterModuleInclusion::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb#38 +RuboCop::Cop::Layout::EmptyLinesAfterModuleInclusion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Access modifiers should be surrounded by blank lines. # # @example EnforcedStyle: around (default) @@ -9880,13 +10290,13 @@ class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Bas # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#62 def on_class(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#81 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#86 def on_itblock(node); end # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#71 def on_module(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#81 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#85 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#76 @@ -9904,17 +10314,17 @@ class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Bas # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#167 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#171 def block_start?(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#173 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#177 def body_end?(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#161 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#165 def class_def?(line); end # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#125 @@ -9922,7 +10332,7 @@ class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Bas # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#157 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#161 def empty_lines_around?(node); end # @return [Boolean] @@ -9932,19 +10342,19 @@ class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Bas # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#226 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#230 def inside_block?(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#183 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#187 def message(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#192 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#196 def message_for_around_style(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#202 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#206 def message_for_only_before_style(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#179 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#183 def next_empty_line_range(node); end # @return [Boolean] @@ -9954,7 +10364,12 @@ class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Bas # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#230 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#157 + def next_line_empty_and_exists?(last_send_line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#234 def no_empty_lines_around_block_body?; end # @return [Boolean] @@ -9967,12 +10382,12 @@ class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Bas # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#220 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#224 def should_insert_line_after?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#212 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#216 def should_insert_line_before?(node); end end @@ -10031,7 +10446,7 @@ class RuboCop::Cop::Layout::EmptyLinesAroundArguments < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#47 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#57 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#47 @@ -10039,23 +10454,13 @@ class RuboCop::Cop::Layout::EmptyLinesAroundArguments < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#65 - def empty_lines(node); end - - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#71 - def extra_lines(node); end - - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#93 - def inner_lines(node); end - - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#84 - def line_numbers(node); end - - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#97 - def outer_lines(node); end + # @yield [range.source_buffer.line_range(range.last_line - 1).adjust(end_pos: 1)] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#73 + def empty_range_for_starting_point(start); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#78 - def processed_lines(node); end + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#65 + def extra_lines(node, &block); end # @return [Boolean] # @@ -10240,10 +10645,10 @@ class RuboCop::Cop::Layout::EmptyLinesAroundBlockBody < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#37 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#36 def on_numblock(node); end end @@ -10468,19 +10873,19 @@ class RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords < ::RuboCo include ::RuboCop::Cop::Layout::EmptyLinesAroundBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#71 def on_block(node); end # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#70 def on_defs(node); end # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#74 def on_kwbegin(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#72 def on_numblock(node); end private @@ -10540,7 +10945,7 @@ class RuboCop::Cop::Layout::EmptyLinesAroundMethodBody < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#29 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#29 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#39 def on_defs(node); end private @@ -10694,7 +11099,7 @@ class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#111 def on_case(node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#111 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#118 def on_case_match(node); end # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#83 @@ -11051,13 +11456,13 @@ class RuboCop::Cop::Layout::FirstArgumentIndentation < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#222 def eligible_method_call?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#165 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155 def on_send(node); end - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#166 def on_super(node); end private @@ -11207,7 +11612,7 @@ class RuboCop::Cop::Layout::FirstArrayElementIndentation < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#91 def on_array(node); end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#97 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#104 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#97 @@ -11418,7 +11823,7 @@ class RuboCop::Cop::Layout::FirstHashElementIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::MultilineElementIndentation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#126 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#133 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#122 @@ -11595,13 +12000,13 @@ class RuboCop::Cop::Layout::FirstMethodArgumentLineBreak < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#78 + # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#94 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#78 def on_send(node); end - # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#78 + # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#95 def on_super(node); end private @@ -11671,7 +12076,7 @@ class RuboCop::Cop::Layout::FirstMethodParameterLineBreak < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#62 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#62 + # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#65 def on_defs(node); end private @@ -11732,7 +12137,7 @@ class RuboCop::Cop::Layout::FirstParameterIndentation < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#53 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#53 + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#59 def on_defs(node); end private @@ -11951,7 +12356,7 @@ class RuboCop::Cop::Layout::HashAlignment < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#219 def offenses_by=(_arg0); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#205 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#209 @@ -11960,10 +12365,10 @@ class RuboCop::Cop::Layout::HashAlignment < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195 def on_send(node); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#206 def on_super(node); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#207 def on_yield(node); end private @@ -12099,7 +12504,7 @@ class RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis < ::RuboCop::Cop:: include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#64 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#78 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#64 @@ -12633,34 +13038,34 @@ class RuboCop::Cop::Layout::IndentationWidth < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#96 def on_class(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#105 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#120 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#122 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#122 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#127 def on_defs(node); end # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#69 def on_ensure(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#64 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#67 def on_for(node); end # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#157 def on_if(node, base = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#81 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#94 def on_itblock(node); end # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#73 def on_kwbegin(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#96 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#103 def on_module(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#81 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#93 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#64 @@ -12669,13 +13074,13 @@ class RuboCop::Cop::Layout::IndentationWidth < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#60 def on_rescue(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#96 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#102 def on_sclass(node); end # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#105 def on_send(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#129 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#137 def on_until(node, base = T.unsafe(nil)); end # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#129 @@ -13385,46 +13790,46 @@ class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Base include ::RuboCop::Cop::LineLengthHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#70 def max=(value); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#91 def on_array(node); end # source://rubocop//lib/rubocop/cop/layout/line_length.rb#74 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#94 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#95 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#96 def on_defs(node); end # source://rubocop//lib/rubocop/cop/layout/line_length.rb#84 def on_dstr(node); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#92 def on_hash(node); end # source://rubocop//lib/rubocop/cop/layout/line_length.rb#104 def on_investigation_end; end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#74 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#78 def on_itblock(node); end # source://rubocop//lib/rubocop/cop/layout/line_length.rb#98 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#74 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#77 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88 def on_potential_breakable_node(node); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#93 def on_send(node); end # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 @@ -13442,6 +13847,11 @@ class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/line_length.rb#317 def allow_string_split?; end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#377 + def allowed_combination?(line, uri_range, qualified_name_range); end + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#313 def allowed_heredoc; end @@ -13455,7 +13865,7 @@ class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#368 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#389 def breakable_dstr?(node); end # source://rubocop//lib/rubocop/cop/layout/line_length.rb#230 @@ -13520,7 +13930,7 @@ class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Base def check_line(line, line_index); end # source://rubocop//lib/rubocop/cop/layout/line_length.rb#361 - def check_uri_line(line, line_index); end + def check_line_for_exemptions(line, line_index); end # source://rubocop//lib/rubocop/cop/layout/line_length.rb#294 def excess_range(uri_range, line, line_index); end @@ -13536,7 +13946,7 @@ class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Base # Find the largest possible substring of a string node to retain before a break # - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#384 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#405 def largest_possible_string(node); end # @return [Boolean] @@ -13552,6 +13962,9 @@ class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/line_length.rb#305 def max; end + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#371 + def range_if_applicable(line, type); end + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#276 def register_offense(loc, line, line_index, length: T.unsafe(nil)); end @@ -13560,7 +13973,7 @@ class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/line_length.rb#272 def shebang?(line, line_index); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#373 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#394 def string_delimiter(node); end end @@ -13867,10 +14280,10 @@ class RuboCop::Cop::Layout::MultilineBlockLayout < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#59 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#59 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#72 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#59 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#71 def on_numblock(node); end private @@ -14166,7 +14579,7 @@ class RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks < ::RuboCop::Cop:: include ::RuboCop::Cop::MultilineElementLineBreaks extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#86 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#102 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#86 @@ -14273,7 +14686,7 @@ class RuboCop::Cop::Layout::MultilineMethodCallBraceLayout < ::RuboCop::Cop::Bas include ::RuboCop::Cop::MultilineLiteralBraceLayout extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#109 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#112 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#109 @@ -14552,7 +14965,7 @@ class RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout < ::RuboCop::Co # source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#121 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#121 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#124 def on_defs(node); end end @@ -14625,7 +15038,7 @@ class RuboCop::Cop::Layout::MultilineMethodParameterLineBreaks < ::RuboCop::Cop: # source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#63 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#63 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#68 def on_defs(node); end private @@ -14646,6 +15059,8 @@ RuboCop::Cop::Layout::MultilineMethodParameterLineBreaks::MSG = T.let(T.unsafe(n # condition, an explicit `return` statement, etc. In other contexts, the second operand should # be indented regardless of enforced style. # +# In both styles, operators should be aligned when an assignment begins on the next line. +# # @example EnforcedStyle: aligned (default) # # bad # if a + @@ -14675,49 +15090,49 @@ RuboCop::Cop::Layout::MultilineMethodParameterLineBreaks::MSG = T.let(T.unsafe(n # something_else # end # -# source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#43 +# source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#45 class RuboCop::Cop::Layout::MultilineOperationIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::MultilineExpressionIndentation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#49 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#51 def on_and(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#53 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#55 def on_or(node); end # @raise [ValidationError] # - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#57 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#59 def validate_config; end private - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#68 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#70 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#78 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#80 def check_and_or(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#109 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#111 def message(node, lhs, rhs); end - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#83 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#85 def offending_range(node, lhs, rhs, given_style); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#72 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#74 def relevant_node?(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#120 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#122 def right_hand_side(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#96 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#98 def should_align?(node, rhs, given_style); end end @@ -14793,7 +15208,7 @@ class RuboCop::Cop::Layout::ParameterAlignment < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#80 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#80 + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#85 def on_defs(node); end private @@ -14869,7 +15284,7 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckSingleLineSuitability extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#60 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#70 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#56 @@ -15055,7 +15470,7 @@ class RuboCop::Cop::Layout::SingleLineBlockChain < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#32 + # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#36 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#32 @@ -15169,7 +15584,7 @@ class RuboCop::Cop::Layout::SpaceAfterMethodName < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#23 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#23 + # source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#35 def on_defs(node); end end @@ -15392,6 +15807,8 @@ RuboCop::Cop::Layout::SpaceAroundEqualsInParameterDefault::MSG = T.let(T.unsafe( # # something = 123if test # +# return(foo + bar) +# # # good # something 'test' do |x| # end @@ -15401,193 +15818,195 @@ RuboCop::Cop::Layout::SpaceAroundEqualsInParameterDefault::MSG = T.let(T.unsafe( # # something = 123 if test # -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#27 +# return (foo + bar) +# +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#32 class RuboCop::Cop::Layout::SpaceAroundKeyword < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#41 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#46 def on_and(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#45 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#50 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#49 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#54 def on_break(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#53 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#58 def on_case(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#57 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#62 def on_case_match(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#157 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#162 def on_defined?(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#61 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#66 def on_ensure(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#65 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#70 def on_for(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#69 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#74 def on_if(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#73 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#78 def on_if_guard(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#77 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#82 def on_in_pattern(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#81 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#86 def on_kwbegin(node); end # Handle one-line pattern matching syntax (`in`) with `Parser::Ruby27`. # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#86 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#91 def on_match_pattern(node); end # Handle one-line pattern matching syntax (`in`) with `Parser::Ruby30`. # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#93 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#98 def on_match_pattern_p(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#97 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#102 def on_next(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#101 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#106 def on_or(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#105 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#110 def on_postexe(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#109 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#114 def on_preexe(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#113 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#118 def on_resbody(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#117 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#122 def on_rescue(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#121 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#126 def on_return(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#125 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#130 def on_send(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#129 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#134 def on_super(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#137 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#142 def on_unless_guard(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#141 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#146 def on_until(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#145 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#150 def on_when(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#149 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#154 def on_while(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#153 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#158 def on_yield(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#133 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#138 def on_zsuper(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#236 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#241 def accept_left_parenthesis?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#240 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#245 def accept_left_square_bracket?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#244 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#249 def accept_namespace_operator?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#229 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#234 def accepted_opening_delimiter?(range, char); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#163 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#168 def check(node, locations, begin_keyword = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#178 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#183 def check_begin(node, range, begin_keyword); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#184 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#189 def check_end(node, range, begin_keyword); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#197 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#202 def check_keyword(node, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#193 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#198 def do?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#252 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#257 def namespace_operator?(range, pos); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#256 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#261 def preceded_by_operator?(node, _range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#248 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#253 def safe_navigation_call?(range, pos); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#218 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#223 def space_after_missing?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#211 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#216 def space_before_missing?(range); end end -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#36 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#41 RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_LEFT_PAREN = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#37 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#42 RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_LEFT_SQUARE_BRACKET = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#38 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#43 RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_NAMESPACE_OPERATOR = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#33 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#38 RuboCop::Cop::Layout::SpaceAroundKeyword::DO = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#31 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#36 RuboCop::Cop::Layout::SpaceAroundKeyword::MSG_AFTER = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#30 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#35 RuboCop::Cop::Layout::SpaceAroundKeyword::MSG_BEFORE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#35 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#40 RuboCop::Cop::Layout::SpaceAroundKeyword::NAMESPACE_OPERATOR = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#39 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#44 RuboCop::Cop::Layout::SpaceAroundKeyword::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#34 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#39 RuboCop::Cop::Layout::SpaceAroundKeyword::SAFE_NAVIGATION = T.let(T.unsafe(nil), String) # Checks method call operators to not have spaces around them. @@ -15629,7 +16048,7 @@ class RuboCop::Cop::Layout::SpaceAroundMethodCallOperator < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#53 def on_const(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#45 + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#51 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#45 @@ -15719,10 +16138,10 @@ class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Base include ::RuboCop::Cop::RationalLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#132 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#163 def on_and(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#171 def on_and_asgn(node); end # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115 @@ -15731,40 +16150,46 @@ class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#132 def on_binary(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#165 def on_casgn(node); end # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#124 def on_class(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#168 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#169 def on_gvasgn(node); end # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#92 def on_if(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#167 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#164 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#166 def on_masgn(node); end + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#154 + def on_match_alt(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#158 + def on_match_as(node); end + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#148 def on_match_pattern(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#172 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#132 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#162 def on_or(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#170 def on_or_asgn(node); end # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#84 @@ -15784,69 +16209,69 @@ class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#258 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#266 def align_hash_cop_config; end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#197 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#205 def autocorrect(corrector, range, right_operand); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#178 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#186 def check_operator(type, operator, right_operand); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#211 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#219 def enclose_operator_with_space(corrector, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#238 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#246 def excess_leading_space?(type, operator, with_space); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#253 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#261 def excess_trailing_space?(right_operand, with_space); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#279 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#287 def force_equal_sign_alignment?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#262 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#270 def hash_table_style?; end # @yield [msg] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#192 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#200 def offense(type, operator, with_space, right_operand); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#224 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#232 def offense_message(type, operator, with_space, right_operand); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#174 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#182 def operator_with_regular_syntax?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#168 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#176 def regular_operator?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#283 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#291 def should_not_have_surrounding_space?(operator, right_operand); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#269 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#277 def space_around_exponent_operator?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#273 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#281 def space_around_slash_operator?(right_operand); end class << self @@ -15906,10 +16331,10 @@ class RuboCop::Cop::Layout::SpaceBeforeBlockBraces < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#56 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#56 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#80 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#56 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#79 def on_numblock(node); end private @@ -15978,27 +16403,6 @@ class RuboCop::Cop::Layout::SpaceBeforeBrackets < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#24 def on_send(node); end - - private - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#48 - def dot_before_brackets?(node, receiver_end_pos, selector_begin_pos); end - - # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#35 - def offense_range(node, begin_pos); end - - # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#54 - def offense_range_for_assignment(node, begin_pos); end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#67 - def reference_variable_with_brackets?(node); end - - # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#63 - def register_offense(range); end end # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#21 @@ -16075,7 +16479,7 @@ class RuboCop::Cop::Layout::SpaceBeforeFirstArg < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#35 + # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#47 def on_csend(node); end # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#35 @@ -16257,69 +16661,72 @@ class RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets < ::RuboCop::Cop::Ba # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#86 def on_array(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#86 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#102 def on_array_pattern(node); end private - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#118 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#124 def array_brackets(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#104 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#110 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#226 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#232 def compact(corrector, bracket, side); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#212 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#218 def compact_corrections(corrector, node, left, right); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#204 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#210 def compact_offense(node, token, side: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#166 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#172 def compact_offenses(node, left, right, start_ok, end_ok); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#127 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#133 def empty_config; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#135 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#141 def end_has_own_line?(token); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#142 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#106 + def find_node_with_brackets(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#148 def index_for(node, token); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#150 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#156 def issue_offenses(node, left, right, start_ok, end_ok); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#146 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#152 def line_and_column_for(token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#187 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#193 def multi_dimensional_array?(node, token, side: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#198 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#204 def next_to_bracket?(token, side: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#162 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#168 def next_to_comment?(node, token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#131 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#137 def next_to_newline?(node, token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#179 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#185 def qualifies_for_compact?(node, token, side: T.unsafe(nil)); end end @@ -16443,10 +16850,10 @@ class RuboCop::Cop::Layout::SpaceInsideBlockBraces < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#89 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#89 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#106 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#89 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#105 def on_numblock(node); end private @@ -16587,7 +16994,7 @@ class RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#84 def on_hash(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#84 + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#92 def on_hash_pattern(node); end private @@ -17216,6 +17623,11 @@ module RuboCop::Cop::LineLengthHelp private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#28 + def allow_qualified_name?; end + # @return [Boolean] # # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#24 @@ -17223,46 +17635,52 @@ module RuboCop::Cop::LineLengthHelp # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#28 - def allowed_uri_position?(line, uri_range); end + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#32 + def allowed_position?(line, range); end # @return [Boolean] # # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#15 def directive_on_source_line?(line_index); end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#73 - def extend_uri_end_position(line, end_position); end + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#85 + def extend_end_position(line, end_position); end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#36 - def find_excessive_uri_range(line); end + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#40 + def find_excessive_range(line, type); end # @return [Boolean] # # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#11 def ignore_cop_directives?; end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#60 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#72 def indentation_difference(line); end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#32 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#36 def line_length(line); end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#111 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#127 def line_length_without_directive(line); end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#52 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#64 + def match_qualified_names(string); end + + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#56 def match_uris(string); end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#89 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#116 + def qualified_name_regexp; end + + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#101 def tab_indentation_width; end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#94 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#106 def uri_regexp; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#104 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#120 def valid_uri?(uri_ish_string); end end @@ -17291,19 +17709,19 @@ class RuboCop::Cop::Lint::AmbiguousAssignment < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 def on_asgn(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#40 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#40 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#40 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#40 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#40 def on_lvasgn(node); end private @@ -17369,7 +17787,7 @@ class RuboCop::Cop::Lint::AmbiguousBlockAssociation < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#62 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#75 def on_csend(node); end # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#62 @@ -17541,7 +17959,9 @@ RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::RESTRICT_ON_SEND = T.let(T.unsa # @example # # bad # x || 1..2 +# x - 1..2 # (x || 1..2) +# x || 1..y || 2 # 1..2.to_a # # # good, unambiguous @@ -17555,6 +17975,7 @@ RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::RESTRICT_ON_SEND = T.let(T.unsa # # # good, ambiguity removed # x || (1..2) +# (x - 1)..2 # (x || 1)..2 # (x || 1)..(y || 2) # (1..2).to_a @@ -17569,41 +17990,41 @@ RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::RESTRICT_ON_SEND = T.let(T.unsa # # good # (a.foo)..(b.bar) # -# source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#59 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#62 class RuboCop::Cop::Lint::AmbiguousRange < ::RuboCop::Cop::Base include ::RuboCop::Cop::RationalLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#65 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#77 def on_erange(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#65 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#68 def on_irange(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#84 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#87 def acceptable?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#92 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#95 def acceptable_call?(node); end # @yield [range.begin] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#78 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#81 def each_boundary(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#102 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#107 def require_parentheses_for_method_chain?; end end -# source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#63 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#66 RuboCop::Cop::Lint::AmbiguousRange::MSG = T.let(T.unsafe(nil), String) # Checks for ambiguous regexp literals in the first argument of @@ -17768,16 +18189,13 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::SafeAssignment extend ::RuboCop::Cop::AutoCorrector - # source://standard/1.49.0/lib/standard/rubocop/ext.rb#4 - def message(_); end - # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 def on_if(node); end - # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#68 def on_until(node); end - # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#67 def on_while(node); end private @@ -17792,6 +18210,9 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#84 def conditional_assignment?(asgn_node); end + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#72 + def message(_node); end + # @return [Boolean] # # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#88 @@ -17872,7 +18293,7 @@ class RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands < ::RuboCop::Cop:: # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#57 def on_and(node); end - # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#57 + # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#62 def on_or(node); end # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#50 @@ -18046,7 +18467,7 @@ class RuboCop::Cop::Lint::ConstantDefinitionInBlock < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#85 def on_class(node); end - # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#85 + # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#90 def on_module(node); end private @@ -18808,16 +19229,16 @@ class RuboCop::Cop::Lint::DuplicateBranch < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102 def on_branching_statement(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#110 def on_case(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#111 def on_case_match(node); end # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#114 def on_if(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#112 def on_rescue(node); end private @@ -19093,6 +19514,10 @@ RuboCop::Cop::Lint::DuplicateMatchPattern::MSG = T.let(T.unsafe(nil), String) # Checks for duplicated instance (or singleton) method # definitions. # +# NOTE: Aliasing a method to itself is allowed, as it indicates that +# the developer intends to suppress Ruby's method redefinition warnings. +# See https://bugs.ruby-lang.org/issues/13574. +# # @example # # # bad @@ -19127,80 +19552,143 @@ RuboCop::Cop::Lint::DuplicateMatchPattern::MSG = T.let(T.unsafe(nil), String) # # alias bar foo # -# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#42 +# # good +# alias foo foo +# def foo +# 1 +# end +# +# # good +# alias_method :foo, :foo +# def foo +# 1 +# end +# @example AllCops:ActiveSupportExtensionsEnabled: false (default) +# +# # good +# def foo +# 1 +# end +# +# delegate :foo, to: :bar +# @example AllCops:ActiveSupportExtensionsEnabled: true +# +# # bad +# def foo +# 1 +# end +# +# delegate :foo, to: :bar +# +# # good +# def foo +# 1 +# end +# +# delegate :baz, to: :bar +# +# # good - delegate with splat arguments is ignored +# def foo +# 1 +# end +# +# delegate :foo, **options +# +# # good - delegate inside a condition is ignored +# def foo +# 1 +# end +# +# if cond +# delegate :foo, to: :bar +# end +# +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#100 class RuboCop::Cop::Lint::DuplicateMethods < ::RuboCop::Cop::Base # @return [DuplicateMethods] a new instance of DuplicateMethods # - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#46 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#105 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#84 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#145 def alias_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#72 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#150 + def delegate_method?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#131 def method_alias?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#76 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#135 def on_alias(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#52 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#111 def on_def(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#60 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#119 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#90 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#160 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#89 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#158 def sym_name(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#102 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#179 def check_const_receiver(node, name, const_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#109 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#186 def check_self_receiver(node, name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#193 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#208 + def delegate_prefix(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#296 def found_attr(node, args, readable: T.unsafe(nil), writable: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#121 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#224 def found_instance_method(node, name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#144 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#247 def found_method(node, method_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#134 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#237 def found_sclass_method(node, name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#171 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#220 + def hash_value(node, key); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#274 def location(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#203 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#306 def lookup_constant(node, const_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#116 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#193 def message_for_dup(node, method_name, key); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#163 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#266 def method_key(node, method_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#179 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#282 def on_attr(node, attr_name, args); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#221 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#198 + def on_delegate(node, method_names); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#324 def qualified_name(enclosing, namespace, mod_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#235 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#338 def source_location(node); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#43 +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#101 RuboCop::Cop::Lint::DuplicateMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#44 +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#102 RuboCop::Cop::Lint::DuplicateMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for duplicate elements in `Regexp` character classes. @@ -19224,57 +19712,38 @@ class RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement < ::RuboCop::Cop: include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#37 + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#35 def each_repeated_character_class_element_loc(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#29 + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#27 def on_regexp(node); end private - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#102 - def escaped_octal?(string); end - - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#54 + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#52 def group_expressions(node, expressions); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#110 + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#73 def interpolation_locs(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#106 - def octal?(char); end - - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#71 - def pop_octal_digits(current_child, expressions); end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#89 + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#60 def skip_expression?(expr); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#80 - def source_range(children); end - # Since we blank interpolations with a space for every char of the interpolation, we would # mark every space (except the first) as duplicate if we do not skip regexp_parser nodes # that are within an interpolation. # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#96 + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#67 def within_interpolation?(node, child); end end # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#25 RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement::MSG_REPEATED_ELEMENT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#27 -RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement::OCTAL_DIGITS_AFTER_ESCAPE = T.let(T.unsafe(nil), Integer) - # Checks for duplicate ``require``s and ``require_relative``s. # # @example @@ -19386,7 +19855,7 @@ RuboCop::Cop::Lint::DuplicateRescueException::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Lint::DuplicateSetElement < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/duplicate_set_element.rb#54 + # source://rubocop//lib/rubocop/cop/lint/duplicate_set_element.rb#71 def on_csend(node); end # source://rubocop//lib/rubocop/cop/lint/duplicate_set_element.rb#54 @@ -19427,7 +19896,7 @@ class RuboCop::Cop::Lint::EachWithObjectArgument < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#25 def each_with_object?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#29 + # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#36 def on_csend(node); end # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#29 @@ -20190,6 +20659,14 @@ RuboCop::Cop::Lint::FlipFlop::MSG = T.let(T.unsafe(nil), String) # x == 0.1 # x != 0.1 # +# # bad +# case value +# when 1.0 +# foo +# when 2.0 +# bar +# end +# # # good - using BigDecimal # x.to_d == 0.1.to_d # @@ -20207,52 +20684,70 @@ RuboCop::Cop::Lint::FlipFlop::MSG = T.let(T.unsafe(nil), String) # # good - comparing against nil # Float(x, exception: false) == nil # +# # good - using epsilon comparison in case expression +# case +# when (value - 1.0).abs < Float::EPSILON +# foo +# when (value - 2.0).abs < Float::EPSILON +# bar +# end +# # # Or some other epsilon based type of comparison: # # https://www.embeddeduse.com/2019/08/26/qt-compare-two-floats/ # -# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#38 +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#54 class RuboCop::Cop::Lint::FloatComparison < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#48 + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#78 + def on_case(node); end + + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#76 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#48 + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#65 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#95 - def check_numeric_returning_method(node); end - - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#84 - def check_send(node); end - # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#63 + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#90 def float?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#78 + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#111 + def float_send?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#105 def literal_safe?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#122 + def numeric_returning_method?(node); end end -# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#42 +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#59 RuboCop::Cop::Lint::FloatComparison::EQUALITY_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#44 +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#61 RuboCop::Cop::Lint::FloatComparison::FLOAT_INSTANCE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#43 +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#60 RuboCop::Cop::Lint::FloatComparison::FLOAT_RETURNING_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#39 +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#57 +RuboCop::Cop::Lint::FloatComparison::MSG_CASE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#55 RuboCop::Cop::Lint::FloatComparison::MSG_EQUALITY = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#40 +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#56 RuboCop::Cop::Lint::FloatComparison::MSG_INEQUALITY = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#46 +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#63 RuboCop::Cop::Lint::FloatComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies `Float` literals which are, like, really really really @@ -20436,7 +20931,7 @@ class RuboCop::Cop::Lint::HashCompareByIdentity < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#37 def id_as_hash_key?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#41 + # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#44 def on_csend(node); end # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#41 @@ -20519,7 +21014,7 @@ class RuboCop::Cop::Lint::HeredocMethodCallPosition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#37 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#46 def on_csend(node); end # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#37 @@ -20595,34 +21090,27 @@ RuboCop::Cop::Lint::HeredocMethodCallPosition::MSG = T.let(T.unsafe(nil), String # @example # # bad # foo.object_id == bar.object_id +# foo.object_id != baz.object_id # # # good # foo.equal?(bar) +# !foo.equal?(baz) # -# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#18 +# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#20 class RuboCop::Cop::Lint::IdentityComparison < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#24 - def on_send(node); end - - private - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#40 - def compare_between_object_id_by_double_equal?(node); end + # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#27 + def object_id_comparison(param0 = T.unsafe(nil)); end - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#44 - def object_id_method?(node); end + # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#35 + def on_send(node); end end -# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#21 +# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#23 RuboCop::Cop::Lint::IdentityComparison::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#22 +# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#24 RuboCop::Cop::Lint::IdentityComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for implicit string concatenation of string literals @@ -20774,7 +21262,7 @@ class RuboCop::Cop::Lint::IneffectiveAccessModifier < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#52 def on_class(node); end - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#52 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#55 def on_module(node); end # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#48 @@ -21039,70 +21527,75 @@ class RuboCop::Cop::Lint::LiteralAsCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#160 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#174 def message(node); end # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#45 def on_and(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#125 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#137 def on_case(case_node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#140 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#154 def on_case_match(case_match_node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#57 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#69 def on_if(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#154 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#57 + def on_or(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#168 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#95 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#107 def on_until(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#110 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#122 def on_until_post(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#65 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#77 def on_while(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#80 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#92 def on_while_post(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#175 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#189 def basic_literal?(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#207 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#221 def check_case(case_node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#166 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#180 def check_for_literal(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#187 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#201 def check_node(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#216 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#230 def condition(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#231 - def condition_evaluation(node, cond); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#245 + def condition_evaluation?(node, cond); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#240 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#254 def correct_if_node(node, cond); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#197 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#211 def handle_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#183 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#197 def primitive_array?(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#224 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#238 def when_conditions_range(when_node); end end @@ -21146,10 +21639,10 @@ class RuboCop::Cop::Lint::LiteralAssignmentInCondition < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39 def on_if(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39 + # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#52 def on_until(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39 + # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#51 def on_while(node); end private @@ -21374,21 +21867,21 @@ class RuboCop::Cop::Lint::MissingCopEnableDirective < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#70 + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#69 def acceptable_range?(cop, line_range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#104 + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#103 def department_enabled?(cop, comment); end - # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#64 + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#63 def each_missing_enable; end - # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#87 + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#86 def max_range; end - # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#91 + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#90 def message(cop, comment, type = T.unsafe(nil)); end end @@ -21559,7 +22052,7 @@ class RuboCop::Cop::Lint::MixedCaseRange < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#55 def each_unsafe_regexp_range(node); end - # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#37 + # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#43 def on_erange(node); end # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#37 @@ -21764,7 +22257,7 @@ class RuboCop::Cop::Lint::NestedMethodDefinition < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#97 def on_def(node); end - # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#97 + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#111 def on_defs(node); end private @@ -21870,7 +22363,7 @@ class RuboCop::Cop::Lint::NextWithoutAccumulator < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#38 def on_block_body_of_reduce(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#24 + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#33 def on_numblock(node); end private @@ -21919,10 +22412,10 @@ class RuboCop::Cop::Lint::NoReturnInBeginEndBlocks < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41 + # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#49 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41 + # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#48 def on_or_asgn(node); end end @@ -22296,7 +22789,7 @@ class RuboCop::Cop::Lint::NumberConversion < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#106 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#110 def on_csend(node); end # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#106 @@ -22447,33 +22940,33 @@ RuboCop::Cop::Lint::NumberedParameterAssignment::NUM_PARAM_MSG = T.let(T.unsafe( class RuboCop::Cop::Lint::NumericOperationWithConstantResult < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#56 + # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#57 def abbreviated_assignment_with_constant_result?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#59 + # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#68 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#69 + # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#70 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#59 + # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#60 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#52 + # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#53 def operation_with_constant_result?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#80 + # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#81 def constant_result?(lhs, operation, rhs); end end -# source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#48 +# source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#49 RuboCop::Cop::Lint::NumericOperationWithConstantResult::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#49 +# source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#50 RuboCop::Cop::Lint::NumericOperationWithConstantResult::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for unintended or-assignment to a constant. @@ -22561,7 +23054,7 @@ RuboCop::Cop::Lint::OrderedMagicComments::MSG = T.let(T.unsafe(nil), String) # # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#38 class RuboCop::Cop::Lint::OutOfRangeRegexpRef < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#55 + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#64 def after_csend(node); end # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#55 @@ -22639,7 +23132,7 @@ class RuboCop::Cop::Lint::ParenthesesAsGroupedExpression < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#24 + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#35 def on_csend(node); end # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#24 @@ -23322,6 +23815,15 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T # In the example below, the safe navigation operator (`&.`) is unnecessary # because `NilClass` has methods like `respond_to?` and `is_a?`. # +# The `InferNonNilReceiver` option specifies whether to look into previous code +# paths to infer if the receiver can't be nil. This check is unsafe because the receiver +# can be redefined between the safe navigation call and previous regular method call. +# It does the inference only in the current scope, e.g. within the same method definition etc. +# +# The `AdditionalNilMethods` option specifies additional custom methods which are +# defined on `NilClass`. When `InferNonNilReceiver` is set, they are used to determine +# whether the receiver can be nil. +# # @example # # bad # CamelCaseConst&.do_something @@ -23330,6 +23832,20 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T # CamelCaseConst.do_something # # # bad +# foo.to_s&.strip +# foo.to_i&.zero? +# foo.to_f&.zero? +# foo.to_a&.size +# foo.to_h&.size +# +# # good +# foo.to_s.strip +# foo.to_i.zero? +# foo.to_f.zero? +# foo.to_a.size +# foo.to_h.size +# +# # bad # do_something if attrs&.respond_to?(:[]) # # # good @@ -23376,52 +23892,106 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T # # good # do_something if attrs.nil_safe_method(:[]) # do_something if attrs&.not_nil_safe_method(:[]) +# @example InferNonNilReceiver: false (default) +# # good +# foo.bar +# foo&.baz +# @example InferNonNilReceiver: true +# # bad +# foo.bar +# foo&.baz # would raise on previous line if `foo` is nil +# +# # good +# foo.bar +# foo.baz +# +# # bad +# if foo.condition? +# foo&.bar +# end +# +# # good +# if foo.condition? +# foo.bar +# end +# +# # good (different scopes) +# def method1 +# foo.bar +# end +# +# def method2 +# foo&.bar +# end +# @example AdditionalNilMethods: [present?] +# # good +# foo.present? +# foo&.bar # -# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#84 +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#145 class RuboCop::Cop::Lint::RedundantSafeNavigation < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#101 + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#166 def conversion_with_default?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#113 + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#178 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#123 + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#200 def on_or(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#96 + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#161 def respond_to_nil_specific_method?(param0 = T.unsafe(nil)); end private + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#252 + def additional_nil_methods; end + # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#139 + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#216 def assume_receiver_instance_exists?(receiver); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#145 + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#233 def check?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#154 + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#244 def condition?(parent, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#222 + def guaranteed_instance?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#248 + def infer_non_nil_receiver?; end end -# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#88 +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#158 +RuboCop::Cop::Lint::RedundantSafeNavigation::GUARANTEED_INSTANCE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#149 RuboCop::Cop::Lint::RedundantSafeNavigation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#89 +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#150 RuboCop::Cop::Lint::RedundantSafeNavigation::MSG_LITERAL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#91 +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#151 +RuboCop::Cop::Lint::RedundantSafeNavigation::MSG_NON_NIL = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#154 RuboCop::Cop::Lint::RedundantSafeNavigation::NIL_SPECIFIC_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#93 +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#156 RuboCop::Cop::Lint::RedundantSafeNavigation::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) # Checks for unneeded usages of splat expansion. @@ -23716,7 +24286,7 @@ class RuboCop::Cop::Lint::RedundantTypeConversion < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#135 def integer_constructor?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#189 + # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#205 def on_csend(node); end # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#189 @@ -23827,10 +24397,10 @@ class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#37 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#37 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#56 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#37 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#55 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#61 @@ -23882,10 +24452,10 @@ class RuboCop::Cop::Lint::RedundantWithObject < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#36 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#36 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#52 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#36 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#51 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#57 @@ -23992,7 +24562,7 @@ RuboCop::Cop::Lint::RegexpAsCondition::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Lint::RequireParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#31 + # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#40 def on_csend(node); end # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#31 @@ -24046,7 +24616,7 @@ RuboCop::Cop::Lint::RequireParentheses::MSG = T.let(T.unsafe(nil), String) # # source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#40 class RuboCop::Cop::Lint::RequireRangeParentheses < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#43 + # source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#53 def on_erange(node); end # source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#43 @@ -24128,7 +24698,7 @@ end # source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#24 RuboCop::Cop::Lint::RescueException::MSG = T.let(T.unsafe(nil), String) -# Check for arguments to `rescue` that will result in a `TypeError` +# Checks for arguments to `rescue` that will result in a `TypeError` # if an exception is raised. # # @example @@ -24283,7 +24853,7 @@ class RuboCop::Cop::Lint::SafeNavigationChain < ::RuboCop::Cop::Base # @return [Boolean] # # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#108 - def operator_inside_hash?(send_node); end + def operator_inside_collection_literal?(send_node); end # @return [Boolean] # @@ -24346,7 +24916,7 @@ class RuboCop::Cop::Lint::SafeNavigationConsistency < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#48 def on_and(node); end - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#48 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#63 def on_or(node); end private @@ -24499,62 +25069,79 @@ RuboCop::Cop::Lint::ScriptPermission::SHEBANG = T.let(T.unsafe(nil), String) # # # good (method calls possibly can return different results) # hash[foo] = hash[foo] +# @example AllowRBSInlineAnnotation:true +# # good +# foo = foo #: Integer +# foo, bar = foo, bar #: Integer +# Foo = Foo #: Integer +# hash['foo'] = hash['foo'] #: Integer +# obj.attr = obj.attr #: Integer # -# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#26 +# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#34 class RuboCop::Cop::Lint::SelfAssignment < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#67 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#87 def on_and_asgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#56 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#67 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#36 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#53 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#45 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#64 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#45 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#65 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#45 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#63 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#45 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#55 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#63 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#75 def on_masgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#67 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#82 def on_or_asgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#36 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#44 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#101 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#134 + def allow_rbs_inline_annotation?; end + + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#119 def handle_attribute_assignment(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#90 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#107 def handle_key_assignment(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#74 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#91 def multiple_self_assignment?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#85 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#130 + def rbs_inline_annotation?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#102 def rhs_matches_lhs?(rhs, lhs); end end -# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29 +# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#37 RuboCop::Cop::Lint::SelfAssignment::ASSIGNMENT_TYPE_TO_RHS_TYPE = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#27 +# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#35 RuboCop::Cop::Lint::SelfAssignment::MSG = T.let(T.unsafe(nil), String) # Checks for `send`, `public_send`, and `__send__` methods @@ -24839,6 +25426,11 @@ RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String) # given by `ruby -cw` prior to Ruby 2.6: # "shadowing outer local variable - foo". # +# The cop is now disabled by default to match the upstream Ruby behavior. +# It's useful, however, if you'd like to avoid shadowing variables from outer +# scopes, which some people consider an anti-pattern that makes it harder +# to keep track of what's going on in a program. +# # NOTE: Shadowing of variables in block passed to `Ractor.new` is allowed # because `Ractor` should not access outer variables. # eg. following style is encouraged: @@ -24870,44 +25462,44 @@ RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#41 +# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#46 class RuboCop::Cop::Lint::ShadowingOuterLocalVariable < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#53 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#58 def before_declaring_variable(variable, variable_table); end - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#45 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#50 def ractor_block?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#96 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#101 def find_conditional_node_from_ascendant(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#103 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#108 def node_or_its_ascendant_conditional?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#72 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#77 def same_conditions_node_different_branch?(variable, outer_local_variable); end - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#86 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#91 def variable_node(variable); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#68 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#73 def variable_used_in_declaration_of_outer?(variable, outer_local_variable); end class << self - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#49 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#54 def joining_forces; end end end -# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#42 +# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#47 RuboCop::Cop::Lint::ShadowingOuterLocalVariable::MSG = T.let(T.unsafe(nil), String) # Checks for `Hash` creation with a mutable default value. @@ -25698,10 +26290,10 @@ class RuboCop::Cop::Lint::UnexpectedBlockArity < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#44 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#44 + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#56 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#44 + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#55 def on_numblock(node); end private @@ -25831,7 +26423,7 @@ class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#115 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#115 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#122 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#70 @@ -25942,13 +26534,13 @@ class RuboCop::Cop::Lint::UnreachableCode < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#41 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#41 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#46 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#52 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#62 def on_kwbegin(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#41 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#45 def on_numblock(node); end private @@ -26076,25 +26668,25 @@ class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#100 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#98 def on_for(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#100 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#105 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#100 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#104 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#95 def on_until(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#97 def on_until_post(node); end # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 def on_while(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#96 def on_while_post(node); end private @@ -26358,7 +26950,7 @@ class RuboCop::Cop::Lint::UnusedMethodArgument < ::RuboCop::Cop::Base def message(variable); end class << self - # source://rubocop-performance/1.25.0/lib/rubocop-performance.rb#12 + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#80 def autocorrect_incompatible_with; end # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#84 @@ -26380,6 +26972,7 @@ end # # # good # CGI.escape('http://example.com') +# URI.encode_uri_component(uri) # Since Ruby 3.1 # URI.encode_www_form([['example', 'param'], ['lang', 'en']]) # URI.encode_www_form(page: 10, locale: 'en') # URI.encode_www_form_component('http://example.com') @@ -26390,31 +26983,32 @@ end # # # good # CGI.unescape(enc_uri) +# URI.decode_uri_component(uri) # Since Ruby 3.1 # URI.decode_www_form(enc_uri) # URI.decode_www_form_component(enc_uri) # -# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#32 +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#34 class RuboCop::Cop::Lint::UriEscapeUnescape < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#57 + # source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#59 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#51 + # source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#53 def uri_escape_unescape?(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#33 +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#35 RuboCop::Cop::Lint::UriEscapeUnescape::ALTERNATE_METHODS_OF_URI_ESCAPE = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#38 +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#40 RuboCop::Cop::Lint::UriEscapeUnescape::ALTERNATE_METHODS_OF_URI_UNESCAPE = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#47 +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#49 RuboCop::Cop::Lint::UriEscapeUnescape::METHOD_NAMES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#44 +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#46 RuboCop::Cop::Lint::UriEscapeUnescape::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#48 +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#50 RuboCop::Cop::Lint::UriEscapeUnescape::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `URI.regexp` is obsolete and should not be used. @@ -26458,10 +27052,10 @@ RuboCop::Cop::Lint::UriRegexp::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::UriRegexp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for redundant access modifiers, including those with no -# code, those which are repeated, and leading `public` modifiers in a -# class or module body. Conditionally-defined methods are considered as -# always being defined, and thus access modifiers guarding such methods -# are not redundant. +# code, those which are repeated, those which are on top-level, and +# leading `public` modifiers in a class or module body. +# Conditionally-defined methods are considered as always being defined, +# and thus access modifiers guarding such methods are not redundant. # # This cop has `ContextCreatingMethods` option. The default setting value # is an empty array that means no method is specified. @@ -26512,6 +27106,12 @@ RuboCop::Cop::Lint::UriRegexp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # private # this is redundant (no following methods are defined) # end # +# # bad +# private # this is useless (access modifiers have no effect on top-level) +# +# def method +# end +# # # good # class Foo # private # this is not redundant (a method is defined) @@ -26577,95 +27177,98 @@ RuboCop::Cop::Lint::UriRegexp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # delegate :method_a, to: :method_b # end # -# source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#127 +# source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#133 class RuboCop::Cop::Lint::UselessAccessModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#167 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#184 def class_or_instance_eval?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#162 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#179 def dynamic_method_definition?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#139 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#154 + def on_begin(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#145 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#133 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#139 def on_class(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#139 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#152 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#133 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#142 def on_module(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#139 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#151 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#133 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#143 def on_sclass(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#157 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#174 def static_method_definition?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#183 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#200 def access_modifier?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#281 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#302 def any_context_creating_methods?(child); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#258 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#275 def any_method_definition?(child); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#150 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#167 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#197 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#214 def check_child_nodes(node, unused, cur_vis); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#227 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#244 def check_new_visibility(node, unused, new_vis, cur_vis); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#171 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#188 def check_node(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#187 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#204 def check_scope(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#216 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#233 def check_send_node(node, cur_vis, unused); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#275 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#296 def eval_call?(child); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#248 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#265 def included_block?(block_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#252 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#269 def method_definition?(child); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#271 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#292 def start_of_new_scope?(child); end end -# source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#131 +# source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#137 RuboCop::Cop::Lint::UselessAccessModifier::MSG = T.let(T.unsafe(nil), String) # Checks for every useless assignment to local variable in every @@ -26711,7 +27314,7 @@ class RuboCop::Cop::Lint::UselessAssignment < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#51 def after_leaving_scope(scope, _variable_table); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#165 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#167 def autocorrect(corrector, assignment); end # @return [Boolean] @@ -26722,42 +27325,42 @@ class RuboCop::Cop::Lint::UselessAssignment < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#56 def check_for_unused_assignments(variable); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#149 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#151 def collect_variable_like_names(scope); end # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#82 def message_for_useless_assignment(assignment); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#110 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#112 def message_specification(assignment, variable); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#120 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#122 def multiple_assignment_message(variable_name); end # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#88 def offense_range(assignment); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#125 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#127 def operator_assignment_message(scope, assignment); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#182 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#184 def remove_exception_assignment_part(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#206 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#208 def remove_local_variable_assignment_part(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#195 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#197 def remove_trailing_character_from_operator(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#191 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#193 def rename_variable_with_underscore(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#199 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#201 def replace_named_capture_group_with_non_capturing_group(corrector, node, variable_name); end # TODO: More precise handling (rescue, ensure, nested begin, etc.) # - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#139 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#141 def return_value_node_of_scope(scope); end # @return [Boolean] @@ -26765,12 +27368,12 @@ class RuboCop::Cop::Lint::UselessAssignment < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#96 def sequential_assignment?(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#132 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#134 def similar_name_message(variable); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#158 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#160 def variable_like_method_invocation?(node); end class << self @@ -26832,6 +27435,63 @@ end # source://rubocop//lib/rubocop/cop/lint/useless_constant_scoping.rb#33 RuboCop::Cop::Lint::UselessConstantScoping::MSG = T.let(T.unsafe(nil), String) +# Checks for usage of method `fetch` or `Array.new` with default value argument +# and block. In such cases, block will always be used as default value. +# +# This cop emulates Ruby warning "block supersedes default value argument" which +# applies to `Array.new`, `Array#fetch`, `Hash#fetch`, `ENV.fetch` and +# `Thread#fetch`. +# +# A `fetch` call without a receiver is considered a custom method and does not register +# an offense. +# +# @example +# # bad +# x.fetch(key, default_value) { block_value } +# Array.new(size, default_value) { block_value } +# +# # good +# x.fetch(key) { block_value } +# Array.new(size) { block_value } +# +# # also good - in case default value argument is desired instead +# x.fetch(key, default_value) +# Array.new(size, default_value) +# +# # good - keyword arguments aren't registered as offenses +# x.fetch(key, keyword: :arg) { block_value } +# @example AllowedReceivers: ['Rails.cache'] +# # good +# Rails.cache.fetch(name, options) { block } +# +# source://rubocop//lib/rubocop/cop/lint/useless_default_value_argument.rb#50 +class RuboCop::Cop::Lint::UselessDefaultValueArgument < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedReceivers + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/useless_default_value_argument.rb#59 + def default_value_argument_and_block(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/useless_default_value_argument.rb#80 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_default_value_argument.rb#69 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_default_value_argument.rb#84 + def hash_without_braces?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/useless_default_value_argument.rb#54 +RuboCop::Cop::Lint::UselessDefaultValueArgument::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/useless_default_value_argument.rb#56 +RuboCop::Cop::Lint::UselessDefaultValueArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for calls to `defined?` with strings or symbols as the argument. # Such calls will always return `'expression'`, you probably meant to # check for the existence of a constant, method, or variable instead. @@ -26951,7 +27611,7 @@ class RuboCop::Cop::Lint::UselessMethodDefinition < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#43 def on_def(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#43 + # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#53 def on_defs(node); end private @@ -27005,35 +27665,115 @@ RuboCop::Cop::Lint::UselessMethodDefinition::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Lint::UselessNumericOperation < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#43 + # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#54 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#55 + # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#56 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#43 + # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#44 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#41 + # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#42 def useless_abbreviated_assignment?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#38 + # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#39 def useless_operation?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#68 + # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#69 def useless?(operation, number); end end -# source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#34 +# source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#35 RuboCop::Cop::Lint::UselessNumericOperation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#35 +# source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#36 RuboCop::Cop::Lint::UselessNumericOperation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Checks for useless OR (`||` and `or`) expressions. +# +# Some methods always return a truthy value, even when called +# on `nil` (e.g. `nil.to_i` evaluates to `0`). Therefore, OR expressions +# appended after these methods will never evaluate. +# +# @example +# +# # bad +# x.to_a || fallback +# x.to_c || fallback +# x.to_d || fallback +# x.to_i || fallback +# x.to_f || fallback +# x.to_h || fallback +# x.to_r || fallback +# x.to_s || fallback +# x.to_sym || fallback +# x.intern || fallback +# x.inspect || fallback +# x.hash || fallback +# x.object_id || fallback +# x.__id__ || fallback +# +# x.to_s or fallback +# +# # good - if fallback is same as return value of method called on nil +# x.to_a # nil.to_a returns [] +# x.to_c # nil.to_c returns (0+0i) +# x.to_d # nil.to_d returns 0.0 +# x.to_i # nil.to_i returns 0 +# x.to_f # nil.to_f returns 0.0 +# x.to_h # nil.to_h returns {} +# x.to_r # nil.to_r returns (0/1) +# x.to_s # nil.to_s returns '' +# x.to_sym # nil.to_sym raises an error +# x.intern # nil.intern raises an error +# x.inspect # nil.inspect returns "nil" +# x.hash # nil.hash returns an Integer +# x.object_id # nil.object_id returns an Integer +# x.__id__ # nil.object_id returns an Integer +# +# # good - if the intention is not to call the method on nil +# x&.to_a || fallback +# x&.to_c || fallback +# x&.to_d || fallback +# x&.to_i || fallback +# x&.to_f || fallback +# x&.to_h || fallback +# x&.to_r || fallback +# x&.to_s || fallback +# x&.to_sym || fallback +# x&.intern || fallback +# x&.inspect || fallback +# x&.hash || fallback +# x&.object_id || fallback +# x&.__id__ || fallback +# +# x&.to_s or fallback +# +# source://rubocop//lib/rubocop/cop/lint/useless_or.rb#66 +class RuboCop::Cop::Lint::UselessOr < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/useless_or.rb#78 + def on_or(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_or.rb#74 + def truthy_return_value_method?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/lint/useless_or.rb#91 + def report_offense(or_node, truthy_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/useless_or.rb#67 +RuboCop::Cop::Lint::UselessOr::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/useless_or.rb#69 +RuboCop::Cop::Lint::UselessOr::TRUTHY_RETURN_VALUE_METHODS = T.let(T.unsafe(nil), Set) + # Checks for useless ``rescue``s, which only reraise rescued exceptions. # # @example @@ -27175,8 +27915,10 @@ class RuboCop::Cop::Lint::UselessRuby2Keywords < ::RuboCop::Cop::Base # `ruby2_keywords` is only allowed if there's a `restarg` and no keyword arguments # + # @return [Boolean] + # # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#118 - def allowed_arguments(arguments); end + def allowed_arguments?(arguments); end # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#109 def find_method_definition(node, method_name); end @@ -27219,7 +27961,7 @@ class RuboCop::Cop::Lint::UselessSetterCall < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#37 def on_def(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#37 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#54 def on_defs(node); end # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#59 @@ -27343,6 +28085,52 @@ RuboCop::Cop::Lint::UselessTimes::MSG = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#29 RuboCop::Cop::Lint::UselessTimes::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# source://rubocop//lib/rubocop/cop/lint/utils/nil_receiver_checker.rb#6 +module RuboCop::Cop::Lint::Utils; end + +# Utility class that checks if the receiver can't be nil. +# +# source://rubocop//lib/rubocop/cop/lint/utils/nil_receiver_checker.rb#8 +class RuboCop::Cop::Lint::Utils::NilReceiverChecker + # @return [NilReceiverChecker] a new instance of NilReceiverChecker + # + # source://rubocop//lib/rubocop/cop/lint/utils/nil_receiver_checker.rb#11 + def initialize(receiver, additional_nil_methods); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/utils/nil_receiver_checker.rb#17 + def cant_be_nil?; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/utils/nil_receiver_checker.rb#24 + def _cant_be_nil?(node, receiver); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/utils/nil_receiver_checker.rb#108 + def else_branch?(node); end + + # source://rubocop//lib/rubocop/cop/lint/utils/nil_receiver_checker.rb#112 + def find_top_if(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/utils/nil_receiver_checker.rb#81 + def non_nil_method?(method_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/utils/nil_receiver_checker.rb#86 + def sole_condition_of_parent_if?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/utils/nil_receiver_checker.rb#9 +RuboCop::Cop::Lint::Utils::NilReceiverChecker::NIL_METHODS = T.let(T.unsafe(nil), Set) + # Checks for operators, variables, literals, lambda, proc and nonmutating # methods used in void context. # @@ -27404,13 +28192,13 @@ class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/void.rb#96 def on_ensure(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#81 + # source://rubocop//lib/rubocop/cop/lint/void.rb#89 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#91 + # source://rubocop//lib/rubocop/cop/lint/void.rb#94 def on_kwbegin(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#81 + # source://rubocop//lib/rubocop/cop/lint/void.rb#88 def on_numblock(node); end private @@ -27658,7 +28446,7 @@ module RuboCop::Cop::MethodComplexity # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#38 def define_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#15 def max=(value); end # @api private @@ -27673,17 +28461,17 @@ module RuboCop::Cop::MethodComplexity # @api private # - # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#17 + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#22 def on_defs(node); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#24 + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#33 def on_itblock(node); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#24 + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#32 def on_numblock(node); end private @@ -27820,10 +28608,10 @@ class RuboCop::Cop::Metrics::BlockLength < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#52 def on_block(node); end - # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#52 + # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#60 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#52 + # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#59 def on_numblock(node); end private @@ -27851,7 +28639,7 @@ RuboCop::Cop::Metrics::BlockLength::LABEL = T.let(T.unsafe(nil), String) # # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#14 class RuboCop::Cop::Metrics::BlockNesting < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#17 def max=(value); end # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#19 @@ -27994,7 +28782,7 @@ class RuboCop::Cop::Metrics::CollectionLiteralLength < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#60 def on_array(node); end - # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#60 + # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#63 def on_hash(node); end # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#65 @@ -28122,13 +28910,13 @@ class RuboCop::Cop::Metrics::MethodLength < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#50 def on_def(node); end - # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#50 + # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#55 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#57 + # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#66 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#57 + # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#65 def on_numblock(node); end private @@ -28260,10 +29048,10 @@ class RuboCop::Cop::Metrics::ParameterLists < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#121 def argument_to_lambda_or_proc?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#71 def max=(value); end - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#72 def max_optional_parameters=(value); end # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#104 @@ -28272,7 +29060,7 @@ class RuboCop::Cop::Metrics::ParameterLists < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#90 def on_def(node); end - # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#90 + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#102 def on_defs(node); end # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#81 @@ -28361,13 +29149,13 @@ class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator # @return [AbcSizeCalculator] a new instance of AbcSizeCalculator # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#37 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#34 def initialize(node, discount_repeated_attributes: T.unsafe(nil)); end # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#42 def calculate; end - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#60 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#76 def calculate_node(node); end # @return [Boolean] @@ -28375,7 +29163,7 @@ class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#65 def else_branch?(node); end - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#54 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#51 def evaluate_branch_nodes(node); end # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#60 @@ -28832,7 +29620,7 @@ end # # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#7 module RuboCop::Cop::MultilineExpressionIndentation - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#14 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#25 def on_csend(node); end # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#14 @@ -29179,7 +29967,7 @@ class RuboCop::Cop::Naming::AccessorMethodName < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#42 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#42 + # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#50 def on_defs(node); end private @@ -29376,7 +30164,7 @@ class RuboCop::Cop::Naming::BlockForwarding < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#68 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#68 + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#87 def on_defs(node); end private @@ -29505,7 +30293,7 @@ class RuboCop::Cop::Naming::ClassAndModuleCamelCase < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#32 def on_class(node); end - # source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#32 + # source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#41 def on_module(node); end end @@ -29665,9 +30453,6 @@ class RuboCop::Cop::Naming::FileName < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/naming/file_name.rb#204 def match_acronym?(expected, name); end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#172 - def match_namespace(node, namespace, expected); end - # @return [Boolean] # # source://rubocop//lib/rubocop/cop/naming/file_name.rb#90 @@ -29678,6 +30463,11 @@ class RuboCop::Cop::Naming::FileName < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/naming/file_name.rb#86 def matching_definition?(file_path); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#172 + def namespace_matches?(node, namespace, expected); end + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#98 def no_definition_message(basename, file_path); end @@ -29967,30 +30757,47 @@ class RuboCop::Cop::Naming::InclusiveLanguage::WordLocation < ::Struct # Returns the value of attribute position # # @return [Object] the current value of position + # + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82 def position; end # Sets the attribute position # # @param value [Object] the value to set the attribute position to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82 def position=(_); end # Returns the value of attribute word # # @return [Object] the current value of word + # + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82 def word; end # Sets the attribute word # # @param value [Object] the value to set the attribute word to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82 def word=(_); end class << self + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82 def inspect; end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82 def keyword_init?; end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82 def members; end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82 def new(*_arg0); end end end @@ -30219,12 +31026,52 @@ RuboCop::Cop::Naming::MemoizedInstanceVariableName::UNDERSCORE_REQUIRED = T.let( # # # good # def foo_bar; end +# +# # bad +# define_method :fooBar do +# end +# +# # good +# define_method :foo_bar do +# end +# +# # bad +# Struct.new(:fooBar) +# +# # good +# Struct.new(:foo_bar) +# +# # bad +# alias_method :fooBar, :some_method +# +# # good +# alias_method :foo_bar, :some_method # @example EnforcedStyle: camelCase # # bad # def foo_bar; end # # # good # def fooBar; end +# +# # bad +# define_method :foo_bar do +# end +# +# # good +# define_method :fooBar do +# end +# +# # bad +# Struct.new(:foo_bar) +# +# # good +# Struct.new(:fooBar) +# +# # bad +# alias_method :foo_bar, :some_method +# +# # good +# alias_method :fooBar, :some_method # @example ForbiddenIdentifiers: ['def', 'super'] # # bad # def def; end @@ -30234,7 +31081,7 @@ RuboCop::Cop::Naming::MemoizedInstanceVariableName::UNDERSCORE_REQUIRED = T.let( # def release_v1; end # def api_gen1; end # -# source://rubocop//lib/rubocop/cop/naming/method_name.rb#59 +# source://rubocop//lib/rubocop/cop/naming/method_name.rb#99 class RuboCop::Cop::Naming::MethodName < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::ConfigurableFormatting @@ -30244,47 +31091,77 @@ class RuboCop::Cop::Naming::MethodName < ::RuboCop::Cop::Base include ::RuboCop::Cop::ForbiddenIdentifiers include ::RuboCop::Cop::ForbiddenPattern - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#90 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#122 + def define_data?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#119 + def new_struct?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#149 + def on_alias(node); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#138 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#90 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#147 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#75 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#124 def on_send(node); end - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#73 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#116 def str_name(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#70 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#113 def sym_name(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#120 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#230 def attr_name(name_item); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#103 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#206 def forbidden_name?(name); end - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#131 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#174 + def handle_alias_method(node); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#181 + def handle_attr_accessor(node); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#168 + def handle_define_data(node); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#155 + def handle_define_method(node); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#196 + def handle_method_name(node, name); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#161 + def handle_new_struct(node); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#245 def message(style); end - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#124 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#234 def range_position(node); end - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#107 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#211 def register_forbidden_name(node); end end -# source://rubocop//lib/rubocop/cop/naming/method_name.rb#66 +# source://rubocop//lib/rubocop/cop/naming/method_name.rb#106 RuboCop::Cop::Naming::MethodName::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/naming/method_name.rb#67 +# source://rubocop//lib/rubocop/cop/naming/method_name.rb#107 RuboCop::Cop::Naming::MethodName::MSG_FORBIDDEN = T.let(T.unsafe(nil), String) +# source://rubocop//lib/rubocop/cop/naming/method_name.rb#109 +RuboCop::Cop::Naming::MethodName::OPERATOR_METHODS = T.let(T.unsafe(nil), Set) + # Checks method parameter names for how descriptive they # are. It is highly configurable. # @@ -30333,10 +31210,234 @@ class RuboCop::Cop::Naming::MethodParameterName < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#49 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#49 + # source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#54 def on_defs(node); end end +# Checks that predicate methods end with `?` and non-predicate methods do not. +# +# The names of predicate methods (methods that return a boolean value) should end +# in a question mark. Methods that don't return a boolean, shouldn't +# end in a question mark. +# +# The cop assesses a predicate method as one that returns boolean values. Likewise, +# a method that only returns literal values is assessed as non-predicate. Other predicate +# method calls are assumed to return boolean values. The cop does not make an assessment +# if the return type is unknown (non-predicate method calls, variables, etc.). +# +# NOTE: The `initialize` method and operator methods (`def ==`, etc.) are ignored. +# +# By default, the cop runs in `conservative` mode, which allows a method to be named +# with a question mark as long as at least one return value is boolean. In `aggressive` +# mode, methods with a question mark will register an offense if any known non-boolean +# return values are detected. +# +# The cop also has `AllowedMethods` configuration in order to prevent the cop from +# registering an offense from a method name that does not confirm to the naming +# guidelines. By default, `call` is allowed. The cop also has `AllowedPatterns` +# configuration to allow method names by regular expression. +# +# Although returning a call to another predicate method is treated as a boolean value, +# certain method names can be known to not return a boolean, despite ending in a `?` +# (for example, `Numeric#nonzero?` returns `self` or `nil`). These methods can be +# configured using `NonBooleanPredicates`. +# +# The cop can furthermore be configured to allow all bang methods (method names +# ending with `!`), with `AllowBangMethods: true` (default false). +# +# @example Mode: conservative (default) +# # bad +# def foo +# bar == baz +# end +# +# # good +# def foo? +# bar == baz +# end +# +# # bad +# def foo? +# 5 +# end +# +# # good +# def foo +# 5 +# end +# +# # bad +# def foo +# x == y +# end +# +# # good +# def foo? +# x == y +# end +# +# # bad +# def foo +# !x +# end +# +# # good +# def foo? +# !x +# end +# +# # bad - returns the value of another predicate method +# def foo +# bar? +# end +# +# # good +# def foo? +# bar? +# end +# +# # good - operator method +# def ==(other) +# hash == other.hash +# end +# +# # good - at least one return value is boolean +# def foo? +# return unless bar? +# true +# end +# +# # ok - return type is not known +# def foo? +# bar +# end +# +# # ok - return type is not known +# def foo +# bar? +# end +# @example Mode: aggressive +# # bad - the method returns nil in some cases +# def foo? +# return unless bar? +# true +# end +# @example AllowBangMethods: false (default) +# # bad +# def save! +# true +# end +# @example AllowBangMethods: true +# # good +# def save! +# true +# end +# +# source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#128 +class RuboCop::Cop::Naming::PredicateMethod < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#135 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#147 + def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#160 + def acceptable?(return_values); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#190 + def all_return_values_boolean?(return_values); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#290 + def allow_bang_methods?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#151 + def allowed?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#284 + def allowed_bang_method?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#254 + def and_or?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#197 + def boolean_return?(value); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#280 + def conservative?; end + + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#258 + def extract_and_or_clauses(node); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#265 + def extract_conditional_branches(node); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#224 + def extract_return_value(node); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#237 + def last_value(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#203 + def method_returning_boolean?(value); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#210 + def potential_non_predicate?(return_values); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#242 + def process_return_values(return_values); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#176 + def return_values(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#170 + def unknown_method_call?(value); end + + # If a method ending in `?` is known to not return a boolean value, + # (for example, `Numeric#nonzero?`) it should be treated as a non-boolean + # value, despite the method naming. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#297 + def wayward_predicate?(name); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#301 + def wayward_predicates; end +end + +# source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#133 +RuboCop::Cop::Naming::PredicateMethod::MSG_NON_PREDICATE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#132 +RuboCop::Cop::Naming::PredicateMethod::MSG_PREDICATE = T.let(T.unsafe(nil), String) + # Checks that predicate method names end with a question mark and # do not start with a forbidden prefix. # @@ -30427,58 +31528,60 @@ end # def is_even?(value) # end # -# source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#103 -class RuboCop::Cop::Naming::PredicateName < ::RuboCop::Cop::Base +# source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#103 +class RuboCop::Cop::Naming::PredicatePrefix < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#107 + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#107 def dynamic_method_define(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#126 + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#126 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#126 + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#139 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#113 + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#113 def on_send(node); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#154 + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#154 def sorbet_return_type(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#141 + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#141 def validate_config; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#164 + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#164 def allowed_method_name?(method_name, prefix); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#172 + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#172 def expected_name(method_name, prefix); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#186 + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#186 def forbidden_prefixes; end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#182 + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#182 def message(method_name, new_name); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#198 - def method_definition_macros(macro_name); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#198 + def method_definition_macro?(macro_name); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#190 + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#190 def predicate_prefixes; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#158 + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#158 def sorbet_sig?(node, return_type: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#194 + # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#194 def use_sorbet_sigs?; end end @@ -30635,13 +31738,13 @@ class RuboCop::Cop::Naming::VariableName < ::RuboCop::Cop::Base include ::RuboCop::Cop::ForbiddenIdentifiers include ::RuboCop::Cop::ForbiddenPattern - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#78 def on_arg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#84 def on_blockarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#77 def on_cvasgn(node); end # Only forbidden names are checked for global variable assignment @@ -30649,28 +31752,28 @@ class RuboCop::Cop::Naming::VariableName < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#88 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#76 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#82 def on_kwarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#81 def on_kwoptarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#83 def on_kwrestarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#85 def on_lvar(node); end # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#79 def on_optarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#80 def on_restarg(node); end # @return [Boolean] @@ -30798,22 +31901,22 @@ class RuboCop::Cop::Naming::VariableNumber < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 def on_arg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#122 def on_cvasgn(node); end # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#125 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#125 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#131 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#123 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#121 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#120 def on_lvasgn(node); end # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#133 @@ -30959,7 +32062,7 @@ class RuboCop::Cop::Offense # @api public # @return [Boolean] returns `true` if two offenses contain same attributes # - # source://rubocop//lib/rubocop/cop/offense.rb#210 + # source://rubocop//lib/rubocop/cop/offense.rb#216 def eql?(other); end # @api private @@ -31052,23 +32155,31 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # Returns the value of attribute begin_pos # # @return [Object] the current value of begin_pos + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def begin_pos; end # Sets the attribute begin_pos # # @param value [Object] the value to set the attribute begin_pos to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def begin_pos=(_); end # Returns the value of attribute column # # @return [Object] the current value of column + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def column; end # Sets the attribute column # # @param value [Object] the value to set the attribute column to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def column=(_); end # source://rubocop//lib/rubocop/cop/offense.rb#69 @@ -31077,41 +32188,55 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # Returns the value of attribute end_pos # # @return [Object] the current value of end_pos + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def end_pos; end # Sets the attribute end_pos # # @param value [Object] the value to set the attribute end_pos to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def end_pos=(_); end # Returns the value of attribute line # # @return [Object] the current value of line + # + # source://rubocop//lib/rubocop/cop/offense.rb#65 def first_line; end # Returns the value of attribute column # # @return [Object] the current value of column + # + # source://rubocop//lib/rubocop/cop/offense.rb#67 def last_column; end # Returns the value of attribute line # # @return [Object] the current value of line + # + # source://rubocop//lib/rubocop/cop/offense.rb#66 def last_line; end - # source://rubocop//lib/rubocop/cop/offense.rb#73 + # source://rubocop//lib/rubocop/cop/offense.rb#76 def length; end # Returns the value of attribute line # # @return [Object] the current value of line + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def line; end # Sets the attribute line # # @param value [Object] the value to set the attribute line to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def line=(_); end # source://rubocop//lib/rubocop/cop/offense.rb#73 @@ -31120,19 +32245,32 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # Returns the value of attribute source_line # # @return [Object] the current value of source_line + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def source_line; end # Sets the attribute source_line # # @param value [Object] the value to set the attribute source_line to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def source_line=(_); end class << self + # source://rubocop//lib/rubocop/cop/offense.rb#63 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cop/offense.rb#63 def inspect; end + + # source://rubocop//lib/rubocop/cop/offense.rb#63 def keyword_init?; end + + # source://rubocop//lib/rubocop/cop/offense.rb#63 def members; end + + # source://rubocop//lib/rubocop/cop/offense.rb#63 def new(*_arg0); end end end @@ -31185,8 +32323,10 @@ module RuboCop::Cop::OrderedGemNode # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#23 def case_insensitive_out_of_order?(string_a, string_b); end + # @return [Boolean] + # # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#27 - def consecutive_lines(previous, current); end + def consecutive_lines?(previous, current); end # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#55 def find_gem_name(gem_node); end @@ -31233,44 +32373,44 @@ class RuboCop::Cop::ParenthesesCorrector # Add a comma back after the heredoc identifier # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#74 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#77 def add_heredoc_comma(corrector, node); end # If the node contains a heredoc, remove the comma too # It'll be added back in the right place later # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#64 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#67 def extend_range_for_heredoc(node, range); end # If removing parentheses leaves a comma on its own line, remove all the whitespace # preceding it to prevent a syntax error. # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#41 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#44 def handle_orphaned_comma(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#80 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#83 def heredoc?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#28 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#31 def next_char_is_question_mark?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#32 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#35 def only_closing_paren_before_comma?(node); end # Get a range for the closing parenthesis and all whitespace to the left of it # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#51 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#54 def parens_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#24 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#27 def ternary_condition?(node); end end end @@ -31622,99 +32762,9 @@ class RuboCop::Cop::PunctuationCorrector end module RuboCop::Cop::RSpec; end - -class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_expectations.rb#78 - def aggregate_failures?(param0 = T.unsafe(nil), param1); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_expectations.rb#89 - def aggregate_failures_block?(param0 = T.unsafe(nil)); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_expectations.rb#86 - def expect?(param0 = T.unsafe(nil)); end - - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 - def max=(value); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_expectations.rb#93 - def on_block(node); end - - private - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_expectations.rb#109 - def example_with_aggregate_failures?(example_node); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_expectations.rb#116 - def find_aggregate_failures(example_node); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_expectations.rb#121 - def find_expectation(node, &block); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_expectations.rb#132 - def flag_example(node, expectation_count:); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_expectations.rb#143 - def max_expectations; end -end - -class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 - def max=(value); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 - def on_block(node); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#102 - def on_new_investigation; end - - private - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#111 - def all_helpers(node); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#141 - def allow_subject?; end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#109 - def example_group_memoized_helpers; end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#116 - def helpers(node); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#137 - def max; end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#127 - def variable_nodes(node); end -end - -class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 - def max=(value); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/nested_groups.rb#107 - def on_top_level_group(node); end - - private - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/nested_groups.rb#157 - def allowed_groups; end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/nested_groups.rb#134 - def count_up_nesting?(node, example_group); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/nested_groups.rb#119 - def find_nested_example_groups(node, nesting: T.unsafe(nil), &block); end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/nested_groups.rb#144 - def max_nesting; end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/nested_groups.rb#148 - def max_nesting_config; end - - # source://rubocop-rspec/3.6.0/lib/rubocop/cop/rspec/nested_groups.rb#140 - def message(nesting); end -end +class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base; end +class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base; end +class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base; end # Methods that calculate and return Parser::Source::Ranges # @@ -32141,10 +33191,10 @@ class RuboCop::Cop::Security::CompoundHash < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#64 def monuple_hash?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#88 + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#103 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#88 + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#104 def on_op_asgn(node); end # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#88 @@ -32182,20 +33232,21 @@ RuboCop::Cop::Security::CompoundHash::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # # eval(something) # binding.eval(something) +# Kernel.eval(something) # -# source://rubocop//lib/rubocop/cop/security/eval.rb#14 +# source://rubocop//lib/rubocop/cop/security/eval.rb#15 class RuboCop::Cop::Security::Eval < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/security/eval.rb#19 + # source://rubocop//lib/rubocop/cop/security/eval.rb#20 def eval?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/security/eval.rb#23 + # source://rubocop//lib/rubocop/cop/security/eval.rb#24 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/security/eval.rb#15 +# source://rubocop//lib/rubocop/cop/security/eval.rb#16 RuboCop::Cop::Security::Eval::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/security/eval.rb#16 +# source://rubocop//lib/rubocop/cop/security/eval.rb#17 RuboCop::Cop::Security::Eval::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the first argument to `IO.read`, `IO.binread`, `IO.write`, `IO.binwrite`, @@ -32317,52 +33368,53 @@ RuboCop::Cop::Security::MarshalLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # good (literal strings) # open("foo.text") # URI.open("http://example.com") +# URI.parse(url).open # -# source://rubocop//lib/rubocop/cop/security/open.rb#37 +# source://rubocop//lib/rubocop/cop/security/open.rb#38 class RuboCop::Cop::Security::Open < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/security/open.rb#46 + # source://rubocop//lib/rubocop/cop/security/open.rb#47 def on_send(node); end - # source://rubocop//lib/rubocop/cop/security/open.rb#42 + # source://rubocop//lib/rubocop/cop/security/open.rb#43 def open?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/open.rb#75 + # source://rubocop//lib/rubocop/cop/security/open.rb#76 def composite_string?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/open.rb#83 + # source://rubocop//lib/rubocop/cop/security/open.rb#84 def concatenated_string?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/open.rb#79 + # source://rubocop//lib/rubocop/cop/security/open.rb#80 def interpolated_string?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/open.rb#57 + # source://rubocop//lib/rubocop/cop/security/open.rb#58 def safe?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/open.rb#67 + # source://rubocop//lib/rubocop/cop/security/open.rb#68 def safe_argument?(argument); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/open.rb#71 + # source://rubocop//lib/rubocop/cop/security/open.rb#72 def simple_string?(node); end end -# source://rubocop//lib/rubocop/cop/security/open.rb#38 +# source://rubocop//lib/rubocop/cop/security/open.rb#39 RuboCop::Cop::Security::Open::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/security/open.rb#39 +# source://rubocop//lib/rubocop/cop/security/open.rb#40 RuboCop::Cop::Security::Open::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of YAML class methods which have @@ -32823,27 +33875,27 @@ class RuboCop::Cop::Style::AccessModifierDeclarations < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#247 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#263 def access_modifier_is_inlined?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#251 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#267 def access_modifier_is_not_inlined?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#222 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#234 def allow_modifiers_on_alias_method?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#218 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#230 def allow_modifiers_on_attrs?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#214 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#226 def allow_modifiers_on_symbols?(node); end # @return [Boolean] @@ -32854,58 +33906,67 @@ class RuboCop::Cop::Style::AccessModifierDeclarations < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#195 def autocorrect(corrector, node); end + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#204 + def autocorrect_group_style(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#211 + def autocorrect_inline_style(corrector, node); end + # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#232 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#248 def correctable_group_offense?(node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#334 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#356 def def_source(node, def_nodes); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#294 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#310 def find_argument_less_modifier_node(node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#275 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#291 def find_corresponding_def_nodes(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#239 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#255 def group_style?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#243 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#259 def inline_style?; end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#324 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#340 def insert_inline_modifier(corrector, node, modifier_name); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#265 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#281 def message(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#226 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#238 def offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#210 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#222 def percent_symbol_array?(node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#328 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#350 + def remove_modifier_node_within_begin(corrector, modifier_node, begin_node); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#344 def remove_nodes(corrector, *nodes); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#308 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#324 def replace_defs(corrector, node, def_nodes); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#255 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#271 def right_siblings_same_inline_method?(node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#302 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#318 def select_grouped_def_nodes(node); end end @@ -32974,10 +34035,10 @@ class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#62 def on_class(node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#62 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#70 def on_module(node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#62 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#69 def on_sclass(node); end private @@ -32988,54 +34049,57 @@ class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#74 def check(send_node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#122 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#125 def class_send_elements(class_node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#179 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#182 def group_accessors(node, accessors); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#99 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#102 def groupable_accessor?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#142 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#145 def groupable_sibling_accessor?(node, sibling); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#149 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#152 def groupable_sibling_accessors(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#134 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#137 def grouped_style?; end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#155 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#158 def message(send_node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#160 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#163 def preferred_accessors(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#94 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#97 def previous_line_comment?(node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#185 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#203 + def range_with_trailing_argument_comment(node); end + + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#188 def separate_accessors(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#138 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#141 def separated_style?; end # Group after constants # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#174 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#177 def skip_for_grouping?(node); end end @@ -33234,19 +34298,19 @@ class RuboCop::Cop::Style::AndOr < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#51 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#54 def on_or(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#61 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#62 def on_until_post(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#59 def on_while(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#60 def on_while_post(node); end private @@ -33427,21 +34491,21 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#160 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#159 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#160 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#179 def on_defs(node); end private - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#202 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#201 def add_forward_all_offenses(node, send_classifications, forwardable_args); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#385 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#379 def add_parens_if_missing(node, corrector); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#227 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#230 def add_post_ruby_32_offenses(def_node, send_classifications, forwardable_args); end # Checks if forwarding is uses both in blocks and outside of blocks. @@ -33450,7 +34514,7 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#309 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#312 def all_forwarding_offenses_correctable?(send_classifications); end # Ruby 3.3.0 had a bug where accessing an anonymous block argument inside of a block @@ -33459,215 +34523,215 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#320 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#323 def allow_anonymous_forwarding_in_block?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#377 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#371 def allow_only_rest_arguments?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#365 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#367 def arguments_range(node, first_node); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#277 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#280 def classification_and_forwards(def_node, send_node, referenced_lvars, forwardable_args); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#262 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#265 def classify_send_nodes(def_node, send_nodes, referenced_lvars, forwardable_args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#564 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#558 def explicit_block_name?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#184 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#183 def extract_forwardable_args(args); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#252 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#225 + def forward_all_first_argument(node); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#255 def non_splat_or_block_pass_lvar_references(body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#196 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#195 def only_forwards_all?(send_classifications); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#188 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#187 def redundant_forwardable_named_args(restarg, kwrestarg, blockarg); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#296 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#299 def redundant_named_arg(arg, config_name, keyword); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#354 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#357 def register_forward_all_offense(def_or_send, send_or_arguments, rest_or_splat); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#327 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#330 def register_forward_args_offense(def_arguments_or_send, rest_arg_or_splat); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#343 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#346 def register_forward_block_arg_offense(add_parens, def_arguments_or_send, block_arg); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#335 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#338 def register_forward_kwargs_offense(add_parens, def_arguments_or_send, kwrest_arg_or_splat); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#381 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#375 def use_anonymous_forwarding?; end class << self - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#156 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#155 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#149 -RuboCop::Cop::Style::ArgumentsForwarding::ADDITIONAL_ARG_TYPES = T.let(T.unsafe(nil), Array) - -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#152 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#151 RuboCop::Cop::Style::ArgumentsForwarding::ARGS_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#154 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#153 RuboCop::Cop::Style::ArgumentsForwarding::BLOCK_MSG = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#148 RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_LVAR_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#151 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#150 RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#153 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#152 RuboCop::Cop::Style::ArgumentsForwarding::KWARGS_MSG = T.let(T.unsafe(nil), String) # Classifies send nodes for possible rest/kwrest/all (including block) forwarding. # -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#393 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#387 class RuboCop::Cop::Style::ArgumentsForwarding::SendNodeClassifier extend ::RuboCop::AST::NodePattern::Macros # @return [SendNodeClassifier] a new instance of SendNodeClassifier # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#422 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#416 def initialize(def_node, send_node, referenced_lvars, forwardable_args, **config); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#450 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#444 def classification; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#406 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#400 def def_all_anonymous_args?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#400 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#394 def extract_forwarded_kwrest_arg(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#444 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#438 def forwarded_block_arg; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#403 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#397 def forwarded_block_arg?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#438 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#432 def forwarded_kwrest_arg; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#432 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#426 def forwarded_rest_arg; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#397 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#391 def forwarded_rest_arg?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#415 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#409 def send_all_anonymous_args?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#535 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#529 def additional_kwargs?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#531 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#525 def additional_kwargs_or_forwarded_kwargs?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#545 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#539 def allow_offense_for_no_block?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#516 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#510 def any_arg_referenced?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#500 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#494 def arguments; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#465 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#459 def can_forward_all?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#539 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#533 def forward_additional_kwargs?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#496 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#490 def forwarded_rest_and_kwrest_args; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#558 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#552 def missing_rest_arg_or_kwrest_arg?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#549 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#543 def no_additional_args?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#524 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#518 def no_post_splat_args?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#492 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#486 def offensive_block_forwarding?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#512 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#506 def referenced_block_arg?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#508 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#502 def referenced_kwrest_arg?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#504 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#498 def referenced_rest_arg?; end # def foo(a = 41, ...) is a syntax error in 3.0. # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#477 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#471 def ruby_30_or_lower_optarg?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#481 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#475 def ruby_32_only_anonymous_forwarding?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#488 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#482 def ruby_32_or_higher_missing_rest_or_kwest?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#520 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#514 def target_ruby_version; end end @@ -33729,7 +34793,7 @@ RuboCop::Cop::Style::ArrayCoercion::SPLAT_MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Style::ArrayFirstLast < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#35 + # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#52 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#35 @@ -33760,12 +34824,17 @@ RuboCop::Cop::Style::ArrayFirstLast::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # In Ruby 3.1, `Array#intersect?` has been added. # -# This cop identifies places where `(array1 & array2).any?` -# or `(array1.intersection(array2)).any?` can be replaced by -# `array1.intersect?(array2)`. +# This cop identifies places where: +# +# * `(array1 & array2).any?` +# * `(array1.intersection(array2)).any?` +# * `array1.any? { |elem| array2.member?(elem) }` +# * `(array1 & array2).count > 0` +# * `(array1 & array2).size > 0` +# +# can be replaced with `array1.intersect?(array2)`. # -# The `array1.intersect?(array2)` method is faster than -# `(array1 & array2).any?` and is more readable. +# `array1.intersect?(array2)` is faster and more readable. # # In cases like the following, compatibility is not ensured, # so it will not be detected when using block argument. @@ -33791,8 +34860,25 @@ RuboCop::Cop::Style::ArrayFirstLast::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # array1.intersection(array2).empty? # array1.intersection(array2).none? # +# # bad +# array1.any? { |elem| array2.member?(elem) } +# array1.none? { |elem| array2.member?(elem) } +# +# # good +# array1.intersect?(array2) +# !array1.intersect?(array2) +# +# # bad +# (array1 & array2).count > 0 +# (array1 & array2).count.positive? +# (array1 & array2).count != 0 +# +# (array1 & array2).count == 0 +# (array1 & array2).count.zero? +# # # good # array1.intersect?(array2) +# # !array1.intersect?(array2) # @example AllCops:ActiveSupportExtensionsEnabled: false (default) # # good @@ -33807,52 +34893,73 @@ RuboCop::Cop::Style::ArrayFirstLast::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # array1.intersect?(array2) # !array1.intersect?(array2) # -# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#60 +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#82 class RuboCop::Cop::Style::ArrayIntersect < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#70 + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#119 + def any_none_block_intersection(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#94 def bad_intersection_check?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#86 + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#105 + def intersection_size_check?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#154 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#152 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#86 + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#164 + def on_itblock(node); end + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#163 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#142 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#103 + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#168 def bad_intersection?(node); end - # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#117 - def message(receiver, argument, method_name, dot, existing); end + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#173 + def bad_intersection_predicates; end + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#185 + def register_offense(node, replacement); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#113 + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#181 def straight?(method_name); end end -# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#67 +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#89 RuboCop::Cop::Style::ArrayIntersect::ACTIVE_SUPPORT_PREDICATES = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#80 +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#91 +RuboCop::Cop::Style::ArrayIntersect::ARRAY_SIZE_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#137 RuboCop::Cop::Style::ArrayIntersect::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#83 +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#139 RuboCop::Cop::Style::ArrayIntersect::NEGATED_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#66 +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#88 RuboCop::Cop::Style::ArrayIntersect::PREDICATES = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#84 +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#140 RuboCop::Cop::Style::ArrayIntersect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#82 +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#138 RuboCop::Cop::Style::ArrayIntersect::STRAIGHT_METHODS = T.let(T.unsafe(nil), Array) # Checks for uses of "*" as a substitute for _join_. @@ -34105,26 +35212,26 @@ class RuboCop::Cop::Style::BisectedAttrAccessor < ::RuboCop::Cop::Base # happens in `after_class` because a macro might have multiple attributes # rewritten from it # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#55 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#70 def after_module(class_node); end # Each offending macro is captured and registered in `on_class` but correction # happens in `after_class` because a macro might have multiple attributes # rewritten from it # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#55 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#69 def after_sclass(class_node); end # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33 def on_class(class_node); end - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#50 def on_module(class_node); end # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#29 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#49 def on_sclass(class_node); end private @@ -34269,12 +35376,12 @@ class RuboCop::Cop::Style::BitwisePredicate < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#60 def nobits?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#73 + # source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#74 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#88 + # source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#95 def preferred_method(node); end end @@ -34323,7 +35430,7 @@ RuboCop::Cop::Style::BlockComments::END_LENGTH = T.let(T.unsafe(nil), Integer) # source://rubocop//lib/rubocop/cop/style/block_comments.rb#23 RuboCop::Cop::Style::BlockComments::MSG = T.let(T.unsafe(nil), String) -# Check for uses of braces or do/end around single line or +# Checks for uses of braces or do/end around single line or # multi-line blocks. # # Methods that can be either procedural or functional and cannot be @@ -34488,13 +35595,13 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#200 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#183 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#198 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#200 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#211 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#200 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#210 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#183 @@ -34668,27 +35775,27 @@ RuboCop::Cop::Style::BlockDelimiters::BRACES_REQUIRED_MESSAGE = T.let(T.unsafe(n # Corrector to correct conditional assignment in `case` statements. # -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#616 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#618 class RuboCop::Cop::Style::CaseCorrector extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper class << self - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#621 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#623 def correct(corrector, cop, node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#631 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#633 def move_assignment_inside_condition(corrector, node); end private - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#651 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#653 def extract_branches(case_node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#645 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#647 def extract_tail_branches(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#661 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#663 def move_branch_inside_condition(corrector, branch, condition, assignment, column); end end end @@ -35079,7 +36186,7 @@ class RuboCop::Cop::Style::ClassCheck < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/class_check.rb#45 def message(node); end - # source://rubocop//lib/rubocop/cop/style/class_check.rb#33 + # source://rubocop//lib/rubocop/cop/style/class_check.rb#43 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/class_check.rb#33 @@ -35204,7 +36311,7 @@ class RuboCop::Cop::Style::ClassMethods < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/class_methods.rb#28 def on_class(node); end - # source://rubocop//lib/rubocop/cop/style/class_methods.rb#28 + # source://rubocop//lib/rubocop/cop/style/class_methods.rb#37 def on_module(node); end private @@ -35414,7 +36521,7 @@ class RuboCop::Cop::Style::CollectionCompact < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#86 def grep_v_with_nil?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#90 + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#101 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#90 @@ -35498,13 +36605,13 @@ class RuboCop::Cop::Style::CollectionMethods < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#49 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#55 + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#60 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#49 + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#53 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#49 + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#52 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#55 @@ -35533,6 +36640,90 @@ end # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#47 RuboCop::Cop::Style::CollectionMethods::MSG = T.let(T.unsafe(nil), String) +# Prefer `Enumerable` predicate methods over expressions with `count`. +# +# The cop checks calls to `count` without arguments, or with a +# block. It doesn't register offenses for `count` with a positional +# argument because its behavior differs from predicate methods (`count` +# matches the argument using `==`, while `any?`, `none?` and `one?` use +# `===`). +# +# NOTE: This cop doesn't check `length` and `size` methods because they +# would yield false positives. For example, `String` implements `length` +# and `size`, but it doesn't include `Enumerable`. +# +# @example +# +# # bad +# x.count.positive? +# x.count > 0 +# x.count != 0 +# +# x.count(&:foo?).positive? +# x.count { |item| item.foo? }.positive? +# +# # good +# x.any? +# +# x.any?(&:foo?) +# x.any? { |item| item.foo? } +# +# # bad +# x.count.zero? +# x.count == 0 +# +# # good +# x.none? +# +# # bad +# x.count == 1 +# x.one? +# @example AllCops:ActiveSupportExtensionsEnabled: false (default) +# +# # good +# x.count > 1 +# @example AllCops:ActiveSupportExtensionsEnabled: true +# +# # bad +# x.count > 1 +# +# # good +# x.many? +# +# source://rubocop//lib/rubocop/cop/style/collection_querying.rb#96 +class RuboCop::Cop::Style::CollectionQuerying < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/collection_querying.rb#115 + def count_predicate(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/collection_querying.rb#132 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/collection_querying.rb#159 + def removal_range(node); end + + # source://rubocop//lib/rubocop/cop/style/collection_querying.rb#149 + def replacement_method(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/collection_querying.rb#153 + def replacement_supported?(method_name); end +end + +# source://rubocop//lib/rubocop/cop/style/collection_querying.rb#100 +RuboCop::Cop::Style::CollectionQuerying::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/collection_querying.rb#104 +RuboCop::Cop::Style::CollectionQuerying::REPLACEMENTS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/style/collection_querying.rb#102 +RuboCop::Cop::Style::CollectionQuerying::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for methods invoked via the `::` operator instead # of the `.` operator (like `FileUtils::rmdir` instead of `FileUtils.rmdir`). # @@ -35715,10 +36906,10 @@ class RuboCop::Cop::Style::CombinableLoops < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#85 def on_for(node); end - # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#68 + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#83 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#68 + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#82 def on_numblock(node); end private @@ -36099,26 +37290,26 @@ RuboCop::Cop::Style::CommentedKeyword::SUBCLASS_DEFINITION = T.let(T.unsafe(nil) # # good # x.between?(min, max) # -# source://rubocop//lib/rubocop/cop/style/comparable_between.rb#23 +# source://rubocop//lib/rubocop/cop/style/comparable_between.rb#26 class RuboCop::Cop::Style::ComparableBetween < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/comparable_between.rb#38 + # source://rubocop//lib/rubocop/cop/style/comparable_between.rb#41 def logical_comparison_between_by_max_first?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/comparable_between.rb#29 + # source://rubocop//lib/rubocop/cop/style/comparable_between.rb#32 def logical_comparison_between_by_min_first?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/comparable_between.rb#46 + # source://rubocop//lib/rubocop/cop/style/comparable_between.rb#49 def on_and(node); end private - # source://rubocop//lib/rubocop/cop/style/comparable_between.rb#62 + # source://rubocop//lib/rubocop/cop/style/comparable_between.rb#65 def register_offense(node, min_and_value, max_and_value); end end -# source://rubocop//lib/rubocop/cop/style/comparable_between.rb#26 +# source://rubocop//lib/rubocop/cop/style/comparable_between.rb#29 RuboCop::Cop::Style::ComparableBetween::MSG = T.let(T.unsafe(nil), String) # Enforces the use of `Comparable#clamp` instead of comparison by minimum and maximum. @@ -36207,7 +37398,7 @@ RuboCop::Cop::Style::ComparableClamp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar class RuboCop::Cop::Style::ConcatArrayLiterals < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#34 + # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#66 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#34 @@ -36236,7 +37427,7 @@ RuboCop::Cop::Style::ConcatArrayLiterals::MSG_FOR_PERCENT_LITERALS = T.let(T.uns # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#31 RuboCop::Cop::Style::ConcatArrayLiterals::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# Check for `if` and `case` statements where each branch is used for +# Checks for `if` and `case` statements where each branch is used for # both the assignment and comparison of the same variable # when using the return of the condition can be used instead. # @@ -36576,27 +37767,27 @@ RuboCop::Cop::Style::ConditionalAssignmentHelper::KEYWORD = T.let(T.unsafe(nil), # # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#439 module RuboCop::Cop::Style::ConditionalCorrectorHelper - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#471 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#473 def assignment(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#500 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#502 def correct_branches(corrector, branches); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#477 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#479 def correct_if_branches(corrector, cop, node); end # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#441 def remove_whitespace_in_branches(corrector, branch, condition, column); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#487 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#489 def replace_branch_assignment(corrector, branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#460 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#462 def same_line?(node1, node2); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#464 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#466 def white_space_range(node, column); end end @@ -36728,6 +37919,7 @@ RuboCop::Cop::Style::Copyright::AUTOCORRECT_EMPTY_WARNING = T.let(T.unsafe(nil), RuboCop::Cop::Style::Copyright::MSG = T.let(T.unsafe(nil), String) # Checks for inheritance from `Data.define` to avoid creating the anonymous parent class. +# Inheriting from `Data.define` adds a superfluous level in inheritance tree. # # @example # # bad @@ -36737,6 +37929,9 @@ RuboCop::Cop::Style::Copyright::MSG = T.let(T.unsafe(nil), String) # end # end # +# Person.ancestors +# # => [Person, #, Data, (...)] +# # # good # Person = Data.define(:first_name, :last_name) do # def age @@ -36744,28 +37939,31 @@ RuboCop::Cop::Style::Copyright::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#26 +# Person.ancestors +# # => [Person, Data, (...)] +# +# source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#33 class RuboCop::Cop::Style::DataInheritance < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#48 + # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#55 def data_define?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#36 + # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#43 def on_class(node); end private - # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#55 + # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#62 def correct_parent(parent, corrector); end - # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#65 + # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#72 def range_for_empty_class_body(class_node, data_define); end end -# source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#31 +# source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#38 RuboCop::Cop::Style::DataInheritance::MSG = T.let(T.unsafe(nil), String) # Checks for consistent usage of the `DateTime` class over the @@ -36815,7 +38013,7 @@ class RuboCop::Cop::Style::DateTime < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/date_time.rb#61 def historic_date?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/date_time.rb#70 + # source://rubocop//lib/rubocop/cop/style/date_time.rb#78 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/date_time.rb#70 @@ -36863,8 +38061,9 @@ RuboCop::Cop::Style::DateTime::COERCION_MSG = T.let(T.unsafe(nil), String) # # good # def foo = do_something # -# # good (without parentheses it's a syntax error) +# # good - without parentheses it's a syntax error # def foo() do_something end +# def foo()=do_something # # # bad # def Baz.foo() @@ -36876,21 +38075,29 @@ RuboCop::Cop::Style::DateTime::COERCION_MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#40 +# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#41 class RuboCop::Cop::Style::DefWithParentheses < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#45 + # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#47 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#45 + # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#55 def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#59 + def parentheses_required?(node, arguments_range); end end -# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#43 +# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#45 RuboCop::Cop::Style::DefWithParentheses::MSG = T.let(T.unsafe(nil), String) -# Check for chained `dig` calls that can be collapsed into a single `dig`. +# Checks for chained `dig` calls that can be collapsed into a single `dig`. # # @example # # bad @@ -36910,7 +38117,7 @@ class RuboCop::Cop::Style::DigChain < ::RuboCop::Cop::Base include ::RuboCop::Cop::DigHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/dig_chain.rb#33 + # source://rubocop//lib/rubocop/cop/style/dig_chain.rb#44 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/dig_chain.rb#33 @@ -37450,7 +38657,7 @@ class RuboCop::Cop::Style::DocumentationMethod < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#120 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#120 + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#126 def on_defs(node); end private @@ -38223,7 +39430,7 @@ class RuboCop::Cop::Style::EmptyMethod < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/empty_method.rb#54 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/empty_method.rb#54 + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#65 def on_defs(node); end private @@ -38272,6 +39479,75 @@ RuboCop::Cop::Style::EmptyMethod::MSG_COMPACT = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/cop/style/empty_method.rb#52 RuboCop::Cop::Style::EmptyMethod::MSG_EXPANDED = T.let(T.unsafe(nil), String) +# Checks for empty strings being assigned inside string interpolation. +# +# Empty strings are a meaningless outcome inside of string interpolation, so we remove them. +# Alternatively, when configured to do so, we prioritise using empty strings. +# +# While this cop would also apply to variables that are only going to be used as strings, +# RuboCop can't detect that, so we only check inside of string interpolation. +# +# @example EnforcedStyle: trailing_conditional (default) +# # bad +# "#{condition ? 'foo' : ''}" +# +# # good +# "#{'foo' if condition}" +# +# # bad +# "#{condition ? '' : 'foo'}" +# +# # good +# "#{'foo' unless condition}" +# @example EnforcedStyle: ternary +# # bad +# "#{'foo' if condition}" +# +# # good +# "#{condition ? 'foo' : ''}" +# +# # bad +# "#{'foo' unless condition}" +# +# # good +# "#{condition ? '' : 'foo'}" +# +# source://rubocop//lib/rubocop/cop/style/empty_string_inside_interpolation.rb#40 +class RuboCop::Cop::Style::EmptyStringInsideInterpolation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::Interpolation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/empty_string_inside_interpolation.rb#49 + def on_interpolation(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_string_inside_interpolation.rb#86 + def empty_branch_outcome?(branch); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_string_inside_interpolation.rb#82 + def empty_else_outcome?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_string_inside_interpolation.rb#78 + def empty_if_outcome?(node); end + + # source://rubocop//lib/rubocop/cop/style/empty_string_inside_interpolation.rb#92 + def ternary_style_autocorrect(node, outcome, condition); end +end + +# source://rubocop//lib/rubocop/cop/style/empty_string_inside_interpolation.rb#46 +RuboCop::Cop::Style::EmptyStringInsideInterpolation::MSG_TERNARY = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/empty_string_inside_interpolation.rb#45 +RuboCop::Cop::Style::EmptyStringInsideInterpolation::MSG_TRAILING_CONDITIONAL = T.let(T.unsafe(nil), String) + # Checks ensures source files have no utf-8 encoding comments. # # @example @@ -38744,7 +40020,7 @@ class RuboCop::Cop::Style::ExactRegexpMatch < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#32 def exact_regexp_match(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#40 + # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#52 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#40 @@ -39013,34 +40289,36 @@ RuboCop::Cop::Style::ExplicitBlockArgument::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Style::ExponentialNotation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#68 + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#69 def on_float(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#79 + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#80 def engineering?(node); end - # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#90 - def integral(node); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#91 + def integral?(node); end - # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#110 + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#111 def message(_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#95 + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#96 def offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#74 + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#75 def scientific?(node); end end -# source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#62 +# source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#63 RuboCop::Cop::Style::ExponentialNotation::MESSAGES = T.let(T.unsafe(nil), Hash) # Suggests `ENV.fetch` for the replacement of `ENV[]`. @@ -39049,7 +40327,19 @@ RuboCop::Cop::Style::ExponentialNotation::MESSAGES = T.let(T.unsafe(nil), Hash) # On the other hand, `ENV.fetch` raises `KeyError` or returns the explicitly # specified default value. # -# @example +# @example DefaultToNil: true (default) +# # bad +# ENV['X'] +# x = ENV['X'] +# +# # good +# ENV.fetch('X', nil) +# x = ENV.fetch('X', nil) +# +# # also good +# !ENV['X'] +# ENV['X'].some_method # (e.g. `.nil?`) +# @example DefaultToNil: false # # bad # ENV['X'] # x = ENV['X'] @@ -39062,14 +40352,14 @@ RuboCop::Cop::Style::ExponentialNotation::MESSAGES = T.let(T.unsafe(nil), Hash) # !ENV['X'] # ENV['X'].some_method # (e.g. `.nil?`) # -# source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#25 +# source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#38 class RuboCop::Cop::Style::FetchEnvVar < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#32 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#46 def env_with_bracket?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#36 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#50 def on_send(node); end private @@ -39084,12 +40374,12 @@ class RuboCop::Cop::Style::FetchEnvVar < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#106 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#128 def allowable_use?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#49 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#71 def allowed_var?(node); end # The following are allowed cases: @@ -39099,27 +40389,35 @@ class RuboCop::Cop::Style::FetchEnvVar < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#114 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#136 def assigned?(node); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#63 + def default_to_nil?; end + # Check if the node is a receiver and receives a message with dot syntax. # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#90 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#112 def message_chained_with_dot?(node); end - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#127 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#149 def new_code(name_node); end + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#67 + def offense_message; end + # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#85 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#107 def offensive?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#121 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#143 def or_lhs?(node); end # Avoid offending in the following cases: @@ -39127,27 +40425,32 @@ class RuboCop::Cop::Style::FetchEnvVar < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#81 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#103 def partial_matched?(node, condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#54 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#76 def used_as_flag?(node); end - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#61 - def used_if_condition_in_body(node); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#83 + def used_if_condition_in_body?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#70 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#92 def used_in_condition?(node, condition); end end -# source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#28 -RuboCop::Cop::Style::FetchEnvVar::MSG = T.let(T.unsafe(nil), String) +# source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#42 +RuboCop::Cop::Style::FetchEnvVar::MSG_WITHOUT_NIL = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#41 +RuboCop::Cop::Style::FetchEnvVar::MSG_WITH_NIL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#29 +# source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#43 RuboCop::Cop::Style::FetchEnvVar::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Prefer to use `File.empty?('path/to/file')` when checking if a file is empty. @@ -39588,10 +40891,10 @@ class RuboCop::Cop::Style::For < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/for.rb#53 def on_for(node); end - # source://rubocop//lib/rubocop/cop/style/for.rb#64 + # source://rubocop//lib/rubocop/cop/style/for.rb#80 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/for.rb#64 + # source://rubocop//lib/rubocop/cop/style/for.rb#79 def on_numblock(node); end private @@ -40238,16 +41541,16 @@ class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#123 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#123 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#130 def on_defs(node); end # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#140 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#132 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#138 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#132 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#137 def on_numblock(node); end private @@ -40429,32 +41732,32 @@ class RuboCop::Cop::Style::HashConversion < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#137 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#145 def allowed_splat_argument?; end - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#130 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#138 def args_to_hash(args); end - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#117 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#123 def multi_argument(node); end - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#94 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#95 def register_offense_for_hash(node, hash_argument); end - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#103 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#104 def register_offense_for_zip_method(node, zip_method); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#113 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#114 def requires_parens?(node); end - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#71 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#72 def single_argument(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#88 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#89 def use_zip_method_without_argument?(first_argument); end end @@ -40525,10 +41828,10 @@ class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#101 def on_block_pass(node); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#65 + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#77 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#65 + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#76 def on_numblock(node); end private @@ -40701,7 +42004,7 @@ class RuboCop::Cop::Style::HashFetchChain < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/hash_fetch_chain.rb#50 def diggable?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_fetch_chain.rb#54 + # source://rubocop//lib/rubocop/cop/style/hash_fetch_chain.rb#70 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/hash_fetch_chain.rb#54 @@ -41293,24 +42596,24 @@ RuboCop::Cop::Style::IdenticalConditionalBranches::MSG = T.let(T.unsafe(nil), St # Corrector to correct conditional assignment in `if` statements. # -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#569 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#571 class RuboCop::Cop::Style::IfCorrector extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper class << self - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#574 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#576 def correct(corrector, cop, node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#578 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#580 def move_assignment_inside_condition(corrector, node); end private - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#592 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#594 def extract_tail_branches(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#599 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#601 def move_branch_inside_condition(corrector, branch, condition, assignment, column); end end end @@ -41432,6 +42735,17 @@ RuboCop::Cop::Style::IfInsideElse::MSG = T.let(T.unsafe(nil), String) # end # ---- # +# The code `def method_name = body if condition` is considered a bad case by +# `Style/AmbiguousEndlessMethodDefinition` cop. So, to respect the user's intention to use +# an endless method definition in the `if` body, the following code is allowed: +# +# [source,ruby] +# ---- +# if condition +# def method_name = body +# end +# ---- +# # NOTE: It is allowed when `defined?` argument has an undefined value, # because using the modifier form causes the following incompatibility: # @@ -41470,7 +42784,7 @@ RuboCop::Cop::Style::IfInsideElse::MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#63 +# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#74 class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::LineLengthHelp @@ -41480,120 +42794,130 @@ class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#80 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#92 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#171 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#189 def allowed_patterns; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#231 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#258 def another_statement_on_same_line?(node); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#132 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#150 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#285 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#312 def comment_on_node_line(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#104 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#124 def defined_argument_is_undefined?(if_node, defined_node); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#96 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#116 def defined_nodes(condition); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#272 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#112 + def endless_method?(body); end + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#299 def extract_heredoc_from(last_argument); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#215 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#242 def line_length_enabled_at_line?(line); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#124 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#142 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#219 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#246 def named_capture_in_condition?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#223 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#250 def non_eligible_node?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#227 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#254 def non_simple_if_unless?(node); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#114 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#134 def pattern_matching_nodes(condition); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#289 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#316 def remove_comment(corrector, _node, comment); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#279 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#306 def remove_heredoc(corrector, heredoc); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#141 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#159 def replacement_for_modifier_form(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#265 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#292 def to_modifier_form_with_move_comment(node, indentation, comment); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#245 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#272 def to_normal_form(node, indentation); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#253 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#280 def to_normal_form_with_heredoc(node, indentation, heredoc); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#165 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#183 def too_long_due_to_comment_after_modifier?(node, comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#160 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#178 def too_long_due_to_modifier?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#206 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#233 + def too_long_line_based_on_allow_qualified_name?(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#224 def too_long_line_based_on_allow_uri?(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#189 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#207 def too_long_line_based_on_config?(range, line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#198 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#216 def too_long_line_based_on_ignore_cop_directives?(range, line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#176 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#194 def too_long_single_line?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#76 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#87 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#71 +# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#82 RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_MODIFIER = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#74 +# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#85 RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_NORMAL = T.let(T.unsafe(nil), String) # Checks for if and unless statements used as modifiers of other if or @@ -41623,7 +42947,7 @@ class RuboCop::Cop::Style::IfUnlessModifierOfIfUnless < ::RuboCop::Cop::Base include ::RuboCop::Cop::StatementModifier extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#31 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#32 def on_if(node); end end @@ -41891,13 +43215,13 @@ class RuboCop::Cop::Style::InfiniteLoop < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#44 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#44 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#49 def on_until_post(node); end # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#40 def on_while(node); end - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#40 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#48 def on_while_post(node); end private @@ -41971,7 +43295,7 @@ end # source://rubocop//lib/rubocop/cop/style/inline_comment.rb#21 RuboCop::Cop::Style::InlineComment::MSG = T.let(T.unsafe(nil), String) -# Check for usages of not (`not` or `!`) called on a method +# Checks for usages of not (`not` or `!`) called on a method # when an inverse of that method can be used instead. # # Methods that can be inverted by a not (`not` or `!`) should be defined @@ -42018,13 +43342,13 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#92 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#78 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#90 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#92 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#109 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#92 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#108 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#78 @@ -42086,7 +43410,7 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base def safe_navigation_incompatible?(node); end class << self - # source://rubocop-rails/2.31.0/lib/rubocop-rails.rb#21 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#56 def autocorrect_incompatible_with; end end end @@ -42259,45 +43583,129 @@ RuboCop::Cop::Style::IpAddresses::IPV6_MAX_SIZE = T.let(T.unsafe(nil), Integer) # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#25 RuboCop::Cop::Style::IpAddresses::MSG = T.let(T.unsafe(nil), String) -# Checks for assignments to a local `it` variable inside a block +# Checks for local variables and method parameters named `it`, # where `it` can refer to the first anonymous parameter as of Ruby 3.4. +# Use a meaningful variable name instead. # -# Although Ruby allows reassigning `it` in these cases, it could +# NOTE: Although Ruby allows reassigning `it` in these cases, it could # cause confusion if `it` is used as a block parameter elsewhere. -# For consistency, this also applies to numblocks and blocks with -# parameters, even though `it` cannot be used in those cases. # # @example # # bad -# foo { it = 5 } -# foo { |bar| it = bar } -# foo { it = _2 } +# it = 5 # -# # good - use a different variable name -# foo { var = 5 } -# foo { |bar| var = bar } -# foo { bar = _2 } +# # good +# var = 5 +# +# # bad +# def foo(it) +# end +# +# # good +# def foo(arg) +# end +# +# # bad +# def foo(it = 5) +# end +# +# # good +# def foo(arg = 5) +# end +# +# # bad +# def foo(*it) +# end +# +# # good +# def foo(*args) +# end +# +# # bad +# def foo(it:) +# end +# +# # good +# def foo(arg:) +# end +# +# # bad +# def foo(it: 5) +# end +# +# # good +# def foo(arg: 5) +# end +# +# # bad +# def foo(**it) +# end +# +# # good +# def foo(**kwargs) +# end +# +# # bad +# def foo(&it) +# end +# +# # good +# def foo(&block) +# end # -# source://rubocop//lib/rubocop/cop/style/it_assignment.rb#24 +# source://rubocop//lib/rubocop/cop/style/it_assignment.rb#75 class RuboCop::Cop::Style::ItAssignment < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/it_assignment.rb#27 + # source://rubocop//lib/rubocop/cop/style/it_assignment.rb#83 + def on_arg(node); end + + # source://rubocop//lib/rubocop/cop/style/it_assignment.rb#86 + def on_blockarg(node); end + + # source://rubocop//lib/rubocop/cop/style/it_assignment.rb#87 + def on_kwarg(node); end + + # source://rubocop//lib/rubocop/cop/style/it_assignment.rb#88 + def on_kwoptarg(node); end + + # source://rubocop//lib/rubocop/cop/style/it_assignment.rb#89 + def on_kwrestarg(node); end + + # source://rubocop//lib/rubocop/cop/style/it_assignment.rb#78 def on_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/it_assignment.rb#84 + def on_optarg(node); end + + # source://rubocop//lib/rubocop/cop/style/it_assignment.rb#85 + def on_restarg(node); end end -# source://rubocop//lib/rubocop/cop/style/it_assignment.rb#25 +# source://rubocop//lib/rubocop/cop/style/it_assignment.rb#76 RuboCop::Cop::Style::ItAssignment::MSG = T.let(T.unsafe(nil), String) # Checks for blocks with one argument where `it` block parameter can be used. # -# It provides three `EnforcedStyle` options: +# It provides four `EnforcedStyle` options: +# +# 1. `allow_single_line` (default) ... Always uses the `it` block parameter in a single line. +# 2. `only_numbered_parameters` ... Detects only numbered block parameters. +# 3. `always` ... Always uses the `it` block parameter. +# 4. `disallow` ... Disallows the `it` block parameter. # -# 1. `only_numbered_parameters` (default) ... Detects only numbered block parameters. -# 2. `always` ... Always uses the `it` block parameter. -# 3. `disallow` ... Disallows the `it` block parameter. +# A single numbered parameter is detected when `allow_single_line`, +# `only_numbered_parameters`, or `always`. # -# A single numbered parameter is detected when `only_numbered_parameters` or `always`. +# @example EnforcedStyle: allow_single_line (default) +# # bad +# block do +# do_something(it) +# end +# block { do_something(_1) } # -# @example EnforcedStyle: only_numbered_parameters (default) +# # good +# block { do_something(it) } +# block { |named_param| do_something(named_param) } +# @example EnforcedStyle: only_numbered_parameters # # bad # block { do_something(_1) } # @@ -42319,32 +43727,35 @@ RuboCop::Cop::Style::ItAssignment::MSG = T.let(T.unsafe(nil), String) # block { do_something(_1) } # block { |named_param| do_something(named_param) } # -# source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#40 +# source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#53 class RuboCop::Cop::Style::ItBlockParameter < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::TargetRubyVersion extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#50 + # source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#64 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#80 + # source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#94 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#67 + # source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#81 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#92 + # source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#111 def find_block_variables(node, block_argument_name); end end -# source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#46 -RuboCop::Cop::Style::ItBlockParameter::MSG_AVOID_IT_BLOCK_PARAMETER = T.let(T.unsafe(nil), String) +# source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#59 +RuboCop::Cop::Style::ItBlockParameter::MSG_AVOID_IT_PARAMETER = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#60 +RuboCop::Cop::Style::ItBlockParameter::MSG_AVOID_IT_PARAMETER_MULTILINE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#45 -RuboCop::Cop::Style::ItBlockParameter::MSG_USE_IT_BLOCK_PARAMETER = T.let(T.unsafe(nil), String) +# source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#58 +RuboCop::Cop::Style::ItBlockParameter::MSG_USE_IT_PARAMETER = T.let(T.unsafe(nil), String) # When passing an existing hash as keyword arguments, provide additional arguments # directly rather than using `merge`. @@ -42481,10 +43892,10 @@ class RuboCop::Cop::Style::Lambda < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/lambda.rb#64 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/lambda.rb#64 + # source://rubocop//lib/rubocop/cop/style/lambda.rb#80 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/lambda.rb#64 + # source://rubocop//lib/rubocop/cop/style/lambda.rb#79 def on_numblock(node); end private @@ -42539,7 +43950,7 @@ class RuboCop::Cop::Style::LambdaCall < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#28 + # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#47 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#28 @@ -42849,10 +44260,10 @@ class RuboCop::Cop::Style::MagicCommentFormat::CommentRange # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#125 def directives; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#116 def loc(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#116 def text(*_arg0, **_arg1, &_arg2); end # A magic comment can contain one value (normal style) or @@ -42925,7 +44336,7 @@ class RuboCop::Cop::Style::MapCompactWithConditionalBlock < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#51 def conditional_block(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#76 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#92 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#76 @@ -43043,10 +44454,10 @@ class RuboCop::Cop::Style::MapIntoArray < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#113 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#113 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#130 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#113 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#129 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#67 @@ -43128,22 +44539,25 @@ class RuboCop::Cop::Style::MapToHash < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion + # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#49 + def destructuring_argument(param0 = T.unsafe(nil)); end + # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#41 def map_to_h(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#52 + # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#66 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#52 + # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#57 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#68 + # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#71 def autocorrect(corrector, to_h, map); end class << self - # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#48 + # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#53 def autocorrect_incompatible_with; end end end @@ -43178,7 +44592,7 @@ class RuboCop::Cop::Style::MapToSet < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#34 def map_to_set?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#41 + # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#50 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#41 @@ -43186,7 +44600,7 @@ class RuboCop::Cop::Style::MapToSet < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#56 + # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#54 def autocorrect(corrector, to_set, map); end end @@ -43307,6 +44721,20 @@ RuboCop::Cop::Style::MapToSet::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # class Foo # bar :baz # end +# @example AllowedMethods: ["puts", "print"] +# +# # good +# puts "Hello world" +# print "Hello world" +# # still enforces parentheses on other methods +# array.delete(e) +# @example AllowedPatterns: ["^assert"] +# +# # good +# assert_equal 'test', x +# assert_match(/foo/, bar) +# # still enforces parentheses on other methods +# array.delete(e) # @example AllowParenthesesInMultilineCall: false (default) # # # bad @@ -43384,7 +44812,7 @@ RuboCop::Cop::Style::MapToSet::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # okay with `^assert` listed in `AllowedPatterns` # assert_equal 'test', x # -# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#204 +# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#220 class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::AllowedMethods @@ -43394,30 +44822,30 @@ class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#219 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#238 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#219 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#235 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#219 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#239 def on_yield(node); end private - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#227 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#243 def args_begin(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#235 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#251 def args_end(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#239 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#255 def args_parenthesized?(node); end class << self - # source://rubocop-rails/2.31.0/lib/rubocop-rails.rb#29 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#231 def autocorrect_incompatible_with; end end end @@ -43462,12 +44890,12 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#232 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#230 def assigned_before?(node, target); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#240 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#238 def assignment_in_condition?(node); end # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#34 @@ -43520,7 +44948,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#250 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#248 def forwards_anonymous_rest_arguments?(node); end # @return [Boolean] @@ -43540,7 +44968,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#236 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#234 def inside_string_interpolation?(node); end # Require hash value omission be enclosed in parentheses to prevent the following issue: @@ -43677,7 +45105,7 @@ class RuboCop::Cop::Style::MethodCallWithoutArgsParentheses < ::RuboCop::Cop::Ba include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#37 + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#48 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#37 @@ -43762,13 +45190,13 @@ class RuboCop::Cop::Style::MethodCalledOnDoEndBlock < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#29 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#41 + # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#51 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#29 + # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#39 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#29 + # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#38 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#41 @@ -43877,7 +45305,7 @@ class RuboCop::Cop::Style::MethodDefParentheses < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#105 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#105 + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#122 def on_defs(node); end private @@ -43940,7 +45368,7 @@ class RuboCop::Cop::Style::MinMax < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/min_max.rb#22 def on_array(node); end - # source://rubocop//lib/rubocop/cop/style/min_max.rb#22 + # source://rubocop//lib/rubocop/cop/style/min_max.rb#33 def on_return(node); end private @@ -43990,23 +45418,26 @@ class RuboCop::Cop::Style::MinMaxComparison < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#46 + # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#47 + def comparison_condition(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#54 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#72 + # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#80 def autocorrect(corrector, node, replacement); end - # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#64 + # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#72 def preferred_method(operator, lhs, rhs, if_branch, else_branch); end end # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#44 -RuboCop::Cop::Style::MinMaxComparison::COMPARISON_OPERATORS = T.let(T.unsafe(nil), Array) +RuboCop::Cop::Style::MinMaxComparison::COMPARISON_OPERATORS = T.let(T.unsafe(nil), Set) # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#42 -RuboCop::Cop::Style::MinMaxComparison::GRATER_OPERATORS = T.let(T.unsafe(nil), Array) +RuboCop::Cop::Style::MinMaxComparison::GREATER_OPERATORS = T.let(T.unsafe(nil), Array) # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#43 RuboCop::Cop::Style::MinMaxComparison::LESS_OPERATORS = T.let(T.unsafe(nil), Array) @@ -44219,7 +45650,7 @@ class RuboCop::Cop::Style::MissingRespondToMissing < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#57 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#57 + # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#63 def on_defs(node); end private @@ -44268,7 +45699,7 @@ class RuboCop::Cop::Style::MixinGrouping < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#40 def on_class(node); end - # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#40 + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#49 def on_module(node); end private @@ -44522,10 +45953,10 @@ class RuboCop::Cop::Style::MultilineBlockChain < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#30 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#30 + # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#47 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#30 + # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#46 def on_numblock(node); end end @@ -44556,10 +45987,10 @@ class RuboCop::Cop::Style::MultilineIfModifier < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#43 + # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#45 def indented_body(body, node); end - # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#35 + # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#37 def to_normal_if(node); end end @@ -44734,7 +46165,7 @@ class RuboCop::Cop::Style::MultilineMethodSignature < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#27 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#27 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#37 def on_defs(node); end private @@ -45433,7 +46864,7 @@ class RuboCop::Cop::Style::NegatedWhile < ::RuboCop::Cop::Base include ::RuboCop::Cop::NegativeConditional extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/negated_while.rb#29 + # source://rubocop//lib/rubocop/cop/style/negated_while.rb#36 def on_until(node); end # source://rubocop//lib/rubocop/cop/style/negated_while.rb#29 @@ -45494,10 +46925,10 @@ class RuboCop::Cop::Style::NestedModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#26 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#25 def on_until(node); end # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22 @@ -45563,7 +46994,7 @@ class RuboCop::Cop::Style::NestedParenthesizedCalls < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#35 + # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#47 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#35 @@ -45711,19 +47142,19 @@ class RuboCop::Cop::Style::Next < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/next.rb#100 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#109 + # source://rubocop//lib/rubocop/cop/style/next.rb#113 def on_for(node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#100 + # source://rubocop//lib/rubocop/cop/style/next.rb#107 def on_itblock(node); end # source://rubocop//lib/rubocop/cop/style/next.rb#94 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/style/next.rb#100 + # source://rubocop//lib/rubocop/cop/style/next.rb#106 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#109 + # source://rubocop//lib/rubocop/cop/style/next.rb#112 def on_until(node); end # source://rubocop//lib/rubocop/cop/style/next.rb#109 @@ -45990,7 +47421,7 @@ class RuboCop::Cop::Style::NonNilCheck < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#73 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#73 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#84 def on_defs(node); end # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#64 @@ -46147,7 +47578,7 @@ RuboCop::Cop::Style::NumberedParameters::MSG_MULTI_LINE = T.let(T.unsafe(nil), S class RuboCop::Cop::Style::NumberedParametersLimit < ::RuboCop::Cop::Base extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#27 def max=(value); end # source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#32 @@ -46314,7 +47745,7 @@ class RuboCop::Cop::Style::NumericLiterals < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#54 def min_digits=(value); end # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#60 @@ -46510,13 +47941,13 @@ class RuboCop::Cop::Style::ObjectThen < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/object_then.rb#35 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/object_then.rb#43 + # source://rubocop//lib/rubocop/cop/style/object_then.rb#48 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/object_then.rb#35 + # source://rubocop//lib/rubocop/cop/style/object_then.rb#41 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/object_then.rb#35 + # source://rubocop//lib/rubocop/cop/style/object_then.rb#40 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/style/object_then.rb#43 @@ -46844,7 +48275,7 @@ class RuboCop::Cop::Style::OptionalBooleanParameter < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#43 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#43 + # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#52 def on_defs(node); end private @@ -46884,16 +48315,16 @@ RuboCop::Cop::Style::OptionalBooleanParameter::MSG = T.let(T.unsafe(nil), String class RuboCop::Cop::Style::OrAssignment < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#65 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#66 def on_gvasgn(node); end # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#51 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#64 def on_ivasgn(node); end # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 @@ -46938,15 +48369,15 @@ RuboCop::Cop::Style::OrAssignment::MSG = T.let(T.unsafe(nil), String) # b = 2 # c = 3 # -# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#25 +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#23 class RuboCop::Cop::Style::ParallelAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RescueNode extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#115 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#110 def implicit_self_getter?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#31 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#29 def on_masgn(node); end private @@ -46955,50 +48386,49 @@ class RuboCop::Cop::Style::ParallelAssignment < ::RuboCop::Cop::Base # This makes the sorting algorithm work for expressions such as # `self.a, self.b = b, a`. # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#108 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#103 def add_self_to_getters(right_elements); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#61 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#62 def allowed_lhs?(elements); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#55 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#56 def allowed_masign?(lhs_elements, rhs_elements); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#67 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#68 def allowed_rhs?(node); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#75 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#76 def assignment_corrector(node, rhs, order); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#48 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#49 def autocorrect(corrector, node, rhs); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#91 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#92 def find_valid_order(left_elements, right_elements); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#174 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#186 def modifier_statement?(node); end end -# Helper class necessitated by silly design of TSort prior to Ruby 2.1 -# Newer versions have a better API, but that doesn't help us +# Topologically sorts the assignments with Kahn's algorithm. +# https://en.wikipedia.org/wiki/Topological_sorting#Kahn's_algorithm # -# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#119 +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#114 class RuboCop::Cop::Style::ParallelAssignment::AssignmentSorter - include ::TSort extend ::RuboCop::AST::NodePattern::Macros # @return [AssignmentSorter] a new instance of AssignmentSorter # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#132 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#126 def initialize(assignments); end # `lhs` is an assignment method call like `obj.attr=` or `ary[idx]=`. @@ -47006,121 +48436,124 @@ class RuboCop::Cop::Style::ParallelAssignment::AssignmentSorter # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#161 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#173 def accesses?(rhs, lhs); end + # Returns all the assignments which must come after `assignment` + # (due to dependencies on the previous value of the assigned var) + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#152 + def dependencies_for_assignment(assignment); end + # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#154 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#166 def dependency?(lhs, rhs); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#130 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#124 def matching_calls(param0, param1, param2); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#140 - def tsort_each_child(assignment); end - - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#136 - def tsort_each_node(*_arg0, **_arg1, &_arg2); end + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#130 + def tsort; end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#127 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#121 def uses_var?(param0, param1); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#124 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#118 def var_name(param0 = T.unsafe(nil)); end end # An internal class for correcting parallel assignment # -# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#181 +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#193 class RuboCop::Cop::Style::ParallelAssignment::GenericCorrector include ::RuboCop::Cop::Alignment # @return [GenericCorrector] a new instance of GenericCorrector # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#186 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#198 def initialize(node, rhs, modifier, config, new_elements); end # Returns the value of attribute config. # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#184 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#196 def config; end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#194 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#206 def correction; end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#198 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#210 def correction_range; end # Returns the value of attribute node. # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#184 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#196 def node; end # Returns the value of attribute rescue_result. # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#184 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#196 def rescue_result; end # Returns the value of attribute rhs. # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#184 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#196 def rhs; end protected - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#204 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#216 def assignment; end private - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#225 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#237 def cop_config; end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#221 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#233 def extract_sources(node); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#210 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#222 def source(node, loc); end end -# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#29 +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#27 RuboCop::Cop::Style::ParallelAssignment::MSG = T.let(T.unsafe(nil), String) # An internal class for correcting parallel assignment # guarded by if, unless, while, or until # -# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#267 +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#279 class RuboCop::Cop::Style::ParallelAssignment::ModifierCorrector < ::RuboCop::Cop::Style::ParallelAssignment::GenericCorrector - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#268 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#280 def correction; end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#277 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#289 def correction_range; end private - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#283 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#295 def modifier_range(node); end end # An internal class for correcting parallel assignment # protected by rescue # -# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#232 +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#244 class RuboCop::Cop::Style::ParallelAssignment::RescueCorrector < ::RuboCop::Cop::Style::ParallelAssignment::GenericCorrector - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#233 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#245 def correction; end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#244 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#256 def correction_range; end private - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#255 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#267 def begin_correction(rescue_result); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#250 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#262 def def_correction(rescue_result); end end @@ -47183,7 +48616,7 @@ class RuboCop::Cop::Style::ParenthesesAroundCondition < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#62 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#68 + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#71 def on_until(node); end # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#68 @@ -47253,7 +48686,7 @@ class RuboCop::Cop::Style::PercentLiteralDelimiters < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#30 def on_array(node); end - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#38 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#41 def on_dstr(node); end # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#34 @@ -47468,7 +48901,7 @@ class RuboCop::Cop::Style::PreferredHashMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#43 + # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#52 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#43 @@ -47514,10 +48947,10 @@ class RuboCop::Cop::Style::Proc < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/proc.rb#24 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/proc.rb#24 + # source://rubocop//lib/rubocop/cop/style/proc.rb#33 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/proc.rb#24 + # source://rubocop//lib/rubocop/cop/style/proc.rb#32 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/style/proc.rb#22 @@ -47815,7 +49248,7 @@ class RuboCop::Cop::Style::RedundantArgument < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#64 + # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#76 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#64 @@ -47892,6 +49325,39 @@ RuboCop::Cop::Style::RedundantArrayConstructor::MSG = T.let(T.unsafe(nil), Strin # source://rubocop//lib/rubocop/cop/style/redundant_array_constructor.rb#30 RuboCop::Cop::Style::RedundantArrayConstructor::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Checks for redundant calls of `Array#flatten`. +# +# `Array#join` joins nested arrays recursively, so flattening an array +# beforehand is redundant. +# +# @example +# # bad +# x.flatten.join +# x.flatten(1).join +# +# # good +# x.join +# +# source://rubocop//lib/rubocop/cop/style/redundant_array_flatten.rb#26 +class RuboCop::Cop::Style::RedundantArrayFlatten < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_array_flatten.rb#34 + def flatten_join?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_array_flatten.rb#46 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_array_flatten.rb#38 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_array_flatten.rb#29 +RuboCop::Cop::Style::RedundantArrayFlatten::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_array_flatten.rb#31 +RuboCop::Cop::Style::RedundantArrayFlatten::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for redundant assignment before returning. # # @example @@ -47933,7 +49399,7 @@ class RuboCop::Cop::Style::RedundantAssignment < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#50 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#50 + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#53 def on_defs(node); end # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#46 @@ -48034,80 +49500,98 @@ class RuboCop::Cop::Style::RedundantBegin < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#76 def offensive_kwbegins(param0); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#88 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#111 def on_block(node); end + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#94 + def on_case(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#97 + def on_case_match(node); end + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#80 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#80 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#86 def on_defs(node); end # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#88 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#121 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#100 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#123 def on_kwbegin(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#88 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#120 def on_numblock(node); end + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#109 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#99 + def on_while(node); end + private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#108 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#131 def allowable_kwbegin?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#182 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#205 def begin_block_has_multiline_statements?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#174 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#197 def condition_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#186 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#211 def contain_rescue_or_ensure?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#167 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#190 def correct_modifier_form_after_multiline_begin_block(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#178 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#201 def empty_begin?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#115 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#228 + def inspect_branches(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#138 def register_offense(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#144 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#167 def remove_begin(corrector, offense_range, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#132 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#155 def replace_begin_with_statement(corrector, offense_range, node); end # Restore comments that occur between "begin" and "first_child". # These comments will be moved to above the assignment line. # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#154 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#177 def restore_removed_comments(corrector, offense_range, node, first_child); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#161 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#184 def use_modifier_form_after_multiline_begin_block?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#199 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#224 def valid_begin_assignment?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#192 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#217 def valid_context_using_only_begin?(node); end class << self @@ -48614,7 +50098,7 @@ RuboCop::Cop::Style::RedundantDoubleSplatHashBraces::MSG = T.let(T.unsafe(nil), class RuboCop::Cop::Style::RedundantEach < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#43 + # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#59 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#43 @@ -48746,7 +50230,7 @@ class RuboCop::Cop::Style::RedundantFetchBlock < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#55 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#89 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#81 def rails_cache?(param0 = T.unsafe(nil)); end # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#48 @@ -48754,38 +50238,28 @@ class RuboCop::Cop::Style::RedundantFetchBlock < ::RuboCop::Cop::Base private - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#74 - def basic_literal?(node); end - - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#104 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#96 def build_bad_method(send, body); end - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#97 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#89 def build_good_method(send, body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#111 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#103 def check_for_constant?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#115 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#107 def check_for_string?; end - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#78 - def const_type?(node); end - - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#93 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#85 def fetch_range(send, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#82 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#74 def should_not_check?(send, body); end end @@ -48879,7 +50353,7 @@ RuboCop::Cop::Style::RedundantFileExtensionInRequire::RESTRICT_ON_SEND = T.let(T class RuboCop::Cop::Style::RedundantFilterChain < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#81 + # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#90 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#81 @@ -48970,43 +50444,43 @@ class RuboCop::Cop::Style::RedundantFormat < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#132 + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#137 def all_fields_literal?(string, arguments); end - # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#219 + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#224 def argument_value(argument); end - # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#215 + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#220 def argument_values(arguments); end - # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#251 + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#256 def complex_value(complex_node); end # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#109 def detect_unnecessary_fields(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#237 + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#242 def dsym_value(dsym_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#150 + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#155 def find_argument(sequence, arguments, hash); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#191 + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#196 def float?(argument); end - # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#241 + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#246 def hash_value(hash_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#187 + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#192 def integer?(argument); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#163 + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#168 def matching_argument?(sequence, argument); end # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#105 @@ -49014,16 +50488,16 @@ class RuboCop::Cop::Style::RedundantFormat < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#181 + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#186 def numeric?(argument); end # Add correct quotes to the formatted string, preferring retaining the existing # quotes if possible. # - # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#197 + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#202 def quote(string, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#247 + # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#252 def rational_value(rational_node); end # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#121 @@ -49039,7 +50513,7 @@ RuboCop::Cop::Style::RedundantFormat::MSG = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/cop/style/redundant_format.rb#59 RuboCop::Cop::Style::RedundantFormat::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) -# Check for uses of `Object#freeze` on immutable objects. +# Checks for uses of `Object#freeze` on immutable objects. # # NOTE: `Regexp` and `Range` literals are frozen objects since Ruby 3.0. # @@ -49370,7 +50844,7 @@ RuboCop::Cop::Style::RedundantInterpolationUnfreeze::MSG = T.let(T.unsafe(nil), # source://rubocop//lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb#28 RuboCop::Cop::Style::RedundantInterpolationUnfreeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# Check for redundant line continuation. +# Checks for redundant line continuation. # # This cop marks a line continuation as redundant if removing the backslash # does not result in a syntax error. @@ -49560,28 +51034,25 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::Parentheses extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#34 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#31 def allowed_pin_operator?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#293 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#331 def first_send_argument?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#298 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#336 def first_super_argument?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#303 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#341 def first_yield_argument?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#181 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#190 def interpolation?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#28 - def method_node_and_args(param0 = T.unsafe(nil)); end - - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#36 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#33 def on_begin(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#31 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#28 def rescue?(param0 = T.unsafe(nil)); end # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#23 @@ -49591,145 +51062,170 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#197 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#215 def allow_in_multiline_conditions?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#70 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#68 def allowed_ancestor?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#63 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#61 def allowed_expression?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#75 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#73 def allowed_multiple_expression?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#84 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#82 def allowed_ternary?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#183 - def argument_of_parenthesized_method_call?(begin_node); end + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#192 + def argument_of_parenthesized_method_call?(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#307 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#345 def call_chain_starts_with_int?(begin_node, send_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#133 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#219 + def call_node?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#138 def check(begin_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#201 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#223 def check_send(begin_node, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#211 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#235 def check_unary(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#235 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#258 def disallowed_literal?(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#313 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#268 + def disallowed_one_line_pattern_matching?(begin_node, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#351 def do_end_block_in_method_chain?(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#111 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#109 def empty_parentheses?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#148 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#153 def find_offense_message(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#116 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#114 def first_arg_begins_with_hash_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#282 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#320 def first_argument?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#56 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#54 def ignore_syntax?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#231 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#123 + def in_pattern_matching_in_method_argument?(begin_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#254 def keyword_ancestor?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#256 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#288 def keyword_with_redundant_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#97 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#95 def like_method_argument_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#191 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#209 def method_call_parentheses_required?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#269 - def method_call_with_redundant_parentheses?(node); end + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#301 + def method_call_with_redundant_parentheses?(begin_node, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#125 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#130 def method_chain_begins_with_hash_literal(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#104 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#102 def multiline_control_flow_statements?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#221 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#244 def offense(node, msg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#278 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#201 + def oneline_rescue_parentheses_required?(begin_node, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#316 def only_begin_arg?(args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#48 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#45 def parens_allowed?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#245 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#277 def raised_to_power_negative_numeric?(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#227 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#309 + def singular_parenthesized_parent?(begin_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#250 def suspect_unary?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#90 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#88 def ternary_parentheses_required?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#44 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#41 def variable?(node); end end @@ -49861,7 +51357,7 @@ class RuboCop::Cop::Style::RedundantRegexpArgument < ::RuboCop::Cop::Base include ::RuboCop::Cop::StringLiteralsHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#48 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#61 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#48 @@ -50133,7 +51629,7 @@ class RuboCop::Cop::Style::RedundantReturn < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#69 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#69 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#72 def on_defs(node); end # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#63 @@ -50254,47 +51750,47 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base # Assignment of self.x # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#68 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#74 def on_and_asgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#84 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#87 def on_args(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#116 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#119 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#88 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#91 def on_blockarg(node); end # Using self.x to distinguish from local variable x # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#79 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#82 def on_def(node); end # Using self.x to distinguish from local variable x # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#79 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#85 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#123 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#126 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#100 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#103 def on_in_pattern(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#116 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#124 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#96 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#99 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#92 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#95 def on_masgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#116 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#123 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#73 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#76 def on_op_asgn(node); end # Assignment of self.x @@ -50302,35 +51798,35 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#68 def on_or_asgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#104 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#107 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#123 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#138 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#123 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#137 def on_while(node); end private - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#190 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#193 def add_lhs_to_local_variables_scopes(rhs, lhs); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#198 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#201 def add_masgn_lhs_variables(rhs, lhs); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#204 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#207 def add_match_var_scopes(in_pattern_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#139 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#142 def add_scope(node, local_variables = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#184 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#187 def allow_self(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#145 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#148 def allowed_send_node?(node); end # Respects `Lint/ItWithoutArgumentsInBlock` cop and the following Ruby 3.3's warning: @@ -50341,19 +51837,19 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#160 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#163 def it_method_in_block?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#176 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#179 def on_argument(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#168 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#171 def regular_method_call?(node); end class << self - # source://rubocop-rails/2.31.0/lib/rubocop-rails.rb#37 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#56 def autocorrect_incompatible_with; end end end @@ -50388,16 +51884,16 @@ class RuboCop::Cop::Style::RedundantSelfAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#77 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#86 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#59 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#74 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#59 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#75 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#59 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#73 def on_ivasgn(node); end # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#59 @@ -50543,7 +52039,7 @@ class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#104 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#111 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#104 @@ -51357,7 +52853,7 @@ class RuboCop::Cop::Style::ReturnNilInPredicateMethodDefinition < ::RuboCop::Cop # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#81 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#81 + # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#90 def on_defs(node); end # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#77 @@ -51465,7 +52961,11 @@ RuboCop::Cop::Style::ReturnNilInPredicateMethodDefinition::MSG = T.let(T.unsafe( # foo.baz + bar if foo # foo.bar > 2 if foo # -# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#89 +# foo ? foo[index] : nil # Ignored `foo&.[](index)` due to unclear readability benefit. +# foo ? foo[idx] = v : nil # Ignored `foo&.[]=(idx, v)` due to unclear readability benefit. +# foo ? foo * 42 : nil # Ignored `foo&.*(42)` due to unclear readability benefit. +# +# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#93 class RuboCop::Cop::Style::SafeNavigation < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::NilMethods @@ -51473,136 +52973,146 @@ class RuboCop::Cop::Style::SafeNavigation < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#136 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#140 def and_inside_begin?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#130 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#134 def and_with_rhs_or?(param0 = T.unsafe(nil)); end # if format: (if checked_variable body nil) # unless format: (if checked_variable nil body) # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#104 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#108 def modifier_if_safe_navigation_candidate(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#133 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#137 def not_nil_check?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#157 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#165 def on_and(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#141 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#146 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#184 - def report_offense(node, rhs, rhs_receiver, *removal_ranges, offense_range: T.unsafe(nil)); end - - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#139 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#143 def strip_begin(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#119 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#123 def ternary_safe_navigation_candidate(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#375 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#408 def add_safe_nav_to_all_methods_in_chain(corrector, start_method, method_chain); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#282 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#304 def allowed_if_condition?(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#227 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#235 def and_parts(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#367 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#400 def begin_range(node, method_call); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#329 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#359 def chain_length(method_chain, method); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#209 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#217 def collect_and_clauses(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#263 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#285 def comments(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#221 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#229 def concat_nodes(nodes, and_node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#371 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#264 + def dotless_operator_call?(method_call); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#272 + def dotless_operator_method?(method_call); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#404 def end_range(node, method_call); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#301 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#323 def extract_common_parts(method_chain, checked_variable); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#248 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#256 def extract_if_body(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#286 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#308 def extract_parts_from_if(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#309 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#331 def find_matching_receiver_invocation(method_chain, checked_variable); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#203 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#211 def find_method_chain(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#256 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#278 def handle_comments(corrector, node, method_call); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#323 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#345 def matching_call_nodes?(left, right); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#319 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#341 def matching_nodes?(left, right); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#389 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#421 def max_chain_length; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#363 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#396 def method_called?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#355 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#388 def negated?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#234 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#242 def offending_node?(node, lhs_receiver, rhs, rhs_receiver); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#269 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#291 def relevant_comment_ranges(node); end + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#194 + def report_offense(node, rhs, rhs_receiver, *removal_ranges, offense_range: T.unsafe(nil)); end + # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#349 - def unsafe_method?(send_node); end + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#379 + def unsafe_method?(node, send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#337 - def unsafe_method_used?(method_chain, method); end + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#367 + def unsafe_method_used?(node, method_chain, method); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#244 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#252 def use_var_only_in_unless_modifier?(node, variable); end end -# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#97 +# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#101 RuboCop::Cop::Style::SafeNavigation::LOGIC_JUMP_KEYWORDS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#95 +# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#99 RuboCop::Cop::Style::SafeNavigation::MSG = T.let(T.unsafe(nil), String) # Enforces safe navigation chains length to not exceed the configured maximum. @@ -51671,7 +53181,7 @@ RuboCop::Cop::Style::SafeNavigationChainLength::MSG = T.let(T.unsafe(nil), Strin class RuboCop::Cop::Style::Sample < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/sample.rb#41 + # source://rubocop//lib/rubocop/cop/style/sample.rb#55 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/sample.rb#41 @@ -51768,7 +53278,7 @@ class RuboCop::Cop::Style::SelectByRegexp < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#77 def env_const?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#91 + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#107 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#91 @@ -51989,7 +53499,7 @@ RuboCop::Cop::Style::Semicolon::MSG = T.let(T.unsafe(nil), String) # # source://rubocop//lib/rubocop/cop/style/send.rb#16 class RuboCop::Cop::Style::Send < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/send.rb#20 + # source://rubocop//lib/rubocop/cop/style/send.rb#25 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/send.rb#20 @@ -52047,7 +53557,7 @@ RuboCop::Cop::Style::Send::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) class RuboCop::Cop::Style::SendWithLiteralMethodName < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#68 + # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#86 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#68 @@ -52394,10 +53904,10 @@ class RuboCop::Cop::Style::SingleLineDoEndBlock < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#40 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#40 + # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#59 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#40 + # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#58 def on_numblock(node); end private @@ -52448,7 +53958,7 @@ class RuboCop::Cop::Style::SingleLineMethods < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#41 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#41 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#48 def on_defs(node); end private @@ -52477,7 +53987,7 @@ class RuboCop::Cop::Style::SingleLineMethods < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#136 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#139 def disallow_endless_method_style?; end # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#104 @@ -52533,7 +54043,7 @@ class RuboCop::Cop::Style::SlicingWithRange < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#77 + # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#94 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#77 @@ -52637,39 +54147,44 @@ class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#187 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#190 def add_parentheses?(node); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#168 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#169 def add_parentheses_if_needed(condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#199 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#231 def allow_modifier?; end # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#81 def assigned_variables(condition); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#198 + def assignment_in_and?(node); end + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#98 def autocorrect(corrector, node, if_branch); end # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#106 def autocorrect_outer_condition_basic(corrector, node, if_branch); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#142 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#143 def autocorrect_outer_condition_modify_form(corrector, node, if_branch); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#160 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#161 def chainable_condition(node); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#131 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#132 def correct_for_basic_condition_style(corrector, node, if_branch); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#151 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#152 def correct_for_comment(corrector, node, if_branch); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#122 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#123 def correct_for_guard_condition_style(corrector, node, if_branch); end # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#117 @@ -52682,10 +54197,16 @@ class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#182 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#185 def parenthesize_method?(node); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#192 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#211 + def parenthesized_and(node); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#221 + def parenthesized_and_clause(node); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#204 def parenthesized_method_arguments(node); end # @return [Boolean] @@ -52860,7 +54381,7 @@ RuboCop::Cop::Style::SpecialGlobalVars::PERL_VARS = T.let(T.unsafe(nil), Hash) # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#138 RuboCop::Cop::Style::SpecialGlobalVars::STYLE_VARS_MAP = T.let(T.unsafe(nil), Hash) -# Check for parentheses around stabby lambda arguments. +# Checks for parentheses around stabby lambda arguments. # There are two different styles. Defaults to `require_parentheses`. # # @example EnforcedStyle: require_parentheses (default) @@ -53056,7 +54577,7 @@ class RuboCop::Cop::Style::StringChars < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/string_chars.rb#29 + # source://rubocop//lib/rubocop/cop/style/string_chars.rb#38 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/string_chars.rb#29 @@ -53116,76 +54637,75 @@ RuboCop::Cop::Style::StringChars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#53 class RuboCop::Cop::Style::StringConcatenation < ::RuboCop::Cop::Base - include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#68 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#67 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#72 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#71 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#61 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#60 def string_concatenation?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#159 - def adjust_str(node); end + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#149 + def adjust_str(part); end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#115 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#114 def collect_parts(node, parts = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#140 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#139 def corrected_ancestor?(node); end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#107 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#106 def find_topmost_plus_node(node); end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#163 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#166 def handle_quotes(parts); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#134 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#133 def heredoc?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#97 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#96 def line_end_concatenation?(node); end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#173 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#176 def mode; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#126 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#125 def plus_node?(node); end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#85 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#84 def register_offense(topmost_plus_node, parts); end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#144 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#143 def replacement(parts); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#169 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#172 def single_quoted?(str_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#130 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#129 def uncorrectable?(part); end end -# source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#57 +# source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#56 RuboCop::Cop::Style::StringConcatenation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#58 +# source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#57 RuboCop::Cop::Style::StringConcatenation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of strings as keys in hashes. The use of @@ -53380,7 +54900,7 @@ class RuboCop::Cop::Style::StringMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::MethodPreference extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/string_methods.rb#23 + # source://rubocop//lib/rubocop/cop/style/string_methods.rb#32 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/string_methods.rb#23 @@ -53409,7 +54929,7 @@ class RuboCop::Cop::Style::Strip < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/strip.rb#24 def lstrip_rstrip(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/strip.rb#31 + # source://rubocop//lib/rubocop/cop/style/strip.rb#41 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/strip.rb#31 @@ -53422,7 +54942,8 @@ RuboCop::Cop::Style::Strip::MSG = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/cop/style/strip.rb#21 RuboCop::Cop::Style::Strip::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# Checks for inheritance from Struct.new. +# Checks for inheritance from `Struct.new`. Inheriting from `Struct.new` +# adds a superfluous level in inheritance tree. # # @example # # bad @@ -53432,6 +54953,9 @@ RuboCop::Cop::Style::Strip::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # end # end # +# Person.ancestors +# # => [Person, #, Struct, (...)] +# # # good # Person = Struct.new(:first_name, :last_name) do # def age @@ -53439,27 +54963,30 @@ RuboCop::Cop::Style::Strip::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # end # end # -# source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#26 +# Person.ancestors +# # => [Person, Struct, (...)] +# +# source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#33 class RuboCop::Cop::Style::StructInheritance < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#33 + # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#40 def on_class(node); end - # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#45 + # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#52 def struct_constructor?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#52 + # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#59 def correct_parent(parent, corrector); end - # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#62 + # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#69 def range_for_empty_class_body(class_node, struct_new); end end -# source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#30 +# source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#37 RuboCop::Cop::Style::StructInheritance::MSG = T.let(T.unsafe(nil), String) # Checks for redundant argument forwarding when calling super with arguments identical to @@ -53643,19 +55170,19 @@ class RuboCop::Cop::Style::SwapValues < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 def on_asgn(node); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#43 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#43 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#43 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#43 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#43 def on_lvasgn(node); end private @@ -53895,10 +55422,10 @@ class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#171 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#171 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#189 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#171 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#188 def on_numblock(node); end # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#152 @@ -53977,38 +55504,38 @@ RuboCop::Cop::Style::SymbolProc::SUPER_TYPES = T.let(T.unsafe(nil), Array) # Corrector to correct conditional assignment in ternary conditions. # -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#509 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#511 class RuboCop::Cop::Style::TernaryCorrector extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper class << self - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#514 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#516 def correct(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#518 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#520 def move_assignment_inside_condition(corrector, node); end private - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#532 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#534 def correction(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#545 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#547 def element_assignment?(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#549 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#551 def extract_branches(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#562 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#564 def move_branch_inside_condition(corrector, branch, assignment); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#557 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#559 def remove_parentheses(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#536 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#538 def ternary(node); end end end @@ -54238,16 +55765,16 @@ class RuboCop::Cop::Style::TopLevelMethodDefinition < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52 + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#57 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#60 + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#67 def on_itblock(node); end - # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#60 + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#66 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52 + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#58 def on_send(node); end private @@ -54285,7 +55812,7 @@ class RuboCop::Cop::Style::TrailingBodyOnClass < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#25 def on_class(node); end - # source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#25 + # source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#37 def on_sclass(node); end end @@ -54326,7 +55853,7 @@ class RuboCop::Cop::Style::TrailingBodyOnMethodDefinition < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#38 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#38 + # source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#51 def on_defs(node); end end @@ -54454,7 +55981,7 @@ class RuboCop::Cop::Style::TrailingCommaInArguments < ::RuboCop::Cop::Base include ::RuboCop::Cop::TrailingComma extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#104 + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#111 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#104 @@ -55025,7 +56552,7 @@ class RuboCop::Cop::Style::TrivialAccessors < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#104 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#104 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#111 def on_defs(node); end private @@ -55263,7 +56790,7 @@ class RuboCop::Cop::Style::UnpackFirst < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#37 + # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#49 def on_csend(node); end # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#37 @@ -55371,7 +56898,7 @@ RuboCop::Cop::Style::WhenThen::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Style::WhileUntilDo < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#34 + # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#43 def on_until(node); end # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#34 @@ -55417,7 +56944,7 @@ class RuboCop::Cop::Style::WhileUntilModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::StatementModifier extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#40 + # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#47 def on_until(node); end # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#40 @@ -56061,7 +57588,7 @@ class RuboCop::Cop::Team # Returns the value of attribute updated_source_file. # - # source://rubocop//lib/rubocop/cop/team.rb#57 + # source://rubocop//lib/rubocop/cop/team.rb#59 def updated_source_file?; end # Returns the value of attribute warnings. @@ -56766,164 +58293,169 @@ class RuboCop::Cop::VariableForce < ::RuboCop::Cop::Force # # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#79 + # source://rubocop//lib/rubocop/cop/variable_force.rb#81 def investigate(processed_source); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#88 + # source://rubocop//lib/rubocop/cop/variable_force.rb#90 def process_node(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#74 + # source://rubocop//lib/rubocop/cop/variable_force.rb#76 def variable_table; end private - # source://rubocop//lib/rubocop/cop/variable_force.rb#374 + # source://rubocop//lib/rubocop/cop/variable_force.rb#391 def after_declaring_variable(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#374 + # source://rubocop//lib/rubocop/cop/variable_force.rb#391 def after_entering_scope(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#374 + # source://rubocop//lib/rubocop/cop/variable_force.rb#391 def after_leaving_scope(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#374 + # source://rubocop//lib/rubocop/cop/variable_force.rb#391 def before_declaring_variable(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#374 + # source://rubocop//lib/rubocop/cop/variable_force.rb#391 def before_entering_scope(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#374 + # source://rubocop//lib/rubocop/cop/variable_force.rb#391 def before_leaving_scope(arg); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#346 + # source://rubocop//lib/rubocop/cop/variable_force.rb#352 def descendant_reference(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#336 + # source://rubocop//lib/rubocop/cop/variable_force.rb#342 def each_descendant_reference(loop_node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#321 + # source://rubocop//lib/rubocop/cop/variable_force.rb#327 def find_variables_in_loop(loop_node); end # This is called for each scope recursively. # # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#97 + # source://rubocop//lib/rubocop/cop/variable_force.rb#99 def inspect_variables_in_scope(scope_node); end - # Mark all assignments which are referenced in the same loop + # Mark last assignments which are referenced in the same loop # as referenced by ignoring AST order since they would be referenced # in next iteration. # # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#302 + # source://rubocop//lib/rubocop/cop/variable_force.rb#309 def mark_assignments_as_referenced_in_loop(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#130 + # source://rubocop//lib/rubocop/cop/variable_force.rb#132 def node_handler_method_name(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#103 + # source://rubocop//lib/rubocop/cop/variable_force.rb#105 def process_children(origin_node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#238 + # source://rubocop//lib/rubocop/cop/variable_force.rb#240 def process_loop(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#182 + # source://rubocop//lib/rubocop/cop/variable_force.rb#184 def process_pattern_match_variable(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#164 + # source://rubocop//lib/rubocop/cop/variable_force.rb#166 def process_regexp_named_captures(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#253 + # source://rubocop//lib/rubocop/cop/variable_force.rb#260 def process_rescue(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#272 + # source://rubocop//lib/rubocop/cop/variable_force.rb#279 def process_scope(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#291 + # source://rubocop//lib/rubocop/cop/variable_force.rb#298 def process_send(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#146 + # source://rubocop//lib/rubocop/cop/variable_force.rb#148 def process_variable_assignment(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#134 + # source://rubocop//lib/rubocop/cop/variable_force.rb#136 def process_variable_declaration(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#226 + # source://rubocop//lib/rubocop/cop/variable_force.rb#228 def process_variable_multiple_assignment(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#196 + # source://rubocop//lib/rubocop/cop/variable_force.rb#198 def process_variable_operator_assignment(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#233 + # source://rubocop//lib/rubocop/cop/variable_force.rb#235 def process_variable_referencing(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#264 + # source://rubocop//lib/rubocop/cop/variable_force.rb#271 def process_zero_arity_super(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#190 + # source://rubocop//lib/rubocop/cop/variable_force.rb#363 + def reference_assignments(loop_assignments, loop_node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#192 def regexp_captured_names(node); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force.rb#357 + # source://rubocop//lib/rubocop/cop/variable_force.rb#374 def scanned_node?(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#361 + # source://rubocop//lib/rubocop/cop/variable_force.rb#378 def scanned_nodes; end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#111 + # source://rubocop//lib/rubocop/cop/variable_force.rb#113 def skip_children!; end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#285 + # source://rubocop//lib/rubocop/cop/variable_force.rb#292 def twisted_nodes(node); end end @@ -56987,7 +58519,7 @@ class RuboCop::Cop::VariableForce::Assignment # Returns the value of attribute reassigned. # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#15 def reassigned?; end # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#39 @@ -57000,7 +58532,7 @@ class RuboCop::Cop::VariableForce::Assignment # Returns the value of attribute referenced. # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#14 def referenced?; end # Returns the value of attribute references. @@ -57033,10 +58565,10 @@ class RuboCop::Cop::VariableForce::Assignment private - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#140 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#145 def find_multiple_assignment_node(grandparent_node); end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#130 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#135 def for_assignment_node; end # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#112 @@ -57045,7 +58577,7 @@ class RuboCop::Cop::VariableForce::Assignment # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#104 def operator_assignment_node; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#123 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#128 def rest_assignment_node; end end @@ -57065,23 +58597,41 @@ class RuboCop::Cop::VariableForce::AssignmentReference < ::Struct # Returns the value of attribute node # # @return [Object] the current value of node + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#68 def node; end # Sets the attribute node # # @param value [Object] the value to set the attribute node to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#68 def node=(_); end class << self + # source://rubocop//lib/rubocop/cop/variable_force.rb#68 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cop/variable_force.rb#68 def inspect; end + + # source://rubocop//lib/rubocop/cop/variable_force.rb#68 def keyword_init?; end + + # source://rubocop//lib/rubocop/cop/variable_force.rb#68 def members; end + + # source://rubocop//lib/rubocop/cop/variable_force.rb#68 def new(*_arg0); end end end +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#74 +RuboCop::Cop::VariableForce::BRANCH_NODES = T.let(T.unsafe(nil), Array) + # Namespace for branch classes for each control structure. # # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#7 @@ -57144,12 +58694,16 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct # Returns the value of attribute child_node # # @return [Object] the current value of child_node + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 def child_node; end # Sets the attribute child_node # # @param value [Object] the value to set the attribute child_node to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 def child_node=(_); end # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#70 @@ -57161,7 +58715,7 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#80 def each_ancestor(include_self: T.unsafe(nil), &block); end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#121 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#127 def eql?(other); end # @return [Boolean] @@ -57188,12 +58742,16 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct # Returns the value of attribute scope # # @return [Object] the current value of scope + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 def scope; end # Sets the attribute scope # # @param value [Object] the value to set the attribute scope to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 def scope=(_); end private @@ -57202,6 +58760,7 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct def scan_ancestors; end class << self + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 def [](*_arg0); end # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#43 @@ -57215,9 +58774,16 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#47 def inherited(subclass); end + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 def inspect; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 def keyword_init?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 def members; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 def new(*_arg0); end # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#52 @@ -57514,7 +59080,7 @@ RuboCop::Cop::VariableForce::MULTIPLE_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Sym # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#115 +# source://rubocop//lib/rubocop/cop/variable_force.rb#117 RuboCop::Cop::VariableForce::NODE_HANDLER_METHOD_NAMES = T.let(T.unsafe(nil), Hash) # @api private @@ -57636,7 +59202,7 @@ class RuboCop::Cop::VariableForce::Scope # Returns the value of attribute naked_top_level. # - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#20 def naked_top_level?; end # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#39 @@ -57734,7 +59300,7 @@ class RuboCop::Cop::VariableForce::Variable # Returns the value of attribute captured_by_block. # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#13 def captured_by_block?; end # Returns the value of attribute declaration_node. @@ -57824,19 +59390,32 @@ class RuboCop::Cop::VariableForce::VariableReference < ::Struct # Returns the value of attribute name # # @return [Object] the current value of name + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#62 def name; end # Sets the attribute name # # @param value [Object] the value to set the attribute name to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#62 def name=(_); end class << self + # source://rubocop//lib/rubocop/cop/variable_force.rb#62 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cop/variable_force.rb#62 def inspect; end + + # source://rubocop//lib/rubocop/cop/variable_force.rb#62 def keyword_init?; end + + # source://rubocop//lib/rubocop/cop/variable_force.rb#62 def members; end + + # source://rubocop//lib/rubocop/cop/variable_force.rb#62 def new(*_arg0); end end end @@ -58134,6 +59713,11 @@ RuboCop::DirectiveComment::COP_NAMES_PATTERN = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/directive_comment.rb#15 RuboCop::DirectiveComment::COP_NAME_PATTERN = T.let(T.unsafe(nil), String) +# @api private +# +# source://rubocop//lib/rubocop/directive_comment.rb#29 +RuboCop::DirectiveComment::DIRECTIVE_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp) + # @api private # # source://rubocop//lib/rubocop/directive_comment.rb#27 @@ -58756,38 +60340,38 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo # @return [DisabledConfigFormatter] a new instance of DisabledConfigFormatter # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#27 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#43 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#40 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#56 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#33 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#49 def file_started(_file, options); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#48 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#64 def finished(_inspected_files); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#69 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#85 def auto_gen_enforced_style?; end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#73 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#89 def command; end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#165 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#181 def cop_config_params(default_cfg, cfg); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#185 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#199 def default_config(cop_name); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#229 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#243 def excludes(offending_files, cop_name, parent); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#200 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#214 def filtered_config(cfg); end # Returns true if the given arr include the given elm or if any of the @@ -58795,106 +60379,109 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo # # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#277 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#291 def include_or_match?(arr, elm); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#250 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#264 def merge_mode_for_exclude?(cfg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#271 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#285 def no_exclude_limit?; end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#102 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#118 def output_cop(cop_name, offense_count); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#137 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#153 def output_cop_comments(output_buffer, cfg, cop_name, offense_count); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#189 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#203 def output_cop_config(output_buffer, cfg, cop_name); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#172 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#185 def output_cop_param_comments(output_buffer, params, default_cfg); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#219 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#233 def output_exclude_list(output_buffer, offending_files, cop_name); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#254 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#268 def output_exclude_path(output_buffer, exclude_path, parent); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#208 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#222 def output_offending_files(output_buffer, cfg, cop_name); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#96 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#112 def output_offenses; end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#267 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#281 def safe_autocorrect?(config); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#116 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#132 def set_max(cfg, cop_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#125 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#141 def should_set_max?(cop_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#65 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#81 def show_offense_counts?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#61 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#77 def show_timestamp?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#157 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#173 def supports_safe_autocorrect?(cop_class, default_cfg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#161 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#177 def supports_unsafe_autocorrect?(cop_class, default_cfg); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#92 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#108 def timestamp; end class << self # Returns the value of attribute config_to_allow_offenses. # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#40 def config_to_allow_offenses; end # Sets the attribute config_to_allow_offenses # # @param value the value to set the attribute config_to_allow_offenses to. # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#40 def config_to_allow_offenses=(_arg0); end # Returns the value of attribute detected_styles. # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#40 def detected_styles; end # Sets the attribute detected_styles # # @param value the value to set the attribute detected_styles to. # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#40 def detected_styles=(_arg0); end end end +# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#20 +RuboCop::Formatter::DisabledConfigFormatter::EXCLUDED_CONFIG_KEYS = T.let(T.unsafe(nil), Array) + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#10 RuboCop::Formatter::DisabledConfigFormatter::HEADING = T.let(T.unsafe(nil), String) @@ -59093,23 +60680,31 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # Returns the value of attribute alpha # # @return [Object] the current value of alpha + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def alpha; end # Sets the attribute alpha # # @param value [Object] the value to set the attribute alpha to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def alpha=(_); end # Returns the value of attribute blue # # @return [Object] the current value of blue + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def blue; end # Sets the attribute blue # # @param value [Object] the value to set the attribute blue to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def blue=(_); end # source://rubocop//lib/rubocop/formatter/html_formatter.rb#19 @@ -59118,33 +60713,50 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # Returns the value of attribute green # # @return [Object] the current value of green + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def green; end # Sets the attribute green # # @param value [Object] the value to set the attribute green to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def green=(_); end # Returns the value of attribute red # # @return [Object] the current value of red + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def red; end # Sets the attribute red # # @param value [Object] the value to set the attribute red to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def red=(_); end # source://rubocop//lib/rubocop/formatter/html_formatter.rb#15 def to_s; end class << self + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def [](*_arg0); end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def inspect; end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def keyword_init?; end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def members; end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 def new(*_arg0); end end end @@ -59215,30 +60827,47 @@ class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct # Returns the value of attribute offenses # # @return [Object] the current value of offenses + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def offenses; end # Sets the attribute offenses # # @param value [Object] the value to set the attribute offenses to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def offenses=(_); end # Returns the value of attribute path # # @return [Object] the current value of path + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def path; end # Sets the attribute path # # @param value [Object] the value to set the attribute path to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def path=(_); end class << self + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def [](*_arg0); end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def inspect; end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def keyword_init?; end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def members; end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def new(*_arg0); end end end @@ -59248,41 +60877,62 @@ class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct # Returns the value of attribute inspected_files # # @return [Object] the current value of inspected_files + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def inspected_files; end # Sets the attribute inspected_files # # @param value [Object] the value to set the attribute inspected_files to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def inspected_files=(_); end # Returns the value of attribute offense_count # # @return [Object] the current value of offense_count + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def offense_count; end # Sets the attribute offense_count # # @param value [Object] the value to set the attribute offense_count to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def offense_count=(_); end # Returns the value of attribute target_files # # @return [Object] the current value of target_files + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def target_files; end # Sets the attribute target_files # # @param value [Object] the value to set the attribute target_files to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def target_files=(_); end class << self + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def [](*_arg0); end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def inspect; end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def keyword_init?; end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def members; end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 def new(*_arg0); end end end @@ -59432,46 +61082,46 @@ class RuboCop::Formatter::MarkdownFormatter < ::RuboCop::Formatter::BaseFormatte # @return [MarkdownFormatter] a new instance of MarkdownFormatter # - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#11 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#12 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#21 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#22 def file_finished(file, offenses); end # Returns the value of attribute files. # - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#9 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#10 def files; end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#26 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#27 def finished(inspected_files); end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#17 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#18 def started(target_files); end # Returns the value of attribute summary. # - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#9 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#10 def summary; end private - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#73 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#74 def possible_ellipses(location); end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#33 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#34 def render_markdown; end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#67 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#68 def write_code(offense); end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#61 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#62 def write_context(offense); end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#42 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#43 def write_file_messages; end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#54 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#55 def write_heading(file); end end @@ -59526,57 +61176,57 @@ class RuboCop::Formatter::PacmanFormatter < ::RuboCop::Formatter::ClangStyleForm # @return [PacmanFormatter] a new instance of PacmanFormatter # - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#19 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#20 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#50 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#51 def cols; end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#37 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#38 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#33 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#34 def file_started(_file, _options); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#43 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#44 def next_step(offenses); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#64 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#65 def pacdots(number); end # Returns the value of attribute progress_line. # - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#12 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#13 def progress_line; end # Sets the attribute progress_line # # @param value the value to set the attribute progress_line to. # - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#12 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#13 def progress_line=(_arg0); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#26 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#27 def started(target_files); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#68 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#69 def step(character); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#57 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#58 def update_progress_line; end end -# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#14 +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#15 RuboCop::Formatter::PacmanFormatter::FALLBACK_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#15 +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#16 RuboCop::Formatter::PacmanFormatter::GHOST = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#17 -RuboCop::Formatter::PacmanFormatter::PACDOT = T.let(T.unsafe(nil), Rainbow::NullPresenter) +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#18 +RuboCop::Formatter::PacmanFormatter::PACDOT = T.let(T.unsafe(nil), Rainbow::Presenter) -# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#16 -RuboCop::Formatter::PacmanFormatter::PACMAN = T.let(T.unsafe(nil), Rainbow::NullPresenter) +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#17 +RuboCop::Formatter::PacmanFormatter::PACMAN = T.let(T.unsafe(nil), Rainbow::Presenter) # This formatter display dots for files with no offenses and # letters for files with problems in the them. In the end it @@ -60641,6 +62291,61 @@ RuboCop::PathUtil::HIDDEN_FILE_PATTERN = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/path_util.rb#35 RuboCop::PathUtil::SMART_PATH_CACHE = T.let(T.unsafe(nil), Hash) +# Reports information about pending cops that are not explicitly configured. +# +# This class is responsible for displaying warnings when new cops have been added to RuboCop +# but have not yet been enabled or disabled in the user's configuration. +# It provides a centralized way to determine whether such warnings should be shown, +# based on global flags or configuration settings. +# +# source://rubocop//lib/rubocop/pending_cops_reporter.rb#10 +class RuboCop::PendingCopsReporter + class << self + # Returns the value of attribute disable_pending_cops. + # + # source://rubocop//lib/rubocop/pending_cops_reporter.rb#20 + def disable_pending_cops; end + + # Sets the attribute disable_pending_cops + # + # @param value the value to set the attribute disable_pending_cops to. + # + # source://rubocop//lib/rubocop/pending_cops_reporter.rb#20 + def disable_pending_cops=(_arg0); end + + # Returns the value of attribute enable_pending_cops. + # + # source://rubocop//lib/rubocop/pending_cops_reporter.rb#20 + def enable_pending_cops; end + + # Sets the attribute enable_pending_cops + # + # @param value the value to set the attribute enable_pending_cops to. + # + # source://rubocop//lib/rubocop/pending_cops_reporter.rb#20 + def enable_pending_cops=(_arg0); end + + # source://rubocop//lib/rubocop/pending_cops_reporter.rb#22 + def warn_if_needed(config); end + + private + + # source://rubocop//lib/rubocop/pending_cops_reporter.rb#31 + def pending_cops_only_qualified(pending_cops); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/pending_cops_reporter.rb#35 + def possible_new_cops?(config); end + + # source://rubocop//lib/rubocop/pending_cops_reporter.rb#40 + def warn_on_pending_cops(pending_cops); end + + # source://rubocop//lib/rubocop/pending_cops_reporter.rb#48 + def warn_pending_cop(cop); end + end +end + # This module provides information on the platform that RuboCop is being run # on. # @@ -60980,7 +62685,7 @@ class RuboCop::ResultCache # # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#229 + # source://rubocop//lib/rubocop/result_cache.rb#231 def context_checksum(team, options); end # @api private @@ -60999,7 +62704,7 @@ class RuboCop::ResultCache # # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#220 + # source://rubocop//lib/rubocop/result_cache.rb#222 def relevant_options_digest(options); end # The checksum of the RuboCop program running the inspection. @@ -61155,7 +62860,7 @@ class RuboCop::Runner # Check whether a run created source identical to a previous run, which # means that we definitely have an infinite loop. # - # source://rubocop//lib/rubocop/runner.rb#331 + # source://rubocop//lib/rubocop/runner.rb#333 def check_for_infinite_loop(processed_source, offenses_by_iteration); end # @return [Boolean] @@ -61165,10 +62870,10 @@ class RuboCop::Runner # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#433 + # source://rubocop//lib/rubocop/runner.rb#435 def considered_failure?(offense); end - # source://rubocop//lib/rubocop/runner.rb#470 + # source://rubocop//lib/rubocop/runner.rb#472 def default_config(cop_name); end # source://rubocop//lib/rubocop/runner.rb#275 @@ -61182,7 +62887,7 @@ class RuboCop::Runner # source://rubocop//lib/rubocop/runner.rb#239 def except_redundant_cop_disable_directive?; end - # source://rubocop//lib/rubocop/runner.rb#360 + # source://rubocop//lib/rubocop/runner.rb#362 def extract_ruby_sources(processed_source); end # source://rubocop//lib/rubocop/runner.rb#248 @@ -61197,25 +62902,25 @@ class RuboCop::Runner # source://rubocop//lib/rubocop/runner.rb#243 def file_started(file); end - # source://rubocop//lib/rubocop/runner.rb#413 + # source://rubocop//lib/rubocop/runner.rb#415 def filter_cop_classes(cop_classes, config); end # source://rubocop//lib/rubocop/runner.rb#104 def find_target_files(paths); end - # source://rubocop//lib/rubocop/runner.rb#424 + # source://rubocop//lib/rubocop/runner.rb#426 def formatter_set; end - # source://rubocop//lib/rubocop/runner.rb#485 - def get_processed_source(file); end + # source://rubocop//lib/rubocop/runner.rb#487 + def get_processed_source(file, prism_result); end - # source://rubocop//lib/rubocop/runner.rb#345 + # source://rubocop//lib/rubocop/runner.rb#347 def inspect_file(processed_source, team = T.unsafe(nil)); end # source://rubocop//lib/rubocop/runner.rb#115 def inspect_files(files); end - # source://rubocop//lib/rubocop/runner.rb#306 + # source://rubocop//lib/rubocop/runner.rb#308 def iterate_until_no_changes(source, offenses_by_iteration); end # source://rubocop//lib/rubocop/runner.rb#148 @@ -61223,30 +62928,30 @@ class RuboCop::Runner # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#466 + # source://rubocop//lib/rubocop/runner.rb#468 def mark_as_safe_by_config?(config); end - # source://rubocop//lib/rubocop/runner.rb#474 + # source://rubocop//lib/rubocop/runner.rb#476 def minimum_severity_to_fail; end - # source://rubocop//lib/rubocop/runner.rb#374 + # source://rubocop//lib/rubocop/runner.rb#376 def mobilize_team(processed_source); end - # source://rubocop//lib/rubocop/runner.rb#379 + # source://rubocop//lib/rubocop/runner.rb#381 def mobilized_cop_classes(config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#442 + # source://rubocop//lib/rubocop/runner.rb#444 def offense_displayed?(offense); end - # source://rubocop//lib/rubocop/runner.rb#454 + # source://rubocop//lib/rubocop/runner.rb#456 def offenses_to_report(offenses); end # source://rubocop//lib/rubocop/runner.rb#152 def process_file(file); end - # source://rubocop//lib/rubocop/runner.rb#403 + # source://rubocop//lib/rubocop/runner.rb#405 def qualify_option_cop_names; end # @yield [cop] @@ -61262,17 +62967,17 @@ class RuboCop::Runner # otherwise dormant team that can be used for config- and option- # level caching in ResultCache. # - # source://rubocop//lib/rubocop/runner.rb#517 + # source://rubocop//lib/rubocop/runner.rb#519 def standby_team(config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#420 + # source://rubocop//lib/rubocop/runner.rb#422 def style_guide_cops_only?(config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#458 + # source://rubocop//lib/rubocop/runner.rb#460 def supports_safe_autocorrect?(offense); end # @yield [team] @@ -61387,7 +63092,7 @@ class RuboCop::TargetFinder # # @api private # - # source://rubocop//lib/rubocop/target_finder.rb#62 + # source://rubocop//lib/rubocop/target_finder.rb#60 def find_files(base_dir, flags); end # Finds all Ruby source files under the current or other supplied directory. A Ruby source file @@ -61440,6 +63145,12 @@ class RuboCop::TargetFinder # source://rubocop//lib/rubocop/target_finder.rb#205 def force_exclusion?; end + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_finder.rb#82 + def hidden_path?(path); end + # @api private # @return [Boolean] # @@ -61516,8 +63227,8 @@ class RuboCop::TargetFinder # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#77 - def to_inspect?(file, hidden_files, base_dir_config); end + # source://rubocop//lib/rubocop/target_finder.rb#75 + def to_inspect?(file, base_dir_config); end # @api private # diff --git a/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi b/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi index f832ab1c..7300ec96 100644 --- a/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +++ b/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi @@ -22,7 +22,7 @@ class ProgressBar::Base # source://ruby-progressbar//lib/ruby-progressbar/base.rb#45 def initialize(options = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#36 def clear(*args, **_arg1, &block); end # source://ruby-progressbar//lib/ruby-progressbar/base.rb#137 @@ -36,7 +36,7 @@ class ProgressBar::Base # source://ruby-progressbar//lib/ruby-progressbar/base.rb#129 def finished?; end - # source://ruby-progressbar//lib/ruby-progressbar/base.rb#203 + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#209 def format(other); end # source://ruby-progressbar//lib/ruby-progressbar/base.rb#203 @@ -48,7 +48,7 @@ class ProgressBar::Base # source://ruby-progressbar//lib/ruby-progressbar/base.rb#199 def inspect; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#36 def log(*args, **_arg1, &block); end # source://ruby-progressbar//lib/ruby-progressbar/base.rb#102 @@ -56,10 +56,10 @@ class ProgressBar::Base # @return [Boolean] # - # source://ruby-progressbar//lib/ruby-progressbar/base.rb#123 + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#127 def paused?; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#41 def progress(*args, **_arg1, &block); end # source://ruby-progressbar//lib/ruby-progressbar/base.rb#145 @@ -68,7 +68,7 @@ class ProgressBar::Base # source://ruby-progressbar//lib/ruby-progressbar/base.rb#153 def progress_mark=(mark); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#36 def refresh(*args, **_arg1, &block); end # source://ruby-progressbar//lib/ruby-progressbar/base.rb#157 @@ -108,7 +108,7 @@ class ProgressBar::Base # source://ruby-progressbar//lib/ruby-progressbar/base.rb#169 def to_s(new_format = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#41 def total(*args, **_arg1, &block); end # source://ruby-progressbar//lib/ruby-progressbar/base.rb#149 @@ -928,7 +928,7 @@ class ProgressBar::Outputs::Tty < ::ProgressBar::Output # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#27 def eol; end - # source://ruby-progressbar//lib/ruby-progressbar/output.rb#45 + # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#8 def refresh_with_format_change; end # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#23 diff --git a/sorbet/rbi/gems/ruby-rc4@0.1.5.rbi b/sorbet/rbi/gems/ruby-rc4@0.1.5.rbi index 1e073a36..b53050f0 100644 --- a/sorbet/rbi/gems/ruby-rc4@0.1.5.rbi +++ b/sorbet/rbi/gems/ruby-rc4@0.1.5.rbi @@ -12,7 +12,7 @@ class RC4 # source://ruby-rc4//lib/rc4.rb#3 def initialize(str); end - # source://ruby-rc4//lib/rc4.rb#24 + # source://ruby-rc4//lib/rc4.rb#28 def decrypt(text); end # source://ruby-rc4//lib/rc4.rb#24 diff --git a/sorbet/rbi/gems/rubyzip@2.4.1.rbi b/sorbet/rbi/gems/rubyzip@2.4.1.rbi deleted file mode 100644 index 4e18c164..00000000 --- a/sorbet/rbi/gems/rubyzip@2.4.1.rbi +++ /dev/null @@ -1,2441 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `rubyzip` gem. -# Please instead update this file by running `bin/tapioca gem rubyzip`. - - -# source://rubyzip//lib/zip/constants.rb#1 -module Zip - extend ::Zip - - # Returns the value of attribute case_insensitive_match. - # - # source://rubyzip//lib/zip.rb#57 - def case_insensitive_match; end - - # Sets the attribute case_insensitive_match - # - # @param value the value to set the attribute case_insensitive_match to. - # - # source://rubyzip//lib/zip.rb#57 - def case_insensitive_match=(_arg0); end - - # Returns the value of attribute continue_on_exists_proc. - # - # source://rubyzip//lib/zip.rb#57 - def continue_on_exists_proc; end - - # Sets the attribute continue_on_exists_proc - # - # @param value the value to set the attribute continue_on_exists_proc to. - # - # source://rubyzip//lib/zip.rb#57 - def continue_on_exists_proc=(_arg0); end - - # Returns the value of attribute default_compression. - # - # source://rubyzip//lib/zip.rb#57 - def default_compression; end - - # Sets the attribute default_compression - # - # @param value the value to set the attribute default_compression to. - # - # source://rubyzip//lib/zip.rb#57 - def default_compression=(_arg0); end - - # Returns the value of attribute force_entry_names_encoding. - # - # source://rubyzip//lib/zip.rb#57 - def force_entry_names_encoding; end - - # Sets the attribute force_entry_names_encoding - # - # @param value the value to set the attribute force_entry_names_encoding to. - # - # source://rubyzip//lib/zip.rb#57 - def force_entry_names_encoding=(_arg0); end - - # Returns the value of attribute on_exists_proc. - # - # source://rubyzip//lib/zip.rb#57 - def on_exists_proc; end - - # Sets the attribute on_exists_proc - # - # @param value the value to set the attribute on_exists_proc to. - # - # source://rubyzip//lib/zip.rb#57 - def on_exists_proc=(_arg0); end - - # source://rubyzip//lib/zip.rb#68 - def reset!; end - - # @yield [_self] - # @yieldparam _self [Zip] the object that the method was called on - # - # source://rubyzip//lib/zip.rb#81 - def setup; end - - # Returns the value of attribute sort_entries. - # - # source://rubyzip//lib/zip.rb#57 - def sort_entries; end - - # Sets the attribute sort_entries - # - # @param value the value to set the attribute sort_entries to. - # - # source://rubyzip//lib/zip.rb#57 - def sort_entries=(_arg0); end - - # Returns the value of attribute unicode_names. - # - # source://rubyzip//lib/zip.rb#57 - def unicode_names; end - - # Sets the attribute unicode_names - # - # @param value the value to set the attribute unicode_names to. - # - # source://rubyzip//lib/zip.rb#57 - def unicode_names=(_arg0); end - - # Returns the value of attribute validate_entry_sizes. - # - # source://rubyzip//lib/zip.rb#57 - def validate_entry_sizes; end - - # Sets the attribute validate_entry_sizes - # - # @param value the value to set the attribute validate_entry_sizes to. - # - # source://rubyzip//lib/zip.rb#57 - def validate_entry_sizes=(_arg0); end - - # Returns the value of attribute warn_invalid_date. - # - # source://rubyzip//lib/zip.rb#57 - def warn_invalid_date; end - - # Sets the attribute warn_invalid_date - # - # @param value the value to set the attribute warn_invalid_date to. - # - # source://rubyzip//lib/zip.rb#57 - def warn_invalid_date=(_arg0); end - - # Returns the value of attribute write_zip64_support. - # - # source://rubyzip//lib/zip.rb#57 - def write_zip64_support; end - - # Sets the attribute write_zip64_support - # - # @param value the value to set the attribute write_zip64_support to. - # - # source://rubyzip//lib/zip.rb#57 - def write_zip64_support=(_arg0); end - - class << self - # source://rubyzip//lib/zip.rb#44 - def warn_about_v3_api(method); end - end -end - -# source://rubyzip//lib/zip/constants.rb#5 -Zip::CDIR_ENTRY_STATIC_HEADER_LENGTH = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#4 -Zip::CENTRAL_DIRECTORY_ENTRY_SIGNATURE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#89 -Zip::COMPRESSION_METHODS = T.let(T.unsafe(nil), Hash) - -# source://rubyzip//lib/zip/constants.rb#87 -Zip::COMPRESSION_METHOD_AES = T.let(T.unsafe(nil), Integer) - -# RESERVED = 11 -# -# source://rubyzip//lib/zip/constants.rb#76 -Zip::COMPRESSION_METHOD_BZIP2 = T.let(T.unsafe(nil), Integer) - -# RESERVED = 7 -# -# source://rubyzip//lib/zip/constants.rb#72 -Zip::COMPRESSION_METHOD_DEFLATE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#73 -Zip::COMPRESSION_METHOD_DEFLATE_64 = T.let(T.unsafe(nil), Integer) - -# RESERVED = 15 -# -# source://rubyzip//lib/zip/constants.rb#80 -Zip::COMPRESSION_METHOD_IBM_CMPSC = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#83 -Zip::COMPRESSION_METHOD_IBM_LZ77 = T.let(T.unsafe(nil), Integer) - -# RESERVED = 17 -# -# source://rubyzip//lib/zip/constants.rb#82 -Zip::COMPRESSION_METHOD_IBM_TERSE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#70 -Zip::COMPRESSION_METHOD_IMPLODE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#84 -Zip::COMPRESSION_METHOD_JPEG = T.let(T.unsafe(nil), Integer) - -# RESERVED = 13 -# -# source://rubyzip//lib/zip/constants.rb#78 -Zip::COMPRESSION_METHOD_LZMA = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#74 -Zip::COMPRESSION_METHOD_PKWARE_DCLI = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#86 -Zip::COMPRESSION_METHOD_PPMD = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#66 -Zip::COMPRESSION_METHOD_REDUCE_1 = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#67 -Zip::COMPRESSION_METHOD_REDUCE_2 = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#68 -Zip::COMPRESSION_METHOD_REDUCE_3 = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#69 -Zip::COMPRESSION_METHOD_REDUCE_4 = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#65 -Zip::COMPRESSION_METHOD_SHRINK = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#64 -Zip::COMPRESSION_METHOD_STORE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#85 -Zip::COMPRESSION_METHOD_WAVPACK = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/central_directory.rb#2 -class Zip::CentralDirectory - include ::Enumerable - - # @return [CentralDirectory] a new instance of CentralDirectory - # - # source://rubyzip//lib/zip/central_directory.rb#18 - def initialize(entries = T.unsafe(nil), comment = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/central_directory.rb#202 - def ==(other); end - - # Returns the value of attribute comment. - # - # source://rubyzip//lib/zip/central_directory.rb#11 - def comment; end - - # For iterating over the entries. - # - # source://rubyzip//lib/zip/central_directory.rb#184 - def each(&a_proc); end - - # Returns an Enumerable containing the entries. - # - # source://rubyzip//lib/zip/central_directory.rb#14 - def entries; end - - # @raise [Error] - # - # source://rubyzip//lib/zip/central_directory.rb#167 - def get_64_e_o_c_d(buf); end - - # @raise [Error] - # - # source://rubyzip//lib/zip/central_directory.rb#141 - def get_e_o_c_d(buf); end - - # @raise [Error] - # - # source://rubyzip//lib/zip/central_directory.rb#87 - def read_64_e_o_c_d(buf); end - - # source://rubyzip//lib/zip/central_directory.rb#119 - def read_central_directory_entries(io); end - - # @raise [Error] - # - # source://rubyzip//lib/zip/central_directory.rb#102 - def read_e_o_c_d(buf); end - - # source://rubyzip//lib/zip/central_directory.rb#131 - def read_from_stream(io); end - - # Returns the number of entries in the central directory (and - # consequently in the zip archive). - # - # source://rubyzip//lib/zip/central_directory.rb#190 - def size; end - - # source://rubyzip//lib/zip/central_directory.rb#158 - def start_buf(io); end - - # source://rubyzip//lib/zip/central_directory.rb#24 - def write_to_stream(io); end - - # @return [Boolean] - # - # source://rubyzip//lib/zip/central_directory.rb#154 - def zip64_file?(buf); end - - private - - # source://rubyzip//lib/zip/central_directory.rb#57 - def write_64_e_o_c_d(io, offset, cdir_size); end - - # source://rubyzip//lib/zip/central_directory.rb#75 - def write_64_eocd_locator(io, zip64_eocd_offset); end - - # source://rubyzip//lib/zip/central_directory.rb#40 - def write_e_o_c_d(io, offset, cdir_size); end - - class << self - # source://rubyzip//lib/zip/central_directory.rb#194 - def read_from_stream(io); end - end -end - -# source://rubyzip//lib/zip/central_directory.rb#5 -Zip::CentralDirectory::END_OF_CDS = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/central_directory.rb#8 -Zip::CentralDirectory::MAX_END_OF_CDS_SIZE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/central_directory.rb#9 -Zip::CentralDirectory::STATIC_EOCD_SIZE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/central_directory.rb#6 -Zip::CentralDirectory::ZIP64_END_OF_CDS = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/central_directory.rb#7 -Zip::CentralDirectory::ZIP64_EOCD_LOCATOR = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/errors.rb#5 -class Zip::CompressionMethodError < ::Zip::Error; end - -# source://rubyzip//lib/zip/compressor.rb#2 -class Zip::Compressor - # source://rubyzip//lib/zip/compressor.rb#3 - def finish; end -end - -# source://rubyzip//lib/zip/dos_time.rb#3 -class Zip::DOSTime < ::Time - # Dos time is only stored with two seconds accuracy. - # - # source://rubyzip//lib/zip/dos_time.rb#34 - def <=>(other); end - - # source://rubyzip//lib/zip/dos_time.rb#27 - def dos_equals(other); end - - # source://rubyzip//lib/zip/dos_time.rb#21 - def to_binary_dos_date; end - - # Register DX, the Date: - # Bits 0-4 day (1-31) - # bits 5-8 month (1-12) - # bits 9-15 year (four digit year minus 1980) - # - # source://rubyzip//lib/zip/dos_time.rb#15 - def to_binary_dos_time; end - - class << self - # Create a DOSTime instance from a vanilla Time instance. - # - # source://rubyzip//lib/zip/dos_time.rb#41 - def from_time(time); end - - # source://rubyzip//lib/zip/dos_time.rb#45 - def parse_binary_dos_format(bin_dos_date, bin_dos_time); end - end -end - -# source://rubyzip//lib/zip/errors.rb#10 -class Zip::DecompressionError < ::Zip::Error; end - -# source://rubyzip//lib/zip/decompressor.rb#2 -class Zip::Decompressor - # @return [Decompressor] a new instance of Decompressor - # - # source://rubyzip//lib/zip/decompressor.rb#20 - def initialize(input_stream, decompressed_size = T.unsafe(nil)); end - - # Returns the value of attribute decompressed_size. - # - # source://rubyzip//lib/zip/decompressor.rb#18 - def decompressed_size; end - - # Returns the value of attribute input_stream. - # - # source://rubyzip//lib/zip/decompressor.rb#17 - def input_stream; end - - class << self - # source://rubyzip//lib/zip/decompressor.rb#5 - def decompressor_classes; end - - # source://rubyzip//lib/zip/decompressor.rb#13 - def find_by_compression_method(compression_method); end - - # source://rubyzip//lib/zip/decompressor.rb#9 - def register(compression_method, decompressor_class); end - end -end - -# source://rubyzip//lib/zip/decompressor.rb#3 -Zip::Decompressor::CHUNK_SIZE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/crypto/decrypted_io.rb#2 -class Zip::DecryptedIo - # @return [DecryptedIo] a new instance of DecryptedIo - # - # source://rubyzip//lib/zip/crypto/decrypted_io.rb#5 - def initialize(io, decrypter); end - - # source://rubyzip//lib/zip/crypto/decrypted_io.rb#10 - def read(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end - - private - - # source://rubyzip//lib/zip/crypto/decrypted_io.rb#28 - def buffer; end - - # source://rubyzip//lib/zip/crypto/decrypted_io.rb#24 - def eof; end - - # @return [Boolean] - # - # source://rubyzip//lib/zip/crypto/decrypted_io.rb#32 - def input_finished?; end - - # source://rubyzip//lib/zip/crypto/decrypted_io.rb#36 - def produce_input; end -end - -# source://rubyzip//lib/zip/crypto/decrypted_io.rb#3 -Zip::DecryptedIo::CHUNK_SIZE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/crypto/encryption.rb#5 -class Zip::Decrypter; end - -# source://rubyzip//lib/zip/deflater.rb#2 -class Zip::Deflater < ::Zip::Compressor - # @return [Deflater] a new instance of Deflater - # - # source://rubyzip//lib/zip/deflater.rb#3 - def initialize(output_stream, level = T.unsafe(nil), encrypter = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/deflater.rb#12 - def <<(data); end - - # Returns the value of attribute crc. - # - # source://rubyzip//lib/zip/deflater.rb#28 - def crc; end - - # source://rubyzip//lib/zip/deflater.rb#24 - def finish; end - - # Returns the value of attribute size. - # - # source://rubyzip//lib/zip/deflater.rb#28 - def size; end -end - -# source://rubyzip//lib/zip/errors.rb#4 -class Zip::DestinationFileExistsError < ::Zip::Error; end - -# source://rubyzip//lib/zip/crypto/encryption.rb#2 -class Zip::Encrypter; end - -# source://rubyzip//lib/zip/entry.rb#3 -class Zip::Entry - # @return [Entry] a new instance of Entry - # - # source://rubyzip//lib/zip/entry.rb#56 - def initialize(zipfile = T.unsafe(nil), name = T.unsafe(nil), *args); end - - # source://rubyzip//lib/zip/entry.rb#551 - def <=>(other); end - - # source://rubyzip//lib/zip/entry.rb#541 - def ==(other); end - - # source://rubyzip//lib/zip/entry.rb#166 - def calculate_local_header_size; end - - # source://rubyzip//lib/zip/entry.rb#179 - def cdir_header_size; end - - # @raise [::Zip::Error] - # - # source://rubyzip//lib/zip/entry.rb#415 - def check_c_dir_entry_comment_size; end - - # @raise [Error] - # - # source://rubyzip//lib/zip/entry.rb#409 - def check_c_dir_entry_signature; end - - # @raise [Error] - # - # source://rubyzip//lib/zip/entry.rb#403 - def check_c_dir_entry_static_header_length(buf); end - - # @raise [::Zip::EntryNameError] - # - # source://rubyzip//lib/zip/entry.rb#49 - def check_name(name); end - - # source://rubyzip//lib/zip/entry.rb#642 - def clean_up; end - - # Returns the value of attribute comment. - # - # source://rubyzip//lib/zip/entry.rb#9 - def comment; end - - # Sets the attribute comment - # - # @param value the value to set the attribute comment to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def comment=(_arg0); end - - # source://rubyzip//lib/zip/entry.rb#162 - def comment_size; end - - # Returns the value of attribute compressed_size. - # - # source://rubyzip//lib/zip/entry.rb#9 - def compressed_size; end - - # Sets the attribute compressed_size - # - # @param value the value to set the attribute compressed_size to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def compressed_size=(_arg0); end - - # Returns the value of attribute compression_method. - # - # source://rubyzip//lib/zip/entry.rb#9 - def compression_method; end - - # Sets the attribute compression_method - # - # @param value the value to set the attribute compression_method to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def compression_method=(_arg0); end - - # Returns the value of attribute crc. - # - # source://rubyzip//lib/zip/entry.rb#9 - def crc; end - - # Sets the attribute crc - # - # @param value the value to set the attribute crc to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def crc=(_arg0); end - - # source://rubyzip//lib/zip/entry.rb#129 - def directory?; end - - # Returns the value of attribute dirty. - # - # source://rubyzip//lib/zip/entry.rb#9 - def dirty; end - - # Sets the attribute dirty - # - # @param value the value to set the attribute dirty to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def dirty=(_arg0); end - - # @return [Boolean] - # - # source://rubyzip//lib/zip/entry.rb#91 - def encrypted?; end - - # Returns the value of attribute external_file_attributes. - # - # source://rubyzip//lib/zip/entry.rb#9 - def external_file_attributes; end - - # Sets the attribute external_file_attributes - # - # @param value the value to set the attribute external_file_attributes to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def external_file_attributes=(_arg0); end - - # Returns the value of attribute extra. - # - # source://rubyzip//lib/zip/entry.rb#9 - def extra; end - - # Sets the attribute extra - # - # @param value the value to set the attribute extra to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def extra=(_arg0); end - - # source://rubyzip//lib/zip/entry.rb#158 - def extra_size; end - - # Extracts entry to file dest_path (defaults to @name). - # NB: The caller is responsible for making sure dest_path is safe, if it - # is passed. - # - # source://rubyzip//lib/zip/entry.rb#191 - def extract(dest_path = T.unsafe(nil), &block); end - - # Extracts this entry to a file at `entry_path`, with - # `destination_directory` as the base location in the filesystem. - # - # NB: The caller is responsible for making sure `destination_directory` is - # safe, if it is passed. - # - # source://rubyzip//lib/zip/entry.rb#213 - def extract_v3(entry_path = T.unsafe(nil), destination_directory: T.unsafe(nil), &block); end - - # source://rubyzip//lib/zip/entry.rb#129 - def file?; end - - # source://rubyzip//lib/zip/entry.rb#446 - def file_stat(path); end - - # @raise [InternalError] - # @return [Boolean] - # - # source://rubyzip//lib/zip/entry.rb#121 - def file_type_is?(type); end - - # source://rubyzip//lib/zip/entry.rb#16 - def filepath; end - - # Returns the value of attribute follow_symlinks. - # - # source://rubyzip//lib/zip/entry.rb#9 - def follow_symlinks; end - - # Sets the attribute follow_symlinks - # - # @param value the value to set the attribute follow_symlinks to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def follow_symlinks=(_arg0); end - - # Returns the value of attribute fstype. - # - # source://rubyzip//lib/zip/entry.rb#9 - def fstype; end - - # Sets the attribute fstype - # - # @param value the value to set the attribute fstype to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def fstype=(_arg0); end - - # source://rubyzip//lib/zip/entry.rb#16 - def ftype; end - - # source://rubyzip//lib/zip/entry.rb#589 - def gather_fileinfo_from_srcpath(src_path); end - - # source://rubyzip//lib/zip/entry.rb#454 - def get_extra_attributes_from_path(path); end - - # Returns an IO like object for the given ZipEntry. - # Warning: may behave weird with symlinks. - # - # source://rubyzip//lib/zip/entry.rb#557 - def get_input_stream(&block); end - - # source://rubyzip//lib/zip/entry.rb#634 - def get_raw_input_stream(&block); end - - # Returns the value of attribute gp_flags. - # - # source://rubyzip//lib/zip/entry.rb#9 - def gp_flags; end - - # Sets the attribute gp_flags - # - # @param value the value to set the attribute gp_flags to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def gp_flags=(_arg0); end - - # Returns the value of attribute header_signature. - # - # source://rubyzip//lib/zip/entry.rb#9 - def header_signature; end - - # Sets the attribute header_signature - # - # @param value the value to set the attribute header_signature to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def header_signature=(_arg0); end - - # @return [Boolean] - # - # source://rubyzip//lib/zip/entry.rb#95 - def incomplete?; end - - # Returns the value of attribute internal_file_attributes. - # - # source://rubyzip//lib/zip/entry.rb#9 - def internal_file_attributes; end - - # Sets the attribute internal_file_attributes - # - # @param value the value to set the attribute internal_file_attributes to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def internal_file_attributes=(_arg0); end - - # source://rubyzip//lib/zip/entry.rb#150 - def local_entry_offset; end - - # Returns the value of attribute local_header_offset. - # - # source://rubyzip//lib/zip/entry.rb#9 - def local_header_offset; end - - # Sets the attribute local_header_offset - # - # @param value the value to set the attribute local_header_offset to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def local_header_offset=(_arg0); end - - # source://rubyzip//lib/zip/entry.rb#99 - def mtime; end - - # Returns the value of attribute name. - # - # source://rubyzip//lib/zip/entry.rb#9 - def name; end - - # Sets the attribute name - # - # @param value the value to set the attribute name to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def name=(_arg0); end - - # @return [Boolean] - # - # source://rubyzip//lib/zip/entry.rb#134 - def name_is_directory?; end - - # Is the name a relative path, free of `..` patterns that could lead to - # path traversal attacks? This does NOT handle symlinks; if the path - # contains symlinks, this check is NOT enough to guarantee safety. - # - # @return [Boolean] - # - # source://rubyzip//lib/zip/entry.rb#141 - def name_safe?; end - - # source://rubyzip//lib/zip/entry.rb#154 - def name_size; end - - # source://rubyzip//lib/zip/entry.rb#184 - def next_header_offset; end - - # source://rubyzip//lib/zip/entry.rb#486 - def pack_c_dir_entry; end - - # source://rubyzip//lib/zip/entry.rb#323 - def pack_local_entry; end - - # source://rubyzip//lib/zip/entry.rb#628 - def parent_as_string; end - - # source://rubyzip//lib/zip/entry.rb#429 - def read_c_dir_entry(io); end - - # source://rubyzip//lib/zip/entry.rb#421 - def read_c_dir_extra_field(io); end - - # source://rubyzip//lib/zip/entry.rb#284 - def read_local_entry(io); end - - # Returns the value of attribute restore_ownership. - # - # source://rubyzip//lib/zip/entry.rb#9 - def restore_ownership; end - - # Sets the attribute restore_ownership - # - # @param value the value to set the attribute restore_ownership to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def restore_ownership=(_arg0); end - - # Returns the value of attribute restore_permissions. - # - # source://rubyzip//lib/zip/entry.rb#9 - def restore_permissions; end - - # Sets the attribute restore_permissions - # - # @param value the value to set the attribute restore_permissions to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def restore_permissions=(_arg0); end - - # Returns the value of attribute restore_times. - # - # source://rubyzip//lib/zip/entry.rb#9 - def restore_times; end - - # Sets the attribute restore_times - # - # @param value the value to set the attribute restore_times to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def restore_times=(_arg0); end - - # source://rubyzip//lib/zip/entry.rb#18 - def set_default_vars_values; end - - # source://rubyzip//lib/zip/entry.rb#477 - def set_extra_attributes_on_path(dest_path); end - - # source://rubyzip//lib/zip/entry.rb#374 - def set_ftype_from_c_dir_entry; end - - # source://rubyzip//lib/zip/entry.rb#464 - def set_unix_attributes_on_path(dest_path); end - - # Returns the value of attribute size. - # - # source://rubyzip//lib/zip/entry.rb#9 - def size; end - - # Sets the attribute size - # - # @param value the value to set the attribute size to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def size=(_arg0); end - - # source://rubyzip//lib/zip/entry.rb#129 - def symlink?; end - - # source://rubyzip//lib/zip/entry.rb#99 - def time; end - - # source://rubyzip//lib/zip/entry.rb#113 - def time=(value); end - - # source://rubyzip//lib/zip/entry.rb#230 - def to_s; end - - # Returns the value of attribute unix_gid. - # - # source://rubyzip//lib/zip/entry.rb#9 - def unix_gid; end - - # Sets the attribute unix_gid - # - # @param value the value to set the attribute unix_gid to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def unix_gid=(_arg0); end - - # Returns the value of attribute unix_perms. - # - # source://rubyzip//lib/zip/entry.rb#9 - def unix_perms; end - - # Sets the attribute unix_perms - # - # @param value the value to set the attribute unix_perms to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def unix_perms=(_arg0); end - - # Returns the value of attribute unix_uid. - # - # source://rubyzip//lib/zip/entry.rb#9 - def unix_uid; end - - # Sets the attribute unix_uid - # - # @param value the value to set the attribute unix_uid to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def unix_uid=(_arg0); end - - # source://rubyzip//lib/zip/entry.rb#350 - def unpack_c_dir_entry(buf); end - - # source://rubyzip//lib/zip/entry.rb#269 - def unpack_local_entry(buf); end - - # check before rewriting an entry (after file sizes are known) - # that we didn't change the header size (and thus clobber file data or something) - # - # @raise [Error] - # - # source://rubyzip//lib/zip/entry.rb#172 - def verify_local_header_size!; end - - # source://rubyzip//lib/zip/entry.rb#513 - def write_c_dir_entry(io); end - - # source://rubyzip//lib/zip/entry.rb#338 - def write_local_entry(io, rewrite = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/entry.rb#617 - def write_to_zip_output_stream(zip_output_stream); end - - # Returns the value of attribute zipfile. - # - # source://rubyzip//lib/zip/entry.rb#9 - def zipfile; end - - # Sets the attribute zipfile - # - # @param value the value to set the attribute zipfile to. - # - # source://rubyzip//lib/zip/entry.rb#9 - def zipfile=(_arg0); end - - private - - # source://rubyzip//lib/zip/entry.rb#681 - def create_directory(dest_path); end - - # source://rubyzip//lib/zip/entry.rb#654 - def create_file(dest_path, _continue_on_exists_proc = T.unsafe(nil)); end - - # BUG: create_symlink() does not use &block - # - # source://rubyzip//lib/zip/entry.rb#698 - def create_symlink(dest_path); end - - # source://rubyzip//lib/zip/entry.rb#716 - def data_descriptor_size; end - - # apply missing data from the zip64 extra information field, if present - # (required when file sizes exceed 2**32, but can be used for all files) - # - # source://rubyzip//lib/zip/entry.rb#706 - def parse_zip64_extra(for_local_header); end - - # create a zip64 extra information field if we need one - # - # source://rubyzip//lib/zip/entry.rb#721 - def prep_zip64_extra(for_local_header); end - - # source://rubyzip//lib/zip/entry.rb#648 - def set_time(binary_dos_date, binary_dos_time); end - - class << self - # source://rubyzip//lib/zip/entry.rb#247 - def read_c_dir_entry(io); end - - # source://rubyzip//lib/zip/entry.rb#260 - def read_local_entry(io); end - - # source://rubyzip//lib/zip/entry.rb#243 - def read_zip_64_long(io); end - - # source://rubyzip//lib/zip/entry.rb#239 - def read_zip_long(io); end - - # source://rubyzip//lib/zip/entry.rb#235 - def read_zip_short(io); end - end -end - -# source://rubyzip//lib/zip/entry.rb#5 -Zip::Entry::DEFLATED = T.let(T.unsafe(nil), Integer) - -# Language encoding flag (EFS) bit -# -# source://rubyzip//lib/zip/entry.rb#7 -Zip::Entry::EFS = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/entry.rb#4 -Zip::Entry::STORED = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/errors.rb#3 -class Zip::EntryExistsError < ::Zip::Error; end - -# source://rubyzip//lib/zip/errors.rb#6 -class Zip::EntryNameError < ::Zip::Error; end - -# source://rubyzip//lib/zip/entry_set.rb#2 -class Zip::EntrySet - include ::Enumerable - - # @return [EntrySet] a new instance of EntrySet - # - # source://rubyzip//lib/zip/entry_set.rb#6 - def initialize(an_enumerable = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/entry_set.rb#20 - def <<(entry); end - - # source://rubyzip//lib/zip/entry_set.rb#51 - def ==(other); end - - # source://rubyzip//lib/zip/entry_set.rb#32 - def delete(entry); end - - # deep clone - # - # source://rubyzip//lib/zip/entry_set.rb#47 - def dup; end - - # source://rubyzip//lib/zip/entry_set.rb#36 - def each; end - - # source://rubyzip//lib/zip/entry_set.rb#42 - def entries; end - - # Returns the value of attribute entry_order. - # - # source://rubyzip//lib/zip/entry_set.rb#4 - def entry_order; end - - # Sets the attribute entry_order - # - # @param value the value to set the attribute entry_order to. - # - # source://rubyzip//lib/zip/entry_set.rb#4 - def entry_order=(_arg0); end - - # Returns the value of attribute entry_set. - # - # source://rubyzip//lib/zip/entry_set.rb#4 - def entry_set; end - - # Sets the attribute entry_set - # - # @param value the value to set the attribute entry_set to. - # - # source://rubyzip//lib/zip/entry_set.rb#4 - def entry_set=(_arg0); end - - # source://rubyzip//lib/zip/entry_set.rb#16 - def find_entry(entry); end - - # source://rubyzip//lib/zip/entry_set.rb#61 - def glob(pattern, flags = T.unsafe(nil)); end - - # @return [Boolean] - # - # source://rubyzip//lib/zip/entry_set.rb#12 - def include?(entry); end - - # source://rubyzip//lib/zip/entry_set.rb#26 - def length; end - - # source://rubyzip//lib/zip/entry_set.rb#57 - def parent(entry); end - - # source://rubyzip//lib/zip/entry_set.rb#20 - def push(entry); end - - # source://rubyzip//lib/zip/entry_set.rb#26 - def size; end - - protected - - # source://rubyzip//lib/zip/entry_set.rb#72 - def sorted_entries; end - - private - - # source://rubyzip//lib/zip/entry_set.rb#78 - def to_key(entry); end -end - -# source://rubyzip//lib/zip/errors.rb#7 -class Zip::EntrySizeError < ::Zip::Error; end - -# source://rubyzip//lib/zip/errors.rb#2 -class Zip::Error < ::StandardError; end - -# source://rubyzip//lib/zip/extra_field.rb#2 -class Zip::ExtraField < ::Hash - # @return [ExtraField] a new instance of ExtraField - # - # source://rubyzip//lib/zip/extra_field.rb#5 - def initialize(binstr = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/extra_field.rb#80 - def c_dir_size; end - - # source://rubyzip//lib/zip/extra_field.rb#54 - def create(name); end - - # source://rubyzip//lib/zip/extra_field.rb#28 - def create_unknown_item; end - - # source://rubyzip//lib/zip/extra_field.rb#9 - def extra_field_type_exist(binstr, id, len, index); end - - # source://rubyzip//lib/zip/extra_field.rb#19 - def extra_field_type_unknown(binstr, len, index); end - - # source://rubyzip//lib/zip/extra_field.rb#84 - def length; end - - # source://rubyzip//lib/zip/extra_field.rb#84 - def local_size; end - - # source://rubyzip//lib/zip/extra_field.rb#37 - def merge(binstr); end - - # place Unknown last, so "extra" data that is missing the proper signature/size - # does not prevent known fields from being read back in - # - # source://rubyzip//lib/zip/extra_field.rb#64 - def ordered_values; end - - # source://rubyzip//lib/zip/extra_field.rb#84 - def size; end - - # source://rubyzip//lib/zip/extra_field.rb#76 - def to_c_dir_bin; end - - # source://rubyzip//lib/zip/extra_field.rb#70 - def to_local_bin; end - - # source://rubyzip//lib/zip/extra_field.rb#70 - def to_s; end -end - -# source://rubyzip//lib/zip/extra_field/generic.rb#2 -class Zip::ExtraField::Generic - # source://rubyzip//lib/zip/extra_field/generic.rb#25 - def ==(other); end - - # source://rubyzip//lib/zip/extra_field/generic.rb#14 - def initial_parse(binstr); end - - # source://rubyzip//lib/zip/extra_field/generic.rb#39 - def to_c_dir_bin; end - - # source://rubyzip//lib/zip/extra_field/generic.rb#34 - def to_local_bin; end - - class << self - # source://rubyzip//lib/zip/extra_field/generic.rb#9 - def name; end - - # source://rubyzip//lib/zip/extra_field/generic.rb#3 - def register_map; end - end -end - -# source://rubyzip//lib/zip/extra_field.rb#3 -Zip::ExtraField::ID_MAP = T.let(T.unsafe(nil), Hash) - -# source://rubyzip//lib/zip/extra_field/unix.rb#3 -class Zip::ExtraField::IUnix < ::Zip::ExtraField::Generic - # source://rubyzip//lib/zip/extra_field/unix.rb#7 - def initialize(binstr = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/extra_field/unix.rb#27 - def ==(other); end - - # source://rubyzip//lib/zip/extra_field/unix.rb#13 - def gid; end - - # source://rubyzip//lib/zip/extra_field/unix.rb#13 - def gid=(_arg0); end - - # source://rubyzip//lib/zip/extra_field/unix.rb#15 - def merge(binstr); end - - # source://rubyzip//lib/zip/extra_field/unix.rb#35 - def pack_for_c_dir; end - - # source://rubyzip//lib/zip/extra_field/unix.rb#31 - def pack_for_local; end - - # source://rubyzip//lib/zip/extra_field/unix.rb#13 - def uid; end - - # source://rubyzip//lib/zip/extra_field/unix.rb#13 - def uid=(_arg0); end -end - -# source://rubyzip//lib/zip/extra_field/unix.rb#4 -Zip::ExtraField::IUnix::HEADER_ID = T.let(T.unsafe(nil), String) - -# source://rubyzip//lib/zip/extra_field/ntfs.rb#4 -class Zip::ExtraField::NTFS < ::Zip::ExtraField::Generic - # source://rubyzip//lib/zip/extra_field/ntfs.rb#11 - def initialize(binstr = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/extra_field/ntfs.rb#38 - def ==(other); end - - # source://rubyzip//lib/zip/extra_field/ntfs.rb#18 - def atime; end - - # source://rubyzip//lib/zip/extra_field/ntfs.rb#18 - def atime=(_arg0); end - - # source://rubyzip//lib/zip/extra_field/ntfs.rb#18 - def ctime; end - - # source://rubyzip//lib/zip/extra_field/ntfs.rb#18 - def ctime=(_arg0); end - - # source://rubyzip//lib/zip/extra_field/ntfs.rb#20 - def merge(binstr); end - - # source://rubyzip//lib/zip/extra_field/ntfs.rb#18 - def mtime; end - - # source://rubyzip//lib/zip/extra_field/ntfs.rb#18 - def mtime=(_arg0); end - - # source://rubyzip//lib/zip/extra_field/ntfs.rb#50 - def pack_for_c_dir; end - - # source://rubyzip//lib/zip/extra_field/ntfs.rb#45 - def pack_for_local; end - - private - - # source://rubyzip//lib/zip/extra_field/ntfs.rb#86 - def from_ntfs_time(ntfs_time); end - - # source://rubyzip//lib/zip/extra_field/ntfs.rb#68 - def parse_tags(content); end - - # source://rubyzip//lib/zip/extra_field/ntfs.rb#90 - def to_ntfs_time(time); end -end - -# source://rubyzip//lib/zip/extra_field/ntfs.rb#5 -Zip::ExtraField::NTFS::HEADER_ID = T.let(T.unsafe(nil), String) - -# source://rubyzip//lib/zip/extra_field/ntfs.rb#9 -Zip::ExtraField::NTFS::SEC_TO_UNIX_EPOCH = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/extra_field/ntfs.rb#8 -Zip::ExtraField::NTFS::WINDOWS_TICK = T.let(T.unsafe(nil), Float) - -# source://rubyzip//lib/zip/extra_field/old_unix.rb#3 -class Zip::ExtraField::OldUnix < ::Zip::ExtraField::Generic - # source://rubyzip//lib/zip/extra_field/old_unix.rb#7 - def initialize(binstr = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/extra_field/old_unix.rb#31 - def ==(other); end - - # source://rubyzip//lib/zip/extra_field/old_unix.rb#15 - def atime; end - - # source://rubyzip//lib/zip/extra_field/old_unix.rb#15 - def atime=(_arg0); end - - # source://rubyzip//lib/zip/extra_field/old_unix.rb#15 - def gid; end - - # source://rubyzip//lib/zip/extra_field/old_unix.rb#15 - def gid=(_arg0); end - - # source://rubyzip//lib/zip/extra_field/old_unix.rb#17 - def merge(binstr); end - - # source://rubyzip//lib/zip/extra_field/old_unix.rb#15 - def mtime; end - - # source://rubyzip//lib/zip/extra_field/old_unix.rb#15 - def mtime=(_arg0); end - - # source://rubyzip//lib/zip/extra_field/old_unix.rb#42 - def pack_for_c_dir; end - - # source://rubyzip//lib/zip/extra_field/old_unix.rb#38 - def pack_for_local; end - - # source://rubyzip//lib/zip/extra_field/old_unix.rb#15 - def uid; end - - # source://rubyzip//lib/zip/extra_field/old_unix.rb#15 - def uid=(_arg0); end -end - -# source://rubyzip//lib/zip/extra_field/old_unix.rb#4 -Zip::ExtraField::OldUnix::HEADER_ID = T.let(T.unsafe(nil), String) - -# source://rubyzip//lib/zip/extra_field/universal_time.rb#3 -class Zip::ExtraField::UniversalTime < ::Zip::ExtraField::Generic - # source://rubyzip//lib/zip/extra_field/universal_time.rb#11 - def initialize(binstr = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/extra_field/universal_time.rb#57 - def ==(other); end - - # source://rubyzip//lib/zip/extra_field/universal_time.rb#20 - def atime; end - - # source://rubyzip//lib/zip/extra_field/universal_time.rb#22 - def atime=(time); end - - # source://rubyzip//lib/zip/extra_field/universal_time.rb#20 - def ctime; end - - # source://rubyzip//lib/zip/extra_field/universal_time.rb#27 - def ctime=(time); end - - # source://rubyzip//lib/zip/extra_field/universal_time.rb#20 - def flag; end - - # source://rubyzip//lib/zip/extra_field/universal_time.rb#37 - def merge(binstr); end - - # source://rubyzip//lib/zip/extra_field/universal_time.rb#20 - def mtime; end - - # source://rubyzip//lib/zip/extra_field/universal_time.rb#32 - def mtime=(time); end - - # source://rubyzip//lib/zip/extra_field/universal_time.rb#71 - def pack_for_c_dir; end - - # source://rubyzip//lib/zip/extra_field/universal_time.rb#63 - def pack_for_local; end -end - -# source://rubyzip//lib/zip/extra_field/universal_time.rb#7 -Zip::ExtraField::UniversalTime::ATIME_MASK = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/extra_field/universal_time.rb#8 -Zip::ExtraField::UniversalTime::CTIME_MASK = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/extra_field/universal_time.rb#4 -Zip::ExtraField::UniversalTime::HEADER_ID = T.let(T.unsafe(nil), String) - -# source://rubyzip//lib/zip/extra_field/universal_time.rb#9 -Zip::ExtraField::UniversalTime::MTIME_MASK = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/extra_field/zip64.rb#3 -class Zip::ExtraField::Zip64 < ::Zip::ExtraField::Generic - # source://rubyzip//lib/zip/extra_field/zip64.rb#8 - def initialize(binstr = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/extra_field/zip64.rb#20 - def ==(other); end - - # source://rubyzip//lib/zip/extra_field/zip64.rb#4 - def compressed_size; end - - # source://rubyzip//lib/zip/extra_field/zip64.rb#4 - def compressed_size=(_arg0); end - - # source://rubyzip//lib/zip/extra_field/zip64.rb#4 - def disk_start_number; end - - # source://rubyzip//lib/zip/extra_field/zip64.rb#4 - def disk_start_number=(_arg0); end - - # source://rubyzip//lib/zip/extra_field/zip64.rb#27 - def merge(binstr); end - - # source://rubyzip//lib/zip/extra_field/zip64.rb#4 - def original_size; end - - # source://rubyzip//lib/zip/extra_field/zip64.rb#4 - def original_size=(_arg0); end - - # source://rubyzip//lib/zip/extra_field/zip64.rb#60 - def pack_for_c_dir; end - - # source://rubyzip//lib/zip/extra_field/zip64.rb#53 - def pack_for_local; end - - # source://rubyzip//lib/zip/extra_field/zip64.rb#36 - def parse(original_size, compressed_size, relative_header_offset = T.unsafe(nil), disk_start_number = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/extra_field/zip64.rb#4 - def relative_header_offset; end - - # source://rubyzip//lib/zip/extra_field/zip64.rb#4 - def relative_header_offset=(_arg0); end - - private - - # source://rubyzip//lib/zip/extra_field/zip64.rb#48 - def extract(size, format); end -end - -# source://rubyzip//lib/zip/extra_field/zip64.rb#5 -Zip::ExtraField::Zip64::HEADER_ID = T.let(T.unsafe(nil), String) - -# source://rubyzip//lib/zip/extra_field/zip64_placeholder.rb#5 -class Zip::ExtraField::Zip64Placeholder < ::Zip::ExtraField::Generic - # source://rubyzip//lib/zip/extra_field/zip64_placeholder.rb#9 - def initialize(_binstr = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/extra_field/zip64_placeholder.rb#11 - def pack_for_local; end -end - -# source://rubyzip//lib/zip/extra_field/zip64_placeholder.rb#6 -Zip::ExtraField::Zip64Placeholder::HEADER_ID = T.let(T.unsafe(nil), String) - -# source://rubyzip//lib/zip/constants.rb#15 -Zip::FILE_TYPE_DIR = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#14 -Zip::FILE_TYPE_FILE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#16 -Zip::FILE_TYPE_SYMLINK = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#40 -Zip::FSTYPES = T.let(T.unsafe(nil), Hash) - -# source://rubyzip//lib/zip/constants.rb#31 -Zip::FSTYPE_ACORN = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#19 -Zip::FSTYPE_AMIGA = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#23 -Zip::FSTYPE_ATARI = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#38 -Zip::FSTYPE_ATHEOS = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#34 -Zip::FSTYPE_BEOS = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#27 -Zip::FSTYPE_CPM = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#18 -Zip::FSTYPE_FAT = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#24 -Zip::FSTYPE_HPFS = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#25 -Zip::FSTYPE_MAC = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#37 -Zip::FSTYPE_MAC_OSX = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#33 -Zip::FSTYPE_MVS = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#29 -Zip::FSTYPE_NTFS = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#30 -Zip::FSTYPE_QDOS = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#35 -Zip::FSTYPE_TANDEM = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#36 -Zip::FSTYPE_THEOS = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#28 -Zip::FSTYPE_TOPS20 = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#21 -Zip::FSTYPE_UNIX = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#32 -Zip::FSTYPE_VFAT = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#20 -Zip::FSTYPE_VMS = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#22 -Zip::FSTYPE_VM_CMS = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#26 -Zip::FSTYPE_Z_SYSTEM = T.let(T.unsafe(nil), Integer) - -# ZipFile is modeled after java.util.zip.ZipFile from the Java SDK. -# The most important methods are those inherited from -# ZipCentralDirectory for accessing information about the entries in -# the archive and methods such as get_input_stream and -# get_output_stream for reading from and writing entries to the -# archive. The class includes a few convenience methods such as -# #extract for extracting entries to the filesystem, and #remove, -# #replace, #rename and #mkdir for making simple modifications to -# the archive. -# -# Modifications to a zip archive are not committed until #commit or -# #close is called. The method #open accepts a block following -# the pattern from File.open offering a simple way to -# automatically close the archive when the block returns. -# -# The following example opens zip archive my.zip -# (creating it if it doesn't exist) and adds an entry -# first.txt and a directory entry a_dir -# to it. -# -# require 'zip' -# -# Zip::File.open("my.zip", Zip::File::CREATE) { -# |zipfile| -# zipfile.get_output_stream("first.txt") { |f| f.puts "Hello from ZipFile" } -# zipfile.mkdir("a_dir") -# } -# -# The next example reopens my.zip writes the contents of -# first.txt to standard out and deletes the entry from -# the archive. -# -# require 'zip' -# -# Zip::File.open("my.zip", Zip::File::CREATE) { -# |zipfile| -# puts zipfile.read("first.txt") -# zipfile.remove("first.txt") -# } -# -# ZipFileSystem offers an alternative API that emulates ruby's -# interface for accessing the filesystem, ie. the File and Dir classes. -# -# source://rubyzip//lib/zip/file.rb#45 -class Zip::File < ::Zip::CentralDirectory - # Opens a zip archive. Pass true as the second parameter to create - # a new archive if it doesn't exist already. - # - # @return [File] a new instance of File - # - # source://rubyzip//lib/zip/file.rb#76 - def initialize(path_or_io, dep_create = T.unsafe(nil), dep_buffer = T.unsafe(nil), create: T.unsafe(nil), buffer: T.unsafe(nil), **options); end - - # Convenience method for adding the contents of a file to the archive - # - # source://rubyzip//lib/zip/file.rb#335 - def add(entry, src_path, &continue_on_exists_proc); end - - # Convenience method for adding the contents of a file to the archive - # in Stored format (uncompressed) - # - # source://rubyzip//lib/zip/file.rb#346 - def add_stored(entry, src_path, &continue_on_exists_proc); end - - # Closes the zip file committing any changes that has been made. - # - # source://rubyzip//lib/zip/file.rb#424 - def close; end - - # Returns the zip files comment, if it has one - # - # source://rubyzip//lib/zip/file.rb#72 - def comment; end - - # Returns the zip files comment, if it has one - # - # source://rubyzip//lib/zip/file.rb#72 - def comment=(_arg0); end - - # Commits changes that has been made since the previous commit to - # the zip archive. - # - # source://rubyzip//lib/zip/file.rb#396 - def commit; end - - # Returns true if any changes has been made to this archive since - # the previous commit - # - # @return [Boolean] - # - # source://rubyzip//lib/zip/file.rb#430 - def commit_required?; end - - # Extracts entry to file dest_path. - # - # source://rubyzip//lib/zip/file.rb#374 - def extract(entry, dest_path, &block); end - - # Extracts `entry` to a file at `entry_path`, with `destination_directory` - # as the base location in the filesystem. - # - # NB: The caller is responsible for making sure `destination_directory` is - # safe, if it is passed. - # - # source://rubyzip//lib/zip/file.rb#387 - def extract_v3(entry, entry_path = T.unsafe(nil), destination_directory: T.unsafe(nil), &block); end - - # Searches for entry with the specified name. Returns nil if - # no entry is found. See also get_entry - # - # source://rubyzip//lib/zip/file.rb#439 - def find_entry(entry_name); end - - # Searches for an entry just as find_entry, but throws Errno::ENOENT - # if no entry is found. - # - # @raise [Errno::ENOENT] - # - # source://rubyzip//lib/zip/file.rb#456 - def get_entry(entry); end - - # Returns an input stream to the specified entry. If a block is passed - # the stream object is passed to the block and the stream is automatically - # closed afterwards just as with ruby's builtin File.open method. - # - # source://rubyzip//lib/zip/file.rb#275 - def get_input_stream(entry, &a_proc); end - - # Returns an output stream to the specified entry. If entry is not an instance - # of Zip::Entry, a new Zip::Entry will be initialized using the arguments - # specified. If a block is passed the stream object is passed to the block and - # the stream is automatically closed afterwards just as with ruby's builtin - # File.open method. - # - # source://rubyzip//lib/zip/file.rb#285 - def get_output_stream(entry, dep_permission_int = T.unsafe(nil), dep_comment = T.unsafe(nil), dep_extra = T.unsafe(nil), dep_compressed_size = T.unsafe(nil), dep_crc = T.unsafe(nil), dep_compression_method = T.unsafe(nil), dep_size = T.unsafe(nil), dep_time = T.unsafe(nil), permission_int: T.unsafe(nil), comment: T.unsafe(nil), extra: T.unsafe(nil), compressed_size: T.unsafe(nil), crc: T.unsafe(nil), compression_method: T.unsafe(nil), size: T.unsafe(nil), time: T.unsafe(nil), &a_proc); end - - # Searches for entries given a glob - # - # source://rubyzip//lib/zip/file.rb#450 - def glob(*args, &block); end - - # Creates a directory - # - # @raise [Errno::EEXIST] - # - # source://rubyzip//lib/zip/file.rb#464 - def mkdir(entry_name, permission = T.unsafe(nil)); end - - # Returns the value of attribute name. - # - # source://rubyzip//lib/zip/file.rb#60 - def name; end - - # Returns a string containing the contents of the specified entry - # - # source://rubyzip//lib/zip/file.rb#330 - def read(entry); end - - # Removes the specified entry. - # - # source://rubyzip//lib/zip/file.rb#352 - def remove(entry); end - - # Renames the specified entry. - # - # source://rubyzip//lib/zip/file.rb#357 - def rename(entry, new_name, &continue_on_exists_proc); end - - # Replaces the specified entry with the contents of src_path (from - # the file system). - # - # source://rubyzip//lib/zip/file.rb#367 - def replace(entry, src_path); end - - # default -> false. - # - # source://rubyzip//lib/zip/file.rb#63 - def restore_ownership; end - - # default -> false. - # - # source://rubyzip//lib/zip/file.rb#63 - def restore_ownership=(_arg0); end - - # default -> false, but will be set to true in a future version. - # - # source://rubyzip//lib/zip/file.rb#66 - def restore_permissions; end - - # default -> false, but will be set to true in a future version. - # - # source://rubyzip//lib/zip/file.rb#66 - def restore_permissions=(_arg0); end - - # default -> false, but will be set to true in a future version. - # - # source://rubyzip//lib/zip/file.rb#69 - def restore_times; end - - # default -> false, but will be set to true in a future version. - # - # source://rubyzip//lib/zip/file.rb#69 - def restore_times=(_arg0); end - - # Returns the name of the zip archive - # - # source://rubyzip//lib/zip/file.rb#325 - def to_s; end - - # Write buffer write changes to buffer and return - # - # source://rubyzip//lib/zip/file.rb#414 - def write_buffer(io = T.unsafe(nil)); end - - private - - # source://rubyzip//lib/zip/file.rb#486 - def check_entry_exists(entry_name, continue_on_exists_proc, proc_name); end - - # @raise [Errno::ENOENT] - # - # source://rubyzip//lib/zip/file.rb#498 - def check_file(path); end - - # @return [Boolean] - # - # source://rubyzip//lib/zip/file.rb#474 - def directory?(new_entry, src_path); end - - # source://rubyzip//lib/zip/file.rb#502 - def on_success_replace; end - - class << self - # Same as #open. But outputs data to a buffer instead of a file - # - # @yield [zf] - # - # source://rubyzip//lib/zip/file.rb#140 - def add_buffer; end - - # Iterates over the contents of the ZipFile. This is more efficient - # than using a ZipInputStream since this methods simply iterates - # through the entries in the central directory structure in the archive - # whereas ZipInputStream jumps through the entire archive accessing the - # local entry headers (which contain the same information as the - # central directory). - # - # source://rubyzip//lib/zip/file.rb#181 - def foreach(zip_file_name, &block); end - - # source://rubyzip//lib/zip/file.rb#197 - def get_partial_zip_file_name(zip_file_name, partial_zip_file_name); end - - # source://rubyzip//lib/zip/file.rb#206 - def get_segment_count_for_split(zip_file_size, segment_size); end - - # source://rubyzip//lib/zip/file.rb#187 - def get_segment_size_for_split(segment_size); end - - # Similar to ::new. If a block is passed the Zip::File object is passed - # to the block and is automatically closed afterwards, just as with - # ruby's builtin File::open method. - # - # source://rubyzip//lib/zip/file.rb#126 - def open(file_name, dep_create = T.unsafe(nil), create: T.unsafe(nil), **options); end - - # Like #open, but reads zip archive contents from a String or open IO - # stream, and outputs data to a buffer. - # (This can be used to extract data from a - # downloaded zip archive without first saving it to disk.) - # - # @yield [zf] - # - # source://rubyzip//lib/zip/file.rb#153 - def open_buffer(io, **options); end - - # source://rubyzip//lib/zip/file.rb#210 - def put_split_signature(szip_file, segment_size); end - - # TODO: Make the code more understandable - # - # source://rubyzip//lib/zip/file.rb#219 - def save_splited_part(zip_file, partial_zip_file_name, zip_file_size, szip_file_index, segment_size, segment_count); end - - # Splits an archive into parts with segment size - # - # @raise [Error] - # - # source://rubyzip//lib/zip/file.rb#241 - def split(zip_file_name, dep_segment_size = T.unsafe(nil), dep_delete_zip_file = T.unsafe(nil), dep_partial_zip_file_name = T.unsafe(nil), segment_size: T.unsafe(nil), delete_zip_file: T.unsafe(nil), partial_zip_file_name: T.unsafe(nil)); end - end -end - -# source://rubyzip//lib/zip/file.rb#46 -Zip::File::CREATE = T.let(T.unsafe(nil), TrueClass) - -# source://rubyzip//lib/zip/file.rb#51 -Zip::File::DATA_BUFFER_SIZE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/file.rb#54 -Zip::File::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - -# source://rubyzip//lib/zip/file.rb#52 -Zip::File::IO_METHODS = T.let(T.unsafe(nil), Array) - -# source://rubyzip//lib/zip/file.rb#49 -Zip::File::MAX_SEGMENT_SIZE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/file.rb#50 -Zip::File::MIN_SEGMENT_SIZE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/file.rb#47 -Zip::File::SPLIT_SIGNATURE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/file.rb#48 -Zip::File::ZIP64_EOCD_SIGNATURE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/errors.rb#9 -class Zip::GPFBit3Error < ::Zip::Error; end - -# source://rubyzip//lib/zip/ioextras.rb#2 -module Zip::IOExtras - class << self - # source://rubyzip//lib/zip/ioextras.rb#8 - def copy_stream(ostream, istream); end - - # source://rubyzip//lib/zip/ioextras.rb#12 - def copy_stream_n(ostream, istream, nbytes); end - end -end - -# Implements many of the convenience methods of IO -# such as gets, getc, readline and readlines -# depends on: input_finished?, produce_input and read -# -# source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#6 -module Zip::IOExtras::AbstractInputStream - include ::ActiveSupport::ToJsonWithActiveSupportEncoder - include ::Enumerable - include ::Zip::IOExtras::FakeIO - - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#10 - def initialize; end - - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#107 - def each(a_sep_string = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#107 - def each_line(a_sep_string = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#115 - def eof; end - - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#115 - def eof?; end - - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#94 - def flush; end - - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#58 - def gets(a_sep_string = T.unsafe(nil), number_of_bytes = T.unsafe(nil)); end - - # Returns the value of attribute lineno. - # - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#17 - def lineno; end - - # Sets the attribute lineno - # - # @param value the value to set the attribute lineno to. - # - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#17 - def lineno=(_arg0); end - - # Returns the value of attribute pos. - # - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#18 - def pos; end - - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#20 - def read(number_of_bytes = T.unsafe(nil), buf = T.unsafe(nil)); end - - # @raise [EOFError] - # - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#100 - def readline(a_sep_string = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#52 - def readlines(a_sep_string = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#90 - def ungetc(byte); end -end - -# Implements many of the output convenience methods of IO. -# relies on << -# -# source://rubyzip//lib/zip/ioextras/abstract_output_stream.rb#5 -module Zip::IOExtras::AbstractOutputStream - include ::Zip::IOExtras::FakeIO - - # source://rubyzip//lib/zip/ioextras/abstract_output_stream.rb#13 - def print(*params); end - - # source://rubyzip//lib/zip/ioextras/abstract_output_stream.rb#17 - def printf(a_format_string, *params); end - - # source://rubyzip//lib/zip/ioextras/abstract_output_stream.rb#21 - def putc(an_object); end - - # source://rubyzip//lib/zip/ioextras/abstract_output_stream.rb#33 - def puts(*params); end - - # source://rubyzip//lib/zip/ioextras/abstract_output_stream.rb#8 - def write(data); end -end - -# source://rubyzip//lib/zip/ioextras.rb#3 -Zip::IOExtras::CHUNK_SIZE = T.let(T.unsafe(nil), Integer) - -# Implements kind_of? in order to pretend to be an IO object -# -# source://rubyzip//lib/zip/ioextras.rb#23 -module Zip::IOExtras::FakeIO - # @return [Boolean] - # - # source://rubyzip//lib/zip/ioextras.rb#24 - def kind_of?(object); end -end - -# source://rubyzip//lib/zip/ioextras.rb#5 -Zip::IOExtras::RANGE_ALL = T.let(T.unsafe(nil), Range) - -# source://rubyzip//lib/zip/inflater.rb#2 -class Zip::Inflater < ::Zip::Decompressor - # @return [Inflater] a new instance of Inflater - # - # source://rubyzip//lib/zip/inflater.rb#3 - def initialize(*args); end - - # source://rubyzip//lib/zip/inflater.rb#22 - def eof; end - - # source://rubyzip//lib/zip/inflater.rb#22 - def eof?; end - - # source://rubyzip//lib/zip/inflater.rb#10 - def read(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end - - private - - # @return [Boolean] - # - # source://rubyzip//lib/zip/inflater.rb#44 - def input_finished?; end - - # source://rubyzip//lib/zip/inflater.rb#30 - def produce_input; end -end - -# InputStream is the basic class for reading zip entries in a -# zip file. It is possible to create a InputStream object directly, -# passing the zip file name to the constructor, but more often than not -# the InputStream will be obtained from a File (perhaps using the -# ZipFileSystem interface) object for a particular entry in the zip -# archive. -# -# A InputStream inherits IOExtras::AbstractInputStream in order -# to provide an IO-like interface for reading from a single zip -# entry. Beyond methods for mimicking an IO-object it contains -# the method get_next_entry for iterating through the entries of -# an archive. get_next_entry returns a Entry object that describes -# the zip entry the InputStream is currently reading from. -# -# Example that creates a zip archive with ZipOutputStream and reads it -# back again with a InputStream. -# -# require 'zip' -# -# Zip::OutputStream.open("my.zip") do |io| -# -# io.put_next_entry("first_entry.txt") -# io.write "Hello world!" -# -# io.put_next_entry("adir/first_entry.txt") -# io.write "Hello again!" -# end -# -# -# Zip::InputStream.open("my.zip") do |io| -# -# while (entry = io.get_next_entry) -# puts "Contents of #{entry.name}: '#{io.read}'" -# end -# end -# -# java.util.zip.ZipInputStream is the original inspiration for this -# class. -# -# source://rubyzip//lib/zip/input_stream.rb#41 -class Zip::InputStream - include ::Enumerable - include ::Zip::IOExtras::FakeIO - include ::Zip::IOExtras::AbstractInputStream - - # Opens the indicated zip file. An exception is thrown - # if the specified offset in the specified filename is - # not a local zip entry header. - # - # @param context [String||IO||StringIO] file path or IO/StringIO object - # @param offset [Integer] offset in the IO/StringIO - # @return [InputStream] a new instance of InputStream - # - # source://rubyzip//lib/zip/input_stream.rb#52 - def initialize(context, dep_offset = T.unsafe(nil), dep_decrypter = T.unsafe(nil), offset: T.unsafe(nil), decrypter: T.unsafe(nil)); end - - # source://rubyzip//lib/zip/input_stream.rb#66 - def close; end - - # Returns a Entry object. It is necessary to call this - # method on a newly created InputStream before reading from - # the first entry in the archive. Returns nil when there are - # no more entries. - # - # source://rubyzip//lib/zip/input_stream.rb#74 - def get_next_entry; end - - # Rewinds the stream to the beginning of the current entry - # - # source://rubyzip//lib/zip/input_stream.rb#80 - def rewind; end - - # Modeled after IO.sysread - # - # source://rubyzip//lib/zip/input_stream.rb#90 - def sysread(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end - - protected - - # source://rubyzip//lib/zip/input_stream.rb#162 - def get_decompressor; end - - # source://rubyzip//lib/zip/input_stream.rb#155 - def get_decrypted_io; end - - # source://rubyzip//lib/zip/input_stream.rb#124 - def get_io(io_or_file, offset = T.unsafe(nil)); end - - # @return [Boolean] - # - # source://rubyzip//lib/zip/input_stream.rb#185 - def input_finished?; end - - # source://rubyzip//lib/zip/input_stream.rb#136 - def open_entry; end - - # source://rubyzip//lib/zip/input_stream.rb#181 - def produce_input; end - - class << self - # Same as #initialize but if a block is passed the opened - # stream is passed to the block and closed when the block - # returns. - # - # source://rubyzip//lib/zip/input_stream.rb#98 - def open(filename_or_io, dep_offset = T.unsafe(nil), dep_decrypter = T.unsafe(nil), offset: T.unsafe(nil), decrypter: T.unsafe(nil)); end - - # source://rubyzip//lib/zip/input_stream.rb#115 - def open_buffer(filename_or_io, offset = T.unsafe(nil)); end - end -end - -# source://rubyzip//lib/zip/input_stream.rb#42 -Zip::InputStream::CHUNK_SIZE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/errors.rb#8 -class Zip::InternalError < ::Zip::Error; end - -# source://rubyzip//lib/zip/constants.rb#7 -Zip::LOCAL_ENTRY_SIGNATURE = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#8 -Zip::LOCAL_ENTRY_STATIC_HEADER_LENGTH = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#9 -Zip::LOCAL_ENTRY_TRAILING_DESCRIPTOR_LENGTH = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/null_compressor.rb#2 -class Zip::NullCompressor < ::Zip::Compressor - include ::Singleton::SingletonInstanceMethods - include ::Singleton - extend ::Singleton::SingletonClassMethods - - # @raise [IOError] - # - # source://rubyzip//lib/zip/null_compressor.rb#5 - def <<(_data); end - - # Returns the value of attribute compressed_size. - # - # source://rubyzip//lib/zip/null_compressor.rb#9 - def compressed_size; end - - # Returns the value of attribute size. - # - # source://rubyzip//lib/zip/null_compressor.rb#9 - def size; end - - class << self - private - - def allocate; end - def new(*_arg0); end - end -end - -# source://rubyzip//lib/zip/null_decompressor.rb#2 -module Zip::NullDecompressor - private - - # source://rubyzip//lib/zip/null_decompressor.rb#9 - def eof; end - - # source://rubyzip//lib/zip/null_decompressor.rb#9 - def eof?; end - - # source://rubyzip//lib/zip/null_decompressor.rb#5 - def read(_length = T.unsafe(nil), _outbuf = T.unsafe(nil)); end - - class << self - # source://rubyzip//lib/zip/null_decompressor.rb#9 - def eof; end - - # source://rubyzip//lib/zip/null_decompressor.rb#5 - def read(_length = T.unsafe(nil), _outbuf = T.unsafe(nil)); end - end -end - -# source://rubyzip//lib/zip/crypto/null_encryption.rb#30 -class Zip::NullDecrypter < ::Zip::Decrypter - include ::Zip::NullEncryption - - # source://rubyzip//lib/zip/crypto/null_encryption.rb#33 - def decrypt(data); end - - # source://rubyzip//lib/zip/crypto/null_encryption.rb#37 - def reset!(_header); end -end - -# source://rubyzip//lib/zip/crypto/null_encryption.rb#12 -class Zip::NullEncrypter < ::Zip::Encrypter - include ::Zip::NullEncryption - - # source://rubyzip//lib/zip/crypto/null_encryption.rb#23 - def data_descriptor(_crc32, _compressed_size, _uncomprssed_size); end - - # source://rubyzip//lib/zip/crypto/null_encryption.rb#19 - def encrypt(data); end - - # source://rubyzip//lib/zip/crypto/null_encryption.rb#15 - def header(_mtime); end - - # source://rubyzip//lib/zip/crypto/null_encryption.rb#27 - def reset!; end -end - -# source://rubyzip//lib/zip/crypto/null_encryption.rb#2 -module Zip::NullEncryption - # source://rubyzip//lib/zip/crypto/null_encryption.rb#7 - def gp_flags; end - - # source://rubyzip//lib/zip/crypto/null_encryption.rb#3 - def header_bytesize; end -end - -# source://rubyzip//lib/zip/null_input_stream.rb#2 -module Zip::NullInputStream - include ::Zip::NullDecompressor - include ::ActiveSupport::ToJsonWithActiveSupportEncoder - include ::Enumerable - include ::Zip::IOExtras::FakeIO - include ::Zip::IOExtras::AbstractInputStream -end - -# ZipOutputStream is the basic class for writing zip files. It is -# possible to create a ZipOutputStream object directly, passing -# the zip file name to the constructor, but more often than not -# the ZipOutputStream will be obtained from a ZipFile (perhaps using the -# ZipFileSystem interface) object for a particular entry in the zip -# archive. -# -# A ZipOutputStream inherits IOExtras::AbstractOutputStream in order -# to provide an IO-like interface for writing to a single zip -# entry. Beyond methods for mimicking an IO-object it contains -# the method put_next_entry that closes the current entry -# and creates a new. -# -# Please refer to ZipInputStream for example code. -# -# java.util.zip.ZipOutputStream is the original inspiration for this -# class. -# -# source://rubyzip//lib/zip/output_stream.rb#20 -class Zip::OutputStream - include ::Zip::IOExtras::FakeIO - include ::Zip::IOExtras::AbstractOutputStream - - # Opens the indicated zip file. If a file with that name already - # exists it will be overwritten. - # - # @return [OutputStream] a new instance of OutputStream - # - # source://rubyzip//lib/zip/output_stream.rb#27 - def initialize(file_name, dep_stream = T.unsafe(nil), dep_encrypter = T.unsafe(nil), stream: T.unsafe(nil), encrypter: T.unsafe(nil)); end - - # Modeled after IO.<< - # - # source://rubyzip//lib/zip/output_stream.rb#196 - def <<(data); end - - # Closes the stream and writes the central directory to the zip file - # - # source://rubyzip//lib/zip/output_stream.rb#76 - def close; end - - # Closes the stream and writes the central directory to the zip file - # - # source://rubyzip//lib/zip/output_stream.rb#87 - def close_buffer; end - - # Returns the value of attribute comment. - # - # source://rubyzip//lib/zip/output_stream.rb#23 - def comment; end - - # Sets the attribute comment - # - # @param value the value to set the attribute comment to. - # - # source://rubyzip//lib/zip/output_stream.rb#23 - def comment=(_arg0); end - - # @raise [Error] - # - # source://rubyzip//lib/zip/output_stream.rb#116 - def copy_raw_entry(entry); end - - # Closes the current entry and opens a new for writing. - # +entry+ can be a ZipEntry object or a string. - # - # @raise [Error] - # - # source://rubyzip//lib/zip/output_stream.rb#99 - def put_next_entry(entry_name, comment = T.unsafe(nil), extra = T.unsafe(nil), compression_method = T.unsafe(nil), level = T.unsafe(nil)); end - - protected - - # source://rubyzip//lib/zip/output_stream.rb#189 - def finish; end - - private - - # source://rubyzip//lib/zip/output_stream.rb#137 - def finalize_current_entry; end - - # source://rubyzip//lib/zip/output_stream.rb#161 - def get_compressor(entry, level); end - - # source://rubyzip//lib/zip/output_stream.rb#152 - def init_next_entry(entry, level = T.unsafe(nil)); end - - # source://rubyzip//lib/zip/output_stream.rb#173 - def update_local_headers; end - - # source://rubyzip//lib/zip/output_stream.rb#182 - def write_central_directory; end - - class << self - # source://rubyzip//lib/zip/output_stream.rb#53 - def open(file_name, dep_encrypter = T.unsafe(nil), encrypter: T.unsafe(nil)); end - - # Same as #open but writes to a filestream instead - # - # @yield [zos] - # - # source://rubyzip//lib/zip/output_stream.rb#65 - def write_buffer(io = T.unsafe(nil), dep_encrypter = T.unsafe(nil), encrypter: T.unsafe(nil)); end - end -end - -# source://rubyzip//lib/zip/pass_thru_compressor.rb#2 -class Zip::PassThruCompressor < ::Zip::Compressor - # @return [PassThruCompressor] a new instance of PassThruCompressor - # - # source://rubyzip//lib/zip/pass_thru_compressor.rb#3 - def initialize(output_stream); end - - # source://rubyzip//lib/zip/pass_thru_compressor.rb#10 - def <<(data); end - - # Returns the value of attribute crc. - # - # source://rubyzip//lib/zip/pass_thru_compressor.rb#17 - def crc; end - - # Returns the value of attribute size. - # - # source://rubyzip//lib/zip/pass_thru_compressor.rb#17 - def size; end -end - -# source://rubyzip//lib/zip/pass_thru_decompressor.rb#2 -class Zip::PassThruDecompressor < ::Zip::Decompressor - # @return [PassThruDecompressor] a new instance of PassThruDecompressor - # - # source://rubyzip//lib/zip/pass_thru_decompressor.rb#3 - def initialize(*args); end - - # source://rubyzip//lib/zip/pass_thru_decompressor.rb#19 - def eof; end - - # source://rubyzip//lib/zip/pass_thru_decompressor.rb#19 - def eof?; end - - # source://rubyzip//lib/zip/pass_thru_decompressor.rb#8 - def read(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end -end - -# source://rubyzip//lib/zip/constants.rb#2 -Zip::RUNNING_ON_WINDOWS = T.let(T.unsafe(nil), T.untyped) - -# source://rubyzip//lib/zip/streamable_directory.rb#2 -class Zip::StreamableDirectory < ::Zip::Entry - # @return [StreamableDirectory] a new instance of StreamableDirectory - # - # source://rubyzip//lib/zip/streamable_directory.rb#3 - def initialize(zipfile, entry, src_path = T.unsafe(nil), permission = T.unsafe(nil)); end -end - -# source://rubyzip//lib/zip/streamable_stream.rb#2 -class Zip::StreamableStream - # @return [StreamableStream] a new instance of StreamableStream - # - # source://rubyzip//lib/zip/streamable_stream.rb#3 - def initialize(entry); end - - # source://rubyzip//lib/zip/streamable_stream.rb#44 - def clean_up; end - - # source://rubyzip//lib/zip/streamable_stream.rb#21 - def get_input_stream; end - - # source://rubyzip//lib/zip/streamable_stream.rb#9 - def get_output_stream; end - - # source://rubyzip//lib/zip/streamable_stream.rb#39 - def write_to_zip_output_stream(output_stream); end -end - -# source://rubyzip//lib/zip/crypto/traditional_encryption.rb#73 -class Zip::TraditionalDecrypter < ::Zip::Decrypter - include ::Zip::TraditionalEncryption - - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#76 - def decrypt(data); end - - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#80 - def reset!(header); end - - private - - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#89 - def decode(num); end -end - -# source://rubyzip//lib/zip/crypto/traditional_encryption.rb#39 -class Zip::TraditionalEncrypter < ::Zip::Encrypter - include ::Zip::TraditionalEncryption - - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#56 - def data_descriptor(crc32, compressed_size, uncomprssed_size); end - - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#52 - def encrypt(data); end - - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#42 - def header(mtime); end - - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#60 - def reset!; end - - private - - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#66 - def encode(num); end -end - -# source://rubyzip//lib/zip/crypto/traditional_encryption.rb#2 -module Zip::TraditionalEncryption - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#3 - def initialize(password); end - - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#12 - def gp_flags; end - - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#8 - def header_bytesize; end - - protected - - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#33 - def decrypt_byte; end - - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#18 - def reset_keys!; end - - # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#27 - def update_keys(num); end -end - -# source://rubyzip//lib/zip.rb#37 -Zip::V3_API_WARNING_MSG = T.let(T.unsafe(nil), String) - -# this library's version -# -# source://rubyzip//lib/zip/constants.rb#10 -Zip::VERSION_MADE_BY = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#11 -Zip::VERSION_NEEDED_TO_EXTRACT = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/constants.rb#12 -Zip::VERSION_NEEDED_TO_EXTRACT_ZIP64 = T.let(T.unsafe(nil), Integer) - -# source://rubyzip//lib/zip/errors.rb#16 -Zip::ZipCompressionMethodError = Zip::CompressionMethodError - -# source://rubyzip//lib/zip/errors.rb#15 -Zip::ZipDestinationFileExistsError = Zip::DestinationFileExistsError - -# source://rubyzip//lib/zip/errors.rb#14 -Zip::ZipEntryExistsError = Zip::EntryExistsError - -# source://rubyzip//lib/zip/errors.rb#17 -Zip::ZipEntryNameError = Zip::EntryNameError - -# Backwards compatibility with v1 (delete in v2) -# -# source://rubyzip//lib/zip/errors.rb#13 -Zip::ZipError = Zip::Error - -# source://rubyzip//lib/zip/errors.rb#18 -Zip::ZipInternalError = Zip::InternalError diff --git a/sorbet/rbi/gems/rubyzip@3.0.2.rbi b/sorbet/rbi/gems/rubyzip@3.0.2.rbi new file mode 100644 index 00000000..bda1396c --- /dev/null +++ b/sorbet/rbi/gems/rubyzip@3.0.2.rbi @@ -0,0 +1,2580 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rubyzip` gem. +# Please instead update this file by running `bin/tapioca gem rubyzip`. + + +# Rubyzip is a ruby module for reading and writing zip files. +# +# The main entry points are File, InputStream and OutputStream. For a +# file/directory interface in the style of the standard ruby ::File and +# ::Dir APIs then `require 'zip/filesystem'` and see FileSystem. +# +# source://rubyzip//lib/zip/version.rb#3 +module Zip + extend ::Zip + + # Returns the value of attribute case_insensitive_match. + # + # source://rubyzip//lib/zip.rb#46 + def case_insensitive_match; end + + # Sets the attribute case_insensitive_match + # + # @param value the value to set the attribute case_insensitive_match to. + # + # source://rubyzip//lib/zip.rb#46 + def case_insensitive_match=(_arg0); end + + # Returns the value of attribute continue_on_exists_proc. + # + # source://rubyzip//lib/zip.rb#46 + def continue_on_exists_proc; end + + # Sets the attribute continue_on_exists_proc + # + # @param value the value to set the attribute continue_on_exists_proc to. + # + # source://rubyzip//lib/zip.rb#46 + def continue_on_exists_proc=(_arg0); end + + # Returns the value of attribute default_compression. + # + # source://rubyzip//lib/zip.rb#46 + def default_compression; end + + # Sets the attribute default_compression + # + # @param value the value to set the attribute default_compression to. + # + # source://rubyzip//lib/zip.rb#46 + def default_compression=(_arg0); end + + # Returns the value of attribute force_entry_names_encoding. + # + # source://rubyzip//lib/zip.rb#46 + def force_entry_names_encoding; end + + # Sets the attribute force_entry_names_encoding + # + # @param value the value to set the attribute force_entry_names_encoding to. + # + # source://rubyzip//lib/zip.rb#46 + def force_entry_names_encoding=(_arg0); end + + # Returns the value of attribute on_exists_proc. + # + # source://rubyzip//lib/zip.rb#46 + def on_exists_proc; end + + # Sets the attribute on_exists_proc + # + # @param value the value to set the attribute on_exists_proc to. + # + # source://rubyzip//lib/zip.rb#46 + def on_exists_proc=(_arg0); end + + # source://rubyzip//lib/zip.rb#67 + def reset!; end + + # Set options for RubyZip in one block. + # + # @yield [_self] + # @yieldparam _self [Zip] the object that the method was called on + # + # source://rubyzip//lib/zip.rb#82 + def setup; end + + # Returns the value of attribute sort_entries. + # + # source://rubyzip//lib/zip.rb#46 + def sort_entries; end + + # Sets the attribute sort_entries + # + # @param value the value to set the attribute sort_entries to. + # + # source://rubyzip//lib/zip.rb#46 + def sort_entries=(_arg0); end + + # Returns the value of attribute unicode_names. + # + # source://rubyzip//lib/zip.rb#46 + def unicode_names; end + + # Sets the attribute unicode_names + # + # @param value the value to set the attribute unicode_names to. + # + # source://rubyzip//lib/zip.rb#46 + def unicode_names=(_arg0); end + + # Returns the value of attribute validate_entry_sizes. + # + # source://rubyzip//lib/zip.rb#46 + def validate_entry_sizes; end + + # Sets the attribute validate_entry_sizes + # + # @param value the value to set the attribute validate_entry_sizes to. + # + # source://rubyzip//lib/zip.rb#46 + def validate_entry_sizes=(_arg0); end + + # Returns the value of attribute warn_invalid_date. + # + # source://rubyzip//lib/zip.rb#46 + def warn_invalid_date; end + + # Sets the attribute warn_invalid_date + # + # @param value the value to set the attribute warn_invalid_date to. + # + # source://rubyzip//lib/zip.rb#46 + def warn_invalid_date=(_arg0); end + + # Returns the value of attribute write_zip64_support. + # + # source://rubyzip//lib/zip.rb#46 + def write_zip64_support; end + + # Sets the attribute write_zip64_support + # + # @param value the value to set the attribute write_zip64_support to. + # + # source://rubyzip//lib/zip.rb#46 + def write_zip64_support=(_arg0); end +end + +# source://rubyzip//lib/zip/constants.rb#9 +Zip::CDIR_ENTRY_STATIC_HEADER_LENGTH = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#8 +Zip::CENTRAL_DIRECTORY_ENTRY_SIGNATURE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#95 +Zip::COMPRESSION_METHODS = T.let(T.unsafe(nil), Hash) + +# source://rubyzip//lib/zip/constants.rb#93 +Zip::COMPRESSION_METHOD_AES = T.let(T.unsafe(nil), Integer) + +# RESERVED = 11 +# +# source://rubyzip//lib/zip/constants.rb#82 +Zip::COMPRESSION_METHOD_BZIP2 = T.let(T.unsafe(nil), Integer) + +# RESERVED = 7 +# +# source://rubyzip//lib/zip/constants.rb#78 +Zip::COMPRESSION_METHOD_DEFLATE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#79 +Zip::COMPRESSION_METHOD_DEFLATE_64 = T.let(T.unsafe(nil), Integer) + +# RESERVED = 15 +# +# source://rubyzip//lib/zip/constants.rb#86 +Zip::COMPRESSION_METHOD_IBM_CMPSC = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#89 +Zip::COMPRESSION_METHOD_IBM_LZ77 = T.let(T.unsafe(nil), Integer) + +# RESERVED = 17 +# +# source://rubyzip//lib/zip/constants.rb#88 +Zip::COMPRESSION_METHOD_IBM_TERSE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#76 +Zip::COMPRESSION_METHOD_IMPLODE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#90 +Zip::COMPRESSION_METHOD_JPEG = T.let(T.unsafe(nil), Integer) + +# RESERVED = 13 +# +# source://rubyzip//lib/zip/constants.rb#84 +Zip::COMPRESSION_METHOD_LZMA = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#80 +Zip::COMPRESSION_METHOD_PKWARE_DCLI = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#92 +Zip::COMPRESSION_METHOD_PPMD = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#72 +Zip::COMPRESSION_METHOD_REDUCE_1 = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#73 +Zip::COMPRESSION_METHOD_REDUCE_2 = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#74 +Zip::COMPRESSION_METHOD_REDUCE_3 = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#75 +Zip::COMPRESSION_METHOD_REDUCE_4 = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#71 +Zip::COMPRESSION_METHOD_SHRINK = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#70 +Zip::COMPRESSION_METHOD_STORE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#91 +Zip::COMPRESSION_METHOD_WAVPACK = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/central_directory.rb#8 +class Zip::CentralDirectory + include ::Zip::Dirtyable + extend ::Forwardable + extend ::Zip::Dirtyable::ClassMethods + + # @return [CentralDirectory] a new instance of CentralDirectory + # + # source://rubyzip//lib/zip/central_directory.rb#31 + def initialize(entries = T.unsafe(nil), comment = T.unsafe(nil)); end + + # source://rubyzip//lib/zip/central_directory.rb#25 + def <<(param); end + + # source://rubyzip//lib/zip/central_directory.rb#64 + def ==(other); end + + # Returns the value of attribute comment. + # + # source://rubyzip//lib/zip/central_directory.rb#23 + def comment; end + + # Sets the attribute comment + # + # @param value the value to set the attribute comment to. + # + # source://rubyzip//lib/zip/central_directory.rb#23 + def comment=(param); end + + # Reads the End of Central Directory Record (and the Zip64 equivalent if + # needs be) and returns the number of entries in the archive. This is a + # convenience method that avoids reading in all of the entry data to get a + # very quick entry count. + # + # source://rubyzip//lib/zip/central_directory.rb#59 + def count_entries(io); end + + # source://rubyzip//lib/zip/central_directory.rb#25 + def delete(param); end + + # source://rubyzip//lib/zip/central_directory.rb#25 + def each(*args, **_arg1, &block); end + + # source://rubyzip//lib/zip/central_directory.rb#25 + def entries(*args, **_arg1, &block); end + + # source://rubyzip//lib/zip/central_directory.rb#25 + def find_entry(*args, **_arg1, &block); end + + # source://rubyzip//lib/zip/central_directory.rb#25 + def glob(*args, **_arg1, &block); end + + # source://rubyzip//lib/zip/central_directory.rb#25 + def include?(*args, **_arg1, &block); end + + # source://rubyzip//lib/zip/central_directory.rb#29 + def orig_comment=(_arg0); end + + # source://rubyzip//lib/zip/central_directory.rb#29 + def orig_delete(*args, **_arg1, &block); end + + # source://rubyzip//lib/zip/central_directory.rb#37 + def read_from_stream(io); end + + # source://rubyzip//lib/zip/central_directory.rb#25 + def size(*args, **_arg1, &block); end + + # source://rubyzip//lib/zip/central_directory.rb#42 + def write_to_stream(io); end + + private + + # source://rubyzip//lib/zip/central_directory.rb#244 + def eocd_data(io); end + + # @raise [Error] + # + # source://rubyzip//lib/zip/central_directory.rb#168 + def read_central_directory_entries(io); end + + # @raise [Error] + # + # source://rubyzip//lib/zip/central_directory.rb#212 + def read_eocds(io); end + + # source://rubyzip//lib/zip/central_directory.rb#201 + def read_local_extra_field(io); end + + # source://rubyzip//lib/zip/central_directory.rb#113 + def unpack_64_e_o_c_d(buffer); end + + # source://rubyzip//lib/zip/central_directory.rb#137 + def unpack_64_eocd_locator(buffer); end + + # source://rubyzip//lib/zip/central_directory.rb#144 + def unpack_e_o_c_d(buffer); end + + # source://rubyzip//lib/zip/central_directory.rb#87 + def write_64_e_o_c_d(io, offset, cdir_size); end + + # source://rubyzip//lib/zip/central_directory.rb#103 + def write_64_eocd_locator(io, zip64_eocd_offset); end + + # source://rubyzip//lib/zip/central_directory.rb#72 + def write_e_o_c_d(io, offset, cdir_size); end +end + +# source://rubyzip//lib/zip/central_directory.rb#12 +Zip::CentralDirectory::END_OF_CD_SIG = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/central_directory.rb#20 +Zip::CentralDirectory::MAX_END_OF_CD_SIZE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/central_directory.rb#19 +Zip::CentralDirectory::MAX_FILE_COMMENT_SIZE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/central_directory.rb#16 +Zip::CentralDirectory::STATIC_EOCD_SIZE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/central_directory.rb#13 +Zip::CentralDirectory::ZIP64_END_OF_CD_SIG = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/central_directory.rb#14 +Zip::CentralDirectory::ZIP64_EOCD_LOCATOR_SIG = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/central_directory.rb#18 +Zip::CentralDirectory::ZIP64_EOCD_LOC_SIZE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/central_directory.rb#17 +Zip::CentralDirectory::ZIP64_STATIC_EOCD_SIZE = T.let(T.unsafe(nil), Integer) + +# Error raised if an unsupported compression method is used. +# +# source://rubyzip//lib/zip/errors.rb#9 +class Zip::CompressionMethodError < ::Zip::Error + # Create a new CompressionMethodError with the specified incorrect + # compression method. + # + # @return [CompressionMethodError] a new instance of CompressionMethodError + # + # source://rubyzip//lib/zip/errors.rb#15 + def initialize(method); end + + # The compression method that has caused this error. + # + # source://rubyzip//lib/zip/errors.rb#11 + def compression_method; end + + # The message returned by this error. + # + # source://rubyzip//lib/zip/errors.rb#21 + def message; end +end + +# source://rubyzip//lib/zip/compressor.rb#4 +class Zip::Compressor + # source://rubyzip//lib/zip/compressor.rb#5 + def finish; end +end + +# source://rubyzip//lib/zip.rb#57 +Zip::DEFAULT_RESTORE_OPTIONS = T.let(T.unsafe(nil), Hash) + +# source://rubyzip//lib/zip/dos_time.rb#7 +class Zip::DOSTime < ::Time + include ::Zip::DOSTime::JRubyCMP + + # Dos time is only stored with two seconds accuracy. + # + # source://rubyzip//lib/zip/dos_time.rb#45 + def <=>(other); end + + # Register DX, the Date: + # Bits 0-4 day (1-31) + # bits 5-8 month (1-12) + # bits 9-15 year (four digit year minus 1980) + # + # source://rubyzip//lib/zip/dos_time.rb#19 + def absolute_time=(_arg0); end + + # @return [Boolean] + # + # source://rubyzip//lib/zip/dos_time.rb#21 + def absolute_time?; end + + # source://rubyzip//lib/zip/dos_time.rb#39 + def dos_equals(other); end + + # source://rubyzip//lib/zip/dos_time.rb#33 + def to_binary_dos_date; end + + # source://rubyzip//lib/zip/dos_time.rb#27 + def to_binary_dos_time; end + + class << self + # Create a DOSTime instance from a vanilla Time instance. + # + # source://rubyzip//lib/zip/dos_time.rb#52 + def from_time(time); end + + # source://rubyzip//lib/zip/dos_time.rb#56 + def parse_binary_dos_format(bin_dos_date, bin_dos_time); end + end +end + +# source://rubyzip//lib/zip/dos_time.rb#70 +module Zip::DOSTime::JRubyCMP + # source://rubyzip//lib/zip/dos_time.rb#75 + def <(other); end + + # source://rubyzip//lib/zip/dos_time.rb#79 + def <=(other); end + + # source://rubyzip//lib/zip/dos_time.rb#71 + def ==(other); end + + # source://rubyzip//lib/zip/dos_time.rb#83 + def >(other); end + + # source://rubyzip//lib/zip/dos_time.rb#87 + def >=(other); end +end + +# Error raised if there is a problem while decompressing an archive entry. +# +# source://rubyzip//lib/zip/errors.rb#27 +class Zip::DecompressionError < ::Zip::Error + # Create a new DecompressionError with the specified underlying Zlib + # error. + # + # @return [DecompressionError] a new instance of DecompressionError + # + # source://rubyzip//lib/zip/errors.rb#33 + def initialize(zlib_error); end + + # The message returned by this error. + # + # source://rubyzip//lib/zip/errors.rb#39 + def message; end + + # The error from the underlying Zlib library that caused this error. + # + # source://rubyzip//lib/zip/errors.rb#29 + def zlib_error; end +end + +# source://rubyzip//lib/zip/decompressor.rb#4 +class Zip::Decompressor + # @return [Decompressor] a new instance of Decompressor + # + # source://rubyzip//lib/zip/decompressor.rb#21 + def initialize(input_stream, decompressed_size = T.unsafe(nil)); end + + # Returns the value of attribute decompressed_size. + # + # source://rubyzip//lib/zip/decompressor.rb#19 + def decompressed_size; end + + # Returns the value of attribute input_stream. + # + # source://rubyzip//lib/zip/decompressor.rb#19 + def input_stream; end + + class << self + # source://rubyzip//lib/zip/decompressor.rb#7 + def decompressor_classes; end + + # source://rubyzip//lib/zip/decompressor.rb#15 + def find_by_compression_method(compression_method); end + + # source://rubyzip//lib/zip/decompressor.rb#11 + def register(compression_method, decompressor_class); end + end +end + +# source://rubyzip//lib/zip/decompressor.rb#5 +Zip::Decompressor::CHUNK_SIZE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/crypto/decrypted_io.rb#4 +class Zip::DecryptedIo + # @return [DecryptedIo] a new instance of DecryptedIo + # + # source://rubyzip//lib/zip/crypto/decrypted_io.rb#7 + def initialize(io, decrypter); end + + # source://rubyzip//lib/zip/crypto/decrypted_io.rb#12 + def read(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end + + private + + # source://rubyzip//lib/zip/crypto/decrypted_io.rb#30 + def buffer; end + + # source://rubyzip//lib/zip/crypto/decrypted_io.rb#26 + def eof; end + + # @return [Boolean] + # + # source://rubyzip//lib/zip/crypto/decrypted_io.rb#34 + def input_finished?; end + + # source://rubyzip//lib/zip/crypto/decrypted_io.rb#38 + def produce_input; end +end + +# source://rubyzip//lib/zip/crypto/decrypted_io.rb#5 +Zip::DecryptedIo::CHUNK_SIZE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/crypto/encryption.rb#7 +class Zip::Decrypter; end + +# source://rubyzip//lib/zip/deflater.rb#4 +class Zip::Deflater < ::Zip::Compressor + # @return [Deflater] a new instance of Deflater + # + # source://rubyzip//lib/zip/deflater.rb#5 + def initialize(output_stream, level = T.unsafe(nil), encrypter = T.unsafe(nil)); end + + # source://rubyzip//lib/zip/deflater.rb#14 + def <<(data); end + + # Returns the value of attribute crc. + # + # source://rubyzip//lib/zip/deflater.rb#32 + def crc; end + + # source://rubyzip//lib/zip/deflater.rb#26 + def finish; end + + # Returns the value of attribute size. + # + # source://rubyzip//lib/zip/deflater.rb#32 + def size; end +end + +# Error raised when trying to extract an archive entry over an +# existing file. +# +# source://rubyzip//lib/zip/errors.rb#46 +class Zip::DestinationExistsError < ::Zip::Error + # Create a new DestinationExistsError with the clashing destination. + # + # @return [DestinationExistsError] a new instance of DestinationExistsError + # + # source://rubyzip//lib/zip/errors.rb#48 + def initialize(destination); end + + # The message returned by this error. + # + # source://rubyzip//lib/zip/errors.rb#54 + def message; end +end + +# source://rubyzip//lib/zip/dirtyable.rb#4 +module Zip::Dirtyable + mixes_in_class_methods ::Zip::Dirtyable::ClassMethods + + # source://rubyzip//lib/zip/dirtyable.rb#5 + def initialize(dirty_on_create: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubyzip//lib/zip/dirtyable.rb#9 + def dirty?; end + + class << self + # @private + # + # source://rubyzip//lib/zip/dirtyable.rb#28 + def included(base); end + end +end + +# source://rubyzip//lib/zip/dirtyable.rb#13 +module Zip::Dirtyable::ClassMethods + # source://rubyzip//lib/zip/dirtyable.rb#14 + def mark_dirty(*symbols); end +end + +# source://rubyzip//lib/zip/crypto/encryption.rb#4 +class Zip::Encrypter; end + +# Zip::Entry represents an entry in a Zip archive. +# +# source://rubyzip//lib/zip/entry.rb#10 +class Zip::Entry + include ::Zip::Dirtyable + extend ::Zip::Dirtyable::ClassMethods + + # Create a new Zip::Entry. + # + # @return [Entry] a new instance of Entry + # + # source://rubyzip//lib/zip/entry.rb#76 + def initialize(zipfile = T.unsafe(nil), name = T.unsafe(nil), comment: T.unsafe(nil), size: T.unsafe(nil), compressed_size: T.unsafe(nil), crc: T.unsafe(nil), compression_method: T.unsafe(nil), compression_level: T.unsafe(nil), time: T.unsafe(nil), extra: T.unsafe(nil)); end + + # source://rubyzip//lib/zip/entry.rb#626 + def <=>(other); end + + # source://rubyzip//lib/zip/entry.rb#617 + def ==(other); end + + # Does this entry return time fields with accurate timezone information? + # + # @return [Boolean] + # + # source://rubyzip//lib/zip/entry.rb#181 + def absolute_time?; end + + # Get the last access time of this entry, if available. + # + # source://rubyzip//lib/zip/entry.rb#144 + def atime; end + + # Set the last access time of this entry. + # + # source://rubyzip//lib/zip/entry.rb#171 + def atime=(value); end + + # source://rubyzip//lib/zip/entry.rb#254 + def calculate_local_header_size; end + + # source://rubyzip//lib/zip/entry.rb#270 + def cdir_header_size; end + + # @raise [::Zip::Error] + # + # source://rubyzip//lib/zip/entry.rb#481 + def check_c_dir_entry_comment_size; end + + # @raise [Error] + # + # source://rubyzip//lib/zip/entry.rb#475 + def check_c_dir_entry_signature; end + + # @raise [Error] + # + # source://rubyzip//lib/zip/entry.rb#469 + def check_c_dir_entry_static_header_length(buf); end + + # @raise [EntryNameError] + # + # source://rubyzip//lib/zip/entry.rb#70 + def check_name(name); end + + # source://rubyzip//lib/zip/entry.rb#720 + def clean_up; end + + # source://rubyzip//lib/zip/entry.rb#27 + def comment; end + + # source://rubyzip//lib/zip/entry.rb#27 + def comment=(param); end + + # source://rubyzip//lib/zip/entry.rb#250 + def comment_size; end + + # source://rubyzip//lib/zip/entry.rb#27 + def compressed_size; end + + # source://rubyzip//lib/zip/entry.rb#27 + def compressed_size=(param); end + + # source://rubyzip//lib/zip/entry.rb#34 + def compression_level; end + + # Return the compression method for this entry. + # + # Returns STORED if the entry is a directory or if the compression + # level is 0. + # + # source://rubyzip//lib/zip/entry.rb#189 + def compression_method; end + + # Set the compression method for this entry. + # + # source://rubyzip//lib/zip/entry.rb#196 + def compression_method=(method); end + + # Returns the value of attribute crc. + # + # source://rubyzip//lib/zip/entry.rb#31 + def crc; end + + # Sets the attribute crc + # + # @param value the value to set the attribute crc to. + # + # source://rubyzip//lib/zip/entry.rb#31 + def crc=(_arg0); end + + # Get the creation time of this entry, if available. + # + # source://rubyzip//lib/zip/entry.rb#149 + def ctime; end + + # Set the creation time of this entry. + # + # source://rubyzip//lib/zip/entry.rb#176 + def ctime=(value); end + + # source://rubyzip//lib/zip/entry.rb#216 + def directory?; end + + # Is this entry encrypted? + # + # @return [Boolean] + # + # source://rubyzip//lib/zip/entry.rb#112 + def encrypted?; end + + # Returns the value of attribute external_file_attributes. + # + # source://rubyzip//lib/zip/entry.rb#31 + def external_file_attributes; end + + # Sets the attribute external_file_attributes + # + # @param value the value to set the attribute external_file_attributes to. + # + # source://rubyzip//lib/zip/entry.rb#31 + def external_file_attributes=(param); end + + # source://rubyzip//lib/zip/entry.rb#34 + def extra; end + + # source://rubyzip//lib/zip/entry.rb#246 + def extra_size; end + + # Extracts this entry to a file at `entry_path`, with + # `destination_directory` as the base location in the filesystem. + # + # NB: The caller is responsible for making sure `destination_directory` is + # safe, if it is passed. + # + # source://rubyzip//lib/zip/entry.rb#284 + def extract(entry_path = T.unsafe(nil), destination_directory: T.unsafe(nil), &block); end + + # source://rubyzip//lib/zip/entry.rb#216 + def file?; end + + # source://rubyzip//lib/zip/entry.rb#516 + def file_stat(path); end + + # @return [Boolean] + # + # source://rubyzip//lib/zip/entry.rb#206 + def file_type_is?(type); end + + # source://rubyzip//lib/zip/entry.rb#34 + def filepath; end + + # source://rubyzip//lib/zip/entry.rb#27 + def follow_symlinks; end + + # source://rubyzip//lib/zip/entry.rb#27 + def follow_symlinks=(_arg0); end + + # Returns the value of attribute fstype. + # + # source://rubyzip//lib/zip/entry.rb#31 + def fstype; end + + # Sets the attribute fstype + # + # @param value the value to set the attribute fstype to. + # + # source://rubyzip//lib/zip/entry.rb#31 + def fstype=(param); end + + # source://rubyzip//lib/zip/entry.rb#210 + def ftype; end + + # source://rubyzip//lib/zip/entry.rb#664 + def gather_fileinfo_from_srcpath(src_path); end + + # source://rubyzip//lib/zip/entry.rb#524 + def get_extra_attributes_from_path(path); end + + # Returns an IO like object for the given ZipEntry. + # Warning: may behave weird with symlinks. + # + # source://rubyzip//lib/zip/entry.rb#632 + def get_input_stream(&block); end + + # source://rubyzip//lib/zip/entry.rb#712 + def get_raw_input_stream(&block); end + + # Returns the value of attribute gp_flags. + # + # source://rubyzip//lib/zip/entry.rb#31 + def gp_flags; end + + # Sets the attribute gp_flags + # + # @param value the value to set the attribute gp_flags to. + # + # source://rubyzip//lib/zip/entry.rb#31 + def gp_flags=(param); end + + # @return [Boolean] + # + # source://rubyzip//lib/zip/entry.rb#116 + def incomplete?; end + + # Returns the value of attribute internal_file_attributes. + # + # source://rubyzip//lib/zip/entry.rb#31 + def internal_file_attributes; end + + # Sets the attribute internal_file_attributes + # + # @param value the value to set the attribute internal_file_attributes to. + # + # source://rubyzip//lib/zip/entry.rb#31 + def internal_file_attributes=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#238 + def local_entry_offset; end + + # Returns the value of attribute local_header_offset. + # + # source://rubyzip//lib/zip/entry.rb#31 + def local_header_offset; end + + # Sets the attribute local_header_offset + # + # @param value the value to set the attribute local_header_offset to. + # + # source://rubyzip//lib/zip/entry.rb#31 + def local_header_offset=(_arg0); end + + # Get a timestamp component of this entry. + # + # Returns modification time by default. + # + # source://rubyzip//lib/zip/entry.rb#141 + def mtime(component: T.unsafe(nil)); end + + # Set a timestamp component of this entry. + # + # Sets modification time by default. + # + # source://rubyzip//lib/zip/entry.rb#168 + def mtime=(value, component: T.unsafe(nil)); end + + # source://rubyzip//lib/zip/entry.rb#27 + def name; end + + # source://rubyzip//lib/zip/entry.rb#27 + def name=(param); end + + # @return [Boolean] + # + # source://rubyzip//lib/zip/entry.rb#221 + def name_is_directory?; end + + # Is the name a relative path, free of `..` patterns that could lead to + # path traversal attacks? This does NOT handle symlinks; if the path + # contains symlinks, this check is NOT enough to guarantee safety. + # + # @return [Boolean] + # + # source://rubyzip//lib/zip/entry.rb#228 + def name_safe?; end + + # source://rubyzip//lib/zip/entry.rb#242 + def name_size; end + + # source://rubyzip//lib/zip/entry.rb#275 + def next_header_offset; end + + # source://rubyzip//lib/zip/entry.rb#38 + def orig_comment=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#38 + def orig_compressed_size=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#38 + def orig_external_file_attributes=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#38 + def orig_fstype=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#38 + def orig_gp_flags=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#38 + def orig_name=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#38 + def orig_size=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#38 + def orig_unix_gid=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#38 + def orig_unix_perms=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#38 + def orig_unix_uid=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#561 + def pack_c_dir_entry; end + + # source://rubyzip//lib/zip/entry.rb#388 + def pack_local_entry; end + + # source://rubyzip//lib/zip/entry.rb#706 + def parent_as_string; end + + # source://rubyzip//lib/zip/entry.rb#495 + def read_c_dir_entry(io); end + + # source://rubyzip//lib/zip/entry.rb#487 + def read_extra_field(buf, local: T.unsafe(nil)); end + + # source://rubyzip//lib/zip/entry.rb#345 + def read_local_entry(io); end + + # source://rubyzip//lib/zip/entry.rb#27 + def restore_ownership; end + + # source://rubyzip//lib/zip/entry.rb#27 + def restore_ownership=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#27 + def restore_permissions; end + + # source://rubyzip//lib/zip/entry.rb#27 + def restore_permissions=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#27 + def restore_times; end + + # source://rubyzip//lib/zip/entry.rb#27 + def restore_times=(_arg0); end + + # source://rubyzip//lib/zip/entry.rb#42 + def set_default_vars_values; end + + # source://rubyzip//lib/zip/entry.rb#547 + def set_extra_attributes_on_path(dest_path); end + + # source://rubyzip//lib/zip/entry.rb#439 + def set_ftype_from_c_dir_entry; end + + # source://rubyzip//lib/zip/entry.rb#535 + def set_unix_attributes_on_path(dest_path); end + + # The uncompressed size of the entry. + # + # source://rubyzip//lib/zip/entry.rb#121 + def size; end + + # source://rubyzip//lib/zip/entry.rb#36 + def size=(param); end + + # source://rubyzip//lib/zip/entry.rb#216 + def symlink?; end + + # Get a timestamp component of this entry. + # + # Returns modification time by default. + # + # source://rubyzip//lib/zip/entry.rb#128 + def time(component: T.unsafe(nil)); end + + # Set a timestamp component of this entry. + # + # Sets modification time by default. + # + # source://rubyzip//lib/zip/entry.rb#156 + def time=(value, component: T.unsafe(nil)); end + + # source://rubyzip//lib/zip/entry.rb#301 + def to_s; end + + # source://rubyzip//lib/zip/entry.rb#27 + def unix_gid; end + + # source://rubyzip//lib/zip/entry.rb#27 + def unix_gid=(param); end + + # source://rubyzip//lib/zip/entry.rb#27 + def unix_perms; end + + # source://rubyzip//lib/zip/entry.rb#27 + def unix_perms=(param); end + + # source://rubyzip//lib/zip/entry.rb#27 + def unix_uid; end + + # source://rubyzip//lib/zip/entry.rb#27 + def unix_uid=(param); end + + # source://rubyzip//lib/zip/entry.rb#415 + def unpack_c_dir_entry(buf); end + + # source://rubyzip//lib/zip/entry.rb#330 + def unpack_local_entry(buf); end + + # check before rewriting an entry (after file sizes are known) + # that we didn't change the header size (and thus clobber file data or something) + # + # @raise [Error] + # + # source://rubyzip//lib/zip/entry.rb#260 + def verify_local_header_size!; end + + # source://rubyzip//lib/zip/entry.rb#588 + def write_c_dir_entry(io); end + + # source://rubyzip//lib/zip/entry.rb#403 + def write_local_entry(io, rewrite: T.unsafe(nil)); end + + # source://rubyzip//lib/zip/entry.rb#693 + def write_to_zip_output_stream(zip_output_stream); end + + # Does this entry use the ZIP64 extensions? + # + # @return [Boolean] + # + # source://rubyzip//lib/zip/entry.rb#202 + def zip64?; end + + private + + # source://rubyzip//lib/zip/entry.rb#769 + def create_directory(dest_path); end + + # source://rubyzip//lib/zip/entry.rb#742 + def create_file(dest_path, _continue_on_exists_proc = T.unsafe(nil)); end + + # BUG: create_symlink() does not use &block + # + # source://rubyzip//lib/zip/entry.rb#783 + def create_symlink(dest_path); end + + # apply missing data from the zip64 extra information field, if present + # (required when file sizes exceed 2**32, but can be used for all files) + # + # source://rubyzip//lib/zip/entry.rb#791 + def parse_zip64_extra(for_local_header); end + + # source://rubyzip//lib/zip/entry.rb#841 + def prep_cdir_zip64_extra; end + + # source://rubyzip//lib/zip/entry.rb#825 + def prep_local_zip64_extra; end + + # source://rubyzip//lib/zip/entry.rb#726 + def read_local_header_fields(io); end + + # For DEFLATED compression *only*: set the general purpose flags 1 and 2 to + # indicate compression level. This seems to be mainly cosmetic but they are + # generally set by other tools - including in docx files. It is these flags + # that are used by commandline tools (and elsewhere) to give an indication + # of how compressed a file is. See the PKWARE APPNOTE for more information: + # https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT + # + # It's safe to simply OR these flags here as compression_level is read only. + # + # source://rubyzip//lib/zip/entry.rb#811 + def set_compression_level_flags; end + + # source://rubyzip//lib/zip/entry.rb#736 + def set_time(binary_dos_date, binary_dos_time); end + + class << self + # source://rubyzip//lib/zip/entry.rb#306 + def read_c_dir_entry(io); end + + # source://rubyzip//lib/zip/entry.rb#319 + def read_local_entry(io); end + end +end + +# source://rubyzip//lib/zip/entry.rb#24 +Zip::Entry::COMPRESSION_LEVEL_FAST_GPFLAG = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/entry.rb#25 +Zip::Entry::COMPRESSION_LEVEL_MAX_GPFLAG = T.let(T.unsafe(nil), Integer) + +# Compression level flags (used as part of the gp flags). +# +# source://rubyzip//lib/zip/entry.rb#23 +Zip::Entry::COMPRESSION_LEVEL_SUPERFAST_GPFLAG = T.let(T.unsafe(nil), Integer) + +# Constant used to specify that the entry is deflated (i.e., compressed). +# +# source://rubyzip//lib/zip/entry.rb#17 +Zip::Entry::DEFLATED = T.let(T.unsafe(nil), Integer) + +# Language encoding flag (EFS) bit +# +# source://rubyzip//lib/zip/entry.rb#20 +Zip::Entry::EFS = T.let(T.unsafe(nil), Integer) + +# Constant used to specify that the entry is stored (i.e., not compressed). +# +# source://rubyzip//lib/zip/entry.rb#14 +Zip::Entry::STORED = T.let(T.unsafe(nil), Integer) + +# Error raised when trying to add an entry to an archive where the +# entry name already exists. +# +# source://rubyzip//lib/zip/errors.rb#62 +class Zip::EntryExistsError < ::Zip::Error + # Create a new EntryExistsError with the specified source and name. + # + # @return [EntryExistsError] a new instance of EntryExistsError + # + # source://rubyzip//lib/zip/errors.rb#64 + def initialize(source, name); end + + # The message returned by this error. + # + # source://rubyzip//lib/zip/errors.rb#71 + def message; end +end + +# Error raised when an entry name is invalid. +# +# source://rubyzip//lib/zip/errors.rb#77 +class Zip::EntryNameError < ::Zip::Error + # Create a new EntryNameError with the specified name. + # + # @return [EntryNameError] a new instance of EntryNameError + # + # source://rubyzip//lib/zip/errors.rb#79 + def initialize(name = T.unsafe(nil)); end + + # The message returned by this error. + # + # source://rubyzip//lib/zip/errors.rb#85 + def message; end +end + +# source://rubyzip//lib/zip/entry_set.rb#4 +class Zip::EntrySet + include ::Enumerable + + # @return [EntrySet] a new instance of EntrySet + # + # source://rubyzip//lib/zip/entry_set.rb#10 + def initialize(an_enumerable = T.unsafe(nil)); end + + # source://rubyzip//lib/zip/entry_set.rb#24 + def <<(entry); end + + # source://rubyzip//lib/zip/entry_set.rb#53 + def ==(other); end + + # source://rubyzip//lib/zip/entry_set.rb#36 + def delete(entry); end + + # deep clone + # + # source://rubyzip//lib/zip/entry_set.rb#49 + def dup; end + + # source://rubyzip//lib/zip/entry_set.rb#40 + def each(&block); end + + # source://rubyzip//lib/zip/entry_set.rb#44 + def entries; end + + # source://rubyzip//lib/zip/entry_set.rb#20 + def find_entry(entry); end + + # source://rubyzip//lib/zip/entry_set.rb#63 + def glob(pattern, flags = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubyzip//lib/zip/entry_set.rb#16 + def include?(entry); end + + # source://rubyzip//lib/zip/entry_set.rb#34 + def length; end + + # source://rubyzip//lib/zip/entry_set.rb#59 + def parent(entry); end + + # source://rubyzip//lib/zip/entry_set.rb#28 + def push(entry); end + + # source://rubyzip//lib/zip/entry_set.rb#30 + def size; end + + protected + + # Returns the value of attribute entry_set. + # + # source://rubyzip//lib/zip/entry_set.rb#7 + def entry_set; end + + # source://rubyzip//lib/zip/entry_set.rb#74 + def sorted_entries; end + + private + + # source://rubyzip//lib/zip/entry_set.rb#80 + def to_key(entry); end +end + +# Error raised if an entry is larger on extraction than it is advertised +# to be. +# +# source://rubyzip//lib/zip/errors.rb#96 +class Zip::EntrySizeError < ::Zip::Error + # Create a new EntrySizeError with the specified entry. + # + # @return [EntrySizeError] a new instance of EntrySizeError + # + # source://rubyzip//lib/zip/errors.rb#101 + def initialize(entry); end + + # The entry that has caused this error. + # + # source://rubyzip//lib/zip/errors.rb#98 + def entry; end + + # The message returned by this error. + # + # source://rubyzip//lib/zip/errors.rb#107 + def message; end +end + +# The superclass for all rubyzip error types. Simply rescue this one if +# you don't need to know what sort of error has been raised. +# +# source://rubyzip//lib/zip/errors.rb#6 +class Zip::Error < ::StandardError; end + +# source://rubyzip//lib/zip/extra_field.rb#4 +class Zip::ExtraField < ::Hash + # @return [ExtraField] a new instance of ExtraField + # + # source://rubyzip//lib/zip/extra_field.rb#7 + def initialize(binstr = T.unsafe(nil), local: T.unsafe(nil)); end + + # source://rubyzip//lib/zip/extra_field.rb#74 + def c_dir_size; end + + # source://rubyzip//lib/zip/extra_field.rb#48 + def create(name); end + + # source://rubyzip//lib/zip/extra_field.rb#11 + def extra_field_type_exist(binstr, id, len, index); end + + # source://rubyzip//lib/zip/extra_field.rb#21 + def extra_field_type_unknown(binstr, len, index, local); end + + # source://rubyzip//lib/zip/extra_field.rb#82 + def length; end + + # source://rubyzip//lib/zip/extra_field.rb#78 + def local_size; end + + # source://rubyzip//lib/zip/extra_field.rb#32 + def merge(binstr, local: T.unsafe(nil)); end + + # Place Unknown last, so "extra" data that is missing the proper + # signature/size does not prevent known fields from being read back in. + # + # source://rubyzip//lib/zip/extra_field.rb#58 + def ordered_values; end + + # source://rubyzip//lib/zip/extra_field.rb#83 + def size; end + + # source://rubyzip//lib/zip/extra_field.rb#70 + def to_c_dir_bin; end + + # source://rubyzip//lib/zip/extra_field.rb#64 + def to_local_bin; end + + # source://rubyzip//lib/zip/extra_field.rb#68 + def to_s; end +end + +# source://rubyzip//lib/zip/extra_field/generic.rb#4 +class Zip::ExtraField::Generic + # source://rubyzip//lib/zip/extra_field/generic.rb#16 + def initial_parse(binstr); end + + # source://rubyzip//lib/zip/extra_field/generic.rb#32 + def to_c_dir_bin; end + + # source://rubyzip//lib/zip/extra_field/generic.rb#27 + def to_local_bin; end + + class << self + # source://rubyzip//lib/zip/extra_field/generic.rb#11 + def name; end + + # source://rubyzip//lib/zip/extra_field/generic.rb#5 + def register_map; end + end +end + +# source://rubyzip//lib/zip/extra_field.rb#5 +Zip::ExtraField::ID_MAP = T.let(T.unsafe(nil), Hash) + +# source://rubyzip//lib/zip/extra_field/unix.rb#5 +class Zip::ExtraField::IUnix < ::Zip::ExtraField::Generic + # source://rubyzip//lib/zip/extra_field/unix.rb#9 + def initialize(binstr = T.unsafe(nil)); end + + # source://rubyzip//lib/zip/extra_field/unix.rb#29 + def ==(other); end + + # source://rubyzip//lib/zip/extra_field/unix.rb#15 + def gid; end + + # source://rubyzip//lib/zip/extra_field/unix.rb#15 + def gid=(_arg0); end + + # source://rubyzip//lib/zip/extra_field/unix.rb#17 + def merge(binstr); end + + # source://rubyzip//lib/zip/extra_field/unix.rb#37 + def pack_for_c_dir; end + + # source://rubyzip//lib/zip/extra_field/unix.rb#33 + def pack_for_local; end + + # source://rubyzip//lib/zip/extra_field/unix.rb#15 + def uid; end + + # source://rubyzip//lib/zip/extra_field/unix.rb#15 + def uid=(_arg0); end +end + +# source://rubyzip//lib/zip/extra_field/unix.rb#6 +Zip::ExtraField::IUnix::HEADER_ID = T.let(T.unsafe(nil), String) + +# source://rubyzip//lib/zip/extra_field/ntfs.rb#6 +class Zip::ExtraField::NTFS < ::Zip::ExtraField::Generic + # source://rubyzip//lib/zip/extra_field/ntfs.rb#13 + def initialize(binstr = T.unsafe(nil)); end + + # source://rubyzip//lib/zip/extra_field/ntfs.rb#40 + def ==(other); end + + # source://rubyzip//lib/zip/extra_field/ntfs.rb#20 + def atime; end + + # source://rubyzip//lib/zip/extra_field/ntfs.rb#20 + def atime=(_arg0); end + + # source://rubyzip//lib/zip/extra_field/ntfs.rb#20 + def ctime; end + + # source://rubyzip//lib/zip/extra_field/ntfs.rb#20 + def ctime=(_arg0); end + + # source://rubyzip//lib/zip/extra_field/ntfs.rb#22 + def merge(binstr); end + + # source://rubyzip//lib/zip/extra_field/ntfs.rb#20 + def mtime; end + + # source://rubyzip//lib/zip/extra_field/ntfs.rb#20 + def mtime=(_arg0); end + + # source://rubyzip//lib/zip/extra_field/ntfs.rb#52 + def pack_for_c_dir; end + + # source://rubyzip//lib/zip/extra_field/ntfs.rb#47 + def pack_for_local; end + + private + + # source://rubyzip//lib/zip/extra_field/ntfs.rb#88 + def from_ntfs_time(ntfs_time); end + + # source://rubyzip//lib/zip/extra_field/ntfs.rb#70 + def parse_tags(content); end + + # source://rubyzip//lib/zip/extra_field/ntfs.rb#92 + def to_ntfs_time(time); end +end + +# source://rubyzip//lib/zip/extra_field/ntfs.rb#7 +Zip::ExtraField::NTFS::HEADER_ID = T.let(T.unsafe(nil), String) + +# source://rubyzip//lib/zip/extra_field/ntfs.rb#11 +Zip::ExtraField::NTFS::SEC_TO_UNIX_EPOCH = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/extra_field/ntfs.rb#10 +Zip::ExtraField::NTFS::WINDOWS_TICK = T.let(T.unsafe(nil), Float) + +# source://rubyzip//lib/zip/extra_field/old_unix.rb#5 +class Zip::ExtraField::OldUnix < ::Zip::ExtraField::Generic + # source://rubyzip//lib/zip/extra_field/old_unix.rb#9 + def initialize(binstr = T.unsafe(nil)); end + + # source://rubyzip//lib/zip/extra_field/old_unix.rb#33 + def ==(other); end + + # source://rubyzip//lib/zip/extra_field/old_unix.rb#17 + def atime; end + + # source://rubyzip//lib/zip/extra_field/old_unix.rb#17 + def atime=(_arg0); end + + # source://rubyzip//lib/zip/extra_field/old_unix.rb#17 + def gid; end + + # source://rubyzip//lib/zip/extra_field/old_unix.rb#17 + def gid=(_arg0); end + + # source://rubyzip//lib/zip/extra_field/old_unix.rb#19 + def merge(binstr); end + + # source://rubyzip//lib/zip/extra_field/old_unix.rb#17 + def mtime; end + + # source://rubyzip//lib/zip/extra_field/old_unix.rb#17 + def mtime=(_arg0); end + + # source://rubyzip//lib/zip/extra_field/old_unix.rb#44 + def pack_for_c_dir; end + + # source://rubyzip//lib/zip/extra_field/old_unix.rb#40 + def pack_for_local; end + + # source://rubyzip//lib/zip/extra_field/old_unix.rb#17 + def uid; end + + # source://rubyzip//lib/zip/extra_field/old_unix.rb#17 + def uid=(_arg0); end +end + +# source://rubyzip//lib/zip/extra_field/old_unix.rb#6 +Zip::ExtraField::OldUnix::HEADER_ID = T.let(T.unsafe(nil), String) + +# source://rubyzip//lib/zip/extra_field/universal_time.rb#5 +class Zip::ExtraField::UniversalTime < ::Zip::ExtraField::Generic + # source://rubyzip//lib/zip/extra_field/universal_time.rb#13 + def initialize(binstr = T.unsafe(nil)); end + + # source://rubyzip//lib/zip/extra_field/universal_time.rb#59 + def ==(other); end + + # source://rubyzip//lib/zip/extra_field/universal_time.rb#22 + def atime; end + + # source://rubyzip//lib/zip/extra_field/universal_time.rb#24 + def atime=(time); end + + # source://rubyzip//lib/zip/extra_field/universal_time.rb#22 + def ctime; end + + # source://rubyzip//lib/zip/extra_field/universal_time.rb#29 + def ctime=(time); end + + # source://rubyzip//lib/zip/extra_field/universal_time.rb#22 + def flag; end + + # source://rubyzip//lib/zip/extra_field/universal_time.rb#39 + def merge(binstr); end + + # source://rubyzip//lib/zip/extra_field/universal_time.rb#22 + def mtime; end + + # source://rubyzip//lib/zip/extra_field/universal_time.rb#34 + def mtime=(time); end + + # source://rubyzip//lib/zip/extra_field/universal_time.rb#73 + def pack_for_c_dir; end + + # source://rubyzip//lib/zip/extra_field/universal_time.rb#65 + def pack_for_local; end +end + +# source://rubyzip//lib/zip/extra_field/universal_time.rb#9 +Zip::ExtraField::UniversalTime::ATIME_MASK = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/extra_field/universal_time.rb#10 +Zip::ExtraField::UniversalTime::CTIME_MASK = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/extra_field/universal_time.rb#6 +Zip::ExtraField::UniversalTime::HEADER_ID = T.let(T.unsafe(nil), String) + +# source://rubyzip//lib/zip/extra_field/universal_time.rb#11 +Zip::ExtraField::UniversalTime::MTIME_MASK = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/extra_field/unknown.rb#5 +class Zip::ExtraField::Unknown + # source://rubyzip//lib/zip/extra_field/unknown.rb#6 + def initialize; end + + # source://rubyzip//lib/zip/extra_field/unknown.rb#29 + def ==(other); end + + # source://rubyzip//lib/zip/extra_field/unknown.rb#11 + def merge(binstr, local: T.unsafe(nil)); end + + # source://rubyzip//lib/zip/extra_field/unknown.rb#25 + def to_c_dir_bin; end + + # source://rubyzip//lib/zip/extra_field/unknown.rb#21 + def to_local_bin; end +end + +# source://rubyzip//lib/zip/extra_field/zip64.rb#5 +class Zip::ExtraField::Zip64 < ::Zip::ExtraField::Generic + # source://rubyzip//lib/zip/extra_field/zip64.rb#12 + def initialize(binstr = T.unsafe(nil)); end + + # source://rubyzip//lib/zip/extra_field/zip64.rb#24 + def ==(other); end + + # source://rubyzip//lib/zip/extra_field/zip64.rb#6 + def compressed_size; end + + # source://rubyzip//lib/zip/extra_field/zip64.rb#6 + def compressed_size=(_arg0); end + + # source://rubyzip//lib/zip/extra_field/zip64.rb#6 + def disk_start_number; end + + # source://rubyzip//lib/zip/extra_field/zip64.rb#6 + def disk_start_number=(_arg0); end + + # source://rubyzip//lib/zip/extra_field/zip64.rb#31 + def merge(binstr); end + + # source://rubyzip//lib/zip/extra_field/zip64.rb#6 + def original_size; end + + # source://rubyzip//lib/zip/extra_field/zip64.rb#6 + def original_size=(_arg0); end + + # source://rubyzip//lib/zip/extra_field/zip64.rb#67 + def pack_for_c_dir; end + + # source://rubyzip//lib/zip/extra_field/zip64.rb#59 + def pack_for_local; end + + # source://rubyzip//lib/zip/extra_field/zip64.rb#40 + def parse(original_size, compressed_size, relative_header_offset = T.unsafe(nil), disk_start_number = T.unsafe(nil)); end + + # source://rubyzip//lib/zip/extra_field/zip64.rb#6 + def relative_header_offset; end + + # source://rubyzip//lib/zip/extra_field/zip64.rb#6 + def relative_header_offset=(_arg0); end + + private + + # source://rubyzip//lib/zip/extra_field/zip64.rb#54 + def extract(size, format); end +end + +# source://rubyzip//lib/zip/extra_field/zip64.rb#9 +Zip::ExtraField::Zip64::HEADER_ID = T.let(T.unsafe(nil), String) + +# source://rubyzip//lib/zip/constants.rb#21 +Zip::FILE_TYPE_DIR = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#20 +Zip::FILE_TYPE_FILE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#22 +Zip::FILE_TYPE_SYMLINK = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#46 +Zip::FSTYPES = T.let(T.unsafe(nil), Hash) + +# source://rubyzip//lib/zip/constants.rb#37 +Zip::FSTYPE_ACORN = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#25 +Zip::FSTYPE_AMIGA = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#29 +Zip::FSTYPE_ATARI = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#44 +Zip::FSTYPE_ATHEOS = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#40 +Zip::FSTYPE_BEOS = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#33 +Zip::FSTYPE_CPM = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#24 +Zip::FSTYPE_FAT = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#30 +Zip::FSTYPE_HPFS = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#31 +Zip::FSTYPE_MAC = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#43 +Zip::FSTYPE_MAC_OSX = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#39 +Zip::FSTYPE_MVS = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#35 +Zip::FSTYPE_NTFS = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#36 +Zip::FSTYPE_QDOS = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#41 +Zip::FSTYPE_TANDEM = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#42 +Zip::FSTYPE_THEOS = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#34 +Zip::FSTYPE_TOPS20 = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#27 +Zip::FSTYPE_UNIX = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#38 +Zip::FSTYPE_VFAT = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#26 +Zip::FSTYPE_VMS = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#28 +Zip::FSTYPE_VM_CMS = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#32 +Zip::FSTYPE_Z_SYSTEM = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/file.rb#51 +class Zip::File + include ::Enumerable + extend ::Forwardable + extend ::Zip::FileSplit + + # Opens a zip archive. Pass create: true to create + # a new archive if it doesn't exist already. + # + # @return [File] a new instance of File + # + # source://rubyzip//lib/zip/file.rb#74 + def initialize(path_or_io, create: T.unsafe(nil), buffer: T.unsafe(nil), restore_ownership: T.unsafe(nil), restore_permissions: T.unsafe(nil), restore_times: T.unsafe(nil), compression_level: T.unsafe(nil)); end + + # Convenience method for adding the contents of a file to the archive + # + # source://rubyzip//lib/zip/file.rb#227 + def add(entry, src_path, &continue_on_exists_proc); end + + # Convenience method for adding the contents of a file to the archive + # in Stored format (uncompressed) + # + # source://rubyzip//lib/zip/file.rb#244 + def add_stored(entry, src_path, &continue_on_exists_proc); end + + # Closes the zip file committing any changes that has been made. + # + # source://rubyzip//lib/zip/file.rb#314 + def close; end + + # source://rubyzip//lib/zip/file.rb#70 + def comment(*args, **_arg1, &block); end + + # source://rubyzip//lib/zip/file.rb#70 + def comment=(*args, **_arg1, &block); end + + # Commits changes that has been made since the previous commit to + # the zip archive. + # + # source://rubyzip//lib/zip/file.rb#287 + def commit; end + + # Returns true if any changes has been made to this archive since + # the previous commit + # + # @return [Boolean] + # + # source://rubyzip//lib/zip/file.rb#320 + def commit_required?; end + + # source://rubyzip//lib/zip/file.rb#70 + def each(*args, **_arg1, &block); end + + # source://rubyzip//lib/zip/file.rb#70 + def entries(*args, **_arg1, &block); end + + # Extracts `entry` to a file at `entry_path`, with `destination_directory` + # as the base location in the filesystem. + # + # NB: The caller is responsible for making sure `destination_directory` is + # safe, if it is passed. + # + # source://rubyzip//lib/zip/file.rb#278 + def extract(entry, entry_path = T.unsafe(nil), destination_directory: T.unsafe(nil), &block); end + + # Searches for entry with the specified name. Returns nil if + # no entry is found. See also get_entry + # + # source://rubyzip//lib/zip/file.rb#332 + def find_entry(entry_name); end + + # Searches for an entry just as find_entry, but throws Errno::ENOENT + # if no entry is found. + # + # @raise [Errno::ENOENT] + # + # source://rubyzip//lib/zip/file.rb#344 + def get_entry(entry); end + + # Returns an input stream to the specified entry. If a block is passed + # the stream object is passed to the block and the stream is automatically + # closed afterwards just as with ruby's builtin File.open method. + # + # source://rubyzip//lib/zip/file.rb#181 + def get_input_stream(entry, &a_proc); end + + # Returns an output stream to the specified entry. If entry is not an instance + # of Zip::Entry, a new Zip::Entry will be initialized using the arguments + # specified. If a block is passed the stream object is passed to the block and + # the stream is automatically closed afterwards just as with ruby's builtin + # File.open method. + # + # source://rubyzip//lib/zip/file.rb#190 + def get_output_stream(entry, permissions: T.unsafe(nil), comment: T.unsafe(nil), extra: T.unsafe(nil), compressed_size: T.unsafe(nil), crc: T.unsafe(nil), compression_method: T.unsafe(nil), compression_level: T.unsafe(nil), size: T.unsafe(nil), time: T.unsafe(nil), &a_proc); end + + # source://rubyzip//lib/zip/file.rb#70 + def glob(*args, **_arg1, &block); end + + # Creates a directory + # + # @raise [Errno::EEXIST] + # + # source://rubyzip//lib/zip/file.rb#352 + def mkdir(entry_name, permission = T.unsafe(nil)); end + + # The name of this zip archive. + # + # source://rubyzip//lib/zip/file.rb#59 + def name; end + + # Returns a string containing the contents of the specified entry + # + # source://rubyzip//lib/zip/file.rb#222 + def read(entry); end + + # Removes the specified entry. + # + # source://rubyzip//lib/zip/file.rb#252 + def remove(entry); end + + # Renames the specified entry. + # + # source://rubyzip//lib/zip/file.rb#257 + def rename(entry, new_name, &continue_on_exists_proc); end + + # Replaces the specified entry with the contents of src_path (from + # the file system). + # + # source://rubyzip//lib/zip/file.rb#267 + def replace(entry, src_path); end + + # default -> false. + # + # source://rubyzip//lib/zip/file.rb#62 + def restore_ownership; end + + # default -> false. + # + # source://rubyzip//lib/zip/file.rb#62 + def restore_ownership=(_arg0); end + + # default -> true. + # + # source://rubyzip//lib/zip/file.rb#65 + def restore_permissions; end + + # default -> true. + # + # source://rubyzip//lib/zip/file.rb#65 + def restore_permissions=(_arg0); end + + # default -> true. + # + # source://rubyzip//lib/zip/file.rb#68 + def restore_times; end + + # default -> true. + # + # source://rubyzip//lib/zip/file.rb#68 + def restore_times=(_arg0); end + + # source://rubyzip//lib/zip/file.rb#70 + def size(*args, **_arg1, &block); end + + # Returns the name of the zip archive + # + # source://rubyzip//lib/zip/file.rb#217 + def to_s; end + + # Write buffer write changes to buffer and return + # + # source://rubyzip//lib/zip/file.rb#304 + def write_buffer(io = T.unsafe(nil)); end + + private + + # source://rubyzip//lib/zip/file.rb#394 + def check_entry_exists(entry_name, continue_on_exists_proc, proc_name); end + + # @raise [Errno::ENOENT] + # + # source://rubyzip//lib/zip/file.rb#403 + def check_file(path); end + + # source://rubyzip//lib/zip/file.rb#362 + def initialize_cdir(path_or_io, buffer: T.unsafe(nil)); end + + # source://rubyzip//lib/zip/file.rb#407 + def on_success_replace; end + + class << self + # Count the entries in a zip archive without reading the whole set of + # entry data into memory. + # + # source://rubyzip//lib/zip/file.rb#165 + def count_entries(path_or_io); end + + # Iterates over the contents of the ZipFile. This is more efficient + # than using a ZipInputStream since this methods simply iterates + # through the entries in the central directory structure in the archive + # whereas ZipInputStream jumps through the entire archive accessing the + # local entry headers (which contain the same information as the + # central directory). + # + # source://rubyzip//lib/zip/file.rb#157 + def foreach(zip_file_name, &block); end + + # Similar to ::new. If a block is passed the Zip::File object is passed + # to the block and is automatically closed afterwards, just as with + # ruby's builtin File::open method. + # + # source://rubyzip//lib/zip/file.rb#96 + def open(file_name, create: T.unsafe(nil), restore_ownership: T.unsafe(nil), restore_permissions: T.unsafe(nil), restore_times: T.unsafe(nil), compression_level: T.unsafe(nil)); end + + # Like #open, but reads zip archive contents from a String or open IO + # stream, and outputs data to a buffer. + # (This can be used to extract data from a + # downloaded zip archive without first saving it to disk.) + # + # @yield [zf] + # + # source://rubyzip//lib/zip/file.rb#121 + def open_buffer(io = T.unsafe(nil), create: T.unsafe(nil), restore_ownership: T.unsafe(nil), restore_permissions: T.unsafe(nil), restore_times: T.unsafe(nil), compression_level: T.unsafe(nil)); end + end +end + +# source://rubyzip//lib/zip/file.rb#56 +Zip::File::IO_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubyzip//lib/zip/file_split.rb#4 +module Zip::FileSplit + # source://rubyzip//lib/zip/file_split.rb#13 + def get_partial_zip_file_name(zip_file_name, partial_zip_file_name); end + + # source://rubyzip//lib/zip/file_split.rb#24 + def get_segment_count_for_split(zip_file_size, segment_size); end + + # source://rubyzip//lib/zip/file_split.rb#9 + def get_segment_size_for_split(segment_size); end + + # source://rubyzip//lib/zip/file_split.rb#29 + def put_split_signature(szip_file, segment_size); end + + # TODO: Make the code more understandable + # + # source://rubyzip//lib/zip/file_split.rb#38 + def save_splited_part(zip_file, partial_zip_file_name, zip_file_size, szip_file_index, segment_size, segment_count); end + + # Splits an archive into parts with segment size + # + # @raise [Error] + # + # source://rubyzip//lib/zip/file_split.rb#63 + def split(zip_file_name, segment_size: T.unsafe(nil), delete_original: T.unsafe(nil), partial_zip_file_name: T.unsafe(nil)); end +end + +# source://rubyzip//lib/zip/file_split.rb#7 +Zip::FileSplit::DATA_BUFFER_SIZE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/file_split.rb#5 +Zip::FileSplit::MAX_SEGMENT_SIZE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/file_split.rb#6 +Zip::FileSplit::MIN_SEGMENT_SIZE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/ioextras.rb#4 +module Zip::IOExtras + class << self + # source://rubyzip//lib/zip/ioextras.rb#8 + def copy_stream(ostream, istream); end + + # source://rubyzip//lib/zip/ioextras.rb#12 + def copy_stream_n(ostream, istream, nbytes); end + end +end + +# Implements many of the convenience methods of IO +# such as gets, getc, readline and readlines +# depends on: input_finished?, produce_input and read +# +# source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#8 +module Zip::IOExtras::AbstractInputStream + include ::ActiveSupport::ToJsonWithActiveSupportEncoder + include ::Enumerable + include ::Zip::IOExtras::FakeIO + + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#12 + def initialize; end + + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#118 + def each(a_sep_string = T.unsafe(nil)); end + + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#112 + def each_line(a_sep_string = T.unsafe(nil)); end + + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#120 + def eof; end + + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#124 + def eof?; end + + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#99 + def flush; end + + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#60 + def gets(a_sep_string = T.unsafe(nil), number_of_bytes = T.unsafe(nil)); end + + # Returns the value of attribute lineno. + # + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#19 + def lineno; end + + # Sets the attribute lineno + # + # @param value the value to set the attribute lineno to. + # + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#19 + def lineno=(_arg0); end + + # Returns the value of attribute pos. + # + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#20 + def pos; end + + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#22 + def read(number_of_bytes = T.unsafe(nil), buf = T.unsafe(nil)); end + + # @raise [EOFError] + # + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#105 + def readline(a_sep_string = T.unsafe(nil)); end + + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#54 + def readlines(a_sep_string = T.unsafe(nil)); end + + # source://rubyzip//lib/zip/ioextras/abstract_input_stream.rb#95 + def ungetc(byte); end +end + +# Implements many of the output convenience methods of IO. +# relies on << +# +# source://rubyzip//lib/zip/ioextras/abstract_output_stream.rb#7 +module Zip::IOExtras::AbstractOutputStream + include ::Zip::IOExtras::FakeIO + + # source://rubyzip//lib/zip/ioextras/abstract_output_stream.rb#15 + def print(*params); end + + # source://rubyzip//lib/zip/ioextras/abstract_output_stream.rb#26 + def printf(a_format_string, *params); end + + # source://rubyzip//lib/zip/ioextras/abstract_output_stream.rb#31 + def putc(an_object); end + + # source://rubyzip//lib/zip/ioextras/abstract_output_stream.rb#43 + def puts(*params); end + + # source://rubyzip//lib/zip/ioextras/abstract_output_stream.rb#10 + def write(data); end +end + +# source://rubyzip//lib/zip/ioextras.rb#5 +Zip::IOExtras::CHUNK_SIZE = T.let(T.unsafe(nil), Integer) + +# Implements kind_of? in order to pretend to be an IO object +# +# source://rubyzip//lib/zip/ioextras.rb#23 +module Zip::IOExtras::FakeIO + # @return [Boolean] + # + # source://rubyzip//lib/zip/ioextras.rb#24 + def kind_of?(object); end +end + +# source://rubyzip//lib/zip/inflater.rb#4 +class Zip::Inflater < ::Zip::Decompressor + # @return [Inflater] a new instance of Inflater + # + # source://rubyzip//lib/zip/inflater.rb#5 + def initialize(*args); end + + # source://rubyzip//lib/zip/inflater.rb#24 + def eof; end + + # source://rubyzip//lib/zip/inflater.rb#28 + def eof?; end + + # source://rubyzip//lib/zip/inflater.rb#12 + def read(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubyzip//lib/zip/inflater.rb#46 + def input_finished?; end + + # source://rubyzip//lib/zip/inflater.rb#32 + def produce_input; end +end + +# InputStream is the basic class for reading zip entries in a +# zip file. It is possible to create a InputStream object directly, +# passing the zip file name to the constructor, but more often than not +# the InputStream will be obtained from a File (perhaps using the +# ZipFileSystem interface) object for a particular entry in the zip +# archive. +# +# A InputStream inherits IOExtras::AbstractInputStream in order +# to provide an IO-like interface for reading from a single zip +# entry. Beyond methods for mimicking an IO-object it contains +# the method get_next_entry for iterating through the entries of +# an archive. get_next_entry returns a Entry object that describes +# the zip entry the InputStream is currently reading from. +# +# Example that creates a zip archive with ZipOutputStream and reads it +# back again with a InputStream. +# +# require 'zip' +# +# Zip::OutputStream.open("my.zip") do |io| +# +# io.put_next_entry("first_entry.txt") +# io.write "Hello world!" +# +# io.put_next_entry("adir/first_entry.txt") +# io.write "Hello again!" +# end +# +# +# Zip::InputStream.open("my.zip") do |io| +# +# while (entry = io.get_next_entry) +# puts "Contents of #{entry.name}: '#{io.read}'" +# end +# end +# +# java.util.zip.ZipInputStream is the original inspiration for this +# class. +# +# source://rubyzip//lib/zip/input_stream.rb#43 +class Zip::InputStream + include ::Enumerable + include ::Zip::IOExtras::FakeIO + include ::Zip::IOExtras::AbstractInputStream + + # Opens the indicated zip file. An exception is thrown + # if the specified offset in the specified filename is + # not a local zip entry header. + # + # @param context [String||IO||StringIO] file path or IO/StringIO object + # @param offset [Integer] offset in the IO/StringIO + # @return [InputStream] a new instance of InputStream + # + # source://rubyzip//lib/zip/input_stream.rb#54 + def initialize(context, offset: T.unsafe(nil), decrypter: T.unsafe(nil)); end + + # Close this InputStream. All further IO will raise an IOError. + # + # source://rubyzip//lib/zip/input_stream.rb#64 + def close; end + + # Returns an Entry object and positions the stream at the beginning of + # the entry data. It is necessary to call this method on a newly created + # InputStream before reading from the first entry in the archive. + # Returns nil when there are no more entries. + # + # source://rubyzip//lib/zip/input_stream.rb#72 + def get_next_entry; end + + # Rewinds the stream to the beginning of the current entry. + # + # source://rubyzip//lib/zip/input_stream.rb#83 + def rewind; end + + # Returns the size of the current entry, or `nil` if there isn't one. + # + # source://rubyzip//lib/zip/input_stream.rb#98 + def size; end + + # Modeled after IO.sysread + # + # source://rubyzip//lib/zip/input_stream.rb#93 + def sysread(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end + + protected + + # source://rubyzip//lib/zip/input_stream.rb#160 + def get_decompressor; end + + # source://rubyzip//lib/zip/input_stream.rb#153 + def get_decrypted_io; end + + # source://rubyzip//lib/zip/input_stream.rb#122 + def get_io(io_or_file, offset = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubyzip//lib/zip/input_stream.rb#185 + def input_finished?; end + + # source://rubyzip//lib/zip/input_stream.rb#134 + def open_entry; end + + # source://rubyzip//lib/zip/input_stream.rb#181 + def produce_input; end + + class << self + # Same as #initialize but if a block is passed the opened + # stream is passed to the block and closed when the block + # returns. + # + # source://rubyzip//lib/zip/input_stream.rb#108 + def open(filename_or_io, offset: T.unsafe(nil), decrypter: T.unsafe(nil)); end + end +end + +# source://rubyzip//lib/zip/input_stream.rb#44 +Zip::InputStream::CHUNK_SIZE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#11 +Zip::LOCAL_ENTRY_SIGNATURE = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#12 +Zip::LOCAL_ENTRY_STATIC_HEADER_LENGTH = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#13 +Zip::LOCAL_ENTRY_TRAILING_DESCRIPTOR_LENGTH = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/null_compressor.rb#4 +class Zip::NullCompressor < ::Zip::Compressor + include ::Singleton::SingletonInstanceMethods + include ::Singleton + extend ::Singleton::SingletonClassMethods + + # @raise [IOError] + # + # source://rubyzip//lib/zip/null_compressor.rb#7 + def <<(_data); end + + # Returns the value of attribute compressed_size. + # + # source://rubyzip//lib/zip/null_compressor.rb#11 + def compressed_size; end + + # Returns the value of attribute size. + # + # source://rubyzip//lib/zip/null_compressor.rb#11 + def size; end + + class << self + private + + # source://rubyzip//lib/zip/null_compressor.rb#5 + def allocate; end + + # source://rubyzip//lib/zip/null_compressor.rb#5 + def new(*_arg0); end + end +end + +# source://rubyzip//lib/zip/null_decompressor.rb#4 +module Zip::NullDecompressor + private + + # source://rubyzip//lib/zip/null_decompressor.rb#11 + def eof; end + + # source://rubyzip//lib/zip/null_decompressor.rb#15 + def eof?; end + + # source://rubyzip//lib/zip/null_decompressor.rb#7 + def read(_length = T.unsafe(nil), _outbuf = T.unsafe(nil)); end + + class << self + # source://rubyzip//lib/zip/null_decompressor.rb#11 + def eof; end + + # source://rubyzip//lib/zip/null_decompressor.rb#7 + def read(_length = T.unsafe(nil), _outbuf = T.unsafe(nil)); end + end +end + +# source://rubyzip//lib/zip/crypto/null_encryption.rb#32 +class Zip::NullDecrypter < ::Zip::Decrypter + include ::Zip::NullEncryption + + # source://rubyzip//lib/zip/crypto/null_encryption.rb#35 + def decrypt(data); end + + # source://rubyzip//lib/zip/crypto/null_encryption.rb#39 + def reset!(_header); end +end + +# source://rubyzip//lib/zip/crypto/null_encryption.rb#14 +class Zip::NullEncrypter < ::Zip::Encrypter + include ::Zip::NullEncryption + + # source://rubyzip//lib/zip/crypto/null_encryption.rb#25 + def data_descriptor(_crc32, _compressed_size, _uncompressed_size); end + + # source://rubyzip//lib/zip/crypto/null_encryption.rb#21 + def encrypt(data); end + + # source://rubyzip//lib/zip/crypto/null_encryption.rb#17 + def header(_mtime); end + + # source://rubyzip//lib/zip/crypto/null_encryption.rb#29 + def reset!; end +end + +# source://rubyzip//lib/zip/crypto/null_encryption.rb#4 +module Zip::NullEncryption + # source://rubyzip//lib/zip/crypto/null_encryption.rb#9 + def gp_flags; end + + # source://rubyzip//lib/zip/crypto/null_encryption.rb#5 + def header_bytesize; end +end + +# source://rubyzip//lib/zip/null_input_stream.rb#4 +module Zip::NullInputStream + include ::Zip::NullDecompressor + include ::ActiveSupport::ToJsonWithActiveSupportEncoder + include ::Enumerable + include ::Zip::IOExtras::FakeIO + include ::Zip::IOExtras::AbstractInputStream +end + +# ZipOutputStream is the basic class for writing zip files. It is +# possible to create a ZipOutputStream object directly, passing +# the zip file name to the constructor, but more often than not +# the ZipOutputStream will be obtained from a ZipFile (perhaps using the +# ZipFileSystem interface) object for a particular entry in the zip +# archive. +# +# A ZipOutputStream inherits IOExtras::AbstractOutputStream in order +# to provide an IO-like interface for writing to a single zip +# entry. Beyond methods for mimicking an IO-object it contains +# the method put_next_entry that closes the current entry +# and creates a new. +# +# Please refer to ZipInputStream for example code. +# +# java.util.zip.ZipOutputStream is the original inspiration for this +# class. +# +# source://rubyzip//lib/zip/output_stream.rb#24 +class Zip::OutputStream + include ::Zip::IOExtras::FakeIO + include ::Zip::IOExtras::AbstractOutputStream + extend ::Forwardable + + # Opens the indicated zip file. If a file with that name already + # exists it will be overwritten. + # + # @return [OutputStream] a new instance of OutputStream + # + # source://rubyzip//lib/zip/output_stream.rb#32 + def initialize(file_name, stream: T.unsafe(nil), encrypter: T.unsafe(nil)); end + + # Modeled after IO.<< + # + # source://rubyzip//lib/zip/output_stream.rb#195 + def <<(data); end + + # Closes the stream and writes the central directory to the zip file + # + # source://rubyzip//lib/zip/output_stream.rb#73 + def close; end + + # Closes the stream and writes the central directory to the zip file + # + # source://rubyzip//lib/zip/output_stream.rb#84 + def close_buffer; end + + # source://rubyzip//lib/zip/output_stream.rb#28 + def comment(*args, **_arg1, &block); end + + # source://rubyzip//lib/zip/output_stream.rb#28 + def comment=(*args, **_arg1, &block); end + + # @raise [Error] + # + # source://rubyzip//lib/zip/output_stream.rb#117 + def copy_raw_entry(entry); end + + # Closes the current entry and opens a new for writing. + # +entry+ can be a ZipEntry object or a string. + # + # @raise [Error] + # + # source://rubyzip//lib/zip/output_stream.rb#97 + def put_next_entry(entry_name, comment = T.unsafe(nil), extra = T.unsafe(nil), compression_method = T.unsafe(nil), level = T.unsafe(nil)); end + + protected + + # source://rubyzip//lib/zip/output_stream.rb#188 + def finish; end + + private + + # source://rubyzip//lib/zip/output_stream.rb#138 + def finalize_current_entry; end + + # source://rubyzip//lib/zip/output_stream.rb#166 + def get_compressor(entry); end + + # source://rubyzip//lib/zip/output_stream.rb#157 + def init_next_entry(entry); end + + # source://rubyzip//lib/zip/output_stream.rb#177 + def update_local_headers; end + + class << self + # Same as #initialize but if a block is passed the opened + # stream is passed to the block and closed when the block + # returns. + # + # source://rubyzip//lib/zip/output_stream.rb#54 + def open(file_name, encrypter: T.unsafe(nil)); end + + # Same as #open but writes to a filestream instead + # + # @yield [zos] + # + # source://rubyzip//lib/zip/output_stream.rb#64 + def write_buffer(io = T.unsafe(nil), encrypter: T.unsafe(nil)); end + end +end + +# source://rubyzip//lib/zip/pass_thru_compressor.rb#4 +class Zip::PassThruCompressor < ::Zip::Compressor + # @return [PassThruCompressor] a new instance of PassThruCompressor + # + # source://rubyzip//lib/zip/pass_thru_compressor.rb#5 + def initialize(output_stream); end + + # source://rubyzip//lib/zip/pass_thru_compressor.rb#12 + def <<(data); end + + # Returns the value of attribute crc. + # + # source://rubyzip//lib/zip/pass_thru_compressor.rb#19 + def crc; end + + # Returns the value of attribute size. + # + # source://rubyzip//lib/zip/pass_thru_compressor.rb#19 + def size; end +end + +# source://rubyzip//lib/zip/pass_thru_decompressor.rb#4 +class Zip::PassThruDecompressor < ::Zip::Decompressor + # @return [PassThruDecompressor] a new instance of PassThruDecompressor + # + # source://rubyzip//lib/zip/pass_thru_decompressor.rb#5 + def initialize(*args); end + + # source://rubyzip//lib/zip/pass_thru_decompressor.rb#21 + def eof; end + + # source://rubyzip//lib/zip/pass_thru_decompressor.rb#25 + def eof?; end + + # source://rubyzip//lib/zip/pass_thru_decompressor.rb#10 + def read(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end +end + +# :stopdoc: +# +# source://rubyzip//lib/zip/constants.rb#6 +Zip::RUNNING_ON_WINDOWS = T.let(T.unsafe(nil), T.untyped) + +# source://rubyzip//lib/zip/constants.rb#18 +Zip::SPLIT_FILE_SIGNATURE = T.let(T.unsafe(nil), Integer) + +# Error raised if a split archive is read. Rubyzip does not support reading +# split archives. +# +# source://rubyzip//lib/zip/errors.rb#114 +class Zip::SplitArchiveError < ::Zip::Error + # The message returned by this error. + # + # source://rubyzip//lib/zip/errors.rb#116 + def message; end +end + +# source://rubyzip//lib/zip/streamable_directory.rb#4 +class Zip::StreamableDirectory < ::Zip::Entry + # @return [StreamableDirectory] a new instance of StreamableDirectory + # + # source://rubyzip//lib/zip/streamable_directory.rb#5 + def initialize(zipfile, entry, src_path = T.unsafe(nil), permission = T.unsafe(nil)); end +end + +# source://rubyzip//lib/zip/streamable_stream.rb#4 +class Zip::StreamableStream + # @return [StreamableStream] a new instance of StreamableStream + # + # source://rubyzip//lib/zip/streamable_stream.rb#5 + def initialize(entry); end + + # source://rubyzip//lib/zip/streamable_stream.rb#46 + def clean_up; end + + # source://rubyzip//lib/zip/streamable_stream.rb#23 + def get_input_stream; end + + # source://rubyzip//lib/zip/streamable_stream.rb#11 + def get_output_stream; end + + # source://rubyzip//lib/zip/streamable_stream.rb#41 + def write_to_zip_output_stream(output_stream); end +end + +# Error raised if there is not enough metadata for the entry to be streamed. +# +# source://rubyzip//lib/zip/errors.rb#122 +class Zip::StreamingError < ::Zip::Error + # Create a new StreamingError with the specified entry. + # + # @return [StreamingError] a new instance of StreamingError + # + # source://rubyzip//lib/zip/errors.rb#127 + def initialize(entry); end + + # The entry that has caused this error. + # + # source://rubyzip//lib/zip/errors.rb#124 + def entry; end + + # The message returned by this error. + # + # source://rubyzip//lib/zip/errors.rb#133 + def message; end +end + +# source://rubyzip//lib/zip/crypto/traditional_encryption.rb#75 +class Zip::TraditionalDecrypter < ::Zip::Decrypter + include ::Zip::TraditionalEncryption + + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#78 + def decrypt(data); end + + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#82 + def reset!(header); end + + private + + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#91 + def decode(num); end +end + +# source://rubyzip//lib/zip/crypto/traditional_encryption.rb#41 +class Zip::TraditionalEncrypter < ::Zip::Encrypter + include ::Zip::TraditionalEncryption + + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#58 + def data_descriptor(crc32, compressed_size, uncompressed_size); end + + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#54 + def encrypt(data); end + + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#44 + def header(mtime); end + + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#62 + def reset!; end + + private + + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#68 + def encode(num); end +end + +# source://rubyzip//lib/zip/crypto/traditional_encryption.rb#4 +module Zip::TraditionalEncryption + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#5 + def initialize(password); end + + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#14 + def gp_flags; end + + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#10 + def header_bytesize; end + + protected + + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#35 + def decrypt_byte; end + + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#20 + def reset_keys!; end + + # source://rubyzip//lib/zip/crypto/traditional_encryption.rb#29 + def update_keys(num); end +end + +# source://rubyzip//lib/zip/version.rb#4 +Zip::VERSION = T.let(T.unsafe(nil), String) + +# this library's version +# +# source://rubyzip//lib/zip/constants.rb#14 +Zip::VERSION_MADE_BY = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#15 +Zip::VERSION_NEEDED_TO_EXTRACT = T.let(T.unsafe(nil), Integer) + +# source://rubyzip//lib/zip/constants.rb#16 +Zip::VERSION_NEEDED_TO_EXTRACT_ZIP64 = T.let(T.unsafe(nil), Integer) + +# Remove this when JRuby#3962 is fixed. +# +# source://rubyzip//lib/zip.rb#65 +Zip::ZLIB_FLUSHING_STRATEGY = T.let(T.unsafe(nil), Integer) diff --git a/sorbet/rbi/gems/securerandom@0.4.1.rbi b/sorbet/rbi/gems/securerandom@0.4.1.rbi index faee3b91..9fb73343 100644 --- a/sorbet/rbi/gems/securerandom@0.4.1.rbi +++ b/sorbet/rbi/gems/securerandom@0.4.1.rbi @@ -52,7 +52,7 @@ module SecureRandom # source://securerandom//lib/securerandom.rb#50 def bytes(n); end - # source://securerandom//lib/securerandom.rb#70 + # source://securerandom//lib/securerandom.rb#84 def gen_random(n); end private diff --git a/sorbet/rbi/gems/selenium-webdriver@4.32.0.rbi b/sorbet/rbi/gems/selenium-webdriver@4.35.0.rbi similarity index 96% rename from sorbet/rbi/gems/selenium-webdriver@4.32.0.rbi rename to sorbet/rbi/gems/selenium-webdriver@4.35.0.rbi index 982ddef5..40c9736a 100644 --- a/sorbet/rbi/gems/selenium-webdriver@4.32.0.rbi +++ b/sorbet/rbi/gems/selenium-webdriver@4.35.0.rbi @@ -33,19 +33,19 @@ module Selenium::WebDriver # @see Selenium::WebDriver::Firefox::Driver # @see Selenium::WebDriver::IE::Driver # - # source://selenium-webdriver//lib/selenium/webdriver.rb#88 - def for(*args); end + # source://selenium-webdriver//lib/selenium/webdriver.rb#87 + def for(*_arg0); end # Returns logger instance that can be used across the whole Selenium. # # @return [Logger] # - # source://selenium-webdriver//lib/selenium/webdriver.rb#98 - def logger(**opts); end + # source://selenium-webdriver//lib/selenium/webdriver.rb#97 + def logger(**_arg0); end # @api private # - # source://selenium-webdriver//lib/selenium/webdriver.rb#51 + # source://selenium-webdriver//lib/selenium/webdriver.rb#50 def root; end end end @@ -234,7 +234,7 @@ module Selenium::WebDriver::Atoms private # source://selenium-webdriver//lib/selenium/webdriver/atoms.rb#34 - def execute_atom(function_name, *arguments); end + def execute_atom(function_name, *_arg1); end # source://selenium-webdriver//lib/selenium/webdriver/atoms.rb#30 def read_atom(function); end @@ -420,7 +420,7 @@ class Selenium::WebDriver::BiDi::ConsoleLogEntry < ::Selenium::WebDriver::BiDi:: # @return [ConsoleLogEntry] a new instance of ConsoleLogEntry # # source://selenium-webdriver//lib/selenium/webdriver/bidi/log/console_log_entry.rb#26 - def initialize(method:, realm:, args:, **opts); end + def initialize(method:, realm:, args:, **_arg3); end # Returns the value of attribute args. # @@ -744,60 +744,132 @@ class Selenium::WebDriver::BiDi::LogHandler def unsubscribe_log_entry; end end -# source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#0 +# source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 class Selenium::WebDriver::BiDi::LogHandler::ConsoleLogEntry < ::Selenium::WebDriver::BiDi::Struct - # source://selenium-webdriver//lib/selenium/webdriver/bidi/struct.rb#27 + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def initialize(**kwargs); end + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def args; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def args=(_); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def level; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def level=(_); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def method; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def method=(_); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def source; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def source=(_); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def stack_trace; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def stack_trace=(_); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def text; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def text=(_); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def timestamp; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def timestamp=(_); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def type; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def type=(_); end class << self + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def [](*_arg0); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def inspect; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def keyword_init?; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def members; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#24 def new(*_arg0); end end end -# source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#0 +# source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 class Selenium::WebDriver::BiDi::LogHandler::JavaScriptLogEntry < ::Selenium::WebDriver::BiDi::Struct - # source://selenium-webdriver//lib/selenium/webdriver/bidi/struct.rb#27 + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def initialize(**kwargs); end + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def level; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def level=(_); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def source; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def source=(_); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def stack_trace; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def stack_trace=(_); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def text; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def text=(_); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def timestamp; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def timestamp=(_); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def type; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def type=(_); end class << self + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def [](*_arg0); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def inspect; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def keyword_init?; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def members; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#25 def new(*_arg0); end end end @@ -910,38 +982,55 @@ class Selenium::WebDriver::BiDi::Session def unsubscribe(events, browsing_contexts = T.unsafe(nil)); end end -# source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#0 +# source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#24 class Selenium::WebDriver::BiDi::Session::Status < ::Selenium::WebDriver::BiDi::Struct - # source://selenium-webdriver//lib/selenium/webdriver/bidi/struct.rb#27 + # source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#24 def initialize(**kwargs); end # Returns the value of attribute message # # @return [Object] the current value of message + # + # source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#24 def message; end # Sets the attribute message # # @param value [Object] the value to set the attribute message to. # @return [Object] the newly set value + # + # source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#24 def message=(_); end # Returns the value of attribute ready # # @return [Object] the current value of ready + # + # source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#24 def ready; end # Sets the attribute ready # # @param value [Object] the value to set the attribute ready to. # @return [Object] the newly set value + # + # source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#24 def ready=(_); end class << self + # source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#24 def [](*_arg0); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#24 def inspect; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#24 def keyword_init?; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#24 def members; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#24 def new(*_arg0); end end end @@ -1049,7 +1138,7 @@ class Selenium::WebDriver::ChildProcess # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/common/child_process.rb#127 + # source://selenium-webdriver//lib/selenium/webdriver/common/child_process.rb#129 def kill(pid); end # @api private @@ -1064,7 +1153,7 @@ class Selenium::WebDriver::ChildProcess # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/common/child_process.rb#131 + # source://selenium-webdriver//lib/selenium/webdriver/common/child_process.rb#135 def waitpid2(pid, flags = T.unsafe(nil)); end class << self @@ -1118,7 +1207,7 @@ class Selenium::WebDriver::Chrome::Driver < ::Selenium::WebDriver::Chromium::Dri # @return [Driver] a new instance of Driver # # source://selenium-webdriver//lib/selenium/webdriver/chrome/driver.rb#33 - def initialize(options: T.unsafe(nil), service: T.unsafe(nil), url: T.unsafe(nil), **opts); end + def initialize(options: T.unsafe(nil), service: T.unsafe(nil), url: T.unsafe(nil), **_arg3); end # @api private # @@ -1288,7 +1377,7 @@ class Selenium::WebDriver::Chromium::Options < ::Selenium::WebDriver::Options # @return [Options] a new instance of Options # # source://selenium-webdriver//lib/selenium/webdriver/chromium/options.rb#70 - def initialize(profile: T.unsafe(nil), **opts); end + def initialize(profile: T.unsafe(nil), **_arg1); end # Add a command-line argument to use when starting Chrome. # @@ -1512,7 +1601,7 @@ class Selenium::WebDriver::Credential # Returns the value of attribute resident_credential. # - # source://selenium-webdriver//lib/selenium/webdriver/common/virtual_authenticator/credential.rb#56 + # source://selenium-webdriver//lib/selenium/webdriver/common/virtual_authenticator/credential.rb#57 def resident_credential?; end # Returns the value of attribute rp_id. @@ -1541,10 +1630,10 @@ class Selenium::WebDriver::Credential def from_json(opts); end # source://selenium-webdriver//lib/selenium/webdriver/common/virtual_authenticator/credential.rb#33 - def non_resident(**opts); end + def non_resident(**_arg0); end # source://selenium-webdriver//lib/selenium/webdriver/common/virtual_authenticator/credential.rb#29 - def resident(**opts); end + def resident(**_arg0); end end end @@ -1772,7 +1861,7 @@ class Selenium::WebDriver::DevTools::NetworkInterceptor # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/devtools/network_interceptor.rb#127 + # source://selenium-webdriver//lib/selenium/webdriver/devtools/network_interceptor.rb#130 def continue_response(id); end # @api private @@ -2070,35 +2159,52 @@ class Selenium::WebDriver::DevTools::Response end end -# source://selenium-webdriver//lib/selenium/webdriver.rb#35 +# source://selenium-webdriver//lib/selenium/webdriver.rb#34 class Selenium::WebDriver::Dimension < ::Struct # Returns the value of attribute height # # @return [Object] the current value of height + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#34 def height; end # Sets the attribute height # # @param value [Object] the value to set the attribute height to. # @return [Object] the newly set value + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#34 def height=(_); end # Returns the value of attribute width # # @return [Object] the current value of width + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#34 def width; end # Sets the attribute width # # @param value [Object] the value to set the attribute width to. # @return [Object] the newly set value + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#34 def width=(_); end class << self + # source://selenium-webdriver//lib/selenium/webdriver.rb#34 def [](*_arg0); end + + # source://selenium-webdriver//lib/selenium/webdriver.rb#34 def inspect; end + + # source://selenium-webdriver//lib/selenium/webdriver.rb#34 def keyword_init?; end + + # source://selenium-webdriver//lib/selenium/webdriver.rb#34 def members; end + + # source://selenium-webdriver//lib/selenium/webdriver.rb#34 def new(*_arg0); end end end @@ -2122,7 +2228,7 @@ class Selenium::WebDriver::Driver # @return [Driver] a new instance of Driver # # source://selenium-webdriver//lib/selenium/webdriver/common/driver.rb#71 - def initialize(bridge: T.unsafe(nil), listener: T.unsafe(nil), **opts); end + def initialize(bridge: T.unsafe(nil), listener: T.unsafe(nil), **_arg2); end # Get the first element matching the given selector. If given a # String or Symbol, it will be used as the id of the element. @@ -2142,7 +2248,7 @@ class Selenium::WebDriver::Driver # @see ActionBuilder # # source://selenium-webdriver//lib/selenium/webdriver/common/driver.rb#134 - def action(**opts); end + def action(**_arg0); end # @return [VirtualAuthenticator] # @see VirtualAuthenticator @@ -2152,7 +2258,7 @@ class Selenium::WebDriver::Driver # driver.all(class: 'bar') #=> [# "someclass" # - # source://selenium-webdriver//lib/selenium/webdriver/common/element.rb#126 + # source://selenium-webdriver//lib/selenium/webdriver/common/element.rb#347 def [](name); end # Gets the computed WAI-ARIA label of element. @@ -3005,7 +3111,7 @@ class Selenium::WebDriver::Element # element.all(class: 'bar') # - # source://selenium-webdriver//lib/selenium/webdriver/common/search_context.rb#80 + # source://selenium-webdriver//lib/selenium/webdriver/common/element.rb#342 def all(*args); end # Gets the computed WAI-ARIA role of element @@ -3130,12 +3236,12 @@ class Selenium::WebDriver::Element # source://selenium-webdriver//lib/selenium/webdriver/common/element.rb#232 def enabled?; end - # source://selenium-webdriver//lib/selenium/webdriver/common/element.rb#43 + # source://selenium-webdriver//lib/selenium/webdriver/common/element.rb#46 def eql?(other); end # element.first(id: 'foo') # - # source://selenium-webdriver//lib/selenium/webdriver/common/search_context.rb#65 + # source://selenium-webdriver//lib/selenium/webdriver/common/element.rb#336 def first(*args); end # source://selenium-webdriver//lib/selenium/webdriver/common/element.rb#48 @@ -3200,7 +3306,7 @@ class Selenium::WebDriver::Element # @param args [String, Symbol, Array] keystrokes to send # @see Keys::KEYS # - # source://selenium-webdriver//lib/selenium/webdriver/common/element.rb#207 + # source://selenium-webdriver//lib/selenium/webdriver/common/element.rb#210 def send_key(*args); end # Send keystrokes to this element @@ -3240,7 +3346,7 @@ class Selenium::WebDriver::Element # # @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration # - # source://selenium-webdriver//lib/selenium/webdriver/common/element.rb#275 + # source://selenium-webdriver//lib/selenium/webdriver/common/element.rb#278 def style(prop); end # Submit this element @@ -3691,7 +3797,7 @@ class Selenium::WebDriver::Firefox::Driver < ::Selenium::WebDriver::Driver # @return [Driver] a new instance of Driver # # source://selenium-webdriver//lib/selenium/webdriver/firefox/driver.rb#39 - def initialize(options: T.unsafe(nil), service: T.unsafe(nil), url: T.unsafe(nil), **opts); end + def initialize(options: T.unsafe(nil), service: T.unsafe(nil), url: T.unsafe(nil), **_arg3); end # @api private # @@ -3932,7 +4038,7 @@ class Selenium::WebDriver::Firefox::Profile # source://selenium-webdriver//lib/selenium/webdriver/firefox/profile.rb#125 def add_extension(path, name = T.unsafe(nil)); end - # source://selenium-webdriver//lib/selenium/webdriver/common/profile_helper.rb#38 + # source://selenium-webdriver//lib/selenium/webdriver/firefox/profile.rb#152 def as_json; end # source://selenium-webdriver//lib/selenium/webdriver/firefox/profile.rb#81 @@ -4127,7 +4233,7 @@ class Selenium::WebDriver::IE::Driver < ::Selenium::WebDriver::Driver # @return [Driver] a new instance of Driver # # source://selenium-webdriver//lib/selenium/webdriver/ie/driver.rb#34 - def initialize(options: T.unsafe(nil), service: T.unsafe(nil), url: T.unsafe(nil), **opts); end + def initialize(options: T.unsafe(nil), service: T.unsafe(nil), url: T.unsafe(nil), **_arg3); end # @api private # @@ -4482,17 +4588,17 @@ class Selenium::WebDriver::Interactions::PointerInput < ::Selenium::WebDriver::I # @api private # # source://selenium-webdriver//lib/selenium/webdriver/common/interactions/pointer_input.rb#56 - def create_pointer_down(button, **opts); end + def create_pointer_down(button, **_arg1); end # @api private # # source://selenium-webdriver//lib/selenium/webdriver/common/interactions/pointer_input.rb#52 - def create_pointer_move(duration: T.unsafe(nil), x: T.unsafe(nil), y: T.unsafe(nil), origin: T.unsafe(nil), **opts); end + def create_pointer_move(duration: T.unsafe(nil), x: T.unsafe(nil), y: T.unsafe(nil), origin: T.unsafe(nil), **_arg4); end # @api private # # source://selenium-webdriver//lib/selenium/webdriver/common/interactions/pointer_input.rb#60 - def create_pointer_up(button, **opts); end + def create_pointer_up(button, **_arg1); end # @api private # @@ -4699,7 +4805,7 @@ module Selenium::WebDriver::KeyActions # @return [ActionBuilder] A self reference # # source://selenium-webdriver//lib/selenium/webdriver/common/interactions/key_actions.rb#47 - def key_down(*args, device: T.unsafe(nil)); end + def key_down(*_arg0, device: T.unsafe(nil)); end # Performs a key release. # Releasing a non-depressed key will yield undefined behaviour. @@ -4716,7 +4822,7 @@ module Selenium::WebDriver::KeyActions # @return [ActionBuilder] A self reference # # source://selenium-webdriver//lib/selenium/webdriver/common/interactions/key_actions.rb#74 - def key_up(*args, device: T.unsafe(nil)); end + def key_up(*_arg0, device: T.unsafe(nil)); end # Sends keys to the active element. This differs from calling # Element#send_keys(keys) on the active element in two ways: @@ -4763,17 +4869,17 @@ module Selenium::WebDriver::Keys # @api private # @raise [Error::UnsupportedOperationError] # - # source://selenium-webdriver//lib/selenium/webdriver/common/keys.rb#114 + # source://selenium-webdriver//lib/selenium/webdriver/common/keys.rb#123 def [](key); end # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/common/keys.rb#124 + # source://selenium-webdriver//lib/selenium/webdriver/common/keys.rb#133 def encode(keys); end # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/common/keys.rb#132 + # source://selenium-webdriver//lib/selenium/webdriver/common/keys.rb#141 def encode_key(key); end end end @@ -4852,7 +4958,7 @@ class Selenium::WebDriver::Logger # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#106 def allow(*ids); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#39 def close(*args, **_arg1, &block); end # Used to supply information of interest for debugging a problem @@ -4865,7 +4971,7 @@ class Selenium::WebDriver::Logger # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#118 def debug(message, id: T.unsafe(nil), &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#39 def debug?(*args, **_arg1, &block); end # Marks code as deprecated with/without replacement. @@ -4888,13 +4994,13 @@ class Selenium::WebDriver::Logger # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#140 def error(message, id: T.unsafe(nil), &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#39 def error?(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#39 def fatal(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#39 def fatal?(*args, **_arg1, &block); end # Will not log the provided ID. @@ -4913,7 +5019,7 @@ class Selenium::WebDriver::Logger # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#129 def info(message, id: T.unsafe(nil), &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#39 def info?(*args, **_arg1, &block); end # Returns IO object used by logger internally. @@ -4929,7 +5035,7 @@ class Selenium::WebDriver::Logger # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#88 def io; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#39 def level(*args, **_arg1, &block); end # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#60 @@ -4951,7 +5057,7 @@ class Selenium::WebDriver::Logger # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#151 def warn(message, id: T.unsafe(nil), &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://selenium-webdriver//lib/selenium/webdriver/common/logger.rb#39 def warn?(*args, **_arg1, &block); end private @@ -5099,7 +5205,7 @@ class Selenium::WebDriver::Network # Returns the value of attribute network. # - # source://selenium-webdriver//lib/selenium/webdriver/common/network.rb#27 + # source://selenium-webdriver//lib/selenium/webdriver/common/network.rb#28 def bidi; end # Returns the value of attribute callbacks. @@ -5110,13 +5216,13 @@ class Selenium::WebDriver::Network # source://selenium-webdriver//lib/selenium/webdriver/common/network.rb#43 def clear_handlers; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://selenium-webdriver//lib/selenium/webdriver/common/network.rb#30 def continue_with_auth(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://selenium-webdriver//lib/selenium/webdriver/common/network.rb#30 def continue_with_request(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://selenium-webdriver//lib/selenium/webdriver/common/network.rb#30 def continue_with_response(*args, **_arg1, &block); end # Returns the value of attribute network. @@ -5160,7 +5266,7 @@ class Selenium::WebDriver::Options # source://selenium-webdriver//lib/selenium/webdriver/common/options.rb#106 def as_json(*_arg0); end - # source://selenium-webdriver//lib/selenium/webdriver/common/options.rb#94 + # source://selenium-webdriver//lib/selenium/webdriver/common/options.rb#100 def eql?(other); end # Returns the value of attribute options. @@ -5209,7 +5315,7 @@ class Selenium::WebDriver::Options class << self # source://selenium-webdriver//lib/selenium/webdriver/common/options.rb#32 - def chrome(**opts); end + def chrome(**_arg0); end # Returns the value of attribute driver_path. # @@ -5217,22 +5323,22 @@ class Selenium::WebDriver::Options def driver_path; end # source://selenium-webdriver//lib/selenium/webdriver/common/options.rb#45 - def edge(**opts); end + def edge(**_arg0); end # source://selenium-webdriver//lib/selenium/webdriver/common/options.rb#36 - def firefox(**opts); end + def firefox(**_arg0); end # source://selenium-webdriver//lib/selenium/webdriver/common/options.rb#40 - def ie(**opts); end + def ie(**_arg0); end - # source://selenium-webdriver//lib/selenium/webdriver/common/options.rb#40 - def internet_explorer(**opts); end + # source://selenium-webdriver//lib/selenium/webdriver/common/options.rb#43 + def internet_explorer(**_arg0); end - # source://selenium-webdriver//lib/selenium/webdriver/common/options.rb#45 - def microsoftedge(**opts); end + # source://selenium-webdriver//lib/selenium/webdriver/common/options.rb#48 + def microsoftedge(**_arg0); end # source://selenium-webdriver//lib/selenium/webdriver/common/options.rb#50 - def safari(**opts); end + def safari(**_arg0); end # source://selenium-webdriver//lib/selenium/webdriver/common/options.rb#54 def set_capabilities; end @@ -5515,35 +5621,52 @@ module Selenium::WebDriver::Platform end end -# source://selenium-webdriver//lib/selenium/webdriver.rb#34 +# source://selenium-webdriver//lib/selenium/webdriver.rb#33 class Selenium::WebDriver::Point < ::Struct # Returns the value of attribute x # # @return [Object] the current value of x + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#33 def x; end # Sets the attribute x # # @param value [Object] the value to set the attribute x to. # @return [Object] the newly set value + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#33 def x=(_); end # Returns the value of attribute y # # @return [Object] the current value of y + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#33 def y; end # Sets the attribute y # # @param value [Object] the value to set the attribute y to. # @return [Object] the newly set value + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#33 def y=(_); end class << self + # source://selenium-webdriver//lib/selenium/webdriver.rb#33 def [](*_arg0); end + + # source://selenium-webdriver//lib/selenium/webdriver.rb#33 def inspect; end + + # source://selenium-webdriver//lib/selenium/webdriver.rb#33 def keyword_init?; end + + # source://selenium-webdriver//lib/selenium/webdriver.rb#33 def members; end + + # source://selenium-webdriver//lib/selenium/webdriver.rb#33 def new(*_arg0); end end end @@ -5692,7 +5815,7 @@ module Selenium::WebDriver::PointerActions # @return [ActionBuilder] A self reference. # # source://selenium-webdriver//lib/selenium/webdriver/common/interactions/pointer_actions.rb#125 - def move_by(right_by, down_by, device: T.unsafe(nil), duration: T.unsafe(nil), **opts); end + def move_by(right_by, down_by, device: T.unsafe(nil), duration: T.unsafe(nil), **_arg4); end # Moves the pointer to the in-view center point of the given element. # Then the pointer is moved to optional offset coordinates. @@ -5735,7 +5858,7 @@ module Selenium::WebDriver::PointerActions # @return [ActionBuilder] A self reference. # # source://selenium-webdriver//lib/selenium/webdriver/common/interactions/pointer_actions.rb#153 - def move_to_location(x, y, device: T.unsafe(nil), duration: T.unsafe(nil), **opts); end + def move_to_location(x, y, device: T.unsafe(nil), duration: T.unsafe(nil), **_arg4); end # Presses (without releasing) at the current location of the PointerInput device. This is equivalent to: # @@ -5750,7 +5873,7 @@ module Selenium::WebDriver::PointerActions # @return [ActionBuilder] A self reference. # # source://selenium-webdriver//lib/selenium/webdriver/common/interactions/pointer_actions.rb#49 - def pointer_down(button = T.unsafe(nil), device: T.unsafe(nil), **opts); end + def pointer_down(button = T.unsafe(nil), device: T.unsafe(nil), **_arg2); end # Releases the pressed mouse button at the current mouse location of the PointerInput device. # @@ -5763,7 +5886,7 @@ module Selenium::WebDriver::PointerActions # @return [ActionBuilder] A self reference. # # source://selenium-webdriver//lib/selenium/webdriver/common/interactions/pointer_actions.rb#66 - def pointer_up(button = T.unsafe(nil), device: T.unsafe(nil), **opts); end + def pointer_up(button = T.unsafe(nil), device: T.unsafe(nil), **_arg2); end # Releases the depressed left mouse button at the current mouse location. # @@ -5781,7 +5904,7 @@ module Selenium::WebDriver::PointerActions private # source://selenium-webdriver//lib/selenium/webdriver/common/interactions/pointer_actions.rb#339 - def button_action(button, action, device: T.unsafe(nil), **opts); end + def button_action(button, action, device: T.unsafe(nil), **_arg3); end # source://selenium-webdriver//lib/selenium/webdriver/common/interactions/pointer_actions.rb#346 def pointer_input(name = T.unsafe(nil)); end @@ -5980,16 +6103,16 @@ class Selenium::WebDriver::Proxy # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#74 def ==(other); end - # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#142 + # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#143 def as_json(*_arg0); end # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#43 def auto_detect; end - # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#104 + # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#105 def auto_detect=(bool); end - # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#74 + # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#77 def eql?(other); end # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#43 @@ -6001,58 +6124,58 @@ class Selenium::WebDriver::Proxy # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#43 def http; end - # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#84 + # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#85 def http=(value); end # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#43 def no_proxy; end - # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#89 + # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#90 def no_proxy=(value); end # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#43 def pac; end - # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#99 + # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#100 def pac=(url); end # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#43 def socks; end - # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#109 + # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#110 def socks=(value); end # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#43 def socks_password; end - # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#119 + # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#120 def socks_password=(value); end # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#43 def socks_username; end - # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#114 + # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#115 def socks_username=(value); end # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#43 def socks_version; end - # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#124 + # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#125 def socks_version=(value); end # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#43 def ssl; end - # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#94 + # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#95 def ssl=(value); end - # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#160 + # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#161 def to_json(*_arg0); end # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#43 def type; end - # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#129 + # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#130 def type=(type); end class << self @@ -6067,57 +6190,82 @@ Selenium::WebDriver::Proxy::ALLOWED = T.let(T.unsafe(nil), Hash) # source://selenium-webdriver//lib/selenium/webdriver/common/proxy.rb#23 Selenium::WebDriver::Proxy::TYPES = T.let(T.unsafe(nil), Hash) -# source://selenium-webdriver//lib/selenium/webdriver.rb#36 +# source://selenium-webdriver//lib/selenium/webdriver.rb#35 class Selenium::WebDriver::Rectangle < ::Struct # Returns the value of attribute height # # @return [Object] the current value of height + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#35 def height; end # Sets the attribute height # # @param value [Object] the value to set the attribute height to. # @return [Object] the newly set value + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#35 def height=(_); end # Returns the value of attribute width # # @return [Object] the current value of width + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#35 def width; end # Sets the attribute width # # @param value [Object] the value to set the attribute width to. # @return [Object] the newly set value + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#35 def width=(_); end # Returns the value of attribute x # # @return [Object] the current value of x + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#35 def x; end # Sets the attribute x # # @param value [Object] the value to set the attribute x to. # @return [Object] the newly set value + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#35 def x=(_); end # Returns the value of attribute y # # @return [Object] the current value of y + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#35 def y; end # Sets the attribute y # # @param value [Object] the value to set the attribute y to. # @return [Object] the newly set value + # + # source://selenium-webdriver//lib/selenium/webdriver.rb#35 def y=(_); end class << self + # source://selenium-webdriver//lib/selenium/webdriver.rb#35 def [](*_arg0); end + + # source://selenium-webdriver//lib/selenium/webdriver.rb#35 def inspect; end + + # source://selenium-webdriver//lib/selenium/webdriver.rb#35 def keyword_init?; end + + # source://selenium-webdriver//lib/selenium/webdriver.rb#35 def members; end + + # source://selenium-webdriver//lib/selenium/webdriver.rb#35 def new(*_arg0); end end end @@ -6195,7 +6343,7 @@ class Selenium::WebDriver::Remote::Bridge # # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/remote/bridge.rb#347 + # source://selenium-webdriver//lib/selenium/webdriver/remote/bridge.rb#350 def actions(async: T.unsafe(nil), devices: T.unsafe(nil), duration: T.unsafe(nil)); end # finding elements @@ -6636,7 +6784,7 @@ class Selenium::WebDriver::Remote::Bridge # # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/remote/bridge.rb#475 + # source://selenium-webdriver//lib/selenium/webdriver/remote/bridge.rb#479 def switch_to_active_element; end # @api private @@ -6891,7 +7039,7 @@ class Selenium::WebDriver::Remote::Capabilities # source://selenium-webdriver//lib/selenium/webdriver/remote/capabilities.rb#51 def browser_version=(value); end - # source://selenium-webdriver//lib/selenium/webdriver/remote/capabilities.rb#216 + # source://selenium-webdriver//lib/selenium/webdriver/remote/capabilities.rb#222 def eql?(other); end # source://selenium-webdriver//lib/selenium/webdriver/remote/capabilities.rb#178 @@ -7030,7 +7178,7 @@ class Selenium::WebDriver::Remote::Driver < ::Selenium::WebDriver::Driver # @return [Driver] a new instance of Driver # # source://selenium-webdriver//lib/selenium/webdriver/remote/driver.rb#33 - def initialize(capabilities: T.unsafe(nil), options: T.unsafe(nil), service: T.unsafe(nil), url: T.unsafe(nil), **opts); end + def initialize(capabilities: T.unsafe(nil), options: T.unsafe(nil), service: T.unsafe(nil), url: T.unsafe(nil), **_arg4); end private @@ -7360,7 +7508,7 @@ class Selenium::WebDriver::Safari::Driver < ::Selenium::WebDriver::Driver # @return [Driver] a new instance of Driver # # source://selenium-webdriver//lib/selenium/webdriver/safari/driver.rb#34 - def initialize(options: T.unsafe(nil), service: T.unsafe(nil), url: T.unsafe(nil), **opts); end + def initialize(options: T.unsafe(nil), service: T.unsafe(nil), url: T.unsafe(nil), **_arg3); end # @api private # @@ -7477,7 +7625,7 @@ class Selenium::WebDriver::Script # @param id [int] of the handler previously added # - # source://selenium-webdriver//lib/selenium/webdriver/common/script.rb#38 + # source://selenium-webdriver//lib/selenium/webdriver/common/script.rb#42 def remove_javascript_error_handler(id); end end @@ -7638,7 +7786,7 @@ class Selenium::WebDriver::Service # Returns the value of attribute args. # - # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#60 + # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#61 def extra_args; end # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#99 @@ -7688,7 +7836,7 @@ class Selenium::WebDriver::Service class << self # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#31 - def chrome(**opts); end + def chrome(**_arg0); end # Returns the value of attribute driver_path. # @@ -7699,25 +7847,25 @@ class Selenium::WebDriver::Service def driver_path=(path); end # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#44 - def edge(**opts); end + def edge(**_arg0); end # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#35 - def firefox(**opts); end + def firefox(**_arg0); end # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#39 - def ie(**opts); end + def ie(**_arg0); end - # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#39 - def internet_explorer(**opts); end + # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#42 + def internet_explorer(**_arg0); end - # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#44 - def microsoftedge(**opts); end + # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#47 + def microsoftedge(**_arg0); end - # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#44 - def msedge(**opts); end + # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#48 + def msedge(**_arg0); end # source://selenium-webdriver//lib/selenium/webdriver/common/service.rb#50 - def safari(**opts); end + def safari(**_arg0); end end end @@ -7850,7 +7998,7 @@ class Selenium::WebDriver::ShadowRoot # source://selenium-webdriver//lib/selenium/webdriver/common/shadow_root.rb#77 def as_json(*_arg0); end - # source://selenium-webdriver//lib/selenium/webdriver/common/shadow_root.rb#42 + # source://selenium-webdriver//lib/selenium/webdriver/common/shadow_root.rb#45 def eql?(other); end # source://selenium-webdriver//lib/selenium/webdriver/common/shadow_root.rb#47 @@ -8082,7 +8230,7 @@ class Selenium::WebDriver::Support::BlockEventListener def initialize(callback); end # source://selenium-webdriver//lib/selenium/webdriver/support/block_event_listener.rb#28 - def method_missing(meth, *args); end + def method_missing(meth, *_arg1); end end # source://selenium-webdriver//lib/selenium/webdriver/support/color.rb#23 @@ -8105,7 +8253,7 @@ class Selenium::WebDriver::Support::Color # source://selenium-webdriver//lib/selenium/webdriver/support/color.rb#48 def blue; end - # source://selenium-webdriver//lib/selenium/webdriver/support/color.rb#119 + # source://selenium-webdriver//lib/selenium/webdriver/support/color.rb#125 def eql?(other); end # Returns the value of attribute green. @@ -8249,7 +8397,7 @@ class Selenium::WebDriver::Support::EventFiringBridge # @api private # # source://selenium-webdriver//lib/selenium/webdriver/support/event_firing_bridge.rb#115 - def dispatch(name, *args); end + def dispatch(name, *_arg1); end # @api private # @@ -8541,14 +8689,14 @@ class Selenium::WebDriver::Timeouts # Gets the amount of time to wait for an asynchronous script to finish # execution before throwing an error. # - # source://selenium-webdriver//lib/selenium/webdriver/common/timeouts.rb#48 + # source://selenium-webdriver//lib/selenium/webdriver/common/timeouts.rb#51 def script_timeout; end # Sets the amount of time to wait for an asynchronous script to finish # execution before throwing an error. If the timeout is negative, then the # script will be allowed to run indefinitely. # - # source://selenium-webdriver//lib/selenium/webdriver/common/timeouts.rb#59 + # source://selenium-webdriver//lib/selenium/webdriver/common/timeouts.rb#62 def script_timeout=(seconds); end end @@ -8633,7 +8781,7 @@ class Selenium::WebDriver::VirtualAuthenticatorOptions # Returns the value of attribute resident_key. # - # source://selenium-webdriver//lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb#31 + # source://selenium-webdriver//lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb#32 def resident_key?; end # Returns the value of attribute transport. @@ -8662,7 +8810,7 @@ class Selenium::WebDriver::VirtualAuthenticatorOptions # Returns the value of attribute user_consenting. # - # source://selenium-webdriver//lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb#31 + # source://selenium-webdriver//lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb#34 def user_consenting?; end # Returns the value of attribute user_verification. @@ -8679,7 +8827,7 @@ class Selenium::WebDriver::VirtualAuthenticatorOptions # Returns the value of attribute user_verification. # - # source://selenium-webdriver//lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb#31 + # source://selenium-webdriver//lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb#33 def user_verification?; end # Returns the value of attribute user_verified. @@ -8696,7 +8844,7 @@ class Selenium::WebDriver::VirtualAuthenticatorOptions # Returns the value of attribute user_verified. # - # source://selenium-webdriver//lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb#31 + # source://selenium-webdriver//lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb#35 def user_verified?; end end @@ -9008,39 +9156,44 @@ end # @api private # -# source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#31 +# source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#32 module Selenium::WebDriver::Zipper class << self # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#35 + # source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#37 def unzip(path); end # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#52 + # source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#58 def zip(path); end # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#63 + # source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#69 def zip_file(path); end private # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#82 + # source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#92 def add_zip_entry(zip, file, entry_name); end # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#74 + # source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#80 def with_tmp_zip(&blk); end end end # @api private # -# source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#32 +# source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#33 Selenium::WebDriver::Zipper::EXTENSIONS = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://selenium-webdriver//lib/selenium/webdriver/common/zipper.rb#34 +Selenium::WebDriver::Zipper::RUBYZIP_V3 = T.let(T.unsafe(nil), TrueClass) diff --git a/sorbet/rbi/gems/sentry-rails@5.23.0.rbi b/sorbet/rbi/gems/sentry-rails@5.23.0.rbi deleted file mode 100644 index 3d97c829..00000000 --- a/sorbet/rbi/gems/sentry-rails@5.23.0.rbi +++ /dev/null @@ -1,1061 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `sentry-rails` gem. -# Please instead update this file by running `bin/tapioca gem sentry-rails`. - - -# source://sentry-rails//lib/sentry/rails/version.rb#3 -module Sentry - class << self - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#227 - def add_attachment(**opts); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#328 - def add_breadcrumb(breadcrumb, **options); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#547 - def add_global_event_processor(&block); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#115 - def apply_patches(config); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#83 - def background_worker; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#83 - def background_worker=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#91 - def backpressure_monitor; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#487 - def capture_check_in(slug, status, **options); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#471 - def capture_event(event); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#435 - def capture_exception(exception, **options, &block); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#463 - def capture_message(message, **options, &block); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#365 - def clone_hub_to_current_thread; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#261 - def close; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#167 - def configuration; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#381 - def configure_scope(&block); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#591 - def continue_trace(env, **options); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#310 - def csp_report_uri; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#622 - def dependency_installed?(name); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#529 - def exception_captured?(exc); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#65 - def exception_locals_tp; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#564 - def get_baggage; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#349 - def get_current_client; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#338 - def get_current_hub; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#357 - def get_current_scope; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#318 - def get_main_hub; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#573 - def get_trace_propagation_headers; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#582 - def get_trace_propagation_meta; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#555 - def get_traceparent; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#238 - def init(&block); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#298 - def initialized?; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#131 - def integrations; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#521 - def last_event_id; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#607 - def logger; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#95 - def metrics_aggregator; end - - # source://railties/8.0.2/lib/rails/engine.rb#413 - def railtie_helpers_paths; end - - # source://railties/8.0.2/lib/rails/engine.rb#396 - def railtie_namespace; end - - # source://railties/8.0.2/lib/rails/engine.rb#417 - def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#139 - def register_integration(name, version); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#100 - def register_patch(key, patch = T.unsafe(nil), target = T.unsafe(nil), &block); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#122 - def registered_patches; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#612 - def sdk_meta; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#174 - def send_event(*args); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#87 - def session_flusher; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#220 - def set_context(*args); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#206 - def set_extras(*args); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#199 - def set_tags(*args); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#213 - def set_user(*args); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#495 - def start_transaction(**options); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#599 - def sys_command(command); end - - # source://railties/8.0.2/lib/rails/engine.rb#402 - def table_name_prefix; end - - # source://railties/8.0.2/lib/rails/engine.rb#409 - def use_relative_model_naming?; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#617 - def utc_now; end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#513 - def with_child_span(**attributes, &block); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#452 - def with_exception_captured(**options, &block); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#406 - def with_scope(&block); end - - # source://sentry-ruby/5.23.0/lib/sentry-ruby.rb#426 - def with_session_tracking(&block); end - end -end - -# source://sentry-rails//lib/sentry/rails/configuration.rb#10 -class Sentry::Configuration - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#405 - def initialize; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#29 - def app_dirs_pattern; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#29 - def app_dirs_pattern=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#36 - def async; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#490 - def async=(value); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#278 - def auto_session_tracking; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#278 - def auto_session_tracking=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#53 - def background_worker_max_queue; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#53 - def background_worker_max_queue=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#46 - def background_worker_threads; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#46 - def background_worker_threads=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#64 - def backtrace_cleanup_callback; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#64 - def backtrace_cleanup_callback=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#73 - def before_breadcrumb; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#531 - def before_breadcrumb=(value); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#87 - def before_send; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#519 - def before_send=(value); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#100 - def before_send_transaction; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#525 - def before_send_transaction=(value); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#112 - def breadcrumbs_logger; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#506 - def breadcrumbs_logger=(logger); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#155 - def capture_exception_frame_locals; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#169 - def capture_exception_frame_locals=(value); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#120 - def context_lines; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#120 - def context_lines=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#245 - def cron; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#630 - def csp_report_uri; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#129 - def debug; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#129 - def debug=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#652 - def detect_release; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#133 - def dsn; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#478 - def dsn=(value); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#284 - def enable_backpressure_handling; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#284 - def enable_backpressure_handling=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#269 - def enable_tracing; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#545 - def enable_tracing=(enable_tracing); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#137 - def enabled_environments; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#137 - def enabled_environments=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#608 - def enabled_in_current_env?; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#308 - def enabled_patches; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#308 - def enabled_patches=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#124 - def environment; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#537 - def environment=(environment); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#665 - def error_messages; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#312 - def errors; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#595 - def exception_class_allowed?(exc); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#141 - def exclude_loggers; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#141 - def exclude_loggers=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#146 - def excluded_exceptions; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#146 - def excluded_exceptions=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#312 - def gem_specs; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#155 - def include_local_variables; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#155 - def include_local_variables=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#150 - def inspect_exception_causes_for_exclusion; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#150 - def inspect_exception_causes_for_exclusion=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#150 - def inspect_exception_causes_for_exclusion?; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#293 - def instrumenter; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#541 - def instrumenter=(instrumenter); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#181 - def linecache; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#181 - def linecache=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#186 - def logger; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#186 - def logger=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#116 - def max_breadcrumbs; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#116 - def max_breadcrumbs=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#249 - def metrics; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#297 - def profiler_class; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#564 - def profiler_class=(profiler_class); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#303 - def profiles_sample_rate; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#560 - def profiles_sample_rate=(profiles_sample_rate); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#623 - def profiling_enabled?; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#191 - def project_root; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#191 - def project_root=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#200 - def propagate_traces; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#200 - def propagate_traces=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#204 - def rack_env_whitelist; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#204 - def rack_env_whitelist=(_arg0); end - - # Returns the value of attribute rails. - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#11 - def rails; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#209 - def release; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#484 - def release=(value); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#585 - def sample_allowed?; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#214 - def sample_rate; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#214 - def sample_rate=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#274 - def send_client_reports; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#274 - def send_client_reports=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#227 - def send_default_pii; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#227 - def send_default_pii=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#218 - def send_modules; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#218 - def send_modules=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#575 - def sending_allowed?; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#579 - def sending_to_dsn_allowed?; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#478 - def server=(value); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#237 - def server_name; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#237 - def server_name=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#591 - def session_tracking?; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#231 - def skip_rake_integration; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#231 - def skip_rake_integration=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#163 - def spotlight; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#163 - def spotlight=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#640 - def stacktrace_builder; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#196 - def strip_backtrace_load_path; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#196 - def strip_backtrace_load_path=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#289 - def trace_propagation_targets; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#289 - def trace_propagation_targets=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#253 - def traces_sample_rate; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#556 - def traces_sample_rate=(traces_sample_rate); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#263 - def traces_sampler; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#263 - def traces_sampler=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#617 - def tracing_enabled?; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#241 - def transport; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#234 - def trusted_proxies; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#234 - def trusted_proxies=(_arg0); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#612 - def valid_sample_rate?(sample_rate); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#460 - def validate; end - - private - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#707 - def capture_in_environment?; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#723 - def environment_from_env; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#678 - def excluded_exception?(incoming_exception); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#684 - def excluded_exception_classes; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#688 - def get_exception_class(x); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#672 - def init_dsn(dsn_string); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#692 - def matches_exception?(excluded_exception_class, incoming_exception); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#747 - def processor_count; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#741 - def run_post_initialization_callbacks; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#737 - def running_on_heroku?; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#700 - def safe_const_get(x); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#727 - def server_name_from_env; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#714 - def valid?; end - - class << self - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#361 - def add_post_initialization_callback(&block); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#356 - def post_initialization_callbacks; end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#369 - def validate(attribute, optional: T.unsafe(nil), type: T.unsafe(nil)); end - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#365 - def validations; end - - private - - # source://sentry-ruby/5.23.0/lib/sentry/configuration.rb#379 - def build_validation_proc(optional, type); end - end -end - -# source://sentry-rails//lib/sentry/rails/engine.rb#4 -class Sentry::Engine < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end - -# source://sentry-rails//lib/sentry/rails/version.rb#4 -module Sentry::Rails - extend ::Sentry::Integrable -end - -# source://sentry-rails//lib/sentry/rails/configuration.rb#53 -Sentry::Rails::ACTIVE_SUPPORT_LOGGER_SUBSCRIPTION_ITEMS_DEFAULT = T.let(T.unsafe(nil), Hash) - -# source://sentry-rails//lib/sentry/rails/backtrace_cleaner.rb#8 -class Sentry::Rails::BacktraceCleaner < ::ActiveSupport::BacktraceCleaner - # @return [BacktraceCleaner] a new instance of BacktraceCleaner - # - # source://sentry-rails//lib/sentry/rails/backtrace_cleaner.rb#12 - def initialize; end -end - -# source://sentry-rails//lib/sentry/rails/backtrace_cleaner.rb#9 -Sentry::Rails::BacktraceCleaner::APP_DIRS_PATTERN = T.let(T.unsafe(nil), Regexp) - -# source://sentry-rails//lib/sentry/rails/backtrace_cleaner.rb#10 -Sentry::Rails::BacktraceCleaner::RENDER_TEMPLATE_PATTERN = T.let(T.unsafe(nil), Regexp) - -# source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#5 -class Sentry::Rails::CaptureExceptions < ::Sentry::Rack::CaptureExceptions - # @return [CaptureExceptions] a new instance of CaptureExceptions - # - # source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#9 - def initialize(_); end - - private - - # source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#28 - def capture_exception(exception, env); end - - # source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#19 - def collect_exception(env); end - - # @return [Boolean] - # - # source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#53 - def show_exceptions?(exception, env); end - - # source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#37 - def start_transaction(env, scope); end - - # source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#24 - def transaction_op; end -end - -# source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#6 -Sentry::Rails::CaptureExceptions::RAILS_7_1 = T.let(T.unsafe(nil), TrueClass) - -# source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#7 -Sentry::Rails::CaptureExceptions::SPAN_ORIGIN = T.let(T.unsafe(nil), String) - -# source://sentry-rails//lib/sentry/rails/configuration.rb#113 -class Sentry::Rails::Configuration - # @return [Configuration] a new instance of Configuration - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#159 - def initialize; end - - # Hash of subscription items that will be shown in breadcrumbs active support logger. - # - # @return [Hash>] - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#157 - def active_support_logger_subscription_items; end - - # Hash of subscription items that will be shown in breadcrumbs active support logger. - # - # @return [Hash>] - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#157 - def active_support_logger_subscription_items=(_arg0); end - - # sentry-rails by default skips asset request' transactions by checking if the path matches - # - # ```rb - # %r(\A/{0,2}#{::Rails.application.config.assets.prefix}) - # ``` - # - # If you want to use a different pattern, you can configure the `assets_regexp` option like: - # - # ```rb - # Sentry.init do |config| - # config.rails.assets_regexp = /my_regexp/ - # end - # ``` - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#153 - def assets_regexp; end - - # sentry-rails by default skips asset request' transactions by checking if the path matches - # - # ```rb - # %r(\A/{0,2}#{::Rails.application.config.assets.prefix}) - # ``` - # - # If you want to use a different pattern, you can configure the `assets_regexp` option like: - # - # ```rb - # Sentry.init do |config| - # config.rails.assets_regexp = /my_regexp/ - # end - # ``` - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#153 - def assets_regexp=(_arg0); end - - # The threshold in milliseconds for the ActiveRecordSubscriber to capture the source location of the query - # in the span data. Default is 100ms. - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#138 - def db_query_source_threshold_ms; end - - # The threshold in milliseconds for the ActiveRecordSubscriber to capture the source location of the query - # in the span data. Default is 100ms. - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#138 - def db_query_source_threshold_ms=(_arg0); end - - # When the ActiveRecordSubscriber is enabled, capture the source location of the query in the span data. - # This is enabled by default, but can be disabled by setting this to false. - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#134 - def enable_db_query_source; end - - # When the ActiveRecordSubscriber is enabled, capture the source location of the query in the span data. - # This is enabled by default, but can be disabled by setting this to false. - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#134 - def enable_db_query_source=(_arg0); end - - # Rails 7.0 introduced a new error reporter feature, which the SDK once opted-in by default. - # But after receiving multiple issue reports, the integration seemed to cause serious troubles to some users. - # So the integration is now controlled by this configuration, which is disabled (false) by default. - # More information can be found from: https://github.com/rails/rails/pull/43625#issuecomment-1072514175 - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#118 - def register_error_subscriber; end - - # Rails 7.0 introduced a new error reporter feature, which the SDK once opted-in by default. - # But after receiving multiple issue reports, the integration seemed to cause serious troubles to some users. - # So the integration is now controlled by this configuration, which is disabled (false) by default. - # More information can be found from: https://github.com/rails/rails/pull/43625#issuecomment-1072514175 - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#118 - def register_error_subscriber=(_arg0); end - - # Rails catches exceptions in the ActionDispatch::ShowExceptions or - # ActionDispatch::DebugExceptions middlewares, depending on the environment. - # When `report_rescued_exceptions` is true (it is by default), Sentry will - # report exceptions even when they are rescued by these middlewares. - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#124 - def report_rescued_exceptions; end - - # Rails catches exceptions in the ActionDispatch::ShowExceptions or - # ActionDispatch::DebugExceptions middlewares, depending on the environment. - # When `report_rescued_exceptions` is true (it is by default), Sentry will - # report exceptions even when they are rescued by these middlewares. - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#124 - def report_rescued_exceptions=(_arg0); end - - # Some adapters, like sidekiq, already have their own sentry integration. - # In those cases, we should skip ActiveJob's reporting to avoid duplicated reports. - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#128 - def skippable_job_adapters; end - - # Some adapters, like sidekiq, already have their own sentry integration. - # In those cases, we should skip ActiveJob's reporting to avoid duplicated reports. - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#128 - def skippable_job_adapters=(_arg0); end - - # Returns the value of attribute tracing_subscribers. - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#130 - def tracing_subscribers; end - - # Sets the attribute tracing_subscribers - # - # @param value the value to set the attribute tracing_subscribers to. - # - # source://sentry-rails//lib/sentry/rails/configuration.rb#130 - def tracing_subscribers=(_arg0); end -end - -# source://sentry-rails//lib/sentry/rails/configuration.rb#36 -Sentry::Rails::IGNORE_DEFAULT = T.let(T.unsafe(nil), Array) - -# source://sentry-rails//lib/sentry/rails/instrument_payload_cleanup_helper.rb#5 -module Sentry::Rails::InstrumentPayloadCleanupHelper - # source://sentry-rails//lib/sentry/rails/instrument_payload_cleanup_helper.rb#8 - def cleanup_data(data); end -end - -# source://sentry-rails//lib/sentry/rails/instrument_payload_cleanup_helper.rb#6 -Sentry::Rails::InstrumentPayloadCleanupHelper::IGNORED_DATA_TYPES = T.let(T.unsafe(nil), Array) - -# source://sentry-rails//lib/sentry/rails/rescued_exception_interceptor.rb#5 -class Sentry::Rails::RescuedExceptionInterceptor - # @return [RescuedExceptionInterceptor] a new instance of RescuedExceptionInterceptor - # - # source://sentry-rails//lib/sentry/rails/rescued_exception_interceptor.rb#6 - def initialize(app); end - - # source://sentry-rails//lib/sentry/rails/rescued_exception_interceptor.rb#10 - def call(env); end - - # @return [Boolean] - # - # source://sentry-rails//lib/sentry/rails/rescued_exception_interceptor.rb#21 - def report_rescued_exceptions?; end -end - -# source://sentry-rails//lib/sentry/rails/tracing.rb#5 -module Sentry::Rails::Tracing - class << self - # source://sentry-rails//lib/sentry/rails/tracing.rb#71 - def get_current_transaction; end - - # this is necessary because instrumentation events don't record absolute start/finish time - # so we need to retrieve the correct time this way - # - # source://sentry-rails//lib/sentry/rails/tracing.rb#44 - def patch_active_support_notifications; end - - # source://sentry-rails//lib/sentry/rails/tracing.rb#8 - def register_subscribers(subscribers); end - - # source://sentry-rails//lib/sentry/rails/tracing.rb#61 - def remove_active_support_notifications_patch; end - - # source://sentry-rails//lib/sentry/rails/tracing.rb#20 - def subscribe_tracing_events; end - - # source://sentry-rails//lib/sentry/rails/tracing.rb#16 - def subscribed_tracing_events; end - - # source://sentry-rails//lib/sentry/rails/tracing.rb#12 - def subscribers; end - - # source://sentry-rails//lib/sentry/rails/tracing.rb#33 - def unsubscribe_tracing_events; end - end -end - -# source://sentry-rails//lib/sentry/rails/tracing/abstract_subscriber.rb#6 -class Sentry::Rails::Tracing::AbstractSubscriber - class << self - # source://sentry-rails//lib/sentry/rails/tracing/abstract_subscriber.rb#41 - def record_on_current_span(duration:, **options); end - - # @raise [NotImplementedError] - # - # source://sentry-rails//lib/sentry/rails/tracing/abstract_subscriber.rb#8 - def subscribe!; end - - # source://sentry-rails//lib/sentry/rails/tracing/abstract_subscriber.rb#30 - def subscribe_to_event(event_names); end - - # source://sentry-rails//lib/sentry/rails/tracing/abstract_subscriber.rb#12 - def unsubscribe!; end - end -end - -# source://sentry-rails//lib/sentry/rails/tracing/action_controller_subscriber.rb#9 -class Sentry::Rails::Tracing::ActionControllerSubscriber < ::Sentry::Rails::Tracing::AbstractSubscriber - extend ::Sentry::Rails::InstrumentPayloadCleanupHelper - - class << self - # source://sentry-rails//lib/sentry/rails/tracing/action_controller_subscriber.rb#16 - def subscribe!; end - end -end - -# source://sentry-rails//lib/sentry/rails/tracing/action_controller_subscriber.rb#12 -Sentry::Rails::Tracing::ActionControllerSubscriber::EVENT_NAMES = T.let(T.unsafe(nil), Array) - -# source://sentry-rails//lib/sentry/rails/tracing/action_controller_subscriber.rb#13 -Sentry::Rails::Tracing::ActionControllerSubscriber::OP_NAME = T.let(T.unsafe(nil), String) - -# source://sentry-rails//lib/sentry/rails/tracing/action_controller_subscriber.rb#14 -Sentry::Rails::Tracing::ActionControllerSubscriber::SPAN_ORIGIN = T.let(T.unsafe(nil), String) - -# source://sentry-rails//lib/sentry/rails/tracing/action_view_subscriber.rb#8 -class Sentry::Rails::Tracing::ActionViewSubscriber < ::Sentry::Rails::Tracing::AbstractSubscriber - class << self - # source://sentry-rails//lib/sentry/rails/tracing/action_view_subscriber.rb#13 - def subscribe!; end - end -end - -# source://sentry-rails//lib/sentry/rails/tracing/action_view_subscriber.rb#9 -Sentry::Rails::Tracing::ActionViewSubscriber::EVENT_NAMES = T.let(T.unsafe(nil), Array) - -# source://sentry-rails//lib/sentry/rails/tracing/action_view_subscriber.rb#11 -Sentry::Rails::Tracing::ActionViewSubscriber::SPAN_ORIGIN = T.let(T.unsafe(nil), String) - -# source://sentry-rails//lib/sentry/rails/tracing/action_view_subscriber.rb#10 -Sentry::Rails::Tracing::ActionViewSubscriber::SPAN_PREFIX = T.let(T.unsafe(nil), String) - -# source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#8 -class Sentry::Rails::Tracing::ActiveRecordSubscriber < ::Sentry::Rails::Tracing::AbstractSubscriber - # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 - def backtrace_cleaner; end - - # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 - def backtrace_cleaner=(_arg0); end - - # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 - def backtrace_cleaner?; end - - class << self - # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 - def backtrace_cleaner; end - - # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 - def backtrace_cleaner=(value); end - - # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 - def backtrace_cleaner?; end - - # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#88 - def query_source_location; end - - # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#23 - def subscribe!; end - - private - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_backtrace_cleaner; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_backtrace_cleaner=(new_value); end - end -end - -# source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#9 -Sentry::Rails::Tracing::ActiveRecordSubscriber::EVENT_NAMES = T.let(T.unsafe(nil), Array) - -# source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#12 -Sentry::Rails::Tracing::ActiveRecordSubscriber::EXCLUDED_EVENTS = T.let(T.unsafe(nil), Array) - -# source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#11 -Sentry::Rails::Tracing::ActiveRecordSubscriber::SPAN_ORIGIN = T.let(T.unsafe(nil), String) - -# source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#10 -Sentry::Rails::Tracing::ActiveRecordSubscriber::SPAN_PREFIX = T.let(T.unsafe(nil), String) - -# source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#14 -Sentry::Rails::Tracing::ActiveRecordSubscriber::SUPPORT_SOURCE_LOCATION = T.let(T.unsafe(nil), TrueClass) - -# source://sentry-rails//lib/sentry/rails/tracing/active_storage_subscriber.rb#8 -class Sentry::Rails::Tracing::ActiveStorageSubscriber < ::Sentry::Rails::Tracing::AbstractSubscriber - class << self - # source://sentry-rails//lib/sentry/rails/tracing/active_storage_subscriber.rb#26 - def subscribe!; end - end -end - -# source://sentry-rails//lib/sentry/rails/tracing/active_storage_subscriber.rb#9 -Sentry::Rails::Tracing::ActiveStorageSubscriber::EVENT_NAMES = T.let(T.unsafe(nil), Array) - -# source://sentry-rails//lib/sentry/rails/tracing/active_storage_subscriber.rb#24 -Sentry::Rails::Tracing::ActiveStorageSubscriber::SPAN_ORIGIN = T.let(T.unsafe(nil), String) - -# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#8 -class Sentry::Rails::Tracing::ActiveSupportSubscriber < ::Sentry::Rails::Tracing::AbstractSubscriber - class << self - # source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#46 - def operation_name(event_name); end - - # source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#31 - def subscribe!; end - end -end - -# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#27 -Sentry::Rails::Tracing::ActiveSupportSubscriber::EVENT_NAMES = T.let(T.unsafe(nil), Array) - -# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#23 -Sentry::Rails::Tracing::ActiveSupportSubscriber::FLUSH_EVENT_NAMES = T.let(T.unsafe(nil), Array) - -# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#9 -Sentry::Rails::Tracing::ActiveSupportSubscriber::READ_EVENT_NAMES = T.let(T.unsafe(nil), Array) - -# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#19 -Sentry::Rails::Tracing::ActiveSupportSubscriber::REMOVE_EVENT_NAMES = T.let(T.unsafe(nil), Array) - -# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#29 -Sentry::Rails::Tracing::ActiveSupportSubscriber::SPAN_ORIGIN = T.let(T.unsafe(nil), String) - -# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#13 -Sentry::Rails::Tracing::ActiveSupportSubscriber::WRITE_EVENT_NAMES = T.let(T.unsafe(nil), Array) - -# source://sentry-rails//lib/sentry/rails/tracing.rb#6 -Sentry::Rails::Tracing::START_TIMESTAMP_NAME = T.let(T.unsafe(nil), Symbol) - -# it's just a container for the extended method -# -# source://sentry-rails//lib/sentry/rails/tracing.rb#76 -module Sentry::Rails::Tracing::SentryNotificationExtension; end - -# source://sentry-rails//lib/sentry/rails/version.rb#5 -Sentry::Rails::VERSION = T.let(T.unsafe(nil), String) - -# source://sentry-rails//lib/sentry/rails/railtie.rb#8 -class Sentry::Railtie < ::Rails::Railtie - # source://sentry-rails//lib/sentry/rails/railtie.rb#127 - def activate_tracing; end - - # source://sentry-rails//lib/sentry/rails/railtie.rb#76 - def configure_cron_timezone; end - - # source://sentry-rails//lib/sentry/rails/railtie.rb#68 - def configure_project_root; end - - # source://sentry-rails//lib/sentry/rails/railtie.rb#72 - def configure_trusted_proxies; end - - # source://sentry-rails//lib/sentry/rails/railtie.rb#81 - def extend_controller_methods; end - - # source://sentry-rails//lib/sentry/rails/railtie.rb#97 - def inject_breadcrumbs_logger; end - - # source://sentry-rails//lib/sentry/rails/railtie.rb#119 - def override_streaming_reporter; end - - # source://sentry-rails//lib/sentry/rails/railtie.rb#93 - def patch_background_worker; end - - # source://sentry-rails//lib/sentry/rails/railtie.rb#136 - def register_error_subscriber(app); end - - # source://sentry-rails//lib/sentry/rails/railtie.rb#111 - def setup_backtrace_cleanup_callback; end -end - -class Sentry::SendEventJob < ::ActiveJob::Base - def perform(event, hint = T.unsafe(nil)); end - - class << self - private - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_log_arguments; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_log_arguments=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_rescue_handlers=(new_value); end - end -end diff --git a/sorbet/rbi/gems/sentry-rails@5.26.0.rbi b/sorbet/rbi/gems/sentry-rails@5.26.0.rbi new file mode 100644 index 00000000..5df8dd83 --- /dev/null +++ b/sorbet/rbi/gems/sentry-rails@5.26.0.rbi @@ -0,0 +1,505 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `sentry-rails` gem. +# Please instead update this file by running `bin/tapioca gem sentry-rails`. + + +# source://sentry-rails//lib/sentry/rails/version.rb#3 +module Sentry + class << self + # source://sentry-rails//lib/sentry/rails/engine.rb#5 + def railtie_helpers_paths; end + + # source://sentry-rails//lib/sentry/rails/engine.rb#5 + def railtie_namespace; end + + # source://sentry-rails//lib/sentry/rails/engine.rb#5 + def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end + + # source://sentry-rails//lib/sentry/rails/engine.rb#5 + def table_name_prefix; end + + # source://sentry-rails//lib/sentry/rails/engine.rb#5 + def use_relative_model_naming?; end + end +end + +# source://sentry-rails//lib/sentry/rails/configuration.rb#10 +class Sentry::Configuration + # Returns the value of attribute rails. + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#11 + def rails; end +end + +# source://sentry-rails//lib/sentry/rails/engine.rb#4 +class Sentry::Engine < ::Rails::Engine; end + +# source://sentry-rails//lib/sentry/rails/version.rb#4 +module Sentry::Rails + extend ::Sentry::Integrable +end + +# source://sentry-rails//lib/sentry/rails/configuration.rb#53 +Sentry::Rails::ACTIVE_SUPPORT_LOGGER_SUBSCRIPTION_ITEMS_DEFAULT = T.let(T.unsafe(nil), Hash) + +# source://sentry-rails//lib/sentry/rails/backtrace_cleaner.rb#8 +class Sentry::Rails::BacktraceCleaner < ::ActiveSupport::BacktraceCleaner + # @return [BacktraceCleaner] a new instance of BacktraceCleaner + # + # source://sentry-rails//lib/sentry/rails/backtrace_cleaner.rb#12 + def initialize; end +end + +# source://sentry-rails//lib/sentry/rails/backtrace_cleaner.rb#9 +Sentry::Rails::BacktraceCleaner::APP_DIRS_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://sentry-rails//lib/sentry/rails/backtrace_cleaner.rb#10 +Sentry::Rails::BacktraceCleaner::RENDER_TEMPLATE_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#5 +class Sentry::Rails::CaptureExceptions < ::Sentry::Rack::CaptureExceptions + # @return [CaptureExceptions] a new instance of CaptureExceptions + # + # source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#9 + def initialize(_); end + + private + + # source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#28 + def capture_exception(exception, env); end + + # source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#19 + def collect_exception(env); end + + # @return [Boolean] + # + # source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#53 + def show_exceptions?(exception, env); end + + # source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#37 + def start_transaction(env, scope); end + + # source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#24 + def transaction_op; end +end + +# source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#6 +Sentry::Rails::CaptureExceptions::RAILS_7_1 = T.let(T.unsafe(nil), TrueClass) + +# source://sentry-rails//lib/sentry/rails/capture_exceptions.rb#7 +Sentry::Rails::CaptureExceptions::SPAN_ORIGIN = T.let(T.unsafe(nil), String) + +# source://sentry-rails//lib/sentry/rails/configuration.rb#113 +class Sentry::Rails::Configuration + # @return [Configuration] a new instance of Configuration + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#162 + def initialize; end + + # Set this option to true if you want Sentry to capture each retry failure + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#160 + def active_job_report_on_retry_error; end + + # Set this option to true if you want Sentry to capture each retry failure + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#160 + def active_job_report_on_retry_error=(_arg0); end + + # Hash of subscription items that will be shown in breadcrumbs active support logger. + # + # @return [Hash>] + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#157 + def active_support_logger_subscription_items; end + + # Hash of subscription items that will be shown in breadcrumbs active support logger. + # + # @return [Hash>] + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#157 + def active_support_logger_subscription_items=(_arg0); end + + # sentry-rails by default skips asset request' transactions by checking if the path matches + # + # ```rb + # %r(\A/{0,2}#{::Rails.application.config.assets.prefix}) + # ``` + # + # If you want to use a different pattern, you can configure the `assets_regexp` option like: + # + # ```rb + # Sentry.init do |config| + # config.rails.assets_regexp = /my_regexp/ + # end + # ``` + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#153 + def assets_regexp; end + + # sentry-rails by default skips asset request' transactions by checking if the path matches + # + # ```rb + # %r(\A/{0,2}#{::Rails.application.config.assets.prefix}) + # ``` + # + # If you want to use a different pattern, you can configure the `assets_regexp` option like: + # + # ```rb + # Sentry.init do |config| + # config.rails.assets_regexp = /my_regexp/ + # end + # ``` + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#153 + def assets_regexp=(_arg0); end + + # The threshold in milliseconds for the ActiveRecordSubscriber to capture the source location of the query + # in the span data. Default is 100ms. + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#138 + def db_query_source_threshold_ms; end + + # The threshold in milliseconds for the ActiveRecordSubscriber to capture the source location of the query + # in the span data. Default is 100ms. + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#138 + def db_query_source_threshold_ms=(_arg0); end + + # When the ActiveRecordSubscriber is enabled, capture the source location of the query in the span data. + # This is enabled by default, but can be disabled by setting this to false. + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#134 + def enable_db_query_source; end + + # When the ActiveRecordSubscriber is enabled, capture the source location of the query in the span data. + # This is enabled by default, but can be disabled by setting this to false. + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#134 + def enable_db_query_source=(_arg0); end + + # Rails 7.0 introduced a new error reporter feature, which the SDK once opted-in by default. + # But after receiving multiple issue reports, the integration seemed to cause serious troubles to some users. + # So the integration is now controlled by this configuration, which is disabled (false) by default. + # More information can be found from: https://github.com/rails/rails/pull/43625#issuecomment-1072514175 + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#118 + def register_error_subscriber; end + + # Rails 7.0 introduced a new error reporter feature, which the SDK once opted-in by default. + # But after receiving multiple issue reports, the integration seemed to cause serious troubles to some users. + # So the integration is now controlled by this configuration, which is disabled (false) by default. + # More information can be found from: https://github.com/rails/rails/pull/43625#issuecomment-1072514175 + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#118 + def register_error_subscriber=(_arg0); end + + # Rails catches exceptions in the ActionDispatch::ShowExceptions or + # ActionDispatch::DebugExceptions middlewares, depending on the environment. + # When `report_rescued_exceptions` is true (it is by default), Sentry will + # report exceptions even when they are rescued by these middlewares. + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#124 + def report_rescued_exceptions; end + + # Rails catches exceptions in the ActionDispatch::ShowExceptions or + # ActionDispatch::DebugExceptions middlewares, depending on the environment. + # When `report_rescued_exceptions` is true (it is by default), Sentry will + # report exceptions even when they are rescued by these middlewares. + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#124 + def report_rescued_exceptions=(_arg0); end + + # Some adapters, like sidekiq, already have their own sentry integration. + # In those cases, we should skip ActiveJob's reporting to avoid duplicated reports. + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#128 + def skippable_job_adapters; end + + # Some adapters, like sidekiq, already have their own sentry integration. + # In those cases, we should skip ActiveJob's reporting to avoid duplicated reports. + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#128 + def skippable_job_adapters=(_arg0); end + + # Returns the value of attribute tracing_subscribers. + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#130 + def tracing_subscribers; end + + # Sets the attribute tracing_subscribers + # + # @param value the value to set the attribute tracing_subscribers to. + # + # source://sentry-rails//lib/sentry/rails/configuration.rb#130 + def tracing_subscribers=(_arg0); end +end + +# source://sentry-rails//lib/sentry/rails/configuration.rb#36 +Sentry::Rails::IGNORE_DEFAULT = T.let(T.unsafe(nil), Array) + +# source://sentry-rails//lib/sentry/rails/instrument_payload_cleanup_helper.rb#5 +module Sentry::Rails::InstrumentPayloadCleanupHelper + # source://sentry-rails//lib/sentry/rails/instrument_payload_cleanup_helper.rb#8 + def cleanup_data(data); end +end + +# source://sentry-rails//lib/sentry/rails/instrument_payload_cleanup_helper.rb#6 +Sentry::Rails::InstrumentPayloadCleanupHelper::IGNORED_DATA_TYPES = T.let(T.unsafe(nil), Array) + +# source://sentry-rails//lib/sentry/rails/rescued_exception_interceptor.rb#5 +class Sentry::Rails::RescuedExceptionInterceptor + # @return [RescuedExceptionInterceptor] a new instance of RescuedExceptionInterceptor + # + # source://sentry-rails//lib/sentry/rails/rescued_exception_interceptor.rb#6 + def initialize(app); end + + # source://sentry-rails//lib/sentry/rails/rescued_exception_interceptor.rb#10 + def call(env); end + + # @return [Boolean] + # + # source://sentry-rails//lib/sentry/rails/rescued_exception_interceptor.rb#21 + def report_rescued_exceptions?; end +end + +# source://sentry-rails//lib/sentry/rails/tracing.rb#5 +module Sentry::Rails::Tracing + class << self + # source://sentry-rails//lib/sentry/rails/tracing.rb#71 + def get_current_transaction; end + + # this is necessary because instrumentation events don't record absolute start/finish time + # so we need to retrieve the correct time this way + # + # source://sentry-rails//lib/sentry/rails/tracing.rb#44 + def patch_active_support_notifications; end + + # source://sentry-rails//lib/sentry/rails/tracing.rb#8 + def register_subscribers(subscribers); end + + # source://sentry-rails//lib/sentry/rails/tracing.rb#61 + def remove_active_support_notifications_patch; end + + # source://sentry-rails//lib/sentry/rails/tracing.rb#20 + def subscribe_tracing_events; end + + # source://sentry-rails//lib/sentry/rails/tracing.rb#16 + def subscribed_tracing_events; end + + # source://sentry-rails//lib/sentry/rails/tracing.rb#12 + def subscribers; end + + # source://sentry-rails//lib/sentry/rails/tracing.rb#33 + def unsubscribe_tracing_events; end + end +end + +# source://sentry-rails//lib/sentry/rails/tracing/abstract_subscriber.rb#6 +class Sentry::Rails::Tracing::AbstractSubscriber + class << self + # source://sentry-rails//lib/sentry/rails/tracing/abstract_subscriber.rb#41 + def record_on_current_span(duration:, **options); end + + # @raise [NotImplementedError] + # + # source://sentry-rails//lib/sentry/rails/tracing/abstract_subscriber.rb#8 + def subscribe!; end + + # source://sentry-rails//lib/sentry/rails/tracing/abstract_subscriber.rb#30 + def subscribe_to_event(event_names); end + + # source://sentry-rails//lib/sentry/rails/tracing/abstract_subscriber.rb#12 + def unsubscribe!; end + end +end + +# source://sentry-rails//lib/sentry/rails/tracing/action_controller_subscriber.rb#9 +class Sentry::Rails::Tracing::ActionControllerSubscriber < ::Sentry::Rails::Tracing::AbstractSubscriber + extend ::Sentry::Rails::InstrumentPayloadCleanupHelper + + class << self + # source://sentry-rails//lib/sentry/rails/tracing/action_controller_subscriber.rb#16 + def subscribe!; end + end +end + +# source://sentry-rails//lib/sentry/rails/tracing/action_controller_subscriber.rb#12 +Sentry::Rails::Tracing::ActionControllerSubscriber::EVENT_NAMES = T.let(T.unsafe(nil), Array) + +# source://sentry-rails//lib/sentry/rails/tracing/action_controller_subscriber.rb#13 +Sentry::Rails::Tracing::ActionControllerSubscriber::OP_NAME = T.let(T.unsafe(nil), String) + +# source://sentry-rails//lib/sentry/rails/tracing/action_controller_subscriber.rb#14 +Sentry::Rails::Tracing::ActionControllerSubscriber::SPAN_ORIGIN = T.let(T.unsafe(nil), String) + +# source://sentry-rails//lib/sentry/rails/tracing/action_view_subscriber.rb#8 +class Sentry::Rails::Tracing::ActionViewSubscriber < ::Sentry::Rails::Tracing::AbstractSubscriber + class << self + # source://sentry-rails//lib/sentry/rails/tracing/action_view_subscriber.rb#13 + def subscribe!; end + end +end + +# source://sentry-rails//lib/sentry/rails/tracing/action_view_subscriber.rb#9 +Sentry::Rails::Tracing::ActionViewSubscriber::EVENT_NAMES = T.let(T.unsafe(nil), Array) + +# source://sentry-rails//lib/sentry/rails/tracing/action_view_subscriber.rb#11 +Sentry::Rails::Tracing::ActionViewSubscriber::SPAN_ORIGIN = T.let(T.unsafe(nil), String) + +# source://sentry-rails//lib/sentry/rails/tracing/action_view_subscriber.rb#10 +Sentry::Rails::Tracing::ActionViewSubscriber::SPAN_PREFIX = T.let(T.unsafe(nil), String) + +# source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#8 +class Sentry::Rails::Tracing::ActiveRecordSubscriber < ::Sentry::Rails::Tracing::AbstractSubscriber + # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 + def backtrace_cleaner; end + + # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 + def backtrace_cleaner=(_arg0); end + + # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 + def backtrace_cleaner?; end + + class << self + # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 + def backtrace_cleaner; end + + # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 + def backtrace_cleaner=(value); end + + # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 + def backtrace_cleaner?; end + + # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#88 + def query_source_location; end + + # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#23 + def subscribe!; end + + private + + # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 + def __class_attr_backtrace_cleaner; end + + # source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#17 + def __class_attr_backtrace_cleaner=(new_value); end + end +end + +# source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#9 +Sentry::Rails::Tracing::ActiveRecordSubscriber::EVENT_NAMES = T.let(T.unsafe(nil), Array) + +# source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#12 +Sentry::Rails::Tracing::ActiveRecordSubscriber::EXCLUDED_EVENTS = T.let(T.unsafe(nil), Array) + +# source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#11 +Sentry::Rails::Tracing::ActiveRecordSubscriber::SPAN_ORIGIN = T.let(T.unsafe(nil), String) + +# source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#10 +Sentry::Rails::Tracing::ActiveRecordSubscriber::SPAN_PREFIX = T.let(T.unsafe(nil), String) + +# source://sentry-rails//lib/sentry/rails/tracing/active_record_subscriber.rb#14 +Sentry::Rails::Tracing::ActiveRecordSubscriber::SUPPORT_SOURCE_LOCATION = T.let(T.unsafe(nil), TrueClass) + +# source://sentry-rails//lib/sentry/rails/tracing/active_storage_subscriber.rb#8 +class Sentry::Rails::Tracing::ActiveStorageSubscriber < ::Sentry::Rails::Tracing::AbstractSubscriber + class << self + # source://sentry-rails//lib/sentry/rails/tracing/active_storage_subscriber.rb#26 + def subscribe!; end + end +end + +# source://sentry-rails//lib/sentry/rails/tracing/active_storage_subscriber.rb#9 +Sentry::Rails::Tracing::ActiveStorageSubscriber::EVENT_NAMES = T.let(T.unsafe(nil), Array) + +# source://sentry-rails//lib/sentry/rails/tracing/active_storage_subscriber.rb#24 +Sentry::Rails::Tracing::ActiveStorageSubscriber::SPAN_ORIGIN = T.let(T.unsafe(nil), String) + +# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#8 +class Sentry::Rails::Tracing::ActiveSupportSubscriber < ::Sentry::Rails::Tracing::AbstractSubscriber + class << self + # source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#46 + def operation_name(event_name); end + + # source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#31 + def subscribe!; end + end +end + +# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#27 +Sentry::Rails::Tracing::ActiveSupportSubscriber::EVENT_NAMES = T.let(T.unsafe(nil), Array) + +# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#23 +Sentry::Rails::Tracing::ActiveSupportSubscriber::FLUSH_EVENT_NAMES = T.let(T.unsafe(nil), Array) + +# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#9 +Sentry::Rails::Tracing::ActiveSupportSubscriber::READ_EVENT_NAMES = T.let(T.unsafe(nil), Array) + +# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#19 +Sentry::Rails::Tracing::ActiveSupportSubscriber::REMOVE_EVENT_NAMES = T.let(T.unsafe(nil), Array) + +# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#29 +Sentry::Rails::Tracing::ActiveSupportSubscriber::SPAN_ORIGIN = T.let(T.unsafe(nil), String) + +# source://sentry-rails//lib/sentry/rails/tracing/active_support_subscriber.rb#13 +Sentry::Rails::Tracing::ActiveSupportSubscriber::WRITE_EVENT_NAMES = T.let(T.unsafe(nil), Array) + +# source://sentry-rails//lib/sentry/rails/tracing.rb#6 +Sentry::Rails::Tracing::START_TIMESTAMP_NAME = T.let(T.unsafe(nil), Symbol) + +# it's just a container for the extended method +# +# source://sentry-rails//lib/sentry/rails/tracing.rb#76 +module Sentry::Rails::Tracing::SentryNotificationExtension; end + +# source://sentry-rails//lib/sentry/rails/version.rb#5 +Sentry::Rails::VERSION = T.let(T.unsafe(nil), String) + +# source://sentry-rails//lib/sentry/rails/railtie.rb#8 +class Sentry::Railtie < ::Rails::Railtie + # source://sentry-rails//lib/sentry/rails/railtie.rb#132 + def activate_tracing; end + + # source://sentry-rails//lib/sentry/rails/railtie.rb#81 + def configure_cron_timezone; end + + # source://sentry-rails//lib/sentry/rails/railtie.rb#73 + def configure_project_root; end + + # source://sentry-rails//lib/sentry/rails/railtie.rb#77 + def configure_trusted_proxies; end + + # source://sentry-rails//lib/sentry/rails/railtie.rb#86 + def extend_controller_methods; end + + # source://sentry-rails//lib/sentry/rails/railtie.rb#102 + def inject_breadcrumbs_logger; end + + # source://sentry-rails//lib/sentry/rails/railtie.rb#124 + def override_streaming_reporter; end + + # source://sentry-rails//lib/sentry/rails/railtie.rb#98 + def patch_background_worker; end + + # source://sentry-rails//lib/sentry/rails/railtie.rb#141 + def register_error_subscriber(app); end + + # source://sentry-rails//lib/sentry/rails/railtie.rb#116 + def setup_backtrace_cleanup_callback; end +end + +class Sentry::SendEventJob < ::ActiveJob::Base + def perform(event, hint = T.unsafe(nil)); end + + class << self + private + + def __class_attr_log_arguments; end + def __class_attr_log_arguments=(new_value); end + def __class_attr_rescue_handlers; end + def __class_attr_rescue_handlers=(new_value); end + end +end diff --git a/sorbet/rbi/gems/sentry-ruby@5.23.0.rbi b/sorbet/rbi/gems/sentry-ruby@5.26.0.rbi similarity index 79% rename from sorbet/rbi/gems/sentry-ruby@5.23.0.rbi rename to sorbet/rbi/gems/sentry-ruby@5.26.0.rbi index 63ea62c7..bfcc4ee1 100644 --- a/sorbet/rbi/gems/sentry-ruby@5.23.0.rbi +++ b/sorbet/rbi/gems/sentry-ruby@5.26.0.rbi @@ -18,191 +18,6 @@ end # source://sentry-ruby//lib/sentry/rake.rb#27 class Rake::Application include ::Sentry::Rake::Application - - # source://rake/13.2.1/lib/rake/application.rb#49 - def initialize; end - - # source://rake/13.2.1/lib/rake/application.rb#807 - def add_import(fn); end - - # source://rake/13.2.1/lib/rake/application.rb#161 - def add_loader(ext, loader); end - - # source://rake/13.2.1/lib/rake/application.rb#788 - def collect_command_line_tasks(args); end - - # source://rake/13.2.1/lib/rake/application.rb#802 - def default_task_name; end - - # source://rake/13.2.1/lib/rake/application.rb#288 - def deprecate(old_usage, new_usage, call_site); end - - # source://rake/13.2.1/lib/rake/application.rb#250 - def display_cause_details(ex); end - - # source://sentry-ruby//lib/sentry/rake.rb#10 - def display_error_message(ex); end - - # source://rake/13.2.1/lib/rake/application.rb#275 - def display_exception_backtrace(ex); end - - # source://rake/13.2.1/lib/rake/application.rb#242 - def display_exception_details(ex); end - - # source://rake/13.2.1/lib/rake/application.rb#257 - def display_exception_details_seen; end - - # source://rake/13.2.1/lib/rake/application.rb#265 - def display_exception_message_details(ex); end - - # source://rake/13.2.1/lib/rake/application.rb#411 - def display_prerequisites; end - - # source://rake/13.2.1/lib/rake/application.rb#328 - def display_tasks_and_comments; end - - # source://rake/13.2.1/lib/rake/application.rb#379 - def dynamic_width; end - - # source://rake/13.2.1/lib/rake/application.rb#383 - def dynamic_width_stty; end - - # source://rake/13.2.1/lib/rake/application.rb#387 - def dynamic_width_tput; end - - # source://rake/13.2.1/lib/rake/application.rb#229 - def exit_because_of_exception(ex); end - - # source://rake/13.2.1/lib/rake/application.rb#708 - def find_rakefile_location; end - - # source://rake/13.2.1/lib/rake/application.rb#674 - def handle_options(argv); end - - # source://rake/13.2.1/lib/rake/application.rb#261 - def has_cause?(ex); end - - # source://rake/13.2.1/lib/rake/application.rb#304 - def have_rakefile; end - - # source://rake/13.2.1/lib/rake/application.rb#88 - def init(app_name = T.unsafe(nil), argv = T.unsafe(nil)); end - - # source://rake/13.2.1/lib/rake/application.rb#185 - def invoke_task(task_string); end - - # source://rake/13.2.1/lib/rake/application.rb#812 - def load_imports; end - - # source://rake/13.2.1/lib/rake/application.rb#124 - def load_rakefile; end - - # source://rake/13.2.1/lib/rake/application.rb#24 - def name; end - - # source://rake/13.2.1/lib/rake/application.rb#167 - def options; end - - # source://rake/13.2.1/lib/rake/application.rb#27 - def original_dir; end - - # source://rake/13.2.1/lib/rake/application.rb#191 - def parse_task_string(string); end - - # source://rake/13.2.1/lib/rake/application.rb#720 - def print_rakefile_directory(location); end - - # source://rake/13.2.1/lib/rake/application.rb#694 - def rake_require(file_name, paths = T.unsafe(nil), loaded = T.unsafe(nil)); end - - # source://rake/13.2.1/lib/rake/application.rb#30 - def rakefile; end - - # source://rake/13.2.1/lib/rake/application.rb#828 - def rakefile_location(backtrace = T.unsafe(nil)); end - - # source://rake/13.2.1/lib/rake/application.rb#725 - def raw_load_rakefile; end - - # source://rake/13.2.1/lib/rake/application.rb#79 - def run(argv = T.unsafe(nil)); end - - # source://rake/13.2.1/lib/rake/application.rb#144 - def run_with_threads; end - - # source://rake/13.2.1/lib/rake/application.rb#837 - def set_default_options; end - - # source://rake/13.2.1/lib/rake/application.rb#213 - def standard_exception_handling; end - - # source://rake/13.2.1/lib/rake/application.rb#432 - def standard_rake_options; end - - # source://rake/13.2.1/lib/rake/application.rb#757 - def system_dir; end - - # source://rake/13.2.1/lib/rake/application.rb#33 - def terminal_columns; end - - # source://rake/13.2.1/lib/rake/application.rb#33 - def terminal_columns=(_arg0); end - - # source://rake/13.2.1/lib/rake/application.rb#367 - def terminal_width; end - - # source://rake/13.2.1/lib/rake/application.rb#178 - def thread_pool; end - - # source://rake/13.2.1/lib/rake/application.rb#131 - def top_level; end - - # source://rake/13.2.1/lib/rake/application.rb#36 - def top_level_tasks; end - - # source://rake/13.2.1/lib/rake/application.rb#418 - def trace(*strings); end - - # source://rake/13.2.1/lib/rake/application.rb#400 - def truncate(string, width); end - - # source://rake/13.2.1/lib/rake/application.rb#323 - def truncate_output?; end - - # source://rake/13.2.1/lib/rake/application.rb#39 - def tty_output=(_arg0); end - - # source://rake/13.2.1/lib/rake/application.rb#317 - def tty_output?; end - - # source://rake/13.2.1/lib/rake/application.rb#391 - def unix?; end - - # source://rake/13.2.1/lib/rake/application.rb#396 - def windows?; end - - private - - # source://rake/13.2.1/lib/rake/application.rb#751 - def glob(path, &block); end - - # source://rake/13.2.1/lib/rake/application.rb#297 - def has_chain?(exception); end - - # source://rake/13.2.1/lib/rake/application.rb#102 - def load_debug_at_stop_feature; end - - # source://rake/13.2.1/lib/rake/application.rb#650 - def select_tasks_to_show(options, show_tasks, value); end - - # source://rake/13.2.1/lib/rake/application.rb#657 - def select_trace_output(options, trace_option, value); end - - # source://rake/13.2.1/lib/rake/application.rb#423 - def sort_options(options); end - - # source://rake/13.2.1/lib/rake/application.rb#774 - def standard_system_dir; end end # Based on ActionDispatch::RemoteIp. All security-related precautions from that @@ -213,14 +28,14 @@ end # source://sentry-ruby//lib/sentry/version.rb#3 module Sentry class << self - # source://sentry-ruby//lib/sentry-ruby.rb#227 + # source://sentry-ruby//lib/sentry-ruby.rb#228 def add_attachment(**opts); end # Takes an instance of Sentry::Breadcrumb and stores it to the current active scope. # # @return [Breadcrumb, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#328 + # source://sentry-ruby//lib/sentry-ruby.rb#330 def add_breadcrumb(breadcrumb, **options); end # Add a global event processor [Proc]. @@ -235,27 +50,27 @@ module Sentry # @yieldparam event [Event] # @yieldparam hint [Hash, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#547 + # source://sentry-ruby//lib/sentry-ruby.rb#568 def add_global_event_processor(&block); end - # source://sentry-ruby//lib/sentry-ruby.rb#115 + # source://sentry-ruby//lib/sentry-ruby.rb#116 def apply_patches(config); end # @return [BackgroundWorker] # - # source://sentry-ruby//lib/sentry-ruby.rb#83 + # source://sentry-ruby//lib/sentry-ruby.rb#84 def background_worker; end # Sets the attribute background_worker # # @param value the value to set the attribute background_worker to. # - # source://sentry-ruby//lib/sentry-ruby.rb#83 + # source://sentry-ruby//lib/sentry-ruby.rb#84 def background_worker=(_arg0); end # Returns the value of attribute backpressure_monitor. # - # source://sentry-ruby//lib/sentry-ruby.rb#91 + # source://sentry-ruby//lib/sentry-ruby.rb#92 def backpressure_monitor; end # Captures a check-in and sends it to Sentry via the currently active hub. @@ -268,14 +83,14 @@ module Sentry # @param options [Hash] extra check-in options # @return [String, nil] The {CheckInEvent#check_in_id} to use for later updates on the same slug # - # source://sentry-ruby//lib/sentry-ruby.rb#487 + # source://sentry-ruby//lib/sentry-ruby.rb#489 def capture_check_in(slug, status, **options); end # Takes an instance of Sentry::Event and dispatches it to the currently active hub. # # @return [Event, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#471 + # source://sentry-ruby//lib/sentry-ruby.rb#473 def capture_event(event); end # Takes an exception and reports it to Sentry via the currently active hub. @@ -283,22 +98,38 @@ module Sentry # @return [Event, nil] # @yieldparam scope [Scope] # - # source://sentry-ruby//lib/sentry-ruby.rb#435 + # source://sentry-ruby//lib/sentry-ruby.rb#437 def capture_exception(exception, **options, &block); end + # Captures a log event and sends it to Sentry via the currently active hub. + # This is the underlying method used by the StructuredLogger class. + # + # @example Direct usage (prefer using Sentry.logger instead) + # Sentry.capture_log("User logged in", level: :info, user_id: 123) + # @option options + # @option options + # @option options + # @param message [String] the log message + # @param options [Hash] Extra log event options + # @return [LogEvent, nil] The created log event or nil if logging is disabled + # @see https://develop.sentry.dev/sdk/telemetry/logs/ Sentry SDK Telemetry Logs Protocol + # + # source://sentry-ruby//lib/sentry-ruby.rb#508 + def capture_log(message, **options); end + # Takes a message string and reports it to Sentry via the currently active hub. # # @return [Event, nil] # @yieldparam scope [Scope] # - # source://sentry-ruby//lib/sentry-ruby.rb#463 + # source://sentry-ruby//lib/sentry-ruby.rb#465 def capture_message(message, **options, &block); end # Clones the main thread's active hub and stores it to the current thread. # # @return [void] # - # source://sentry-ruby//lib/sentry-ruby.rb#365 + # source://sentry-ruby//lib/sentry-ruby.rb#367 def clone_hub_to_current_thread; end # Flushes pending events and cleans up SDK state. @@ -306,10 +137,10 @@ module Sentry # # @return [void] # - # source://sentry-ruby//lib/sentry-ruby.rb#261 + # source://sentry-ruby//lib/sentry-ruby.rb#263 def close; end - # source://sentry-ruby//lib/sentry-ruby.rb#167 + # source://sentry-ruby//lib/sentry-ruby.rb#168 def configuration; end # Takes a block and yields the current active scope. @@ -323,7 +154,7 @@ module Sentry # @return [void] # @yieldparam scope [Scope] # - # source://sentry-ruby//lib/sentry-ruby.rb#381 + # source://sentry-ruby//lib/sentry-ruby.rb#383 def configure_scope(&block); end # Continue an incoming trace from a rack env like hash. @@ -331,7 +162,7 @@ module Sentry # @param env [Hash] # @return [Transaction, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#591 + # source://sentry-ruby//lib/sentry-ruby.rb#612 def continue_trace(env, **options); end # Returns an uri for security policy reporting that's generated from the given DSN @@ -343,22 +174,22 @@ module Sentry # # @return [String, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#310 + # source://sentry-ruby//lib/sentry-ruby.rb#312 def csp_report_uri; end # @return [Boolean] # - # source://sentry-ruby//lib/sentry-ruby.rb#622 + # source://sentry-ruby//lib/sentry-ruby.rb#680 def dependency_installed?(name); end # Checks if the exception object has been captured by the SDK. # # @return [Boolean] # - # source://sentry-ruby//lib/sentry-ruby.rb#529 + # source://sentry-ruby//lib/sentry-ruby.rb#550 def exception_captured?(exc); end - # source://sentry-ruby//lib/sentry-ruby.rb#65 + # source://sentry-ruby//lib/sentry-ruby.rb#66 def exception_locals_tp; end # Returns the baggage header for distributed tracing. @@ -366,14 +197,14 @@ module Sentry # # @return [String, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#564 + # source://sentry-ruby//lib/sentry-ruby.rb#585 def get_baggage; end # Returns the current active client. # # @return [Client, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#349 + # source://sentry-ruby//lib/sentry-ruby.rb#351 def get_current_client; end # Returns the current active hub. @@ -382,21 +213,21 @@ module Sentry # # @return [Hub] # - # source://sentry-ruby//lib/sentry-ruby.rb#338 + # source://sentry-ruby//lib/sentry-ruby.rb#340 def get_current_hub; end # Returns the current active scope. # # @return [Scope, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#357 + # source://sentry-ruby//lib/sentry-ruby.rb#359 def get_current_scope; end # Returns the main thread's active hub. # # @return [Hub] # - # source://sentry-ruby//lib/sentry-ruby.rb#318 + # source://sentry-ruby//lib/sentry-ruby.rb#320 def get_main_hub; end # Returns the a Hash containing sentry-trace and baggage. @@ -404,7 +235,7 @@ module Sentry # # @return [Hash, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#573 + # source://sentry-ruby//lib/sentry-ruby.rb#594 def get_trace_propagation_headers; end # Returns the a Hash containing sentry-trace and baggage. @@ -412,7 +243,7 @@ module Sentry # # @return [String] # - # source://sentry-ruby//lib/sentry-ruby.rb#582 + # source://sentry-ruby//lib/sentry-ruby.rb#603 def get_trace_propagation_meta; end # Returns the traceparent (sentry-trace) header for distributed tracing. @@ -420,7 +251,7 @@ module Sentry # # @return [String, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#555 + # source://sentry-ruby//lib/sentry-ruby.rb#576 def get_traceparent; end # Initializes the SDK with given configuration. @@ -428,101 +259,107 @@ module Sentry # @return [void] # @yieldparam config [Configuration] # - # source://sentry-ruby//lib/sentry-ruby.rb#238 + # source://sentry-ruby//lib/sentry-ruby.rb#239 def init(&block); end # Returns true if the SDK is initialized. # # @return [Boolean] # - # source://sentry-ruby//lib/sentry-ruby.rb#298 + # source://sentry-ruby//lib/sentry-ruby.rb#300 def initialized?; end # Returns a hash that contains all the integrations that have been registered to the main SDK. # # @return [Hash{String=>Hash}] # - # source://sentry-ruby//lib/sentry-ruby.rb#131 + # source://sentry-ruby//lib/sentry-ruby.rb#132 def integrations; end # Returns the id of the lastly reported Sentry::Event. # # @return [String, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#521 + # source://sentry-ruby//lib/sentry-ruby.rb#542 def last_event_id; end - # source://sentry-ruby//lib/sentry-ruby.rb#607 + # Returns the structured logger instance that implements Sentry's SDK telemetry logs protocol. + # + # This logger is only available when logs are enabled in the configuration. + # + # @example Enable logs in configuration + # Sentry.init do |config| + # config.dsn = "YOUR_DSN" + # config.enable_logs = true + # end + # @example Basic usage + # Sentry.logger.info("User logged in successfully", user_id: 123) + # Sentry.logger.error("Failed to process payment", + # transaction_id: "tx_123", + # error_code: "PAYMENT_FAILED" + # ) + # @return [StructuredLogger, nil] The structured logger instance or nil if logs are disabled + # @see https://develop.sentry.dev/sdk/telemetry/logs/ Sentry SDK Telemetry Logs Protocol + # + # source://sentry-ruby//lib/sentry-ruby.rb#637 def logger; end # Returns the value of attribute metrics_aggregator. # - # source://sentry-ruby//lib/sentry-ruby.rb#95 + # source://sentry-ruby//lib/sentry-ruby.rb#96 def metrics_aggregator; end - # source://railties/8.0.2/lib/rails/engine.rb#413 - def railtie_helpers_paths; end - - # source://railties/8.0.2/lib/rails/engine.rb#396 - def railtie_namespace; end - - # source://railties/8.0.2/lib/rails/engine.rb#417 - def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end - # Registers the SDK integration with its name and version. # # @param name [String] name of the integration # @param version [String] version of the integration # - # source://sentry-ruby//lib/sentry-ruby.rb#139 + # source://sentry-ruby//lib/sentry-ruby.rb#140 def register_integration(name, version); end - # source://sentry-ruby//lib/sentry-ruby.rb#100 + # source://sentry-ruby//lib/sentry-ruby.rb#101 def register_patch(key, patch = T.unsafe(nil), target = T.unsafe(nil), &block); end - # source://sentry-ruby//lib/sentry-ruby.rb#122 + # source://sentry-ruby//lib/sentry-ruby.rb#123 def registered_patches; end - # source://sentry-ruby//lib/sentry-ruby.rb#612 + # source://sentry-ruby//lib/sentry-ruby.rb#665 + def sdk_logger; end + + # source://sentry-ruby//lib/sentry-ruby.rb#670 def sdk_meta; end - # source://sentry-ruby//lib/sentry-ruby.rb#174 + # source://sentry-ruby//lib/sentry-ruby.rb#175 def send_event(*args); end # Returns the value of attribute session_flusher. # - # source://sentry-ruby//lib/sentry-ruby.rb#87 + # source://sentry-ruby//lib/sentry-ruby.rb#88 def session_flusher; end - # source://sentry-ruby//lib/sentry-ruby.rb#220 + # source://sentry-ruby//lib/sentry-ruby.rb#221 def set_context(*args); end - # source://sentry-ruby//lib/sentry-ruby.rb#206 + # source://sentry-ruby//lib/sentry-ruby.rb#207 def set_extras(*args); end - # source://sentry-ruby//lib/sentry-ruby.rb#199 + # source://sentry-ruby//lib/sentry-ruby.rb#200 def set_tags(*args); end - # source://sentry-ruby//lib/sentry-ruby.rb#213 + # source://sentry-ruby//lib/sentry-ruby.rb#214 def set_user(*args); end # Takes or initializes a new Sentry::Transaction and makes a sampling decision for it. # # @return [Transaction, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#495 + # source://sentry-ruby//lib/sentry-ruby.rb#516 def start_transaction(**options); end - # source://sentry-ruby//lib/sentry-ruby.rb#599 + # source://sentry-ruby//lib/sentry-ruby.rb#657 def sys_command(command); end - # source://railties/8.0.2/lib/rails/engine.rb#402 - def table_name_prefix; end - - # source://railties/8.0.2/lib/rails/engine.rb#409 - def use_relative_model_naming?; end - - # source://sentry-ruby//lib/sentry-ruby.rb#617 + # source://sentry-ruby//lib/sentry-ruby.rb#675 def utc_now; end # Records the block's execution as a child of the current span. @@ -538,7 +375,7 @@ module Sentry # @return yield result # @yieldparam child_span [Span, nil] # - # source://sentry-ruby//lib/sentry-ruby.rb#513 + # source://sentry-ruby//lib/sentry-ruby.rb#534 def with_child_span(**attributes, &block); end # Takes a block and evaluates it. If the block raised an exception, it reports the exception to Sentry and re-raises it. @@ -553,7 +390,7 @@ module Sentry # 1/0 #=> ZeroDivisionError will be reported and re-raised # end # - # source://sentry-ruby//lib/sentry-ruby.rb#452 + # source://sentry-ruby//lib/sentry-ruby.rb#454 def with_exception_captured(**options, &block); end # Takes a block and yields a temporary scope. @@ -576,7 +413,7 @@ module Sentry # @return [void] # @yieldparam scope [Scope] # - # source://sentry-ruby//lib/sentry-ruby.rb#406 + # source://sentry-ruby//lib/sentry-ruby.rb#408 def with_scope(&block); end # Wrap a given block with session tracking. @@ -595,7 +432,7 @@ module Sentry # end # @return [void] # - # source://sentry-ruby//lib/sentry-ruby.rb#426 + # source://sentry-ruby//lib/sentry-ruby.rb#428 def with_session_tracking(&block); end end end @@ -665,19 +502,14 @@ class Sentry::BackgroundWorker # @return [BackgroundWorker] a new instance of BackgroundWorker # - # source://sentry-ruby//lib/sentry/background_worker.rb#18 + # source://sentry-ruby//lib/sentry/background_worker.rb#17 def initialize(configuration); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/background_worker.rb#68 + # source://sentry-ruby//lib/sentry/background_worker.rb#67 def full?; end - # @deprecated Use Sentry.logger to retrieve the current logger instead. - # - # source://sentry-ruby//lib/sentry/background_worker.rb#13 - def logger; end - # Returns the value of attribute max_queue. # # source://sentry-ruby//lib/sentry/background_worker.rb#11 @@ -690,31 +522,31 @@ class Sentry::BackgroundWorker # if you want to monkey-patch this method, please override `_perform` instead # - # source://sentry-ruby//lib/sentry/background_worker.rb#53 + # source://sentry-ruby//lib/sentry/background_worker.rb#52 def perform(&block); end - # source://sentry-ruby//lib/sentry/background_worker.rb#63 + # source://sentry-ruby//lib/sentry/background_worker.rb#62 def shutdown; end # Returns the value of attribute shutdown_timeout. # - # source://sentry-ruby//lib/sentry/background_worker.rb#14 + # source://sentry-ruby//lib/sentry/background_worker.rb#13 def shutdown_timeout; end # Sets the attribute shutdown_timeout # # @param value the value to set the attribute shutdown_timeout to. # - # source://sentry-ruby//lib/sentry/background_worker.rb#14 + # source://sentry-ruby//lib/sentry/background_worker.rb#13 def shutdown_timeout=(_arg0); end private - # source://sentry-ruby//lib/sentry/background_worker.rb#75 + # source://sentry-ruby//lib/sentry/background_worker.rb#74 def _perform(&block); end end -# source://sentry-ruby//lib/sentry/background_worker.rb#16 +# source://sentry-ruby//lib/sentry/background_worker.rb#15 Sentry::BackgroundWorker::DEFAULT_MAX_QUEUE = T.let(T.unsafe(nil), Integer) # source://sentry-ruby//lib/sentry/backpressure_monitor.rb#4 @@ -957,85 +789,88 @@ class Sentry::Breadcrumb # @param type [String, nil] # @return [Breadcrumb] a new instance of Breadcrumb # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#26 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#27 def initialize(category: T.unsafe(nil), data: T.unsafe(nil), message: T.unsafe(nil), timestamp: T.unsafe(nil), level: T.unsafe(nil), type: T.unsafe(nil)); end # @return [String, nil] # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#8 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#9 def category; end # @return [String, nil] # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#8 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#9 def category=(_arg0); end # @return [Hash, nil] # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#10 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#11 def data; end # @return [Hash, nil] # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#10 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#11 def data=(_arg0); end # @return [String, nil] # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#12 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#13 def level; end # @param level [String] # @return [void] # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#55 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#56 def level=(level); end # @return [String, nil] # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#18 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#19 def message; end # @param message [String] # @return [void] # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#49 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#50 def message=(message); end # @return [Time, Integer, nil] # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#14 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#15 def timestamp; end # @return [Time, Integer, nil] # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#14 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#15 def timestamp=(_arg0); end # @return [Hash] # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#36 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#37 def to_hash; end # @return [String, nil] # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#16 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#17 def type; end # @return [String, nil] # - # source://sentry-ruby//lib/sentry/breadcrumb.rb#16 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#17 def type=(_arg0); end private - # source://sentry-ruby//lib/sentry/breadcrumb.rb#61 + # source://sentry-ruby//lib/sentry/breadcrumb.rb#62 def serialized_data; end end -# source://sentry-ruby//lib/sentry/breadcrumb.rb#5 +# source://sentry-ruby//lib/sentry/breadcrumb.rb#6 Sentry::Breadcrumb::DATA_SERIALIZATION_ERROR_MESSAGE = T.let(T.unsafe(nil), String) +# source://sentry-ruby//lib/sentry/breadcrumb.rb#5 +Sentry::Breadcrumb::MAX_NESTING = T.let(T.unsafe(nil), Integer) + # source://sentry-ruby//lib/sentry/breadcrumb_buffer.rb#6 class Sentry::BreadcrumbBuffer include ::Enumerable @@ -1106,111 +941,119 @@ Sentry::BreadcrumbBuffer::DEFAULT_SIZE = T.let(T.unsafe(nil), Integer) # source://sentry-ruby//lib/sentry-ruby.rb#43 Sentry::CAPTURED_SIGNATURE = T.let(T.unsafe(nil), Symbol) -# source://sentry-ruby//lib/sentry/check_in_event.rb#7 +# source://sentry-ruby//lib/sentry/check_in_event.rb#8 class Sentry::CheckInEvent < ::Sentry::Event # @return [CheckInEvent] a new instance of CheckInEvent # - # source://sentry-ruby//lib/sentry/check_in_event.rb#32 + # source://sentry-ruby//lib/sentry/check_in_event.rb#33 def initialize(slug:, status:, duration: T.unsafe(nil), monitor_config: T.unsafe(nil), check_in_id: T.unsafe(nil), **options); end # uuid to identify this check-in. # # @return [String] # - # source://sentry-ruby//lib/sentry/check_in_event.rb#12 + # source://sentry-ruby//lib/sentry/check_in_event.rb#13 def check_in_id; end # uuid to identify this check-in. # # @return [String] # - # source://sentry-ruby//lib/sentry/check_in_event.rb#12 + # source://sentry-ruby//lib/sentry/check_in_event.rb#13 def check_in_id=(_arg0); end # Duration of this check since it has started in seconds. # # @return [Integer, nil] # - # source://sentry-ruby//lib/sentry/check_in_event.rb#20 + # source://sentry-ruby//lib/sentry/check_in_event.rb#21 def duration; end # Duration of this check since it has started in seconds. # # @return [Integer, nil] # - # source://sentry-ruby//lib/sentry/check_in_event.rb#20 + # source://sentry-ruby//lib/sentry/check_in_event.rb#21 def duration=(_arg0); end # Monitor configuration to support upserts. # # @return [Cron::MonitorConfig, nil] # - # source://sentry-ruby//lib/sentry/check_in_event.rb#24 + # source://sentry-ruby//lib/sentry/check_in_event.rb#25 def monitor_config; end # Monitor configuration to support upserts. # # @return [Cron::MonitorConfig, nil] # - # source://sentry-ruby//lib/sentry/check_in_event.rb#24 + # source://sentry-ruby//lib/sentry/check_in_event.rb#25 def monitor_config=(_arg0); end # Identifier of the monitor for this check-in. # # @return [String] # - # source://sentry-ruby//lib/sentry/check_in_event.rb#16 + # source://sentry-ruby//lib/sentry/check_in_event.rb#17 def monitor_slug; end # Identifier of the monitor for this check-in. # # @return [String] # - # source://sentry-ruby//lib/sentry/check_in_event.rb#16 + # source://sentry-ruby//lib/sentry/check_in_event.rb#17 def monitor_slug=(_arg0); end # Status of this check-in. # # @return [Symbol] # - # source://sentry-ruby//lib/sentry/check_in_event.rb#28 + # source://sentry-ruby//lib/sentry/check_in_event.rb#29 def status; end # Status of this check-in. # # @return [Symbol] # - # source://sentry-ruby//lib/sentry/check_in_event.rb#28 + # source://sentry-ruby//lib/sentry/check_in_event.rb#29 def status=(_arg0); end # @return [Hash] # - # source://sentry-ruby//lib/sentry/check_in_event.rb#50 + # source://sentry-ruby//lib/sentry/check_in_event.rb#51 def to_hash; end end -# source://sentry-ruby//lib/sentry/check_in_event.rb#8 +# source://sentry-ruby//lib/sentry/check_in_event.rb#9 Sentry::CheckInEvent::TYPE = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/check_in_event.rb#30 +# source://sentry-ruby//lib/sentry/check_in_event.rb#31 Sentry::CheckInEvent::VALID_STATUSES = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/client.rb#6 +# source://sentry-ruby//lib/sentry/client.rb#9 class Sentry::Client include ::Sentry::LoggingHelper # @param configuration [Configuration] # @return [Client] a new instance of Client # - # source://sentry-ruby//lib/sentry/client.rb#24 + # source://sentry-ruby//lib/sentry/client.rb#27 def initialize(configuration); end + # Buffer a log event to be sent later with other logs in a single envelope + # + # @param event [LogEvent] the log event to be buffered + # @return [LogEvent] + # + # source://sentry-ruby//lib/sentry/client.rb#101 + def buffer_log_event(event, scope); end + # Capture an envelope directly. # # @param envelope [Envelope] the envelope to be captured. # @return [void] # - # source://sentry-ruby//lib/sentry/client.rb#94 + # source://sentry-ruby//lib/sentry/client.rb#110 def capture_envelope(envelope); end # Applies the given scope's data to the event and sends it to Sentry. @@ -1220,12 +1063,12 @@ class Sentry::Client # @param hint [Hash] the hint data that'll be passed to `before_send` callback and the scope's event processors. # @return [Event, nil] # - # source://sentry-ruby//lib/sentry/client.rb#48 + # source://sentry-ruby//lib/sentry/client.rb#55 def capture_event(event, scope, hint = T.unsafe(nil)); end # Returns the value of attribute configuration. # - # source://sentry-ruby//lib/sentry/client.rb#18 + # source://sentry-ruby//lib/sentry/client.rb#24 def configuration; end # Initializes a CheckInEvent object with the given options. @@ -1238,7 +1081,7 @@ class Sentry::Client # @param check_in_id [String, nil] for updating the status of an existing monitor # @return [Event] # - # source://sentry-ruby//lib/sentry/client.rb#149 + # source://sentry-ruby//lib/sentry/client.rb#166 def event_from_check_in(slug, status, hint = T.unsafe(nil), duration: T.unsafe(nil), monitor_config: T.unsafe(nil), check_in_id: T.unsafe(nil)); end # Initializes an Event object with the given exception. Returns `nil` if the exception's class is excluded from reporting. @@ -1247,16 +1090,27 @@ class Sentry::Client # @param hint [Hash] the hint data that'll be passed to `before_send` callback and the scope's event processors. # @return [Event, nil] # - # source://sentry-ruby//lib/sentry/client.rb#109 + # source://sentry-ruby//lib/sentry/client.rb#126 def event_from_exception(exception, hint = T.unsafe(nil)); end + # Initializes a LogEvent object with the given message and options + # + # @option options + # @param message [String] the log message + # @param level [Symbol] the log level (:trace, :debug, :info, :warn, :error, :fatal) + # @param options [Hash] additional options + # @return [LogEvent] the created log event + # + # source://sentry-ruby//lib/sentry/client.rb#195 + def event_from_log(message, level:, **options); end + # Initializes an Event object with the given message. # # @param message [String] the message to be reported. # @param hint [Hash] the hint data that'll be passed to `before_send` callback and the scope's event processors. # @return [Event] # - # source://sentry-ruby//lib/sentry/client.rb#129 + # source://sentry-ruby//lib/sentry/client.rb#146 def event_from_message(message, hint = T.unsafe(nil), backtrace: T.unsafe(nil)); end # Initializes an Event object with the given Transaction object. @@ -1264,14 +1118,14 @@ class Sentry::Client # @param transaction [Transaction] the transaction to be recorded. # @return [TransactionEvent] # - # source://sentry-ruby//lib/sentry/client.rb#173 + # source://sentry-ruby//lib/sentry/client.rb#206 def event_from_transaction(transaction); end # Flush pending events to Sentry. # # @return [void] # - # source://sentry-ruby//lib/sentry/client.rb#100 + # source://sentry-ruby//lib/sentry/client.rb#116 def flush; end # Generates a W3C Baggage header for distributed tracing from the given Span. @@ -1281,7 +1135,7 @@ class Sentry::Client # @param span [Span] the span to generate trace from. # @return [String, nil] # - # source://sentry-ruby//lib/sentry/client.rb#276 + # source://sentry-ruby//lib/sentry/client.rb#356 def generate_baggage(span); end # Generates a Sentry trace for distribted tracing from the given Span. @@ -1291,49 +1145,58 @@ class Sentry::Client # @param span [Span] the span to generate trace from. # @return [String, nil] # - # source://sentry-ruby//lib/sentry/client.rb#262 + # source://sentry-ruby//lib/sentry/client.rb#342 def generate_sentry_trace(span); end - # @deprecated Use Sentry.logger to retrieve the current logger instead. + # Returns the value of attribute log_event_buffer. # # source://sentry-ruby//lib/sentry/client.rb#21 - def logger; end + def log_event_buffer; end # Send an envelope directly to Sentry. # # @param envelope [Envelope] the envelope to be sent. # @return [void] # - # source://sentry-ruby//lib/sentry/client.rb#243 + # source://sentry-ruby//lib/sentry/client.rb#323 def send_envelope(envelope); end - # source://sentry-ruby//lib/sentry/client.rb#178 + # source://sentry-ruby//lib/sentry/client.rb#211 def send_event(event, hint = T.unsafe(nil)); end + # Send an envelope with batched logs + # + # @api private + # @param log_events [Array] the log events to be sent + # @return [void] + # + # source://sentry-ruby//lib/sentry/client.rb#277 + def send_logs(log_events); end + # The Transport object that'll send events for the client. # # @return [SpotlightTransport, nil] # - # source://sentry-ruby//lib/sentry/client.rb#15 + # source://sentry-ruby//lib/sentry/client.rb#18 def spotlight_transport; end # The Transport object that'll send events for the client. # # @return [Transport] # - # source://sentry-ruby//lib/sentry/client.rb#11 + # source://sentry-ruby//lib/sentry/client.rb#14 def transport; end private - # source://sentry-ruby//lib/sentry/client.rb#296 + # source://sentry-ruby//lib/sentry/client.rb#376 def dispatch_async_event(async_block, event, hint); end - # source://sentry-ruby//lib/sentry/client.rb#290 + # source://sentry-ruby//lib/sentry/client.rb#370 def dispatch_background_event(event, hint); end end -# source://sentry-ruby//lib/sentry/configuration.rb#17 +# source://sentry-ruby//lib/sentry/configuration.rb#19 class Sentry::Configuration include ::Sentry::CustomInspection include ::Sentry::LoggingHelper @@ -1341,7 +1204,7 @@ class Sentry::Configuration # @return [Configuration] a new instance of Configuration # - # source://sentry-ruby//lib/sentry/configuration.rb#405 + # source://sentry-ruby//lib/sentry/configuration.rb#436 def initialize; end # Directories to be recognized as part of your app. e.g. if you @@ -1352,7 +1215,7 @@ class Sentry::Configuration # # @return [Regexp, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#29 + # source://sentry-ruby//lib/sentry/configuration.rb#31 def app_dirs_pattern; end # Directories to be recognized as part of your app. e.g. if you @@ -1363,7 +1226,7 @@ class Sentry::Configuration # # @return [Regexp, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#29 + # source://sentry-ruby//lib/sentry/configuration.rb#31 def app_dirs_pattern=(_arg0); end # Provide an object that responds to `call` to send events asynchronously. @@ -1372,24 +1235,24 @@ class Sentry::Configuration # @deprecated It will be removed in the next major release. Please read https://github.com/getsentry/sentry-ruby/issues/1522 for more information # @return [Proc, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#36 + # source://sentry-ruby//lib/sentry/configuration.rb#38 def async; end - # source://sentry-ruby//lib/sentry/configuration.rb#490 + # source://sentry-ruby//lib/sentry/configuration.rb#525 def async=(value); end # Track sessions in request/response cycles automatically # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#278 + # source://sentry-ruby//lib/sentry/configuration.rb#305 def auto_session_tracking; end # Track sessions in request/response cycles automatically # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#278 + # source://sentry-ruby//lib/sentry/configuration.rb#305 def auto_session_tracking=(_arg0); end # The maximum queue size for the background worker. @@ -1399,7 +1262,7 @@ class Sentry::Configuration # # @return [Integer] # - # source://sentry-ruby//lib/sentry/configuration.rb#53 + # source://sentry-ruby//lib/sentry/configuration.rb#55 def background_worker_max_queue; end # The maximum queue size for the background worker. @@ -1409,7 +1272,7 @@ class Sentry::Configuration # # @return [Integer] # - # source://sentry-ruby//lib/sentry/configuration.rb#53 + # source://sentry-ruby//lib/sentry/configuration.rb#55 def background_worker_max_queue=(_arg0); end # to send events in a non-blocking way, sentry-ruby has its own background worker @@ -1422,7 +1285,7 @@ class Sentry::Configuration # # @return [Integer] # - # source://sentry-ruby//lib/sentry/configuration.rb#46 + # source://sentry-ruby//lib/sentry/configuration.rb#48 def background_worker_threads; end # to send events in a non-blocking way, sentry-ruby has its own background worker @@ -1435,7 +1298,7 @@ class Sentry::Configuration # # @return [Integer] # - # source://sentry-ruby//lib/sentry/configuration.rb#46 + # source://sentry-ruby//lib/sentry/configuration.rb#48 def background_worker_threads=(_arg0); end # a proc/lambda that takes an array of stack traces @@ -1447,7 +1310,7 @@ class Sentry::Configuration # end # @return [Proc, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#64 + # source://sentry-ruby//lib/sentry/configuration.rb#66 def backtrace_cleanup_callback; end # a proc/lambda that takes an array of stack traces @@ -1459,7 +1322,7 @@ class Sentry::Configuration # end # @return [Proc, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#64 + # source://sentry-ruby//lib/sentry/configuration.rb#66 def backtrace_cleanup_callback=(_arg0); end # Optional Proc, called before adding the breadcrumb to the current scope @@ -1471,10 +1334,10 @@ class Sentry::Configuration # end # @return [Proc] # - # source://sentry-ruby//lib/sentry/configuration.rb#73 + # source://sentry-ruby//lib/sentry/configuration.rb#75 def before_breadcrumb; end - # source://sentry-ruby//lib/sentry/configuration.rb#531 + # source://sentry-ruby//lib/sentry/configuration.rb#566 def before_breadcrumb=(value); end # Optional Proc, called before sending an event to the server @@ -1491,12 +1354,36 @@ class Sentry::Configuration # end # @return [Proc] # - # source://sentry-ruby//lib/sentry/configuration.rb#87 + # source://sentry-ruby//lib/sentry/configuration.rb#89 def before_send; end - # source://sentry-ruby//lib/sentry/configuration.rb#519 + # source://sentry-ruby//lib/sentry/configuration.rb#554 def before_send=(value); end + # Optional Proc, called before sending an event to the server + # + # @example + # config.before_send_log = lambda do |log| + # log.attributes["sentry"] = true + # log + # end + # @return [Proc] + # + # source://sentry-ruby//lib/sentry/configuration.rb#111 + def before_send_log; end + + # Optional Proc, called before sending an event to the server + # + # @example + # config.before_send_log = lambda do |log| + # log.attributes["sentry"] = true + # log + # end + # @return [Proc] + # + # source://sentry-ruby//lib/sentry/configuration.rb#111 + def before_send_log=(_arg0); end + # Optional Proc, called before sending an event to the server # # @example @@ -1510,10 +1397,10 @@ class Sentry::Configuration # end # @return [Proc] # - # source://sentry-ruby//lib/sentry/configuration.rb#100 + # source://sentry-ruby//lib/sentry/configuration.rb#102 def before_send_transaction; end - # source://sentry-ruby//lib/sentry/configuration.rb#525 + # source://sentry-ruby//lib/sentry/configuration.rb#560 def before_send_transaction=(value); end # An array of breadcrumbs loggers to be used. Available options are: @@ -1527,10 +1414,10 @@ class Sentry::Configuration # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#112 + # source://sentry-ruby//lib/sentry/configuration.rb#123 def breadcrumbs_logger; end - # source://sentry-ruby//lib/sentry/configuration.rb#506 + # source://sentry-ruby//lib/sentry/configuration.rb#541 def breadcrumbs_logger=(logger); end # Whether to capture local variables from the raised exception's frame. Default is false. @@ -1538,38 +1425,38 @@ class Sentry::Configuration # @deprecated Use {#include_local_variables} instead. # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#155 + # source://sentry-ruby//lib/sentry/configuration.rb#177 def capture_exception_frame_locals; end # @deprecated Use {#include_local_variables=} instead. # - # source://sentry-ruby//lib/sentry/configuration.rb#169 + # source://sentry-ruby//lib/sentry/configuration.rb#180 def capture_exception_frame_locals=(value); end # Number of lines of code context to capture, or nil for none # # @return [Integer, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#120 + # source://sentry-ruby//lib/sentry/configuration.rb#131 def context_lines; end # Number of lines of code context to capture, or nil for none # # @return [Integer, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#120 + # source://sentry-ruby//lib/sentry/configuration.rb#131 def context_lines=(_arg0); end # Cron related configuration. # # @return [Cron::Configuration] # - # source://sentry-ruby//lib/sentry/configuration.rb#245 + # source://sentry-ruby//lib/sentry/configuration.rb#268 def cron; end # @return [String, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#630 + # source://sentry-ruby//lib/sentry/configuration.rb#665 def csp_report_uri; end # Whether the SDK should run in the debugging mode. Default is false. @@ -1577,7 +1464,7 @@ class Sentry::Configuration # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#129 + # source://sentry-ruby//lib/sentry/configuration.rb#140 def debug; end # Whether the SDK should run in the debugging mode. Default is false. @@ -1585,22 +1472,22 @@ class Sentry::Configuration # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#129 + # source://sentry-ruby//lib/sentry/configuration.rb#140 def debug=(_arg0); end # @api private # - # source://sentry-ruby//lib/sentry/configuration.rb#652 + # source://sentry-ruby//lib/sentry/configuration.rb#687 def detect_release; end # the dsn value, whether it's set via `config.dsn=` or `ENV["SENTRY_DSN"]` # # @return [String] # - # source://sentry-ruby//lib/sentry/configuration.rb#133 + # source://sentry-ruby//lib/sentry/configuration.rb#144 def dsn; end - # source://sentry-ruby//lib/sentry/configuration.rb#478 + # source://sentry-ruby//lib/sentry/configuration.rb#513 def dsn=(value); end # Whether to downsample transactions automatically because of backpressure. @@ -1609,7 +1496,7 @@ class Sentry::Configuration # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#284 + # source://sentry-ruby//lib/sentry/configuration.rb#311 def enable_backpressure_handling; end # Whether to downsample transactions automatically because of backpressure. @@ -1618,38 +1505,52 @@ class Sentry::Configuration # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#284 + # source://sentry-ruby//lib/sentry/configuration.rb#311 def enable_backpressure_handling=(_arg0); end + # Enable Structured Logging + # + # @return [Boolean] + # + # source://sentry-ruby//lib/sentry/configuration.rb#290 + def enable_logs; end + + # Enable Structured Logging + # + # @return [Boolean] + # + # source://sentry-ruby//lib/sentry/configuration.rb#290 + def enable_logs=(_arg0); end + # Easier way to use performance tracing # If set to true, will set traces_sample_rate to 1.0 # # @deprecated It will be removed in the next major release. # @return [Boolean, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#269 + # source://sentry-ruby//lib/sentry/configuration.rb#296 def enable_tracing; end - # source://sentry-ruby//lib/sentry/configuration.rb#545 + # source://sentry-ruby//lib/sentry/configuration.rb#580 def enable_tracing=(enable_tracing); end # Whitelist of enabled_environments that will send notifications to Sentry. Array of Strings. # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#137 + # source://sentry-ruby//lib/sentry/configuration.rb#148 def enabled_environments; end # Whitelist of enabled_environments that will send notifications to Sentry. Array of Strings. # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#137 + # source://sentry-ruby//lib/sentry/configuration.rb#148 def enabled_environments=(_arg0); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#608 + # source://sentry-ruby//lib/sentry/configuration.rb#643 def enabled_in_current_env?; end # Array of patches to apply. @@ -1657,7 +1558,7 @@ class Sentry::Configuration # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#308 + # source://sentry-ruby//lib/sentry/configuration.rb#335 def enabled_patches; end # Array of patches to apply. @@ -1665,46 +1566,46 @@ class Sentry::Configuration # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#308 + # source://sentry-ruby//lib/sentry/configuration.rb#335 def enabled_patches=(_arg0); end # RACK_ENV by default. # # @return [String] # - # source://sentry-ruby//lib/sentry/configuration.rb#124 + # source://sentry-ruby//lib/sentry/configuration.rb#135 def environment; end - # source://sentry-ruby//lib/sentry/configuration.rb#537 + # source://sentry-ruby//lib/sentry/configuration.rb#572 def environment=(environment); end # @api private # - # source://sentry-ruby//lib/sentry/configuration.rb#665 + # source://sentry-ruby//lib/sentry/configuration.rb#700 def error_messages; end # these are not config options # - # source://sentry-ruby//lib/sentry/configuration.rb#312 + # source://sentry-ruby//lib/sentry/configuration.rb#343 def errors; end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#595 + # source://sentry-ruby//lib/sentry/configuration.rb#630 def exception_class_allowed?(exc); end # Logger 'progname's to exclude from breadcrumbs # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#141 + # source://sentry-ruby//lib/sentry/configuration.rb#152 def exclude_loggers; end # Logger 'progname's to exclude from breadcrumbs # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#141 + # source://sentry-ruby//lib/sentry/configuration.rb#152 def exclude_loggers=(_arg0); end # Array of exception classes that should never be sent. See IGNORE_DEFAULT. @@ -1712,7 +1613,7 @@ class Sentry::Configuration # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#146 + # source://sentry-ruby//lib/sentry/configuration.rb#157 def excluded_exceptions; end # Array of exception classes that should never be sent. See IGNORE_DEFAULT. @@ -1720,57 +1621,57 @@ class Sentry::Configuration # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#146 + # source://sentry-ruby//lib/sentry/configuration.rb#157 def excluded_exceptions=(_arg0); end # these are not config options # - # source://sentry-ruby//lib/sentry/configuration.rb#312 + # source://sentry-ruby//lib/sentry/configuration.rb#343 def gem_specs; end # Whether to capture local variables from the raised exception's frame. Default is false. # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#155 + # source://sentry-ruby//lib/sentry/configuration.rb#166 def include_local_variables; end # Whether to capture local variables from the raised exception's frame. Default is false. # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#155 + # source://sentry-ruby//lib/sentry/configuration.rb#166 def include_local_variables=(_arg0); end # Boolean to check nested exceptions when deciding if to exclude. Defaults to true # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#150 + # source://sentry-ruby//lib/sentry/configuration.rb#161 def inspect_exception_causes_for_exclusion; end # Boolean to check nested exceptions when deciding if to exclude. Defaults to true # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#150 + # source://sentry-ruby//lib/sentry/configuration.rb#161 def inspect_exception_causes_for_exclusion=(_arg0); end # Boolean to check nested exceptions when deciding if to exclude. Defaults to true # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#150 + # source://sentry-ruby//lib/sentry/configuration.rb#162 def inspect_exception_causes_for_exclusion?; end # The instrumenter to use, :sentry or :otel # # @return [Symbol] # - # source://sentry-ruby//lib/sentry/configuration.rb#293 + # source://sentry-ruby//lib/sentry/configuration.rb#320 def instrumenter; end - # source://sentry-ruby//lib/sentry/configuration.rb#541 + # source://sentry-ruby//lib/sentry/configuration.rb#576 def instrumenter=(instrumenter); end # You may provide your own LineCache for matching paths with source files. @@ -1779,7 +1680,7 @@ class Sentry::Configuration # @return [LineCache] # @see LineCache # - # source://sentry-ruby//lib/sentry/configuration.rb#181 + # source://sentry-ruby//lib/sentry/configuration.rb#192 def linecache; end # You may provide your own LineCache for matching paths with source files. @@ -1788,54 +1689,62 @@ class Sentry::Configuration # @return [LineCache] # @see LineCache # - # source://sentry-ruby//lib/sentry/configuration.rb#181 + # source://sentry-ruby//lib/sentry/configuration.rb#192 def linecache=(_arg0); end - # Logger used by Sentry. In Rails, this is the Rails logger, otherwise - # Sentry provides its own Sentry::Logger. + # @deprecated Use {#sdk_logger} instead. # - # @return [Logger] - # - # source://sentry-ruby//lib/sentry/configuration.rb#186 + # source://sentry-ruby//lib/sentry/configuration.rb#206 def logger; end - # Logger used by Sentry. In Rails, this is the Rails logger, otherwise - # Sentry provides its own Sentry::Logger. + # @deprecated Use {#sdk_logger=} instead. # - # @return [Logger] - # - # source://sentry-ruby//lib/sentry/configuration.rb#186 - def logger=(_arg0); end + # source://sentry-ruby//lib/sentry/configuration.rb#200 + def logger=(logger); end # Max number of breadcrumbs a breadcrumb buffer can hold # # @return [Integer] # - # source://sentry-ruby//lib/sentry/configuration.rb#116 + # source://sentry-ruby//lib/sentry/configuration.rb#127 def max_breadcrumbs; end # Max number of breadcrumbs a breadcrumb buffer can hold # # @return [Integer] # - # source://sentry-ruby//lib/sentry/configuration.rb#116 + # source://sentry-ruby//lib/sentry/configuration.rb#127 def max_breadcrumbs=(_arg0); end + # Maximum number of log events to buffer before sending + # + # @return [Integer] + # + # source://sentry-ruby//lib/sentry/configuration.rb#339 + def max_log_events; end + + # Maximum number of log events to buffer before sending + # + # @return [Integer] + # + # source://sentry-ruby//lib/sentry/configuration.rb#339 + def max_log_events=(_arg0); end + # Metrics related configuration. # # @return [Metrics::Configuration] # - # source://sentry-ruby//lib/sentry/configuration.rb#249 + # source://sentry-ruby//lib/sentry/configuration.rb#272 def metrics; end # The profiler class # # @return [Class] # - # source://sentry-ruby//lib/sentry/configuration.rb#297 + # source://sentry-ruby//lib/sentry/configuration.rb#324 def profiler_class; end - # source://sentry-ruby//lib/sentry/configuration.rb#564 + # source://sentry-ruby//lib/sentry/configuration.rb#599 def profiler_class=(profiler_class); end # Take a float between 0.0 and 1.0 as the sample rate for capturing profiles. @@ -1844,15 +1753,15 @@ class Sentry::Configuration # # @return [Float, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#303 + # source://sentry-ruby//lib/sentry/configuration.rb#330 def profiles_sample_rate; end - # source://sentry-ruby//lib/sentry/configuration.rb#560 + # source://sentry-ruby//lib/sentry/configuration.rb#595 def profiles_sample_rate=(profiles_sample_rate); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#623 + # source://sentry-ruby//lib/sentry/configuration.rb#658 def profiling_enabled?; end # Project directory root for in_app detection. Could be Rails root, etc. @@ -1860,7 +1769,7 @@ class Sentry::Configuration # # @return [String] # - # source://sentry-ruby//lib/sentry/configuration.rb#191 + # source://sentry-ruby//lib/sentry/configuration.rb#214 def project_root; end # Project directory root for in_app detection. Could be Rails root, etc. @@ -1868,54 +1777,51 @@ class Sentry::Configuration # # @return [String] # - # source://sentry-ruby//lib/sentry/configuration.rb#191 + # source://sentry-ruby//lib/sentry/configuration.rb#214 def project_root=(_arg0); end # Insert sentry-trace to outgoing requests' headers # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#200 + # source://sentry-ruby//lib/sentry/configuration.rb#223 def propagate_traces; end # Insert sentry-trace to outgoing requests' headers # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#200 + # source://sentry-ruby//lib/sentry/configuration.rb#223 def propagate_traces=(_arg0); end # Array of rack env parameters to be included in the event sent to sentry. # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#204 + # source://sentry-ruby//lib/sentry/configuration.rb#227 def rack_env_whitelist; end # Array of rack env parameters to be included in the event sent to sentry. # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#204 + # source://sentry-ruby//lib/sentry/configuration.rb#227 def rack_env_whitelist=(_arg0); end - # source://sentry-rails/5.23.0/lib/sentry/rails/configuration.rb#11 - def rails; end - # Release tag to be passed with every event sent to Sentry. # We automatically try to set this to a git SHA or Capistrano release. # # @return [String] # - # source://sentry-ruby//lib/sentry/configuration.rb#209 + # source://sentry-ruby//lib/sentry/configuration.rb#232 def release; end - # source://sentry-ruby//lib/sentry/configuration.rb#484 + # source://sentry-ruby//lib/sentry/configuration.rb#519 def release=(value); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#585 + # source://sentry-ruby//lib/sentry/configuration.rb#620 def sample_allowed?; end # The sampling factor to apply to events. A value of 0.0 will not send @@ -1923,7 +1829,7 @@ class Sentry::Configuration # # @return [Float] # - # source://sentry-ruby//lib/sentry/configuration.rb#214 + # source://sentry-ruby//lib/sentry/configuration.rb#237 def sample_rate; end # The sampling factor to apply to events. A value of 0.0 will not send @@ -1931,15 +1837,31 @@ class Sentry::Configuration # # @return [Float] # - # source://sentry-ruby//lib/sentry/configuration.rb#214 + # source://sentry-ruby//lib/sentry/configuration.rb#237 def sample_rate=(_arg0); end + # Logger used by Sentry. In Rails, this is the Rails logger, otherwise + # Sentry provides its own Sentry::Logger. + # + # @return [Logger] + # + # source://sentry-ruby//lib/sentry/configuration.rb#197 + def sdk_logger; end + + # Logger used by Sentry. In Rails, this is the Rails logger, otherwise + # Sentry provides its own Sentry::Logger. + # + # @return [Logger] + # + # source://sentry-ruby//lib/sentry/configuration.rb#197 + def sdk_logger=(_arg0); end + # Send diagnostic client reports about dropped events, true by default # tries to attach to an existing envelope max once every 30s # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#274 + # source://sentry-ruby//lib/sentry/configuration.rb#301 def send_client_reports; end # Send diagnostic client reports about dropped events, true by default @@ -1947,7 +1869,7 @@ class Sentry::Configuration # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#274 + # source://sentry-ruby//lib/sentry/configuration.rb#301 def send_client_reports=(_arg0); end # When send_default_pii's value is false (default), sensitive information like @@ -1959,7 +1881,7 @@ class Sentry::Configuration # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#227 + # source://sentry-ruby//lib/sentry/configuration.rb#250 def send_default_pii; end # When send_default_pii's value is false (default), sensitive information like @@ -1971,63 +1893,63 @@ class Sentry::Configuration # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#227 + # source://sentry-ruby//lib/sentry/configuration.rb#250 def send_default_pii=(_arg0); end # Include module versions in reports - boolean. # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#218 + # source://sentry-ruby//lib/sentry/configuration.rb#241 def send_modules; end # Include module versions in reports - boolean. # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#218 + # source://sentry-ruby//lib/sentry/configuration.rb#241 def send_modules=(_arg0); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#575 + # source://sentry-ruby//lib/sentry/configuration.rb#610 def sending_allowed?; end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#579 + # source://sentry-ruby//lib/sentry/configuration.rb#614 def sending_to_dsn_allowed?; end - # source://sentry-ruby//lib/sentry/configuration.rb#478 + # source://sentry-ruby//lib/sentry/configuration.rb#517 def server=(value); end # @return [String] # - # source://sentry-ruby//lib/sentry/configuration.rb#237 + # source://sentry-ruby//lib/sentry/configuration.rb#260 def server_name; end # @return [String] # - # source://sentry-ruby//lib/sentry/configuration.rb#237 + # source://sentry-ruby//lib/sentry/configuration.rb#260 def server_name=(_arg0); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#591 + # source://sentry-ruby//lib/sentry/configuration.rb#626 def session_tracking?; end # Allow to skip Sentry emails within rake tasks # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#231 + # source://sentry-ruby//lib/sentry/configuration.rb#254 def skip_rake_integration; end # Allow to skip Sentry emails within rake tasks # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#231 + # source://sentry-ruby//lib/sentry/configuration.rb#254 def skip_rake_integration=(_arg0); end # Whether to capture events and traces into Spotlight. Default is false. @@ -2038,7 +1960,7 @@ class Sentry::Configuration # # @return [Boolean, String] # - # source://sentry-ruby//lib/sentry/configuration.rb#163 + # source://sentry-ruby//lib/sentry/configuration.rb#174 def spotlight; end # Whether to capture events and traces into Spotlight. Default is false. @@ -2049,12 +1971,12 @@ class Sentry::Configuration # # @return [Boolean, String] # - # source://sentry-ruby//lib/sentry/configuration.rb#163 + # source://sentry-ruby//lib/sentry/configuration.rb#174 def spotlight=(_arg0); end # @api private # - # source://sentry-ruby//lib/sentry/configuration.rb#640 + # source://sentry-ruby//lib/sentry/configuration.rb#675 def stacktrace_builder; end # Whether to strip the load path while constructing the backtrace frame filename. @@ -2062,7 +1984,7 @@ class Sentry::Configuration # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#196 + # source://sentry-ruby//lib/sentry/configuration.rb#219 def strip_backtrace_load_path; end # Whether to strip the load path while constructing the backtrace frame filename. @@ -2070,7 +1992,7 @@ class Sentry::Configuration # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#196 + # source://sentry-ruby//lib/sentry/configuration.rb#219 def strip_backtrace_load_path=(_arg0); end # Allowlist of outgoing request targets to which sentry-trace and baggage headers are attached. @@ -2078,7 +2000,7 @@ class Sentry::Configuration # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#289 + # source://sentry-ruby//lib/sentry/configuration.rb#316 def trace_propagation_targets; end # Allowlist of outgoing request targets to which sentry-trace and baggage headers are attached. @@ -2086,17 +2008,17 @@ class Sentry::Configuration # # @return [Array] # - # source://sentry-ruby//lib/sentry/configuration.rb#289 + # source://sentry-ruby//lib/sentry/configuration.rb#316 def trace_propagation_targets=(_arg0); end # Take a float between 0.0 and 1.0 as the sample rate for tracing events (transactions). # # @return [Float, nil] # - # source://sentry-ruby//lib/sentry/configuration.rb#253 + # source://sentry-ruby//lib/sentry/configuration.rb#276 def traces_sample_rate; end - # source://sentry-ruby//lib/sentry/configuration.rb#556 + # source://sentry-ruby//lib/sentry/configuration.rb#591 def traces_sample_rate=(traces_sample_rate); end # Take a Proc that controls the sample rate for every tracing event, e.g. @@ -2109,7 +2031,7 @@ class Sentry::Configuration # end # @return [Proc] # - # source://sentry-ruby//lib/sentry/configuration.rb#263 + # source://sentry-ruby//lib/sentry/configuration.rb#286 def traces_sampler; end # Take a Proc that controls the sample rate for every tracing event, e.g. @@ -2122,153 +2044,153 @@ class Sentry::Configuration # end # @return [Proc] # - # source://sentry-ruby//lib/sentry/configuration.rb#263 + # source://sentry-ruby//lib/sentry/configuration.rb#286 def traces_sampler=(_arg0); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#617 + # source://sentry-ruby//lib/sentry/configuration.rb#652 def tracing_enabled?; end # Transport related configuration. # # @return [Transport::Configuration] # - # source://sentry-ruby//lib/sentry/configuration.rb#241 + # source://sentry-ruby//lib/sentry/configuration.rb#264 def transport; end # IP ranges for trusted proxies that will be skipped when calculating IP address. # - # source://sentry-ruby//lib/sentry/configuration.rb#234 + # source://sentry-ruby//lib/sentry/configuration.rb#257 def trusted_proxies; end # IP ranges for trusted proxies that will be skipped when calculating IP address. # - # source://sentry-ruby//lib/sentry/configuration.rb#234 + # source://sentry-ruby//lib/sentry/configuration.rb#257 def trusted_proxies=(_arg0); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#612 + # source://sentry-ruby//lib/sentry/configuration.rb#647 def valid_sample_rate?(sample_rate); end - # source://sentry-ruby//lib/sentry/configuration.rb#460 + # source://sentry-ruby//lib/sentry/configuration.rb#495 def validate; end private # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#707 + # source://sentry-ruby//lib/sentry/configuration.rb#742 def capture_in_environment?; end - # source://sentry-ruby//lib/sentry/configuration.rb#723 + # source://sentry-ruby//lib/sentry/configuration.rb#758 def environment_from_env; end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#678 + # source://sentry-ruby//lib/sentry/configuration.rb#713 def excluded_exception?(incoming_exception); end - # source://sentry-ruby//lib/sentry/configuration.rb#684 + # source://sentry-ruby//lib/sentry/configuration.rb#719 def excluded_exception_classes; end - # source://sentry-ruby//lib/sentry/configuration.rb#688 + # source://sentry-ruby//lib/sentry/configuration.rb#723 def get_exception_class(x); end - # source://sentry-ruby//lib/sentry/configuration.rb#672 + # source://sentry-ruby//lib/sentry/configuration.rb#707 def init_dsn(dsn_string); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#692 + # source://sentry-ruby//lib/sentry/configuration.rb#727 def matches_exception?(excluded_exception_class, incoming_exception); end - # source://sentry-ruby//lib/sentry/configuration.rb#747 + # source://sentry-ruby//lib/sentry/configuration.rb#782 def processor_count; end - # source://sentry-ruby//lib/sentry/configuration.rb#741 + # source://sentry-ruby//lib/sentry/configuration.rb#776 def run_post_initialization_callbacks; end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#737 + # source://sentry-ruby//lib/sentry/configuration.rb#772 def running_on_heroku?; end - # source://sentry-ruby//lib/sentry/configuration.rb#700 + # source://sentry-ruby//lib/sentry/configuration.rb#735 def safe_const_get(x); end - # source://sentry-ruby//lib/sentry/configuration.rb#727 + # source://sentry-ruby//lib/sentry/configuration.rb#762 def server_name_from_env; end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/configuration.rb#714 + # source://sentry-ruby//lib/sentry/configuration.rb#749 def valid?; end class << self # allow extensions to add their hooks to the Configuration class # - # source://sentry-ruby//lib/sentry/configuration.rb#361 + # source://sentry-ruby//lib/sentry/configuration.rb#392 def add_post_initialization_callback(&block); end # Post initialization callbacks are called at the end of initialization process # allowing extending the configuration of sentry-ruby by multiple extensions # - # source://sentry-ruby//lib/sentry/configuration.rb#356 + # source://sentry-ruby//lib/sentry/configuration.rb#387 def post_initialization_callbacks; end - # source://sentry-ruby//lib/sentry/configuration.rb#369 + # source://sentry-ruby//lib/sentry/configuration.rb#400 def validate(attribute, optional: T.unsafe(nil), type: T.unsafe(nil)); end - # source://sentry-ruby//lib/sentry/configuration.rb#365 + # source://sentry-ruby//lib/sentry/configuration.rb#396 def validations; end private - # source://sentry-ruby//lib/sentry/configuration.rb#379 + # source://sentry-ruby//lib/sentry/configuration.rb#410 def build_validation_proc(optional, type); end end end -# source://sentry-ruby//lib/sentry/configuration.rb#351 +# source://sentry-ruby//lib/sentry/configuration.rb#382 Sentry::Configuration::APP_DIRS_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://sentry-ruby//lib/sentry/configuration.rb#349 +# source://sentry-ruby//lib/sentry/configuration.rb#380 Sentry::Configuration::DEFAULT_PATCHES = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/configuration.rb#338 +# source://sentry-ruby//lib/sentry/configuration.rb#369 Sentry::Configuration::HEROKU_DYNO_METADATA_MESSAGE = T.let(T.unsafe(nil), String) # Most of these errors generate 4XX responses. In general, Sentry clients # only automatically report 5xx responses. # -# source://sentry-ruby//lib/sentry/configuration.rb#325 +# source://sentry-ruby//lib/sentry/configuration.rb#356 Sentry::Configuration::IGNORE_DEFAULT = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/configuration.rb#345 +# source://sentry-ruby//lib/sentry/configuration.rb#376 Sentry::Configuration::INSTRUMENTERS = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/configuration.rb#341 +# source://sentry-ruby//lib/sentry/configuration.rb#372 Sentry::Configuration::LOG_PREFIX = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/configuration.rb#342 +# source://sentry-ruby//lib/sentry/configuration.rb#373 Sentry::Configuration::MODULE_SEPARATOR = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/configuration.rb#347 +# source://sentry-ruby//lib/sentry/configuration.rb#378 Sentry::Configuration::PROPAGATION_TARGETS_MATCH_ALL = T.let(T.unsafe(nil), Regexp) # These exceptions could enter Puma's `lowlevel_error_handler` callback and the SDK's Puma integration # But they are mostly considered as noise and should be ignored by default # Please see https://github.com/getsentry/sentry-ruby/pull/2026 for more information # -# source://sentry-ruby//lib/sentry/configuration.rb#317 +# source://sentry-ruby//lib/sentry/configuration.rb#348 Sentry::Configuration::PUMA_IGNORE_DEFAULT = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/configuration.rb#332 +# source://sentry-ruby//lib/sentry/configuration.rb#363 Sentry::Configuration::RACK_ENV_WHITELIST_DEFAULT = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/configuration.rb#343 +# source://sentry-ruby//lib/sentry/configuration.rb#374 Sentry::Configuration::SKIP_INSPECTION_ATTRIBUTES = T.let(T.unsafe(nil), Array) # source://sentry-ruby//lib/sentry/cron/configuration.rb#4 @@ -2731,7 +2653,7 @@ end # This is an abstract class that defines the shared attributes of an event. # Please don't use it directly. The user-facing classes are its child classes. # -# source://sentry-ruby//lib/sentry/event.rb#14 +# source://sentry-ruby//lib/sentry/event.rb#15 class Sentry::Event include ::Sentry::CustomInspection @@ -2740,35 +2662,35 @@ class Sentry::Event # @param message [String, nil] # @return [Event] a new instance of Event # - # source://sentry-ruby//lib/sentry/event.rb#51 + # source://sentry-ruby//lib/sentry/event.rb#52 def initialize(configuration:, integration_meta: T.unsafe(nil), message: T.unsafe(nil)); end # @return [Array] # - # source://sentry-ruby//lib/sentry/event.rb#46 + # source://sentry-ruby//lib/sentry/event.rb#47 def attachments; end # @return [Array] # - # source://sentry-ruby//lib/sentry/event.rb#46 + # source://sentry-ruby//lib/sentry/event.rb#47 def attachments=(_arg0); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def breadcrumbs; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def breadcrumbs=(_arg0); end # @deprecated This method will be removed in v5.0.0. Please just use Sentry.configuration # @return [Configuration] # - # source://sentry-ruby//lib/sentry/event.rb#85 + # source://sentry-ruby//lib/sentry/event.rb#86 def configuration; end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def contexts; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def contexts=(_arg0); end # Dynamic Sampling Context (DSC) that gets attached @@ -2776,7 +2698,7 @@ class Sentry::Event # # @return [Hash, nil] # - # source://sentry-ruby//lib/sentry/event.rb#43 + # source://sentry-ruby//lib/sentry/event.rb#44 def dynamic_sampling_context; end # Dynamic Sampling Context (DSC) that gets attached @@ -2784,34 +2706,34 @@ class Sentry::Event # # @return [Hash, nil] # - # source://sentry-ruby//lib/sentry/event.rb#43 + # source://sentry-ruby//lib/sentry/event.rb#44 def dynamic_sampling_context=(_arg0); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def environment; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def environment=(_arg0); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def event_id; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def event_id=(_arg0); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def extra; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def extra=(_arg0); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def fingerprint; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def fingerprint=(_arg0); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def level; end # Sets the event's level. @@ -2819,25 +2741,25 @@ class Sentry::Event # @param level [String, Symbol] # @return [void] # - # source://sentry-ruby//lib/sentry/event.rb#99 + # source://sentry-ruby//lib/sentry/event.rb#100 def level=(level); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def message; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def message=(_arg0); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def modules; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def modules=(_arg0); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def platform; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def platform=(_arg0); end # Sets the event's request environment data with RequestInterface. @@ -2846,39 +2768,39 @@ class Sentry::Event # @return [void] # @see RequestInterface # - # source://sentry-ruby//lib/sentry/event.rb#107 + # source://sentry-ruby//lib/sentry/event.rb#108 def rack_env=(env); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def release; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def release=(_arg0); end # @return [RequestInterface] # - # source://sentry-ruby//lib/sentry/event.rb#38 + # source://sentry-ruby//lib/sentry/event.rb#39 def request; end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def sdk; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def sdk=(_arg0); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def server_name; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def server_name=(_arg0); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def tags; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def tags=(_arg0); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def timestamp; end # Sets the event's timestamp. @@ -2886,72 +2808,72 @@ class Sentry::Event # @param time [Time, Float] # @return [void] # - # source://sentry-ruby//lib/sentry/event.rb#92 + # source://sentry-ruby//lib/sentry/event.rb#93 def timestamp=(time); end # @return [Hash] # - # source://sentry-ruby//lib/sentry/event.rb#120 + # source://sentry-ruby//lib/sentry/event.rb#121 def to_hash; end # @return [Hash] # - # source://sentry-ruby//lib/sentry/event.rb#128 + # source://sentry-ruby//lib/sentry/event.rb#129 def to_json_compatible; end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def transaction; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def transaction=(_arg0); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def transaction_info; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def transaction_info=(_arg0); end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def type; end - # source://sentry-ruby//lib/sentry/event.rb#35 + # source://sentry-ruby//lib/sentry/event.rb#36 def user; end - # source://sentry-ruby//lib/sentry/event.rb#34 + # source://sentry-ruby//lib/sentry/event.rb#35 def user=(_arg0); end private - # source://sentry-ruby//lib/sentry/event.rb#134 + # source://sentry-ruby//lib/sentry/event.rb#135 def add_request_interface(env); end # When behind a proxy (or if the user is using a proxy), we can't use # REMOTE_ADDR to determine the Event IP, and must use other headers instead. # - # source://sentry-ruby//lib/sentry/event.rb#148 + # source://sentry-ruby//lib/sentry/event.rb#149 def calculate_real_ip_from_rack(env); end - # source://sentry-ruby//lib/sentry/event.rb#138 + # source://sentry-ruby//lib/sentry/event.rb#139 def serialize_attributes; end end -# source://sentry-ruby//lib/sentry/event.rb#28 +# source://sentry-ruby//lib/sentry/event.rb#29 Sentry::Event::MAX_MESSAGE_SIZE_IN_BYTES = T.let(T.unsafe(nil), Integer) # These are readable attributes. # -# source://sentry-ruby//lib/sentry/event.rb#17 +# source://sentry-ruby//lib/sentry/event.rb#18 Sentry::Event::SERIALIZEABLE_ATTRIBUTES = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/event.rb#30 +# source://sentry-ruby//lib/sentry/event.rb#31 Sentry::Event::SKIP_INSPECTION_ATTRIBUTES = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/event.rb#15 +# source://sentry-ruby//lib/sentry/event.rb#16 Sentry::Event::TYPE = T.let(T.unsafe(nil), String) # These are writable attributes. # -# source://sentry-ruby//lib/sentry/event.rb#26 +# source://sentry-ruby//lib/sentry/event.rb#27 Sentry::Event::WRITER_ATTRIBUTES = T.let(T.unsafe(nil), Array) # source://sentry-ruby//lib/sentry/interfaces/exception.rb#6 @@ -3113,7 +3035,7 @@ class Sentry::Hub # source://sentry-ruby//lib/sentry/hub.rb#17 def initialize(client, scope); end - # source://sentry-ruby//lib/sentry/hub.rb#252 + # source://sentry-ruby//lib/sentry/hub.rb#262 def add_breadcrumb(breadcrumb, hint: T.unsafe(nil)); end # source://sentry-ruby//lib/sentry/hub.rb#75 @@ -3122,12 +3044,15 @@ class Sentry::Hub # source://sentry-ruby//lib/sentry/hub.rb#195 def capture_check_in(slug, status, **options); end - # source://sentry-ruby//lib/sentry/hub.rb#219 + # source://sentry-ruby//lib/sentry/hub.rb#229 def capture_event(event, **options, &block); end # source://sentry-ruby//lib/sentry/hub.rb#154 def capture_exception(exception, **options, &block); end + # source://sentry-ruby//lib/sentry/hub.rb#219 + def capture_log_event(message, **options); end + # source://sentry-ruby//lib/sentry/hub.rb#180 def capture_message(message, **options, &block); end @@ -3140,7 +3065,7 @@ class Sentry::Hub # source://sentry-ruby//lib/sentry/hub.rb#83 def configure_scope(&block); end - # source://sentry-ruby//lib/sentry/hub.rb#336 + # source://sentry-ruby//lib/sentry/hub.rb#346 def continue_trace(env, **options); end # source://sentry-ruby//lib/sentry/hub.rb#53 @@ -3154,19 +3079,19 @@ class Sentry::Hub # source://sentry-ruby//lib/sentry/hub.rb#61 def current_scope; end - # source://sentry-ruby//lib/sentry/hub.rb#281 + # source://sentry-ruby//lib/sentry/hub.rb#291 def end_session; end - # source://sentry-ruby//lib/sentry/hub.rb#311 + # source://sentry-ruby//lib/sentry/hub.rb#321 def get_baggage; end - # source://sentry-ruby//lib/sentry/hub.rb#318 + # source://sentry-ruby//lib/sentry/hub.rb#328 def get_trace_propagation_headers; end - # source://sentry-ruby//lib/sentry/hub.rb#330 + # source://sentry-ruby//lib/sentry/hub.rb#340 def get_trace_propagation_meta; end - # source://sentry-ruby//lib/sentry/hub.rb#304 + # source://sentry-ruby//lib/sentry/hub.rb#314 def get_traceparent; end # Returns the value of attribute last_event_id. @@ -3198,7 +3123,7 @@ class Sentry::Hub # source://sentry-ruby//lib/sentry/hub.rb#26 def start_profiler!(transaction); end - # source://sentry-ruby//lib/sentry/hub.rb#276 + # source://sentry-ruby//lib/sentry/hub.rb#286 def start_session; end # source://sentry-ruby//lib/sentry/hub.rb#115 @@ -3214,7 +3139,7 @@ class Sentry::Hub # this doesn't do anything to the already initialized background worker # but it temporarily disables dispatching events to it # - # source://sentry-ruby//lib/sentry/hub.rb#267 + # source://sentry-ruby//lib/sentry/hub.rb#277 def with_background_worker_disabled(&block); end # source://sentry-ruby//lib/sentry/hub.rb#134 @@ -3223,37 +3148,37 @@ class Sentry::Hub # source://sentry-ruby//lib/sentry/hub.rb#87 def with_scope(&block); end - # source://sentry-ruby//lib/sentry/hub.rb#295 + # source://sentry-ruby//lib/sentry/hub.rb#305 def with_session_tracking(&block); end private - # source://sentry-ruby//lib/sentry/hub.rb#356 + # source://sentry-ruby//lib/sentry/hub.rb#366 def current_layer; end end -# source://sentry-ruby//lib/sentry/hub.rb#360 +# source://sentry-ruby//lib/sentry/hub.rb#370 class Sentry::Hub::Layer # @return [Layer] a new instance of Layer # - # source://sentry-ruby//lib/sentry/hub.rb#364 + # source://sentry-ruby//lib/sentry/hub.rb#374 def initialize(client, scope); end # Returns the value of attribute client. # - # source://sentry-ruby//lib/sentry/hub.rb#361 + # source://sentry-ruby//lib/sentry/hub.rb#371 def client; end # Sets the attribute client # # @param value the value to set the attribute client to. # - # source://sentry-ruby//lib/sentry/hub.rb#361 + # source://sentry-ruby//lib/sentry/hub.rb#371 def client=(_arg0); end # Returns the value of attribute scope. # - # source://sentry-ruby//lib/sentry/hub.rb#362 + # source://sentry-ruby//lib/sentry/hub.rb#372 def scope; end end @@ -3328,6 +3253,239 @@ class Sentry::LineCache def valid_path?(path); end end +# Event type that represents a log entry with its attributes +# +# @see https://develop.sentry.dev/sdk/telemetry/logs/#log-envelope-item-payload +# +# source://sentry-ruby//lib/sentry/log_event.rb#7 +class Sentry::LogEvent + # @return [LogEvent] a new instance of LogEvent + # + # source://sentry-ruby//lib/sentry/log_event.rb#70 + def initialize(configuration: T.unsafe(nil), **options); end + + # Returns the value of attribute attributes. + # + # source://sentry-ruby//lib/sentry/log_event.rb#43 + def attributes; end + + # Sets the attribute attributes + # + # @param value the value to set the attribute attributes to. + # + # source://sentry-ruby//lib/sentry/log_event.rb#43 + def attributes=(_arg0); end + + # Returns the value of attribute body. + # + # source://sentry-ruby//lib/sentry/log_event.rb#43 + def body; end + + # Sets the attribute body + # + # @param value the value to set the attribute body to. + # + # source://sentry-ruby//lib/sentry/log_event.rb#43 + def body=(_arg0); end + + # source://sentry-ruby//lib/sentry/log_event.rb#45 + def configuration; end + + # source://sentry-ruby//lib/sentry/log_event.rb#45 + def contexts; end + + # source://sentry-ruby//lib/sentry/log_event.rb#45 + def environment; end + + # Returns the value of attribute level. + # + # source://sentry-ruby//lib/sentry/log_event.rb#43 + def level; end + + # Sets the attribute level + # + # @param value the value to set the attribute level to. + # + # source://sentry-ruby//lib/sentry/log_event.rb#43 + def level=(_arg0); end + + # source://sentry-ruby//lib/sentry/log_event.rb#45 + def release; end + + # source://sentry-ruby//lib/sentry/log_event.rb#45 + def server_name; end + + # Returns the value of attribute template. + # + # source://sentry-ruby//lib/sentry/log_event.rb#43 + def template; end + + # Sets the attribute template + # + # @param value the value to set the attribute template to. + # + # source://sentry-ruby//lib/sentry/log_event.rb#43 + def template=(_arg0); end + + # source://sentry-ruby//lib/sentry/log_event.rb#45 + def timestamp; end + + # source://sentry-ruby//lib/sentry/log_event.rb#85 + def to_hash; end + + # source://sentry-ruby//lib/sentry/log_event.rb#45 + def trace_id; end + + # Returns the value of attribute user. + # + # source://sentry-ruby//lib/sentry/log_event.rb#43 + def user; end + + # Sets the attribute user + # + # @param value the value to set the attribute user to. + # + # source://sentry-ruby//lib/sentry/log_event.rb#43 + def user=(_arg0); end + + private + + # source://sentry-ruby//lib/sentry/log_event.rb#171 + def attribute_hash(value); end + + # @return [Boolean] + # + # source://sentry-ruby//lib/sentry/log_event.rb#202 + def is_template?; end + + # source://sentry-ruby//lib/sentry/log_event.rb#179 + def parameters; end + + # source://sentry-ruby//lib/sentry/log_event.rb#93 + def serialize(name); end + + # source://sentry-ruby//lib/sentry/log_event.rb#149 + def serialize_attributes; end + + # source://sentry-ruby//lib/sentry/log_event.rb#127 + def serialize_body; end + + # source://sentry-ruby//lib/sentry/log_event.rb#103 + def serialize_level; end + + # source://sentry-ruby//lib/sentry/log_event.rb#123 + def serialize_parent_span_id; end + + # source://sentry-ruby//lib/sentry/log_event.rb#107 + def serialize_sdk_name; end + + # source://sentry-ruby//lib/sentry/log_event.rb#111 + def serialize_sdk_version; end + + # source://sentry-ruby//lib/sentry/log_event.rb#115 + def serialize_timestamp; end + + # source://sentry-ruby//lib/sentry/log_event.rb#119 + def serialize_trace_id; end + + # source://sentry-ruby//lib/sentry/log_event.rb#145 + def serialize_user_email; end + + # source://sentry-ruby//lib/sentry/log_event.rb#137 + def serialize_user_id; end + + # source://sentry-ruby//lib/sentry/log_event.rb#141 + def serialize_user_username; end + + # source://sentry-ruby//lib/sentry/log_event.rb#198 + def template_tokens; end + + # source://sentry-ruby//lib/sentry/log_event.rb#175 + def value_type(value); end +end + +# source://sentry-ruby//lib/sentry/log_event.rb#11 +Sentry::LogEvent::DEFAULT_ATTRIBUTES = T.let(T.unsafe(nil), Hash) + +# source://sentry-ruby//lib/sentry/log_event.rb#10 +Sentry::LogEvent::DEFAULT_PARAMETERS = T.let(T.unsafe(nil), Array) + +# source://sentry-ruby//lib/sentry/log_event.rb#41 +Sentry::LogEvent::LEVELS = T.let(T.unsafe(nil), Array) + +# source://sentry-ruby//lib/sentry/log_event.rb#25 +Sentry::LogEvent::SENTRY_ATTRIBUTES = T.let(T.unsafe(nil), Hash) + +# source://sentry-ruby//lib/sentry/log_event.rb#13 +Sentry::LogEvent::SERIALIZEABLE_ATTRIBUTES = T.let(T.unsafe(nil), Array) + +# source://sentry-ruby//lib/sentry/log_event.rb#47 +Sentry::LogEvent::SERIALIZERS = T.let(T.unsafe(nil), Hash) + +# source://sentry-ruby//lib/sentry/log_event.rb#68 +Sentry::LogEvent::TOKEN_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://sentry-ruby//lib/sentry/log_event.rb#8 +Sentry::LogEvent::TYPE = T.let(T.unsafe(nil), String) + +# source://sentry-ruby//lib/sentry/log_event.rb#35 +Sentry::LogEvent::USER_ATTRIBUTES = T.let(T.unsafe(nil), Hash) + +# source://sentry-ruby//lib/sentry/log_event.rb#61 +Sentry::LogEvent::VALUE_TYPES = T.let(T.unsafe(nil), Hash) + +# LogEventBuffer buffers log events and sends them to Sentry in a single envelope. +# +# This is used internally by the `Sentry::Client`. +# +# source://sentry-ruby//lib/sentry/log_event_buffer.rb#11 +class Sentry::LogEventBuffer < ::Sentry::ThreadedPeriodicWorker + # @return [LogEventBuffer] a new instance of LogEventBuffer + # + # source://sentry-ruby//lib/sentry/log_event_buffer.rb#18 + def initialize(configuration, client); end + + # @raise [ArgumentError] + # + # source://sentry-ruby//lib/sentry/log_event_buffer.rb#49 + def add_event(event); end + + # @return [Boolean] + # + # source://sentry-ruby//lib/sentry/log_event_buffer.rb#60 + def empty?; end + + # source://sentry-ruby//lib/sentry/log_event_buffer.rb#34 + def flush; end + + # Returns the value of attribute pending_events. + # + # source://sentry-ruby//lib/sentry/log_event_buffer.rb#16 + def pending_events; end + + # source://sentry-ruby//lib/sentry/log_event_buffer.rb#47 + def run; end + + # source://sentry-ruby//lib/sentry/log_event_buffer.rb#64 + def size; end + + # source://sentry-ruby//lib/sentry/log_event_buffer.rb#29 + def start; end + + private + + # source://sentry-ruby//lib/sentry/log_event_buffer.rb#70 + def send_events; end +end + +# source://sentry-ruby//lib/sentry/log_event_buffer.rb#13 +Sentry::LogEventBuffer::DEFAULT_MAX_EVENTS = T.let(T.unsafe(nil), Integer) + +# seconds +# +# source://sentry-ruby//lib/sentry/log_event_buffer.rb#12 +Sentry::LogEventBuffer::FLUSH_INTERVAL = T.let(T.unsafe(nil), Integer) + # source://sentry-ruby//lib/sentry/logger.rb#6 class Sentry::Logger < ::Logger # @return [Logger] a new instance of Logger @@ -3342,16 +3500,23 @@ Sentry::Logger::LOG_PREFIX = T.let(T.unsafe(nil), String) # source://sentry-ruby//lib/sentry/logger.rb#8 Sentry::Logger::PROGNAME = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/utils/logging_helper.rb#4 +# @private +# +# source://sentry-ruby//lib/sentry/utils/logging_helper.rb#5 module Sentry::LoggingHelper - # source://sentry-ruby//lib/sentry/utils/logging_helper.rb#14 + # source://sentry-ruby//lib/sentry/utils/logging_helper.rb#20 def log_debug(message); end - # source://sentry-ruby//lib/sentry/utils/logging_helper.rb#5 + # source://sentry-ruby//lib/sentry/utils/logging_helper.rb#10 def log_error(message, exception, debug: T.unsafe(nil)); end - # source://sentry-ruby//lib/sentry/utils/logging_helper.rb#18 + # source://sentry-ruby//lib/sentry/utils/logging_helper.rb#25 def log_warn(message); end + + # Returns the value of attribute sdk_logger. + # + # source://sentry-ruby//lib/sentry/utils/logging_helper.rb#7 + def sdk_logger; end end # source://sentry-ruby//lib/sentry-ruby.rb#41 @@ -3453,7 +3618,7 @@ class Sentry::Metrics::Aggregator < ::Sentry::ThreadedPeriodicWorker # source://sentry-ruby//lib/sentry/metrics/aggregator.rb#34 def flush_shift; end - # source://sentry-ruby//lib/sentry/metrics/aggregator.rb#91 + # source://sentry-ruby//lib/sentry/metrics/aggregator.rb#119 def run(force: T.unsafe(nil)); end # exposed only for testing @@ -3874,55 +4039,55 @@ class Sentry::Profiler # @return [Profiler] a new instance of Profiler # - # source://sentry-ruby//lib/sentry/profiler.rb#19 + # source://sentry-ruby//lib/sentry/profiler.rb#20 def initialize(configuration); end - # source://sentry-ruby//lib/sentry/profiler.rb#50 + # source://sentry-ruby//lib/sentry/profiler.rb#51 def active_thread_id; end # Returns the value of attribute event_id. # - # source://sentry-ruby//lib/sentry/profiler.rb#17 + # source://sentry-ruby//lib/sentry/profiler.rb#18 def event_id; end # Returns the value of attribute sampled. # - # source://sentry-ruby//lib/sentry/profiler.rb#17 + # source://sentry-ruby//lib/sentry/profiler.rb#18 def sampled; end # Sets initial sampling decision of the profile. # # @return [void] # - # source://sentry-ruby//lib/sentry/profiler.rb#56 + # source://sentry-ruby//lib/sentry/profiler.rb#57 def set_initial_sample_decision(transaction_sampled); end - # source://sentry-ruby//lib/sentry/profiler.rb#31 + # source://sentry-ruby//lib/sentry/profiler.rb#32 def start; end # Returns the value of attribute started. # - # source://sentry-ruby//lib/sentry/profiler.rb#17 + # source://sentry-ruby//lib/sentry/profiler.rb#18 def started; end - # source://sentry-ruby//lib/sentry/profiler.rb#42 + # source://sentry-ruby//lib/sentry/profiler.rb#43 def stop; end - # source://sentry-ruby//lib/sentry/profiler.rb#83 + # source://sentry-ruby//lib/sentry/profiler.rb#84 def to_hash; end private - # source://sentry-ruby//lib/sentry/profiler.rb#194 + # source://sentry-ruby//lib/sentry/profiler.rb#195 def log(message); end - # source://sentry-ruby//lib/sentry/profiler.rb#198 + # source://sentry-ruby//lib/sentry/profiler.rb#199 def record_lost_event(reason); end end # 101 Hz in microseconds # -# source://sentry-ruby//lib/sentry/profiler.rb#13 +# source://sentry-ruby//lib/sentry/profiler.rb#14 Sentry::Profiler::DEFAULT_INTERVAL = T.let(T.unsafe(nil), Float) # source://sentry-ruby//lib/sentry/profiler/helpers.rb#7 @@ -3943,23 +4108,23 @@ module Sentry::Profiler::Helpers def split_module(name); end end -# source://sentry-ruby//lib/sentry/profiler.rb#14 +# source://sentry-ruby//lib/sentry/profiler.rb#15 Sentry::Profiler::MICRO_TO_NANO_SECONDS = T.let(T.unsafe(nil), Float) -# source://sentry-ruby//lib/sentry/profiler.rb#15 +# source://sentry-ruby//lib/sentry/profiler.rb#16 Sentry::Profiler::MIN_SAMPLES_REQUIRED = T.let(T.unsafe(nil), Integer) -# source://sentry-ruby//lib/sentry/profiler.rb#11 +# source://sentry-ruby//lib/sentry/profiler.rb#12 Sentry::Profiler::PLATFORM = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/profiler.rb#10 +# source://sentry-ruby//lib/sentry/profiler.rb#11 Sentry::Profiler::VERSION = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/propagation_context.rb#7 +# source://sentry-ruby//lib/sentry/propagation_context.rb#8 class Sentry::PropagationContext # @return [PropagationContext] a new instance of PropagationContext # - # source://sentry-ruby//lib/sentry/propagation_context.rb#36 + # source://sentry-ruby//lib/sentry/propagation_context.rb#37 def initialize(scope, env = T.unsafe(nil)); end # This is only for accessing the current baggage variable. @@ -3967,75 +4132,75 @@ class Sentry::PropagationContext # # @return [Baggage, nil] # - # source://sentry-ruby//lib/sentry/propagation_context.rb#34 + # source://sentry-ruby//lib/sentry/propagation_context.rb#35 def baggage; end # Returns the Baggage from the propagation context or populates as head SDK if empty. # # @return [Baggage, nil] # - # source://sentry-ruby//lib/sentry/propagation_context.rb#105 + # source://sentry-ruby//lib/sentry/propagation_context.rb#106 def get_baggage; end # Returns the Dynamic Sampling Context from the baggage. # # @return [Hash, nil] # - # source://sentry-ruby//lib/sentry/propagation_context.rb#112 + # source://sentry-ruby//lib/sentry/propagation_context.rb#113 def get_dynamic_sampling_context; end # Returns the trace context that can be used to embed in an Event. # # @return [Hash] # - # source://sentry-ruby//lib/sentry/propagation_context.rb#89 + # source://sentry-ruby//lib/sentry/propagation_context.rb#90 def get_trace_context; end # Returns the sentry-trace header from the propagation context. # # @return [String] # - # source://sentry-ruby//lib/sentry/propagation_context.rb#99 + # source://sentry-ruby//lib/sentry/propagation_context.rb#100 def get_traceparent; end # Is there an incoming trace or not? # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/propagation_context.rb#30 + # source://sentry-ruby//lib/sentry/propagation_context.rb#31 def incoming_trace; end # The sampling decision of the parent transaction. # # @return [Boolean, nil] # - # source://sentry-ruby//lib/sentry/propagation_context.rb#27 + # source://sentry-ruby//lib/sentry/propagation_context.rb#28 def parent_sampled; end # Span parent's span_id. # # @return [String, nil] # - # source://sentry-ruby//lib/sentry/propagation_context.rb#24 + # source://sentry-ruby//lib/sentry/propagation_context.rb#25 def parent_span_id; end # An uuid that can be used to identify the span. # # @return [String] # - # source://sentry-ruby//lib/sentry/propagation_context.rb#21 + # source://sentry-ruby//lib/sentry/propagation_context.rb#22 def span_id; end # An uuid that can be used to identify a trace. # # @return [String] # - # source://sentry-ruby//lib/sentry/propagation_context.rb#18 + # source://sentry-ruby//lib/sentry/propagation_context.rb#19 def trace_id; end private - # source://sentry-ruby//lib/sentry/propagation_context.rb#118 + # source://sentry-ruby//lib/sentry/propagation_context.rb#119 def populate_head_baggage; end class << self @@ -4044,12 +4209,12 @@ class Sentry::PropagationContext # @param sentry_trace [String] the sentry-trace header value from the previous transaction. # @return [Array, nil] # - # source://sentry-ruby//lib/sentry/propagation_context.rb#77 + # source://sentry-ruby//lib/sentry/propagation_context.rb#78 def extract_sentry_trace(sentry_trace); end end end -# source://sentry-ruby//lib/sentry/propagation_context.rb#8 +# source://sentry-ruby//lib/sentry/propagation_context.rb#9 Sentry::PropagationContext::SENTRY_TRACE_REGEXP = T.let(T.unsafe(nil), Regexp) # source://sentry-ruby//lib/sentry/puma.rb#6 @@ -4388,7 +4553,7 @@ class Sentry::Scope # Add a new attachment to the scope. # - # source://sentry-ruby//lib/sentry/scope.rb#295 + # source://sentry-ruby//lib/sentry/scope.rb#305 def add_attachment(**opts); end # Adds the breadcrumb to the scope's breadcrumbs buffer. @@ -4396,7 +4561,7 @@ class Sentry::Scope # @param breadcrumb [Breadcrumb] # @return [void] # - # source://sentry-ruby//lib/sentry/scope.rb#85 + # source://sentry-ruby//lib/sentry/scope.rb#95 def add_breadcrumb(breadcrumb); end # Adds a new event processor [Proc] to the scope. @@ -4404,7 +4569,7 @@ class Sentry::Scope # @param block [Proc] # @return [void] # - # source://sentry-ruby//lib/sentry/scope.rb#283 + # source://sentry-ruby//lib/sentry/scope.rb#293 def add_event_processor(&block); end # Applies stored attributes and event processors to the given event. @@ -4433,7 +4598,7 @@ class Sentry::Scope # # @return [void] # - # source://sentry-ruby//lib/sentry/scope.rb#91 + # source://sentry-ruby//lib/sentry/scope.rb#101 def clear_breadcrumbs; end # source://sentry-ruby//lib/sentry/scope.rb#30 @@ -4441,7 +4606,7 @@ class Sentry::Scope # @return [Scope] # - # source://sentry-ruby//lib/sentry/scope.rb#96 + # source://sentry-ruby//lib/sentry/scope.rb#106 def dup; end # source://sentry-ruby//lib/sentry/scope.rb#30 @@ -4458,21 +4623,21 @@ class Sentry::Scope # @param env [Hash, nil] # @return [void] # - # source://sentry-ruby//lib/sentry/scope.rb#290 + # source://sentry-ruby//lib/sentry/scope.rb#300 def generate_propagation_context(env = T.unsafe(nil)); end # Returns the associated Span object. # # @return [Span, nil] # - # source://sentry-ruby//lib/sentry/scope.rb#267 + # source://sentry-ruby//lib/sentry/scope.rb#277 def get_span; end # Returns the associated Transaction object. # # @return [Transaction, nil] # - # source://sentry-ruby//lib/sentry/scope.rb#261 + # source://sentry-ruby//lib/sentry/scope.rb#271 def get_transaction; end # source://sentry-ruby//lib/sentry/scope.rb#30 @@ -4487,7 +4652,7 @@ class Sentry::Scope # source://sentry-ruby//lib/sentry/scope.rb#30 def session; end - # source://sentry-ruby//lib/sentry/scope.rb#225 + # source://sentry-ruby//lib/sentry/scope.rb#235 def set_context(key, value); end # Updates the scope's contexts attribute by merging with the old value. @@ -4495,7 +4660,7 @@ class Sentry::Scope # @param contexts [Hash] # @return [Hash] # - # source://sentry-ruby//lib/sentry/scope.rb#213 + # source://sentry-ruby//lib/sentry/scope.rb#223 def set_contexts(contexts_hash); end # Adds a new key-value pair to current extras. @@ -4504,10 +4669,10 @@ class Sentry::Scope # @param value [Object] # @return [Hash] # - # source://sentry-ruby//lib/sentry/scope.rb#192 + # source://sentry-ruby//lib/sentry/scope.rb#202 def set_extra(key, value); end - # source://sentry-ruby//lib/sentry/scope.rb#183 + # source://sentry-ruby//lib/sentry/scope.rb#193 def set_extras(extras_hash); end # Sets the scope's fingerprint attribute. @@ -4515,7 +4680,7 @@ class Sentry::Scope # @param fingerprint [Array] # @return [Array] # - # source://sentry-ruby//lib/sentry/scope.rb#274 + # source://sentry-ruby//lib/sentry/scope.rb#284 def set_fingerprint(fingerprint); end # Sets the scope's level attribute. @@ -4523,7 +4688,7 @@ class Sentry::Scope # @param level [String, Symbol] # @return [void] # - # source://sentry-ruby//lib/sentry/scope.rb#233 + # source://sentry-ruby//lib/sentry/scope.rb#243 def set_level(level); end # Sets the scope's rack_env attribute. @@ -4531,7 +4696,7 @@ class Sentry::Scope # @param env [Hash] # @return [Hash] # - # source://sentry-ruby//lib/sentry/scope.rb#163 + # source://sentry-ruby//lib/sentry/scope.rb#173 def set_rack_env(env); end # Sets the currently active session on the scope. @@ -4539,7 +4704,7 @@ class Sentry::Scope # @param session [Session, nil] # @return [void] # - # source://sentry-ruby//lib/sentry/scope.rb#249 + # source://sentry-ruby//lib/sentry/scope.rb#259 def set_session(session); end # Sets the scope's span attribute. @@ -4547,7 +4712,7 @@ class Sentry::Scope # @param span [Span] # @return [Span] # - # source://sentry-ruby//lib/sentry/scope.rb#171 + # source://sentry-ruby//lib/sentry/scope.rb#181 def set_span(span); end # Adds a new key-value pair to current tags. @@ -4556,10 +4721,10 @@ class Sentry::Scope # @param value [Object] # @return [Hash] # - # source://sentry-ruby//lib/sentry/scope.rb#206 + # source://sentry-ruby//lib/sentry/scope.rb#216 def set_tag(key, value); end - # source://sentry-ruby//lib/sentry/scope.rb#197 + # source://sentry-ruby//lib/sentry/scope.rb#207 def set_tags(tags_hash); end # Appends a new transaction name to the scope. @@ -4568,10 +4733,10 @@ class Sentry::Scope # @param transaction_name [String] # @return [void] # - # source://sentry-ruby//lib/sentry/scope.rb#241 + # source://sentry-ruby//lib/sentry/scope.rb#251 def set_transaction_name(transaction_name, source: T.unsafe(nil)); end - # source://sentry-ruby//lib/sentry/scope.rb#177 + # source://sentry-ruby//lib/sentry/scope.rb#187 def set_user(user_hash); end # source://sentry-ruby//lib/sentry/scope.rb#30 @@ -4590,7 +4755,7 @@ class Sentry::Scope # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/scope.rb#255 + # source://sentry-ruby//lib/sentry/scope.rb#265 def transaction_source_low_quality?; end # Updates the scope's data from the given options. @@ -4604,7 +4769,7 @@ class Sentry::Scope # @param attachments [Array] # @return [Array] # - # source://sentry-ruby//lib/sentry/scope.rb#139 + # source://sentry-ruby//lib/sentry/scope.rb#149 def update_from_options(contexts: T.unsafe(nil), extra: T.unsafe(nil), tags: T.unsafe(nil), user: T.unsafe(nil), level: T.unsafe(nil), fingerprint: T.unsafe(nil), attachments: T.unsafe(nil), **options); end # Updates the scope's data from a given scope. @@ -4612,7 +4777,7 @@ class Sentry::Scope # @param scope [Scope] # @return [void] # - # source://sentry-ruby//lib/sentry/scope.rb#116 + # source://sentry-ruby//lib/sentry/scope.rb#126 def update_from_scope(scope); end # source://sentry-ruby//lib/sentry/scope.rb#30 @@ -4620,57 +4785,57 @@ class Sentry::Scope protected - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def attachments=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def breadcrumbs=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def contexts=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def event_processors=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def extra=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def fingerprint=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def level=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def propagation_context=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def rack_env=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def session=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def span=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def tags=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def transaction_name=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def transaction_source=(_arg0); end - # source://sentry-ruby//lib/sentry/scope.rb#303 + # source://sentry-ruby//lib/sentry/scope.rb#313 def user=(_arg0); end private - # source://sentry-ruby//lib/sentry/scope.rb#307 + # source://sentry-ruby//lib/sentry/scope.rb#317 def set_default_value; end - # source://sentry-ruby//lib/sentry/scope.rb#325 + # source://sentry-ruby//lib/sentry/scope.rb#335 def set_new_breadcrumb_buffer; end class << self @@ -4681,24 +4846,24 @@ class Sentry::Scope # @param block [Proc] # @return [void] # - # source://sentry-ruby//lib/sentry/scope.rb#365 + # source://sentry-ruby//lib/sentry/scope.rb#375 def add_global_event_processor(&block); end # Returns the global event processors array. # # @return [Array] # - # source://sentry-ruby//lib/sentry/scope.rb#355 + # source://sentry-ruby//lib/sentry/scope.rb#365 def global_event_processors; end # @return [Hash] # - # source://sentry-ruby//lib/sentry/scope.rb#331 + # source://sentry-ruby//lib/sentry/scope.rb#341 def os_context; end # @return [Hash] # - # source://sentry-ruby//lib/sentry/scope.rb#346 + # source://sentry-ruby//lib/sentry/scope.rb#356 def runtime_context; end end end @@ -4761,7 +4926,7 @@ class Sentry::SessionFlusher < ::Sentry::ThreadedPeriodicWorker # source://sentry-ruby//lib/sentry/session_flusher.rb#18 def flush; end - # source://sentry-ruby//lib/sentry/session_flusher.rb#18 + # source://sentry-ruby//lib/sentry/session_flusher.rb#24 def run; end private @@ -4849,85 +5014,85 @@ Sentry::SingleExceptionInterface::PROBLEMATIC_LOCAL_VALUE_REPLACEMENT = T.let(T. # source://sentry-ruby//lib/sentry/interfaces/single_exception.rb#9 Sentry::SingleExceptionInterface::SKIP_INSPECTION_ATTRIBUTES = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/span.rb#7 +# source://sentry-ruby//lib/sentry/span.rb#8 class Sentry::Span # @return [Span] a new instance of Span # - # source://sentry-ruby//lib/sentry/span.rb#117 + # source://sentry-ruby//lib/sentry/span.rb#118 def initialize(transaction:, description: T.unsafe(nil), op: T.unsafe(nil), status: T.unsafe(nil), trace_id: T.unsafe(nil), span_id: T.unsafe(nil), parent_span_id: T.unsafe(nil), sampled: T.unsafe(nil), start_timestamp: T.unsafe(nil), timestamp: T.unsafe(nil), origin: T.unsafe(nil)); end # Span data # # @return [Hash] # - # source://sentry-ruby//lib/sentry/span.rb#102 + # source://sentry-ruby//lib/sentry/span.rb#103 def data; end - # source://sentry-ruby//lib/sentry/span.rb#246 + # source://sentry-ruby//lib/sentry/span.rb#247 def deep_dup; end # Span description # # @return [String] # - # source://sentry-ruby//lib/sentry/span.rb#90 + # source://sentry-ruby//lib/sentry/span.rb#91 def description; end # Finishes the span by adding a timestamp. # # @return [self] # - # source://sentry-ruby//lib/sentry/span.rb#147 + # source://sentry-ruby//lib/sentry/span.rb#148 def finish(end_timestamp: T.unsafe(nil)); end # Returns the Dynamic Sampling Context from the transaction baggage. # # @return [Hash, nil] # - # source://sentry-ruby//lib/sentry/span.rb#170 + # source://sentry-ruby//lib/sentry/span.rb#171 def get_dynamic_sampling_context; end # Returns the span's context that can be used to embed in an Event. # # @return [Hash] # - # source://sentry-ruby//lib/sentry/span.rb#198 + # source://sentry-ruby//lib/sentry/span.rb#199 def get_trace_context; end # Collects gauge metrics on the span for metric summaries. # - # source://sentry-ruby//lib/sentry/span.rb#311 + # source://sentry-ruby//lib/sentry/span.rb#312 def metrics_local_aggregator; end - # source://sentry-ruby//lib/sentry/span.rb#315 + # source://sentry-ruby//lib/sentry/span.rb#316 def metrics_summary; end # Span operation # # @return [String] # - # source://sentry-ruby//lib/sentry/span.rb#93 + # source://sentry-ruby//lib/sentry/span.rb#94 def op; end # Span origin that tracks what kind of instrumentation created a span # # @return [String] # - # source://sentry-ruby//lib/sentry/span.rb#105 + # source://sentry-ruby//lib/sentry/span.rb#106 def origin; end # Span parent's span_id. # # @return [String] # - # source://sentry-ruby//lib/sentry/span.rb#78 + # source://sentry-ruby//lib/sentry/span.rb#79 def parent_span_id; end # Sampling result of the span. # # @return [Boolean, nil] # - # source://sentry-ruby//lib/sentry/span.rb#81 + # source://sentry-ruby//lib/sentry/span.rb#82 def sampled; end # Inserts a key-value pair to the span's data payload. @@ -4935,42 +5100,42 @@ class Sentry::Span # @param key [String, Symbol] # @param value [Object] # - # source://sentry-ruby//lib/sentry/span.rb#293 + # source://sentry-ruby//lib/sentry/span.rb#294 def set_data(key, value); end # Sets the span's description. # # @param description [String] description of the span. # - # source://sentry-ruby//lib/sentry/span.rb#258 + # source://sentry-ruby//lib/sentry/span.rb#259 def set_description(description); end # Sets the span's status with given http status code. # # @param status_code [String] example: "500". # - # source://sentry-ruby//lib/sentry/span.rb#277 + # source://sentry-ruby//lib/sentry/span.rb#278 def set_http_status(status_code); end # Sets the span's operation. # # @param op [String] operation of the span. # - # source://sentry-ruby//lib/sentry/span.rb#252 + # source://sentry-ruby//lib/sentry/span.rb#253 def set_op(op); end # Sets the origin of the span. # # @param origin [String] # - # source://sentry-ruby//lib/sentry/span.rb#306 + # source://sentry-ruby//lib/sentry/span.rb#307 def set_origin(origin); end # Sets the span's status. # - # @param satus [String] status of the span. + # @param status [String] status of the span. # - # source://sentry-ruby//lib/sentry/span.rb#265 + # source://sentry-ruby//lib/sentry/span.rb#266 def set_status(status); end # Sets a tag to the span. @@ -4978,21 +5143,21 @@ class Sentry::Span # @param key [String, Symbol] # @param value [String] # - # source://sentry-ruby//lib/sentry/span.rb#300 + # source://sentry-ruby//lib/sentry/span.rb#301 def set_tag(key, value); end # Sets the span's finish timestamp. # # @param timestamp [Float] finished time in float format (most precise). # - # source://sentry-ruby//lib/sentry/span.rb#271 + # source://sentry-ruby//lib/sentry/span.rb#272 def set_timestamp(timestamp); end # An uuid that can be used to identify the span. # # @return [String] # - # source://sentry-ruby//lib/sentry/span.rb#75 + # source://sentry-ruby//lib/sentry/span.rb#76 def span_id; end # The SpanRecorder the current span belongs to. @@ -5000,7 +5165,7 @@ class Sentry::Span # # @return [SpanRecorder] # - # source://sentry-ruby//lib/sentry/span.rb#110 + # source://sentry-ruby//lib/sentry/span.rb#111 def span_recorder; end # The SpanRecorder the current span belongs to. @@ -5008,42 +5173,42 @@ class Sentry::Span # # @return [SpanRecorder] # - # source://sentry-ruby//lib/sentry/span.rb#110 + # source://sentry-ruby//lib/sentry/span.rb#111 def span_recorder=(_arg0); end # Starts a child span with given attributes. # # @param attributes [Hash] the attributes for the child span. # - # source://sentry-ruby//lib/sentry/span.rb#213 + # source://sentry-ruby//lib/sentry/span.rb#214 def start_child(**attributes); end # Starting timestamp of the span. # # @return [Float] # - # source://sentry-ruby//lib/sentry/span.rb#84 + # source://sentry-ruby//lib/sentry/span.rb#85 def start_timestamp; end # Span status # # @return [String] # - # source://sentry-ruby//lib/sentry/span.rb#96 + # source://sentry-ruby//lib/sentry/span.rb#97 def status; end # Span tags # # @return [Hash] # - # source://sentry-ruby//lib/sentry/span.rb#99 + # source://sentry-ruby//lib/sentry/span.rb#100 def tags; end # Finishing timestamp of the span. # # @return [Float] # - # source://sentry-ruby//lib/sentry/span.rb#87 + # source://sentry-ruby//lib/sentry/span.rb#88 def timestamp; end # Generates a W3C Baggage header string for distributed tracing @@ -5051,26 +5216,26 @@ class Sentry::Span # # @return [String, nil] # - # source://sentry-ruby//lib/sentry/span.rb#164 + # source://sentry-ruby//lib/sentry/span.rb#165 def to_baggage; end # @return [Hash] # - # source://sentry-ruby//lib/sentry/span.rb#175 + # source://sentry-ruby//lib/sentry/span.rb#176 def to_hash; end # Generates a trace string that can be used to connect other transactions. # # @return [String] # - # source://sentry-ruby//lib/sentry/span.rb#154 + # source://sentry-ruby//lib/sentry/span.rb#155 def to_sentry_trace; end # An uuid that can be used to identify a trace. # # @return [String] # - # source://sentry-ruby//lib/sentry/span.rb#72 + # source://sentry-ruby//lib/sentry/span.rb#73 def trace_id; end # The Transaction object the Span belongs to. @@ -5078,7 +5243,7 @@ class Sentry::Span # # @return [Transaction] # - # source://sentry-ruby//lib/sentry/span.rb#115 + # source://sentry-ruby//lib/sentry/span.rb#116 def transaction; end # Starts a child span, yield it to the given block, and then finish the span after the block is executed. @@ -5091,17 +5256,17 @@ class Sentry::Span # @param block [Proc] the action to be recorded in the child span. # @yieldparam child_span [Span] # - # source://sentry-ruby//lib/sentry/span.rb#234 + # source://sentry-ruby//lib/sentry/span.rb#235 def with_child_span(**attributes, &block); end end -# source://sentry-ruby//lib/sentry/span.rb#68 +# source://sentry-ruby//lib/sentry/span.rb#69 Sentry::Span::DEFAULT_SPAN_ORIGIN = T.let(T.unsafe(nil), String) # We will try to be consistent with OpenTelemetry on this front going forward. # https://develop.sentry.dev/sdk/performance/span-data-conventions/ # -# source://sentry-ruby//lib/sentry/span.rb#10 +# source://sentry-ruby//lib/sentry/span.rb#11 module Sentry::Span::DataConventions; end # The name of the database being accessed. @@ -5109,77 +5274,77 @@ module Sentry::Span::DataConventions; end # (even if the command fails). # Example: myDatabase # -# source://sentry-ruby//lib/sentry/span.rb#24 +# source://sentry-ruby//lib/sentry/span.rb#25 Sentry::Span::DataConventions::DB_NAME = T.let(T.unsafe(nil), String) # An identifier for the database management system (DBMS) product being used. # Example: postgresql # -# source://sentry-ruby//lib/sentry/span.rb#18 +# source://sentry-ruby//lib/sentry/span.rb#19 Sentry::Span::DataConventions::DB_SYSTEM = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/span.rb#43 +# source://sentry-ruby//lib/sentry/span.rb#44 Sentry::Span::DataConventions::FILEPATH = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/span.rb#45 +# source://sentry-ruby//lib/sentry/span.rb#46 Sentry::Span::DataConventions::FUNCTION = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/span.rb#14 +# source://sentry-ruby//lib/sentry/span.rb#15 Sentry::Span::DataConventions::HTTP_METHOD = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/span.rb#13 +# source://sentry-ruby//lib/sentry/span.rb#14 Sentry::Span::DataConventions::HTTP_QUERY = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/span.rb#12 +# source://sentry-ruby//lib/sentry/span.rb#13 Sentry::Span::DataConventions::HTTP_STATUS_CODE = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/span.rb#44 +# source://sentry-ruby//lib/sentry/span.rb#45 Sentry::Span::DataConventions::LINENO = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/span.rb#49 +# source://sentry-ruby//lib/sentry/span.rb#50 Sentry::Span::DataConventions::MESSAGING_DESTINATION_NAME = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/span.rb#48 +# source://sentry-ruby//lib/sentry/span.rb#49 Sentry::Span::DataConventions::MESSAGING_MESSAGE_ID = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/span.rb#50 +# source://sentry-ruby//lib/sentry/span.rb#51 Sentry::Span::DataConventions::MESSAGING_MESSAGE_RECEIVE_LATENCY = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/span.rb#51 +# source://sentry-ruby//lib/sentry/span.rb#52 Sentry::Span::DataConventions::MESSAGING_MESSAGE_RETRY_COUNT = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/span.rb#46 +# source://sentry-ruby//lib/sentry/span.rb#47 Sentry::Span::DataConventions::NAMESPACE = T.let(T.unsafe(nil), String) # Name of the database host. # Example: example.com # -# source://sentry-ruby//lib/sentry/span.rb#28 +# source://sentry-ruby//lib/sentry/span.rb#29 Sentry::Span::DataConventions::SERVER_ADDRESS = T.let(T.unsafe(nil), String) # Logical server port number # Example: 80; 8080; 443 # -# source://sentry-ruby//lib/sentry/span.rb#32 +# source://sentry-ruby//lib/sentry/span.rb#33 Sentry::Span::DataConventions::SERVER_PORT = T.let(T.unsafe(nil), String) # Physical server IP address or Unix socket address. # Example: 10.5.3.2 # -# source://sentry-ruby//lib/sentry/span.rb#36 +# source://sentry-ruby//lib/sentry/span.rb#37 Sentry::Span::DataConventions::SERVER_SOCKET_ADDRESS = T.let(T.unsafe(nil), String) # Physical server port. # Recommended: If different than server.port. # Example: 16456 # -# source://sentry-ruby//lib/sentry/span.rb#41 +# source://sentry-ruby//lib/sentry/span.rb#42 Sentry::Span::DataConventions::SERVER_SOCKET_PORT = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/span.rb#11 +# source://sentry-ruby//lib/sentry/span.rb#12 Sentry::Span::DataConventions::URL = T.let(T.unsafe(nil), String) -# source://sentry-ruby//lib/sentry/span.rb#54 +# source://sentry-ruby//lib/sentry/span.rb#55 Sentry::Span::STATUS_MAP = T.let(T.unsafe(nil), Hash) # Designed to just report events to Spotlight in development. @@ -5472,6 +5637,138 @@ class Sentry::StacktraceInterface::Frame < ::Sentry::Interface def under_project_root?; end end +# Ruby Logger support Add commentMore actions +# intercepts any logger instance and send the log to Sentry too. +# +# source://sentry-ruby//lib/sentry/std_lib_logger.rb#6 +module Sentry::StdLibLogger + # source://sentry-ruby//lib/sentry/std_lib_logger.rb#15 + def add(severity, message = T.unsafe(nil), progname = T.unsafe(nil), &block); end +end + +# source://sentry-ruby//lib/sentry/std_lib_logger.rb#7 +Sentry::StdLibLogger::SEVERITY_MAP = T.let(T.unsafe(nil), Hash) + +# The StructuredLogger class implements Sentry's SDK telemetry logs protocol. +# It provides methods for logging messages at different severity levels and +# sending them to Sentry with structured data. +# +# This class follows the Sentry Logs Protocol as defined in: +# https://develop.sentry.dev/sdk/telemetry/logs/ +# +# @example Basic usage +# Sentry.logger.info("User logged in", user_id: 123) +# @example With structured data +# Sentry.logger.warn("API request failed", +# status_code: 404, +# endpoint: "/api/users", +# request_id: "abc-123" +# ) +# @example With a message template +# # Using positional parameters +# Sentry.logger.info("User %s logged in", ["Jane Doe"]) +# +# # Using hash parameters +# Sentry.logger.info("User %{name} logged in", name: "Jane Doe") +# +# # Using hash parameters and extra attributes +# Sentry.logger.info("User %{name} logged in", name: "Jane Doe", user_id: 312) +# @see https://develop.sentry.dev/sdk/telemetry/logs/ Sentry SDK Telemetry Logs Protocol +# +# source://sentry-ruby//lib/sentry/structured_logger.rb#32 +class Sentry::StructuredLogger + # Initializes a new StructuredLogger instance + # + # @param config [Configuration] The Sentry configuration + # @return [StructuredLogger] a new instance of StructuredLogger + # + # source://sentry-ruby//lib/sentry/structured_logger.rb#51 + def initialize(config); end + + # @return [Configuration] The Sentry configuration + # + # source://sentry-ruby//lib/sentry/structured_logger.rb#46 + def config; end + + # Logs a message at DEBUG level + # + # @param message [String] The log message + # @param parameters [Array] Array of values to replace template parameters in the message + # @param attributes [Hash] Additional attributes to include with the log + # @return [LogEvent, nil] The created log event or nil if logging is disabled + # + # source://sentry-ruby//lib/sentry/structured_logger.rb#73 + def debug(message, parameters = T.unsafe(nil), **attributes); end + + # Logs a message at ERROR level + # + # @param message [String] The log message + # @param parameters [Array] Array of values to replace template parameters in the message + # @param attributes [Hash] Additional attributes to include with the log + # @return [LogEvent, nil] The created log event or nil if logging is disabled + # + # source://sentry-ruby//lib/sentry/structured_logger.rb#106 + def error(message, parameters = T.unsafe(nil), **attributes); end + + # Logs a message at FATAL level + # + # @param message [String] The log message + # @param parameters [Array] Array of values to replace template parameters in the message + # @param attributes [Hash] Additional attributes to include with the log + # @return [LogEvent, nil] The created log event or nil if logging is disabled + # + # source://sentry-ruby//lib/sentry/structured_logger.rb#117 + def fatal(message, parameters = T.unsafe(nil), **attributes); end + + # Logs a message at INFO level + # + # @param message [String] The log message + # @param parameters [Array] Array of values to replace template parameters in the message + # @param attributes [Hash] Additional attributes to include with the log + # @return [LogEvent, nil] The created log event or nil if logging is disabled + # + # source://sentry-ruby//lib/sentry/structured_logger.rb#84 + def info(message, parameters = T.unsafe(nil), **attributes); end + + # Logs a message at the specified level + # + # @param level [Symbol] The log level (:trace, :debug, :info, :warn, :error, :fatal) + # @param message [String] The log message + # @param parameters [Array, Hash] Array or Hash of values to replace template parameters in the message + # @param attributes [Hash] Additional attributes to include with the log + # @return [LogEvent, nil] The created log event or nil if logging is disabled + # + # source://sentry-ruby//lib/sentry/structured_logger.rb#129 + def log(level, message, parameters:, **attributes); end + + # Logs a message at TRACE level + # + # @param message [String] The log message + # @param parameters [Array] Array of values to replace template parameters in the message + # @param attributes [Hash] Additional attributes to include with the log + # @return [LogEvent, nil] The created log event or nil if logging is disabled + # + # source://sentry-ruby//lib/sentry/structured_logger.rb#62 + def trace(message, parameters = T.unsafe(nil), **attributes); end + + # Logs a message at WARN level + # + # @param message [String] The log message + # @param parameters [Array] Array of values to replace template parameters in the message + # @param attributes [Hash] Additional attributes to include with the log + # @return [LogEvent, nil] The created log event or nil if logging is disabled + # + # source://sentry-ruby//lib/sentry/structured_logger.rb#95 + def warn(message, parameters = T.unsafe(nil), **attributes); end +end + +# Severity number mapping for log levels according to the Sentry Logs Protocol +# +# @see https://develop.sentry.dev/sdk/telemetry/logs/#log-severity-number +# +# source://sentry-ruby//lib/sentry/structured_logger.rb#35 +Sentry::StructuredLogger::LEVELS = T.let(T.unsafe(nil), Hash) + # source://sentry-ruby//lib/sentry-ruby.rb#51 Sentry::THREAD_LOCAL = T.let(T.unsafe(nil), Symbol) @@ -5482,7 +5779,7 @@ class Sentry::ThreadedPeriodicWorker # @return [ThreadedPeriodicWorker] a new instance of ThreadedPeriodicWorker # # source://sentry-ruby//lib/sentry/threaded_periodic_worker.rb#7 - def initialize(logger, internal); end + def initialize(sdk_logger, interval); end # source://sentry-ruby//lib/sentry/threaded_periodic_worker.rb#14 def ensure_thread; end @@ -5526,7 +5823,7 @@ class Sentry::Transaction < ::Sentry::Span # @return [Transaction] a new instance of Transaction # - # source://sentry-ruby//lib/sentry/transaction.rb#63 + # source://sentry-ruby//lib/sentry/transaction.rb#60 def initialize(hub:, name: T.unsafe(nil), source: T.unsafe(nil), parent_sampled: T.unsafe(nil), baggage: T.unsafe(nil), **options); end # The parsed incoming W3C baggage header. @@ -5547,19 +5844,19 @@ class Sentry::Transaction < ::Sentry::Span # # @return [Hash] # - # source://sentry-ruby//lib/sentry/transaction.rb#57 + # source://sentry-ruby//lib/sentry/transaction.rb#54 def contexts; end # @return [Transaction] # - # source://sentry-ruby//lib/sentry/transaction.rb#160 + # source://sentry-ruby//lib/sentry/transaction.rb#157 def deep_dup; end # The effective sample rate at which this transaction was sampled. # # @return [Float, nil] # - # source://sentry-ruby//lib/sentry/transaction.rb#53 + # source://sentry-ruby//lib/sentry/transaction.rb#50 def effective_sample_rate; end # Finishes the transaction's recording and send it to Sentry. @@ -5567,7 +5864,7 @@ class Sentry::Transaction < ::Sentry::Span # @param hub [Hub] the hub that'll send this transaction. (Deprecated) # @return [TransactionEvent] # - # source://sentry-ruby//lib/sentry/transaction.rb#246 + # source://sentry-ruby//lib/sentry/transaction.rb#243 def finish(hub: T.unsafe(nil), end_timestamp: T.unsafe(nil)); end # Get the existing frozen incoming baggage @@ -5575,7 +5872,7 @@ class Sentry::Transaction < ::Sentry::Span # # @return [Baggage] # - # source://sentry-ruby//lib/sentry/transaction.rb#280 + # source://sentry-ruby//lib/sentry/transaction.rb#277 def get_baggage; end # @deprecated Use Sentry.get_current_hub instead. @@ -5583,11 +5880,6 @@ class Sentry::Transaction < ::Sentry::Span # source://sentry-ruby//lib/sentry/transaction.rb#43 def hub; end - # @deprecated Use Sentry.logger instead. - # - # source://sentry-ruby//lib/sentry/transaction.rb#49 - def logger; end - # The measurements added to the transaction. # # @return [Hash] @@ -5613,7 +5905,7 @@ class Sentry::Transaction < ::Sentry::Span # # @return [Profiler] # - # source://sentry-ruby//lib/sentry/transaction.rb#61 + # source://sentry-ruby//lib/sentry/transaction.rb#58 def profiler; end # Set contexts directly on the transaction. @@ -5622,7 +5914,7 @@ class Sentry::Transaction < ::Sentry::Span # @param value [Object] # @return [void] # - # source://sentry-ruby//lib/sentry/transaction.rb#299 + # source://sentry-ruby//lib/sentry/transaction.rb#296 def set_context(key, value); end # Sets initial sampling decision of the transaction. @@ -5630,7 +5922,7 @@ class Sentry::Transaction < ::Sentry::Span # @param sampling_context [Hash] a context Hash that'll be passed to `traces_sampler` (if provided). # @return [void] # - # source://sentry-ruby//lib/sentry/transaction.rb#185 + # source://sentry-ruby//lib/sentry/transaction.rb#182 def set_initial_sample_decision(sampling_context:); end # Sets a custom measurement on the transaction. @@ -5640,7 +5932,7 @@ class Sentry::Transaction < ::Sentry::Span # @param unit [String] unit of the measurement # @return [void] # - # source://sentry-ruby//lib/sentry/transaction.rb#178 + # source://sentry-ruby//lib/sentry/transaction.rb#175 def set_measurement(name, value, unit = T.unsafe(nil)); end # Set the transaction name directly. @@ -5650,7 +5942,7 @@ class Sentry::Transaction < ::Sentry::Span # @param source [Symbol] # @return [void] # - # source://sentry-ruby//lib/sentry/transaction.rb#290 + # source://sentry-ruby//lib/sentry/transaction.rb#287 def set_name(name, source: T.unsafe(nil)); end # The source of the transaction name. @@ -5664,39 +5956,39 @@ class Sentry::Transaction < ::Sentry::Span # # @return [Boolean] # - # source://sentry-ruby//lib/sentry/transaction.rb#313 + # source://sentry-ruby//lib/sentry/transaction.rb#310 def source_low_quality?; end # Start the profiler. # # @return [void] # - # source://sentry-ruby//lib/sentry/transaction.rb#305 + # source://sentry-ruby//lib/sentry/transaction.rb#302 def start_profiler!; end # @return [Hash] # - # source://sentry-ruby//lib/sentry/transaction.rb#146 + # source://sentry-ruby//lib/sentry/transaction.rb#143 def to_hash; end protected - # source://sentry-ruby//lib/sentry/transaction.rb#319 + # source://sentry-ruby//lib/sentry/transaction.rb#316 def init_span_recorder(limit = T.unsafe(nil)); end private - # source://sentry-ruby//lib/sentry/transaction.rb#326 + # source://sentry-ruby//lib/sentry/transaction.rb#323 def generate_transaction_description; end - # source://sentry-ruby//lib/sentry/transaction.rb#333 + # source://sentry-ruby//lib/sentry/transaction.rb#330 def populate_head_baggage; end class << self # @deprecated Use Sentry::PropagationContext.extract_sentry_trace instead. # @return [Array, nil] # - # source://sentry-ruby//lib/sentry/transaction.rb#141 + # source://sentry-ruby//lib/sentry/transaction.rb#138 def extract_sentry_trace(sentry_trace); end # Initalizes a Transaction instance with a Sentry trace string from another transaction (usually from an external request). @@ -5712,7 +6004,7 @@ class Sentry::Transaction < ::Sentry::Span # @param options [Hash] the options you want to use to initialize a Transaction instance. # @return [Transaction, nil] # - # source://sentry-ruby//lib/sentry/transaction.rb#108 + # source://sentry-ruby//lib/sentry/transaction.rb#105 def from_sentry_trace(sentry_trace, baggage: T.unsafe(nil), hub: T.unsafe(nil), **options); end end end @@ -5730,24 +6022,24 @@ Sentry::Transaction::SENTRY_TRACE_REGEXP = T.let(T.unsafe(nil), Regexp) # source://sentry-ruby//lib/sentry/transaction.rb#16 Sentry::Transaction::SOURCES = T.let(T.unsafe(nil), Array) -# source://sentry-ruby//lib/sentry/transaction.rb#352 +# source://sentry-ruby//lib/sentry/transaction.rb#346 class Sentry::Transaction::SpanRecorder # @return [SpanRecorder] a new instance of SpanRecorder # - # source://sentry-ruby//lib/sentry/transaction.rb#355 + # source://sentry-ruby//lib/sentry/transaction.rb#349 def initialize(max_length); end - # source://sentry-ruby//lib/sentry/transaction.rb#360 + # source://sentry-ruby//lib/sentry/transaction.rb#354 def add(span); end # Returns the value of attribute max_length. # - # source://sentry-ruby//lib/sentry/transaction.rb#353 + # source://sentry-ruby//lib/sentry/transaction.rb#347 def max_length; end # Returns the value of attribute spans. # - # source://sentry-ruby//lib/sentry/transaction.rb#353 + # source://sentry-ruby//lib/sentry/transaction.rb#347 def spans; end end @@ -5839,12 +6131,12 @@ class Sentry::Transport # @return [Transport] a new instance of Transport # - # source://sentry-ruby//lib/sentry/transport.rb#32 + # source://sentry-ruby//lib/sentry/transport.rb#29 def initialize(configuration); end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/transport.rb#113 + # source://sentry-ruby//lib/sentry/transport.rb#110 def any_rate_limited?; end # Returns the value of attribute discarded_events. @@ -5852,15 +6144,15 @@ class Sentry::Transport # source://sentry-ruby//lib/sentry/transport.rb#27 def discarded_events; end - # source://sentry-ruby//lib/sentry/transport.rb#117 + # source://sentry-ruby//lib/sentry/transport.rb#114 def envelope_from_event(event); end - # source://sentry-ruby//lib/sentry/transport.rb#167 + # source://sentry-ruby//lib/sentry/transport.rb#175 def flush; end # @return [Boolean] # - # source://sentry-ruby//lib/sentry/transport.rb#91 + # source://sentry-ruby//lib/sentry/transport.rb#88 def is_rate_limited?(data_category); end # Returns the value of attribute last_client_report_sent. @@ -5868,39 +6160,34 @@ class Sentry::Transport # source://sentry-ruby//lib/sentry/transport.rb#27 def last_client_report_sent; end - # @deprecated Use Sentry.logger to retrieve the current logger instead. - # - # source://sentry-ruby//lib/sentry/transport.rb#30 - def logger; end - # Returns the value of attribute rate_limits. # # source://sentry-ruby//lib/sentry/transport.rb#27 def rate_limits; end - # source://sentry-ruby//lib/sentry/transport.rb#160 + # source://sentry-ruby//lib/sentry/transport.rb#168 def record_lost_event(reason, data_category, num: T.unsafe(nil)); end # @raise [NotImplementedError] # - # source://sentry-ruby//lib/sentry/transport.rb#45 + # source://sentry-ruby//lib/sentry/transport.rb#42 def send_data(data, options = T.unsafe(nil)); end - # source://sentry-ruby//lib/sentry/transport.rb#56 + # source://sentry-ruby//lib/sentry/transport.rb#53 def send_envelope(envelope); end - # source://sentry-ruby//lib/sentry/transport.rb#49 + # source://sentry-ruby//lib/sentry/transport.rb#46 def send_event(event); end - # source://sentry-ruby//lib/sentry/transport.rb#69 + # source://sentry-ruby//lib/sentry/transport.rb#66 def serialize_envelope(envelope); end private - # source://sentry-ruby//lib/sentry/transport.rb#178 + # source://sentry-ruby//lib/sentry/transport.rb#186 def fetch_pending_client_report(force: T.unsafe(nil)); end - # source://sentry-ruby//lib/sentry/transport.rb#200 + # source://sentry-ruby//lib/sentry/transport.rb#208 def reject_rate_limited_items(envelope); end end @@ -6099,7 +6386,15 @@ Sentry::Transport::PROTOCOL_VERSION = T.let(T.unsafe(nil), String) Sentry::Transport::USER_AGENT = T.let(T.unsafe(nil), String) # source://sentry-ruby//lib/sentry/utils/encoding_helper.rb#4 -module Sentry::Utils; end +module Sentry::Utils + class << self + # source://sentry-ruby//lib/sentry/utils/uuid.rb#9 + def uuid; end + end +end + +# source://sentry-ruby//lib/sentry/utils/uuid.rb#7 +Sentry::Utils::DELIMITER = T.let(T.unsafe(nil), String) # source://sentry-ruby//lib/sentry/utils/encoding_helper.rb#5 module Sentry::Utils::EncodingHelper @@ -6249,57 +6544,57 @@ class Sentry::Vernier::Output def thread_metadata; end end -# source://sentry-ruby//lib/sentry/vernier/profiler.rb#9 +# source://sentry-ruby//lib/sentry/vernier/profiler.rb#10 class Sentry::Vernier::Profiler # @return [Profiler] a new instance of Profiler # - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#14 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#15 def initialize(configuration); end - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#88 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#89 def active_thread_id; end # Returns the value of attribute event_id. # - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#12 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#13 def event_id; end # Returns the value of attribute result. # - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#12 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#13 def result; end - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#27 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#28 def set_initial_sample_decision(transaction_sampled); end - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#54 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#55 def start; end # Returns the value of attribute started. # - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#12 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#13 def started; end - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#72 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#73 def stop; end - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#92 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#93 def to_hash; end private - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#105 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#106 def log(message); end - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#121 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#122 def output; end - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#113 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#114 def profile_meta; end - # source://sentry-ruby//lib/sentry/vernier/profiler.rb#109 + # source://sentry-ruby//lib/sentry/vernier/profiler.rb#110 def record_lost_event(reason); end end -# source://sentry-ruby//lib/sentry/vernier/profiler.rb#10 +# source://sentry-ruby//lib/sentry/vernier/profiler.rb#11 Sentry::Vernier::Profiler::EMPTY_RESULT = T.let(T.unsafe(nil), Hash) diff --git a/sorbet/rbi/gems/shortener@1.0.1.rbi b/sorbet/rbi/gems/shortener@1.0.1.rbi index 7802cde9..242f98c0 100644 --- a/sorbet/rbi/gems/shortener@1.0.1.rbi +++ b/sorbet/rbi/gems/shortener@1.0.1.rbi @@ -119,17 +119,7 @@ end Shortener::CHARSETS = T.let(T.unsafe(nil), Hash) # source://shortener//lib/shortener/engine.rb#7 -class Shortener::Engine < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end +class Shortener::Engine < ::Rails::Engine; end # source://shortener//lib/shortener/railtie.rb#4 class Shortener::Railtie < ::Rails::Railtie; end @@ -141,16 +131,9 @@ class Shortener::Record < ::ActiveRecord::Base class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end end end @@ -204,9 +187,7 @@ class Shortener::ShortenedUrl < ::Shortener::Record include ::Shortener::ShortenedUrl::GeneratedAttributeMethods include ::Shortener::ShortenedUrl::GeneratedAssociationMethods - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_owner(*args); end - def custom_key; end def custom_key=(_arg0); end def increment_usage_count; end @@ -223,57 +204,28 @@ class Shortener::ShortenedUrl < ::Shortener::Record def generate(destination_url, owner: T.unsafe(nil), custom_key: T.unsafe(nil), expires_at: T.unsafe(nil), fresh: T.unsafe(nil), category: T.unsafe(nil)); end def generate!(destination_url, owner: T.unsafe(nil), custom_key: T.unsafe(nil), expires_at: T.unsafe(nil), fresh: T.unsafe(nil), category: T.unsafe(nil)); end def merge_params_to_url(url: T.unsafe(nil), params: T.unsafe(nil)); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def unexpired(*args, **_arg1); end - def unique_key_candidate; end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end end end module Shortener::ShortenedUrl::GeneratedAssociationMethods - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def owner; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def owner=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#146 def owner_changed?; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#150 def owner_previously_changed?; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_owner; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_owner; end end @@ -294,66 +246,30 @@ class Shortener::ShortenedUrlsController < ::ActionController::Metal extend ::AbstractController::UrlFor::ClassMethods extend ::ActionController::Instrumentation::ClassMethods - # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#100 def default_url_options; end - - # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#100 def default_url_options=(_arg0); end - - # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#100 def default_url_options?; end - - # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def logger; end - - # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def logger=(value); end - - # source://actionpack/8.0.2/lib/action_controller/metal/redirecting.rb#17 def raise_on_open_redirects; end - - # source://actionpack/8.0.2/lib/action_controller/metal/redirecting.rb#17 def raise_on_open_redirects=(val); end - def show; end class << self - # source://actionpack/8.0.2/lib/action_dispatch/routing/route_set.rb#612 def _routes; end - - # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#100 def default_url_options; end - - # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#100 def default_url_options=(value); end - - # source://actionpack/8.0.2/lib/action_dispatch/routing/url_for.rb#100 def default_url_options?; end - - # source://activesupport/8.0.2/lib/active_support/configurable.rb#115 def logger; end - - # source://activesupport/8.0.2/lib/active_support/configurable.rb#116 def logger=(value); end - - # source://actionpack/8.0.2/lib/action_controller/metal/redirecting.rb#17 def raise_on_open_redirects; end - - # source://actionpack/8.0.2/lib/action_controller/metal/redirecting.rb#17 def raise_on_open_redirects=(val); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_default_url_options; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_default_url_options=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_middleware_stack; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_middleware_stack=(new_value); end end end diff --git a/sorbet/rbi/gems/signet@0.19.0.rbi b/sorbet/rbi/gems/signet@0.21.0.rbi similarity index 94% rename from sorbet/rbi/gems/signet@0.19.0.rbi rename to sorbet/rbi/gems/signet@0.21.0.rbi index 7b33ff89..8613a803 100644 --- a/sorbet/rbi/gems/signet@0.19.0.rbi +++ b/sorbet/rbi/gems/signet@0.21.0.rbi @@ -74,7 +74,7 @@ module Signet::OAuth2 # @param authorization_uri [Addressable::URI, String, #to_str] The base authorization endpoint URI. # @return [String] The authorization URI to redirect the user to. # - # source://signet//lib/signet/oauth_2.rb#137 + # source://signet//lib/signet/oauth_2.rb#135 def generate_authorization_uri(authorization_uri, parameters = T.unsafe(nil)); end # Generates a Basic Authorization header from a client identifier and a @@ -262,9 +262,6 @@ class Signet::OAuth2::Client # source://signet//lib/signet/oauth_2/client.rb#307 def authorization_uri=(new_authorization_uri); end - # source://googleauth/1.14.0/lib/googleauth/signet.rb#102 - def build_default_connection; end - # Removes all credentials from the client. # # source://signet//lib/signet/oauth_2/client.rb#883 @@ -320,9 +317,6 @@ class Signet::OAuth2::Client # source://signet//lib/signet/oauth_2/client.rb#330 def coerce_uri(incoming_uri); end - # source://googleauth/1.14.0/lib/googleauth/signet.rb#57 - def configure_connection(options); end - # Returns the decoded ID token associated with this client. # # @param public_key [OpenSSL::PKey::RSA, Object] The public key to use to verify the ID token. Skips verification if @@ -331,10 +325,7 @@ class Signet::OAuth2::Client # @return [String] The decoded ID token. # # source://signet//lib/signet/oauth_2/client.rb#753 - def decoded_id_token(public_key = T.unsafe(nil), options = T.unsafe(nil), &keyfinder); end - - # source://googleauth/1.14.0/lib/googleauth/signet.rb#142 - def duplicate(options = T.unsafe(nil)); end + def decoded_id_token(public_key = T.unsafe(nil), options = T.unsafe(nil), &_arg2); end # Returns true if the access token has expired. # Returns false if the token has not expired or has an nil @expires_at. @@ -425,7 +416,7 @@ class Signet::OAuth2::Client # source://signet//lib/signet/oauth_2/client.rb#1022 def fetch_access_token(options = T.unsafe(nil)); end - # source://googleauth/1.14.0/lib/googleauth/signet.rb#72 + # source://signet//lib/signet/oauth_2/client.rb#1075 def fetch_access_token!(options = T.unsafe(nil)); end # Transmits a request for a protected resource. @@ -467,7 +458,7 @@ class Signet::OAuth2::Client # @private # @return [Array] The request object. # - # source://googleauth/1.14.0/lib/googleauth/signet.rb#85 + # source://signet//lib/signet/oauth_2/client.rb#987 def generate_access_token_request(options = T.unsafe(nil)); end # Generates an authenticated request for protected resources. @@ -493,9 +484,6 @@ class Signet::OAuth2::Client # source://signet//lib/signet/oauth_2/client.rb#1114 def generate_authenticated_request(options = T.unsafe(nil)); end - # source://signet//lib/signet/oauth_2/client.rb#987 - def googleauth_orig_generate_access_token_request(options = T.unsafe(nil)); end - # Returns the inferred grant type, based on the current state of the # client object. Returns `"none"` if the client has insufficient # information to make an in-band authorization request. @@ -567,9 +555,6 @@ class Signet::OAuth2::Client # source://signet//lib/signet/oauth_2/client.rb#552 def issuer=(new_issuer); end - # source://signet//lib/signet/oauth_2/client.rb#1075 - def orig_fetch_access_token!(options = T.unsafe(nil)); end - # Returns the password associated with this client. # Used only by the resource owner password credential access grant type. # @@ -591,7 +576,7 @@ class Signet::OAuth2::Client # # @return [String] Target user for impersonation. # - # source://signet//lib/signet/oauth_2/client.rb#580 + # source://signet//lib/signet/oauth_2/client.rb#594 def person; end # Sets the target resource owner for impersonation. @@ -599,7 +584,7 @@ class Signet::OAuth2::Client # # @param new_person [String] Target user for impersonation # - # source://signet//lib/signet/oauth_2/client.rb#590 + # source://signet//lib/signet/oauth_2/client.rb#595 def person=(new_person); end # Returns the target resource owner for impersonation. @@ -651,9 +636,6 @@ class Signet::OAuth2::Client # source://signet//lib/signet/oauth_2/client.rb#707 def refresh_token=(new_refresh_token); end - # source://googleauth/1.14.0/lib/googleauth/signet.rb#112 - def retry_with_error(max_retry_count = T.unsafe(nil)); end - # Returns the scope for this client. Scope is a list of access ranges # defined by the authorization server. # @@ -759,15 +741,6 @@ class Signet::OAuth2::Client # source://signet//lib/signet/oauth_2/client.rb#324 def token_credential_uri=(new_token_credential_uri); end - # source://googleauth/1.14.0/lib/googleauth/signet.rb#64 - def token_type; end - - # source://googleauth/1.14.0/lib/googleauth/signet.rb#69 - def universe_domain; end - - # source://googleauth/1.14.0/lib/googleauth/signet.rb#69 - def universe_domain=(_arg0); end - # Updates an OAuth 2.0 client. # # @example @@ -832,11 +805,8 @@ class Signet::OAuth2::Client # @see Signet::OAuth2::Client#initialize # @see Signet::OAuth2::Client#update_token! # - # source://googleauth/1.14.0/lib/googleauth/signet.rb#42 - def update!(options = T.unsafe(nil)); end - # source://signet//lib/signet/oauth_2/client.rb#185 - def update_signet_base(options = T.unsafe(nil)); end + def update!(options = T.unsafe(nil)); end # Updates an OAuth 2.0 client. # @@ -863,11 +833,8 @@ class Signet::OAuth2::Client # @see Signet::OAuth2::Client#initialize # @see Signet::OAuth2::Client#update! # - # source://googleauth/1.14.0/lib/googleauth/signet.rb#32 - def update_token!(options = T.unsafe(nil)); end - # source://signet//lib/signet/oauth_2/client.rb#241 - def update_token_signet_base(options = T.unsafe(nil)); end + def update_token!(options = T.unsafe(nil)); end # Returns the username associated with this client. # Used only by the resource owner password credential access grant type. @@ -890,21 +857,6 @@ class Signet::OAuth2::Client # source://signet//lib/signet/oauth_2/client.rb#1233 def deep_hash_normalize(old_hash); end - # source://googleauth/1.14.0/lib/googleauth/signet.rb#174 - def expires_at_from_id_token(id_token); end - - # source://googleauth/1.14.0/lib/googleauth/signet.rb#201 - def log_auth_error(err); end - - # source://googleauth/1.14.0/lib/googleauth/signet.rb#185 - def log_response(token_response); end - - # source://googleauth/1.14.0/lib/googleauth/signet.rb#219 - def log_retries_exhausted(err); end - - # source://googleauth/1.14.0/lib/googleauth/signet.rb#210 - def log_transient_error(err); end - # source://signet//lib/signet/oauth_2/client.rb#1239 def normalize_timestamp(time); end diff --git a/sorbet/rbi/gems/solid_queue@1.1.4.rbi b/sorbet/rbi/gems/solid_queue@1.2.1.rbi similarity index 63% rename from sorbet/rbi/gems/solid_queue@1.1.4.rbi rename to sorbet/rbi/gems/solid_queue@1.2.1.rbi index b4a8ac07..3536cc52 100644 --- a/sorbet/rbi/gems/solid_queue@1.1.4.rbi +++ b/sorbet/rbi/gems/solid_queue@1.2.1.rbi @@ -6,365 +6,9 @@ # source://solid_queue//lib/active_job/concurrency_controls.rb#3 -module ActiveJob - class << self - # source://activejob/8.0.2/lib/active_job/queue_adapter.rb#7 - def adapter_name(adapter); end - - # source://activejob/8.0.2/lib/active_job/deprecator.rb#4 - def deprecator; end - - # source://activejob/8.0.2/lib/active_job/gem_version.rb#5 - def gem_version; end - - # source://activejob/8.0.2/lib/active_job/enqueuing.rb#14 - def perform_all_later(*jobs); end - - # source://activejob/8.0.2/lib/active_job.rb#57 - def verbose_enqueue_logs; end - - # source://activejob/8.0.2/lib/active_job.rb#57 - def verbose_enqueue_logs=(_arg0); end - - # source://activejob/8.0.2/lib/active_job/version.rb#7 - def version; end - - private - - # source://activejob/8.0.2/lib/active_job/instrumentation.rb#6 - def instrument_enqueue_all(queue_adapter, jobs); end - end -end - -class ActiveJob::Base - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _enqueue_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 - def _perform_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_enqueue_callbacks(&block); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 - def _run_perform_callbacks(&block); end - - # source://activejob/8.0.2/lib/active_job/exceptions.rb#12 - def after_discard_procs; end - - # source://activejob/8.0.2/lib/active_job/exceptions.rb#12 - def after_discard_procs=(_arg0); end - - # source://activejob/8.0.2/lib/active_job/exceptions.rb#12 - def after_discard_procs?; end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#14 - def concurrency_duration; end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#14 - def concurrency_duration=(_arg0); end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#14 - def concurrency_duration?; end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#13 - def concurrency_limit; end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#13 - def concurrency_limit=(_arg0); end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#13 - def concurrency_limit?; end - - # source://activejob/8.0.2/lib/active_job/logging.rb#15 - def logger; end - - # source://activejob/8.0.2/lib/active_job/logging.rb#15 - def logger=(val); end - - # source://activejob/8.0.2/lib/active_job/queue_adapter.rb#27 - def queue_adapter(&_arg0); end - - # source://activejob/8.0.2/lib/active_job/queue_name.rb#57 - def queue_name_prefix; end - - # source://activejob/8.0.2/lib/active_job/queue_name.rb#57 - def queue_name_prefix=(_arg0); end - - # source://activejob/8.0.2/lib/active_job/queue_name.rb#57 - def queue_name_prefix?; end - - # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 - def rescue_handlers; end - - # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 - def rescue_handlers=(_arg0); end - - # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 - def rescue_handlers?; end - - class << self - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 - def __callbacks=(value); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _enqueue_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _enqueue_callbacks=(value); end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 - def _perform_callbacks; end - - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 - def _perform_callbacks=(value); end - - # source://activejob/8.0.2/lib/active_job/queue_adapter.rb#25 - def _queue_adapter; end - - # source://activejob/8.0.2/lib/active_job/queue_adapter.rb#25 - def _queue_adapter=(value); end - - # source://activejob/8.0.2/lib/active_job/queue_adapter.rb#24 - def _queue_adapter_name; end - - # source://activejob/8.0.2/lib/active_job/queue_adapter.rb#24 - def _queue_adapter_name=(value); end - - # source://activejob/8.0.2/lib/active_job/test_helper.rb#19 - def _test_adapter; end - - # source://activejob/8.0.2/lib/active_job/test_helper.rb#19 - def _test_adapter=(value); end - - # source://activejob/8.0.2/lib/active_job/exceptions.rb#12 - def after_discard_procs; end - - # source://activejob/8.0.2/lib/active_job/exceptions.rb#12 - def after_discard_procs=(value); end - - # source://activejob/8.0.2/lib/active_job/exceptions.rb#12 - def after_discard_procs?; end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#14 - def concurrency_duration; end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#14 - def concurrency_duration=(value); end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#14 - def concurrency_duration?; end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#11 - def concurrency_group; end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#11 - def concurrency_group=(value); end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#11 - def concurrency_group?; end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#10 - def concurrency_key; end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#10 - def concurrency_key=(value); end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#10 - def concurrency_key?; end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#13 - def concurrency_limit; end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#13 - def concurrency_limit=(value); end - - # source://solid_queue//lib/active_job/concurrency_controls.rb#13 - def concurrency_limit?; end - - # source://activejob/8.0.2/lib/active_job/enqueuing.rb#53 - def enqueue_after_transaction_commit; end - - # source://activejob/8.0.2/lib/active_job/enqueuing.rb#53 - def enqueue_after_transaction_commit=(value); end - - # source://activejob/8.0.2/lib/active_job/logging.rb#26 - def log_arguments; end - - # source://activejob/8.0.2/lib/active_job/logging.rb#26 - def log_arguments=(value); end - - # source://activejob/8.0.2/lib/active_job/logging.rb#26 - def log_arguments?; end - - # source://activejob/8.0.2/lib/active_job/logging.rb#15 - def logger; end - - # source://activejob/8.0.2/lib/active_job/logging.rb#15 - def logger=(val); end - - # source://activejob/8.0.2/lib/active_job/queue_priority.rb#49 - def priority; end - - # source://activejob/8.0.2/lib/active_job/queue_priority.rb#49 - def priority=(value); end - - # source://activejob/8.0.2/lib/active_job/queue_priority.rb#49 - def priority?; end - - # source://activejob/8.0.2/lib/active_job/queue_name.rb#55 - def queue_name; end - - # source://activejob/8.0.2/lib/active_job/queue_name.rb#55 - def queue_name=(value); end - - # source://activejob/8.0.2/lib/active_job/queue_name.rb#55 - def queue_name?; end - - # source://activejob/8.0.2/lib/active_job/queue_name.rb#56 - def queue_name_delimiter; end - - # source://activejob/8.0.2/lib/active_job/queue_name.rb#56 - def queue_name_delimiter=(value); end - - # source://activejob/8.0.2/lib/active_job/queue_name.rb#56 - def queue_name_delimiter?; end - - # source://activejob/8.0.2/lib/active_job/queue_name.rb#57 - def queue_name_prefix; end +module ActiveJob; end - # source://activejob/8.0.2/lib/active_job/queue_name.rb#57 - def queue_name_prefix=(value); end - - # source://activejob/8.0.2/lib/active_job/queue_name.rb#57 - def queue_name_prefix?; end - - # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 - def rescue_handlers; end - - # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 - def rescue_handlers=(value); end - - # source://activesupport/8.0.2/lib/active_support/rescuable.rb#15 - def rescue_handlers?; end - - # source://activejob/8.0.2/lib/active_job/exceptions.rb#11 - def retry_jitter; end - - # source://activejob/8.0.2/lib/active_job/exceptions.rb#11 - def retry_jitter=(value); end - - private - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr__queue_adapter; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr__queue_adapter=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr__queue_adapter_name; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr__queue_adapter_name=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr__test_adapter; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr__test_adapter=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_after_discard_procs; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_after_discard_procs=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_concurrency_duration; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_concurrency_duration=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_concurrency_group; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_concurrency_group=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_concurrency_key; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_concurrency_key=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_concurrency_limit; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_concurrency_limit=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_enqueue_after_transaction_commit; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_enqueue_after_transaction_commit=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_log_arguments; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_log_arguments=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_priority; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_priority=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_queue_name; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_queue_name=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_queue_name_delimiter; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_queue_name_delimiter=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_queue_name_prefix; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_queue_name_prefix=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_rescue_handlers=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr_retry_jitter; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr_retry_jitter=(new_value); end - end -end +class ActiveJob::Base; end # source://solid_queue//lib/active_job/concurrency_controls.rb#4 module ActiveJob::ConcurrencyControls @@ -374,20 +18,20 @@ module ActiveJob::ConcurrencyControls mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::ActiveJob::ConcurrencyControls::ClassMethods - # source://solid_queue//lib/active_job/concurrency_controls.rb#26 + # source://solid_queue//lib/active_job/concurrency_controls.rb#29 def concurrency_key; end # @return [Boolean] # - # source://solid_queue//lib/active_job/concurrency_controls.rb#39 + # source://solid_queue//lib/active_job/concurrency_controls.rb#42 def concurrency_limited?; end private - # source://solid_queue//lib/active_job/concurrency_controls.rb#48 + # source://solid_queue//lib/active_job/concurrency_controls.rb#51 def compute_concurrency_parameter(option); end - # source://solid_queue//lib/active_job/concurrency_controls.rb#44 + # source://solid_queue//lib/active_job/concurrency_controls.rb#47 def concurrency_group; end module GeneratedClassMethods @@ -403,6 +47,9 @@ module ActiveJob::ConcurrencyControls def concurrency_limit; end def concurrency_limit=(value); end def concurrency_limit?; end + def concurrency_on_conflict; end + def concurrency_on_conflict=(value); end + def concurrency_on_conflict?; end end module GeneratedInstanceMethods @@ -412,25 +59,26 @@ module ActiveJob::ConcurrencyControls def concurrency_limit; end def concurrency_limit=(value); end def concurrency_limit?; end + def concurrency_on_conflict; end + def concurrency_on_conflict=(value); end + def concurrency_on_conflict?; end end end -# source://solid_queue//lib/active_job/concurrency_controls.rb#0 +# source://solid_queue//lib/active_job/concurrency_controls.rb#8 +ActiveJob::ConcurrencyControls::CONCURRENCY_ON_CONFLICT_BEHAVIOUR = T.let(T.unsafe(nil), Array) + +# source://solid_queue//lib/active_job/concurrency_controls.rb#19 module ActiveJob::ConcurrencyControls::ClassMethods - # source://solid_queue//lib/active_job/concurrency_controls.rb#18 - def limits_concurrency(key:, to: T.unsafe(nil), group: T.unsafe(nil), duration: T.unsafe(nil)); end + # source://solid_queue//lib/active_job/concurrency_controls.rb#20 + def limits_concurrency(key:, to: T.unsafe(nil), group: T.unsafe(nil), duration: T.unsafe(nil), on_conflict: T.unsafe(nil)); end end # source://solid_queue//lib/active_job/concurrency_controls.rb#7 ActiveJob::ConcurrencyControls::DEFAULT_CONCURRENCY_GROUP = T.let(T.unsafe(nil), Proc) # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#4 -module ActiveJob::QueueAdapters - class << self - # source://activejob/8.0.2/lib/active_job/queue_adapters.rb#135 - def lookup(name); end - end -end +module ActiveJob::QueueAdapters; end # == Active Job SolidQueue adapter # @@ -439,20 +87,45 @@ end # Rails.application.config.active_job.queue_adapter = :solid_queue # # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#10 -class ActiveJob::QueueAdapters::SolidQueueAdapter - # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#15 +class ActiveJob::QueueAdapters::SolidQueueAdapter < ::ActiveJob::QueueAdapters::AbstractAdapter + # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#18 def enqueue(active_job); end # @return [Boolean] # - # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#11 + # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#14 def enqueue_after_transaction_commit?; end - # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#23 + # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#26 def enqueue_all(active_jobs); end - # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#19 + # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#22 def enqueue_at(active_job, timestamp); end + + # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#11 + def stopping; end + + # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#11 + def stopping?; end + + class << self + # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#11 + def stopping; end + + # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#11 + def stopping=(value); end + + # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#11 + def stopping?; end + + private + + # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#11 + def __class_attr_stopping; end + + # source://solid_queue//lib/active_job/queue_adapters/solid_queue_adapter.rb#11 + def __class_attr_stopping=(new_value); end + end end # source://solid_queue//lib/solid_queue/version.rb#1 @@ -652,13 +325,13 @@ module SolidQueue # source://solid_queue//lib/solid_queue.rb#30 def process_heartbeat_interval=(val); end - # source://railties/8.0.2/lib/rails/engine.rb#413 + # source://solid_queue//lib/solid_queue/engine.rb#5 def railtie_helpers_paths; end - # source://railties/8.0.2/lib/rails/engine.rb#396 + # source://solid_queue//lib/solid_queue/engine.rb#5 def railtie_namespace; end - # source://railties/8.0.2/lib/rails/engine.rb#417 + # source://solid_queue//lib/solid_queue/engine.rb#5 def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end # source://solid_queue//lib/solid_queue.rb#33 @@ -685,10 +358,10 @@ module SolidQueue # source://solid_queue//lib/solid_queue.rb#37 def supervisor_pidfile=(val); end - # source://railties/8.0.2/lib/rails/engine.rb#402 + # source://solid_queue//lib/solid_queue/engine.rb#5 def table_name_prefix; end - # source://railties/8.0.2/lib/rails/engine.rb#409 + # source://solid_queue//lib/solid_queue/engine.rb#5 def use_relative_model_naming?; end # source://solid_queue//lib/solid_queue.rb#28 @@ -712,9 +385,7 @@ class SolidQueue::BlockedExecution < ::SolidQueue::Execution include ::SolidQueue::BlockedExecution::GeneratedAttributeMethods include ::SolidQueue::BlockedExecution::GeneratedAssociationMethods - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_semaphore(*args); end - def release; end private @@ -725,69 +396,34 @@ class SolidQueue::BlockedExecution < ::SolidQueue::Execution def set_expires_at; end class << self - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def expired(*args, **_arg1); end - def release_many(concurrency_keys); end def release_one(concurrency_key); end def unblock(limit); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_assumable_attributes_from_job; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_assumable_attributes_from_job=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end - def releasable(concurrency_keys); end end end module SolidQueue::BlockedExecution::GeneratedAssociationMethods - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_semaphore(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_semaphore(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_semaphore!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_semaphore; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_semaphore; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def semaphore; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def semaphore=(value); end end @@ -797,13 +433,12 @@ class SolidQueue::ClaimedExecution < ::SolidQueue::Execution include ::SolidQueue::ClaimedExecution::GeneratedAttributeMethods include ::SolidQueue::ClaimedExecution::GeneratedAssociationMethods - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_process(*args); end - def discard; end def failed_with(error); end def perform; end def release; end + def unblock_next_job; end private @@ -815,66 +450,31 @@ class SolidQueue::ClaimedExecution < ::SolidQueue::Execution def discard_all_from_jobs(*_arg0); end def discard_all_in_batches(*_arg0); end def fail_all_with(error); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def orphaned(*args, **_arg1); end - def release_all; end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end end end module SolidQueue::ClaimedExecution::GeneratedAssociationMethods - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_process(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_process(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_process!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def process; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def process=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#146 def process_changed?; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#150 def process_previously_changed?; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_process; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_process; end end @@ -886,13 +486,13 @@ end # source://solid_queue//lib/solid_queue/cli.rb#6 class SolidQueue::Cli < ::Thor - # source://solid_queue//lib/solid_queue/cli.rb#25 + # source://solid_queue//lib/solid_queue/cli.rb#26 def start; end class << self # @return [Boolean] # - # source://solid_queue//lib/solid_queue/cli.rb#18 + # source://solid_queue//lib/solid_queue/cli.rb#19 def exit_on_failure?; end end end @@ -922,19 +522,19 @@ class SolidQueue::Configuration # source://solid_queue//lib/solid_queue/configuration.rb#34 def initialize(**options); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def _run_validate_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def _validate_callbacks; end - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def _validators; end - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def _validators?; end # source://solid_queue//lib/solid_queue/configuration.rb#38 @@ -943,10 +543,10 @@ class SolidQueue::Configuration # source://solid_queue//lib/solid_queue/configuration.rb#45 def error_messages; end - # source://activemodel/8.0.2/lib/active_model/naming.rb#255 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def model_name(&_arg0); end - # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def param_delimiter=(_arg0); end private @@ -1023,54 +623,54 @@ class SolidQueue::Configuration def workers_options; end class << self - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def __callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def _validate_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def _validate_callbacks=(value); end - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def _validators; end - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def _validators=(value); end - # source://activemodel/8.0.2/lib/active_model/validations.rb#50 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def _validators?; end - # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def param_delimiter; end - # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def param_delimiter=(value); end - # source://activemodel/8.0.2/lib/active_model/conversion.rb#32 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def param_delimiter?; end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def __class_attr__validators; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def __class_attr__validators=(new_value); end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def __class_attr_param_delimiter; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://solid_queue//lib/solid_queue/configuration.rb#5 def __class_attr_param_delimiter=(new_value); end end end @@ -1111,7 +711,7 @@ class SolidQueue::Dispatcher < ::SolidQueue::Processes::Poller # source://solid_queue//lib/solid_queue/dispatcher.rb#6 def batch_size; end - # source://solid_queue//lib/solid_queue/lifecycle_hooks.rb#8 + # source://solid_queue//lib/solid_queue/dispatcher.rb#5 def lifecycle_hooks; end # source://solid_queue//lib/solid_queue/dispatcher.rb#24 @@ -1145,15 +745,15 @@ class SolidQueue::Dispatcher < ::SolidQueue::Processes::Poller def stop_concurrency_maintenance; end class << self - # source://solid_queue//lib/solid_queue/lifecycle_hooks.rb#8 + # source://solid_queue//lib/solid_queue/dispatcher.rb#5 def lifecycle_hooks; end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://solid_queue//lib/solid_queue/dispatcher.rb#8 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://solid_queue//lib/solid_queue/dispatcher.rb#8 def __class_attr___callbacks=(new_value); end end end @@ -1187,17 +787,7 @@ class SolidQueue::Dispatcher::ConcurrencyMaintenance end # source://solid_queue//lib/solid_queue/engine.rb#4 -class SolidQueue::Engine < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end +class SolidQueue::Engine < ::Rails::Engine; end class SolidQueue::Execution < ::SolidQueue::Record include ::SolidQueue::Execution::GeneratedAttributeMethods @@ -1205,9 +795,7 @@ class SolidQueue::Execution < ::SolidQueue::Record include ::SolidQueue::Execution::JobAttributes extend ::SolidQueue::Execution::JobAttributes::ClassMethods - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_job(*args); end - def discard; end def type; end @@ -1219,44 +807,21 @@ class SolidQueue::Execution < ::SolidQueue::Record def discard_all_from_jobs(jobs); end def discard_all_in_batches(batch_size: T.unsafe(nil)); end def execution_data_from_jobs(jobs); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def ordered(*args, **_arg1); end - def type; end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_assumable_attributes_from_job; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_assumable_attributes_from_job=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end - def discard_jobs(job_ids); end def lock_all_from_jobs(jobs); end end @@ -1273,31 +838,14 @@ module SolidQueue::Execution::Dispatching::ClassMethods end module SolidQueue::Execution::GeneratedAssociationMethods - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_job(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_job(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_job!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def job; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def job=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#146 def job_changed?; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#150 def job_previously_changed?; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_job; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_job; end end @@ -1357,22 +905,11 @@ class SolidQueue::FailedExecution < ::SolidQueue::Execution private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end end end @@ -1395,69 +932,33 @@ class SolidQueue::Job < ::SolidQueue::Record extend ::SolidQueue::Job::Schedulable::ClassMethods extend ::SolidQueue::Job::ConcurrencyControls::ClassMethods - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_blocked_execution(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_claimed_execution(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_failed_execution(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_ready_execution(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_recurring_execution(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_scheduled_execution(*args); end - def concurrency_duration(*_arg0, **_arg1, &_arg2); end def concurrency_limit(*_arg0, **_arg1, &_arg2); end class << self - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def clearable(*args, **_arg1); end - def enqueue(active_job, scheduled_at: T.unsafe(nil)); end def enqueue_all(active_jobs); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def failed(*args, **_arg1); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def finished(*args, **_arg1); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def scheduled(*args, **_arg1); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end - def attributes_from_active_job(active_job); end def create_all_from_active_jobs(active_jobs); end def create_from_active_job(active_job); end @@ -1487,7 +988,9 @@ module SolidQueue::Job::ConcurrencyControls def acquire_concurrency_lock; end def block; end + def concurrency_on_conflict; end def execution; end + def handle_concurrency_conflict; end def job_class; end def release_concurrency_lock; end def release_next_blocked_job; end @@ -1533,130 +1036,47 @@ module SolidQueue::Job::Executable::ClassMethods end module SolidQueue::Job::GeneratedAssociationMethods - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def blocked_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def blocked_execution=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_blocked_execution(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_claimed_execution(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_failed_execution(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_ready_execution(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_recurring_execution(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_scheduled_execution(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def claimed_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def claimed_execution=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_blocked_execution(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_blocked_execution!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_claimed_execution(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_claimed_execution!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_failed_execution(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_failed_execution!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_ready_execution(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_ready_execution!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_recurring_execution(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_recurring_execution!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_scheduled_execution(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_scheduled_execution!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def failed_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def failed_execution=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def ready_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def ready_execution=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def recurring_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def recurring_execution=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_blocked_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_claimed_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_failed_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_ready_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_recurring_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_scheduled_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_blocked_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_claimed_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_failed_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_ready_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_recurring_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_scheduled_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def scheduled_execution; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def scheduled_execution=(value); end end @@ -1718,7 +1138,7 @@ module SolidQueue::LifecycleHooks def run_stop_hooks; end end -# source://solid_queue//lib/solid_queue/lifecycle_hooks.rb#0 +# source://solid_queue//lib/solid_queue/lifecycle_hooks.rb#11 module SolidQueue::LifecycleHooks::ClassMethods # source://solid_queue//lib/solid_queue/lifecycle_hooks.rb#24 def clear_hooks; end @@ -1825,16 +1245,9 @@ class SolidQueue::Pause < ::SolidQueue::Record class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end end end @@ -1907,22 +1320,12 @@ class SolidQueue::Process < ::SolidQueue::Record include ::SolidQueue::Process::Executor extend ::SolidQueue::Process::Prunable::ClassMethods - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_claimed_executions(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_supervisees(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_supervisor(*args); end - def deregister(pruned: T.unsafe(nil)); end def heartbeat; end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def validate_associated_records_for_claimed_executions(*args); end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def validate_associated_records_for_supervisees(*args); end private @@ -1930,35 +1333,18 @@ class SolidQueue::Process < ::SolidQueue::Record def supervised?; end class << self - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def prunable(*args, **_arg1); end - def register(**attributes); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end end end @@ -1975,55 +1361,22 @@ module SolidQueue::Process::Executor end module SolidQueue::Process::GeneratedAssociationMethods - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#32 def build_supervisor(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#62 def claimed_execution_ids; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#72 def claimed_execution_ids=(ids); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def claimed_executions; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def claimed_executions=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#36 def create_supervisor(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#40 def create_supervisor!(*args, &block); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#19 def reload_supervisor; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/singular_association.rb#23 def reset_supervisor; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#62 def supervisee_ids; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#72 def supervisee_ids=(ids); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def supervisees; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def supervisees=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def supervisor; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def supervisor=(value); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#146 def supervisor_changed?; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/belongs_to.rb#150 def supervisor_previously_changed?; end end @@ -2041,114 +1394,114 @@ module SolidQueue::Process::Prunable::ClassMethods def prune(excluding: T.unsafe(nil)); end end -# source://solid_queue//lib/solid_queue/supervisor.rb#0 +# source://solid_queue//lib/solid_queue/supervisor.rb#4 module SolidQueue::Processes; end # source://solid_queue//lib/solid_queue/processes/base.rb#5 class SolidQueue::Processes::Base + include ::SolidQueue::Processes::Interruptible include ::SolidQueue::Processes::Callbacks include ::ActiveSupport::Callbacks include ::SolidQueue::Processes::Procline include ::SolidQueue::Processes::Registrable include ::SolidQueue::AppExecutor - include ::SolidQueue::Processes::Interruptible extend ::ActiveModel::Callbacks extend ::ActiveSupport::Callbacks::ClassMethods extend ::ActiveSupport::DescendantsTracker # @return [Base] a new instance of Base # - # source://solid_queue//lib/solid_queue/processes/base.rb#11 - def initialize(*_arg0); end + # source://solid_queue//lib/solid_queue/processes/base.rb#12 + def initialize(*_arg0, **_arg1, &_arg2); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def _boot_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def _run_boot_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#912 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def _run_shutdown_callbacks(&block); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#924 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def _shutdown_callbacks; end - # source://solid_queue//lib/solid_queue/processes/base.rb#20 + # source://solid_queue//lib/solid_queue/processes/base.rb#21 def hostname; end - # source://solid_queue//lib/solid_queue/processes/base.rb#16 + # source://solid_queue//lib/solid_queue/processes/base.rb#17 def kind; end - # source://solid_queue//lib/solid_queue/processes/base.rb#28 + # source://solid_queue//lib/solid_queue/processes/base.rb#29 def metadata; end # Returns the value of attribute name. # - # source://solid_queue//lib/solid_queue/processes/base.rb#9 + # source://solid_queue//lib/solid_queue/processes/base.rb#10 def name; end - # source://solid_queue//lib/solid_queue/processes/base.rb#24 + # source://solid_queue//lib/solid_queue/processes/base.rb#25 def pid; end - # source://solid_queue//lib/solid_queue/processes/base.rb#32 + # source://solid_queue//lib/solid_queue/processes/base.rb#33 def stop; end private - # source://solid_queue//lib/solid_queue/processes/base.rb#37 + # source://solid_queue//lib/solid_queue/processes/base.rb#38 def generate_name; end # @return [Boolean] # - # source://solid_queue//lib/solid_queue/processes/base.rb#41 + # source://solid_queue//lib/solid_queue/processes/base.rb#42 def stopped?; end class << self - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def __callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#69 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def __callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def _boot_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def _boot_callbacks=(value); end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#916 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def _shutdown_callbacks; end - # source://activesupport/8.0.2/lib/active_support/callbacks.rb#920 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def _shutdown_callbacks=(value); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def after_boot(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#144 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def after_shutdown(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def around_boot(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#137 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def around_shutdown(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def before_boot(*args, **options, &block); end - # source://activemodel/8.0.2/lib/active_model/callbacks.rb#130 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def before_shutdown(*args, **options, &block); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://solid_queue//lib/solid_queue/processes/base.rb#6 def __class_attr___callbacks=(new_value); end end end @@ -2176,54 +1529,33 @@ end # source://solid_queue//lib/solid_queue/processes/interruptible.rb#4 module SolidQueue::Processes::Interruptible - include ::SolidQueue::AppExecutor + # source://solid_queue//lib/solid_queue/processes/interruptible.rb#5 + def initialize(*_arg0, **_arg1, &_arg2); end - # source://solid_queue//lib/solid_queue/processes/interruptible.rb#7 + # source://solid_queue//lib/solid_queue/processes/interruptible.rb#10 def wake_up; end private - # source://solid_queue//lib/solid_queue/processes/interruptible.rb#13 - def interrupt; end - - # Sleeps for 'time'. Can be interrupted asynchronously and return early via wake_up. - # - # @param time [Numeric, Duration] the time to sleep. 0 returns immediately. + # Self-pipe for signal-handling (http://cr.yp.to/docs/selfpipe.html) # - # source://solid_queue//lib/solid_queue/processes/interruptible.rb#19 - def interruptible_sleep(time); end - - # source://solid_queue//lib/solid_queue/processes/interruptible.rb#33 - def queue; end -end - -# The original implementation of Interruptible that works -# with Ruby 3.1 and earlier -# -# source://solid_queue//lib/solid_queue/processes/og_interruptible.rb#6 -module SolidQueue::Processes::OgInterruptible - # source://solid_queue//lib/solid_queue/processes/og_interruptible.rb#7 - def wake_up; end - - private - - # source://solid_queue//lib/solid_queue/processes/og_interruptible.rb#34 + # source://solid_queue//lib/solid_queue/processes/interruptible.rb#35 def create_self_pipe; end - # source://solid_queue//lib/solid_queue/processes/og_interruptible.rb#14 + # source://solid_queue//lib/solid_queue/processes/interruptible.rb#19 def interrupt; end - # source://solid_queue//lib/solid_queue/processes/og_interruptible.rb#22 + # source://solid_queue//lib/solid_queue/processes/interruptible.rb#27 def interruptible_sleep(time); end - # Self-pipe for signal-handling (http://cr.yp.to/docs/selfpipe.html) + # Returns the value of attribute self_pipe. # - # source://solid_queue//lib/solid_queue/processes/og_interruptible.rb#30 + # source://solid_queue//lib/solid_queue/processes/interruptible.rb#17 def self_pipe; end end -# source://solid_queue//lib/solid_queue/processes/og_interruptible.rb#12 -SolidQueue::Processes::OgInterruptible::SELF_PIPE_BLOCK_SIZE = T.let(T.unsafe(nil), Integer) +# source://solid_queue//lib/solid_queue/processes/interruptible.rb#15 +SolidQueue::Processes::Interruptible::SELF_PIPE_BLOCK_SIZE = T.let(T.unsafe(nil), Integer) # source://solid_queue//lib/solid_queue/processes/poller.rb#4 class SolidQueue::Processes::Poller < ::SolidQueue::Processes::Base @@ -2304,41 +1636,41 @@ end module SolidQueue::Processes::Registrable extend ::ActiveSupport::Concern - # source://solid_queue//lib/solid_queue/processes/registrable.rb#14 + # source://solid_queue//lib/solid_queue/processes/registrable.rb#13 def process_id; end private - # source://solid_queue//lib/solid_queue/processes/registrable.rb#31 + # source://solid_queue//lib/solid_queue/processes/registrable.rb#30 def deregister; end - # source://solid_queue//lib/solid_queue/processes/registrable.rb#55 + # source://solid_queue//lib/solid_queue/processes/registrable.rb#54 def heartbeat; end - # source://solid_queue//lib/solid_queue/processes/registrable.rb#39 + # source://solid_queue//lib/solid_queue/processes/registrable.rb#38 def launch_heartbeat; end # Returns the value of attribute process. # - # source://solid_queue//lib/solid_queue/processes/registrable.rb#19 + # source://solid_queue//lib/solid_queue/processes/registrable.rb#18 def process; end # Sets the attribute process # # @param value the value to set the attribute process to. # - # source://solid_queue//lib/solid_queue/processes/registrable.rb#19 + # source://solid_queue//lib/solid_queue/processes/registrable.rb#18 def process=(_arg0); end - # source://solid_queue//lib/solid_queue/processes/registrable.rb#21 + # source://solid_queue//lib/solid_queue/processes/registrable.rb#20 def register; end # @return [Boolean] # - # source://solid_queue//lib/solid_queue/processes/registrable.rb#35 + # source://solid_queue//lib/solid_queue/processes/registrable.rb#34 def registered?; end - # source://solid_queue//lib/solid_queue/processes/registrable.rb#51 + # source://solid_queue//lib/solid_queue/processes/registrable.rb#50 def stop_heartbeat; end end @@ -2359,7 +1691,7 @@ module SolidQueue::Processes::Runnable # source://solid_queue//lib/solid_queue/processes/runnable.rb#19 def stop; end - # source://solid_queue//lib/solid_queue/processes/supervised.rb#8 + # source://solid_queue//lib/solid_queue/processes/runnable.rb#5 def supervisor; end private @@ -2498,36 +1830,18 @@ class SolidQueue::ReadyExecution < ::SolidQueue::Execution class << self def aggregated_count_across(queue_list); end def claim(queue_list, limit, process_id); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def queued_as(*args, **_arg1); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_assumable_attributes_from_job; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_assumable_attributes_from_job=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end - def discard_jobs(job_ids); end def lock_candidates(executions, process_id); end def select_and_lock(queue_relation, process_id, limit); end @@ -2547,16 +1861,9 @@ class SolidQueue::Record < ::ActiveRecord::Base private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end end end @@ -2570,25 +1877,15 @@ class SolidQueue::RecurringExecution < ::SolidQueue::Execution class << self def clear_in_batches(batch_size: T.unsafe(nil)); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def clearable(*args, **_arg1); end - def create_or_insert!(**attributes); end def record(task_key, run_at, &block); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end end end @@ -2603,10 +1900,7 @@ class SolidQueue::RecurringJob < ::ActiveJob::Base class << self private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_queue_name; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_queue_name=(new_value); end end end @@ -2616,10 +1910,7 @@ class SolidQueue::RecurringTask < ::SolidQueue::Record include ::SolidQueue::RecurringTask::GeneratedAssociationMethods def attributes_for_upsert; end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def autosave_associated_records_for_recurring_executions(*args); end - def default_job_class; end def default_job_class=(val); end def delay_from_now; end @@ -2628,8 +1919,6 @@ class SolidQueue::RecurringTask < ::SolidQueue::Record def next_time; end def previous_time; end def to_s; end - - # source://activerecord/8.0.2/lib/active_record/autosave_association.rb#162 def validate_associated_records_for_recurring_executions(*args); end private @@ -2650,36 +1939,18 @@ class SolidQueue::RecurringTask < ::SolidQueue::Record def default_job_class; end def default_job_class=(val); end def from_configuration(key, **options); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def static(*args, **_arg1); end - def wrap(args); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__reflections; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end end end @@ -2692,16 +1963,9 @@ class SolidQueue::RecurringTask::Arguments end module SolidQueue::RecurringTask::GeneratedAssociationMethods - # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#62 def recurring_execution_ids; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/collection_association.rb#72 def recurring_execution_ids=(ids); end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#104 def recurring_executions; end - - # source://activerecord/8.0.2/lib/active_record/associations/builder/association.rb#112 def recurring_executions=(value); end end @@ -2715,40 +1979,19 @@ class SolidQueue::ScheduledExecution < ::SolidQueue::Execution class << self def dispatch_next_batch(batch_size); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def due(*args, **_arg1); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def next_batch(*args, **_arg1); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def ordered(*args, **_arg1); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_assumable_attributes_from_job; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_assumable_attributes_from_job=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end end end @@ -2768,7 +2011,7 @@ class SolidQueue::Scheduler < ::SolidQueue::Processes::Base # source://solid_queue//lib/solid_queue/scheduler.rb#16 def initialize(recurring_tasks:, **options); end - # source://solid_queue//lib/solid_queue/lifecycle_hooks.rb#8 + # source://solid_queue//lib/solid_queue/scheduler.rb#6 def lifecycle_hooks; end # source://solid_queue//lib/solid_queue/scheduler.rb#22 @@ -2799,15 +2042,15 @@ class SolidQueue::Scheduler < ::SolidQueue::Processes::Base def unschedule_recurring_tasks; end class << self - # source://solid_queue//lib/solid_queue/lifecycle_hooks.rb#8 + # source://solid_queue//lib/solid_queue/scheduler.rb#6 def lifecycle_hooks; end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://solid_queue//lib/solid_queue/scheduler.rb#10 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://solid_queue//lib/solid_queue/scheduler.rb#10 def __class_attr___callbacks=(new_value); end end end @@ -2862,30 +2105,18 @@ class SolidQueue::Semaphore < ::SolidQueue::Record include ::SolidQueue::Semaphore::GeneratedAssociationMethods class << self - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def available(*args, **_arg1); end - def create_unique_by(attributes); end - - # source://activerecord/8.0.2/lib/active_record/scoping/named.rb#174 def expired(*args, **_arg1); end - def signal(job); end def signal_all(jobs); end def wait(job); end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr__validators; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 def __class_attr_defined_enums; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 def __class_attr_defined_enums=(new_value); end end end @@ -2929,7 +2160,7 @@ class SolidQueue::Supervisor < ::SolidQueue::Processes::Base # source://solid_queue//lib/solid_queue/supervisor.rb#23 def initialize(configuration); end - # source://solid_queue//lib/solid_queue/lifecycle_hooks.rb#8 + # source://solid_queue//lib/solid_queue/supervisor.rb#5 def lifecycle_hooks; end # source://solid_queue//lib/solid_queue/supervisor.rb#31 @@ -2942,7 +2173,7 @@ class SolidQueue::Supervisor < ::SolidQueue::Processes::Base # @return [Boolean] # - # source://solid_queue//lib/solid_queue/supervisor.rb#182 + # source://solid_queue//lib/solid_queue/supervisor.rb#185 def all_forks_terminated?; end # source://solid_queue//lib/solid_queue/supervisor.rb#49 @@ -2963,7 +2194,11 @@ class SolidQueue::Supervisor < ::SolidQueue::Processes::Base # source://solid_queue//lib/solid_queue/supervisor.rb#47 def forks; end - # source://solid_queue//lib/solid_queue/supervisor.rb#175 + # When a supervised fork crashes or exits we need to mark all the + # executions it had claimed as failed so that they can be retried + # by some other worker. + # + # source://solid_queue//lib/solid_queue/supervisor.rb#178 def handle_claimed_jobs_by(terminated_fork, status); end # source://solid_queue//lib/solid_queue/supervisor.rb#136 @@ -3009,7 +2244,7 @@ class SolidQueue::Supervisor < ::SolidQueue::Processes::Base def terminate_immediately; end class << self - # source://solid_queue//lib/solid_queue/lifecycle_hooks.rb#8 + # source://solid_queue//lib/solid_queue/supervisor.rb#5 def lifecycle_hooks; end # source://solid_queue//lib/solid_queue/supervisor.rb#11 @@ -3017,10 +2252,10 @@ class SolidQueue::Supervisor < ::SolidQueue::Processes::Base private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://solid_queue//lib/solid_queue/supervisor.rb#6 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://solid_queue//lib/solid_queue/supervisor.rb#6 def __class_attr___callbacks=(new_value); end end end @@ -3149,7 +2384,7 @@ class SolidQueue::Worker < ::SolidQueue::Processes::Poller # source://solid_queue//lib/solid_queue/worker.rb#13 def initialize(**options); end - # source://solid_queue//lib/solid_queue/lifecycle_hooks.rb#8 + # source://solid_queue//lib/solid_queue/worker.rb#5 def lifecycle_hooks; end # source://solid_queue//lib/solid_queue/worker.rb#24 @@ -3185,15 +2420,15 @@ class SolidQueue::Worker < ::SolidQueue::Processes::Poller def shutdown; end class << self - # source://solid_queue//lib/solid_queue/lifecycle_hooks.rb#8 + # source://solid_queue//lib/solid_queue/worker.rb#5 def lifecycle_hooks; end private - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 + # source://solid_queue//lib/solid_queue/worker.rb#7 def __class_attr___callbacks; end - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 + # source://solid_queue//lib/solid_queue/worker.rb#7 def __class_attr___callbacks=(new_value); end end end diff --git a/sorbet/rbi/gems/spoom@1.6.2.rbi b/sorbet/rbi/gems/spoom@1.7.6.rbi similarity index 68% rename from sorbet/rbi/gems/spoom@1.6.2.rbi rename to sorbet/rbi/gems/spoom@1.7.6.rbi index c4f308f7..797ab27a 100644 --- a/sorbet/rbi/gems/spoom@1.6.2.rbi +++ b/sorbet/rbi/gems/spoom@1.7.6.rbi @@ -9,22 +9,14 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `spoom` gem. -# Please instead update this file by running `spoom srb sigs export`. +# Please instead update this file by running `bundle exec spoom srb sigs export`. # source://spoom//lib/spoom.rb#7 module Spoom class << self - # : (String ruby, file: String) -> Prism::Node - # # source://spoom//lib/spoom/parse.rb#11 - sig { params(ruby: ::String, file: ::String).returns(::Prism::Node) } - def parse_ruby(ruby, file:); end - - # : (String ruby, file: String) -> [Prism::Node, Array[Prism::Comment]] - # - # source://spoom//lib/spoom/parse.rb#27 - sig { params(ruby: ::String, file: ::String).returns([::Prism::Node, T::Array[::Prism::Comment]]) } - def parse_ruby_with_comments(ruby, file:); end + sig { params(ruby: ::String, file: ::String, comments: T::Boolean).returns(::Prism::Node) } + def parse_ruby(ruby, file:, comments: T.unsafe(nil)); end end end @@ -36,132 +28,108 @@ class Spoom::Cli::Deadcode < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # : (*String paths) -> void - # # source://spoom//lib/spoom/cli/deadcode.rb#51 sig { params(paths: ::String).void } def deadcode(*paths); end + # source://spoom//lib/spoom/cli.rb#71 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end # source://spoom//lib/spoom/cli/deadcode.rb#153 def remove(location_string); end end -# source://spoom//lib/spoom/cli/helper.rb#10 +# source://spoom//lib/spoom/cli/helper.rb#11 module Spoom::Cli::Helper include ::Spoom::Colorize requires_ancestor { Thor } - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#149 + # source://spoom//lib/spoom/cli/helper.rb#146 sig { params(string: ::String).returns(::String) } def blue(string); end # Collect files from `paths`, defaulting to `exec_path` - # : (Array[String] paths, ?include_rbi_files: bool) -> Array[String] # - # source://spoom//lib/spoom/cli/helper.rb#85 + # source://spoom//lib/spoom/cli/helper.rb#82 sig { params(paths: T::Array[::String], include_rbi_files: T::Boolean).returns(T::Array[::String]) } def collect_files(paths, include_rbi_files: T.unsafe(nil)); end # Is the `--color` option true? - # : -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/cli/helper.rb#113 + # source://spoom//lib/spoom/cli/helper.rb#110 sig { returns(T::Boolean) } def color?; end # Colorize a string if `color?` - # : (String string, *Color color) -> String # - # source://spoom//lib/spoom/cli/helper.rb#142 + # source://spoom//lib/spoom/cli/helper.rb#139 sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } def colorize(string, *color); end # Returns the context at `--path` (by default the current working directory) - # : -> Context # - # source://spoom//lib/spoom/cli/helper.rb#58 + # source://spoom//lib/spoom/cli/helper.rb#55 sig { returns(::Spoom::Context) } def context; end # Raise if `spoom` is not ran inside a context with a `sorbet/config` file - # : -> Context # - # source://spoom//lib/spoom/cli/helper.rb#64 + # source://spoom//lib/spoom/cli/helper.rb#61 sig { returns(::Spoom::Context) } def context_requiring_sorbet!; end - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#154 + # source://spoom//lib/spoom/cli/helper.rb#151 sig { params(string: ::String).returns(::String) } def cyan(string); end # Return the path specified through `--path` - # : -> String # - # source://spoom//lib/spoom/cli/helper.rb#79 + # source://spoom//lib/spoom/cli/helper.rb#76 sig { returns(::String) } def exec_path; end - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#159 + # source://spoom//lib/spoom/cli/helper.rb#156 sig { params(string: ::String).returns(::String) } def gray(string); end - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#164 + # source://spoom//lib/spoom/cli/helper.rb#161 sig { params(string: ::String).returns(::String) } def green(string); end - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#118 + # source://spoom//lib/spoom/cli/helper.rb#115 sig { params(string: ::String).returns(::String) } def highlight(string); end - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#169 + # source://spoom//lib/spoom/cli/helper.rb#166 sig { params(string: ::String).returns(::String) } def red(string); end # Print `message` on `$stdout` - # : (String message) -> void # - # source://spoom//lib/spoom/cli/helper.rb#19 + # source://spoom//lib/spoom/cli/helper.rb#16 sig { params(message: ::String).void } def say(message); end # Print `message` on `$stderr` # # The message is prefixed by a status (default: `Error`). - # : (String message, ?status: String?, ?nl: bool) -> void # - # source://spoom//lib/spoom/cli/helper.rb#32 + # source://spoom//lib/spoom/cli/helper.rb#29 sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void } def say_error(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end # Print `message` on `$stderr` # # The message is prefixed by a status (default: `Warning`). - # : (String message, ?status: String?, ?nl: bool) -> void # - # source://spoom//lib/spoom/cli/helper.rb#46 + # source://spoom//lib/spoom/cli/helper.rb#43 sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void } def say_warning(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#174 + # source://spoom//lib/spoom/cli/helper.rb#171 sig { params(string: ::String).returns(::String) } def yellow(string); end end @@ -174,8 +142,6 @@ class Spoom::Cli::Main < ::Thor # source://spoom//lib/spoom/cli.rb#100 def __print_version; end - # : (?String directory) -> void - # # source://spoom//lib/spoom/cli.rb#57 sig { params(directory: ::String).void } def bump(directory = T.unsafe(nil)); end @@ -183,13 +149,13 @@ class Spoom::Cli::Main < ::Thor # source://spoom//lib/spoom/cli.rb#64 def coverage(*args); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli.rb#71 def deadcode(*args); end # source://spoom//lib/spoom/cli.rb#74 def lsp(*args); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli.rb#21 def srb(*args); end # source://spoom//lib/spoom/cli.rb#93 @@ -220,12 +186,13 @@ class Spoom::Cli::Srb::Assertions < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper + # source://spoom//lib/spoom/cli/srb.rb#17 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - # source://spoom//lib/spoom/cli/srb/assertions.rb#29 + # source://spoom//lib/spoom/cli/srb/assertions.rb#42 def transform_files(files, &block); end - # source://spoom//lib/spoom/cli/srb/assertions.rb#13 + # source://spoom//lib/spoom/cli/srb/assertions.rb#18 def translate(*paths); end end @@ -234,12 +201,11 @@ class Spoom::Cli::Srb::Bump < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # : (?String directory) -> void - # # source://spoom//lib/spoom/cli/srb/bump.rb#49 sig { params(directory: ::String).void } def bump(directory = T.unsafe(nil)); end + # source://spoom//lib/spoom/cli/srb.rb#20 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end # source://spoom//lib/spoom/cli/srb/bump.rb#170 @@ -257,6 +223,7 @@ class Spoom::Cli::Srb::Coverage < ::Thor # source://spoom//lib/spoom/cli/srb/coverage.rb#199 def bundle_install(path, sha); end + # source://spoom//lib/spoom/cli/srb.rb#23 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end # source://spoom//lib/spoom/cli/srb/coverage.rb#211 @@ -296,6 +263,7 @@ class Spoom::Cli::Srb::LSP < ::Thor # source://spoom//lib/spoom/cli/srb/lsp.rb#55 def find(query); end + # source://spoom//lib/spoom/cli/srb.rb#26 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end # TODO: options, filter, limit, kind etc.. filter rbi @@ -341,49 +309,66 @@ class Spoom::Cli::Srb::LSP < ::Thor def types(file, line, col); end end -# source://spoom//lib/spoom/cli/srb.rb#14 +# source://spoom//lib/spoom/cli/srb.rb#15 class Spoom::Cli::Srb::Main < ::Thor - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli/srb.rb#17 def assertions(*args); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli/srb.rb#20 def bump(*args); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli/srb.rb#23 def coverage(*args); end + # source://spoom//lib/spoom/cli.rb#21 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli/srb.rb#26 def lsp(*args); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli/srb.rb#29 + def metrics(*args); end + + # source://spoom//lib/spoom/cli/srb.rb#32 def sigs(*args); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli/srb.rb#35 def tc(*args); end end -# source://spoom//lib/spoom/cli/srb/sigs.rb#9 +# source://spoom//lib/spoom/cli/srb/metrics.rb#7 +class Spoom::Cli::Srb::Metrics < ::Thor + include ::Spoom::Colorize + include ::Spoom::Cli::Helper + + # source://spoom//lib/spoom/cli/srb.rb#29 + def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end + + # source://spoom//lib/spoom/cli/srb/metrics.rb#14 + def show(*paths); end +end + +# source://spoom//lib/spoom/cli/srb/sigs.rb#7 class Spoom::Cli::Srb::Sigs < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # source://spoom//lib/spoom/cli/srb/sigs.rb#198 + # source://spoom//lib/spoom/cli/srb/sigs.rb#222 def exec(context, command); end - # source://spoom//lib/spoom/cli/srb/sigs.rb#69 + # source://spoom//lib/spoom/cli/srb/sigs.rb#93 def export(output_path = T.unsafe(nil)); end + # source://spoom//lib/spoom/cli/srb.rb#32 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - # source://spoom//lib/spoom/cli/srb/sigs.rb#50 + # source://spoom//lib/spoom/cli/srb/sigs.rb#74 def strip(*paths); end - # source://spoom//lib/spoom/cli/srb/sigs.rb#175 + # source://spoom//lib/spoom/cli/srb/sigs.rb#199 def transform_files(files, &block); end - # source://spoom//lib/spoom/cli/srb/sigs.rb#21 + # source://spoom//lib/spoom/cli/srb/sigs.rb#23 def translate(*paths); end end @@ -398,6 +383,7 @@ class Spoom::Cli::Srb::Tc < ::Thor # source://spoom//lib/spoom/cli/srb/tc.rb#138 def format_error(error, format); end + # source://spoom//lib/spoom/cli/srb.rb#35 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end # source://spoom//lib/spoom/cli/srb/tc.rb#28 @@ -439,8 +425,6 @@ class Spoom::Color < ::T::Enum YELLOW = new end - # : -> String - # # source://spoom//lib/spoom/colors.rb#30 sig { returns(::String) } def ansi_code; end @@ -448,8 +432,6 @@ end # source://spoom//lib/spoom/colors.rb#35 module Spoom::Colorize - # : (String string, *Color color) -> String - # # source://spoom//lib/spoom/colors.rb#37 sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } def set_color(string, *color); end @@ -472,7 +454,6 @@ class Spoom::Context # # The directory will not be created if it doesn't exist. # Call `#make!` to create it. - # : (String absolute_path) -> void # # @return [Context] a new instance of Context # @@ -481,7 +462,6 @@ class Spoom::Context def initialize(absolute_path); end # The absolute path to the directory this context is about - # : String # # source://spoom//lib/spoom/context.rb#40 sig { returns(::String) } @@ -492,7 +472,6 @@ class Spoom::Context # # `name` is used as prefix to the temporary directory name. # The directory will be created if it doesn't exist. - # : (?String? name) -> instance # # source://spoom//lib/spoom/context.rb#33 sig { params(name: T.nilable(::String)).returns(T.attached_class) } @@ -502,98 +481,85 @@ end # Bundle features for a context # -# source://spoom//lib/spoom/context/bundle.rb#7 +# source://spoom//lib/spoom/context/bundle.rb#8 module Spoom::Context::Bundle requires_ancestor { Spoom::Context } # Run a command with `bundle` in this context directory - # : (String command, ?version: String?, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/bundle.rb#32 + # source://spoom//lib/spoom/context/bundle.rb#29 sig { params(command: ::String, version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def bundle(command, version: T.unsafe(nil), capture_err: T.unsafe(nil)); end # Run a command `bundle exec` in this context directory - # : (String command, ?version: String?, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/bundle.rb#45 + # source://spoom//lib/spoom/context/bundle.rb#42 sig { params(command: ::String, version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def bundle_exec(command, version: T.unsafe(nil), capture_err: T.unsafe(nil)); end # Run `bundle install` in this context directory - # : (?version: String?, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/bundle.rb#39 + # source://spoom//lib/spoom/context/bundle.rb#36 sig { params(version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def bundle_install!(version: T.unsafe(nil), capture_err: T.unsafe(nil)); end # Get `gem` version from the `Gemfile.lock` content # # Returns `nil` if `gem` cannot be found in the Gemfile. - # : (String gem) -> Gem::Version? # - # source://spoom//lib/spoom/context/bundle.rb#61 + # source://spoom//lib/spoom/context/bundle.rb#58 sig { params(gem: ::String).returns(T.nilable(::Gem::Version)) } def gem_version_from_gemfile_lock(gem); end - # : -> Hash[String, Bundler::LazySpecification] - # - # source://spoom//lib/spoom/context/bundle.rb#50 + # source://spoom//lib/spoom/context/bundle.rb#47 sig { returns(T::Hash[::String, ::Bundler::LazySpecification]) } def gemfile_lock_specs; end # Read the contents of the Gemfile in this context directory - # : -> String? # - # source://spoom//lib/spoom/context/bundle.rb#14 + # source://spoom//lib/spoom/context/bundle.rb#11 sig { returns(T.nilable(::String)) } def read_gemfile; end # Read the contents of the Gemfile.lock in this context directory - # : -> String? # - # source://spoom//lib/spoom/context/bundle.rb#20 + # source://spoom//lib/spoom/context/bundle.rb#17 sig { returns(T.nilable(::String)) } def read_gemfile_lock; end # Set the `contents` of the Gemfile in this context directory - # : (String contents, ?append: bool) -> void # - # source://spoom//lib/spoom/context/bundle.rb#26 + # source://spoom//lib/spoom/context/bundle.rb#23 sig { params(contents: ::String, append: T::Boolean).void } def write_gemfile!(contents, append: T.unsafe(nil)); end end # Execution features for a context # -# source://spoom//lib/spoom/context/exec.rb#25 +# source://spoom//lib/spoom/context/exec.rb#26 module Spoom::Context::Exec requires_ancestor { Spoom::Context } # Run a command in this context directory - # : (String command, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/exec.rb#32 + # source://spoom//lib/spoom/context/exec.rb#29 sig { params(command: ::String, capture_err: T::Boolean).returns(::Spoom::ExecResult) } def exec(command, capture_err: T.unsafe(nil)); end end # File System features for a context # -# source://spoom//lib/spoom/context/file_system.rb#7 +# source://spoom//lib/spoom/context/file_system.rb#8 module Spoom::Context::FileSystem requires_ancestor { Spoom::Context } # Returns the absolute path to `relative_path` in the context's directory - # : (String relative_path) -> String # - # source://spoom//lib/spoom/context/file_system.rb#14 + # source://spoom//lib/spoom/context/file_system.rb#11 sig { params(relative_path: ::String).returns(::String) } def absolute_path_to(relative_path); end - # : (?allow_extensions: Array[String], ?allow_mime_types: Array[String], ?exclude_patterns: Array[String]) -> Array[String] - # - # source://spoom//lib/spoom/context/file_system.rb#46 + # source://spoom//lib/spoom/context/file_system.rb#43 sig do params( allow_extensions: T::Array[::String], @@ -606,129 +572,113 @@ module Spoom::Context::FileSystem # Delete this context and its content # # Warning: it will `rm -rf` the context directory on the file system. - # : -> void # - # source://spoom//lib/spoom/context/file_system.rb#98 + # source://spoom//lib/spoom/context/file_system.rb#95 sig { void } def destroy!; end # Does the context directory at `absolute_path` exist and is a directory? - # : -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/context/file_system.rb#20 + # source://spoom//lib/spoom/context/file_system.rb#17 sig { returns(T::Boolean) } def exist?; end # Does `relative_path` point to an existing file in this context directory? - # : (String relative_path) -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/context/file_system.rb#58 + # source://spoom//lib/spoom/context/file_system.rb#55 sig { params(relative_path: ::String).returns(T::Boolean) } def file?(relative_path); end # List all files in this context matching `pattern` - # : (?String pattern) -> Array[String] # - # source://spoom//lib/spoom/context/file_system.rb#33 + # source://spoom//lib/spoom/context/file_system.rb#30 sig { params(pattern: ::String).returns(T::Array[::String]) } def glob(pattern = T.unsafe(nil)); end # List all files at the top level of this context directory - # : -> Array[String] # - # source://spoom//lib/spoom/context/file_system.rb#41 + # source://spoom//lib/spoom/context/file_system.rb#38 sig { returns(T::Array[::String]) } def list; end # Create the context directory at `absolute_path` - # : -> void # - # source://spoom//lib/spoom/context/file_system.rb#26 + # source://spoom//lib/spoom/context/file_system.rb#23 sig { void } def mkdir!; end # Move the file or directory from `from_relative_path` to `to_relative_path` - # : (String from_relative_path, String to_relative_path) -> void # - # source://spoom//lib/spoom/context/file_system.rb#88 + # source://spoom//lib/spoom/context/file_system.rb#85 sig { params(from_relative_path: ::String, to_relative_path: ::String).void } def move!(from_relative_path, to_relative_path); end # Return the contents of the file at `relative_path` in this context directory # # Will raise if the file doesn't exist. - # : (String relative_path) -> String # - # source://spoom//lib/spoom/context/file_system.rb#66 + # source://spoom//lib/spoom/context/file_system.rb#63 sig { params(relative_path: ::String).returns(::String) } def read(relative_path); end # Remove the path at `relative_path` (recursive + force) in this context directory - # : (String relative_path) -> void # - # source://spoom//lib/spoom/context/file_system.rb#82 + # source://spoom//lib/spoom/context/file_system.rb#79 sig { params(relative_path: ::String).void } def remove!(relative_path); end # Write `contents` in the file at `relative_path` in this context directory # # Append to the file if `append` is true. - # : (String relative_path, ?String contents, ?append: bool) -> void # - # source://spoom//lib/spoom/context/file_system.rb#74 + # source://spoom//lib/spoom/context/file_system.rb#71 sig { params(relative_path: ::String, contents: ::String, append: T::Boolean).void } def write!(relative_path, contents = T.unsafe(nil), append: T.unsafe(nil)); end end # Git features for a context # -# source://spoom//lib/spoom/context/git.rb#31 +# source://spoom//lib/spoom/context/git.rb#32 module Spoom::Context::Git requires_ancestor { Spoom::Context } # Run a command prefixed by `git` in this context directory - # : (String command) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#38 + # source://spoom//lib/spoom/context/git.rb#35 sig { params(command: ::String).returns(::Spoom::ExecResult) } def git(command); end # Run `git checkout` in this context directory - # : (?ref: String) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#57 + # source://spoom//lib/spoom/context/git.rb#54 sig { params(ref: ::String).returns(::Spoom::ExecResult) } def git_checkout!(ref: T.unsafe(nil)); end # Run `git checkout -b ` in this context directory - # : (String branch_name, ?ref: String?) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#63 + # source://spoom//lib/spoom/context/git.rb#60 sig { params(branch_name: ::String, ref: T.nilable(::String)).returns(::Spoom::ExecResult) } def git_checkout_new_branch!(branch_name, ref: T.unsafe(nil)); end # Run `git add . && git commit` in this context directory - # : (?message: String, ?time: Time, ?allow_empty: bool) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#73 + # source://spoom//lib/spoom/context/git.rb#70 sig { params(message: ::String, time: ::Time, allow_empty: T::Boolean).returns(::Spoom::ExecResult) } def git_commit!(message: T.unsafe(nil), time: T.unsafe(nil), allow_empty: T.unsafe(nil)); end # Get the current git branch in this context directory - # : -> String? # - # source://spoom//lib/spoom/context/git.rb#84 + # source://spoom//lib/spoom/context/git.rb#81 sig { returns(T.nilable(::String)) } def git_current_branch; end # Run `git diff` in this context directory - # : (*String arg) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#93 + # source://spoom//lib/spoom/context/git.rb#90 sig { params(arg: ::String).returns(::Spoom::ExecResult) } def git_diff(*arg); end @@ -736,115 +686,97 @@ module Spoom::Context::Git # # Warning: passing a branch will run `git init -b ` which is only available in git 2.28+. # In older versions, use `git_init!` followed by `git("checkout -b ")`. - # : (?branch: String?) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#47 + # source://spoom//lib/spoom/context/git.rb#44 sig { params(branch: T.nilable(::String)).returns(::Spoom::ExecResult) } def git_init!(branch: T.unsafe(nil)); end # Get the last commit in the currently checked out branch - # : (?short_sha: bool) -> Spoom::Git::Commit? # - # source://spoom//lib/spoom/context/git.rb#99 + # source://spoom//lib/spoom/context/git.rb#96 sig { params(short_sha: T::Boolean).returns(T.nilable(::Spoom::Git::Commit)) } def git_last_commit(short_sha: T.unsafe(nil)); end - # : (*String arg) -> ExecResult - # - # source://spoom//lib/spoom/context/git.rb#110 + # source://spoom//lib/spoom/context/git.rb#107 sig { params(arg: ::String).returns(::Spoom::ExecResult) } def git_log(*arg); end # Run `git push ` in this context directory - # : (String remote, String ref, ?force: bool) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#116 + # source://spoom//lib/spoom/context/git.rb#113 sig { params(remote: ::String, ref: ::String, force: T::Boolean).returns(::Spoom::ExecResult) } def git_push!(remote, ref, force: T.unsafe(nil)); end - # : (*String arg) -> ExecResult - # - # source://spoom//lib/spoom/context/git.rb#121 + # source://spoom//lib/spoom/context/git.rb#118 sig { params(arg: ::String).returns(::Spoom::ExecResult) } def git_show(*arg); end # Is there uncommitted changes in this context directory? - # : (?path: String) -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/context/git.rb#127 + # source://spoom//lib/spoom/context/git.rb#124 sig { params(path: ::String).returns(T::Boolean) } def git_workdir_clean?(path: T.unsafe(nil)); end end # Sorbet features for a context # -# source://spoom//lib/spoom/context/sorbet.rb#7 +# source://spoom//lib/spoom/context/sorbet.rb#8 module Spoom::Context::Sorbet requires_ancestor { Spoom::Context } # Does this context has a `sorbet/config` file? - # : -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/context/sorbet.rb#106 + # source://spoom//lib/spoom/context/sorbet.rb#103 sig { returns(T::Boolean) } def has_sorbet_config?; end # Read the strictness sigil from the file at `relative_path` (returns `nil` if no sigil) - # : (String relative_path) -> String? # - # source://spoom//lib/spoom/context/sorbet.rb#129 + # source://spoom//lib/spoom/context/sorbet.rb#126 sig { params(relative_path: ::String).returns(T.nilable(::String)) } def read_file_strictness(relative_path); end # Read the contents of `sorbet/config` in this context directory - # : -> String # - # source://spoom//lib/spoom/context/sorbet.rb#117 + # source://spoom//lib/spoom/context/sorbet.rb#114 sig { returns(::String) } def read_sorbet_config; end - # : -> Spoom::Sorbet::Config - # - # source://spoom//lib/spoom/context/sorbet.rb#111 + # source://spoom//lib/spoom/context/sorbet.rb#108 sig { returns(::Spoom::Sorbet::Config) } def sorbet_config; end # Get the commit introducing the `sorbet/config` file - # : -> Spoom::Git::Commit? # - # source://spoom//lib/spoom/context/sorbet.rb#135 + # source://spoom//lib/spoom/context/sorbet.rb#132 sig { returns(T.nilable(::Spoom::Git::Commit)) } def sorbet_intro_commit; end # Get the commit removing the `sorbet/config` file - # : -> Spoom::Git::Commit? # - # source://spoom//lib/spoom/context/sorbet.rb#147 + # source://spoom//lib/spoom/context/sorbet.rb#144 sig { returns(T.nilable(::Spoom::Git::Commit)) } def sorbet_removal_commit; end # Run `bundle exec srb` in this context directory - # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/sorbet.rb#14 + # source://spoom//lib/spoom/context/sorbet.rb#11 sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def srb(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end # List all files typechecked by Sorbet from its `config` - # : (?with_config: Spoom::Sorbet::Config?, ?include_rbis: bool) -> Array[String] # - # source://spoom//lib/spoom/context/sorbet.rb#58 + # source://spoom//lib/spoom/context/sorbet.rb#55 sig { params(with_config: T.nilable(::Spoom::Sorbet::Config), include_rbis: T::Boolean).returns(T::Array[::String]) } def srb_files(with_config: T.unsafe(nil), include_rbis: T.unsafe(nil)); end # List all files typechecked by Sorbet from its `config` that matches `strictness` - # : (String strictness, ?with_config: Spoom::Sorbet::Config?, ?include_rbis: bool) -> Array[String] # - # source://spoom//lib/spoom/context/sorbet.rb#91 + # source://spoom//lib/spoom/context/sorbet.rb#88 sig do params( strictness: ::String, @@ -854,9 +786,7 @@ module Spoom::Context::Sorbet end def srb_files_with_strictness(strictness, with_config: T.unsafe(nil), include_rbis: T.unsafe(nil)); end - # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> Hash[String, Integer]? - # - # source://spoom//lib/spoom/context/sorbet.rb#38 + # source://spoom//lib/spoom/context/sorbet.rb#35 sig do params( arg: ::String, @@ -866,37 +796,51 @@ module Spoom::Context::Sorbet end def srb_metrics(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end - # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> ExecResult - # - # source://spoom//lib/spoom/context/sorbet.rb#32 + # source://spoom//lib/spoom/context/sorbet.rb#29 sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def srb_tc(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end - # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> String? - # - # source://spoom//lib/spoom/context/sorbet.rb#97 + # source://spoom//lib/spoom/context/sorbet.rb#94 sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(T.nilable(::String)) } def srb_version(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end # Set the `contents` of `sorbet/config` in this context directory - # : (String contents, ?append: bool) -> void # - # source://spoom//lib/spoom/context/sorbet.rb#123 + # source://spoom//lib/spoom/context/sorbet.rb#120 sig { params(contents: ::String, append: T::Boolean).void } def write_sorbet_config!(contents, append: T.unsafe(nil)); end end +# source://spoom//lib/spoom/counters.rb#6 +class Spoom::Counters < ::Hash + extend T::Generic + + K = type_member { { fixed: String } } + V = type_member { { fixed: Integer } } + Elem = type_member { { fixed: [String, Integer] } } + + # @return [Counters] a new instance of Counters + # + # source://spoom//lib/spoom/counters.rb#8 + sig { void } + def initialize; end + + # source://spoom//lib/spoom/counters.rb#18 + sig { params(key: ::String).returns(::Integer) } + def [](key); end + + # source://spoom//lib/spoom/counters.rb#13 + sig { params(key: ::String).void } + def increment(key); end +end + # source://spoom//lib/spoom/coverage/snapshot.rb#5 module Spoom::Coverage class << self - # : (Context context) -> FileTree - # # source://spoom//lib/spoom/coverage.rb#101 sig { params(context: ::Spoom::Context).returns(::Spoom::FileTree) } def file_tree(context); end - # : (Context context, Array[Snapshot] snapshots, palette: D3::ColorPalette) -> Report - # # source://spoom//lib/spoom/coverage.rb#81 sig do params( @@ -907,8 +851,6 @@ module Spoom::Coverage end def report(context, snapshots, palette:); end - # : (Context context, ?rbi: bool, ?sorbet_bin: String?) -> Snapshot - # # source://spoom//lib/spoom/coverage.rb#14 sig do params( @@ -921,70 +863,57 @@ module Spoom::Coverage end end -# source://spoom//lib/spoom/coverage/report.rb#87 +# source://spoom//lib/spoom/coverage/report.rb#81 module Spoom::Coverage::Cards; end -# source://spoom//lib/spoom/coverage/report.rb#88 +# source://spoom//lib/spoom/coverage/report.rb#82 class Spoom::Coverage::Cards::Card < ::Spoom::Coverage::Template - # : (?template: String, ?title: String?, ?body: String?) -> void - # # @return [Card] a new instance of Card # - # source://spoom//lib/spoom/coverage/report.rb#97 + # source://spoom//lib/spoom/coverage/report.rb#89 sig { params(template: ::String, title: T.nilable(::String), body: T.nilable(::String)).void } def initialize(template: T.unsafe(nil), title: T.unsafe(nil), body: T.unsafe(nil)); end - # : String? - # - # source://spoom//lib/spoom/coverage/report.rb#94 + # source://spoom//lib/spoom/coverage/report.rb#86 def body; end - # : String? - # - # source://spoom//lib/spoom/coverage/report.rb#94 + # source://spoom//lib/spoom/coverage/report.rb#86 sig { returns(T.nilable(::String)) } def title; end end -# : String -# -# source://spoom//lib/spoom/coverage/report.rb#91 +# source://spoom//lib/spoom/coverage/report.rb#83 Spoom::Coverage::Cards::Card::TEMPLATE = T.let(T.unsafe(nil), String) -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/report.rb#104 +# source://spoom//lib/spoom/coverage/report.rb#97 class Spoom::Coverage::Cards::Erb < ::Spoom::Coverage::Cards::Card abstract! - # : -> void - # # @return [Erb] a new instance of Erb # - # source://spoom//lib/spoom/coverage/report.rb#110 + # source://spoom//lib/spoom/coverage/report.rb#99 sig { void } def initialize; end # @abstract + # @raise [NotImplementedError] # - # source://spoom//lib/spoom/coverage/report.rb#119 + # source://spoom//lib/spoom/coverage/report.rb#109 sig { abstract.returns(::String) } def erb; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#114 + # source://spoom//lib/spoom/coverage/report.rb#103 sig { override.returns(::String) } def html; end end -# source://spoom//lib/spoom/coverage/report.rb#150 +# source://spoom//lib/spoom/coverage/report.rb#140 class Spoom::Coverage::Cards::Map < ::Spoom::Coverage::Cards::Card - # : (file_tree: FileTree, nodes_strictnesses: Hash[FileTree::Node, String?], nodes_strictness_scores: Hash[FileTree::Node, Float], ?title: String) -> void - # # @return [Map] a new instance of Map # - # source://spoom//lib/spoom/coverage/report.rb#152 + # source://spoom//lib/spoom/coverage/report.rb#142 sig do params( file_tree: ::Spoom::FileTree, @@ -996,136 +925,106 @@ class Spoom::Coverage::Cards::Map < ::Spoom::Coverage::Cards::Card def initialize(file_tree:, nodes_strictnesses:, nodes_strictness_scores:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#122 +# source://spoom//lib/spoom/coverage/report.rb#112 class Spoom::Coverage::Cards::Snapshot < ::Spoom::Coverage::Cards::Card - # : (snapshot: Coverage::Snapshot, ?title: String) -> void - # # @return [Snapshot] a new instance of Snapshot # - # source://spoom//lib/spoom/coverage/report.rb#129 + # source://spoom//lib/spoom/coverage/report.rb#119 sig { params(snapshot: ::Spoom::Coverage::Snapshot, title: ::String).void } def initialize(snapshot:, title: T.unsafe(nil)); end - # : -> D3::Pie::Calls - # - # source://spoom//lib/spoom/coverage/report.rb#140 + # source://spoom//lib/spoom/coverage/report.rb#130 sig { returns(::Spoom::Coverage::D3::Pie::Calls) } def pie_calls; end - # : -> D3::Pie::Sigils - # - # source://spoom//lib/spoom/coverage/report.rb#135 + # source://spoom//lib/spoom/coverage/report.rb#125 sig { returns(::Spoom::Coverage::D3::Pie::Sigils) } def pie_sigils; end - # : -> D3::Pie::Sigs - # - # source://spoom//lib/spoom/coverage/report.rb#145 + # source://spoom//lib/spoom/coverage/report.rb#135 sig { returns(::Spoom::Coverage::D3::Pie::Sigs) } def pie_sigs; end - # : Coverage::Snapshot - # - # source://spoom//lib/spoom/coverage/report.rb#126 + # source://spoom//lib/spoom/coverage/report.rb#116 sig { returns(::Spoom::Coverage::Snapshot) } def snapshot; end end -# : String -# -# source://spoom//lib/spoom/coverage/report.rb#123 +# source://spoom//lib/spoom/coverage/report.rb#113 Spoom::Coverage::Cards::Snapshot::TEMPLATE = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/coverage/report.rb#214 +# source://spoom//lib/spoom/coverage/report.rb#204 class Spoom::Coverage::Cards::SorbetIntro < ::Spoom::Coverage::Cards::Erb - # : (?sorbet_intro_commit: String?, ?sorbet_intro_date: Time?) -> void - # # @return [SorbetIntro] a new instance of SorbetIntro # - # source://spoom//lib/spoom/coverage/report.rb#216 + # source://spoom//lib/spoom/coverage/report.rb#206 sig { params(sorbet_intro_commit: T.nilable(::String), sorbet_intro_date: T.nilable(::Time)).void } def initialize(sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#223 + # source://spoom//lib/spoom/coverage/report.rb#213 sig { override.returns(::String) } def erb; end end -# source://spoom//lib/spoom/coverage/report.rb#165 +# source://spoom//lib/spoom/coverage/report.rb#155 class Spoom::Coverage::Cards::Timeline < ::Spoom::Coverage::Cards::Card - # : (title: String, timeline: D3::Timeline) -> void - # # @return [Timeline] a new instance of Timeline # - # source://spoom//lib/spoom/coverage/report.rb#167 + # source://spoom//lib/spoom/coverage/report.rb#157 sig { params(title: ::String, timeline: ::Spoom::Coverage::D3::Timeline).void } def initialize(title:, timeline:); end end -# source://spoom//lib/spoom/coverage/report.rb#178 +# source://spoom//lib/spoom/coverage/report.rb#168 class Spoom::Coverage::Cards::Timeline::Calls < ::Spoom::Coverage::Cards::Timeline - # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void - # # @return [Calls] a new instance of Calls # - # source://spoom//lib/spoom/coverage/report.rb#180 + # source://spoom//lib/spoom/coverage/report.rb#170 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#192 +# source://spoom//lib/spoom/coverage/report.rb#182 class Spoom::Coverage::Cards::Timeline::RBIs < ::Spoom::Coverage::Cards::Timeline - # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void - # # @return [RBIs] a new instance of RBIs # - # source://spoom//lib/spoom/coverage/report.rb#194 + # source://spoom//lib/spoom/coverage/report.rb#184 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#206 +# source://spoom//lib/spoom/coverage/report.rb#196 class Spoom::Coverage::Cards::Timeline::Runtimes < ::Spoom::Coverage::Cards::Timeline - # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void - # # @return [Runtimes] a new instance of Runtimes # - # source://spoom//lib/spoom/coverage/report.rb#208 + # source://spoom//lib/spoom/coverage/report.rb#198 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#171 +# source://spoom//lib/spoom/coverage/report.rb#161 class Spoom::Coverage::Cards::Timeline::Sigils < ::Spoom::Coverage::Cards::Timeline - # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void - # # @return [Sigils] a new instance of Sigils # - # source://spoom//lib/spoom/coverage/report.rb#173 + # source://spoom//lib/spoom/coverage/report.rb#163 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#185 +# source://spoom//lib/spoom/coverage/report.rb#175 class Spoom::Coverage::Cards::Timeline::Sigs < ::Spoom::Coverage::Cards::Timeline - # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void - # # @return [Sigs] a new instance of Sigs # - # source://spoom//lib/spoom/coverage/report.rb#187 + # source://spoom//lib/spoom/coverage/report.rb#177 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#199 +# source://spoom//lib/spoom/coverage/report.rb#189 class Spoom::Coverage::Cards::Timeline::Versions < ::Spoom::Coverage::Cards::Timeline - # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void - # # @return [Versions] a new instance of Versions # - # source://spoom//lib/spoom/coverage/report.rb#201 + # source://spoom//lib/spoom/coverage/report.rb#191 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end @@ -1133,68 +1032,53 @@ end # source://spoom//lib/spoom/coverage/d3/base.rb#6 module Spoom::Coverage::D3 class << self - # : (ColorPalette palette) -> String - # # source://spoom//lib/spoom/coverage/d3.rb#59 sig { params(palette: ::Spoom::Coverage::D3::ColorPalette).returns(::String) } def header_script(palette); end - # : -> String - # # source://spoom//lib/spoom/coverage/d3.rb#19 sig { returns(::String) } def header_style; end end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/d3/base.rb#7 +# source://spoom//lib/spoom/coverage/d3/base.rb#8 class Spoom::Coverage::D3::Base abstract! - # : (String id, untyped data) -> void - # # @return [Base] a new instance of Base # - # source://spoom//lib/spoom/coverage/d3/base.rb#17 + # source://spoom//lib/spoom/coverage/d3/base.rb#13 sig { params(id: ::String, data: T.untyped).void } def initialize(id, data); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/base.rb#35 + # source://spoom//lib/spoom/coverage/d3/base.rb#31 sig { returns(::String) } def html; end - # : String - # - # source://spoom//lib/spoom/coverage/d3/base.rb#14 + # source://spoom//lib/spoom/coverage/d3/base.rb#10 sig { returns(::String) } def id; end # @abstract + # @raise [NotImplementedError] # - # source://spoom//lib/spoom/coverage/d3/base.rb#48 + # source://spoom//lib/spoom/coverage/d3/base.rb#45 sig { abstract.returns(::String) } def script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/base.rb#43 + # source://spoom//lib/spoom/coverage/d3/base.rb#39 sig { returns(::String) } def tooltip; end class << self - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/base.rb#29 + # source://spoom//lib/spoom/coverage/d3/base.rb#25 sig { returns(::String) } def header_script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/base.rb#24 + # source://spoom//lib/spoom/coverage/d3/base.rb#20 sig { returns(::String) } def header_style; end end @@ -1217,21 +1101,15 @@ Spoom::Coverage::D3::COLOR_TRUE = T.let(T.unsafe(nil), String) # source://spoom//lib/spoom/coverage/d3/circle_map.rb#9 class Spoom::Coverage::D3::CircleMap < ::Spoom::Coverage::D3::Base - # : -> String - # # source://spoom//lib/spoom/coverage/d3/circle_map.rb#58 sig { override.returns(::String) } def script; end class << self - # : -> String - # # source://spoom//lib/spoom/coverage/d3/circle_map.rb#38 sig { returns(::String) } def header_script; end - # : -> String - # # source://spoom//lib/spoom/coverage/d3/circle_map.rb#12 sig { returns(::String) } def header_style; end @@ -1240,8 +1118,6 @@ end # source://spoom//lib/spoom/coverage/d3/circle_map.rb#147 class Spoom::Coverage::D3::CircleMap::Sigils < ::Spoom::Coverage::D3::CircleMap - # : (String id, FileTree file_tree, Hash[FileTree::Node, String?] nodes_strictnesses, Hash[FileTree::Node, Float] nodes_scores) -> void - # # @return [Sigils] a new instance of Sigils # # source://spoom//lib/spoom/coverage/d3/circle_map.rb#149 @@ -1255,8 +1131,6 @@ class Spoom::Coverage::D3::CircleMap::Sigils < ::Spoom::Coverage::D3::CircleMap end def initialize(id, file_tree, nodes_strictnesses, nodes_scores); end - # : (FileTree::Node node) -> Hash[Symbol, untyped] - # # source://spoom//lib/spoom/coverage/d3/circle_map.rb#156 sig { params(node: ::Spoom::FileTree::Node).returns(T::Hash[::Symbol, T.untyped]) } def tree_node_to_json(node); end @@ -1269,414 +1143,309 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct prop :true, ::String prop :strict, ::String prop :strong, ::String - - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/d3/pie.rb#9 +# source://spoom//lib/spoom/coverage/d3/pie.rb#10 class Spoom::Coverage::D3::Pie < ::Spoom::Coverage::D3::Base abstract! - # : (String id, String title, untyped data) -> void - # # @return [Pie] a new instance of Pie # - # source://spoom//lib/spoom/coverage/d3/pie.rb#15 + # source://spoom//lib/spoom/coverage/d3/pie.rb#12 sig { params(id: ::String, title: ::String, data: T.untyped).void } def initialize(id, title, data); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/pie.rb#54 + # source://spoom//lib/spoom/coverage/d3/pie.rb#51 sig { override.returns(::String) } def script; end class << self - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/pie.rb#40 + # source://spoom//lib/spoom/coverage/d3/pie.rb#37 sig { returns(::String) } def header_script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/pie.rb#22 + # source://spoom//lib/spoom/coverage/d3/pie.rb#19 sig { returns(::String) } def header_style; end end end -# source://spoom//lib/spoom/coverage/d3/pie.rb#138 +# source://spoom//lib/spoom/coverage/d3/pie.rb#135 class Spoom::Coverage::D3::Pie::Calls < ::Spoom::Coverage::D3::Pie - # : (String id, String title, Snapshot snapshot) -> void - # # @return [Calls] a new instance of Calls # - # source://spoom//lib/spoom/coverage/d3/pie.rb#140 + # source://spoom//lib/spoom/coverage/d3/pie.rb#137 sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } def initialize(id, title, snapshot); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/pie.rb#146 + # source://spoom//lib/spoom/coverage/d3/pie.rb#143 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/pie.rb#121 +# source://spoom//lib/spoom/coverage/d3/pie.rb#118 class Spoom::Coverage::D3::Pie::Sigils < ::Spoom::Coverage::D3::Pie - # : (String id, String title, Snapshot snapshot) -> void - # # @return [Sigils] a new instance of Sigils # - # source://spoom//lib/spoom/coverage/d3/pie.rb#123 + # source://spoom//lib/spoom/coverage/d3/pie.rb#120 sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } def initialize(id, title, snapshot); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/pie.rb#129 + # source://spoom//lib/spoom/coverage/d3/pie.rb#126 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/pie.rb#155 +# source://spoom//lib/spoom/coverage/d3/pie.rb#152 class Spoom::Coverage::D3::Pie::Sigs < ::Spoom::Coverage::D3::Pie - # : (String id, String title, Snapshot snapshot) -> void - # # @return [Sigs] a new instance of Sigs # - # source://spoom//lib/spoom/coverage/d3/pie.rb#157 + # source://spoom//lib/spoom/coverage/d3/pie.rb#154 sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } def initialize(id, title, snapshot); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/pie.rb#167 + # source://spoom//lib/spoom/coverage/d3/pie.rb#164 sig { override.returns(::String) } def tooltip; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/d3/timeline.rb#9 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#10 class Spoom::Coverage::D3::Timeline < ::Spoom::Coverage::D3::Base abstract! - # : (String id, untyped data, Array[String] keys) -> void - # # @return [Timeline] a new instance of Timeline # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#15 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#12 sig { params(id: ::String, data: T.untyped, keys: T::Array[::String]).void } def initialize(id, data, keys); end - # : (y: String, ?color: String, ?curve: String) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#185 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#183 sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) } def area(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - # : (y: String, ?color: String, ?curve: String) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#201 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#199 sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) } def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end # @abstract + # @raise [NotImplementedError] # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#124 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#122 sig { abstract.returns(::String) } def plot; end - # : (y: String) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#215 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#213 sig { params(y: ::String).returns(::String) } def points(y:); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#99 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#96 sig { override.returns(::String) } def script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#127 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#125 sig { returns(::String) } def x_scale; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#143 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#141 sig { returns(::String) } def x_ticks; end - # : (min: String, max: String, ticks: String) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#156 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#154 sig { params(min: ::String, max: ::String, ticks: ::String).returns(::String) } def y_scale(min:, max:, ticks:); end - # : (ticks: String, format: String, padding: Integer) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#172 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#170 sig { params(ticks: ::String, format: ::String, padding: ::Integer).returns(::String) } def y_ticks(ticks:, format:, padding:); end class << self - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#76 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#73 sig { returns(::String) } def header_script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#22 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#19 sig { returns(::String) } def header_style; end end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#447 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#442 class Spoom::Coverage::D3::Timeline::Calls < ::Spoom::Coverage::D3::Timeline::Stacked - # : (String id, Array[Snapshot] snapshots) -> void - # # @return [Calls] a new instance of Calls # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#449 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#444 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#464 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#459 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#502 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#497 class Spoom::Coverage::D3::Timeline::RBIs < ::Spoom::Coverage::D3::Timeline::Stacked - # : (String id, Array[Snapshot] snapshots) -> void - # # @return [RBIs] a new instance of RBIs # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#504 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#499 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # : (y: String, ?color: String, ?curve: String) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#575 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#570 sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) } def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#616 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#611 sig { override.returns(::String) } def plot; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#534 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#529 sig { override.returns(::String) } def script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#519 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#514 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#280 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#278 class Spoom::Coverage::D3::Timeline::Runtimes < ::Spoom::Coverage::D3::Timeline - # : (String id, Array[Snapshot] snapshots) -> void - # # @return [Runtimes] a new instance of Runtimes # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#282 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#280 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#309 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#307 sig { override.returns(::String) } def plot; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#295 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#293 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#421 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#416 class Spoom::Coverage::D3::Timeline::Sigils < ::Spoom::Coverage::D3::Timeline::Stacked - # : (String id, Array[Snapshot] snapshots) -> void - # # @return [Sigils] a new instance of Sigils # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#423 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#418 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#438 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#433 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#473 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#468 class Spoom::Coverage::D3::Timeline::Sigs < ::Spoom::Coverage::D3::Timeline::Stacked - # : (String id, Array[Snapshot] snapshots) -> void - # # @return [Sigs] a new instance of Sigs # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#475 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#470 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#493 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#488 sig { override.returns(::String) } def tooltip; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/d3/timeline.rb#327 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#326 class Spoom::Coverage::D3::Timeline::Stacked < ::Spoom::Coverage::D3::Timeline abstract! - # : (y: String, ?color: String, ?curve: String) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#388 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#383 sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) } def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#376 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#371 sig { override.returns(::String) } def plot; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#334 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#329 sig { override.returns(::String) } def script; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#230 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#228 class Spoom::Coverage::D3::Timeline::Versions < ::Spoom::Coverage::D3::Timeline - # : (String id, Array[Snapshot] snapshots) -> void - # # @return [Versions] a new instance of Versions # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#232 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#230 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#261 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#259 sig { override.returns(::String) } def plot; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#246 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#244 sig { override.returns(::String) } def tooltip; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/report.rb#37 +# source://spoom//lib/spoom/coverage/report.rb#35 class Spoom::Coverage::Page < ::Spoom::Coverage::Template abstract! - # : (title: String, palette: D3::ColorPalette, ?template: String) -> void - # # @return [Page] a new instance of Page # - # source://spoom//lib/spoom/coverage/report.rb#52 + # source://spoom//lib/spoom/coverage/report.rb#45 sig { params(title: ::String, palette: ::Spoom::Coverage::D3::ColorPalette, template: ::String).void } def initialize(title:, palette:, template: T.unsafe(nil)); end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#74 + # source://spoom//lib/spoom/coverage/report.rb#67 sig { returns(::String) } def body_html; end # @abstract + # @raise [NotImplementedError] # - # source://spoom//lib/spoom/coverage/report.rb#79 + # source://spoom//lib/spoom/coverage/report.rb#73 sig { abstract.returns(T::Array[::Spoom::Coverage::Cards::Card]) } def cards; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#82 + # source://spoom//lib/spoom/coverage/report.rb#76 sig { returns(::String) } def footer_html; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#69 + # source://spoom//lib/spoom/coverage/report.rb#62 sig { returns(::String) } def header_html; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#64 + # source://spoom//lib/spoom/coverage/report.rb#57 sig { returns(::String) } def header_script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#59 + # source://spoom//lib/spoom/coverage/report.rb#52 sig { returns(::String) } def header_style; end - # : D3::ColorPalette - # - # source://spoom//lib/spoom/coverage/report.rb#49 + # source://spoom//lib/spoom/coverage/report.rb#42 sig { returns(::Spoom::Coverage::D3::ColorPalette) } def palette; end - # : String - # - # source://spoom//lib/spoom/coverage/report.rb#46 + # source://spoom//lib/spoom/coverage/report.rb#39 sig { returns(::String) } def title; end end -# : String -# -# source://spoom//lib/spoom/coverage/report.rb#43 +# source://spoom//lib/spoom/coverage/report.rb#36 Spoom::Coverage::Page::TEMPLATE = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/coverage/report.rb#234 +# source://spoom//lib/spoom/coverage/report.rb#224 class Spoom::Coverage::Report < ::Spoom::Coverage::Page - # : (project_name: String, palette: D3::ColorPalette, snapshots: Array[Snapshot], file_tree: FileTree, nodes_strictnesses: Hash[FileTree::Node, String?], nodes_strictness_scores: Hash[FileTree::Node, Float], ?sorbet_intro_commit: String?, ?sorbet_intro_date: Time?) -> void - # # @return [Report] a new instance of Report # - # source://spoom//lib/spoom/coverage/report.rb#236 + # source://spoom//lib/spoom/coverage/report.rb#226 sig do params( project_name: ::String, @@ -1691,15 +1460,11 @@ class Spoom::Coverage::Report < ::Spoom::Coverage::Page end def initialize(project_name:, palette:, snapshots:, file_tree:, nodes_strictnesses:, nodes_strictness_scores:, sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end - # : -> Array[Cards::Card] - # - # source://spoom//lib/spoom/coverage/report.rb#270 + # source://spoom//lib/spoom/coverage/report.rb#260 sig { override.returns(T::Array[::Spoom::Coverage::Cards::Card]) } def cards; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#258 + # source://spoom//lib/spoom/coverage/report.rb#248 sig { override.returns(::String) } def header_html; end end @@ -1726,33 +1491,22 @@ class Spoom::Coverage::Snapshot < ::T::Struct prop :methods_without_sig_excluding_rbis, ::Integer, default: T.unsafe(nil) prop :sigils_excluding_rbis, T::Hash[::String, ::Integer], default: T.unsafe(nil) - # : (?out: (IO | StringIO), ?colors: bool, ?indent_level: Integer) -> void - # # source://spoom//lib/spoom/coverage/snapshot.rb#31 sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean, indent_level: ::Integer).void } def print(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end - # : (*untyped arg) -> String - # # source://spoom//lib/spoom/coverage/snapshot.rb#37 sig { params(arg: T.untyped).returns(::String) } def to_json(*arg); end class << self - # : (String json) -> Snapshot - # # source://spoom//lib/spoom/coverage/snapshot.rb#43 sig { params(json: ::String).returns(::Spoom::Coverage::Snapshot) } def from_json(json); end - # : (Hash[String, untyped] obj) -> Snapshot - # # source://spoom//lib/spoom/coverage/snapshot.rb#48 sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) } def from_obj(obj); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end @@ -1763,57 +1517,44 @@ Spoom::Coverage::Snapshot::STRICTNESSES = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/coverage/snapshot.rb#91 class Spoom::Coverage::SnapshotPrinter < ::Spoom::Printer - # : (Snapshot snapshot) -> void - # # source://spoom//lib/spoom/coverage/snapshot.rb#93 sig { params(snapshot: ::Spoom::Coverage::Snapshot).void } def print_snapshot(snapshot); end private - # : (Integer? value, Integer? total) -> String - # # source://spoom//lib/spoom/coverage/snapshot.rb#152 sig { params(value: T.nilable(::Integer), total: T.nilable(::Integer)).returns(::String) } def percent(value, total); end - # : (Hash[String, Integer] hash, Integer total) -> void - # # source://spoom//lib/spoom/coverage/snapshot.rb#141 sig { params(hash: T::Hash[::String, ::Integer], total: ::Integer).void } def print_map(hash, total); end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/report.rb#10 +# source://spoom//lib/spoom/coverage/report.rb#11 class Spoom::Coverage::Template abstract! # Create a new template from an Erb file path - # : (template: String) -> void # # @return [Template] a new instance of Template # - # source://spoom//lib/spoom/coverage/report.rb#17 + # source://spoom//lib/spoom/coverage/report.rb#14 sig { params(template: ::String).void } def initialize(template:); end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#22 + # source://spoom//lib/spoom/coverage/report.rb#19 sig { returns(::String) } def erb; end - # : -> Binding - # - # source://spoom//lib/spoom/coverage/report.rb#32 + # source://spoom//lib/spoom/coverage/report.rb#29 sig { returns(::Binding) } def get_binding; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#27 + # source://spoom//lib/spoom/coverage/report.rb#24 sig { returns(::String) } def html; end end @@ -1821,14 +1562,10 @@ end # source://spoom//lib/spoom/deadcode/erb.rb#27 module Spoom::Deadcode class << self - # : (Context context) -> Array[singleton(Plugins::Base)] - # # source://spoom//lib/spoom/deadcode/plugins.rb#67 sig { params(context: ::Spoom::Context).returns(T::Array[T.class_of(Spoom::Deadcode::Plugins::Base)]) } def load_custom_plugins(context); end - # : (Context context) -> Set[singleton(Plugins::Base)] - # # source://spoom//lib/spoom/deadcode/plugins.rb#53 sig { params(context: ::Spoom::Context).returns(T::Set[T.class_of(Spoom::Deadcode::Plugins::Base)]) } def plugins_from_gemfile_lock(context); end @@ -1851,100 +1588,71 @@ class Spoom::Deadcode::Definition < ::T::Struct const :location, ::Spoom::Location const :status, ::Spoom::Deadcode::Definition::Status, default: T.unsafe(nil) - # : -> void - # # source://spoom//lib/spoom/deadcode/definition.rb#76 sig { void } def alive!; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#71 sig { returns(T::Boolean) } def alive?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#39 sig { returns(T::Boolean) } def attr_reader?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#44 sig { returns(T::Boolean) } def attr_writer?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#49 sig { returns(T::Boolean) } def class?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#54 sig { returns(T::Boolean) } def constant?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#81 sig { returns(T::Boolean) } def dead?; end - # : -> void - # # source://spoom//lib/spoom/deadcode/definition.rb#91 sig { void } def ignored!; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#86 sig { returns(T::Boolean) } def ignored?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#59 sig { returns(T::Boolean) } def method?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#64 sig { returns(T::Boolean) } def module?; end - # : (*untyped args) -> String - # # source://spoom//lib/spoom/deadcode/definition.rb#98 sig { params(args: T.untyped).returns(::String) } def to_json(*args); end - - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end end # source://spoom//lib/spoom/deadcode/definition.rb#8 @@ -1972,8 +1680,6 @@ end # # source://spoom//lib/spoom/deadcode/erb.rb#29 class Spoom::Deadcode::ERB < ::Erubi::Engine - # : (untyped input, ?untyped properties) -> void - # # @return [ERB] a new instance of ERB # # source://spoom//lib/spoom/deadcode/erb.rb#31 @@ -1982,32 +1688,22 @@ class Spoom::Deadcode::ERB < ::Erubi::Engine private - # : (untyped code) -> void - # # source://spoom//lib/spoom/deadcode/erb.rb#84 sig { override.params(code: T.untyped).void } def add_code(code); end - # : (untyped indicator, untyped code) -> void - # # source://spoom//lib/spoom/deadcode/erb.rb#66 sig { override.params(indicator: T.untyped, code: T.untyped).void } def add_expression(indicator, code); end - # : (untyped _) -> void - # # source://spoom//lib/spoom/deadcode/erb.rb#91 sig { override.params(_: T.untyped).void } def add_postamble(_); end - # : (untyped text) -> void - # # source://spoom//lib/spoom/deadcode/erb.rb#47 sig { override.params(text: T.untyped).void } def add_text(text); end - # : (untyped src) -> void - # # source://spoom//lib/spoom/deadcode/erb.rb#97 sig { params(src: T.untyped).void } def flush_newline_if_pending(src); end @@ -2018,46 +1714,32 @@ Spoom::Deadcode::ERB::BLOCK_EXPR = T.let(T.unsafe(nil), Regexp) # source://spoom//lib/spoom/deadcode/index.rb#6 class Spoom::Deadcode::Index - # : (Model model) -> void - # # @return [Index] a new instance of Index # # source://spoom//lib/spoom/deadcode/index.rb#25 sig { params(model: ::Spoom::Model).void } def initialize(model); end - # : -> Array[Definition] - # # source://spoom//lib/spoom/deadcode/index.rb#215 sig { returns(T::Array[::Spoom::Deadcode::Definition]) } def all_definitions; end - # : -> Array[Model::Reference] - # # source://spoom//lib/spoom/deadcode/index.rb#220 sig { returns(T::Array[::Spoom::Model::Reference]) } def all_references; end - # : (Array[Plugins::Base] plugins) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#95 sig { params(plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void } def apply_plugins!(plugins); end - # : (Definition definition) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#75 sig { params(definition: ::Spoom::Deadcode::Definition).void } def define(definition); end - # : Hash[String, Array[Definition]] - # # source://spoom//lib/spoom/deadcode/index.rb#19 sig { returns(T::Hash[::String, T::Array[::Spoom::Deadcode::Definition]]) } def definitions; end - # : (String name) -> Array[Definition] - # # source://spoom//lib/spoom/deadcode/index.rb#210 sig { params(name: ::String).returns(T::Array[::Spoom::Deadcode::Definition]) } def definitions_for_name(name); end @@ -2065,56 +1747,39 @@ class Spoom::Deadcode::Index # Mark all definitions having a reference of the same name as `alive` # # To be called once all the files have been indexed and all the definitions and references discovered. - # : -> void # # source://spoom//lib/spoom/deadcode/index.rb#118 sig { void } def finalize!; end - # : (Model::SymbolDef symbol_def) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#90 sig { params(symbol_def: ::Spoom::Model::SymbolDef).void } def ignore(symbol_def); end - # : (String erb, file: String, ?plugins: Array[Plugins::Base]) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#46 sig { params(erb: ::String, file: ::String, plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void } def index_erb(erb, file:, plugins: T.unsafe(nil)); end - # : (String file, ?plugins: Array[Plugins::Base]) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#35 sig { params(file: ::String, plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void } def index_file(file, plugins: T.unsafe(nil)); end - # : (String rb, file: String, ?plugins: Array[Plugins::Base]) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#51 sig { params(rb: ::String, file: ::String, plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void } def index_ruby(rb, file:, plugins: T.unsafe(nil)); end - # : Model - # # source://spoom//lib/spoom/deadcode/index.rb#16 sig { returns(::Spoom::Model) } def model; end - # : (String name, Location location) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#80 sig { params(name: ::String, location: ::Spoom::Location).void } def reference_constant(name, location); end - # : (String name, Location location) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#85 sig { params(name: ::String, location: ::Spoom::Location).void } def reference_method(name, location); end - # : Hash[String, Array[Model::Reference]] - # # source://spoom//lib/spoom/deadcode/index.rb#22 sig { returns(T::Hash[::String, T::Array[::Spoom::Model::Reference]]) } def references; end @@ -2122,8 +1787,6 @@ end # source://spoom//lib/spoom/deadcode/index.rb#7 class Spoom::Deadcode::Index::Error < ::Spoom::Error - # : (String message, parent: Exception) -> void - # # @return [Error] a new instance of Error # # source://spoom//lib/spoom/deadcode/index.rb#9 @@ -2133,8 +1796,6 @@ end # source://spoom//lib/spoom/deadcode/indexer.rb#6 class Spoom::Deadcode::Indexer < ::Spoom::Visitor - # : (String path, Index index, ?plugins: Array[Plugins::Base]) -> void - # # @return [Indexer] a new instance of Indexer # # source://spoom//lib/spoom/deadcode/indexer.rb#14 @@ -2147,27 +1808,19 @@ class Spoom::Deadcode::Indexer < ::Spoom::Visitor end def initialize(path, index, plugins: T.unsafe(nil)); end - # : Index - # # source://spoom//lib/spoom/deadcode/indexer.rb#11 sig { returns(::Spoom::Deadcode::Index) } def index; end - # : String - # # source://spoom//lib/spoom/deadcode/indexer.rb#8 sig { returns(::String) } def path; end - # : (Prism::CallNode node) -> void - # # source://spoom//lib/spoom/deadcode/indexer.rb#26 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end end -# : Set[singleton(Plugins::Base)] -# # source://spoom//lib/spoom/deadcode/plugins.rb#33 Spoom::Deadcode::PLUGINS_FOR_GEM = T.let(T.unsafe(nil), Hash) @@ -2176,8 +1829,6 @@ module Spoom::Deadcode::Plugins; end # source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#7 class Spoom::Deadcode::Plugins::ActionMailer < ::Spoom::Deadcode::Plugins::Base - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#10 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end @@ -2185,8 +1836,6 @@ end # source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#7 class Spoom::Deadcode::Plugins::ActionMailerPreview < ::Spoom::Deadcode::Plugins::Base - # : (Model::Method definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#12 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end @@ -2194,14 +1843,10 @@ end # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#7 class Spoom::Deadcode::Plugins::ActionPack < ::Spoom::Deadcode::Plugins::Base - # : (Model::Method definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#27 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#36 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end @@ -2211,12 +1856,17 @@ end Spoom::Deadcode::Plugins::ActionPack::CALLBACKS = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/deadcode/plugins/active_job.rb#7 -class Spoom::Deadcode::Plugins::ActiveJob < ::Spoom::Deadcode::Plugins::Base; end +class Spoom::Deadcode::Plugins::ActiveJob < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/active_job.rb#22 + sig { override.params(send: ::Spoom::Deadcode::Send).void } + def on_send(send); end +end + +# source://spoom//lib/spoom/deadcode/plugins/active_job.rb#11 +Spoom::Deadcode::Plugins::ActiveJob::CALLBACKS = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/deadcode/plugins/active_model.rb#7 class Spoom::Deadcode::Plugins::ActiveModel < ::Spoom::Deadcode::Plugins::Base - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/active_model.rb#13 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end @@ -2224,92 +1874,76 @@ end # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#7 class Spoom::Deadcode::Plugins::ActiveRecord < ::Spoom::Deadcode::Plugins::Base - # : (Send send) -> void - # - # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#64 + # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#69 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end end -# : Array[String] -# -# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#56 +# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#61 Spoom::Deadcode::Plugins::ActiveRecord::ARRAY_METHODS = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#18 Spoom::Deadcode::Plugins::ActiveRecord::CALLBACKS = T.let(T.unsafe(nil), Array) -# : Array[String] -# # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#44 +Spoom::Deadcode::Plugins::ActiveRecord::CALLBACK_CONDITIONS = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#49 Spoom::Deadcode::Plugins::ActiveRecord::CRUD_METHODS = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/deadcode/plugins/active_support.rb#7 class Spoom::Deadcode::Plugins::ActiveSupport < ::Spoom::Deadcode::Plugins::Base - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/active_support.rb#23 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end end -# : Array[String] -# # source://spoom//lib/spoom/deadcode/plugins/active_support.rb#19 Spoom::Deadcode::Plugins::ActiveSupport::SETUP_AND_TEARDOWN_METHODS = T.let(T.unsafe(nil), Array) -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/deadcode/plugins/base.rb#9 +# source://spoom//lib/spoom/deadcode/plugins/base.rb#10 class Spoom::Deadcode::Plugins::Base abstract! - # : (Index index) -> void - # # @return [Base] a new instance of Base # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#129 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#126 sig { params(index: ::Spoom::Deadcode::Index).void } def initialize(index); end - # : Index - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#126 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#123 sig { returns(::Spoom::Deadcode::Index) } def index; end # Do not override this method, use `on_define_accessor` instead. - # : (Model::Attr definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#155 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#152 sig { params(definition: ::Spoom::Model::Attr).void } def internal_on_define_accessor(definition); end # Do not override this method, use `on_define_class` instead. - # : (Model::Class definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#179 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#176 sig { params(definition: ::Spoom::Model::Class).void } def internal_on_define_class(definition); end # Do not override this method, use `on_define_constant` instead. - # : (Model::Constant definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#209 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#206 sig { params(definition: ::Spoom::Model::Constant).void } def internal_on_define_constant(definition); end # Do not override this method, use `on_define_method` instead. - # : (Model::Method definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#235 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#232 sig { params(definition: ::Spoom::Model::Method).void } def internal_on_define_method(definition); end # Do not override this method, use `on_define_module` instead. - # : (Model::Module definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#261 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#258 sig { params(definition: ::Spoom::Model::Module).void } def internal_on_define_module(definition); end @@ -2326,9 +1960,8 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ - # : (Model::Attr definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#149 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#146 sig { params(definition: ::Spoom::Model::Attr).void } def on_define_accessor(definition); end @@ -2345,9 +1978,8 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ - # : (Model::Class definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#173 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#170 sig { params(definition: ::Spoom::Model::Class).void } def on_define_class(definition); end @@ -2364,9 +1996,8 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ - # : (Model::Constant definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#203 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#200 sig { params(definition: ::Spoom::Model::Constant).void } def on_define_constant(definition); end @@ -2383,9 +2014,8 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ - # : (Model::Method definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#229 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#226 sig { params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end @@ -2402,9 +2032,8 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ - # : (Model::Module definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#255 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#252 sig { params(definition: ::Spoom::Model::Module).void } def on_define_module(definition); end @@ -2421,85 +2050,64 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ - # : (Send send) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#281 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#278 sig { params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end private - # : (String name) -> String - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#349 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#346 sig { params(name: ::String).returns(::String) } def camelize(name); end - # : (String? name) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#298 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#295 sig { params(name: T.nilable(::String)).returns(T::Boolean) } def ignored_class_name?(name); end - # : (String name) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#317 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#314 sig { params(name: ::String).returns(T::Boolean) } def ignored_constant_name?(name); end - # : (String name) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#322 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#319 sig { params(name: ::String).returns(T::Boolean) } def ignored_method_name?(name); end - # : (String name) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#327 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#324 sig { params(name: ::String).returns(T::Boolean) } def ignored_module_name?(name); end - # : (String name, Symbol names_variable, Symbol patterns_variable) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#332 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#329 sig { params(name: ::String, names_variable: ::Symbol, patterns_variable: ::Symbol).returns(T::Boolean) } def ignored_name?(name, names_variable, patterns_variable); end - # : (Model::Class definition) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#305 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#302 sig { params(definition: ::Spoom::Model::Class).returns(T::Boolean) } def ignored_subclass?(definition); end - # : (Symbol const) -> Set[String] - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#337 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#334 sig { params(const: ::Symbol).returns(T::Set[::String]) } def names(const); end - # : (Symbol const) -> Array[Regexp] - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#342 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#339 sig { params(const: ::Symbol).returns(T::Array[::Regexp]) } def patterns(const); end - # : (Model::Namespace definition, String superclass_name) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#290 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#287 sig { params(definition: ::Spoom::Model::Namespace, superclass_name: ::String).returns(T::Boolean) } def subclass_of?(definition, superclass_name); end @@ -2517,9 +2125,8 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ - # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#49 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#46 sig { params(names: T.any(::Regexp, ::String)).void } def ignore_classes_inheriting_from(*names); end @@ -2536,9 +2143,8 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ - # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#31 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#28 sig { params(names: T.any(::Regexp, ::String)).void } def ignore_classes_named(*names); end @@ -2555,9 +2161,8 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ - # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#67 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#64 sig { params(names: T.any(::Regexp, ::String)).void } def ignore_constants_named(*names); end @@ -2574,9 +2179,8 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ - # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#85 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#82 sig { params(names: T.any(::Regexp, ::String)).void } def ignore_methods_named(*names); end @@ -2593,17 +2197,14 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ - # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#103 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#100 sig { params(names: T.any(::Regexp, ::String)).void } def ignore_modules_named(*names); end private - # : (Array[(String | Regexp)] names, Symbol names_variable, Symbol patterns_variable) -> void - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#110 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#107 sig do params( names: T::Array[T.any(::Regexp, ::String)], @@ -2617,8 +2218,6 @@ end # source://spoom//lib/spoom/deadcode/plugins/graphql.rb#7 class Spoom::Deadcode::Plugins::GraphQL < ::Spoom::Deadcode::Plugins::Base - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/graphql.rb#27 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end @@ -2626,14 +2225,10 @@ end # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#7 class Spoom::Deadcode::Plugins::Minitest < ::Spoom::Deadcode::Plugins::Base - # : (Model::Method definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#21 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#28 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end @@ -2641,22 +2236,16 @@ end # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#7 class Spoom::Deadcode::Plugins::Namespaces < ::Spoom::Deadcode::Plugins::Base - # : (Model::Class definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#10 sig { override.params(definition: ::Spoom::Model::Class).void } def on_define_class(definition); end - # : (Model::Module definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#16 sig { override.params(definition: ::Spoom::Model::Module).void } def on_define_module(definition); end private - # : (Model::Namespace symbol_def) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#23 @@ -2669,22 +2258,16 @@ class Spoom::Deadcode::Plugins::RSpec < ::Spoom::Deadcode::Plugins::Base; end # source://spoom//lib/spoom/deadcode/plugins/rails.rb#7 class Spoom::Deadcode::Plugins::Rails < ::Spoom::Deadcode::Plugins::Base - # : (Model::Class definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/rails.rb#12 sig { override.params(definition: ::Spoom::Model::Class).void } def on_define_class(definition); end - # : (Model::Module definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/rails.rb#18 sig { override.params(definition: ::Spoom::Model::Module).void } def on_define_module(definition); end private - # : (Model::Namespace symbol_def) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/plugins/rails.rb#25 @@ -2697,36 +2280,26 @@ class Spoom::Deadcode::Plugins::Rake < ::Spoom::Deadcode::Plugins::Base; end # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#7 class Spoom::Deadcode::Plugins::Rubocop < ::Spoom::Deadcode::Plugins::Base - # : (Model::Constant definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#17 sig { override.params(definition: ::Spoom::Model::Constant).void } def on_define_constant(definition); end - # : (Model::Method definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#26 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end end -# : Set[String] -# # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#8 Spoom::Deadcode::Plugins::Rubocop::RUBOCOP_CONSTANTS = T.let(T.unsafe(nil), Set) # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#7 class Spoom::Deadcode::Plugins::Ruby < ::Spoom::Deadcode::Plugins::Base - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#23 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end private - # : (Send send, Prism::Node node) -> void - # # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#45 sig { params(send: ::Spoom::Deadcode::Send, node: ::Prism::Node).void } def reference_symbol_as_constant(send, node); end @@ -2734,30 +2307,22 @@ end # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#7 class Spoom::Deadcode::Plugins::Sorbet < ::Spoom::Deadcode::Plugins::Base - # : (Model::Constant definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#10 sig { override.params(definition: ::Spoom::Model::Constant).void } def on_define_constant(definition); end - # : (Model::Method definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#16 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end private - # : (Model::Constant definition) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#34 sig { params(definition: ::Spoom::Model::Constant).returns(T::Boolean) } def sorbet_enum_constant?(definition); end - # : (Model::Constant definition) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#29 @@ -2767,8 +2332,6 @@ end # source://spoom//lib/spoom/deadcode/plugins/thor.rb#7 class Spoom::Deadcode::Plugins::Thor < ::Spoom::Deadcode::Plugins::Base - # : (Model::Method definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/thor.rb#12 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end @@ -2776,16 +2339,12 @@ end # source://spoom//lib/spoom/deadcode/remover.rb#6 class Spoom::Deadcode::Remover - # : (Context context) -> void - # # @return [Remover] a new instance of Remover # # source://spoom//lib/spoom/deadcode/remover.rb#10 sig { params(context: ::Spoom::Context).void } def initialize(context); end - # : (Definition::Kind? kind, Location location) -> String - # # source://spoom//lib/spoom/deadcode/remover.rb#15 sig { params(kind: T.nilable(::Spoom::Deadcode::Definition::Kind), location: ::Spoom::Location).returns(::String) } def remove_location(kind, location); end @@ -2796,8 +2355,6 @@ class Spoom::Deadcode::Remover::Error < ::Spoom::Error; end # source://spoom//lib/spoom/deadcode/remover.rb#366 class Spoom::Deadcode::Remover::NodeContext - # : (String source, Hash[Integer, Prism::Comment] comments, Prism::Node node, Array[Prism::Node] nesting) -> void - # # @return [NodeContext] a new instance of NodeContext # # source://spoom//lib/spoom/deadcode/remover.rb#377 @@ -2811,113 +2368,79 @@ class Spoom::Deadcode::Remover::NodeContext end def initialize(source, comments, node, nesting); end - # : (Prism::Node node) -> Array[Prism::Comment] - # # source://spoom//lib/spoom/deadcode/remover.rb#491 sig { params(node: ::Prism::Node).returns(T::Array[::Prism::Comment]) } def attached_comments(node); end - # : -> Prism::CallNode? - # # source://spoom//lib/spoom/deadcode/remover.rb#519 sig { returns(T.nilable(::Prism::CallNode)) } def attached_sig; end - # : -> Array[Prism::Node] - # # source://spoom//lib/spoom/deadcode/remover.rb#506 sig { returns(T::Array[::Prism::Node]) } def attached_sigs; end - # : Hash[Integer, Prism::Comment] - # # source://spoom//lib/spoom/deadcode/remover.rb#368 sig { returns(T::Hash[::Integer, ::Prism::Comment]) } def comments; end - # : (Integer start_line, Integer end_line) -> Array[Prism::Comment] - # # source://spoom//lib/spoom/deadcode/remover.rb#479 sig { params(start_line: ::Integer, end_line: ::Integer).returns(T::Array[::Prism::Comment]) } def comments_between_lines(start_line, end_line); end - # : Array[Prism::Node] - # # source://spoom//lib/spoom/deadcode/remover.rb#374 sig { returns(T::Array[::Prism::Node]) } def nesting; end - # : Array[Prism::Node] - # # source://spoom//lib/spoom/deadcode/remover.rb#374 def nesting=(_arg0); end - # : -> Prism::Node? - # # source://spoom//lib/spoom/deadcode/remover.rb#429 sig { returns(T.nilable(::Prism::Node)) } def next_node; end - # : -> Array[Prism::Node] - # # @raise [Error] # # source://spoom//lib/spoom/deadcode/remover.rb#418 sig { returns(T::Array[::Prism::Node]) } def next_nodes; end - # : Prism::Node - # # source://spoom//lib/spoom/deadcode/remover.rb#371 sig { returns(::Prism::Node) } def node; end - # : -> NodeContext - # # @raise [Error] # # source://spoom//lib/spoom/deadcode/remover.rb#393 sig { returns(::Spoom::Deadcode::Remover::NodeContext) } def parent_context; end - # : -> Prism::Node - # # @raise [Error] # # source://spoom//lib/spoom/deadcode/remover.rb#385 sig { returns(::Prism::Node) } def parent_node; end - # : -> Prism::Node? - # # source://spoom//lib/spoom/deadcode/remover.rb#413 sig { returns(T.nilable(::Prism::Node)) } def previous_node; end - # : -> Array[Prism::Node] - # # @raise [Error] # # source://spoom//lib/spoom/deadcode/remover.rb#402 sig { returns(T::Array[::Prism::Node]) } def previous_nodes; end - # : -> NodeContext? - # # source://spoom//lib/spoom/deadcode/remover.rb#434 sig { returns(T.nilable(::Spoom::Deadcode::Remover::NodeContext)) } def sclass_context; end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/remover.rb#467 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def sorbet_extend_sig?(node); end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/remover.rb#462 @@ -2927,35 +2450,25 @@ end # source://spoom//lib/spoom/deadcode/remover.rb#534 class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Visitor - # : (Location location, Definition::Kind? kind) -> void - # # @return [NodeFinder] a new instance of NodeFinder # # source://spoom//lib/spoom/deadcode/remover.rb#599 sig { params(location: ::Spoom::Location, kind: T.nilable(::Spoom::Deadcode::Definition::Kind)).void } def initialize(location, kind); end - # : Prism::Node? - # # source://spoom//lib/spoom/deadcode/remover.rb#593 sig { returns(T.nilable(::Prism::Node)) } def node; end - # : Array[Prism::Node] - # # source://spoom//lib/spoom/deadcode/remover.rb#596 sig { returns(T::Array[::Prism::Node]) } def nodes_nesting; end - # : (Prism::Node? node) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#609 sig { override.params(node: T.nilable(::Prism::Node)).void } def visit(node); end class << self - # : (String source, Location location, Definition::Kind? kind) -> NodeContext - # # source://spoom//lib/spoom/deadcode/remover.rb#537 sig do params( @@ -2966,8 +2479,6 @@ class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Visitor end def find(source, location, kind); end - # : (Prism::Node node, Definition::Kind kind) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/remover.rb#568 @@ -2978,8 +2489,6 @@ end # source://spoom//lib/spoom/deadcode/remover.rb#27 class Spoom::Deadcode::Remover::NodeRemover - # : (String source, Definition::Kind? kind, Location location) -> void - # # @return [NodeRemover] a new instance of NodeRemover # # source://spoom//lib/spoom/deadcode/remover.rb#32 @@ -2992,52 +2501,36 @@ class Spoom::Deadcode::Remover::NodeRemover end def initialize(source, kind, location); end - # : -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#42 sig { void } def apply_edit; end - # : String - # # source://spoom//lib/spoom/deadcode/remover.rb#29 sig { returns(::String) } def new_source; end private - # : (NodeContext context) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#151 sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } def delete_attr_accessor(context); end - # : (Integer start_char, Integer end_char) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#325 sig { params(start_char: ::Integer, end_char: ::Integer).void } def delete_chars(start_char, end_char); end - # : (NodeContext context) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#69 sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } def delete_constant_assignment(context); end - # : (Integer start_line, Integer end_line) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#318 sig { params(start_line: ::Integer, end_line: ::Integer).void } def delete_lines(start_line, end_line); end - # : (NodeContext context) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#255 sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } def delete_node_and_comments_and_sigs(context); end - # : (Prism::Node node, NodeContext send_context, was_removed: bool) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#212 sig do params( @@ -3048,14 +2541,10 @@ class Spoom::Deadcode::Remover::NodeRemover end def insert_accessor(node, send_context, was_removed:); end - # : (Integer start_char, Integer end_char, String replacement) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#330 sig { params(start_char: ::Integer, end_char: ::Integer, replacement: ::String).void } def replace_chars(start_char, end_char, replacement); end - # : (Prism::CallNode node, name: String, kind: Definition::Kind?) -> String - # # source://spoom//lib/spoom/deadcode/remover.rb#335 sig do params( @@ -3078,8 +2567,6 @@ class Spoom::Deadcode::Send < ::T::Struct const :block, T.nilable(::Prism::Node), default: T.unsafe(nil) const :location, ::Spoom::Location - # : [T] (Class[T] arg_type) { (T arg) -> void } -> void - # # source://spoom//lib/spoom/deadcode/send.rb#16 sig do type_parameters(:T) @@ -3090,16 +2577,9 @@ class Spoom::Deadcode::Send < ::T::Struct end def each_arg(arg_type, &block); end - # : { (Prism::Node key, Prism::Node? value) -> void } -> void - # # source://spoom//lib/spoom/deadcode/send.rb#23 sig { params(block: T.proc.params(key: ::Prism::Node, value: T.nilable(::Prism::Node)).void).void } def each_arg_assoc(&block); end - - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end end # source://spoom//lib/spoom.rb#10 @@ -3112,16 +2592,9 @@ class Spoom::ExecResult < ::T::Struct const :status, T::Boolean const :exit_code, ::Integer - # : -> String - # # source://spoom//lib/spoom/context/exec.rb#12 sig { returns(::String) } def to_s; end - - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end end # source://spoom//lib/spoom/file_collector.rb#5 @@ -3134,7 +2607,6 @@ class Spoom::FileCollector # If `allow_mime_types` is empty, all files are collected. # If `allow_mime_types` is an array of mimetypes, files without an extension are collected if their mimetype is in # the list. - # : (?allow_extensions: Array[String], ?allow_mime_types: Array[String], ?exclude_patterns: Array[String]) -> void # # @return [FileCollector] a new instance of FileCollector # @@ -3148,62 +2620,44 @@ class Spoom::FileCollector end def initialize(allow_extensions: T.unsafe(nil), allow_mime_types: T.unsafe(nil), exclude_patterns: T.unsafe(nil)); end - # : Array[String] - # # source://spoom//lib/spoom/file_collector.rb#7 sig { returns(T::Array[::String]) } def files; end - # : (String path) -> void - # # source://spoom//lib/spoom/file_collector.rb#31 sig { params(path: ::String).void } def visit_path(path); end - # : (Array[String] paths) -> void - # # source://spoom//lib/spoom/file_collector.rb#26 sig { params(paths: T::Array[::String]).void } def visit_paths(paths); end private - # : (String path) -> String - # # source://spoom//lib/spoom/file_collector.rb#48 sig { params(path: ::String).returns(::String) } def clean_path(path); end - # : (String path) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/file_collector.rb#65 sig { params(path: ::String).returns(T::Boolean) } def excluded_file?(path); end - # : (String path) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/file_collector.rb#80 sig { params(path: ::String).returns(T::Boolean) } def excluded_path?(path); end - # : (String path) -> String? - # # source://spoom//lib/spoom/file_collector.rb#89 sig { params(path: ::String).returns(T.nilable(::String)) } def mime_type_for(path); end - # : (String path) -> void - # # source://spoom//lib/spoom/file_collector.rb#60 sig { params(path: ::String).void } def visit_directory(path); end - # : (String path) -> void - # # source://spoom//lib/spoom/file_collector.rb#53 sig { params(path: ::String).void } def visit_file(path); end @@ -3213,8 +2667,6 @@ end # # source://spoom//lib/spoom/file_tree.rb#6 class Spoom::FileTree - # : (?T::Enumerable[String] paths) -> void - # # @return [FileTree] a new instance of FileTree # # source://spoom//lib/spoom/file_tree.rb#8 @@ -3224,55 +2676,46 @@ class Spoom::FileTree # Add a `path` to the tree # # This will create all nodes until the root of `path`. - # : (String path) -> Node # # source://spoom//lib/spoom/file_tree.rb#23 sig { params(path: ::String).returns(::Spoom::FileTree::Node) } def add_path(path); end # Add all `paths` to the tree - # : (T::Enumerable[String] paths) -> void # # source://spoom//lib/spoom/file_tree.rb#15 sig { params(paths: T::Enumerable[::String]).void } def add_paths(paths); end # All the nodes in this tree - # : -> Array[Node] # # source://spoom//lib/spoom/file_tree.rb#43 sig { returns(T::Array[::Spoom::FileTree::Node]) } def nodes; end # Return a map of typing scores for each node in the tree - # : (Context context) -> Hash[Node, Float] # # source://spoom//lib/spoom/file_tree.rb#57 sig { params(context: ::Spoom::Context).returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } def nodes_strictness_scores(context); end # All the paths in this tree - # : -> Array[String] # # source://spoom//lib/spoom/file_tree.rb#51 sig { returns(T::Array[::String]) } def paths; end # Return a map of typing scores for each path in the tree - # : (Context context) -> Hash[String, Float] # # source://spoom//lib/spoom/file_tree.rb#65 sig { params(context: ::Spoom::Context).returns(T::Hash[::String, ::Float]) } def paths_strictness_scores(context); end - # : (?out: (IO | StringIO), ?colors: bool) -> void - # # source://spoom//lib/spoom/file_tree.rb#70 sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean).void } def print(out: T.unsafe(nil), colors: T.unsafe(nil)); end # All root nodes - # : -> Array[Node] # # source://spoom//lib/spoom/file_tree.rb#37 sig { returns(T::Array[::Spoom::FileTree::Node]) } @@ -3281,89 +2724,67 @@ end # A visitor that collects all the nodes in a tree # -# source://spoom//lib/spoom/file_tree.rb#119 +# source://spoom//lib/spoom/file_tree.rb#116 class Spoom::FileTree::CollectNodes < ::Spoom::FileTree::Visitor - # : -> void - # # @return [CollectNodes] a new instance of CollectNodes # - # source://spoom//lib/spoom/file_tree.rb#124 + # source://spoom//lib/spoom/file_tree.rb#121 sig { void } def initialize; end - # : Array[FileTree::Node] - # - # source://spoom//lib/spoom/file_tree.rb#121 + # source://spoom//lib/spoom/file_tree.rb#118 sig { returns(T::Array[::Spoom::FileTree::Node]) } def nodes; end - # : (FileTree::Node node) -> void - # - # source://spoom//lib/spoom/file_tree.rb#131 + # source://spoom//lib/spoom/file_tree.rb#128 sig { override.params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end end # A visitor that collects the typing score of each node in a tree # -# source://spoom//lib/spoom/file_tree.rb#160 +# source://spoom//lib/spoom/file_tree.rb#157 class Spoom::FileTree::CollectScores < ::Spoom::FileTree::CollectStrictnesses - # : (Context context) -> void - # # @return [CollectScores] a new instance of CollectScores # - # source://spoom//lib/spoom/file_tree.rb#165 + # source://spoom//lib/spoom/file_tree.rb#162 sig { params(context: ::Spoom::Context).void } def initialize(context); end - # : Hash[Node, Float] - # - # source://spoom//lib/spoom/file_tree.rb#162 + # source://spoom//lib/spoom/file_tree.rb#159 sig { returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } def scores; end - # : (FileTree::Node node) -> void - # - # source://spoom//lib/spoom/file_tree.rb#173 + # source://spoom//lib/spoom/file_tree.rb#170 sig { override.params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end private - # : (Node node) -> Float - # - # source://spoom//lib/spoom/file_tree.rb#182 + # source://spoom//lib/spoom/file_tree.rb#179 sig { params(node: ::Spoom::FileTree::Node).returns(::Float) } def node_score(node); end - # : (String? strictness) -> Float - # - # source://spoom//lib/spoom/file_tree.rb#191 + # source://spoom//lib/spoom/file_tree.rb#188 sig { params(strictness: T.nilable(::String)).returns(::Float) } def strictness_score(strictness); end end # A visitor that collects the strictness of each node in a tree # -# source://spoom//lib/spoom/file_tree.rb#138 +# source://spoom//lib/spoom/file_tree.rb#135 class Spoom::FileTree::CollectStrictnesses < ::Spoom::FileTree::Visitor - # : (Context context) -> void - # # @return [CollectStrictnesses] a new instance of CollectStrictnesses # - # source://spoom//lib/spoom/file_tree.rb#143 + # source://spoom//lib/spoom/file_tree.rb#140 sig { params(context: ::Spoom::Context).void } def initialize(context); end - # : Hash[Node, String?] - # - # source://spoom//lib/spoom/file_tree.rb#140 + # source://spoom//lib/spoom/file_tree.rb#137 sig { returns(T::Hash[::Spoom::FileTree::Node, T.nilable(::String)]) } def strictnesses; end - # : (FileTree::Node node) -> void - # - # source://spoom//lib/spoom/file_tree.rb#151 + # source://spoom//lib/spoom/file_tree.rb#148 sig { override.params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end end @@ -3377,29 +2798,21 @@ class Spoom::FileTree::Node < ::T::Struct const :children, T::Hash[::String, ::Spoom::FileTree::Node], default: T.unsafe(nil) # Full path to this node from root - # : -> String # # source://spoom//lib/spoom/file_tree.rb#88 sig { returns(::String) } def path; end - - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end end # An internal class used to print a FileTree # # See `FileTree#print` # -# source://spoom//lib/spoom/file_tree.rb#204 +# source://spoom//lib/spoom/file_tree.rb#201 class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor - # : (Hash[FileTree::Node, String?] strictnesses, ?out: (IO | StringIO), ?colors: bool) -> void - # # @return [Printer] a new instance of Printer # - # source://spoom//lib/spoom/file_tree.rb#206 + # source://spoom//lib/spoom/file_tree.rb#203 sig do params( strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)], @@ -3409,44 +2822,34 @@ class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor end def initialize(strictnesses, out: T.unsafe(nil), colors: T.unsafe(nil)); end - # : (FileTree::Node node) -> void - # - # source://spoom//lib/spoom/file_tree.rb#215 + # source://spoom//lib/spoom/file_tree.rb#212 sig { override.params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end private - # : (String? strictness) -> Color - # - # source://spoom//lib/spoom/file_tree.rb#240 + # source://spoom//lib/spoom/file_tree.rb#237 sig { params(strictness: T.nilable(::String)).returns(::Spoom::Color) } def strictness_color(strictness); end end # An abstract visitor for FileTree # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/file_tree.rb#97 +# source://spoom//lib/spoom/file_tree.rb#98 class Spoom::FileTree::Visitor abstract! - # : (FileTree::Node node) -> void - # - # source://spoom//lib/spoom/file_tree.rb#108 + # source://spoom//lib/spoom/file_tree.rb#105 sig { params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end - # : (Array[FileTree::Node] nodes) -> void - # - # source://spoom//lib/spoom/file_tree.rb#113 + # source://spoom//lib/spoom/file_tree.rb#110 sig { params(nodes: T::Array[::Spoom::FileTree::Node]).void } def visit_nodes(nodes); end - # : (FileTree tree) -> void - # - # source://spoom//lib/spoom/file_tree.rb#103 + # source://spoom//lib/spoom/file_tree.rb#100 sig { params(tree: ::Spoom::FileTree).void } def visit_tree(tree); end end @@ -3459,18 +2862,12 @@ class Spoom::Git::Commit < ::T::Struct const :sha, ::String const :time, ::Time - # : -> Integer - # # source://spoom//lib/spoom/context/git.rb#23 sig { returns(::Integer) } def timestamp; end class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - # Parse a line formatted as `%h %at` into a `Commit` - # : (String string) -> Commit? # # source://spoom//lib/spoom/context/git.rb#10 sig { params(string: ::String).returns(T.nilable(::Spoom::Git::Commit)) } @@ -3483,68 +2880,48 @@ module Spoom::LSP; end # source://spoom//lib/spoom/sorbet/lsp.rb#13 class Spoom::LSP::Client - # : (String sorbet_bin, *String sorbet_args, ?path: String) -> void - # # @return [Client] a new instance of Client # # source://spoom//lib/spoom/sorbet/lsp.rb#15 sig { params(sorbet_bin: ::String, sorbet_args: ::String, path: ::String).void } def initialize(sorbet_bin, *sorbet_args, path: T.unsafe(nil)); end - # : -> void - # # source://spoom//lib/spoom/sorbet/lsp.rb#227 sig { void } def close; end - # : (String uri, Integer line, Integer column) -> Array[Location] - # # source://spoom//lib/spoom/sorbet/lsp.rb#129 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } def definitions(uri, line, column); end - # : (String uri) -> Array[DocumentSymbol] - # # source://spoom//lib/spoom/sorbet/lsp.rb#210 sig { params(uri: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } def document_symbols(uri); end - # : (String uri, Integer line, Integer column) -> Hover? - # # source://spoom//lib/spoom/sorbet/lsp.rb#87 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T.nilable(::Spoom::LSP::Hover)) } def hover(uri, line, column); end - # : -> Integer - # # source://spoom//lib/spoom/sorbet/lsp.rb#25 sig { returns(::Integer) } def next_id; end - # : (String workspace_path) -> void - # # @raise [Error::AlreadyOpen] # # source://spoom//lib/spoom/sorbet/lsp.rb#70 sig { params(workspace_path: ::String).void } def open(workspace_path); end - # : -> Hash[untyped, untyped]? - # # source://spoom//lib/spoom/sorbet/lsp.rb#52 sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) } def read; end - # : -> String? - # # @raise [Error::BadHeaders] # # source://spoom//lib/spoom/sorbet/lsp.rb#41 sig { returns(T.nilable(::String)) } def read_raw; end - # : (String uri, Integer line, Integer column, ?bool include_decl) -> Array[Location] - # # source://spoom//lib/spoom/sorbet/lsp.rb#171 sig do params( @@ -3556,38 +2933,28 @@ class Spoom::LSP::Client end def references(uri, line, column, include_decl = T.unsafe(nil)); end - # : (Message message) -> Hash[untyped, untyped]? - # # source://spoom//lib/spoom/sorbet/lsp.rb#35 sig { params(message: ::Spoom::LSP::Message).returns(T.nilable(T::Hash[T.untyped, T.untyped])) } def send(message); end - # : (String json_string) -> void - # # source://spoom//lib/spoom/sorbet/lsp.rb#30 sig { params(json_string: ::String).void } def send_raw(json_string); end - # : (String uri, Integer line, Integer column) -> Array[SignatureHelp] - # # source://spoom//lib/spoom/sorbet/lsp.rb#108 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::SignatureHelp]) } def signatures(uri, line, column); end - # : (String query) -> Array[DocumentSymbol] - # # source://spoom//lib/spoom/sorbet/lsp.rb#195 sig { params(query: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } def symbols(query); end - # : (String uri, Integer line, Integer column) -> Array[Location] - # # source://spoom//lib/spoom/sorbet/lsp.rb#150 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } def type_definitions(uri, line, column); end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#168 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#165 class Spoom::LSP::Diagnostic < ::T::Struct include ::Spoom::LSP::PrintableSymbol @@ -3596,31 +2963,22 @@ class Spoom::LSP::Diagnostic < ::T::Struct const :message, ::String const :information, ::Object - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#190 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#187 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#195 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#192 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> Diagnostic - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#178 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#175 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#200 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#197 class Spoom::LSP::DocumentSymbol < ::T::Struct include ::Spoom::LSP::PrintableSymbol @@ -3631,37 +2989,26 @@ class Spoom::LSP::DocumentSymbol < ::T::Struct const :range, T.nilable(::Spoom::LSP::Range) const :children, T::Array[::Spoom::LSP::DocumentSymbol] - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#226 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#223 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#258 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#255 sig { returns(::String) } def kind_string; end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#253 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#250 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> DocumentSymbol - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#212 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#209 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#262 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#259 Spoom::LSP::DocumentSymbol::SYMBOL_KINDS = T.let(T.unsafe(nil), Hash) # source://spoom//lib/spoom/sorbet/lsp/errors.rb#6 @@ -3675,94 +3022,68 @@ class Spoom::LSP::Error::BadHeaders < ::Spoom::LSP::Error; end # source://spoom//lib/spoom/sorbet/lsp/errors.rb#10 class Spoom::LSP::Error::Diagnostics < ::Spoom::LSP::Error - # : (String uri, Array[Diagnostic] diagnostics) -> void - # # @return [Diagnostics] a new instance of Diagnostics # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#28 sig { params(uri: ::String, diagnostics: T::Array[::Spoom::LSP::Diagnostic]).void } def initialize(uri, diagnostics); end - # : Array[Diagnostic] - # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#15 sig { returns(T::Array[::Spoom::LSP::Diagnostic]) } def diagnostics; end - # : String - # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#12 sig { returns(::String) } def uri; end class << self - # : (Hash[untyped, untyped] json) -> Diagnostics - # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#19 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Error::Diagnostics) } def from_json(json); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#19 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#16 class Spoom::LSP::Hover < ::T::Struct include ::Spoom::LSP::PrintableSymbol const :contents, ::String const :range, T.nilable(T::Range[T.untyped]) - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#37 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#34 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#43 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#40 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> Hover - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#27 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#24 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#106 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#103 class Spoom::LSP::Location < ::T::Struct include ::Spoom::LSP::PrintableSymbol const :uri, ::String const :range, ::Spoom::LSP::Range - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#124 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#121 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#130 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#127 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> Location - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#114 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#111 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end @@ -3772,22 +3093,16 @@ end # # source://spoom//lib/spoom/sorbet/lsp/base.rb#12 class Spoom::LSP::Message - # : -> void - # # @return [Message] a new instance of Message # # source://spoom//lib/spoom/sorbet/lsp/base.rb#14 sig { void } def initialize; end - # : -> Hash[untyped, untyped] - # # source://spoom//lib/spoom/sorbet/lsp/base.rb#19 sig { returns(T::Hash[T.untyped, T.untyped]) } def as_json; end - # : (*untyped args) -> String - # # source://spoom//lib/spoom/sorbet/lsp/base.rb#27 sig { params(args: T.untyped).returns(::String) } def to_json(*args); end @@ -3799,99 +3114,74 @@ end # # source://spoom//lib/spoom/sorbet/lsp/base.rb#54 class Spoom::LSP::Notification < ::Spoom::LSP::Message - # : (String method, Hash[untyped, untyped] params) -> void - # # @return [Notification] a new instance of Notification # # source://spoom//lib/spoom/sorbet/lsp/base.rb#62 sig { params(method: ::String, params: T::Hash[T.untyped, T.untyped]).void } def initialize(method, params); end - # : String - # # source://spoom//lib/spoom/sorbet/lsp/base.rb#56 sig { returns(::String) } def method; end - # : Hash[untyped, untyped] - # # source://spoom//lib/spoom/sorbet/lsp/base.rb#59 sig { returns(T::Hash[T.untyped, T.untyped]) } def params; end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#48 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#45 class Spoom::LSP::Position < ::T::Struct include ::Spoom::LSP::PrintableSymbol const :line, ::Integer const :char, ::Integer - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#66 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#63 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#71 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#68 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> Position - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#56 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#53 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end -# @abstract Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#9 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#10 module Spoom::LSP::PrintableSymbol interface! # @abstract + # @raise [NotImplementedError] # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#16 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#13 sig { abstract.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#76 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#73 class Spoom::LSP::Range < ::T::Struct include ::Spoom::LSP::PrintableSymbol const :start, ::Spoom::LSP::Position const :end, ::Spoom::LSP::Position - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#94 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#91 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#101 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#98 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> Range - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#84 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#81 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end @@ -3901,22 +3191,16 @@ end # # source://spoom//lib/spoom/sorbet/lsp/base.rb#35 class Spoom::LSP::Request < ::Spoom::LSP::Message - # : (Integer id, String method, Hash[untyped, untyped] params) -> void - # # @return [Request] a new instance of Request # # source://spoom//lib/spoom/sorbet/lsp/base.rb#43 sig { params(id: ::Integer, method: ::String, params: T::Hash[T.untyped, T.untyped]).void } def initialize(id, method, params); end - # : Integer - # # source://spoom//lib/spoom/sorbet/lsp/base.rb#37 sig { returns(::Integer) } def id; end - # : Hash[untyped, untyped] - # # source://spoom//lib/spoom/sorbet/lsp/base.rb#40 sig { returns(T::Hash[T.untyped, T.untyped]) } def params; end @@ -3924,36 +3208,28 @@ end # source://spoom//lib/spoom/sorbet/lsp/errors.rb#36 class Spoom::LSP::ResponseError < ::Spoom::LSP::Error - # : (Integer code, String message, Hash[untyped, untyped] data) -> void - # # @return [ResponseError] a new instance of ResponseError # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#55 sig { params(code: ::Integer, message: ::String, data: T::Hash[T.untyped, T.untyped]).void } def initialize(code, message, data); end - # : Integer - # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#38 sig { returns(::Integer) } def code; end - # : Hash[untyped, untyped] - # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#41 sig { returns(T::Hash[T.untyped, T.untyped]) } def data; end class << self - # : (Hash[untyped, untyped] json) -> ResponseError - # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#45 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::ResponseError) } def from_json(json); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#135 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#132 class Spoom::LSP::SignatureHelp < ::T::Struct include ::Spoom::LSP::PrintableSymbol @@ -3961,37 +3237,26 @@ class Spoom::LSP::SignatureHelp < ::T::Struct const :doc, ::Object const :params, T::Array[T.untyped] - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#155 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#152 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#163 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#160 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> SignatureHelp - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#144 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#141 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#292 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#289 class Spoom::LSP::SymbolPrinter < ::Spoom::Printer - # : (?out: (IO | StringIO), ?colors: bool, ?indent_level: Integer, ?prefix: String?) -> void - # # @return [SymbolPrinter] a new instance of SymbolPrinter # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#300 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#297 sig do params( out: T.any(::IO, ::StringIO), @@ -4002,44 +3267,30 @@ class Spoom::LSP::SymbolPrinter < ::Spoom::Printer end def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil), prefix: T.unsafe(nil)); end - # : (String uri) -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#322 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#319 sig { params(uri: ::String).returns(::String) } def clean_uri(uri); end - # : String? - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#297 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#294 sig { returns(T.nilable(::String)) } def prefix; end - # : String? - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#297 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#294 def prefix=(_arg0); end - # : (Array[PrintableSymbol] objects) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#330 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#327 sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } def print_list(objects); end - # : (PrintableSymbol? object) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#310 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#307 sig { params(object: T.nilable(::Spoom::LSP::PrintableSymbol)).void } def print_object(object); end - # : (Array[PrintableSymbol] objects) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#317 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#314 sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } def print_objects(objects); end - # : Set[Integer] - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#294 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#291 sig { returns(T::Set[::Integer]) } def seen; end end @@ -4048,8 +3299,6 @@ end class Spoom::Location include ::Comparable - # : (String file, ?start_line: Integer?, ?start_column: Integer?, ?end_line: Integer?, ?end_column: Integer?) -> void - # # @raise [LocationError] # @return [Location] a new instance of Location # @@ -4065,62 +3314,42 @@ class Spoom::Location end def initialize(file, start_line: T.unsafe(nil), start_column: T.unsafe(nil), end_line: T.unsafe(nil), end_column: T.unsafe(nil)); end - # : (BasicObject other) -> Integer? - # # source://spoom//lib/spoom/location.rb#95 sig { override.params(other: ::BasicObject).returns(T.nilable(::Integer)) } def <=>(other); end - # : Integer? - # # source://spoom//lib/spoom/location.rb#58 def end_column; end - # : Integer? - # # source://spoom//lib/spoom/location.rb#58 def end_line; end - # : String - # # source://spoom//lib/spoom/location.rb#55 sig { returns(::String) } def file; end - # : (Location other) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/location.rb#81 sig { params(other: ::Spoom::Location).returns(T::Boolean) } def include?(other); end - # : Integer? - # # source://spoom//lib/spoom/location.rb#58 def start_column; end - # : Integer? - # # source://spoom//lib/spoom/location.rb#58 sig { returns(T.nilable(::Integer)) } def start_line; end - # : -> String - # # source://spoom//lib/spoom/location.rb#118 sig { returns(::String) } def to_s; end class << self - # : (String file, Prism::Location location) -> Location - # # source://spoom//lib/spoom/location.rb#43 sig { params(file: ::String, location: ::Prism::Location).returns(::Spoom::Location) } def from_prism(file, location); end - # : (String location_string) -> Location - # # @raise [LocationError] # # source://spoom//lib/spoom/location.rb#12 @@ -4134,190 +3363,145 @@ class Spoom::Location::LocationError < ::Spoom::Error; end # source://spoom//lib/spoom/model/model.rb#5 class Spoom::Model - # : -> void - # # @return [Model] a new instance of Model # - # source://spoom//lib/spoom/model/model.rb#235 + # source://spoom//lib/spoom/model/model.rb#227 sig { void } def initialize; end # Get a symbol by it's full name # # Raises an error if the symbol is not found - # : (String full_name) -> Symbol # # @raise [Error] # - # source://spoom//lib/spoom/model/model.rb#244 + # source://spoom//lib/spoom/model/model.rb#236 sig { params(full_name: ::String).returns(::Spoom::Model::Symbol) } def [](full_name); end - # : -> void - # - # source://spoom//lib/spoom/model/model.rb#293 + # source://spoom//lib/spoom/model/model.rb#285 sig { void } def finalize!; end # Register a new symbol by it's full name # # If the symbol already exists, it will be returned. - # : (String full_name) -> Symbol # - # source://spoom//lib/spoom/model/model.rb#255 + # source://spoom//lib/spoom/model/model.rb#247 sig { params(full_name: ::String).returns(::Spoom::Model::Symbol) } def register_symbol(full_name); end - # : (String full_name, context: Symbol) -> Symbol - # - # source://spoom//lib/spoom/model/model.rb#260 + # source://spoom//lib/spoom/model/model.rb#252 sig { params(full_name: ::String, context: ::Spoom::Model::Symbol).returns(::Spoom::Model::Symbol) } def resolve_symbol(full_name, context:); end - # : (Symbol symbol) -> Array[Symbol] - # - # source://spoom//lib/spoom/model/model.rb#287 + # source://spoom//lib/spoom/model/model.rb#279 sig { params(symbol: ::Spoom::Model::Symbol).returns(T::Array[::Spoom::Model::Symbol]) } def subtypes(symbol); end - # : (Symbol symbol) -> Array[Symbol] - # - # source://spoom//lib/spoom/model/model.rb#281 + # source://spoom//lib/spoom/model/model.rb#273 sig { params(symbol: ::Spoom::Model::Symbol).returns(T::Array[::Spoom::Model::Symbol]) } def supertypes(symbol); end # All the symbols registered in this model - # : Hash[String, Symbol] # - # source://spoom//lib/spoom/model/model.rb#229 + # source://spoom//lib/spoom/model/model.rb#221 sig { returns(T::Hash[::String, ::Spoom::Model::Symbol]) } def symbols; end - # : Poset[Symbol] - # - # source://spoom//lib/spoom/model/model.rb#232 + # source://spoom//lib/spoom/model/model.rb#224 sig { returns(Spoom::Poset[::Spoom::Model::Symbol]) } def symbols_hierarchy; end private - # : -> void - # - # source://spoom//lib/spoom/model/model.rb#300 + # source://spoom//lib/spoom/model/model.rb#292 sig { void } def compute_symbols_hierarchy!; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/model/model.rb#179 +# source://spoom//lib/spoom/model/model.rb#175 class Spoom::Model::Attr < ::Spoom::Model::Property abstract! end -# source://spoom//lib/spoom/model/model.rb#185 +# source://spoom//lib/spoom/model/model.rb#180 class Spoom::Model::AttrAccessor < ::Spoom::Model::Attr; end -# source://spoom//lib/spoom/model/model.rb#183 +# source://spoom//lib/spoom/model/model.rb#178 class Spoom::Model::AttrReader < ::Spoom::Model::Attr; end -# source://spoom//lib/spoom/model/model.rb#184 +# source://spoom//lib/spoom/model/model.rb#179 class Spoom::Model::AttrWriter < ::Spoom::Model::Attr; end # Populate a Model by visiting the nodes from a Ruby file # # source://spoom//lib/spoom/model/builder.rb#7 class Spoom::Model::Builder < ::Spoom::Model::NamespaceVisitor - # : (Model model, String file, ?comments: Array[Prism::Comment]) -> void - # # @return [Builder] a new instance of Builder # # source://spoom//lib/spoom/model/builder.rb#9 - sig { params(model: ::Spoom::Model, file: ::String, comments: T::Array[::Prism::Comment]).void } - def initialize(model, file, comments:); end + sig { params(model: ::Spoom::Model, file: ::String).void } + def initialize(model, file); end - # : (Prism::CallNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#162 + # source://spoom//lib/spoom/model/builder.rb#159 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end - # : (Prism::ClassNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#26 + # source://spoom//lib/spoom/model/builder.rb#23 sig { override.params(node: ::Prism::ClassNode).void } def visit_class_node(node); end - # : (Prism::ConstantPathWriteNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#79 + # source://spoom//lib/spoom/model/builder.rb#76 sig { override.params(node: ::Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end - # : (Prism::ConstantWriteNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#102 + # source://spoom//lib/spoom/model/builder.rb#99 sig { override.params(node: ::Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end - # : (Prism::DefNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#141 + # source://spoom//lib/spoom/model/builder.rb#138 sig { override.params(node: ::Prism::DefNode).void } def visit_def_node(node); end - # : (Prism::ModuleNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#61 + # source://spoom//lib/spoom/model/builder.rb#58 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # : (Prism::MultiWriteNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#118 + # source://spoom//lib/spoom/model/builder.rb#115 sig { override.params(node: ::Prism::MultiWriteNode).void } def visit_multi_write_node(node); end - # : (Prism::SingletonClassNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#43 + # source://spoom//lib/spoom/model/builder.rb#40 sig { override.params(node: ::Prism::SingletonClassNode).void } def visit_singleton_class_node(node); end private - # : -> Array[Sig] - # - # source://spoom//lib/spoom/model/builder.rb#253 + # source://spoom//lib/spoom/model/builder.rb#250 sig { returns(T::Array[::Spoom::Model::Sig]) } def collect_sigs; end - # : -> Visibility - # - # source://spoom//lib/spoom/model/builder.rb#248 + # source://spoom//lib/spoom/model/builder.rb#245 sig { returns(::Spoom::Model::Visibility) } def current_visibility; end - # : (Prism::Node node) -> Array[Comment] - # - # source://spoom//lib/spoom/model/builder.rb#265 + # source://spoom//lib/spoom/model/builder.rb#262 sig { params(node: ::Prism::Node).returns(T::Array[::Spoom::Model::Comment]) } def node_comments(node); end - # : (Prism::Node node) -> Location - # - # source://spoom//lib/spoom/model/builder.rb#260 + # source://spoom//lib/spoom/model/builder.rb#257 sig { params(node: ::Prism::Node).returns(::Spoom::Location) } def node_location(node); end end -# source://spoom//lib/spoom/model/model.rb#132 +# source://spoom//lib/spoom/model/model.rb#128 class Spoom::Model::Class < ::Spoom::Model::Namespace - # : (Symbol symbol, owner: Namespace?, location: Location, ?superclass_name: String?, ?comments: Array[Comment]) -> void - # # @return [Class] a new instance of Class # - # source://spoom//lib/spoom/model/model.rb#137 + # source://spoom//lib/spoom/model/model.rb#133 sig do params( symbol: ::Spoom::Model::Symbol, @@ -4329,48 +3513,36 @@ class Spoom::Model::Class < ::Spoom::Model::Namespace end def initialize(symbol, owner:, location:, superclass_name: T.unsafe(nil), comments: T.unsafe(nil)); end - # : String? - # - # source://spoom//lib/spoom/model/model.rb#134 + # source://spoom//lib/spoom/model/model.rb#130 sig { returns(T.nilable(::String)) } def superclass_name; end - # : String? - # - # source://spoom//lib/spoom/model/model.rb#134 + # source://spoom//lib/spoom/model/model.rb#130 def superclass_name=(_arg0); end end # source://spoom//lib/spoom/model/model.rb#8 class Spoom::Model::Comment - # : (String string, Location location) -> void - # # @return [Comment] a new instance of Comment # # source://spoom//lib/spoom/model/model.rb#16 sig { params(string: ::String, location: ::Spoom::Location).void } def initialize(string, location); end - # : Location - # # source://spoom//lib/spoom/model/model.rb#13 sig { returns(::Spoom::Location) } def location; end - # : String - # # source://spoom//lib/spoom/model/model.rb#10 sig { returns(::String) } def string; end end -# source://spoom//lib/spoom/model/model.rb#146 +# source://spoom//lib/spoom/model/model.rb#142 class Spoom::Model::Constant < ::Spoom::Model::SymbolDef - # : (Symbol symbol, owner: Namespace?, location: Location, value: String, ?comments: Array[Comment]) -> void - # # @return [Constant] a new instance of Constant # - # source://spoom//lib/spoom/model/model.rb#151 + # source://spoom//lib/spoom/model/model.rb#147 sig do params( symbol: ::Spoom::Model::Symbol, @@ -4382,9 +3554,7 @@ class Spoom::Model::Constant < ::Spoom::Model::SymbolDef end def initialize(symbol, owner:, location:, value:, comments: T.unsafe(nil)); end - # : String - # - # source://spoom//lib/spoom/model/model.rb#148 + # source://spoom//lib/spoom/model/model.rb#144 sig { returns(::String) } def value; end end @@ -4392,54 +3562,48 @@ end # source://spoom//lib/spoom/model/model.rb#6 class Spoom::Model::Error < ::Spoom::Error; end -# source://spoom//lib/spoom/model/model.rb#212 +# source://spoom//lib/spoom/model/model.rb#204 class Spoom::Model::Extend < ::Spoom::Model::Mixin; end -# source://spoom//lib/spoom/model/model.rb#210 +# source://spoom//lib/spoom/model/model.rb#202 class Spoom::Model::Include < ::Spoom::Model::Mixin; end -# source://spoom//lib/spoom/model/model.rb#177 +# source://spoom//lib/spoom/model/model.rb#172 class Spoom::Model::Method < ::Spoom::Model::Property; end # A mixin (include, prepend, extend) to a namespace # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/model/model.rb#196 +# source://spoom//lib/spoom/model/model.rb#192 class Spoom::Model::Mixin abstract! - # : (String name) -> void - # # @return [Mixin] a new instance of Mixin # - # source://spoom//lib/spoom/model/model.rb#205 + # source://spoom//lib/spoom/model/model.rb#197 sig { params(name: ::String).void } def initialize(name); end - # : String - # - # source://spoom//lib/spoom/model/model.rb#202 + # source://spoom//lib/spoom/model/model.rb#194 sig { returns(::String) } def name; end end -# source://spoom//lib/spoom/model/model.rb#144 +# source://spoom//lib/spoom/model/model.rb#140 class Spoom::Model::Module < ::Spoom::Model::Namespace; end # A class or module # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/model/model.rb#112 +# source://spoom//lib/spoom/model/model.rb#110 class Spoom::Model::Namespace < ::Spoom::Model::SymbolDef abstract! - # : (Symbol symbol, owner: Namespace?, location: Location, ?comments: Array[Comment]) -> void - # # @return [Namespace] a new instance of Namespace # - # source://spoom//lib/spoom/model/model.rb#122 + # source://spoom//lib/spoom/model/model.rb#118 sig do params( symbol: ::Spoom::Model::Symbol, @@ -4450,56 +3614,46 @@ class Spoom::Model::Namespace < ::Spoom::Model::SymbolDef end def initialize(symbol, owner:, location:, comments: T.unsafe(nil)); end - # : Array[SymbolDef] - # - # source://spoom//lib/spoom/model/model.rb#116 + # source://spoom//lib/spoom/model/model.rb#112 sig { returns(T::Array[::Spoom::Model::SymbolDef]) } def children; end - # : Array[Mixin] - # - # source://spoom//lib/spoom/model/model.rb#119 + # source://spoom//lib/spoom/model/model.rb#115 sig { returns(T::Array[::Spoom::Model::Mixin]) } def mixins; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/model/namespace_visitor.rb#6 +# source://spoom//lib/spoom/model/namespace_visitor.rb#7 class Spoom::Model::NamespaceVisitor < ::Spoom::Visitor abstract! - # : -> void - # # @return [NamespaceVisitor] a new instance of NamespaceVisitor # - # source://spoom//lib/spoom/model/namespace_visitor.rb#12 + # source://spoom//lib/spoom/model/namespace_visitor.rb#9 sig { void } def initialize; end - # : (Prism::Node? node) -> void - # - # source://spoom//lib/spoom/model/namespace_visitor.rb#20 + # source://spoom//lib/spoom/model/namespace_visitor.rb#17 sig { override.params(node: T.nilable(::Prism::Node)).void } def visit(node); end end -# source://spoom//lib/spoom/model/model.rb#211 +# source://spoom//lib/spoom/model/model.rb#203 class Spoom::Model::Prepend < ::Spoom::Model::Mixin; end # A method or an attribute accessor # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/model/model.rb#159 +# source://spoom//lib/spoom/model/model.rb#156 class Spoom::Model::Property < ::Spoom::Model::SymbolDef abstract! - # : (Symbol symbol, owner: Namespace?, location: Location, visibility: Visibility, ?sigs: Array[Sig], ?comments: Array[Comment]) -> void - # # @return [Property] a new instance of Property # - # source://spoom//lib/spoom/model/model.rb#169 + # source://spoom//lib/spoom/model/model.rb#164 sig do params( symbol: ::Spoom::Model::Symbol, @@ -4512,15 +3666,11 @@ class Spoom::Model::Property < ::Spoom::Model::SymbolDef end def initialize(symbol, owner:, location:, visibility:, sigs: T.unsafe(nil), comments: T.unsafe(nil)); end - # : Array[Sig] - # - # source://spoom//lib/spoom/model/model.rb#166 + # source://spoom//lib/spoom/model/model.rb#161 sig { returns(T::Array[::Spoom::Model::Sig]) } def sigs; end - # : Visibility - # - # source://spoom//lib/spoom/model/model.rb#163 + # source://spoom//lib/spoom/model/model.rb#158 sig { returns(::Spoom::Model::Visibility) } def visibility; end end @@ -4536,16 +3686,12 @@ class Spoom::Model::Reference < ::T::Struct const :name, ::String const :location, ::Spoom::Location - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/model/reference.rb#35 sig { returns(T::Boolean) } def constant?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/model/reference.rb#40 @@ -4553,17 +3699,10 @@ class Spoom::Model::Reference < ::T::Struct def method?; end class << self - # : (String name, Spoom::Location location) -> Reference - # # source://spoom//lib/spoom/model/reference.rb#20 sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) } def constant(name, location); end - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - - # : (String name, Spoom::Location location) -> Reference - # # source://spoom//lib/spoom/model/reference.rb#25 sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) } def method(name, location); end @@ -4582,168 +3721,114 @@ end # # source://spoom//lib/spoom/model/references_visitor.rb#7 class Spoom::Model::ReferencesVisitor < ::Spoom::Visitor - # : (String file) -> void - # # @return [ReferencesVisitor] a new instance of ReferencesVisitor # # source://spoom//lib/spoom/model/references_visitor.rb#12 sig { params(file: ::String).void } def initialize(file); end - # : Array[Reference] - # # source://spoom//lib/spoom/model/references_visitor.rb#9 sig { returns(T::Array[::Spoom::Model::Reference]) } def references; end - # : (Prism::AliasMethodNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#21 sig { override.params(node: ::Prism::AliasMethodNode).void } def visit_alias_method_node(node); end - # : (Prism::AndNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#27 sig { override.params(node: ::Prism::AndNode).void } def visit_and_node(node); end - # : (Prism::BlockArgumentNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#34 sig { override.params(node: ::Prism::BlockArgumentNode).void } def visit_block_argument_node(node); end - # : (Prism::CallAndWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#46 sig { override.params(node: ::Prism::CallAndWriteNode).void } def visit_call_and_write_node(node); end - # : (Prism::CallNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#73 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end - # : (Prism::CallOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#55 sig { override.params(node: ::Prism::CallOperatorWriteNode).void } def visit_call_operator_write_node(node); end - # : (Prism::CallOrWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#64 sig { override.params(node: ::Prism::CallOrWriteNode).void } def visit_call_or_write_node(node); end - # : (Prism::ClassNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#91 sig { override.params(node: ::Prism::ClassNode).void } def visit_class_node(node); end - # : (Prism::ConstantAndWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#98 sig { override.params(node: ::Prism::ConstantAndWriteNode).void } def visit_constant_and_write_node(node); end - # : (Prism::ConstantOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#105 sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void } def visit_constant_operator_write_node(node); end - # : (Prism::ConstantOrWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#112 sig { override.params(node: ::Prism::ConstantOrWriteNode).void } def visit_constant_or_write_node(node); end - # : (Prism::ConstantPathNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#119 sig { override.params(node: ::Prism::ConstantPathNode).void } def visit_constant_path_node(node); end - # : (Prism::ConstantPathWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#126 sig { override.params(node: ::Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end - # : (Prism::ConstantReadNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#133 sig { override.params(node: ::Prism::ConstantReadNode).void } def visit_constant_read_node(node); end - # : (Prism::ConstantWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#139 sig { override.params(node: ::Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end - # : (Prism::LocalVariableAndWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#145 sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void } def visit_local_variable_and_write_node(node); end - # : (Prism::LocalVariableOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#154 sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void } def visit_local_variable_operator_write_node(node); end - # : (Prism::LocalVariableOrWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#163 sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void } def visit_local_variable_or_write_node(node); end - # : (Prism::LocalVariableWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#172 sig { override.params(node: ::Prism::LocalVariableWriteNode).void } def visit_local_variable_write_node(node); end - # : (Prism::ModuleNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#179 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # : (Prism::MultiWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#185 sig { override.params(node: ::Prism::MultiWriteNode).void } def visit_multi_write_node(node); end - # : (Prism::OrNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#197 sig { override.params(node: ::Prism::OrNode).void } def visit_or_node(node); end private - # : (Prism::Node node) -> Location - # # source://spoom//lib/spoom/model/references_visitor.rb#215 sig { params(node: ::Prism::Node).returns(::Spoom::Location) } def node_location(node); end - # : (String name, Prism::Node node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#205 sig { params(name: ::String, node: ::Prism::Node).void } def reference_constant(name, node); end - # : (String name, Prism::Node node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#210 sig { params(name: ::String, node: ::Prism::Node).void } def reference_method(name, node); end @@ -4751,24 +3836,20 @@ end # A Sorbet signature (sig block) # -# source://spoom//lib/spoom/model/model.rb#215 +# source://spoom//lib/spoom/model/model.rb#207 class Spoom::Model::Sig - # : (String string) -> void - # # @return [Sig] a new instance of Sig # - # source://spoom//lib/spoom/model/model.rb#220 + # source://spoom//lib/spoom/model/model.rb#212 sig { params(string: ::String).void } def initialize(string); end - # : String - # - # source://spoom//lib/spoom/model/model.rb#217 + # source://spoom//lib/spoom/model/model.rb#209 sig { returns(::String) } def string; end end -# source://spoom//lib/spoom/model/model.rb#130 +# source://spoom//lib/spoom/model/model.rb#126 class Spoom::Model::SingletonClass < ::Spoom::Model::Namespace; end # A Symbol is a uniquely named entity in the Ruby codebase @@ -4779,8 +3860,6 @@ class Spoom::Model::SingletonClass < ::Spoom::Model::Namespace; end # # source://spoom//lib/spoom/model/model.rb#27 class Spoom::Model::Symbol - # : (String full_name) -> void - # # @return [Symbol] a new instance of Symbol # # source://spoom//lib/spoom/model/model.rb#37 @@ -4788,28 +3867,23 @@ class Spoom::Model::Symbol def initialize(full_name); end # The definitions of this symbol (where it exists in the code) - # : Array[SymbolDef] # # source://spoom//lib/spoom/model/model.rb#34 sig { returns(T::Array[::Spoom::Model::SymbolDef]) } def definitions; end # The full, unique name of this symbol - # : String # # source://spoom//lib/spoom/model/model.rb#30 sig { returns(::String) } def full_name; end # The short name of this symbol - # : -> String # # source://spoom//lib/spoom/model/model.rb#44 sig { returns(::String) } def name; end - # : -> String - # # source://spoom//lib/spoom/model/model.rb#49 sig { returns(::String) } def to_s; end @@ -4820,17 +3894,15 @@ end # It can be a class, module, constant, method, etc. # A SymbolDef has a location pointing to the actual code that defines the symbol. # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/model/model.rb#66 +# source://spoom//lib/spoom/model/model.rb#67 class Spoom::Model::SymbolDef abstract! - # : (Symbol symbol, owner: Namespace?, location: Location, ?comments: Array[Comment]) -> void - # # @return [SymbolDef] a new instance of SymbolDef # - # source://spoom//lib/spoom/model/model.rb#88 + # source://spoom//lib/spoom/model/model.rb#85 sig do params( symbol: ::Spoom::Model::Symbol, @@ -4842,58 +3914,50 @@ class Spoom::Model::SymbolDef def initialize(symbol, owner:, location:, comments:); end # The comments associated with this definition - # : Array[Comment] # - # source://spoom//lib/spoom/model/model.rb#85 + # source://spoom//lib/spoom/model/model.rb#82 sig { returns(T::Array[::Spoom::Model::Comment]) } def comments; end # The full name of the symbol this definition belongs to - # : -> String # - # source://spoom//lib/spoom/model/model.rb#100 + # source://spoom//lib/spoom/model/model.rb#97 sig { returns(::String) } def full_name; end # The actual code location of this definition - # : Location # - # source://spoom//lib/spoom/model/model.rb#81 + # source://spoom//lib/spoom/model/model.rb#78 sig { returns(::Spoom::Location) } def location; end # The short name of the symbol this definition belongs to - # : -> String # - # source://spoom//lib/spoom/model/model.rb#106 + # source://spoom//lib/spoom/model/model.rb#103 sig { returns(::String) } def name; end # The enclosing namespace this definition belongs to - # : Namespace? # - # source://spoom//lib/spoom/model/model.rb#77 + # source://spoom//lib/spoom/model/model.rb#74 sig { returns(T.nilable(::Spoom::Model::Namespace)) } def owner; end # The symbol this definition belongs to - # : Symbol # - # source://spoom//lib/spoom/model/model.rb#73 + # source://spoom//lib/spoom/model/model.rb#70 sig { returns(::Spoom::Model::Symbol) } def symbol; end end # source://spoom//lib/spoom/model/model.rb#54 class Spoom::Model::UnresolvedSymbol < ::Spoom::Model::Symbol - # : -> String - # # source://spoom//lib/spoom/model/model.rb#57 sig { override.returns(::String) } def to_s; end end -# source://spoom//lib/spoom/model/model.rb#187 +# source://spoom//lib/spoom/model/model.rb#182 class Spoom::Model::Visibility < ::T::Enum enums do Private = new @@ -4910,28 +3974,25 @@ class Spoom::ParseError < ::Spoom::Error; end # The partial order relation is a binary relation that is reflexive, antisymmetric, and transitive. # It can be used to represent a hierarchy of classes or modules, the dependencies between gems, etc. # -# source://spoom//lib/spoom/poset.rb#9 +# source://spoom//lib/spoom/poset.rb#10 class Spoom::Poset extend T::Generic E = type_member { { upper: Object } } - # : -> void - # # @return [Poset] a new instance of Poset # - # source://spoom//lib/spoom/poset.rb#17 + # source://spoom//lib/spoom/poset.rb#14 sig { void } def initialize; end # Get the POSet element for a given value # # Raises if the element is not found - # : (E value) -> Element[E] # # @raise [Error] # - # source://spoom//lib/spoom/poset.rb#25 + # source://spoom//lib/spoom/poset.rb#22 sig { params(value: E).returns(Spoom::Poset::Element[E]) } def [](value); end @@ -4940,154 +4001,132 @@ class Spoom::Poset # Transitive edges (transitive closure) are automatically computed. # Adds the elements if they don't exist. # If the direct edge already exists, nothing is done. - # : (E from, E to) -> void # - # source://spoom//lib/spoom/poset.rb#53 + # source://spoom//lib/spoom/poset.rb#50 sig { params(from: E, to: E).void } def add_direct_edge(from, to); end # Add an element to the POSet - # : (E value) -> Element[E] # - # source://spoom//lib/spoom/poset.rb#34 + # source://spoom//lib/spoom/poset.rb#31 sig { params(value: E).returns(Spoom::Poset::Element[E]) } def add_element(value); end # Is there a direct edge from `from` to `to`? - # : (E from, E to) -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/poset.rb#100 + # source://spoom//lib/spoom/poset.rb#97 sig { params(from: E, to: E).returns(T::Boolean) } def direct_edge?(from, to); end # Is there an edge (direct or indirect) from `from` to `to`? - # : (E from, E to) -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/poset.rb#91 + # source://spoom//lib/spoom/poset.rb#88 sig { params(from: E, to: E).returns(T::Boolean) } def edge?(from, to); end # Is the given value a element in the POSet? - # : (E value) -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/poset.rb#43 + # source://spoom//lib/spoom/poset.rb#40 sig { params(value: E).returns(T::Boolean) } def element?(value); end # Show the POSet as a DOT graph using xdot (used for debugging) - # : (?direct: bool, ?transitive: bool) -> void # - # source://spoom//lib/spoom/poset.rb#106 + # source://spoom//lib/spoom/poset.rb#103 sig { params(direct: T::Boolean, transitive: T::Boolean).void } def show_dot(direct: T.unsafe(nil), transitive: T.unsafe(nil)); end # Return the POSet as a DOT graph - # : (?direct: bool, ?transitive: bool) -> String # - # source://spoom//lib/spoom/poset.rb#115 + # source://spoom//lib/spoom/poset.rb#112 sig { params(direct: T::Boolean, transitive: T::Boolean).returns(::String) } def to_dot(direct: T.unsafe(nil), transitive: T.unsafe(nil)); end end # An element in a POSet # -# source://spoom//lib/spoom/poset.rb#135 +# source://spoom//lib/spoom/poset.rb#133 class Spoom::Poset::Element - extend T::Generic include ::Comparable + extend T::Generic E = type_member { { upper: Object } } - # : (E value) -> void - # # @return [Element] a new instance of Element # - # source://spoom//lib/spoom/poset.rb#150 + # source://spoom//lib/spoom/poset.rb#145 sig { params(value: E).void } def initialize(value); end - # : (untyped other) -> Integer? - # - # source://spoom//lib/spoom/poset.rb#159 + # source://spoom//lib/spoom/poset.rb#154 sig { params(other: T.untyped).returns(T.nilable(::Integer)) } def <=>(other); end # Direct and indirect ancestors of this element - # : -> Array[E] # - # source://spoom//lib/spoom/poset.rb#178 + # source://spoom//lib/spoom/poset.rb#173 sig { returns(T::Array[E]) } def ancestors; end # Direct children of this element - # : -> Array[E] # - # source://spoom//lib/spoom/poset.rb#184 + # source://spoom//lib/spoom/poset.rb#179 sig { returns(T::Array[E]) } def children; end # Direct and indirect descendants of this element - # : -> Array[E] # - # source://spoom//lib/spoom/poset.rb#190 + # source://spoom//lib/spoom/poset.rb#185 sig { returns(T::Array[E]) } def descendants; end # Edges (direct and indirect) from this element to other elements in the same POSet - # : Set[Element[E]] # - # source://spoom//lib/spoom/poset.rb#147 + # source://spoom//lib/spoom/poset.rb#142 def dfroms; end # Edges (direct and indirect) from this element to other elements in the same POSet - # : Set[Element[E]] # - # source://spoom//lib/spoom/poset.rb#147 + # source://spoom//lib/spoom/poset.rb#142 sig { returns(T::Set[Spoom::Poset::Element[E]]) } def dtos; end # Edges (direct and indirect) from this element to other elements in the same POSet - # : Set[Element[E]] # - # source://spoom//lib/spoom/poset.rb#147 + # source://spoom//lib/spoom/poset.rb#142 def froms; end # Direct parents of this element - # : -> Array[E] # - # source://spoom//lib/spoom/poset.rb#172 + # source://spoom//lib/spoom/poset.rb#167 sig { returns(T::Array[E]) } def parents; end # Edges (direct and indirect) from this element to other elements in the same POSet - # : Set[Element[E]] # - # source://spoom//lib/spoom/poset.rb#147 + # source://spoom//lib/spoom/poset.rb#142 def tos; end # The value held by this element - # : E # - # source://spoom//lib/spoom/poset.rb#143 + # source://spoom//lib/spoom/poset.rb#138 sig { returns(E) } def value; end end -# source://spoom//lib/spoom/poset.rb#12 +# source://spoom//lib/spoom/poset.rb#11 class Spoom::Poset::Error < ::Spoom::Error; end # source://spoom//lib/spoom/printer.rb#7 class Spoom::Printer include ::Spoom::Colorize - # : (?out: (IO | StringIO), ?colors: bool, ?indent_level: Integer) -> void - # # @return [Printer] a new instance of Printer # # source://spoom//lib/spoom/printer.rb#14 @@ -5095,39 +4134,31 @@ class Spoom::Printer def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end # Colorize `string` with color if `@colors` - # : (String string, *Spoom::Color color) -> String # # source://spoom//lib/spoom/printer.rb#75 sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } def colorize(string, *color); end # Decrease indent level - # : -> void # # source://spoom//lib/spoom/printer.rb#28 sig { void } def dedent; end # Increase indent level - # : -> void # # source://spoom//lib/spoom/printer.rb#22 sig { void } def indent; end - # : (IO | StringIO) - # # source://spoom//lib/spoom/printer.rb#11 sig { returns(T.any(::IO, ::StringIO)) } def out; end - # : (IO | StringIO) - # # source://spoom//lib/spoom/printer.rb#11 def out=(_arg0); end # Print `string` into `out` - # : (String? string) -> void # # source://spoom//lib/spoom/printer.rb#34 sig { params(string: T.nilable(::String)).void } @@ -5136,327 +4167,100 @@ class Spoom::Printer # Print `string` colored with `color` into `out` # # Does not use colors unless `@colors`. - # : (String? string, *Color color) -> void # # source://spoom//lib/spoom/printer.rb#44 sig { params(string: T.nilable(::String), color: ::Spoom::Color).void } def print_colored(string, *color); end # Print `string` with indent and newline - # : (String? string) -> void # # source://spoom//lib/spoom/printer.rb#59 sig { params(string: T.nilable(::String)).void } def printl(string); end # Print a new line into `out` - # : -> void # # source://spoom//lib/spoom/printer.rb#53 sig { void } def printn; end # Print an indent space into `out` - # : -> void # # source://spoom//lib/spoom/printer.rb#69 sig { void } def printt; end end -# : String -# -# source://spoom//lib/spoom.rb#8 -Spoom::SPOOM_PATH = T.let(T.unsafe(nil), String) +# source://spoom//lib/spoom/rbs.rb#5 +module Spoom::RBS; end -# source://spoom//lib/spoom/sorbet/assertions.rb#7 -module Spoom::Sorbet; end +# source://spoom//lib/spoom/rbs.rb#65 +class Spoom::RBS::Annotation < ::Spoom::RBS::Comment; end -# source://spoom//lib/spoom/sorbet/assertions.rb#8 -class Spoom::Sorbet::Assertions - class << self - # : (String, file: String) -> String - # - # source://spoom//lib/spoom/sorbet/assertions.rb#11 - sig { params(ruby_contents: ::String, file: ::String).returns(::String) } - def rbi_to_rbs(ruby_contents, file:); end - - private - - # : (String, file: String) -> Array[AssignNode] - # - # source://spoom//lib/spoom/sorbet/assertions.rb#46 - sig { params(ruby_contents: ::String, file: ::String).returns(T::Array[::Spoom::Sorbet::Assertions::AssignNode]) } - def collect_assigns(ruby_contents, file:); end - - # : (AssignNode) -> String - # - # source://spoom//lib/spoom/sorbet/assertions.rb#54 - sig { params(assign: ::Spoom::Sorbet::Assertions::AssignNode).returns(::String) } - def dedent_value(assign); end - end -end - -# source://spoom//lib/spoom/sorbet/assertions.rb#122 -class Spoom::Sorbet::Assertions::AssignNode - # : (AssignType, Prism::Location, Prism::Node, Prism::Node) -> void - # - # @return [AssignNode] a new instance of AssignNode - # - # source://spoom//lib/spoom/sorbet/assertions.rb#133 - sig do - params( - node: T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode), - operator_loc: ::Prism::Location, - value: ::Prism::Node, - type: ::Prism::Node - ).void - end - def initialize(node, operator_loc, value, type); end - - # : AssignType +# source://spoom//lib/spoom/rbs.rb#51 +class Spoom::RBS::Comment + # @return [Comment] a new instance of Comment # - # source://spoom//lib/spoom/sorbet/assertions.rb#124 - sig do - returns(T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode)) - end - def node; end + # source://spoom//lib/spoom/rbs.rb#59 + sig { params(string: ::String, location: ::Prism::Location).void } + def initialize(string, location); end - # : Prism::Location - # - # source://spoom//lib/spoom/sorbet/assertions.rb#127 + # source://spoom//lib/spoom/rbs.rb#56 sig { returns(::Prism::Location) } - def operator_loc; end + def location; end - # : -> String - # - # source://spoom//lib/spoom/sorbet/assertions.rb#141 + # source://spoom//lib/spoom/rbs.rb#53 sig { returns(::String) } - def rbs_type; end - - # : Prism::Node - # - # source://spoom//lib/spoom/sorbet/assertions.rb#130 - def type; end - - # : Prism::Node - # - # source://spoom//lib/spoom/sorbet/assertions.rb#130 - sig { returns(::Prism::Node) } - def value; end + def string; end end -# source://spoom//lib/spoom/sorbet/assertions.rb#93 -Spoom::Sorbet::Assertions::AssignType = T.type_alias { T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode) } - -# source://spoom//lib/spoom/sorbet/assertions.rb#146 -class Spoom::Sorbet::Assertions::Locator < ::Spoom::Visitor - # : -> void - # - # @return [Locator] a new instance of Locator +# source://spoom//lib/spoom/rbs.rb#6 +class Spoom::RBS::Comments + # @return [Comments] a new instance of Comments # - # source://spoom//lib/spoom/sorbet/assertions.rb#153 + # source://spoom//lib/spoom/rbs.rb#14 sig { void } def initialize; end - # : Array[AssignNode] - # - # source://spoom//lib/spoom/sorbet/assertions.rb#150 - sig { returns(T::Array[::Spoom::Sorbet::Assertions::AssignNode]) } - def assigns; end - - # : (Prism::Node) -> bool - # - # @return [Boolean] - # - # source://spoom//lib/spoom/sorbet/assertions.rb#245 - sig { params(node: ::Prism::Node).returns(T::Boolean) } - def contains_heredoc?(node); end + # source://spoom//lib/spoom/rbs.rb#8 + sig { returns(T::Array[::Spoom::RBS::Annotation]) } + def annotations; end - # Is this node a `T` or `::T` constant? - # : (Prism::Node?) -> bool - # - # @return [Boolean] - # - # source://spoom//lib/spoom/sorbet/assertions.rb#223 - sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } - def t?(node); end + # source://spoom//lib/spoom/rbs.rb#25 + sig { returns(T::Array[::Spoom::RBS::Annotation]) } + def class_annotations; end - # Is this node a `T.let` or `T.cast`? - # : (Prism::CallNode) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/sorbet/assertions.rb#236 - sig { params(node: ::Prism::CallNode).returns(T::Boolean) } - def t_annotation?(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - sig do - params( - node: T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode) - ).void - end - def visit_assign(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_class_variable_and_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_class_variable_operator_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_class_variable_or_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_class_variable_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_and_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_operator_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_or_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_path_and_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_path_operator_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_path_or_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_path_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_global_variable_and_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_global_variable_operator_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_global_variable_or_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_global_variable_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_instance_variable_and_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_instance_variable_operator_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_instance_variable_or_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_instance_variable_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_local_variable_and_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_local_variable_operator_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_local_variable_or_write_node(node); end + # source://spoom//lib/spoom/rbs.rb#20 + sig { returns(T::Boolean) } + def empty?; end - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_local_variable_write_node(node); end + # source://spoom//lib/spoom/rbs.rb#39 + sig { returns(T::Array[::Spoom::RBS::Annotation]) } + def method_annotations; end - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_multi_write_node(node); end + # source://spoom//lib/spoom/rbs.rb#11 + sig { returns(T::Array[::Spoom::RBS::Signature]) } + def signatures; end end -# : Array[Symbol] -# -# source://spoom//lib/spoom/sorbet/assertions.rb#147 -Spoom::Sorbet::Assertions::Locator::ANNOTATION_METHODS = T.let(T.unsafe(nil), Array) +# source://spoom//lib/spoom/rbs.rb#68 +module Spoom::RBS::ExtractRBSComments + # source://spoom//lib/spoom/rbs.rb#70 + sig { params(node: ::Prism::Node).returns(::Spoom::RBS::Comments) } + def node_rbs_comments(node); end +end -# source://spoom//lib/spoom/sorbet/assertions.rb#251 -class Spoom::Sorbet::Assertions::Locator::HeredocVisitor < ::Spoom::Visitor - # : -> void - # - # @return [HeredocVisitor] a new instance of HeredocVisitor - # - # source://spoom//lib/spoom/sorbet/assertions.rb#256 - sig { void } - def initialize; end +# source://spoom//lib/spoom/rbs.rb#66 +class Spoom::RBS::Signature < ::Spoom::RBS::Comment; end - # : bool - # - # source://spoom//lib/spoom/sorbet/assertions.rb#253 - sig { returns(T::Boolean) } - def contains_heredoc; end +# source://spoom//lib/spoom.rb#8 +Spoom::SPOOM_PATH = T.let(T.unsafe(nil), String) - # : (Prism::Node?) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#264 - sig { override.params(node: T.nilable(::Prism::Node)).void } - def visit(node); end -end +# source://spoom//lib/spoom/sorbet/config.rb#5 +module Spoom::Sorbet; end -# : String -# # source://spoom//lib/spoom/sorbet.rb#33 Spoom::Sorbet::BIN_PATH = T.let(T.unsafe(nil), String) @@ -5486,48 +4290,32 @@ Spoom::Sorbet::CONFIG_PATH = T.let(T.unsafe(nil), String) # # source://spoom//lib/spoom/sorbet/config.rb#26 class Spoom::Sorbet::Config - # : -> void - # # @return [Config] a new instance of Config # # source://spoom//lib/spoom/sorbet/config.rb#36 sig { void } def initialize; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/config.rb#30 def allowed_extensions; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/config.rb#30 def allowed_extensions=(_arg0); end - # : -> Config - # # source://spoom//lib/spoom/sorbet/config.rb#44 sig { returns(::Spoom::Sorbet::Config) } def copy; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/config.rb#30 def ignore; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/config.rb#30 def ignore=(_arg0); end - # : bool - # # source://spoom//lib/spoom/sorbet/config.rb#33 sig { returns(T::Boolean) } def no_stdlib; end - # : bool - # # source://spoom//lib/spoom/sorbet/config.rb#33 def no_stdlib=(_arg0); end @@ -5543,63 +4331,46 @@ class Spoom::Sorbet::Config # # puts config.options_string # "/foo /bar --ignore /baz --allowed-extension .rb" # ~~~ - # : -> String # # source://spoom//lib/spoom/sorbet/config.rb#66 sig { returns(::String) } def options_string; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/config.rb#30 sig { returns(T::Array[::String]) } def paths; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/config.rb#30 def paths=(_arg0); end class << self - # : (String sorbet_config_path) -> Spoom::Sorbet::Config - # # source://spoom//lib/spoom/sorbet/config.rb#77 sig { params(sorbet_config_path: ::String).returns(::Spoom::Sorbet::Config) } def parse_file(sorbet_config_path); end - # : (String sorbet_config) -> Spoom::Sorbet::Config - # # source://spoom//lib/spoom/sorbet/config.rb#82 sig { params(sorbet_config: ::String).returns(::Spoom::Sorbet::Config) } def parse_string(sorbet_config); end private - # : (String line) -> String - # # source://spoom//lib/spoom/sorbet/config.rb#143 sig { params(line: ::String).returns(::String) } def parse_option(line); end end end -# : Array[String] -# # source://spoom//lib/spoom/sorbet/config.rb#27 Spoom::Sorbet::Config::DEFAULT_ALLOWED_EXTENSIONS = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/sorbet.rb#15 class Spoom::Sorbet::Error < ::Spoom::Error - # : (String message, ExecResult result) -> void - # # @return [Error] a new instance of Error # # source://spoom//lib/spoom/sorbet.rb#23 sig { params(message: ::String, result: ::Spoom::ExecResult).void } def initialize(message, result); end - # : ExecResult - # # source://spoom//lib/spoom/sorbet.rb#20 sig { returns(::Spoom::ExecResult) } def result; end @@ -5614,14 +4385,10 @@ class Spoom::Sorbet::Error::Segfault < ::Spoom::Sorbet::Error; end # source://spoom//lib/spoom/sorbet/errors.rb#8 module Spoom::Sorbet::Errors class << self - # : (Array[Error] errors) -> Array[Error] - # # source://spoom//lib/spoom/sorbet/errors.rb#13 sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error]).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } def sort_errors_by_code(errors); end - # : (Array[Error]) -> REXML::Document - # # source://spoom//lib/spoom/sorbet/errors.rb#18 sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error]).returns(::REXML::Document) } def to_junit_xml(errors); end @@ -5635,8 +4402,6 @@ Spoom::Sorbet::Errors::DEFAULT_ERROR_URL_BASE = T.let(T.unsafe(nil), String) class Spoom::Sorbet::Errors::Error include ::Comparable - # : (String? file, Integer? line, String? message, Integer? code, ?Array[String] more) -> void - # # @return [Error] a new instance of Error # # source://spoom//lib/spoom/sorbet/errors.rb#166 @@ -5652,55 +4417,39 @@ class Spoom::Sorbet::Errors::Error def initialize(file, line, message, code, more = T.unsafe(nil)); end # By default errors are sorted by location - # : (untyped other) -> Integer # # source://spoom//lib/spoom/sorbet/errors.rb#177 sig { params(other: T.untyped).returns(::Integer) } def <=>(other); end - # : Integer? - # # source://spoom//lib/spoom/sorbet/errors.rb#156 def code; end - # : String? - # # source://spoom//lib/spoom/sorbet/errors.rb#153 sig { returns(T.nilable(::String)) } def file; end # Other files associated with the error - # : Set[String] # # source://spoom//lib/spoom/sorbet/errors.rb#163 sig { returns(T::Set[::String]) } def files_from_error_sections; end - # : Integer? - # # source://spoom//lib/spoom/sorbet/errors.rb#156 sig { returns(T.nilable(::Integer)) } def line; end - # : String? - # # source://spoom//lib/spoom/sorbet/errors.rb#153 def message; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/errors.rb#159 sig { returns(T::Array[::String]) } def more; end - # : -> REXML::Element - # # source://spoom//lib/spoom/sorbet/errors.rb#189 sig { returns(::REXML::Element) } def to_junit_xml_element; end - # : -> String - # # source://spoom//lib/spoom/sorbet/errors.rb#184 sig { returns(::String) } def to_s; end @@ -5710,52 +4459,38 @@ end # # source://spoom//lib/spoom/sorbet/errors.rb#47 class Spoom::Sorbet::Errors::Parser - # : (?error_url_base: String) -> void - # # @return [Parser] a new instance of Parser # # source://spoom//lib/spoom/sorbet/errors.rb#67 sig { params(error_url_base: ::String).void } def initialize(error_url_base: T.unsafe(nil)); end - # : (String output) -> Array[Error] - # # source://spoom//lib/spoom/sorbet/errors.rb#74 sig { params(output: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } def parse(output); end private - # : (String line) -> void - # # @raise [ParseError] # # source://spoom//lib/spoom/sorbet/errors.rb#138 sig { params(line: ::String).void } def append_error(line); end - # : -> void - # # @raise [ParseError] # # source://spoom//lib/spoom/sorbet/errors.rb#130 sig { void } def close_error; end - # : (String error_url_base) -> Regexp - # # source://spoom//lib/spoom/sorbet/errors.rb#97 sig { params(error_url_base: ::String).returns(::Regexp) } def error_line_match_regexp(error_url_base); end - # : (String line) -> Error? - # # source://spoom//lib/spoom/sorbet/errors.rb#114 sig { params(line: ::String).returns(T.nilable(::Spoom::Sorbet::Errors::Error)) } def match_error_line(line); end - # : (Error error) -> void - # # @raise [ParseError] # # source://spoom//lib/spoom/sorbet/errors.rb#123 @@ -5763,8 +4498,6 @@ class Spoom::Sorbet::Errors::Parser def open_error(error); end class << self - # : (String output, ?error_url_base: String) -> Array[Error] - # # source://spoom//lib/spoom/sorbet/errors.rb#60 sig { params(output: ::String, error_url_base: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } def parse_string(output, error_url_base: T.unsafe(nil)); end @@ -5777,44 +4510,119 @@ Spoom::Sorbet::Errors::Parser::HEADER = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/sorbet/errors.rb#48 class Spoom::Sorbet::Errors::Parser::ParseError < ::Spoom::Error; end -# : String -# # source://spoom//lib/spoom/sorbet.rb#31 Spoom::Sorbet::GEM_PATH = T.let(T.unsafe(nil), String) -# : String -# # source://spoom//lib/spoom/sorbet.rb#32 Spoom::Sorbet::GEM_VERSION = T.let(T.unsafe(nil), String) # source://spoom//lib/spoom/sorbet.rb#35 Spoom::Sorbet::KILLED_CODE = T.let(T.unsafe(nil), Integer) -# source://spoom//lib/spoom/sorbet/metrics.rb#8 -module Spoom::Sorbet::MetricsParser +# source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#6 +module Spoom::Sorbet::Metrics class << self - # : (String path, ?String prefix) -> Hash[String, Integer] - # - # source://spoom//lib/spoom/sorbet/metrics.rb#13 + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#9 + sig { params(files: T::Array[::String]).returns(Spoom::Counters) } + def collect_code_metrics(files); end + end +end + +# Collects metrics about how Sorbet is used in the codebase. +# +# This approach is different from the metrics file we get directly from Sorbet. +# +# This visitor actually visits the codebase and collects metrics about the amount of signatures, `T.` calls, +# and other metrics. It also knows about RBS comments. +# +# On the other hand, the metrics file is a snapshot of the metrics at type checking time and knows about +# is calls are typed, how many assertions are done, etc. +# +# source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#34 +class Spoom::Sorbet::Metrics::CodeMetricsVisitor < ::Spoom::Visitor + include ::Spoom::RBS::ExtractRBSComments + + # @return [CodeMetricsVisitor] a new instance of CodeMetricsVisitor + # + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#38 + sig { params(counters: Spoom::Counters).void } + def initialize(counters); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#49 + sig { override.params(node: T.nilable(::Prism::Node)).void } + def visit(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#124 + sig { override.params(node: ::Prism::CallNode).void } + def visit_call_node(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#75 + sig { override.params(node: ::Prism::ClassNode).void } + def visit_class_node(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#99 + sig { override.params(node: ::Prism::DefNode).void } + def visit_def_node(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#83 + sig { override.params(node: ::Prism::ModuleNode).void } + def visit_module_node(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#91 + sig { override.params(node: ::Prism::SingletonClassNode).void } + def visit_singleton_class_node(node); end + + private + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#213 + sig { returns(T::Array[::Prism::CallNode]) } + def collect_last_srb_sigs; end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#220 + sig { params(node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode)).returns(::String) } + def node_key(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#167 + sig { params(node: ::Prism::CallNode).void } + def visit_attr_accessor(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#151 + sig do + params( + node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode), + block: T.proc.void + ).void + end + def visit_scope(node, &block); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#187 + sig { params(node: ::Prism::CallNode).void } + def visit_sig(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#197 + sig { params(node: ::Prism::CallNode).void } + def visit_type_member(node); end +end + +# source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#9 +module Spoom::Sorbet::Metrics::MetricsFileParser + class << self + # source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#14 sig { params(path: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } def parse_file(path, prefix = T.unsafe(nil)); end - # : (Hash[String, untyped] obj, ?String prefix) -> Hash[String, Integer] - # - # source://spoom//lib/spoom/sorbet/metrics.rb#23 - sig { params(obj: T::Hash[::String, T.untyped], prefix: ::String).returns(T::Hash[::String, ::Integer]) } + # source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#24 + sig { params(obj: T::Hash[::String, T.untyped], prefix: ::String).returns(Spoom::Counters) } def parse_hash(obj, prefix = T.unsafe(nil)); end - # : (String string, ?String prefix) -> Hash[String, Integer] - # - # source://spoom//lib/spoom/sorbet/metrics.rb#18 + # source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#19 sig { params(string: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } def parse_string(string, prefix = T.unsafe(nil)); end end end -# source://spoom//lib/spoom/sorbet/metrics.rb#9 -Spoom::Sorbet::MetricsParser::DEFAULT_PREFIX = T.let(T.unsafe(nil), String) +# source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#10 +Spoom::Sorbet::Metrics::MetricsFileParser::DEFAULT_PREFIX = T.let(T.unsafe(nil), String) # source://spoom//lib/spoom/sorbet.rb#36 Spoom::Sorbet::SEGFAULT_CODE = T.let(T.unsafe(nil), Integer) @@ -5823,14 +4631,12 @@ Spoom::Sorbet::SEGFAULT_CODE = T.let(T.unsafe(nil), Integer) module Spoom::Sorbet::Sigils class << self # changes the sigil in the file at the passed path to the specified new strictness - # : ((String | Pathname) path, String new_strictness) -> bool # # source://spoom//lib/spoom/sorbet/sigils.rb#65 sig { params(path: T.any(::Pathname, ::String), new_strictness: ::String).returns(T::Boolean) } def change_sigil_in_file(path, new_strictness); end # changes the sigil to have a new strictness in a list of files - # : (Array[String] path_list, String new_strictness) -> Array[String] # # source://spoom//lib/spoom/sorbet/sigils.rb#76 sig { params(path_list: T::Array[::String], new_strictness: ::String).returns(T::Array[::String]) } @@ -5838,35 +4644,30 @@ module Spoom::Sorbet::Sigils # returns a string containing the strictness of a sigil in a file at the passed path # * returns nil if no sigil - # : ((String | Pathname) path) -> String? # # source://spoom//lib/spoom/sorbet/sigils.rb#56 sig { params(path: T.any(::Pathname, ::String)).returns(T.nilable(::String)) } def file_strictness(path); end # returns the full sigil comment string for the passed strictness - # : (String strictness) -> String # # source://spoom//lib/spoom/sorbet/sigils.rb#31 sig { params(strictness: ::String).returns(::String) } def sigil_string(strictness); end # returns the strictness of a sigil in the passed file content string (nil if no sigil) - # : (String content) -> String? # # source://spoom//lib/spoom/sorbet/sigils.rb#43 sig { params(content: ::String).returns(T.nilable(::String)) } def strictness_in_content(content); end # returns a string which is the passed content but with the sigil updated to a new strictness - # : (String content, String new_strictness) -> String # # source://spoom//lib/spoom/sorbet/sigils.rb#49 sig { params(content: ::String, new_strictness: ::String).returns(::String) } def update_sigil(content, new_strictness); end # returns true if the passed string is a valid strictness (else false) - # : (String strictness) -> bool # # @return [Boolean] # @@ -5876,186 +4677,533 @@ module Spoom::Sorbet::Sigils end end -# : Array[String] +# source://spoom//lib/spoom/sorbet/sigils.rb#26 +Spoom::Sorbet::Sigils::SIGIL_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://spoom//lib/spoom/sorbet/sigils.rb#11 +Spoom::Sorbet::Sigils::STRICTNESS_FALSE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#10 +Spoom::Sorbet::Sigils::STRICTNESS_IGNORE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#15 +Spoom::Sorbet::Sigils::STRICTNESS_INTERNAL = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#13 +Spoom::Sorbet::Sigils::STRICTNESS_STRICT = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#14 +Spoom::Sorbet::Sigils::STRICTNESS_STRONG = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#12 +Spoom::Sorbet::Sigils::STRICTNESS_TRUE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#17 +Spoom::Sorbet::Sigils::VALID_STRICTNESS = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/sorbet/translate/translator.rb#6 +module Spoom::Sorbet::Translate + class << self + # Converts all the RBS comments in the given Ruby code to `sig` nodes. + # It also handles type members and class annotations. + # + # source://spoom//lib/spoom/sorbet/translate.rb#57 + sig { params(ruby_contents: ::String, file: ::String, max_line_length: T.nilable(::Integer)).returns(::String) } + def rbs_comments_to_sorbet_sigs(ruby_contents, file:, max_line_length: T.unsafe(nil)); end + + # Converts all `T.let` and `T.cast` nodes to RBS comments in the given Ruby code. + # It also handles type members and class annotations. + # + # source://spoom//lib/spoom/sorbet/translate.rb#72 + sig do + params( + ruby_contents: ::String, + file: ::String, + translate_t_let: T::Boolean, + translate_t_cast: T::Boolean, + translate_t_bind: T::Boolean, + translate_t_must: T::Boolean, + translate_t_unsafe: T::Boolean + ).returns(::String) + end + def sorbet_assertions_to_rbs_comments(ruby_contents, file:, translate_t_let: T.unsafe(nil), translate_t_cast: T.unsafe(nil), translate_t_bind: T.unsafe(nil), translate_t_must: T.unsafe(nil), translate_t_unsafe: T.unsafe(nil)); end + + # Converts all `sig` nodes to RBS comments in the given Ruby code. + # It also handles type members and class annotations. + # + # source://spoom//lib/spoom/sorbet/translate.rb#37 + sig do + params( + ruby_contents: ::String, + file: ::String, + positional_names: T::Boolean, + max_line_length: T.nilable(::Integer), + translate_generics: T::Boolean, + translate_helpers: T::Boolean, + translate_abstract_methods: T::Boolean + ).returns(::String) + end + def sorbet_sigs_to_rbs_comments(ruby_contents, file:, positional_names: T.unsafe(nil), max_line_length: T.unsafe(nil), translate_generics: T.unsafe(nil), translate_helpers: T.unsafe(nil), translate_abstract_methods: T.unsafe(nil)); end + + # Deletes all `sig` nodes from the given Ruby code. + # It doesn't handle type members and class annotations. + # + # source://spoom//lib/spoom/sorbet/translate.rb#22 + sig { params(ruby_contents: ::String, file: ::String).returns(::String) } + def strip_sorbet_sigs(ruby_contents, file:); end + end +end + +# source://spoom//lib/spoom/sorbet/translate.rb#16 +class Spoom::Sorbet::Translate::Error < ::Spoom::Error; end + +# source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#7 +class Spoom::Sorbet::Translate::RBSCommentsToSorbetSigs < ::Spoom::Sorbet::Translate::Translator + include ::Spoom::RBS::ExtractRBSComments + + # @return [RBSCommentsToSorbetSigs] a new instance of RBSCommentsToSorbetSigs + # + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#11 + sig { params(ruby_contents: ::String, file: ::String, max_line_length: T.nilable(::Integer)).void } + def initialize(ruby_contents, file:, max_line_length: T.unsafe(nil)); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#49 + sig { override.params(node: ::Prism::CallNode).void } + def visit_call_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#19 + sig { override.params(node: ::Prism::ClassNode).void } + def visit_class_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#43 + sig { override.params(node: ::Prism::DefNode).void } + def visit_def_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#27 + sig { override.params(node: ::Prism::ModuleNode).void } + def visit_module_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#35 + sig { override.params(node: ::Prism::SingletonClassNode).void } + def visit_singleton_class_node(node); end + + private + + # @return [Boolean] + # + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#260 + sig do + params( + node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode), + constant_regex: ::Regexp + ).returns(T::Boolean) + end + def already_extends?(node, constant_regex); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#141 + sig { params(node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode)).void } + def apply_class_annotations(node); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#239 + sig { params(annotations: T::Array[::Spoom::RBS::Annotation], sig: ::RBI::Sig).void } + def apply_member_annotations(annotations, sig); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#105 + sig { params(def_node: ::Prism::DefNode, comments: ::Spoom::RBS::Comments).void } + def rewrite_def(def_node, comments); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#67 + sig { params(node: ::Prism::CallNode).void } + def visit_attr(node); end +end + +# Translates Sorbet assertions to RBS comments. +# +# source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#8 +class Spoom::Sorbet::Translate::SorbetAssertionsToRBSComments < ::Spoom::Sorbet::Translate::Translator + # @return [SorbetAssertionsToRBSComments] a new instance of SorbetAssertionsToRBSComments + # + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#20 + sig do + params( + ruby_contents: ::String, + file: ::String, + translate_t_let: T::Boolean, + translate_t_cast: T::Boolean, + translate_t_bind: T::Boolean, + translate_t_must: T::Boolean, + translate_t_unsafe: T::Boolean + ).void + end + def initialize(ruby_contents, file:, translate_t_let: T.unsafe(nil), translate_t_cast: T.unsafe(nil), translate_t_bind: T.unsafe(nil), translate_t_must: T.unsafe(nil), translate_t_unsafe: T.unsafe(nil)); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#49 + sig { override.params(node: ::Prism::IfNode).void } + def visit_if_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#40 + sig { override.params(node: ::Prism::StatementsNode).void } + def visit_statements_node(node); end + + private + + # @return [Boolean] + # + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#166 + sig { params(node: ::Prism::Node).returns(T::Boolean) } + def at_end_of_line?(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#108 + sig { params(call: ::Prism::CallNode).returns(::String) } + def build_rbs_annotation(call); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#173 + sig { params(assign: ::Prism::Node, value: ::Prism::Node).returns(::String) } + def dedent_value(assign, value); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#71 + sig { params(node: ::Prism::Node).returns(T::Boolean) } + def maybe_translate_assertion(node); end + + # Is this node a `T` or `::T` constant? + # + # @return [Boolean] + # + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#133 + sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } + def t?(node); end + + # Is this node a `T.let` or `T.cast`? + # + # @return [Boolean] + # + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#146 + sig { params(node: ::Prism::CallNode).returns(T::Boolean) } + def translatable_annotation?(node); end +end + +# source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#9 +Spoom::Sorbet::Translate::SorbetAssertionsToRBSComments::LINE_BREAK = T.let(T.unsafe(nil), Integer) + +# Converts all `sig` nodes to RBS comments in the given Ruby code. +# It also handles type members and class annotations. +# +# source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#9 +class Spoom::Sorbet::Translate::SorbetSigsToRBSComments < ::Spoom::Sorbet::Translate::Translator + # @return [SorbetSigsToRBSComments] a new instance of SorbetSigsToRBSComments + # + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#19 + sig do + params( + ruby_contents: ::String, + file: ::String, + positional_names: T::Boolean, + max_line_length: T.nilable(::Integer), + translate_generics: T::Boolean, + translate_helpers: T::Boolean, + translate_abstract_methods: T::Boolean + ).void + end + def initialize(ruby_contents, file:, positional_names:, max_line_length: T.unsafe(nil), translate_generics: T.unsafe(nil), translate_helpers: T.unsafe(nil), translate_abstract_methods: T.unsafe(nil)); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#100 + sig { override.params(node: ::Prism::CallNode).void } + def visit_call_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#46 + sig { override.params(node: ::Prism::ClassNode).void } + def visit_class_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#119 + sig { override.params(node: ::Prism::ConstantWriteNode).void } + def visit_constant_write_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#64 + sig { override.params(node: ::Prism::DefNode).void } + def visit_def_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#52 + sig { override.params(node: ::Prism::ModuleNode).void } + def visit_module_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#58 + sig { override.params(node: ::Prism::SingletonClassNode).void } + def visit_singleton_class_node(node); end + + private + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#233 + sig do + params( + parent: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode), + node: ::Prism::CallNode + ).void + end + def apply_class_annotation(parent, node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#274 + sig { params(sigs: T::Array[[::Prism::CallNode, ::RBI::Sig]]).void } + def apply_member_annotations(sigs); end + + # @raise [Error] + # + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#308 + sig { params(node: ::Prism::ConstantWriteNode).returns(::String) } + def build_type_member_string(node); end + + # Collects the last signatures visited and clears the current list + # + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#379 + sig { returns(T::Array[[::Prism::CallNode, ::RBI::Sig]]) } + def collect_last_sigs; end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#366 + sig { void } + def delete_extend_t_generics; end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#354 + sig { void } + def delete_extend_t_helpers; end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#386 + sig { params(indent: ::Integer, block: T.proc.params(arg0: ::RBI::RBSPrinter).void).returns(::String) } + def rbs_print(indent, &block); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#191 + sig { params(node: ::Prism::CallNode).void } + def visit_attr(node); end + + # @raise [Error] + # + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#215 + sig { params(node: ::Prism::CallNode).void } + def visit_extend(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#138 + sig do + params( + node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode), + block: T.proc.void + ).void + end + def visit_scope(node, &block); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#179 + sig { params(node: ::Prism::CallNode).void } + def visit_sig(node); end +end + +# Deletes all `sig` nodes from the given Ruby code. +# It doesn't handle type members and class annotations. # -# source://spoom//lib/spoom/sorbet/sigils.rb#26 -Spoom::Sorbet::Sigils::SIGIL_REGEXP = T.let(T.unsafe(nil), Regexp) +# source://spoom//lib/spoom/sorbet/translate/strip_sorbet_sigs.rb#9 +class Spoom::Sorbet::Translate::StripSorbetSigs < ::Spoom::Sorbet::Translate::Translator + # source://spoom//lib/spoom/sorbet/translate/strip_sorbet_sigs.rb#12 + sig { override.params(node: ::Prism::CallNode).void } + def visit_call_node(node); end +end -# source://spoom//lib/spoom/sorbet/sigils.rb#11 -Spoom::Sorbet::Sigils::STRICTNESS_FALSE = T.let(T.unsafe(nil), String) +# @abstract +# +# source://spoom//lib/spoom/sorbet/translate/translator.rb#8 +class Spoom::Sorbet::Translate::Translator < ::Spoom::Visitor + abstract! -# source://spoom//lib/spoom/sorbet/sigils.rb#10 -Spoom::Sorbet::Sigils::STRICTNESS_IGNORE = T.let(T.unsafe(nil), String) + # @return [Translator] a new instance of Translator + # + # source://spoom//lib/spoom/sorbet/translate/translator.rb#10 + sig { params(ruby_contents: ::String, file: ::String).void } + def initialize(ruby_contents, file:); end -# source://spoom//lib/spoom/sorbet/sigils.rb#15 -Spoom::Sorbet::Sigils::STRICTNESS_INTERNAL = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/sorbet/translate/translator.rb#29 + sig { returns(::String) } + def rewrite; end -# source://spoom//lib/spoom/sorbet/sigils.rb#13 -Spoom::Sorbet::Sigils::STRICTNESS_STRICT = T.let(T.unsafe(nil), String) + private -# source://spoom//lib/spoom/sorbet/sigils.rb#14 -Spoom::Sorbet::Sigils::STRICTNESS_STRONG = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/sorbet/translate/translator.rb#54 + sig { params(offset: ::Integer).returns(::Integer) } + def adjust_to_line_end(offset); end -# source://spoom//lib/spoom/sorbet/sigils.rb#12 -Spoom::Sorbet::Sigils::STRICTNESS_TRUE = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/sorbet/translate/translator.rb#48 + sig { params(offset: ::Integer).returns(::Integer) } + def adjust_to_line_start(offset); end -# source://spoom//lib/spoom/sorbet/sigils.rb#17 -Spoom::Sorbet::Sigils::VALID_STRICTNESS = T.let(T.unsafe(nil), Array) + # Consume the next blank line if any + # + # source://spoom//lib/spoom/sorbet/translate/translator.rb#61 + sig { params(offset: ::Integer).returns(::Integer) } + def adjust_to_new_line(offset); end -# source://spoom//lib/spoom/sorbet/sigs.rb#8 -class Spoom::Sorbet::Sigs - class << self - # : (String ruby_contents, positional_names: bool) -> String - # - # source://spoom//lib/spoom/sorbet/sigs.rb#24 - sig { params(ruby_contents: ::String, positional_names: T::Boolean).returns(::String) } - def rbi_to_rbs(ruby_contents, positional_names: T.unsafe(nil)); end + # @return [Boolean] + # + # source://spoom//lib/spoom/sorbet/translate/translator.rb#38 + sig { params(node: ::Prism::CallNode).returns(T::Boolean) } + def sorbet_sig?(node); end +end - # : (String ruby_contents) -> String - # - # source://spoom//lib/spoom/sorbet/sigs.rb#46 - sig { params(ruby_contents: ::String).returns(::String) } - def rbs_to_rbi(ruby_contents); end +# This module provides a simple API to rewrite source code. +# +# Using a `Rewriter`, you can build a list of changes to apply to a source file +# and apply them all at once. Edits are applied from bottom to top, so that the +# line numbers are not remapped after each edit. +# +# The source code is represented as an array of bytes, so that it can be +# manipulated in place. The client is responsible for `string <-> bytes` +# conversions and encoding handling. +# +# ```ruby +# bytes = "def foo; end".bytes +# +# rewriter = Spoom::Source::Rewriter.new +# rewriter << Spoom::Source::Replace.new(4, 6, "baz") +# rewriter << Spoom::Source::Insert.new(0, "def bar; end\n") +# rewriter.rewrite!(bytes) +# +# puts bytes.pack("C*") # => "def bar; end\ndef baz; end" +# ``` +# +# source://spoom//lib/spoom/source/rewriter.rb#25 +module Spoom::Source; end - # : (String ruby_contents) -> String - # - # source://spoom//lib/spoom/sorbet/sigs.rb#12 - sig { params(ruby_contents: ::String).returns(::String) } - def strip(ruby_contents); end +# source://spoom//lib/spoom/source/rewriter.rb#113 +class Spoom::Source::Delete < ::Spoom::Source::Edit + # @return [Delete] a new instance of Delete + # + # source://spoom//lib/spoom/source/rewriter.rb#118 + sig { params(from: ::Integer, to: ::Integer).void } + def initialize(from, to); end - private + # @raise [PositionError] + # + # source://spoom//lib/spoom/source/rewriter.rb#127 + sig { override.params(bytes: T::Array[T.untyped]).void } + def apply(bytes); end - # : (String ruby_contents) -> Array[[RBI::RBSComment, (RBI::Method | RBI::Attr)]] - # - # source://spoom//lib/spoom/sorbet/sigs.rb#80 - sig { params(ruby_contents: ::String).returns(T::Array[[::RBI::RBSComment, T.any(::RBI::Attr, ::RBI::Method)]]) } - def collect_rbs_comments(ruby_contents); end + # source://spoom//lib/spoom/source/rewriter.rb#115 + sig { returns(::Integer) } + def from; end - # : (String ruby_contents) -> Array[[RBI::Sig, (RBI::Method | RBI::Attr)]] - # - # source://spoom//lib/spoom/sorbet/sigs.rb#72 - sig { params(ruby_contents: ::String).returns(T::Array[[::RBI::Sig, T.any(::RBI::Attr, ::RBI::Method)]]) } - def collect_sorbet_sigs(ruby_contents); end - end -end + # source://spoom//lib/spoom/source/rewriter.rb#135 + sig { override.returns([::Integer, ::Integer]) } + def range; end -# source://spoom//lib/spoom/sorbet/sigs.rb#9 -class Spoom::Sorbet::Sigs::Error < ::Spoom::Error; end + # source://spoom//lib/spoom/source/rewriter.rb#115 + def to; end -# source://spoom//lib/spoom/sorbet/sigs.rb#123 -class Spoom::Sorbet::Sigs::RBIToRBSTranslator - class << self - # : (RBI::Sig sig, (RBI::Method | RBI::Attr) node, positional_names: bool) -> String - # - # source://spoom//lib/spoom/sorbet/sigs.rb#126 - sig do - params( - sig: ::RBI::Sig, - node: T.any(::RBI::Attr, ::RBI::Method), - positional_names: T::Boolean - ).returns(::String) - end - def translate(sig, node, positional_names: T.unsafe(nil)); end + # source://spoom//lib/spoom/source/rewriter.rb#141 + sig { override.returns(::String) } + def to_s; end +end - private +# @abstract +# +# source://spoom//lib/spoom/source/rewriter.rb#29 +class Spoom::Source::Edit + abstract! - # : (RBI::Sig sig, RBI::Attr node, positional_names: bool) -> String - # - # source://spoom//lib/spoom/sorbet/sigs.rb#173 - sig { params(sig: ::RBI::Sig, node: ::RBI::Attr, positional_names: T::Boolean).returns(::String) } - def translate_attr_sig(sig, node, positional_names: T.unsafe(nil)); end + # @abstract + # @raise [NotImplementedError] + # + # source://spoom//lib/spoom/source/rewriter.rb#32 + sig { abstract.params(bytes: T::Array[::Integer]).void } + def apply(bytes); end - # : (RBI::Sig sig, RBI::Method node, positional_names: bool) -> String - # - # source://spoom//lib/spoom/sorbet/sigs.rb#138 - sig { params(sig: ::RBI::Sig, node: ::RBI::Method, positional_names: T::Boolean).returns(::String) } - def translate_method_sig(sig, node, positional_names: T.unsafe(nil)); end - end + # @abstract + # @raise [NotImplementedError] + # + # source://spoom//lib/spoom/source/rewriter.rb#36 + sig { abstract.returns([::Integer, ::Integer]) } + def range; end end -# source://spoom//lib/spoom/sorbet/sigs.rb#182 -class Spoom::Sorbet::Sigs::RBSToRBITranslator - class << self - # : (RBI::RBSComment comment, (RBI::Method | RBI::Attr) node) -> String? - # - # source://spoom//lib/spoom/sorbet/sigs.rb#187 - sig { params(comment: ::RBI::RBSComment, node: T.any(::RBI::Attr, ::RBI::Method)).returns(T.nilable(::String)) } - def translate(comment, node); end +# source://spoom//lib/spoom/source/rewriter.rb#39 +class Spoom::Source::Insert < ::Spoom::Source::Edit + # @return [Insert] a new instance of Insert + # + # source://spoom//lib/spoom/source/rewriter.rb#47 + sig { params(position: ::Integer, text: ::String).void } + def initialize(position, text); end - private + # @raise [PositionError] + # + # source://spoom//lib/spoom/source/rewriter.rb#56 + sig { override.params(bytes: T::Array[::Integer]).void } + def apply(bytes); end - # : (RBI::RBSComment comment, RBI::Attr node) -> String - # - # source://spoom//lib/spoom/sorbet/sigs.rb#228 - sig { params(comment: ::RBI::RBSComment, node: ::RBI::Attr).returns(::String) } - def translate_attr_sig(comment, node); end + # source://spoom//lib/spoom/source/rewriter.rb#41 + sig { returns(::Integer) } + def position; end - # : (RBI::RBSComment rbs_comment, RBI::Method node) -> String - # - # source://spoom//lib/spoom/sorbet/sigs.rb#201 - sig { params(rbs_comment: ::RBI::RBSComment, node: ::RBI::Method).returns(::String) } - def translate_method_sig(rbs_comment, node); end - end + # source://spoom//lib/spoom/source/rewriter.rb#65 + sig { override.returns([::Integer, ::Integer]) } + def range; end + + # source://spoom//lib/spoom/source/rewriter.rb#44 + sig { returns(::String) } + def text; end + + # source://spoom//lib/spoom/source/rewriter.rb#71 + sig { override.returns(::String) } + def to_s; end end -# From https://github.com/Shopify/ruby-lsp/blob/9154bfc6ef/lib/ruby_lsp/document.rb#L127 -# -# source://spoom//lib/spoom/sorbet/sigs.rb#248 -class Spoom::Sorbet::Sigs::Scanner - # : (String source) -> void - # - # @return [Scanner] a new instance of Scanner +# source://spoom//lib/spoom/source/rewriter.rb#26 +class Spoom::Source::PositionError < ::Spoom::Error; end + +# source://spoom//lib/spoom/source/rewriter.rb#76 +class Spoom::Source::Replace < ::Spoom::Source::Edit + # @return [Replace] a new instance of Replace # - # source://spoom//lib/spoom/sorbet/sigs.rb#252 - sig { params(source: ::String).void } - def initialize(source); end + # source://spoom//lib/spoom/source/rewriter.rb#84 + sig { params(from: ::Integer, to: ::Integer, text: ::String).void } + def initialize(from, to, text); end - # Finds the character index inside the source string for a given line and column - # : (Integer line, Integer character) -> Integer + # @raise [PositionError] # - # source://spoom//lib/spoom/sorbet/sigs.rb#260 - sig { params(line: ::Integer, character: ::Integer).returns(::Integer) } - def find_char_position(line, character); end -end + # source://spoom//lib/spoom/source/rewriter.rb#94 + sig { override.params(bytes: T::Array[::Integer]).void } + def apply(bytes); end -# : Integer -# -# source://spoom//lib/spoom/sorbet/sigs.rb#249 -Spoom::Sorbet::Sigs::Scanner::LINE_BREAK = T.let(T.unsafe(nil), Integer) + # source://spoom//lib/spoom/source/rewriter.rb#78 + sig { returns(::Integer) } + def from; end -# source://spoom//lib/spoom/sorbet/sigs.rb#88 -class Spoom::Sorbet::Sigs::SigsLocator < ::RBI::Visitor - # : -> void - # - # @return [SigsLocator] a new instance of SigsLocator + # source://spoom//lib/spoom/source/rewriter.rb#102 + sig { override.returns([::Integer, ::Integer]) } + def range; end + + # source://spoom//lib/spoom/source/rewriter.rb#81 + sig { returns(::String) } + def text; end + + # source://spoom//lib/spoom/source/rewriter.rb#78 + def to; end + + # source://spoom//lib/spoom/source/rewriter.rb#108 + sig { override.returns(::String) } + def to_s; end +end + +# source://spoom//lib/spoom/source/rewriter.rb#146 +class Spoom::Source::Rewriter + # @return [Rewriter] a new instance of Rewriter # - # source://spoom//lib/spoom/sorbet/sigs.rb#96 + # source://spoom//lib/spoom/source/rewriter.rb#148 sig { void } def initialize; end - # : Array[[RBI::RBSComment, (RBI::Method | RBI::Attr)]] - # - # source://spoom//lib/spoom/sorbet/sigs.rb#93 - sig { returns(T::Array[[::RBI::RBSComment, T.any(::RBI::Attr, ::RBI::Method)]]) } - def rbs_comments; end - - # : Array[[RBI::Sig, (RBI::Method | RBI::Attr)]] - # - # source://spoom//lib/spoom/sorbet/sigs.rb#90 - sig { returns(T::Array[[::RBI::Sig, T.any(::RBI::Attr, ::RBI::Method)]]) } - def sigs; end + # source://spoom//lib/spoom/source/rewriter.rb#153 + sig { params(other: ::Spoom::Source::Edit).void } + def <<(other); end - # : (RBI::Node? node) -> void - # - # source://spoom//lib/spoom/sorbet/sigs.rb#104 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end + # source://spoom//lib/spoom/source/rewriter.rb#158 + sig { params(bytes: T::Array[::Integer]).void } + def rewrite!(bytes); end end # source://spoom//lib/spoom/timeline.rb#5 class Spoom::Timeline - # : (Context context, Time from, Time to) -> void - # # @return [Timeline] a new instance of Timeline # # source://spoom//lib/spoom/timeline.rb#7 @@ -6063,21 +5211,18 @@ class Spoom::Timeline def initialize(context, from, to); end # Return one commit for each date in `dates` - # : (Array[Time] dates) -> Array[Git::Commit] # # source://spoom//lib/spoom/timeline.rb#34 sig { params(dates: T::Array[::Time]).returns(T::Array[::Spoom::Git::Commit]) } def commits_for_dates(dates); end # Return all months between `from` and `to` - # : -> Array[Time] # # source://spoom//lib/spoom/timeline.rb#21 sig { returns(T::Array[::Time]) } def months; end # Return one commit for each month between `from` and `to` - # : -> Array[Git::Commit] # # source://spoom//lib/spoom/timeline.rb#15 sig { returns(T::Array[::Spoom::Git::Commit]) } @@ -6089,896 +5234,598 @@ Spoom::VERSION = T.let(T.unsafe(nil), String) # source://spoom//lib/spoom/visitor.rb#7 class Spoom::Visitor < ::Prism::Visitor - # : (Prism::AliasGlobalVariableNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#16 sig { override.params(node: ::Prism::AliasGlobalVariableNode).void } def visit_alias_global_variable_node(node); end - # : (Prism::AliasMethodNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#22 sig { override.params(node: ::Prism::AliasMethodNode).void } def visit_alias_method_node(node); end - # : (Prism::AlternationPatternNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#28 sig { override.params(node: ::Prism::AlternationPatternNode).void } def visit_alternation_pattern_node(node); end - # : (Prism::AndNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#34 sig { override.params(node: ::Prism::AndNode).void } def visit_and_node(node); end - # : (Prism::ArgumentsNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#40 sig { override.params(node: ::Prism::ArgumentsNode).void } def visit_arguments_node(node); end - # : (Prism::ArrayNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#46 sig { override.params(node: ::Prism::ArrayNode).void } def visit_array_node(node); end - # : (Prism::ArrayPatternNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#52 sig { override.params(node: ::Prism::ArrayPatternNode).void } def visit_array_pattern_node(node); end - # : (Prism::AssocNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#58 sig { override.params(node: ::Prism::AssocNode).void } def visit_assoc_node(node); end - # : (Prism::AssocSplatNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#64 sig { override.params(node: ::Prism::AssocSplatNode).void } def visit_assoc_splat_node(node); end - # : (Prism::BackReferenceReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#70 sig { override.params(node: ::Prism::BackReferenceReadNode).void } def visit_back_reference_read_node(node); end - # : (Prism::BeginNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#76 sig { override.params(node: ::Prism::BeginNode).void } def visit_begin_node(node); end - # : (Prism::BlockArgumentNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#82 sig { override.params(node: ::Prism::BlockArgumentNode).void } def visit_block_argument_node(node); end - # : (Prism::BlockLocalVariableNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#88 sig { override.params(node: ::Prism::BlockLocalVariableNode).void } def visit_block_local_variable_node(node); end - # : (Prism::BlockNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#94 sig { override.params(node: ::Prism::BlockNode).void } def visit_block_node(node); end - # : (Prism::BlockParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#100 sig { override.params(node: ::Prism::BlockParameterNode).void } def visit_block_parameter_node(node); end - # : (Prism::BlockParametersNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#106 sig { override.params(node: ::Prism::BlockParametersNode).void } def visit_block_parameters_node(node); end - # : (Prism::BreakNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#112 sig { override.params(node: ::Prism::BreakNode).void } def visit_break_node(node); end - # : (Prism::CallAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#118 sig { override.params(node: ::Prism::CallAndWriteNode).void } def visit_call_and_write_node(node); end - # : (Prism::CallNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#124 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end - # : (Prism::CallOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#130 sig { override.params(node: ::Prism::CallOperatorWriteNode).void } def visit_call_operator_write_node(node); end - # : (Prism::CallOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#136 sig { override.params(node: ::Prism::CallOrWriteNode).void } def visit_call_or_write_node(node); end - # : (Prism::CallTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#142 sig { override.params(node: ::Prism::CallTargetNode).void } def visit_call_target_node(node); end - # : (Prism::CapturePatternNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#148 sig { override.params(node: ::Prism::CapturePatternNode).void } def visit_capture_pattern_node(node); end - # : (Prism::CaseMatchNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#154 sig { override.params(node: ::Prism::CaseMatchNode).void } def visit_case_match_node(node); end - # : (Prism::CaseNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#160 sig { override.params(node: ::Prism::CaseNode).void } def visit_case_node(node); end - # : (Prism::Node node) -> void - # # source://spoom//lib/spoom/visitor.rb#10 sig { override.params(node: ::Prism::Node).void } def visit_child_nodes(node); end - # : (Prism::ClassNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#166 sig { override.params(node: ::Prism::ClassNode).void } def visit_class_node(node); end - # : (Prism::ClassVariableAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#172 sig { override.params(node: ::Prism::ClassVariableAndWriteNode).void } def visit_class_variable_and_write_node(node); end - # : (Prism::ClassVariableOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#178 sig { override.params(node: ::Prism::ClassVariableOperatorWriteNode).void } def visit_class_variable_operator_write_node(node); end - # : (Prism::ClassVariableOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#184 sig { override.params(node: ::Prism::ClassVariableOrWriteNode).void } def visit_class_variable_or_write_node(node); end - # : (Prism::ClassVariableReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#190 sig { override.params(node: ::Prism::ClassVariableReadNode).void } def visit_class_variable_read_node(node); end - # : (Prism::ClassVariableTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#196 sig { override.params(node: ::Prism::ClassVariableTargetNode).void } def visit_class_variable_target_node(node); end - # : (Prism::ClassVariableWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#202 sig { override.params(node: ::Prism::ClassVariableWriteNode).void } def visit_class_variable_write_node(node); end - # : (Prism::ConstantAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#208 sig { override.params(node: ::Prism::ConstantAndWriteNode).void } def visit_constant_and_write_node(node); end - # : (Prism::ConstantOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#214 sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void } def visit_constant_operator_write_node(node); end - # : (Prism::ConstantOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#220 sig { override.params(node: ::Prism::ConstantOrWriteNode).void } def visit_constant_or_write_node(node); end - # : (Prism::ConstantPathAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#226 sig { override.params(node: ::Prism::ConstantPathAndWriteNode).void } def visit_constant_path_and_write_node(node); end - # : (Prism::ConstantPathNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#232 sig { override.params(node: ::Prism::ConstantPathNode).void } def visit_constant_path_node(node); end - # : (Prism::ConstantPathOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#238 sig { override.params(node: ::Prism::ConstantPathOperatorWriteNode).void } def visit_constant_path_operator_write_node(node); end - # : (Prism::ConstantPathOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#244 sig { override.params(node: ::Prism::ConstantPathOrWriteNode).void } def visit_constant_path_or_write_node(node); end - # : (Prism::ConstantPathTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#250 sig { override.params(node: ::Prism::ConstantPathTargetNode).void } def visit_constant_path_target_node(node); end - # : (Prism::ConstantPathWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#256 sig { override.params(node: ::Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end - # : (Prism::ConstantReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#262 sig { override.params(node: ::Prism::ConstantReadNode).void } def visit_constant_read_node(node); end - # : (Prism::ConstantTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#268 sig { override.params(node: ::Prism::ConstantTargetNode).void } def visit_constant_target_node(node); end - # : (Prism::ConstantWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#274 sig { override.params(node: ::Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end - # : (Prism::DefNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#280 sig { override.params(node: ::Prism::DefNode).void } def visit_def_node(node); end - # : (Prism::DefinedNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#286 sig { override.params(node: ::Prism::DefinedNode).void } def visit_defined_node(node); end - # : (Prism::ElseNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#292 sig { override.params(node: ::Prism::ElseNode).void } def visit_else_node(node); end - # : (Prism::EmbeddedStatementsNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#298 sig { override.params(node: ::Prism::EmbeddedStatementsNode).void } def visit_embedded_statements_node(node); end - # : (Prism::EmbeddedVariableNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#304 sig { override.params(node: ::Prism::EmbeddedVariableNode).void } def visit_embedded_variable_node(node); end - # : (Prism::EnsureNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#310 sig { override.params(node: ::Prism::EnsureNode).void } def visit_ensure_node(node); end - # : (Prism::FalseNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#316 sig { override.params(node: ::Prism::FalseNode).void } def visit_false_node(node); end - # : (Prism::FindPatternNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#322 sig { override.params(node: ::Prism::FindPatternNode).void } def visit_find_pattern_node(node); end - # : (Prism::FlipFlopNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#328 sig { override.params(node: ::Prism::FlipFlopNode).void } def visit_flip_flop_node(node); end - # : (Prism::FloatNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#334 sig { override.params(node: ::Prism::FloatNode).void } def visit_float_node(node); end - # : (Prism::ForNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#340 sig { override.params(node: ::Prism::ForNode).void } def visit_for_node(node); end - # : (Prism::ForwardingArgumentsNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#346 sig { override.params(node: ::Prism::ForwardingArgumentsNode).void } def visit_forwarding_arguments_node(node); end - # : (Prism::ForwardingParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#352 sig { override.params(node: ::Prism::ForwardingParameterNode).void } def visit_forwarding_parameter_node(node); end - # : (Prism::ForwardingSuperNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#358 sig { override.params(node: ::Prism::ForwardingSuperNode).void } def visit_forwarding_super_node(node); end - # : (Prism::GlobalVariableAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#364 sig { override.params(node: ::Prism::GlobalVariableAndWriteNode).void } def visit_global_variable_and_write_node(node); end - # : (Prism::GlobalVariableOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#370 sig { override.params(node: ::Prism::GlobalVariableOperatorWriteNode).void } def visit_global_variable_operator_write_node(node); end - # : (Prism::GlobalVariableOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#376 sig { override.params(node: ::Prism::GlobalVariableOrWriteNode).void } def visit_global_variable_or_write_node(node); end - # : (Prism::GlobalVariableReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#382 sig { override.params(node: ::Prism::GlobalVariableReadNode).void } def visit_global_variable_read_node(node); end - # : (Prism::GlobalVariableTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#388 sig { override.params(node: ::Prism::GlobalVariableTargetNode).void } def visit_global_variable_target_node(node); end - # : (Prism::GlobalVariableWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#394 sig { override.params(node: ::Prism::GlobalVariableWriteNode).void } def visit_global_variable_write_node(node); end - # : (Prism::HashNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#400 sig { override.params(node: ::Prism::HashNode).void } def visit_hash_node(node); end - # : (Prism::HashPatternNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#406 sig { override.params(node: ::Prism::HashPatternNode).void } def visit_hash_pattern_node(node); end - # : (Prism::IfNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#412 sig { override.params(node: ::Prism::IfNode).void } def visit_if_node(node); end - # : (Prism::ImaginaryNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#418 sig { override.params(node: ::Prism::ImaginaryNode).void } def visit_imaginary_node(node); end - # : (Prism::ImplicitNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#424 sig { override.params(node: ::Prism::ImplicitNode).void } def visit_implicit_node(node); end - # : (Prism::ImplicitRestNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#430 sig { override.params(node: ::Prism::ImplicitRestNode).void } def visit_implicit_rest_node(node); end - # : (Prism::InNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#436 sig { override.params(node: ::Prism::InNode).void } def visit_in_node(node); end - # : (Prism::IndexAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#442 sig { override.params(node: ::Prism::IndexAndWriteNode).void } def visit_index_and_write_node(node); end - # : (Prism::IndexOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#448 sig { override.params(node: ::Prism::IndexOperatorWriteNode).void } def visit_index_operator_write_node(node); end - # : (Prism::IndexOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#454 sig { override.params(node: ::Prism::IndexOrWriteNode).void } def visit_index_or_write_node(node); end - # : (Prism::IndexTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#460 sig { override.params(node: ::Prism::IndexTargetNode).void } def visit_index_target_node(node); end - # : (Prism::InstanceVariableAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#466 sig { override.params(node: ::Prism::InstanceVariableAndWriteNode).void } def visit_instance_variable_and_write_node(node); end - # : (Prism::InstanceVariableOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#472 sig { override.params(node: ::Prism::InstanceVariableOperatorWriteNode).void } def visit_instance_variable_operator_write_node(node); end - # : (Prism::InstanceVariableOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#478 sig { override.params(node: ::Prism::InstanceVariableOrWriteNode).void } def visit_instance_variable_or_write_node(node); end - # : (Prism::InstanceVariableReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#484 sig { override.params(node: ::Prism::InstanceVariableReadNode).void } def visit_instance_variable_read_node(node); end - # : (Prism::InstanceVariableTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#490 sig { override.params(node: ::Prism::InstanceVariableTargetNode).void } def visit_instance_variable_target_node(node); end - # : (Prism::InstanceVariableWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#496 sig { override.params(node: ::Prism::InstanceVariableWriteNode).void } def visit_instance_variable_write_node(node); end - # : (Prism::IntegerNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#502 sig { override.params(node: ::Prism::IntegerNode).void } def visit_integer_node(node); end - # : (Prism::InterpolatedMatchLastLineNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#508 sig { override.params(node: ::Prism::InterpolatedMatchLastLineNode).void } def visit_interpolated_match_last_line_node(node); end - # : (Prism::InterpolatedRegularExpressionNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#514 sig { override.params(node: ::Prism::InterpolatedRegularExpressionNode).void } def visit_interpolated_regular_expression_node(node); end - # : (Prism::InterpolatedStringNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#520 sig { override.params(node: ::Prism::InterpolatedStringNode).void } def visit_interpolated_string_node(node); end - # : (Prism::InterpolatedSymbolNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#526 sig { override.params(node: ::Prism::InterpolatedSymbolNode).void } def visit_interpolated_symbol_node(node); end - # : (Prism::InterpolatedXStringNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#532 sig { override.params(node: ::Prism::InterpolatedXStringNode).void } def visit_interpolated_x_string_node(node); end - # : (Prism::KeywordHashNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#538 sig { override.params(node: ::Prism::KeywordHashNode).void } def visit_keyword_hash_node(node); end - # : (Prism::KeywordRestParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#544 sig { override.params(node: ::Prism::KeywordRestParameterNode).void } def visit_keyword_rest_parameter_node(node); end - # : (Prism::LambdaNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#550 sig { override.params(node: ::Prism::LambdaNode).void } def visit_lambda_node(node); end - # : (Prism::LocalVariableAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#556 sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void } def visit_local_variable_and_write_node(node); end - # : (Prism::LocalVariableOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#562 sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void } def visit_local_variable_operator_write_node(node); end - # : (Prism::LocalVariableOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#568 sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void } def visit_local_variable_or_write_node(node); end - # : (Prism::LocalVariableReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#574 sig { override.params(node: ::Prism::LocalVariableReadNode).void } def visit_local_variable_read_node(node); end - # : (Prism::LocalVariableTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#580 sig { override.params(node: ::Prism::LocalVariableTargetNode).void } def visit_local_variable_target_node(node); end - # : (Prism::LocalVariableWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#586 sig { override.params(node: ::Prism::LocalVariableWriteNode).void } def visit_local_variable_write_node(node); end - # : (Prism::MatchLastLineNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#592 sig { override.params(node: ::Prism::MatchLastLineNode).void } def visit_match_last_line_node(node); end - # : (Prism::MatchPredicateNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#598 sig { override.params(node: ::Prism::MatchPredicateNode).void } def visit_match_predicate_node(node); end - # : (Prism::MatchRequiredNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#604 sig { override.params(node: ::Prism::MatchRequiredNode).void } def visit_match_required_node(node); end - # : (Prism::MatchWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#610 sig { override.params(node: ::Prism::MatchWriteNode).void } def visit_match_write_node(node); end - # : (Prism::MissingNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#616 sig { override.params(node: ::Prism::MissingNode).void } def visit_missing_node(node); end - # : (Prism::ModuleNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#622 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # : (Prism::MultiTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#628 sig { override.params(node: ::Prism::MultiTargetNode).void } def visit_multi_target_node(node); end - # : (Prism::MultiWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#634 sig { override.params(node: ::Prism::MultiWriteNode).void } def visit_multi_write_node(node); end - # : (Prism::NextNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#640 sig { override.params(node: ::Prism::NextNode).void } def visit_next_node(node); end - # : (Prism::NilNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#646 sig { override.params(node: ::Prism::NilNode).void } def visit_nil_node(node); end - # : (Prism::NoKeywordsParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#652 sig { override.params(node: ::Prism::NoKeywordsParameterNode).void } def visit_no_keywords_parameter_node(node); end - # : (Prism::NumberedParametersNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#658 sig { override.params(node: ::Prism::NumberedParametersNode).void } def visit_numbered_parameters_node(node); end - # : (Prism::NumberedReferenceReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#664 sig { override.params(node: ::Prism::NumberedReferenceReadNode).void } def visit_numbered_reference_read_node(node); end - # : (Prism::OptionalKeywordParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#670 sig { override.params(node: ::Prism::OptionalKeywordParameterNode).void } def visit_optional_keyword_parameter_node(node); end - # : (Prism::OptionalParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#676 sig { override.params(node: ::Prism::OptionalParameterNode).void } def visit_optional_parameter_node(node); end - # : (Prism::OrNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#682 sig { override.params(node: ::Prism::OrNode).void } def visit_or_node(node); end - # : (Prism::ParametersNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#688 sig { override.params(node: ::Prism::ParametersNode).void } def visit_parameters_node(node); end - # : (Prism::ParenthesesNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#694 sig { override.params(node: ::Prism::ParenthesesNode).void } def visit_parentheses_node(node); end - # : (Prism::PinnedExpressionNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#700 sig { override.params(node: ::Prism::PinnedExpressionNode).void } def visit_pinned_expression_node(node); end - # : (Prism::PinnedVariableNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#706 sig { override.params(node: ::Prism::PinnedVariableNode).void } def visit_pinned_variable_node(node); end - # : (Prism::PostExecutionNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#712 sig { override.params(node: ::Prism::PostExecutionNode).void } def visit_post_execution_node(node); end - # : (Prism::PreExecutionNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#718 sig { override.params(node: ::Prism::PreExecutionNode).void } def visit_pre_execution_node(node); end - # : (Prism::ProgramNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#724 sig { override.params(node: ::Prism::ProgramNode).void } def visit_program_node(node); end - # : (Prism::RangeNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#730 sig { override.params(node: ::Prism::RangeNode).void } def visit_range_node(node); end - # : (Prism::RationalNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#736 sig { override.params(node: ::Prism::RationalNode).void } def visit_rational_node(node); end - # : (Prism::RedoNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#742 sig { override.params(node: ::Prism::RedoNode).void } def visit_redo_node(node); end - # : (Prism::RegularExpressionNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#748 sig { override.params(node: ::Prism::RegularExpressionNode).void } def visit_regular_expression_node(node); end - # : (Prism::RequiredKeywordParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#754 sig { override.params(node: ::Prism::RequiredKeywordParameterNode).void } def visit_required_keyword_parameter_node(node); end - # : (Prism::RequiredParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#760 sig { override.params(node: ::Prism::RequiredParameterNode).void } def visit_required_parameter_node(node); end - # : (Prism::RescueModifierNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#766 sig { override.params(node: ::Prism::RescueModifierNode).void } def visit_rescue_modifier_node(node); end - # : (Prism::RescueNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#772 sig { override.params(node: ::Prism::RescueNode).void } def visit_rescue_node(node); end - # : (Prism::RestParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#778 sig { override.params(node: ::Prism::RestParameterNode).void } def visit_rest_parameter_node(node); end - # : (Prism::RetryNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#784 sig { override.params(node: ::Prism::RetryNode).void } def visit_retry_node(node); end - # : (Prism::ReturnNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#790 sig { override.params(node: ::Prism::ReturnNode).void } def visit_return_node(node); end - # : (Prism::SelfNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#796 sig { override.params(node: ::Prism::SelfNode).void } def visit_self_node(node); end - # : (Prism::SingletonClassNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#802 sig { override.params(node: ::Prism::SingletonClassNode).void } def visit_singleton_class_node(node); end - # : (Prism::SourceEncodingNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#808 sig { override.params(node: ::Prism::SourceEncodingNode).void } def visit_source_encoding_node(node); end - # : (Prism::SourceFileNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#814 sig { override.params(node: ::Prism::SourceFileNode).void } def visit_source_file_node(node); end - # : (Prism::SourceLineNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#820 sig { override.params(node: ::Prism::SourceLineNode).void } def visit_source_line_node(node); end - # : (Prism::SplatNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#826 sig { override.params(node: ::Prism::SplatNode).void } def visit_splat_node(node); end - # : (Prism::StatementsNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#832 sig { override.params(node: ::Prism::StatementsNode).void } def visit_statements_node(node); end - # : (Prism::StringNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#838 sig { override.params(node: ::Prism::StringNode).void } def visit_string_node(node); end - # : (Prism::SuperNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#844 sig { override.params(node: ::Prism::SuperNode).void } def visit_super_node(node); end - # : (Prism::SymbolNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#850 sig { override.params(node: ::Prism::SymbolNode).void } def visit_symbol_node(node); end - # : (Prism::TrueNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#856 sig { override.params(node: ::Prism::TrueNode).void } def visit_true_node(node); end - # : (Prism::UndefNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#862 sig { override.params(node: ::Prism::UndefNode).void } def visit_undef_node(node); end - # : (Prism::UnlessNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#868 sig { override.params(node: ::Prism::UnlessNode).void } def visit_unless_node(node); end - # : (Prism::UntilNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#874 sig { override.params(node: ::Prism::UntilNode).void } def visit_until_node(node); end - # : (Prism::WhenNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#880 sig { override.params(node: ::Prism::WhenNode).void } def visit_when_node(node); end - # : (Prism::WhileNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#886 sig { override.params(node: ::Prism::WhileNode).void } def visit_while_node(node); end - # : (Prism::XStringNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#892 sig { override.params(node: ::Prism::XStringNode).void } def visit_x_string_node(node); end - # : (Prism::YieldNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#898 sig { override.params(node: ::Prism::YieldNode).void } def visit_yield_node(node); end diff --git a/sorbet/rbi/gems/sprockets-rails@3.5.2.rbi b/sorbet/rbi/gems/sprockets-rails@3.5.2.rbi index c7669018..80a66359 100644 --- a/sorbet/rbi/gems/sprockets-rails@3.5.2.rbi +++ b/sorbet/rbi/gems/sprockets-rails@3.5.2.rbi @@ -6,81 +6,10 @@ # source://sprockets-rails//lib/sprockets/railtie.rb#18 -module Rails - class << self - # source://railties/8.0.2/lib/rails.rb#44 - def app_class; end - - # source://railties/8.0.2/lib/rails.rb#44 - def app_class=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#45 - def application; end - - # source://railties/8.0.2/lib/rails.rb#43 - def application=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#126 - def autoloaders; end - - # source://railties/8.0.2/lib/rails.rb#56 - def backtrace_cleaner; end - - # source://railties/8.0.2/lib/rails.rb#44 - def cache; end - - # source://railties/8.0.2/lib/rails.rb#44 - def cache=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#52 - def configuration; end - - # source://railties/8.0.2/lib/rails/deprecator.rb#4 - def deprecator; end - - # source://railties/8.0.2/lib/rails.rb#75 - def env; end - - # source://railties/8.0.2/lib/rails.rb#82 - def env=(environment); end - - # source://railties/8.0.2/lib/rails.rb#93 - def error; end - - # source://railties/8.0.2/lib/rails/gem_version.rb#5 - def gem_version; end - - # source://railties/8.0.2/lib/rails.rb#106 - def groups(*groups); end - - # source://railties/8.0.2/lib/rails.rb#49 - def initialize!(*_arg0, **_arg1, &_arg2); end - - # source://railties/8.0.2/lib/rails.rb#49 - def initialized?(*_arg0, **_arg1, &_arg2); end - - # source://railties/8.0.2/lib/rails.rb#44 - def logger; end - - # source://railties/8.0.2/lib/rails.rb#44 - def logger=(_arg0); end - - # source://railties/8.0.2/lib/rails.rb#122 - def public_path; end - - # source://railties/8.0.2/lib/rails.rb#65 - def root; end - - # source://railties/8.0.2/lib/rails/version.rb#7 - def version; end - end -end +module Rails; end # source://sprockets-rails//lib/sprockets/railtie.rb#19 class Rails::Application < ::Rails::Engine - # source://railties/8.0.2/lib/rails/application.rb#109 - def initialize(initial_variable_values = T.unsafe(nil), &block); end - # Called from asset helpers to alert you if you reference an asset URL that # isn't precompiled and hence won't be available in production. # @@ -109,578 +38,19 @@ class Rails::Application < ::Rails::Engine # source://sprockets-rails//lib/sprockets/railtie.rb#34 def assets_manifest=(_arg0); end - # source://railties/8.0.2/lib/rails/application.rb#102 - def autoloaders; end - - # source://railties/8.0.2/lib/rails/engine.rb#516 - def build_middleware_stack; end - - # source://railties/8.0.2/lib/rails/application.rb#451 - def config; end - - # source://railties/8.0.2/lib/rails/application.rb#455 - def config=(_arg0); end - - # source://railties/8.0.2/lib/rails/application.rb#288 - def config_for(name, env: T.unsafe(nil)); end - - # source://railties/8.0.2/lib/rails/application.rb#371 - def console(&blk); end - - # source://railties/8.0.2/lib/rails/application.rb#495 - def credentials; end - - # source://railties/8.0.2/lib/rails/application.rb#456 - def credentials=(_arg0); end - - # source://railties/8.0.2/lib/rails/application.rb#104 - def default_url_options(*_arg0, **_arg1, &_arg2); end - - # source://railties/8.0.2/lib/rails/application.rb#104 - def default_url_options=(arg); end - - # source://railties/8.0.2/lib/rails/application.rb#244 - def deprecators; end - - # source://railties/8.0.2/lib/rails/application.rb#553 - def eager_load!; end - - # source://railties/8.0.2/lib/rails/application.rb#514 - def encrypted(path, key_path: T.unsafe(nil), env_key: T.unsafe(nil)); end - - # source://railties/8.0.2/lib/rails/application.rb#317 - def env_config; end - - # source://railties/8.0.2/lib/rails/application.rb#102 - def executor; end - - # source://railties/8.0.2/lib/rails/application.rb#377 - def generators(&blk); end - - # source://railties/8.0.2/lib/rails/application.rb#527 - def helpers_paths; end - - # source://railties/8.0.2/lib/rails/application.rb#438 - def initialize!(group = T.unsafe(nil)); end - - # source://railties/8.0.2/lib/rails/application.rb#134 - def initialized?; end - - # source://railties/8.0.2/lib/rails/application.rb#359 - def initializer(name, opts = T.unsafe(nil), &block); end - - # source://railties/8.0.2/lib/rails/application.rb#445 - def initializers; end - - # source://railties/8.0.2/lib/rails/application.rb#388 - def isolate_namespace(mod); end - - # source://railties/8.0.2/lib/rails/application.rb#172 - def key_generator(secret_key_base = T.unsafe(nil)); end - - # source://railties/8.0.2/lib/rails/application.rb#547 - def load_generators(app = T.unsafe(nil)); end - - # source://railties/8.0.2/lib/rails/application.rb#236 - def message_verifier(verifier_name); end - - # source://railties/8.0.2/lib/rails/application.rb#208 - def message_verifiers; end - - # source://railties/8.0.2/lib/rails/application.rb#543 - def migration_railties; end - - # source://railties/8.0.2/lib/rails/application.rb#141 - def name; end - # Lazy-load the precompile list so we don't cause asset compilation at app # boot time, but ensure we cache the list so we don't recompute it for each # request or test case. # # source://sprockets-rails//lib/sprockets/railtie.rb#52 def precompiled_assets(clear_cache = T.unsafe(nil)); end - - # source://railties/8.0.2/lib/rails/application.rb#352 - def rake_tasks(&block); end - - # source://railties/8.0.2/lib/rails/application.rb#160 - def reload_routes!; end - - # source://railties/8.0.2/lib/rails/application.rb#164 - def reload_routes_unless_loaded; end - - # source://railties/8.0.2/lib/rails/application.rb#102 - def reloader; end - - # source://railties/8.0.2/lib/rails/application.rb#102 - def reloaders; end - - # source://railties/8.0.2/lib/rails/application.rb#414 - def require_environment!; end - - # source://railties/8.0.2/lib/rails/application.rb#419 - def routes_reloader; end - - # source://railties/8.0.2/lib/rails/application.rb#145 - def run_load_hooks!; end - - # source://railties/8.0.2/lib/rails/application.rb#365 - def runner(&blk); end - - # source://railties/8.0.2/lib/rails/application.rb#100 - def sandbox; end - - # source://railties/8.0.2/lib/rails/application.rb#100 - def sandbox=(_arg0); end - - # source://railties/8.0.2/lib/rails/application.rb#100 - def sandbox?; end - - # source://railties/8.0.2/lib/rails/application.rb#477 - def secret_key_base; end - - # source://railties/8.0.2/lib/rails/application.rb#383 - def server(&blk); end - - # source://railties/8.0.2/lib/rails/application.rb#523 - def to_app; end - - # source://railties/8.0.2/lib/rails/application.rb#426 - def watchable_args; end - - protected - - # source://railties/8.0.2/lib/rails/application.rb#626 - def default_middleware_stack; end - - # source://railties/8.0.2/lib/rails/application.rb#631 - def ensure_generator_templates_added; end - - # source://railties/8.0.2/lib/rails/application.rb#592 - def ordered_railties; end - - # source://railties/8.0.2/lib/rails/application.rb#614 - def railties_initializers(current); end - - # source://railties/8.0.2/lib/rails/application.rb#581 - def run_console_blocks(app); end - - # source://railties/8.0.2/lib/rails/application.rb#571 - def run_generators_blocks(app); end - - # source://railties/8.0.2/lib/rails/application.rb#576 - def run_runner_blocks(app); end - - # source://railties/8.0.2/lib/rails/application.rb#586 - def run_server_blocks(app); end - - # source://railties/8.0.2/lib/rails/application.rb#560 - def run_tasks_blocks(app); end - - private - - # source://railties/8.0.2/lib/rails/application.rb#644 - def build_middleware; end - - # source://railties/8.0.2/lib/rails/application.rb#637 - def build_request(env); end - - # source://railties/8.0.2/lib/rails/application.rb#648 - def coerce_same_site_protection(protection); end - - # source://railties/8.0.2/lib/rails/application.rb#652 - def filter_parameters; end - - class << self - # source://railties/8.0.2/lib/rails/application.rb#407 - def add_lib_to_load_path!(root); end - - # source://railties/8.0.2/lib/rails/application.rb#84 - def create(initial_variable_values = T.unsafe(nil), &block); end - - # source://railties/8.0.2/lib/rails/application.rb#88 - def find_root(from); end - - # source://railties/8.0.2/lib/rails/application.rb#71 - def inherited(base); end - - # source://railties/8.0.2/lib/rails/application.rb#80 - def instance; end - - def new(*_arg0); end - end end # Hack: We need to remove Rails' built in config.assets so we can # do our own thing. # # source://sprockets-rails//lib/sprockets/railtie.rb#22 -class Rails::Application::Configuration < ::Rails::Engine::Configuration - # source://railties/8.0.2/lib/rails/application/configuration.rb#30 - def initialize(*_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def add_autoload_paths_to_load_path; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def add_autoload_paths_to_load_path=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def allow_concurrency; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def allow_concurrency=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#563 - def annotations; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#28 - def api_only; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#376 - def api_only=(value); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def asset_host; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def asset_host=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def assume_ssl; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def assume_ssl=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def autoflush_log; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def autoflush_log=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#471 - def autoload_lib(ignore:); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#483 - def autoload_lib_once(ignore:); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def beginning_of_week; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def beginning_of_week=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#388 - def broadcast_log_level; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def cache_classes; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def cache_classes=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def cache_store; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def cache_store=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#495 - def colorize_logging; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#499 - def colorize_logging=(val); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def consider_all_requests_local; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def consider_all_requests_local=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def console; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def console=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#568 - def content_security_policy(&block); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def content_security_policy_nonce_directives; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def content_security_policy_nonce_directives=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def content_security_policy_nonce_generator; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def content_security_policy_nonce_generator=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def content_security_policy_report_only; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def content_security_policy_report_only=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def credentials; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def credentials=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#434 - def database_configuration; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#390 - def debug_exception_response_format; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#394 - def debug_exception_response_format=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#585 - def default_log_file; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def disable_sandbox; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def disable_sandbox=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def dom_testing_default_html_version; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def dom_testing_default_html_version=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def eager_load; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def eager_load=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#360 - def enable_reloading; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#364 - def enable_reloading=(value); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#28 - def encoding; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#368 - def encoding=(value); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def exceptions_app; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def exceptions_app=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def file_watcher; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def file_watcher=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def filter_parameters; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def filter_parameters=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def filter_redirect; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def filter_redirect=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def force_ssl; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def force_ssl=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def helpers_paths; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def helpers_paths=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def host_authorization; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def host_authorization=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def hosts; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def hosts=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#597 - def inspect; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#416 - def load_database_yaml; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#92 - def load_defaults(target_version); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#28 - def loaded_config_version; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def log_file_size; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def log_file_size=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def log_formatter; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def log_formatter=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#28 - def log_level; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#383 - def log_level=(level); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def log_tags; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def log_tags=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def logger; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def logger=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#396 - def paths; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#577 - def permissions_policy(&block); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def precompile_filter_parameters; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def precompile_filter_parameters=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def public_file_server; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def public_file_server=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def railties_order; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def railties_order=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def rake_eager_load; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def rake_eager_load=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def relative_url_root; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def relative_url_root=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def reload_classes_only_on_change; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def reload_classes_only_on_change=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#356 - def reloading_enabled?; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def require_master_key; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def require_master_key=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def sandbox_by_default; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def sandbox_by_default=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#504 - def secret_key_base; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#516 - def secret_key_base=(new_secret_key_base); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def server_timing; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def server_timing=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def session_options; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def session_options=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#543 - def session_store(new_session_store = T.unsafe(nil), **options); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#559 - def session_store?; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def silence_healthcheck_path; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def silence_healthcheck_path=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def ssl_options; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def ssl_options=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def time_zone; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def time_zone=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def x; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def x=(_arg0); end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def yjit; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#14 - def yjit=(_arg0); end - - private - - # source://railties/8.0.2/lib/rails/application/configuration.rb#624 - def credentials_defaults; end - - # source://railties/8.0.2/lib/rails/application/configuration.rb#634 - def generate_local_secret; end -end +class Rails::Application::Configuration < ::Rails::Engine::Configuration; end # source://sprockets-rails//lib/sprockets/rails/version.rb#1 module Sprockets @@ -1003,7 +373,7 @@ class Sprockets::Rails::HelperAssetResolvers::Environment # source://sprockets-rails//lib/sprockets/rails/helper.rb#335 def digest_path(path, allow_non_precompiled = T.unsafe(nil)); end - # source://sprockets-rails//lib/sprockets/rails/helper.rb#356 + # source://sprockets-rails//lib/sprockets/rails/helper.rb#355 def find_asset(path, options = T.unsafe(nil)); end # source://sprockets-rails//lib/sprockets/rails/helper.rb#346 diff --git a/sorbet/rbi/gems/sprockets@4.2.1.rbi b/sorbet/rbi/gems/sprockets@4.2.2.rbi similarity index 98% rename from sorbet/rbi/gems/sprockets@4.2.1.rbi rename to sorbet/rbi/gems/sprockets@4.2.2.rbi index 37673156..14579a94 100644 --- a/sorbet/rbi/gems/sprockets@4.2.1.rbi +++ b/sorbet/rbi/gems/sprockets@4.2.2.rbi @@ -83,7 +83,7 @@ class Sprockets::Asset # # @return [Boolean] # - # source://sprockets//lib/sprockets/asset.rb#207 + # source://sprockets//lib/sprockets/asset.rb#210 def ==(other); end # Public: Returns String base64 digest of source. @@ -93,7 +93,7 @@ class Sprockets::Asset # Public: Returns Integer length of source. # - # source://sprockets//lib/sprockets/asset.rb#120 + # source://sprockets//lib/sprockets/asset.rb#123 def bytesize; end # Public: Get charset of source. @@ -394,7 +394,7 @@ class Sprockets::Base # # @raise [NotImplementedError] # - # source://sprockets//lib/sprockets/base.rb#53 + # source://sprockets//lib/sprockets/base.rb#56 def index; end # Pretty inspect @@ -924,7 +924,7 @@ class Sprockets::CachedEnvironment < ::Sprockets::Base # No-op return self as cached environment. # - # source://sprockets//lib/sprockets/cached_environment.rb#27 + # source://sprockets//lib/sprockets/cached_environment.rb#30 def index; end # Internal: Cache Environment#load @@ -1395,7 +1395,7 @@ class Sprockets::Context # current file is `app/javascripts/foo/bar.js`, `load_path` would # return `app/javascripts`. # - # source://sprockets//lib/sprockets/context.rb#73 + # source://sprockets//lib/sprockets/context.rb#74 def root_path; end # `stub_asset` blacklists `path` from being included in the bundle. @@ -1488,7 +1488,7 @@ module Sprockets::Dependencies # # Returns nothing. # - # source://sprockets//lib/sprockets/dependencies.rb#48 + # source://sprockets//lib/sprockets/dependencies.rb#53 def depend_on(uri); end # Public: Default set of dependency URIs for assets. @@ -2038,7 +2038,7 @@ Sprockets::EjsProcessor::VERSION = T.let(T.unsafe(nil), String) # Internal: HTTP transport encoding and charset detecting related functions. # Mixed into Environment. # -# source://sprockets//lib/sprockets/encoding_utils.rb#9 +# source://sprockets//lib/sprockets/encoding_utils.rb#8 module Sprockets::EncodingUtils extend ::Sprockets::EncodingUtils @@ -2048,7 +2048,7 @@ module Sprockets::EncodingUtils # # Returns a encoded String # - # source://sprockets//lib/sprockets/encoding_utils.rb#73 + # source://sprockets//lib/sprockets/encoding_utils.rb#72 def base64(str); end # Internal: Use Charlock Holmes to detect encoding. @@ -2057,7 +2057,7 @@ module Sprockets::EncodingUtils # # Returns encoded String. # - # source://sprockets//lib/sprockets/encoding_utils.rb#122 + # source://sprockets//lib/sprockets/encoding_utils.rb#121 def charlock_detect(str); end # Public: Use deflate to compress data. @@ -2066,7 +2066,7 @@ module Sprockets::EncodingUtils # # Returns a compressed String # - # source://sprockets//lib/sprockets/encoding_utils.rb#19 + # source://sprockets//lib/sprockets/encoding_utils.rb#18 def deflate(str); end # Public: Basic string detecter. @@ -2078,7 +2078,7 @@ module Sprockets::EncodingUtils # # Returns encoded String. # - # source://sprockets//lib/sprockets/encoding_utils.rb#100 + # source://sprockets//lib/sprockets/encoding_utils.rb#99 def detect(str); end # Public: Detect and strip @charset from CSS style sheet. @@ -2087,7 +2087,7 @@ module Sprockets::EncodingUtils # # Returns a encoded String. # - # source://sprockets//lib/sprockets/encoding_utils.rb#178 + # source://sprockets//lib/sprockets/encoding_utils.rb#177 def detect_css(str); end # Public: Detect charset from HTML document. @@ -2099,7 +2099,7 @@ module Sprockets::EncodingUtils # # Returns a encoded String. # - # source://sprockets//lib/sprockets/encoding_utils.rb#245 + # source://sprockets//lib/sprockets/encoding_utils.rb#244 def detect_html(str); end # Public: Detect Unicode string. @@ -2110,7 +2110,7 @@ module Sprockets::EncodingUtils # # Returns encoded String. # - # source://sprockets//lib/sprockets/encoding_utils.rb#139 + # source://sprockets//lib/sprockets/encoding_utils.rb#138 def detect_unicode(str); end # Public: Detect and strip BOM from possible unicode string. @@ -2120,7 +2120,7 @@ module Sprockets::EncodingUtils # Returns UTF 8/16/32 encoded String without BOM or the original String if # no BOM was present. # - # source://sprockets//lib/sprockets/encoding_utils.rb#157 + # source://sprockets//lib/sprockets/encoding_utils.rb#156 def detect_unicode_bom(str); end # Public: Use gzip to compress data. @@ -2129,7 +2129,7 @@ module Sprockets::EncodingUtils # # Returns a compressed String # - # source://sprockets//lib/sprockets/encoding_utils.rb#59 + # source://sprockets//lib/sprockets/encoding_utils.rb#58 def gzip(str); end # Internal: Scan binary CSS string for @charset encoding name. @@ -2138,7 +2138,7 @@ module Sprockets::EncodingUtils # # Returns encoding String name or nil. # - # source://sprockets//lib/sprockets/encoding_utils.rb#208 + # source://sprockets//lib/sprockets/encoding_utils.rb#207 def scan_css_charset(str); end # Internal: Unmarshal optionally deflated data. @@ -2151,26 +2151,26 @@ module Sprockets::EncodingUtils # # Returns unmarshaled Object or raises an Exception. # - # source://sprockets//lib/sprockets/encoding_utils.rb#39 + # source://sprockets//lib/sprockets/encoding_utils.rb#38 def unmarshaled_deflated(str, window_bits = T.unsafe(nil)); end end # Internal: Mapping unicode encodings to byte order markers. # -# source://sprockets//lib/sprockets/encoding_utils.rb#84 +# source://sprockets//lib/sprockets/encoding_utils.rb#83 Sprockets::EncodingUtils::BOM = T.let(T.unsafe(nil), Hash) # Internal: Shorthand aliases for detecter functions. # -# source://sprockets//lib/sprockets/encoding_utils.rb#81 +# source://sprockets//lib/sprockets/encoding_utils.rb#80 Sprockets::EncodingUtils::CHARSET_DETECT = T.let(T.unsafe(nil), Hash) -# source://sprockets//lib/sprockets/encoding_utils.rb#201 +# source://sprockets//lib/sprockets/encoding_utils.rb#200 Sprockets::EncodingUtils::CHARSET_SIZE = T.let(T.unsafe(nil), Integer) # Internal: @charset bytes # -# source://sprockets//lib/sprockets/encoding_utils.rb#200 +# source://sprockets//lib/sprockets/encoding_utils.rb#199 Sprockets::EncodingUtils::CHARSET_START = T.let(T.unsafe(nil), Array) # source://sprockets//lib/sprockets/environment.rb#7 @@ -2211,7 +2211,7 @@ class Sprockets::Environment < ::Sprockets::Base # faster. This behavior is ideal in production since the file # system only changes between deploys. # - # source://sprockets//lib/sprockets/environment.rb#25 + # source://sprockets//lib/sprockets/environment.rb#28 def index; end # source://sprockets//lib/sprockets/environment.rb#42 @@ -2778,7 +2778,7 @@ class Sprockets::Manifest # Returns the value of attribute directory. # - # source://sprockets//lib/sprockets/manifest.rb#80 + # source://sprockets//lib/sprockets/manifest.rb#81 def dir; end # Returns the value of attribute directory. @@ -2828,7 +2828,7 @@ class Sprockets::Manifest # Returns String path to manifest.json file. # - # source://sprockets//lib/sprockets/manifest.rb#77 + # source://sprockets//lib/sprockets/manifest.rb#78 def path; end # Removes file from directory and from manifest. `filename` must @@ -3462,7 +3462,7 @@ module Sprockets::Processing # Preprocessors are ran before Postprocessors and Engine # processors. # - # source://sprockets//lib/sprockets/processing.rb#33 + # source://sprockets//lib/sprockets/processing.rb#36 def processors; end # Public: Register bundle metadata reducer function. @@ -3539,7 +3539,7 @@ module Sprockets::Processing # input[:data].gsub(...) # end # - # source://sprockets//lib/sprockets/processing.rb#53 + # source://sprockets//lib/sprockets/processing.rb#57 def register_processor(*args, &block); end # Remove Bundle Processor `klass` for `mime_type`. @@ -3567,7 +3567,7 @@ module Sprockets::Processing # # unregister_preprocessor 'text/css', Sprockets::DirectiveProcessor # - # source://sprockets//lib/sprockets/processing.rb#78 + # source://sprockets//lib/sprockets/processing.rb#82 def unregister_processor(*args); end protected @@ -4705,41 +4705,62 @@ class Sprockets::Transformers::Transformer < ::Struct # Returns the value of attribute from # # @return [Object] the current value of from + # + # source://sprockets//lib/sprockets/transformers.rb#22 def from; end # Sets the attribute from # # @param value [Object] the value to set the attribute from to. # @return [Object] the newly set value + # + # source://sprockets//lib/sprockets/transformers.rb#22 def from=(_); end # Returns the value of attribute proc # # @return [Object] the current value of proc + # + # source://sprockets//lib/sprockets/transformers.rb#22 def proc; end # Sets the attribute proc # # @param value [Object] the value to set the attribute proc to. # @return [Object] the newly set value + # + # source://sprockets//lib/sprockets/transformers.rb#22 def proc=(_); end # Returns the value of attribute to # # @return [Object] the current value of to + # + # source://sprockets//lib/sprockets/transformers.rb#22 def to; end # Sets the attribute to # # @param value [Object] the value to set the attribute to to. # @return [Object] the newly set value + # + # source://sprockets//lib/sprockets/transformers.rb#22 def to=(_); end class << self + # source://sprockets//lib/sprockets/transformers.rb#22 def [](*_arg0); end + + # source://sprockets//lib/sprockets/transformers.rb#22 def inspect; end + + # source://sprockets//lib/sprockets/transformers.rb#22 def keyword_init?; end + + # source://sprockets//lib/sprockets/transformers.rb#22 def members; end + + # source://sprockets//lib/sprockets/transformers.rb#22 def new(*_arg0); end end end @@ -4859,7 +4880,7 @@ module Sprockets::URIUtils # # Returns String URI. # - # source://sprockets//lib/sprockets/uri_utils.rb#114 + # source://sprockets//lib/sprockets/uri_utils.rb#117 def build_asset_uri(path, params = T.unsafe(nil)); end # Internal: Build file-digest dependency URI. @@ -4873,7 +4894,7 @@ module Sprockets::URIUtils # # Returns String URI. # - # source://sprockets//lib/sprockets/uri_utils.rb#148 + # source://sprockets//lib/sprockets/uri_utils.rb#151 def build_file_digest_uri(path); end # Internal: Serialize hash of params into query string. @@ -4882,21 +4903,21 @@ module Sprockets::URIUtils # # Returns String query or nil if empty. # - # source://sprockets//lib/sprockets/uri_utils.rb#157 + # source://sprockets//lib/sprockets/uri_utils.rb#160 def encode_uri_query_params(params); end # Internal: Join file: URI component parts into String. # # Returns String. # - # source://sprockets//lib/sprockets/uri_utils.rb#62 + # source://sprockets//lib/sprockets/uri_utils.rb#65 def join_file_uri(scheme, host, path, query); end # Internal: Join URI component parts into String. # # Returns String. # - # source://sprockets//lib/sprockets/uri_utils.rb#36 + # source://sprockets//lib/sprockets/uri_utils.rb#39 def join_uri(scheme, userinfo, host, port, registry, path, opaque, query, fragment); end # Internal: Parse Asset URI. @@ -4910,7 +4931,7 @@ module Sprockets::URIUtils # # Returns String path and Hash of symbolized parameters. # - # source://sprockets//lib/sprockets/uri_utils.rb#93 + # source://sprockets//lib/sprockets/uri_utils.rb#96 def parse_asset_uri(uri); end # Internal: Parse file-digest dependency URI. @@ -4924,7 +4945,7 @@ module Sprockets::URIUtils # # Returns String path. # - # source://sprockets//lib/sprockets/uri_utils.rb#128 + # source://sprockets//lib/sprockets/uri_utils.rb#131 def parse_file_digest_uri(uri); end # Internal: Parse query string into hash of params @@ -4933,7 +4954,7 @@ module Sprockets::URIUtils # # Return Hash of params. # - # source://sprockets//lib/sprockets/uri_utils.rb#182 + # source://sprockets//lib/sprockets/uri_utils.rb#185 def parse_uri_query_params(query); end # Internal: Parse file: URI into component parts. @@ -4942,7 +4963,7 @@ module Sprockets::URIUtils # # Returns [scheme, host, path, query]. # - # source://sprockets//lib/sprockets/uri_utils.rb#45 + # source://sprockets//lib/sprockets/uri_utils.rb#48 def split_file_uri(uri); end # Internal: Parse URI into component parts. @@ -4951,7 +4972,7 @@ module Sprockets::URIUtils # # Returns Array of components. # - # source://sprockets//lib/sprockets/uri_utils.rb#29 + # source://sprockets//lib/sprockets/uri_utils.rb#32 def split_uri(uri); end # Internal: Check if String is a valid Asset URI. @@ -4962,10 +4983,13 @@ module Sprockets::URIUtils # # @return [Boolean] # - # source://sprockets//lib/sprockets/uri_utils.rb#76 + # source://sprockets//lib/sprockets/uri_utils.rb#79 def valid_asset_uri?(str); end end +# source://sprockets//lib/sprockets/uri_utils.rb#24 +Sprockets::URIUtils::URI_PARSER = T.let(T.unsafe(nil), URI::RFC2396_Parser) + # source://sprockets//lib/sprockets/uglifier_compressor.rb#19 class Sprockets::UglifierCompressor # @return [UglifierCompressor] a new instance of UglifierCompressor diff --git a/sorbet/rbi/gems/sqlite3@2.6.0.rbi b/sorbet/rbi/gems/sqlite3@2.7.3.rbi similarity index 84% rename from sorbet/rbi/gems/sqlite3@2.6.0.rbi rename to sorbet/rbi/gems/sqlite3@2.7.3.rbi index 682fd7d4..6bb9854b 100644 --- a/sorbet/rbi/gems/sqlite3@2.6.0.rbi +++ b/sorbet/rbi/gems/sqlite3@2.7.3.rbi @@ -13,9 +13,16 @@ end # source://sqlite3//lib/sqlite3/constants.rb#1 module SQLite3 class << self + # source://sqlite3//lib/sqlite3.rb#6 def libversion; end + + # source://sqlite3//lib/sqlite3.rb#6 def sqlcipher?; end + + # source://sqlite3//lib/sqlite3.rb#6 def status(*_arg0); end + + # source://sqlite3//lib/sqlite3.rb#6 def threadsafe; end # Was sqlite3 compiled with thread safety on? @@ -34,11 +41,19 @@ class SQLite3::AbortException < ::SQLite3::Exception; end class SQLite3::AuthorizationException < ::SQLite3::Exception; end class SQLite3::Backup + # source://sqlite3//lib/sqlite3.rb#6 def initialize(_arg0, _arg1, _arg2, _arg3); end + # source://sqlite3//lib/sqlite3.rb#6 def finish; end + + # source://sqlite3//lib/sqlite3.rb#6 def pagecount; end + + # source://sqlite3//lib/sqlite3.rb#6 def remaining; end + + # source://sqlite3//lib/sqlite3.rb#6 def step(_arg0); end end @@ -499,8 +514,9 @@ class SQLite3::CorruptException < ::SQLite3::Exception; end # extensions: # - .sqlpkg/nalgeon/crypto/crypto.so # a filesystem path # - <%= SQLean::UUID.to_path %> # or ruby code returning a path +# - SQLean::Crypto # Rails 8.1+ accepts the name of a constant that responds to `to_path` # -# source://sqlite3//lib/sqlite3/database.rb#86 +# source://sqlite3//lib/sqlite3/database.rb#87 class SQLite3::Database include ::SQLite3::Pragmas @@ -526,7 +542,7 @@ class SQLite3::Database # # @return [Database] a new instance of Database # - # source://sqlite3//lib/sqlite3/database.rb#141 + # source://sqlite3//lib/sqlite3/database.rb#142 def initialize(file, options = T.unsafe(nil), zvfs = T.unsafe(nil)); end # Installs (or removes) a block that will be invoked for every access @@ -534,17 +550,19 @@ class SQLite3::Database # is allowed to proceed. Returning 1 causes an authorization error to # occur, and returning 2 causes the access to be silently denied. # - # source://sqlite3//lib/sqlite3/database.rb#206 + # source://sqlite3//lib/sqlite3/database.rb#207 def authorizer(&block); end + # source://sqlite3//lib/sqlite3.rb#6 def authorizer=(_arg0); end # Given a statement, return a result set. # This is not intended for general consumption # - # source://sqlite3//lib/sqlite3/database.rb#789 + # source://sqlite3//lib/sqlite3/database.rb#790 def build_result_set(stmt); end + # source://sqlite3//lib/sqlite3.rb#6 def busy_handler(*_arg0); end # Sets a #busy_handler that releases the GVL between retries, @@ -552,19 +570,30 @@ class SQLite3::Database # This is an alternative to #busy_timeout, which holds the GVL # while SQLite sleeps and retries. # - # source://sqlite3//lib/sqlite3/database.rb#692 + # source://sqlite3//lib/sqlite3/database.rb#693 def busy_handler_timeout=(milliseconds); end + # source://sqlite3//lib/sqlite3/database.rb#387 def busy_timeout(_arg0); end + + # source://sqlite3//lib/sqlite3.rb#6 def busy_timeout=(_arg0); end + + # source://sqlite3//lib/sqlite3.rb#6 def changes; end + + # source://sqlite3//lib/sqlite3.rb#6 def close; end + + # source://sqlite3//lib/sqlite3.rb#6 def closed?; end + + # source://sqlite3//lib/sqlite3.rb#6 def collation(_arg0, _arg1); end # Returns the value of attribute collations. # - # source://sqlite3//lib/sqlite3/database.rb#87 + # source://sqlite3//lib/sqlite3/database.rb#88 def collations; end # Commits the current transaction. If there is no current transaction, @@ -572,9 +601,10 @@ class SQLite3::Database # to allow it to be used in idioms like # abort? and rollback or commit. # - # source://sqlite3//lib/sqlite3/database.rb#668 + # source://sqlite3//lib/sqlite3/database.rb#669 def commit; end + # source://sqlite3//lib/sqlite3.rb#6 def complete?(_arg0); end # Creates a new aggregate function for use in SQL statements. Aggregate @@ -614,7 +644,7 @@ class SQLite3::Database # See also #create_aggregate_handler for a more object-oriented approach to # aggregate functions. # - # source://sqlite3//lib/sqlite3/database.rb#456 + # source://sqlite3//lib/sqlite3/database.rb#457 def create_aggregate(name, arity, step = T.unsafe(nil), finalize = T.unsafe(nil), text_rep = T.unsafe(nil), &block); end # This is another approach to creating an aggregate function (see @@ -665,7 +695,7 @@ class SQLite3::Database # db.create_aggregate_handler( LengthsAggregateHandler ) # puts db.get_first_value( "select lengths(name) from A" ) # - # source://sqlite3//lib/sqlite3/database.rb#554 + # source://sqlite3//lib/sqlite3/database.rb#555 def create_aggregate_handler(handler); end # Creates a new function for use in SQL statements. It will be added as @@ -692,7 +722,7 @@ class SQLite3::Database # # puts db.get_first_value( "select maim(name) from table" ) # - # source://sqlite3//lib/sqlite3/database.rb#411 + # source://sqlite3//lib/sqlite3/database.rb#412 def create_function(name, arity, text_rep = T.unsafe(nil), &block); end # Define an aggregate function named +name+ using a object template @@ -706,21 +736,29 @@ class SQLite3::Database # already provide a suitable +clone+. # The functions arity is the arity of the +step+ method. # - # source://sqlite3//lib/sqlite3/database.rb#591 + # source://sqlite3//lib/sqlite3/database.rb#592 def define_aggregator(name, aggregator); end + # source://sqlite3//lib/sqlite3.rb#6 def define_function(_arg0); end + + # source://sqlite3//lib/sqlite3.rb#6 def define_function_with_flags(_arg0, _arg1); end + + # source://sqlite3//lib/sqlite3.rb#6 def enable_load_extension(_arg0); end # call-seq: db.encoding # # Fetch the encoding set on this database # - # source://sqlite3//lib/sqlite3/database.rb#198 + # source://sqlite3//lib/sqlite3/database.rb#199 def encoding; end + # source://sqlite3//lib/sqlite3.rb#6 def errcode; end + + # source://sqlite3//lib/sqlite3.rb#6 def errmsg; end # Executes the given SQL statement. If additional parameters are given, @@ -738,7 +776,7 @@ class SQLite3::Database # See also #execute2, #query, and #execute_batch for additional ways of # executing statements. # - # source://sqlite3//lib/sqlite3/database.rb#247 + # source://sqlite3//lib/sqlite3/database.rb#248 def execute(sql, bind_vars = T.unsafe(nil), &block); end # Executes the given SQL statement, exactly as with #execute. However, the @@ -752,7 +790,7 @@ class SQLite3::Database # See also #execute, #query, and #execute_batch for additional ways of # executing statements. # - # source://sqlite3//lib/sqlite3/database.rb#272 + # source://sqlite3//lib/sqlite3/database.rb#273 def execute2(sql, *bind_vars); end # Executes all SQL statements in the given string. By contrast, the other @@ -766,7 +804,7 @@ class SQLite3::Database # See also #execute_batch2 for additional ways of # executing statements. # - # source://sqlite3//lib/sqlite3/database.rb#296 + # source://sqlite3//lib/sqlite3/database.rb#297 def execute_batch(sql, bind_vars = T.unsafe(nil)); end # Executes all SQL statements in the given string. By contrast, the other @@ -783,16 +821,17 @@ class SQLite3::Database # See also #execute_batch for additional ways of # executing statements. # - # source://sqlite3//lib/sqlite3/database.rb#329 + # source://sqlite3//lib/sqlite3/database.rb#330 def execute_batch2(sql, &block); end + # source://sqlite3//lib/sqlite3.rb#6 def extended_result_codes=(_arg0); end # Returns the filename for the database named +db_name+. +db_name+ defaults # to "main". Main return `nil` or an empty string if the database is # temporary or in-memory. # - # source://sqlite3//lib/sqlite3/database.rb#229 + # source://sqlite3//lib/sqlite3/database.rb#230 def filename(db_name = T.unsafe(nil)); end # A convenience method for obtaining the first row of a result set, and @@ -800,7 +839,7 @@ class SQLite3::Database # # See also #get_first_value. # - # source://sqlite3//lib/sqlite3/database.rb#368 + # source://sqlite3//lib/sqlite3/database.rb#369 def get_first_row(sql, *bind_vars); end # A convenience method for obtaining the first value of the first row of a @@ -809,15 +848,18 @@ class SQLite3::Database # # See also #get_first_row. # - # source://sqlite3//lib/sqlite3/database.rb#377 + # source://sqlite3//lib/sqlite3/database.rb#378 def get_first_value(sql, *bind_vars); end # @raise [TypeError] # - # source://sqlite3//lib/sqlite3/database.rb#737 + # source://sqlite3//lib/sqlite3/database.rb#738 def initialize_extensions(extensions); end + # source://sqlite3//lib/sqlite3.rb#6 def interrupt; end + + # source://sqlite3//lib/sqlite3.rb#6 def last_insert_row_id; end # call-seq: @@ -841,7 +883,7 @@ class SQLite3::Database # # db.load_extension(SQLean::VSV) # - # source://sqlite3//lib/sqlite3/database.rb#728 + # source://sqlite3//lib/sqlite3/database.rb#729 def load_extension(extension_specifier); end # Returns a Statement object representing the given SQL. This does not @@ -849,7 +891,7 @@ class SQLite3::Database # # The Statement can then be executed using Statement#execute. # - # source://sqlite3//lib/sqlite3/database.rb#215 + # source://sqlite3//lib/sqlite3/database.rb#216 def prepare(sql); end # This is a convenience method for creating a statement, binding @@ -864,7 +906,7 @@ class SQLite3::Database # with a block, +close+ will be invoked implicitly when the block # terminates. # - # source://sqlite3//lib/sqlite3/database.rb#351 + # source://sqlite3//lib/sqlite3/database.rb#352 def query(sql, bind_vars = T.unsafe(nil)); end # Returns +true+ if the database has been open in readonly mode @@ -872,19 +914,19 @@ class SQLite3::Database # # @return [Boolean] # - # source://sqlite3//lib/sqlite3/database.rb#684 + # source://sqlite3//lib/sqlite3/database.rb#685 def readonly?; end # A boolean that indicates whether rows in result sets should be returned # as hashes or not. By default, rows are returned as arrays. # - # source://sqlite3//lib/sqlite3/database.rb#119 + # source://sqlite3//lib/sqlite3/database.rb#120 def results_as_hash; end # A boolean that indicates whether rows in result sets should be returned # as hashes or not. By default, rows are returned as arrays. # - # source://sqlite3//lib/sqlite3/database.rb#119 + # source://sqlite3//lib/sqlite3/database.rb#120 def results_as_hash=(_arg0); end # Rolls the current transaction back. If there is no current transaction, @@ -892,11 +934,16 @@ class SQLite3::Database # to allow it to be used in idioms like # abort? and rollback or commit. # - # source://sqlite3//lib/sqlite3/database.rb#677 + # source://sqlite3//lib/sqlite3/database.rb#678 def rollback; end + # source://sqlite3//lib/sqlite3.rb#6 def statement_timeout=(_arg0); end + + # source://sqlite3//lib/sqlite3.rb#6 def total_changes; end + + # source://sqlite3//lib/sqlite3.rb#6 def trace(*_arg0); end # Begins a new transaction. Note that nested transactions are not allowed @@ -918,20 +965,36 @@ class SQLite3::Database # transaction explicitly, either by calling #commit, or by calling # #rollback. # - # source://sqlite3//lib/sqlite3/database.rb#645 + # source://sqlite3//lib/sqlite3/database.rb#646 def transaction(mode = T.unsafe(nil)); end + # source://sqlite3//lib/sqlite3.rb#6 def transaction_active?; end private + # source://sqlite3//lib/sqlite3.rb#6 def db_filename(_arg0); end + + # source://sqlite3//lib/sqlite3.rb#6 def define_aggregator2(_arg0, _arg1); end + + # source://sqlite3//lib/sqlite3.rb#6 def disable_quirk_mode; end + + # source://sqlite3//lib/sqlite3.rb#6 def discard; end + + # source://sqlite3//lib/sqlite3.rb#6 def exec_batch(_arg0, _arg1); end + + # source://sqlite3//lib/sqlite3.rb#6 def load_extension_internal(_arg0); end + + # source://sqlite3//lib/sqlite3.rb#6 def open16(_arg0); end + + # source://sqlite3//lib/sqlite3.rb#6 def open_v2(_arg0, _arg1, _arg2); end class << self @@ -939,14 +1002,14 @@ class SQLite3::Database # With block, like new closes the database at the end, but unlike new # returns the result of the block instead of the database instance. # - # source://sqlite3//lib/sqlite3/database.rb#95 + # source://sqlite3//lib/sqlite3/database.rb#96 def open(*args); end # Quotes the given string, making it safe to use in an SQL statement. # It replaces all instances of the single-quote character with two # single-quote characters. The modified string is returned. # - # source://sqlite3//lib/sqlite3/database.rb#112 + # source://sqlite3//lib/sqlite3/database.rb#113 def quote(string); end end end @@ -960,7 +1023,7 @@ end # This class will almost _always_ be instantiated indirectly, by working # with the create methods mentioned above. # -# source://sqlite3//lib/sqlite3/database.rb#761 +# source://sqlite3//lib/sqlite3/database.rb#762 class SQLite3::Database::FunctionProxy # Create a new FunctionProxy that encapsulates the given +func+ object. # If context is non-nil, the functions context will be set to that. If @@ -969,31 +1032,31 @@ class SQLite3::Database::FunctionProxy # # @return [FunctionProxy] a new instance of FunctionProxy # - # source://sqlite3//lib/sqlite3/database.rb#768 + # source://sqlite3//lib/sqlite3/database.rb#769 def initialize; end # Returns the value with the given key from the context. This is only # available to aggregate functions. # - # source://sqlite3//lib/sqlite3/database.rb#775 + # source://sqlite3//lib/sqlite3/database.rb#776 def [](key); end # Sets the value with the given key in the context. This is only # available to aggregate functions. # - # source://sqlite3//lib/sqlite3/database.rb#781 + # source://sqlite3//lib/sqlite3/database.rb#782 def []=(key, value); end # Returns the value of attribute result. # - # source://sqlite3//lib/sqlite3/database.rb#762 + # source://sqlite3//lib/sqlite3/database.rb#763 def result; end # Sets the attribute result # # @param value the value to set the attribute result to. # - # source://sqlite3//lib/sqlite3/database.rb#762 + # source://sqlite3//lib/sqlite3/database.rb#763 def result=(_arg0); end end @@ -1062,7 +1125,7 @@ class SQLite3::FullException < ::SQLite3::Exception; end # source://sqlite3//lib/sqlite3/resultset.rb#93 class SQLite3::HashResultSet < ::SQLite3::ResultSet - # source://sqlite3//lib/sqlite3/resultset.rb#85 + # source://sqlite3//lib/sqlite3/resultset.rb#94 def next; end end @@ -1102,228 +1165,228 @@ class SQLite3::PermissionException < ::SQLite3::Exception; end # For a detailed description of these pragmas, see the SQLite3 documentation # at http://sqlite.org/pragma.html. # -# source://sqlite3//lib/sqlite3/pragmas.rb#9 +# source://sqlite3//lib/sqlite3/pragmas.rb#11 module SQLite3::Pragmas - # source://sqlite3//lib/sqlite3/pragmas.rb#101 + # source://sqlite3//lib/sqlite3/pragmas.rb#143 def application_id; end - # source://sqlite3//lib/sqlite3/pragmas.rb#105 + # source://sqlite3//lib/sqlite3/pragmas.rb#147 def application_id=(integer); end - # source://sqlite3//lib/sqlite3/pragmas.rb#109 + # source://sqlite3//lib/sqlite3/pragmas.rb#151 def auto_vacuum; end - # source://sqlite3//lib/sqlite3/pragmas.rb#113 + # source://sqlite3//lib/sqlite3/pragmas.rb#155 def auto_vacuum=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#117 + # source://sqlite3//lib/sqlite3/pragmas.rb#159 def automatic_index; end - # source://sqlite3//lib/sqlite3/pragmas.rb#121 + # source://sqlite3//lib/sqlite3/pragmas.rb#163 def automatic_index=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#125 + # source://sqlite3//lib/sqlite3/pragmas.rb#167 def busy_timeout; end - # source://sqlite3//lib/sqlite3/pragmas.rb#129 + # source://sqlite3//lib/sqlite3/pragmas.rb#171 def busy_timeout=(milliseconds); end - # source://sqlite3//lib/sqlite3/pragmas.rb#133 + # source://sqlite3//lib/sqlite3/pragmas.rb#175 def cache_size; end - # source://sqlite3//lib/sqlite3/pragmas.rb#137 + # source://sqlite3//lib/sqlite3/pragmas.rb#179 def cache_size=(size); end - # source://sqlite3//lib/sqlite3/pragmas.rb#141 + # source://sqlite3//lib/sqlite3/pragmas.rb#183 def cache_spill; end - # source://sqlite3//lib/sqlite3/pragmas.rb#145 + # source://sqlite3//lib/sqlite3/pragmas.rb#187 def cache_spill=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#149 + # source://sqlite3//lib/sqlite3/pragmas.rb#191 def case_sensitive_like=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#153 + # source://sqlite3//lib/sqlite3/pragmas.rb#195 def cell_size_check; end - # source://sqlite3//lib/sqlite3/pragmas.rb#157 + # source://sqlite3//lib/sqlite3/pragmas.rb#199 def cell_size_check=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#161 + # source://sqlite3//lib/sqlite3/pragmas.rb#203 def checkpoint_fullfsync; end - # source://sqlite3//lib/sqlite3/pragmas.rb#165 + # source://sqlite3//lib/sqlite3/pragmas.rb#207 def checkpoint_fullfsync=(mode); end # :yields: row # - # source://sqlite3//lib/sqlite3/pragmas.rb#169 + # source://sqlite3//lib/sqlite3/pragmas.rb#211 def collation_list(&block); end # :yields: row # - # source://sqlite3//lib/sqlite3/pragmas.rb#173 + # source://sqlite3//lib/sqlite3/pragmas.rb#215 def compile_options(&block); end - # source://sqlite3//lib/sqlite3/pragmas.rb#177 + # source://sqlite3//lib/sqlite3/pragmas.rb#219 def count_changes; end - # source://sqlite3//lib/sqlite3/pragmas.rb#181 + # source://sqlite3//lib/sqlite3/pragmas.rb#223 def count_changes=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#185 + # source://sqlite3//lib/sqlite3/pragmas.rb#227 def data_version; end # :yields: row # - # source://sqlite3//lib/sqlite3/pragmas.rb#189 + # source://sqlite3//lib/sqlite3/pragmas.rb#231 def database_list(&block); end - # source://sqlite3//lib/sqlite3/pragmas.rb#193 + # source://sqlite3//lib/sqlite3/pragmas.rb#235 def default_cache_size; end - # source://sqlite3//lib/sqlite3/pragmas.rb#197 + # source://sqlite3//lib/sqlite3/pragmas.rb#239 def default_cache_size=(size); end - # source://sqlite3//lib/sqlite3/pragmas.rb#201 + # source://sqlite3//lib/sqlite3/pragmas.rb#243 def default_synchronous; end - # source://sqlite3//lib/sqlite3/pragmas.rb#205 + # source://sqlite3//lib/sqlite3/pragmas.rb#247 def default_synchronous=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#209 + # source://sqlite3//lib/sqlite3/pragmas.rb#251 def default_temp_store; end - # source://sqlite3//lib/sqlite3/pragmas.rb#213 + # source://sqlite3//lib/sqlite3/pragmas.rb#255 def default_temp_store=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#217 + # source://sqlite3//lib/sqlite3/pragmas.rb#259 def defer_foreign_keys; end - # source://sqlite3//lib/sqlite3/pragmas.rb#221 + # source://sqlite3//lib/sqlite3/pragmas.rb#263 def defer_foreign_keys=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#225 + # source://sqlite3//lib/sqlite3/pragmas.rb#267 def encoding; end - # source://sqlite3//lib/sqlite3/pragmas.rb#229 + # source://sqlite3//lib/sqlite3/pragmas.rb#271 def encoding=(mode); end # :yields: row # - # source://sqlite3//lib/sqlite3/pragmas.rb#233 + # source://sqlite3//lib/sqlite3/pragmas.rb#275 def foreign_key_check(*table, &block); end # :yields: row # - # source://sqlite3//lib/sqlite3/pragmas.rb#237 + # source://sqlite3//lib/sqlite3/pragmas.rb#279 def foreign_key_list(table, &block); end - # source://sqlite3//lib/sqlite3/pragmas.rb#241 + # source://sqlite3//lib/sqlite3/pragmas.rb#283 def foreign_keys; end - # source://sqlite3//lib/sqlite3/pragmas.rb#245 + # source://sqlite3//lib/sqlite3/pragmas.rb#287 def foreign_keys=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#249 + # source://sqlite3//lib/sqlite3/pragmas.rb#291 def freelist_count; end - # source://sqlite3//lib/sqlite3/pragmas.rb#253 + # source://sqlite3//lib/sqlite3/pragmas.rb#295 def full_column_names; end - # source://sqlite3//lib/sqlite3/pragmas.rb#257 + # source://sqlite3//lib/sqlite3/pragmas.rb#299 def full_column_names=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#261 + # source://sqlite3//lib/sqlite3/pragmas.rb#303 def fullfsync; end - # source://sqlite3//lib/sqlite3/pragmas.rb#265 + # source://sqlite3//lib/sqlite3/pragmas.rb#307 def fullfsync=(mode); end # Returns +true+ or +false+ depending on the value of the named pragma. # - # source://sqlite3//lib/sqlite3/pragmas.rb#11 + # source://sqlite3//lib/sqlite3/pragmas.rb#13 def get_boolean_pragma(name); end # Return the value of the given pragma. # - # source://sqlite3//lib/sqlite3/pragmas.rb#51 + # source://sqlite3//lib/sqlite3/pragmas.rb#53 def get_enum_pragma(name); end # Returns the value of the given pragma as an integer. # - # source://sqlite3//lib/sqlite3/pragmas.rb#69 + # source://sqlite3//lib/sqlite3/pragmas.rb#80 def get_int_pragma(name); end # Requests the given pragma (and parameters), and if the block is given, # each row of the result set will be yielded to it. Otherwise, the results # are returned as an array. # - # source://sqlite3//lib/sqlite3/pragmas.rb#41 + # source://sqlite3//lib/sqlite3/pragmas.rb#43 def get_query_pragma(name, *params, &block); end - # source://sqlite3//lib/sqlite3/pragmas.rb#269 + # source://sqlite3//lib/sqlite3/pragmas.rb#311 def ignore_check_constraints=(mode); end # :yields: row # - # source://sqlite3//lib/sqlite3/pragmas.rb#273 + # source://sqlite3//lib/sqlite3/pragmas.rb#315 def incremental_vacuum(pages, &block); end # :yields: row # - # source://sqlite3//lib/sqlite3/pragmas.rb#277 + # source://sqlite3//lib/sqlite3/pragmas.rb#319 def index_info(index, &block); end # :yields: row # - # source://sqlite3//lib/sqlite3/pragmas.rb#281 + # source://sqlite3//lib/sqlite3/pragmas.rb#323 def index_list(table, &block); end # :yields: row # - # source://sqlite3//lib/sqlite3/pragmas.rb#285 + # source://sqlite3//lib/sqlite3/pragmas.rb#327 def index_xinfo(index, &block); end # :yields: row # - # source://sqlite3//lib/sqlite3/pragmas.rb#289 + # source://sqlite3//lib/sqlite3/pragmas.rb#331 def integrity_check(*num_errors, &block); end - # source://sqlite3//lib/sqlite3/pragmas.rb#293 + # source://sqlite3//lib/sqlite3/pragmas.rb#335 def journal_mode; end - # source://sqlite3//lib/sqlite3/pragmas.rb#297 + # source://sqlite3//lib/sqlite3/pragmas.rb#339 def journal_mode=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#301 + # source://sqlite3//lib/sqlite3/pragmas.rb#343 def journal_size_limit; end - # source://sqlite3//lib/sqlite3/pragmas.rb#305 + # source://sqlite3//lib/sqlite3/pragmas.rb#347 def journal_size_limit=(size); end - # source://sqlite3//lib/sqlite3/pragmas.rb#309 + # source://sqlite3//lib/sqlite3/pragmas.rb#351 def legacy_file_format; end - # source://sqlite3//lib/sqlite3/pragmas.rb#313 + # source://sqlite3//lib/sqlite3/pragmas.rb#355 def legacy_file_format=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#317 + # source://sqlite3//lib/sqlite3/pragmas.rb#359 def locking_mode; end - # source://sqlite3//lib/sqlite3/pragmas.rb#321 + # source://sqlite3//lib/sqlite3/pragmas.rb#363 def locking_mode=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#325 + # source://sqlite3//lib/sqlite3/pragmas.rb#367 def max_page_count; end - # source://sqlite3//lib/sqlite3/pragmas.rb#329 + # source://sqlite3//lib/sqlite3/pragmas.rb#371 def max_page_count=(size); end - # source://sqlite3//lib/sqlite3/pragmas.rb#333 + # source://sqlite3//lib/sqlite3/pragmas.rb#375 def mmap_size; end - # source://sqlite3//lib/sqlite3/pragmas.rb#337 + # source://sqlite3//lib/sqlite3/pragmas.rb#379 def mmap_size=(size); end # Attempt to optimize the database. @@ -1333,73 +1396,73 @@ module SQLite3::Pragmas # # See https://www.sqlite.org/pragma.html#pragma_optimize for more information. # - # source://sqlite3//lib/sqlite3/pragmas.rb#347 + # source://sqlite3//lib/sqlite3/pragmas.rb#389 def optimize(bitmask = T.unsafe(nil)); end - # source://sqlite3//lib/sqlite3/pragmas.rb#355 + # source://sqlite3//lib/sqlite3/pragmas.rb#397 def page_count; end - # source://sqlite3//lib/sqlite3/pragmas.rb#359 + # source://sqlite3//lib/sqlite3/pragmas.rb#401 def page_size; end - # source://sqlite3//lib/sqlite3/pragmas.rb#363 + # source://sqlite3//lib/sqlite3/pragmas.rb#405 def page_size=(size); end - # source://sqlite3//lib/sqlite3/pragmas.rb#367 + # source://sqlite3//lib/sqlite3/pragmas.rb#409 def parser_trace=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#371 + # source://sqlite3//lib/sqlite3/pragmas.rb#413 def query_only; end - # source://sqlite3//lib/sqlite3/pragmas.rb#375 + # source://sqlite3//lib/sqlite3/pragmas.rb#417 def query_only=(mode); end # :yields: row # - # source://sqlite3//lib/sqlite3/pragmas.rb#379 + # source://sqlite3//lib/sqlite3/pragmas.rb#421 def quick_check(*num_errors, &block); end - # source://sqlite3//lib/sqlite3/pragmas.rb#383 + # source://sqlite3//lib/sqlite3/pragmas.rb#425 def read_uncommitted; end - # source://sqlite3//lib/sqlite3/pragmas.rb#387 + # source://sqlite3//lib/sqlite3/pragmas.rb#429 def read_uncommitted=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#391 + # source://sqlite3//lib/sqlite3/pragmas.rb#433 def recursive_triggers; end - # source://sqlite3//lib/sqlite3/pragmas.rb#395 + # source://sqlite3//lib/sqlite3/pragmas.rb#437 def recursive_triggers=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#399 + # source://sqlite3//lib/sqlite3/pragmas.rb#441 def reverse_unordered_selects; end - # source://sqlite3//lib/sqlite3/pragmas.rb#403 + # source://sqlite3//lib/sqlite3/pragmas.rb#445 def reverse_unordered_selects=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#407 + # source://sqlite3//lib/sqlite3/pragmas.rb#449 def schema_cookie; end - # source://sqlite3//lib/sqlite3/pragmas.rb#411 + # source://sqlite3//lib/sqlite3/pragmas.rb#453 def schema_cookie=(cookie); end - # source://sqlite3//lib/sqlite3/pragmas.rb#415 + # source://sqlite3//lib/sqlite3/pragmas.rb#457 def schema_version; end - # source://sqlite3//lib/sqlite3/pragmas.rb#419 + # source://sqlite3//lib/sqlite3/pragmas.rb#461 def schema_version=(version); end - # source://sqlite3//lib/sqlite3/pragmas.rb#423 + # source://sqlite3//lib/sqlite3/pragmas.rb#465 def secure_delete; end - # source://sqlite3//lib/sqlite3/pragmas.rb#427 + # source://sqlite3//lib/sqlite3/pragmas.rb#469 def secure_delete=(mode); end # Sets the given pragma to the given boolean value. The value itself # may be +true+ or +false+, or any other commonly used string or # integer that represents truth. # - # source://sqlite3//lib/sqlite3/pragmas.rb#18 + # source://sqlite3//lib/sqlite3/pragmas.rb#20 def set_boolean_pragma(name, mode); end # Set the value of the given pragma to +mode+. The +mode+ parameter must @@ -1408,150 +1471,153 @@ module SQLite3::Pragmas # have duplicate values. See #synchronous, #default_synchronous, # #temp_store, and #default_temp_store for usage examples. # - # source://sqlite3//lib/sqlite3/pragmas.rb#60 + # source://sqlite3//lib/sqlite3/pragmas.rb#62 def set_enum_pragma(name, mode, enums); end # Set the value of the given pragma to the integer value of the +value+ # parameter. # - # source://sqlite3//lib/sqlite3/pragmas.rb#75 + # source://sqlite3//lib/sqlite3/pragmas.rb#86 def set_int_pragma(name, value); end - # source://sqlite3//lib/sqlite3/pragmas.rb#431 + # source://sqlite3//lib/sqlite3/pragmas.rb#473 def short_column_names; end - # source://sqlite3//lib/sqlite3/pragmas.rb#435 + # source://sqlite3//lib/sqlite3/pragmas.rb#477 def short_column_names=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#439 + # source://sqlite3//lib/sqlite3/pragmas.rb#481 def shrink_memory; end - # source://sqlite3//lib/sqlite3/pragmas.rb#443 + # source://sqlite3//lib/sqlite3/pragmas.rb#485 def soft_heap_limit; end - # source://sqlite3//lib/sqlite3/pragmas.rb#447 + # source://sqlite3//lib/sqlite3/pragmas.rb#489 def soft_heap_limit=(mode); end # :yields: row # - # source://sqlite3//lib/sqlite3/pragmas.rb#451 + # source://sqlite3//lib/sqlite3/pragmas.rb#493 def stats(&block); end - # source://sqlite3//lib/sqlite3/pragmas.rb#455 + # source://sqlite3//lib/sqlite3/pragmas.rb#497 def synchronous; end - # source://sqlite3//lib/sqlite3/pragmas.rb#459 + # source://sqlite3//lib/sqlite3/pragmas.rb#501 def synchronous=(mode); end # Returns information about +table+. Yields each row of table information # if a block is provided. # - # source://sqlite3//lib/sqlite3/pragmas.rb#538 + # source://sqlite3//lib/sqlite3/pragmas.rb#580 def table_info(table); end - # source://sqlite3//lib/sqlite3/pragmas.rb#463 + # source://sqlite3//lib/sqlite3/pragmas.rb#505 def temp_store; end - # source://sqlite3//lib/sqlite3/pragmas.rb#467 + # source://sqlite3//lib/sqlite3/pragmas.rb#509 def temp_store=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#471 + # source://sqlite3//lib/sqlite3/pragmas.rb#513 def threads; end - # source://sqlite3//lib/sqlite3/pragmas.rb#475 + # source://sqlite3//lib/sqlite3/pragmas.rb#517 def threads=(count); end - # source://sqlite3//lib/sqlite3/pragmas.rb#479 + # source://sqlite3//lib/sqlite3/pragmas.rb#521 def user_cookie; end - # source://sqlite3//lib/sqlite3/pragmas.rb#483 + # source://sqlite3//lib/sqlite3/pragmas.rb#525 def user_cookie=(cookie); end - # source://sqlite3//lib/sqlite3/pragmas.rb#487 + # source://sqlite3//lib/sqlite3/pragmas.rb#529 def user_version; end - # source://sqlite3//lib/sqlite3/pragmas.rb#491 + # source://sqlite3//lib/sqlite3/pragmas.rb#533 def user_version=(version); end - # source://sqlite3//lib/sqlite3/pragmas.rb#495 + # source://sqlite3//lib/sqlite3/pragmas.rb#537 def vdbe_addoptrace=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#499 + # source://sqlite3//lib/sqlite3/pragmas.rb#541 def vdbe_debug=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#503 + # source://sqlite3//lib/sqlite3/pragmas.rb#545 def vdbe_listing=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#507 + # source://sqlite3//lib/sqlite3/pragmas.rb#549 def vdbe_trace; end - # source://sqlite3//lib/sqlite3/pragmas.rb#511 + # source://sqlite3//lib/sqlite3/pragmas.rb#553 def vdbe_trace=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#515 + # source://sqlite3//lib/sqlite3/pragmas.rb#557 def wal_autocheckpoint; end - # source://sqlite3//lib/sqlite3/pragmas.rb#519 + # source://sqlite3//lib/sqlite3/pragmas.rb#561 def wal_autocheckpoint=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#523 + # source://sqlite3//lib/sqlite3/pragmas.rb#565 def wal_checkpoint; end - # source://sqlite3//lib/sqlite3/pragmas.rb#527 + # source://sqlite3//lib/sqlite3/pragmas.rb#569 def wal_checkpoint=(mode); end - # source://sqlite3//lib/sqlite3/pragmas.rb#531 + # source://sqlite3//lib/sqlite3/pragmas.rb#573 def writable_schema=(mode); end private + # source://sqlite3//lib/sqlite3/pragmas.rb#613 + def set_string_pragma(pragma_name, value, valid_values); end + # Since SQLite 3.3.8, the table_info pragma has returned the default # value of the row as a quoted SQL value. This method essentially # unquotes those values. # - # source://sqlite3//lib/sqlite3/pragmas.rb#588 + # source://sqlite3//lib/sqlite3/pragmas.rb#637 def tweak_default(hash); end # Compares two version strings # - # source://sqlite3//lib/sqlite3/pragmas.rb#572 + # source://sqlite3//lib/sqlite3/pragmas.rb#621 def version_compare(v1, v2); end end # The enumeration of valid auto vacuum modes. # -# source://sqlite3//lib/sqlite3/pragmas.rb#86 -SQLite3::Pragmas::AUTO_VACUUM_MODES = T.let(T.unsafe(nil), Array) +# source://sqlite3//lib/sqlite3/pragmas.rb#105 +SQLite3::Pragmas::AUTO_VACUUM_MODES = T.let(T.unsafe(nil), Hash) # The list of valid encodings. # -# source://sqlite3//lib/sqlite3/pragmas.rb#96 -SQLite3::Pragmas::ENCODINGS = T.let(T.unsafe(nil), Array) +# source://sqlite3//lib/sqlite3/pragmas.rb#128 +SQLite3::Pragmas::ENCODINGS = T.let(T.unsafe(nil), Hash) # The list of valid journaling modes. # -# source://sqlite3//lib/sqlite3/pragmas.rb#89 -SQLite3::Pragmas::JOURNAL_MODES = T.let(T.unsafe(nil), Array) +# source://sqlite3//lib/sqlite3/pragmas.rb#112 +SQLite3::Pragmas::JOURNAL_MODES = T.let(T.unsafe(nil), Hash) # The list of valid locking modes. # -# source://sqlite3//lib/sqlite3/pragmas.rb#93 -SQLite3::Pragmas::LOCKING_MODES = T.let(T.unsafe(nil), Array) +# source://sqlite3//lib/sqlite3/pragmas.rb#122 +SQLite3::Pragmas::LOCKING_MODES = T.let(T.unsafe(nil), Hash) # The enumeration of valid synchronous modes. # -# source://sqlite3//lib/sqlite3/pragmas.rb#80 -SQLite3::Pragmas::SYNCHRONOUS_MODES = T.let(T.unsafe(nil), Array) +# source://sqlite3//lib/sqlite3/pragmas.rb#91 +SQLite3::Pragmas::SYNCHRONOUS_MODES = T.let(T.unsafe(nil), Hash) # The enumeration of valid temp store modes. # -# source://sqlite3//lib/sqlite3/pragmas.rb#83 -SQLite3::Pragmas::TEMP_STORE_MODES = T.let(T.unsafe(nil), Array) +# source://sqlite3//lib/sqlite3/pragmas.rb#98 +SQLite3::Pragmas::TEMP_STORE_MODES = T.let(T.unsafe(nil), Hash) # The list of valid WAL checkpoints. # -# source://sqlite3//lib/sqlite3/pragmas.rb#99 -SQLite3::Pragmas::WAL_CHECKPOINTS = T.let(T.unsafe(nil), Array) +# source://sqlite3//lib/sqlite3/pragmas.rb#136 +SQLite3::Pragmas::WAL_CHECKPOINTS = T.let(T.unsafe(nil), Hash) # source://sqlite3//lib/sqlite3/errors.rb#65 class SQLite3::ProtocolException < ::SQLite3::Exception; end @@ -1690,7 +1756,10 @@ class SQLite3::Statement # source://sqlite3//lib/sqlite3/statement.rb#111 def active?; end + # source://sqlite3//lib/sqlite3.rb#6 def bind_param(_arg0, _arg1); end + + # source://sqlite3//lib/sqlite3.rb#6 def bind_parameter_count; end # Binds the given variables to the corresponding placeholders in the SQL @@ -1710,11 +1779,22 @@ class SQLite3::Statement # source://sqlite3//lib/sqlite3/statement.rb#52 def bind_params(*bind_vars); end + # source://sqlite3//lib/sqlite3.rb#6 def clear_bindings!; end + + # source://sqlite3//lib/sqlite3.rb#6 def close; end + + # source://sqlite3//lib/sqlite3.rb#6 def closed?; end + + # source://sqlite3//lib/sqlite3.rb#6 def column_count; end + + # source://sqlite3//lib/sqlite3.rb#6 def column_decltype(_arg0); end + + # source://sqlite3//lib/sqlite3.rb#6 def column_name(_arg0); end # Return an array of the column names for this statement. Note that this @@ -1724,6 +1804,7 @@ class SQLite3::Statement # source://sqlite3//lib/sqlite3/statement.rb#118 def columns; end + # source://sqlite3//lib/sqlite3.rb#6 def done?; end # source://sqlite3//lib/sqlite3/statement.rb#123 @@ -1767,7 +1848,10 @@ class SQLite3::Statement # source://sqlite3//lib/sqlite3/statement.rb#104 def execute!(*bind_vars, &block); end + # source://sqlite3//lib/sqlite3.rb#6 def expanded_sql; end + + # source://sqlite3//lib/sqlite3.rb#6 def memused; end # Performs a sanity check to ensure that the statement is not @@ -1783,7 +1867,10 @@ class SQLite3::Statement # source://sqlite3//lib/sqlite3/statement.rb#20 def remainder; end + # source://sqlite3//lib/sqlite3.rb#6 def reset!; end + + # source://sqlite3//lib/sqlite3.rb#6 def sql; end # Returns a Hash containing information about the statement. @@ -1809,6 +1896,7 @@ class SQLite3::Statement # source://sqlite3//lib/sqlite3/statement.rb#167 def stat(key = T.unsafe(nil)); end + # source://sqlite3//lib/sqlite3.rb#6 def step; end # Return an array of the data types for each column in this statement. Note @@ -1827,8 +1915,13 @@ class SQLite3::Statement # source://sqlite3//lib/sqlite3/statement.rb#180 def get_metadata; end + # source://sqlite3//lib/sqlite3.rb#6 def prepare(_arg0, _arg1); end + + # source://sqlite3//lib/sqlite3.rb#6 def stat_for(_arg0); end + + # source://sqlite3//lib/sqlite3.rb#6 def stats_as_hash; end end diff --git a/sorbet/rbi/gems/stackprof@0.2.27.rbi b/sorbet/rbi/gems/stackprof@0.2.27.rbi index 857c5f98..1a85b7a9 100644 --- a/sorbet/rbi/gems/stackprof@0.2.27.rbi +++ b/sorbet/rbi/gems/stackprof@0.2.27.rbi @@ -8,15 +8,27 @@ # source://stackprof//lib/stackprof.rb#20 module StackProf class << self + # source://stackprof//lib/stackprof.rb#4 def results(*_arg0); end + + # source://stackprof//lib/stackprof.rb#4 def run(*_arg0); end # @return [Boolean] + # + # source://stackprof//lib/stackprof.rb#4 def running?; end + # source://stackprof//lib/stackprof.rb#4 def sample; end + + # source://stackprof//lib/stackprof.rb#4 def start(*_arg0); end + + # source://stackprof//lib/stackprof.rb#4 def stop; end + + # source://stackprof//lib/stackprof.rb#4 def use_postponed_job!; end end end diff --git a/sorbet/rbi/gems/standard-custom@1.0.2.rbi b/sorbet/rbi/gems/standard-custom@1.0.2.rbi deleted file mode 100644 index 92187abb..00000000 --- a/sorbet/rbi/gems/standard-custom@1.0.2.rbi +++ /dev/null @@ -1,9 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `standard-custom` gem. -# Please instead update this file by running `bin/tapioca gem standard-custom`. - - -# THIS IS AN EMPTY RBI FILE. -# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/standard-performance@1.8.0.rbi b/sorbet/rbi/gems/standard-performance@1.8.0.rbi deleted file mode 100644 index 075414b1..00000000 --- a/sorbet/rbi/gems/standard-performance@1.8.0.rbi +++ /dev/null @@ -1,9 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `standard-performance` gem. -# Please instead update this file by running `bin/tapioca gem standard-performance`. - - -# THIS IS AN EMPTY RBI FILE. -# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/standard@1.49.0.rbi b/sorbet/rbi/gems/standard@1.49.0.rbi deleted file mode 100644 index 80a6f5ef..00000000 --- a/sorbet/rbi/gems/standard@1.49.0.rbi +++ /dev/null @@ -1,938 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `standard` gem. -# Please instead update this file by running `bin/tapioca gem standard`. - - -# source://standard//lib/standard/rubocop/ext.rb#1 -module RuboCop; end - -# source://standard//lib/standard/rubocop/ext.rb#17 -class RuboCop::CommentConfig - # @return [CommentConfig] a new instance of CommentConfig - # - # source://standard//lib/standard/rubocop/ext.rb#20 - def initialize(processed_source); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#63 - def comment_only_line?(line_number); end - - # source://rubocop-ast/1.44.0/lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def config(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#51 - def cop_disabled_line_ranges; end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#39 - def cop_enabled_at_line?(cop, line_number); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#47 - def cop_opted_in?(cop); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#55 - def extra_enabled_comments; end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#30 - def processed_source; end - - # source://rubocop-ast/1.44.0/lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def registry(*_arg0, **_arg1, &_arg2); end - - private - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#96 - def analyze; end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#124 - def analyze_cop(analysis, directive); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#144 - def analyze_disabled(analysis, directive); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#155 - def analyze_rest(analysis, directive); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#135 - def analyze_single_line(analysis, directive); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#164 - def cop_line_ranges(analysis); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#170 - def each_directive; end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#69 - def extra_enabled_comments_with_names(extras:, names:); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#190 - def handle_enable_all(directive, names, extras); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#204 - def handle_switch(directive, names, extras); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#115 - def inject_disabled_cops_directives(analyses); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#183 - def non_comment_token_line_numbers; end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#34 - def old_initialize(processed_source); end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#83 - def opt_in_cops; end - - # source://rubocop/1.75.2/lib/rubocop/comment_config.rb#179 - def qualified_cop_name(cop_name); end -end - -module RuboCop::Cop; end -module RuboCop::Cop::Lint; end - -# source://standard//lib/standard/rubocop/ext.rb#2 -class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base - # source://standard//lib/standard/rubocop/ext.rb#4 - def message(_); end - - # source://rubocop/1.75.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55 - def on_if(node); end - - # source://rubocop/1.75.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55 - def on_until(node); end - - # source://rubocop/1.75.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55 - def on_while(node); end - - private - - # source://rubocop/1.75.2/lib/rubocop/cop/lint/assignment_in_condition.rb#80 - def allowed_construct?(asgn_node); end - - # source://rubocop/1.75.2/lib/rubocop/cop/lint/assignment_in_condition.rb#84 - def conditional_assignment?(asgn_node); end - - # source://rubocop/1.75.2/lib/rubocop/cop/lint/assignment_in_condition.rb#88 - def skip_children?(asgn_node); end - - # source://rubocop/1.75.2/lib/rubocop/cop/lint/assignment_in_condition.rb#94 - def traverse_node(node, &block); end -end - -# source://standard//lib/standard/rubocop/ext.rb#9 -class RuboCop::DirectiveComment - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#46 - def initialize(comment, cop_registry = T.unsafe(nil)); end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#115 - def all_cops?; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#44 - def comment; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#120 - def cop_names; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#44 - def cop_registry; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#44 - def cops; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#131 - def department_names; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#145 - def directive_count; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#95 - def disabled?; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#110 - def disabled_all?; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#100 - def enabled?; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#105 - def enabled_all?; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#136 - def in_directive_department?(cop); end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#150 - def line_number; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#59 - def malformed?; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#77 - def match?(cop_names); end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#90 - def match_captures; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#67 - def missing_cop_name?; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#44 - def mode; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#141 - def overridden_by_department?(cop); end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#81 - def range; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#125 - def raw_cop_names; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#72 - def single_line?; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#54 - def start_with_marker?; end - - private - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#167 - def all_cop_names; end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#171 - def cop_names_for_department(department); end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#163 - def department?(name); end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#176 - def exclude_lint_department_cops(cops); end - - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#156 - def parsed_cop_names; end - - class << self - # source://rubocop/1.75.2/lib/rubocop/directive_comment.rb#40 - def before_comment(line); end - end -end - -# source://standard//lib/standard/rubocop/ext.rb#11 -RuboCop::DirectiveComment::DIRECTIVE_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp) - -# source://standard//lib/standard.rb#4 -module Standard; end - -# source://standard//lib/standard/builds_config.rb#8 -class Standard::BuildsConfig - # @return [BuildsConfig] a new instance of BuildsConfig - # - # source://standard//lib/standard/builds_config.rb#9 - def initialize; end - - # source://standard//lib/standard/builds_config.rb#16 - def call(argv, search_path = T.unsafe(nil)); end -end - -# source://standard//lib/standard/cli.rb#5 -class Standard::Cli - # @return [Cli] a new instance of Cli - # - # source://standard//lib/standard/cli.rb#6 - def initialize(argv); end - - # source://standard//lib/standard/cli.rb#12 - def run; end -end - -# source://standard//lib/standard/builds_config.rb#6 -class Standard::Config < ::Struct - # Returns the value of attribute paths - # - # @return [Object] the current value of paths - def paths; end - - # Sets the attribute paths - # - # @param value [Object] the value to set the attribute paths to. - # @return [Object] the newly set value - def paths=(_); end - - # Returns the value of attribute rubocop_config_store - # - # @return [Object] the current value of rubocop_config_store - def rubocop_config_store; end - - # Sets the attribute rubocop_config_store - # - # @param value [Object] the value to set the attribute rubocop_config_store to. - # @return [Object] the newly set value - def rubocop_config_store=(_); end - - # Returns the value of attribute rubocop_options - # - # @return [Object] the current value of rubocop_options - def rubocop_options; end - - # Sets the attribute rubocop_options - # - # @param value [Object] the value to set the attribute rubocop_options to. - # @return [Object] the newly set value - def rubocop_options=(_); end - - # Returns the value of attribute runner - # - # @return [Object] the current value of runner - def runner; end - - # Sets the attribute runner - # - # @param value [Object] the value to set the attribute runner to. - # @return [Object] the newly set value - def runner=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#3 -class Standard::CreatesConfigStore - # @return [CreatesConfigStore] a new instance of CreatesConfigStore - # - # source://standard//lib/standard/creates_config_store.rb#10 - def initialize; end - - # source://standard//lib/standard/creates_config_store.rb#18 - def call(standard_config); end -end - -# source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#4 -class Standard::CreatesConfigStore::AssignsRubocopYaml - # source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#5 - def call(config_store, standard_config); end -end - -# source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#2 -class Standard::CreatesConfigStore::ConfiguresIgnoredPaths - # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#14 - def call(options_config, standard_config); end - - private - - # @return [Boolean] - # - # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#41 - def absolute?(path); end - - # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#33 - def absolutify(config_root, path); end - - # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#28 - def ignored_patterns(standard_config); end -end - -# source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#3 -Standard::CreatesConfigStore::ConfiguresIgnoredPaths::DEFAULT_IGNORES = T.let(T.unsafe(nil), Array) - -# source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#5 -class Standard::CreatesConfigStore::MergesUserConfigExtensions - # @return [MergesUserConfigExtensions] a new instance of MergesUserConfigExtensions - # - # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#24 - def initialize; end - - # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#28 - def call(options_config, standard_config); end -end - -# source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#6 -class Standard::CreatesConfigStore::MergesUserConfigExtensions::ExtendConfigPlugin < ::LintRoller::Plugin - # @return [ExtendConfigPlugin] a new instance of ExtendConfigPlugin - # - # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#7 - def initialize(path); end - - # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#11 - def about; end - - # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#15 - def rules(context); end -end - -# source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#2 -class Standard::CreatesConfigStore::SetsTargetRubyVersion - # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#12 - def call(options_config, standard_config); end - - private - - # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#20 - def min_target_ruby_version_supported(desired_target_ruby_version); end - - # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#31 - def normalize_version(version); end -end - -# This is minimum version that Rubocop can parse, not the minimum -# version it can run on (e.g. TargetRubyVersion). See the following -# for more details: -# -# https://docs.rubocop.org/rubocop/configuration.html#setting-the-target-ruby-version -# -# https://github.com/rubocop/rubocop/blob/master/lib/rubocop/target_ruby.rb -# -# source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#10 -Standard::CreatesConfigStore::SetsTargetRubyVersion::MIN_TARGET_RUBY_VERSION = T.let(T.unsafe(nil), String) - -# source://standard//lib/standard/file_finder.rb#4 -class Standard::FileFinder - # source://standard//lib/standard/file_finder.rb#5 - def call(name, search_path); end -end - -# source://standard//lib/standard/formatter.rb#5 -class Standard::Formatter < ::RuboCop::Formatter::BaseFormatter - # source://standard//lib/standard/formatter.rb#18 - def file_finished(file, offenses); end - - # source://standard//lib/standard/formatter.rb#37 - def finished(_inspected_files); end - - # source://standard//lib/standard/formatter.rb#10 - def started(_target_files); end - - # source://standard//lib/standard/formatter.rb#30 - def track_stats(offenses); end - - private - - # source://standard//lib/standard/formatter.rb#106 - def determine_run_mode; end - - # source://standard//lib/standard/formatter.rb#114 - def fixable_error_message(command); end - - # source://standard//lib/standard/formatter.rb#92 - def path_to(file); end - - # source://standard//lib/standard/formatter.rb#96 - def potential_fix_mode; end - - # source://standard//lib/standard/formatter.rb#52 - def print_fix_suggestion; end - - # source://standard//lib/standard/formatter.rb#44 - def print_header_once; end - - # source://standard//lib/standard/formatter.rb#82 - def print_todo_congratulations; end - - # source://standard//lib/standard/formatter.rb#66 - def print_todo_warning; end -end - -# source://standard//lib/standard/formatter.rb#6 -Standard::Formatter::STANDARD_GREETING = T.let(T.unsafe(nil), String) - -# source://standard//lib/standard/loads_runner.rb#9 -class Standard::LoadsRunner - # source://standard//lib/standard/loads_runner.rb#19 - def call(command); end -end - -# source://standard//lib/standard/loads_runner.rb#10 -Standard::LoadsRunner::RUNNERS = T.let(T.unsafe(nil), Hash) - -# source://standard//lib/standard/loads_yaml_config.rb#7 -class Standard::LoadsYamlConfig - # source://standard//lib/standard/loads_yaml_config.rb#8 - def call(standard_yaml_path, todo_yaml_path); end - - private - - # source://standard//lib/standard/loads_yaml_config.rb#57 - def arrayify(object); end - - # source://standard//lib/standard/loads_yaml_config.rb#25 - def construct_config(yaml_path, standard_yaml, todo_path, todo_yaml); end - - # source://standard//lib/standard/loads_yaml_config.rb#47 - def expand_ignore_config(ignore_config); end - - # source://standard//lib/standard/loads_yaml_config.rb#17 - def load_standard_yaml(yaml_path); end - - # source://standard//lib/standard/loads_yaml_config.rb#41 - def normalized_ruby_version(version); end -end - -# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#2 -module Standard::Lsp; end - -# source://standard//lib/standard/lsp/diagnostic.rb#3 -class Standard::Lsp::Diagnostic - # @return [Diagnostic] a new instance of Diagnostic - # - # source://standard//lib/standard/lsp/diagnostic.rb#16 - def initialize(document_encoding, offense, uri, cop_class); end - - # source://standard//lib/standard/lsp/diagnostic.rb#23 - def to_lsp_code_actions; end - - # source://standard//lib/standard/lsp/diagnostic.rb#32 - def to_lsp_diagnostic(config); end - - private - - # source://standard//lib/standard/lsp/diagnostic.rb#77 - def autocorrect_action; end - - # source://standard//lib/standard/lsp/diagnostic.rb#69 - def code_description(config); end - - # @return [Boolean] - # - # source://standard//lib/standard/lsp/diagnostic.rb#163 - def correctable?; end - - # source://standard//lib/standard/lsp/diagnostic.rb#108 - def disable_line_action; end - - # source://standard//lib/standard/lsp/diagnostic.rb#167 - def ensure_uri_scheme(uri); end - - # source://standard//lib/standard/lsp/diagnostic.rb#148 - def length_of_line(line); end - - # source://standard//lib/standard/lsp/diagnostic.rb#126 - def line_disable_comment; end - - # source://standard//lib/standard/lsp/diagnostic.rb#59 - def message; end - - # source://standard//lib/standard/lsp/diagnostic.rb#96 - def offense_replacements; end - - # source://standard//lib/standard/lsp/diagnostic.rb#65 - def severity; end -end - -# source://standard//lib/standard/lsp/diagnostic.rb#4 -Standard::Lsp::Diagnostic::Constant = LanguageServer::Protocol::Constant - -# source://standard//lib/standard/lsp/diagnostic.rb#5 -Standard::Lsp::Diagnostic::Interface = LanguageServer::Protocol::Interface - -# source://standard//lib/standard/lsp/diagnostic.rb#7 -Standard::Lsp::Diagnostic::RUBOCOP_TO_LSP_SEVERITY = T.let(T.unsafe(nil), Hash) - -# source://standard//lib/standard/lsp/kills_server.rb#3 -class Standard::Lsp::KillsServer - # source://standard//lib/standard/lsp/kills_server.rb#4 - def call(&blk); end -end - -# source://standard//lib/standard/lsp/logger.rb#3 -class Standard::Lsp::Logger - # @return [Logger] a new instance of Logger - # - # source://standard//lib/standard/lsp/logger.rb#4 - def initialize(prefix: T.unsafe(nil)); end - - # source://standard//lib/standard/lsp/logger.rb#9 - def puts(message); end - - # source://standard//lib/standard/lsp/logger.rb#13 - def puts_once(message); end -end - -# source://standard//lib/standard/lsp/server.rb#8 -Standard::Lsp::Proto = LanguageServer::Protocol - -# source://standard//lib/standard/lsp/routes.rb#5 -class Standard::Lsp::Routes - # @return [Routes] a new instance of Routes - # - # source://standard//lib/standard/lsp/routes.rb#6 - def initialize(writer, logger, standardizer); end - - # source://standard//lib/standard/lsp/routes.rb#19 - def for(name); end - - # source://standard//lib/standard/lsp/routes.rb#26 - def handle_initialize(request); end - - # source://standard//lib/standard/lsp/routes.rb#38 - def handle_initialized(request); end - - # source://standard//lib/standard/lsp/routes.rb#129 - def handle_method_missing(request); end - - # source://standard//lib/standard/lsp/routes.rb#42 - def handle_shutdown(request); end - - # source://standard//lib/standard/lsp/routes.rb#121 - def handle_unsupported_method(request, method = T.unsafe(nil)); end - - private - - # source://standard//lib/standard/lsp/routes.rb#162 - def diagnostic(file_uri, text); end - - # source://standard//lib/standard/lsp/routes.rb#141 - def format_file(file_uri); end - - # source://standard//lib/standard/lsp/routes.rb#137 - def uri_to_path(uri); end - - class << self - # source://standard//lib/standard/lsp/routes.rb#15 - def handle(name, &block); end - end -end - -# source://standard//lib/standard/lsp/routes.rb#75 -Standard::Lsp::Routes::CONFIGURATION_FILE_PATTERNS = T.let(T.unsafe(nil), Array) - -# source://standard//lib/standard/lsp/server.rb#9 -Standard::Lsp::SEV = LanguageServer::Protocol::Constant::DiagnosticSeverity - -# source://standard//lib/standard/lsp/server.rb#11 -class Standard::Lsp::Server - # @return [Server] a new instance of Server - # - # source://standard//lib/standard/lsp/server.rb#12 - def initialize(config); end - - # source://standard//lib/standard/lsp/server.rb#20 - def start; end -end - -# source://standard//lib/standard/lsp/standardizer.rb#6 -class Standard::Lsp::Standardizer - # @return [Standardizer] a new instance of Standardizer - # - # source://standard//lib/standard/lsp/standardizer.rb#7 - def initialize(config); end - - # source://standard//lib/standard/lsp/standardizer.rb#15 - def format(path, text); end - - # source://standard//lib/standard/lsp/standardizer.rb#20 - def offenses(path, text, document_encoding = T.unsafe(nil)); end -end - -# Originally lifted from: -# https://github.com/Shopify/ruby-lsp/blob/8d4c17efce4e8ecc8e7c557ab2981db6b22c0b6d/lib/ruby_lsp/requests/support/rubocop_runner.rb#L20 -# -# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#5 -class Standard::Lsp::StdinRubocopRunner < ::RuboCop::Runner - # @return [StdinRubocopRunner] a new instance of StdinRubocopRunner - # - # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#21 - def initialize(config); end - - # Returns the value of attribute config_for_working_directory. - # - # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#10 - def config_for_working_directory; end - - # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#60 - def formatted_source; end - - # Returns the value of attribute offenses. - # - # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#8 - def offenses; end - - # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#35 - def run(path, contents); end - - private - - # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#66 - def file_finished(_file, offenses); end -end - -# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#6 -class Standard::Lsp::StdinRubocopRunner::ConfigurationError < ::StandardError; end - -# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#12 -Standard::Lsp::StdinRubocopRunner::DEFAULT_RUBOCOP_OPTIONS = T.let(T.unsafe(nil), Hash) - -# source://standard//lib/standard/merges_settings.rb#4 -class Standard::MergesSettings - # source://standard//lib/standard/merges_settings.rb#7 - def call(argv, standard_yaml); end - - private - - # source://standard//lib/standard/merges_settings.rb#42 - def determine_command(argv); end - - # source://standard//lib/standard/merges_settings.rb#58 - def merge(standard_yaml, standard_cli_flags, rubocop_cli_flags); end - - # source://standard//lib/standard/merges_settings.rb#27 - def parse_standard_argv(argv); end - - # source://standard//lib/standard/merges_settings.rb#21 - def separate_argv(argv); end - - # source://standard//lib/standard/merges_settings.rb#69 - def without_banned(rubocop_cli_flags); end -end - -# source://standard//lib/standard/merges_settings.rb#5 -class Standard::MergesSettings::Settings < ::Struct - # 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 - - # Returns the value of attribute paths - # - # @return [Object] the current value of paths - def paths; end - - # Sets the attribute paths - # - # @param value [Object] the value to set the attribute paths to. - # @return [Object] the newly set value - def paths=(_); end - - # Returns the value of attribute runner - # - # @return [Object] the current value of runner - def runner; end - - # Sets the attribute runner - # - # @param value [Object] the value to set the attribute runner to. - # @return [Object] the newly set value - def runner=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# source://standard//lib/standard/plugin.rb#2 -module Standard::Plugin; end - -# source://standard//lib/standard/plugin/combines_plugin_configs.rb#3 -class Standard::Plugin::CombinesPluginConfigs - # @return [CombinesPluginConfigs] a new instance of CombinesPluginConfigs - # - # source://standard//lib/standard/plugin/combines_plugin_configs.rb#4 - def initialize; end - - # source://standard//lib/standard/plugin/combines_plugin_configs.rb#9 - def call(options_config, standard_config); end -end - -# source://standard//lib/standard/plugin/creates_runner_context.rb#3 -class Standard::Plugin::CreatesRunnerContext - # source://standard//lib/standard/plugin/creates_runner_context.rb#4 - def call(standard_config); end -end - -# source://standard//lib/standard/plugin/determines_class_constant.rb#3 -class Standard::Plugin::DeterminesClassConstant - # source://standard//lib/standard/plugin/determines_class_constant.rb#4 - def call(plugin_name, user_config); end - - private - - # source://standard//lib/standard/plugin/determines_class_constant.rb#41 - def require_plugin(require_path); end -end - -# source://standard//lib/standard/plugin/initializes_plugins.rb#3 -class Standard::Plugin::InitializesPlugins - # @return [InitializesPlugins] a new instance of InitializesPlugins - # - # source://standard//lib/standard/plugin/initializes_plugins.rb#4 - def initialize; end - - # source://standard//lib/standard/plugin/initializes_plugins.rb#9 - def call(plugins); end -end - -# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#3 -class Standard::Plugin::MergesPluginsIntoRubocopConfig - # @return [MergesPluginsIntoRubocopConfig] a new instance of MergesPluginsIntoRubocopConfig - # - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#24 - def initialize; end - - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#28 - def call(options_config, standard_config, plugins, permit_merging:); end - - private - - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#126 - def all_cop_keys_previously_configured_by_plugins(options_config, permit_merging:); end - - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#152 - def blank_rubocop_config(example_config); end - - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#37 - def combine_rubocop_configs(options_config, runner_context, plugins, permit_merging:); end - - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#56 - def config_for_plugin(plugin, runner_context); end - - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#96 - def delete_already_configured_keys!(configured_keys, next_config, dont_delete_keys: T.unsafe(nil)); end - - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#156 - def except(hash_or_config, keys); end - - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#134 - def fake_out_rubocop_default_configuration(options_config); end - - # Always deletes nil entries, always overwrites arrays - # This is a simplified version of rubocop's ConfigLoader#merge: - # https://github.com/rubocop/rubocop/blob/v1.48.1/lib/rubocop/config_loader_resolver.rb#L98 - # - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#163 - def merge(old_hash, new_hash); end - - # This is how we ensure "first-in wins": plugins can override AllCops settings that are - # set by RuboCop's default configuration, but once a plugin sets an AllCop setting, they - # have exclusive first-in-wins rights to that setting. - # - # The one exception to this are array fields, because we don't want to - # overwrite the AllCops defaults but rather munge the arrays (`existing | - # new`) to allow plugins to add to the array, for example Include and - # Exclude paths and patterns. - # - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#77 - def merge_all_cop_settings(existing_all_cops, new_all_cops, already_configured_keys); end - - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#104 - def merge_config_into_all_cops!(options_config, plugin_config); end - - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#110 - def merge_config_into_standard!(options_config, plugin_config, permit_merging:); end - - # Avoid a warning that would otherwise be emitted by any plugin that set TargetRailsVersion - # because it's not a default AllCops key specified in RuboCop's embedded default config. - # - # See: https://github.com/rubocop/rubocop/pull/11833 - # - # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#146 - def set_target_rails_version_on_all_cops_because_its_technically_not_allowed!(options_config); end -end - -# AllCops keys that standard does not allow to be set by plugins -# -# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#10 -Standard::Plugin::MergesPluginsIntoRubocopConfig::DISALLOWED_ALLCOPS_KEYS = T.let(T.unsafe(nil), Array) - -# Blank configuration object to merge plugins into, with only the following spared: -# - AllCops keys set to avoid warnings about unknown properties -# - Lint/Syntax must be set to avoid a nil error when verifying inherited configs -# -# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#7 -Standard::Plugin::MergesPluginsIntoRubocopConfig::MANDATORY_RUBOCOP_CONFIG_KEYS = T.let(T.unsafe(nil), Array) - -# source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#3 -class Standard::Plugin::StandardizesConfiguredPlugins - # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#19 - def call(plugins); end - - private - - # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#25 - def normalize_config_shape(plugins); end -end - -# source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#10 -Standard::Plugin::StandardizesConfiguredPlugins::BUILT_INS = T.let(T.unsafe(nil), Array) - -# source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#4 -Standard::Plugin::StandardizesConfiguredPlugins::DEFAULT_PLUGIN_CONFIG = T.let(T.unsafe(nil), Hash) - -# source://standard//lib/standard/railtie.rb#4 -class Standard::Railtie < ::Rails::Railtie; end - -# source://standard//lib/standard/resolves_yaml_option.rb#4 -class Standard::ResolvesYamlOption - # source://standard//lib/standard/resolves_yaml_option.rb#5 - def call(argv, search_path, option_name, default_file); end - - private - - # source://standard//lib/standard/resolves_yaml_option.rb#22 - def argv_value_for(argv, option_name); end - - # source://standard//lib/standard/resolves_yaml_option.rb#11 - def search_argv(argv, option_name); end -end - -# source://standard//lib/standard/runners/rubocop.rb#4 -module Standard::Runners; end - -# source://standard//lib/standard/runners/genignore.rb#7 -class Standard::Runners::Genignore - # source://standard//lib/standard/runners/genignore.rb#8 - def call(config); end -end - -# source://standard//lib/standard/runners/help.rb#5 -class Standard::Runners::Help - # source://standard//lib/standard/runners/help.rb#6 - def call(config); end -end - -# source://standard//lib/standard/runners/lsp.rb#5 -class Standard::Runners::Lsp - # source://standard//lib/standard/runners/lsp.rb#6 - def call(config); end -end - -# source://standard//lib/standard/runners/rubocop.rb#5 -class Standard::Runners::Rubocop - # source://standard//lib/standard/runners/rubocop.rb#6 - def call(config); end - - private - - # This is a workaround for an issue with how `parallel` and `stdin` - # interact when invoked in this way. See: - # https://github.com/standardrb/standard/issues/536 - # - # source://standard//lib/standard/runners/rubocop.rb#23 - def without_parallelizing_in_stdin_mode(options); end -end - -# source://standard//lib/standard/runners/verbose_version.rb#5 -class Standard::Runners::VerboseVersion - # source://standard//lib/standard/runners/verbose_version.rb#6 - def call(config); end -end - -# source://standard//lib/standard/runners/version.rb#3 -class Standard::Runners::Version - # source://standard//lib/standard/runners/version.rb#4 - def call(config); end -end - -# source://standard//lib/standard/version.rb#2 -Standard::VERSION = T.let(T.unsafe(nil), Gem::Version) diff --git a/sorbet/rbi/gems/stringio@3.1.6.rbi b/sorbet/rbi/gems/stringio@3.1.7.rbi similarity index 100% rename from sorbet/rbi/gems/stringio@3.1.6.rbi rename to sorbet/rbi/gems/stringio@3.1.7.rbi diff --git a/sorbet/rbi/gems/tapioca@0.16.11.rbi b/sorbet/rbi/gems/tapioca@0.17.7.rbi similarity index 75% rename from sorbet/rbi/gems/tapioca@0.16.11.rbi rename to sorbet/rbi/gems/tapioca@0.17.7.rbi index d88bede0..b36c8936 100644 --- a/sorbet/rbi/gems/tapioca@0.16.11.rbi +++ b/sorbet/rbi/gems/tapioca@0.17.7.rbi @@ -5,6 +5,23 @@ # Please instead update this file by running `bin/tapioca gem tapioca`. +# source://tapioca//lib/tapioca/rbs/rewriter.rb#23 +module Bootsnap; end + +# source://tapioca//lib/tapioca/rbs/rewriter.rb#24 +module Bootsnap::CompileCache; end + +# source://tapioca//lib/tapioca/rbs/rewriter.rb#25 +module Bootsnap::CompileCache::ISeq; end + +# source://tapioca//lib/tapioca/rbs/rewriter.rb#26 +module Bootsnap::CompileCache::ISeq::InstructionSequenceMixin + # source://tapioca//lib/tapioca/rbs/rewriter.rb#28 + def load_iseq(path); end +end + +module Bootsnap::CompileCache::Native; end + class Bundler::Dependency < ::Gem::Dependency include ::Tapioca::BundlerExt::AutoRequireHook end @@ -35,18 +52,21 @@ end # That's because RubyGems does alias-method-chain for Kernel#require and such, # so, if Bootsnap were to do prepend, it might end up breaking RubyGems. # -# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#68 +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#66 class Module - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#101 + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#98 def append_features(constant); end - # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#71 + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#69 def autoload(const_name, path); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#111 + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#108 def extend_object(obj); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#91 + # source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#60 + def method_added(method_name); end + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#88 def prepend_features(constant); end end @@ -55,19 +75,7 @@ module RBI; end # source://tapioca//lib/tapioca/rbi_ext/model.rb#5 class RBI::Tree < ::RBI::NodeWithComments - # source://rbi/0.3.2/lib/rbi/model.rb#119 - def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # source://rbi/0.3.2/lib/rbi/model.rb#126 - def <<(node); end - - # source://rbi/0.3.2/lib/rbi/rewriters/add_sig_templates.rb#63 - def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end - - # source://rbi/0.3.2/lib/rbi/rewriters/annotate.rb#46 - def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#38 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#32 sig do params( name: ::String, @@ -77,19 +85,19 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_class(name, superclass_name: T.unsafe(nil), &block); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#45 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#39 sig { params(name: ::String, value: ::String).void } def create_constant(name, value:); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#55 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#49 sig { params(name: ::String).void } def create_extend(name); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#50 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#44 sig { params(name: ::String).void } def create_include(name); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#90 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#65 sig do params( name: ::String, @@ -103,7 +111,7 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#60 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#54 sig { params(name: ::String).void } def create_mixes_in_class_methods(name); end @@ -115,7 +123,7 @@ class RBI::Tree < ::RBI::NodeWithComments sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } def create_path(constant, &block); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#74 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#59 sig do params( name: ::String, @@ -128,71 +136,21 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end - # source://rbi/0.3.2/lib/rbi/rewriters/deannotate.rb#38 - def deannotate!(annotation); end - - # source://rbi/0.3.2/lib/rbi/model.rb#132 - def empty?; end - - # source://rbi/0.3.2/lib/rbi/rewriters/filter_versions.rb#113 - def filter_versions!(version); end - - # source://rbi/0.3.2/lib/rbi/rewriters/flatten_singleton_methods.rb#58 - def flatten_singleton_methods!; end - - # source://rbi/0.3.2/lib/rbi/rewriters/flatten_visibilities.rb#57 - def flatten_visibilities!; end - - # source://rbi/0.3.2/lib/rbi/rewriters/group_nodes.rb#78 - def group_nodes!; end - - # source://rbi/0.3.2/lib/rbi/index.rb#64 - def index; end - - # source://rbi/0.3.2/lib/rbi/rewriters/merge_trees.rb#314 - def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - - # source://rbi/0.3.2/lib/rbi/rewriters/nest_non_public_members.rb#43 - def nest_non_public_members!; end - - # source://rbi/0.3.2/lib/rbi/rewriters/nest_singleton_methods.rb#33 - def nest_singleton_methods!; end - - # source://rbi/0.3.2/lib/rbi/rewriters/nest_top_level_members.rb#60 - def nest_top_level_members!; end - - # source://rbi/0.3.2/lib/rbi/model.rb#116 - def nodes; end - - # source://rbi/0.3.2/lib/rbi/rewriters/attr_to_methods.rb#50 - def replace_attributes_with_methods!; end - - # source://rbi/0.3.2/lib/rbi/rewriters/sort_nodes.rb#118 - def sort_nodes!; end - - # source://rbi/0.3.2/lib/rbi/rewriters/translate_rbs_sigs.rb#82 - def translate_rbs_sigs!; end - private - # source://tapioca//lib/tapioca/rbi_ext/model.rb#123 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#98 sig { params(node: ::RBI::Node).returns(::RBI::Node) } def create_node(node); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#118 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#93 sig { returns(T::Hash[::String, ::RBI::Node]) } def nodes_cache; end end -# source://tapioca//lib/tapioca/rbi_ext/model.rb#133 +# source://tapioca//lib/tapioca/rbi_ext/model.rb#108 class RBI::TypedParam < ::T::Struct const :param, ::RBI::Param const :type, ::String - - class << self - # source://sorbet-runtime/0.5.12003/lib/types/struct.rb#13 - def inherited(s); end - end end # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#5 @@ -387,18 +345,12 @@ end # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#4 module Tapioca class << self - # source://tapioca//lib/tapioca.rb#20 - sig do - type_parameters(:Result) - .params( - blk: T.proc.returns(T.type_parameter(:Result)) - ).returns(T.type_parameter(:Result)) - end + # source://tapioca//lib/tapioca.rb#16 def silence_warnings(&blk); end end end -# source://tapioca//lib/tapioca.rb#39 +# source://tapioca//lib/tapioca.rb#35 Tapioca::BINARY_FILE = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#5 @@ -412,7 +364,7 @@ module Tapioca::BundlerExt; end module Tapioca::BundlerExt::AutoRequireHook requires_ancestor { Bundler::Dependency } - # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#46 + # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#41 sig { returns(T.untyped) } def autorequire; end @@ -426,7 +378,7 @@ module Tapioca::BundlerExt::AutoRequireHook sig { params(name: T.untyped).returns(T::Boolean) } def excluded?(name); end - # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#36 + # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#31 sig do type_parameters(:Result) .params( @@ -438,13 +390,13 @@ module Tapioca::BundlerExt::AutoRequireHook end end -# source://tapioca//lib/tapioca.rb#62 +# source://tapioca//lib/tapioca.rb#55 Tapioca::CENTRAL_REPO_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#61 +# source://tapioca//lib/tapioca.rb#54 Tapioca::CENTRAL_REPO_INDEX_PATH = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#60 +# source://tapioca//lib/tapioca.rb#53 Tapioca::CENTRAL_REPO_ROOT_URI = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/cli.rb#5 @@ -524,7 +476,7 @@ end # source://tapioca//lib/tapioca/commands.rb#5 module Tapioca::Commands; end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#6 class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracker @@ -533,7 +485,7 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke abstract! - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#34 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#15 sig do params( requested_constants: T::Array[::String], @@ -560,15 +512,15 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke private - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#107 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#88 sig { returns(T::Array[::String]) } def all_requested_constants; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#313 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#284 sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } def build_error_for_files(cause, files); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#237 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#208 sig do params( constant_name: ::String, @@ -579,80 +531,80 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke end def compile_dsl_rbi(constant_name, rbi, outpath: T.unsafe(nil), quiet: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#172 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#150 sig { params(constant_names: T::Array[::String], ignore_missing: T::Boolean).returns(T::Array[::Module]) } def constantize(constant_names, ignore_missing: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#197 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#175 sig { params(compiler_names: T::Array[::String]).returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } def constantize_compilers(compiler_names); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#373 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#344 sig { returns(T::Array[::String]) } def constants_from_requested_paths; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#133 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#111 sig { returns(::Tapioca::Dsl::Pipeline) } def create_pipeline; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#276 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#247 sig { params(constant_name: ::String).returns(::Pathname) } def dsl_rbi_filename(constant_name); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#158 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#136 sig { params(requested_constants: T::Array[::String], path: ::Pathname).returns(T::Set[::Pathname]) } def existing_rbi_filenames(requested_constants, path: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#368 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#339 sig { params(constant: ::String).returns(::String) } def generate_command_for(constant); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#79 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#60 sig { params(outpath: ::Pathname, quiet: T::Boolean).returns(T::Set[::Pathname]) } def generate_dsl_rbi_files(outpath, quiet:); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#120 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#98 sig { void } def load_application; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#255 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#226 sig { params(dir: ::Pathname).void } def perform_dsl_verification(dir); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#115 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#93 sig { returns(::Tapioca::Dsl::Pipeline) } def pipeline; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#264 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#235 sig { params(files: T::Set[::Pathname]).void } def purge_stale_dsl_rbi_files(files); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#363 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#334 sig { params(constant: ::String).returns(::String) } def rbi_filename_for(constant); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#344 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#315 sig { params(path: ::Pathname).returns(T::Array[::Pathname]) } def rbi_files_in(path); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#322 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#293 sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } def report_diff_and_exit_if_out_of_date(diff, command); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#217 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#195 sig { params(name: ::String).returns(T.nilable(T.class_of(Tapioca::Dsl::Compiler))) } def resolve(name); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#351 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#322 sig { params(class_name: ::String).returns(::String) } def underscore(class_name); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#281 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#252 sig { params(tmp_dir: ::Pathname).returns(T::Hash[::String, ::Symbol]) } def verify_dsl_rbi(tmp_dir:); end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/commands/abstract_gem.rb#6 class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command @@ -661,7 +613,7 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command abstract! - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#33 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#15 sig do params( gem_names: T::Array[::String], @@ -687,70 +639,70 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command private - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#200 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#182 sig { returns(T::Array[::String]) } def added_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#261 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#243 sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } def build_error_for_files(cause, files); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#80 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#62 sig { params(gem: ::Tapioca::Gemfile::GemSpec).void } def compile_gem_rbi(gem); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#195 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#177 sig { params(gem_name: ::String).returns(::Pathname) } def existing_rbi(gem_name); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#243 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#225 sig { returns(T::Hash[::String, ::String]) } def existing_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#207 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#189 sig { params(gem_name: ::String).returns(::Pathname) } def expected_rbi(gem_name); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#249 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#231 sig { returns(T::Hash[::String, ::String]) } def expected_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#212 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#194 sig { params(gem_name: ::String).returns(T::Boolean) } def gem_rbi_exists?(gem_name); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#256 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#238 sig { params(gem_name: ::String, version: ::String).returns(::Pathname) } def gem_rbi_filename(gem_name, version); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#266 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#248 sig { params(gem: ::Tapioca::Gemfile::GemSpec, file: ::RBI::File).void } def merge_with_exported_rbi(gem, file); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#237 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#219 sig { params(old_filename: ::Pathname, new_filename: ::Pathname).void } def move(old_filename, new_filename); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#147 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#129 sig { void } def perform_additions; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#120 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#102 sig { void } def perform_removals; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#190 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#172 sig { returns(T::Array[::String]) } def removed_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#217 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#199 sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } def report_diff_and_exit_if_out_of_date(diff, command); end end # source://tapioca//lib/tapioca/commands/annotations.rb#6 class Tapioca::Commands::Annotations < ::Tapioca::Commands::CommandWithoutTracker - # source://tapioca//lib/tapioca/commands/annotations.rb#18 + # source://tapioca//lib/tapioca/commands/annotations.rb#10 sig do params( central_repo_root_uris: T::Array[::String], @@ -764,71 +716,71 @@ class Tapioca::Commands::Annotations < ::Tapioca::Commands::CommandWithoutTracke private - # source://tapioca//lib/tapioca/commands/annotations.rb#197 + # source://tapioca//lib/tapioca/commands/annotations.rb#191 sig { params(name: ::String, content: ::String).returns(::String) } def add_header(name, content); end - # source://tapioca//lib/tapioca/commands/annotations.rb#217 + # source://tapioca//lib/tapioca/commands/annotations.rb#211 sig { params(name: ::String, content: ::String).returns(::String) } def apply_typed_override(name, content); end - # source://tapioca//lib/tapioca/commands/annotations.rb#39 + # source://tapioca//lib/tapioca/commands/annotations.rb#32 sig { override.void } def execute; end - # source://tapioca//lib/tapioca/commands/annotations.rb#136 - sig { params(repo_uris: T::Array[::String], gem_info: ::Tapioca::GemInfo).void } + # source://tapioca//lib/tapioca/commands/annotations.rb#129 + sig { params(repo_uris: T::Array[::String], gem_info: ::Tapioca::GemInfo).returns(T::Boolean) } def fetch_annotation(repo_uris, gem_info); end - # source://tapioca//lib/tapioca/commands/annotations.rb#113 + # source://tapioca//lib/tapioca/commands/annotations.rb#106 sig { params(project_gems: T::Array[::Tapioca::GemInfo]).returns(T::Array[::String]) } def fetch_annotations(project_gems); end - # source://tapioca//lib/tapioca/commands/annotations.rb#156 + # source://tapioca//lib/tapioca/commands/annotations.rb#150 sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } def fetch_file(repo_uri, path); end - # source://tapioca//lib/tapioca/commands/annotations.rb#173 + # source://tapioca//lib/tapioca/commands/annotations.rb#167 sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } def fetch_http_file(repo_uri, path); end - # source://tapioca//lib/tapioca/commands/annotations.rb#102 - sig { params(repo_uri: ::String, repo_number: T.nilable(::Integer)).returns(T.nilable(Tapioca::RepoIndex)) } + # source://tapioca//lib/tapioca/commands/annotations.rb#95 + sig { params(repo_uri: ::String, repo_number: T.nilable(::Integer)).returns(T.nilable(::Tapioca::RepoIndex)) } def fetch_index(repo_uri, repo_number:); end - # source://tapioca//lib/tapioca/commands/annotations.rb#81 - sig { returns(T::Hash[::String, Tapioca::RepoIndex]) } + # source://tapioca//lib/tapioca/commands/annotations.rb#74 + sig { returns(T::Hash[::String, ::Tapioca::RepoIndex]) } def fetch_indexes; end - # source://tapioca//lib/tapioca/commands/annotations.rb#165 + # source://tapioca//lib/tapioca/commands/annotations.rb#159 sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } def fetch_local_file(repo_uri, path); end - # source://tapioca//lib/tapioca/commands/annotations.rb#229 + # source://tapioca//lib/tapioca/commands/annotations.rb#223 sig { params(gem_version: ::Gem::Version, content: ::String).returns(::String) } def filter_versions(gem_version, content); end - # source://tapioca//lib/tapioca/commands/annotations.rb#50 + # source://tapioca//lib/tapioca/commands/annotations.rb#43 sig { returns(T::Array[::Tapioca::GemInfo]) } def list_gemfile_gems; end - # source://tapioca//lib/tapioca/commands/annotations.rb#237 + # source://tapioca//lib/tapioca/commands/annotations.rb#231 sig { params(gem_name: ::String, contents: T::Array[::String]).returns(T.nilable(::String)) } def merge_files(gem_name, contents); end - # source://tapioca//lib/tapioca/commands/annotations.rb#60 + # source://tapioca//lib/tapioca/commands/annotations.rb#53 sig { params(project_gems: T::Array[::Tapioca::GemInfo]).void } def remove_expired_annotations(project_gems); end - # source://tapioca//lib/tapioca/commands/annotations.rb#264 + # source://tapioca//lib/tapioca/commands/annotations.rb#258 sig { returns(T::Hash[::String, T.nilable(::String)]) } def repo_tokens; end - # source://tapioca//lib/tapioca/commands/annotations.rb#292 + # source://tapioca//lib/tapioca/commands/annotations.rb#286 sig { params(path: ::String, repo_uri: ::String, message: ::String).void } def say_http_error(path, repo_uri, message:); end - # source://tapioca//lib/tapioca/commands/annotations.rb#276 + # source://tapioca//lib/tapioca/commands/annotations.rb#270 sig { params(repo_uri: ::String).returns(T.nilable(::String)) } def token_for(repo_uri); end end @@ -838,7 +790,7 @@ class Tapioca::Commands::CheckShims < ::Tapioca::Commands::CommandWithoutTracker include ::Tapioca::SorbetHelper include ::Tapioca::RBIFilesHelper - # source://tapioca//lib/tapioca/commands/check_shims.rb#22 + # source://tapioca//lib/tapioca/commands/check_shims.rb#12 sig do params( gem_rbi_dir: ::String, @@ -854,12 +806,12 @@ class Tapioca::Commands::CheckShims < ::Tapioca::Commands::CommandWithoutTracker private - # source://tapioca//lib/tapioca/commands/check_shims.rb#44 + # source://tapioca//lib/tapioca/commands/check_shims.rb#35 sig { override.void } def execute; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/commands/command.rb#6 class Tapioca::Commands::Command @@ -876,17 +828,17 @@ class Tapioca::Commands::Command sig { void } def initialize; end - # source://thor/1.3.2/lib/thor/base.rb#155 + # source://tapioca//lib/tapioca/commands/command.rb#44 sig { returns(::Thor::Actions) } def file_writer; end - # source://tapioca//lib/tapioca/commands/command.rb#25 + # source://tapioca//lib/tapioca/commands/command.rb#26 sig(:final) { void } def run; end private - # source://tapioca//lib/tapioca/commands/command.rb#53 + # source://tapioca//lib/tapioca/commands/command.rb#47 sig do params( path: T.any(::Pathname, ::String), @@ -898,28 +850,29 @@ class Tapioca::Commands::Command end def create_file(path, content, force: T.unsafe(nil), skip: T.unsafe(nil), verbose: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/commands/command.rb#37 + # source://tapioca//lib/tapioca/commands/command.rb#39 sig { params(command: ::Symbol, args: ::String).returns(::String) } def default_command(command, *args); end # @abstract + # @raise [NotImplementedError] # - # source://tapioca//lib/tapioca/commands/command.rb#34 + # source://tapioca//lib/tapioca/commands/command.rb#36 sig { abstract.void } def execute; end - # source://tapioca//lib/tapioca/commands/command.rb#63 + # source://tapioca//lib/tapioca/commands/command.rb#52 sig { params(path: T.any(::Pathname, ::String), verbose: T::Boolean).void } def remove_file(path, verbose: T.unsafe(nil)); end end -# source://tapioca//lib/tapioca/commands/command.rb#10 +# source://tapioca//lib/tapioca/commands/command.rb#12 class Tapioca::Commands::Command::FileWriter < ::Thor include ::Thor::Actions extend ::Thor::Actions::ClassMethods end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/commands/command_without_tracker.rb#6 class Tapioca::Commands::CommandWithoutTracker < ::Tapioca::Commands::Command @@ -932,37 +885,37 @@ end # source://tapioca//lib/tapioca/commands/configure.rb#6 class Tapioca::Commands::Configure < ::Tapioca::Commands::CommandWithoutTracker - # source://tapioca//lib/tapioca/commands/configure.rb#14 + # source://tapioca//lib/tapioca/commands/configure.rb#8 sig { params(sorbet_config: ::String, tapioca_config: ::String, default_postrequire: ::String).void } def initialize(sorbet_config:, tapioca_config:, default_postrequire:); end private - # source://tapioca//lib/tapioca/commands/configure.rb#79 + # source://tapioca//lib/tapioca/commands/configure.rb#74 sig { void } def create_binstub; end - # source://tapioca//lib/tapioca/commands/configure.rb#69 + # source://tapioca//lib/tapioca/commands/configure.rb#64 sig { void } def create_post_require; end - # source://tapioca//lib/tapioca/commands/configure.rb#40 + # source://tapioca//lib/tapioca/commands/configure.rb#35 sig { void } def create_sorbet_config; end - # source://tapioca//lib/tapioca/commands/configure.rb#50 + # source://tapioca//lib/tapioca/commands/configure.rb#45 sig { void } def create_tapioca_config; end - # source://tapioca//lib/tapioca/commands/configure.rb#32 + # source://tapioca//lib/tapioca/commands/configure.rb#27 sig { override.void } def execute; end - # source://tapioca//lib/tapioca/commands/configure.rb#92 + # source://tapioca//lib/tapioca/commands/configure.rb#87 sig { returns(::Bundler::Installer) } def installer; end - # source://tapioca//lib/tapioca/commands/configure.rb#97 + # source://tapioca//lib/tapioca/commands/configure.rb#92 sig { returns(T.any(::Bundler::StubSpecification, ::Gem::Specification)) } def spec; end end @@ -971,7 +924,7 @@ end class Tapioca::Commands::DslCompilerList < ::Tapioca::Commands::AbstractDsl private - # source://tapioca//lib/tapioca/commands/dsl_compiler_list.rb#10 + # source://tapioca//lib/tapioca/commands/dsl_compiler_list.rb#11 sig { override.void } def execute; end end @@ -980,7 +933,7 @@ end class Tapioca::Commands::DslGenerate < ::Tapioca::Commands::AbstractDsl private - # source://tapioca//lib/tapioca/commands/dsl_generate.rb#10 + # source://tapioca//lib/tapioca/commands/dsl_generate.rb#11 sig { override.void } def execute; end end @@ -989,7 +942,7 @@ end class Tapioca::Commands::DslVerify < ::Tapioca::Commands::AbstractDsl private - # source://tapioca//lib/tapioca/commands/dsl_verify.rb#10 + # source://tapioca//lib/tapioca/commands/dsl_verify.rb#11 sig { override.void } def execute; end end @@ -998,11 +951,11 @@ end class Tapioca::Commands::GemGenerate < ::Tapioca::Commands::AbstractGem private - # source://tapioca//lib/tapioca/commands/gem_generate.rb#10 + # source://tapioca//lib/tapioca/commands/gem_generate.rb#11 sig { override.void } def execute; end - # source://tapioca//lib/tapioca/commands/gem_generate.rb#74 + # source://tapioca//lib/tapioca/commands/gem_generate.rb#70 sig do params( gem: ::Tapioca::Gemfile::GemSpec, @@ -1011,7 +964,7 @@ class Tapioca::Commands::GemGenerate < ::Tapioca::Commands::AbstractGem end def gem_dependencies(gem, dependencies = T.unsafe(nil)); end - # source://tapioca//lib/tapioca/commands/gem_generate.rb#51 + # source://tapioca//lib/tapioca/commands/gem_generate.rb#52 sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) } def gems_to_generate(gem_names); end end @@ -1020,7 +973,7 @@ end class Tapioca::Commands::GemSync < ::Tapioca::Commands::AbstractGem private - # source://tapioca//lib/tapioca/commands/gem_sync.rb#10 + # source://tapioca//lib/tapioca/commands/gem_sync.rb#11 sig { override.void } def execute; end end @@ -1029,24 +982,24 @@ end class Tapioca::Commands::GemVerify < ::Tapioca::Commands::AbstractGem private - # source://tapioca//lib/tapioca/commands/gem_verify.rb#10 + # source://tapioca//lib/tapioca/commands/gem_verify.rb#11 sig { override.void } def execute; end - # source://tapioca//lib/tapioca/commands/gem_verify.rb#17 + # source://tapioca//lib/tapioca/commands/gem_verify.rb#18 sig { void } def perform_sync_verification; end end # source://tapioca//lib/tapioca/commands/require.rb#6 class Tapioca::Commands::Require < ::Tapioca::Commands::CommandWithoutTracker - # source://tapioca//lib/tapioca/commands/require.rb#13 + # source://tapioca//lib/tapioca/commands/require.rb#8 sig { params(requires_path: ::String, sorbet_config_path: ::String).void } def initialize(requires_path:, sorbet_config_path:); end private - # source://tapioca//lib/tapioca/commands/require.rb#23 + # source://tapioca//lib/tapioca/commands/require.rb#19 sig { override.void } def execute; end end @@ -1055,25 +1008,25 @@ end class Tapioca::Commands::Todo < ::Tapioca::Commands::CommandWithoutTracker include ::Tapioca::SorbetHelper - # source://tapioca//lib/tapioca/commands/todo.rb#26 + # source://tapioca//lib/tapioca/commands/todo.rb#21 sig { params(todo_file: ::String, file_header: T::Boolean).void } def initialize(todo_file:, file_header:); end - # source://tapioca//lib/tapioca/commands/todo.rb#34 + # source://tapioca//lib/tapioca/commands/todo.rb#29 sig { void } def run_with_deprecation; end private - # source://tapioca//lib/tapioca/commands/todo.rb#44 + # source://tapioca//lib/tapioca/commands/todo.rb#40 sig { override.void } def execute; end - # source://tapioca//lib/tapioca/commands/todo.rb#68 + # source://tapioca//lib/tapioca/commands/todo.rb#64 sig { params(constants: T::Array[::String], command: ::String).returns(::RBI::File) } def rbi(constants, command:); end - # source://tapioca//lib/tapioca/commands/todo.rb#88 + # source://tapioca//lib/tapioca/commands/todo.rb#84 sig { returns(T::Array[::String]) } def unresolved_constants; end end @@ -1103,11 +1056,11 @@ module Tapioca::ConfigHelper private - # source://tapioca//lib/tapioca/helpers/config_helper.rb#153 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#147 sig { params(msg: ::String).returns(::Tapioca::ConfigHelper::ConfigError) } def build_error(msg); end - # source://tapioca//lib/tapioca/helpers/config_helper.rb#178 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#172 sig { params(config_file: ::String, errors: T::Array[::Tapioca::ConfigHelper::ConfigError]).returns(::String) } def build_error_message(config_file, errors); end @@ -1123,7 +1076,7 @@ module Tapioca::ConfigHelper sig { params(options: T::Hash[::Symbol, ::Thor::Option]).void } def filter_defaults(options); end - # source://tapioca//lib/tapioca/helpers/config_helper.rb#196 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#187 sig do params( options: T.nilable(::Thor::CoreExt::HashWithIndifferentAccess) @@ -1135,7 +1088,7 @@ module Tapioca::ConfigHelper sig { params(config_file: ::String, config: T::Hash[T.untyped, T.untyped]).void } def validate_config!(config_file, config); end - # source://tapioca//lib/tapioca/helpers/config_helper.rb#102 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#96 sig do params( command_options: T::Hash[::Symbol, ::Thor::Option], @@ -1146,64 +1099,54 @@ module Tapioca::ConfigHelper def validate_config_options(command_options, config_key, config_options); end end -# source://tapioca//lib/tapioca/helpers/config_helper.rb#148 +# source://tapioca//lib/tapioca/helpers/config_helper.rb#142 class Tapioca::ConfigHelper::ConfigError < ::T::Struct const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart] - - class << self - # source://sorbet-runtime/0.5.12003/lib/types/struct.rb#13 - def inherited(s); end - end end -# source://tapioca//lib/tapioca/helpers/config_helper.rb#143 +# source://tapioca//lib/tapioca/helpers/config_helper.rb#137 class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct const :message, ::String const :colors, T::Array[::Symbol] - - class << self - # source://sorbet-runtime/0.5.12003/lib/types/struct.rb#13 - def inherited(s); end - end end -# source://tapioca//lib/tapioca.rb#46 +# source://tapioca//lib/tapioca.rb#42 Tapioca::DEFAULT_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#42 +# source://tapioca//lib/tapioca.rb#38 Tapioca::DEFAULT_DSL_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#58 +# source://tapioca//lib/tapioca.rb#51 Tapioca::DEFAULT_ENVIRONMENT = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#43 +# source://tapioca//lib/tapioca.rb#39 Tapioca::DEFAULT_GEM_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#48 +# source://tapioca//lib/tapioca.rb#44 Tapioca::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash) -# source://tapioca//lib/tapioca.rb#40 +# source://tapioca//lib/tapioca.rb#36 Tapioca::DEFAULT_POSTREQUIRE_FILE = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#41 +# source://tapioca//lib/tapioca.rb#37 Tapioca::DEFAULT_RBI_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca/rbi_formatter.rb#31 +# source://tapioca//lib/tapioca/rbi_formatter.rb#25 Tapioca::DEFAULT_RBI_FORMATTER = T.let(T.unsafe(nil), Tapioca::RBIFormatter) -# source://tapioca//lib/tapioca.rb#57 +# source://tapioca//lib/tapioca.rb#50 Tapioca::DEFAULT_RBI_MAX_LINE_LENGTH = T.let(T.unsafe(nil), Integer) -# source://tapioca//lib/tapioca.rb#44 +# source://tapioca//lib/tapioca.rb#40 Tapioca::DEFAULT_SHIM_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#45 +# source://tapioca//lib/tapioca.rb#41 Tapioca::DEFAULT_TODO_FILE = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/dsl/compilers.rb#5 module Tapioca::Dsl; end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/dsl/compiler.rb#6 class Tapioca::Dsl::Compiler @@ -1219,7 +1162,7 @@ class Tapioca::Dsl::Compiler ConstantType = type_member { { upper: Module } } - # source://tapioca//lib/tapioca/dsl/compiler.rb#110 + # source://tapioca//lib/tapioca/dsl/compiler.rb#93 sig do params( pipeline: ::Tapioca::Dsl::Pipeline, @@ -1232,64 +1175,66 @@ class Tapioca::Dsl::Compiler # NOTE: This should eventually accept an `Error` object or `Exception` rather than simply a `String`. # - # source://tapioca//lib/tapioca/dsl/compiler.rb#128 + # source://tapioca//lib/tapioca/dsl/compiler.rb#112 sig { params(error: ::String).void } def add_error(error); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#119 + # source://tapioca//lib/tapioca/dsl/compiler.rb#102 sig { params(compiler_name: ::String).returns(T::Boolean) } def compiler_enabled?(compiler_name); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#20 + # source://tapioca//lib/tapioca/dsl/compiler.rb#22 sig { returns(ConstantType) } def constant; end # @abstract + # @raise [NotImplementedError] # - # source://tapioca//lib/tapioca/dsl/compiler.rb#124 + # source://tapioca//lib/tapioca/dsl/compiler.rb#108 sig { abstract.void } def decorate; end - # source://tapioca//lib/tapioca/dsl/compiler.rb#26 + # source://tapioca//lib/tapioca/dsl/compiler.rb#28 sig { returns(T::Hash[::String, T.untyped]) } def options; end - # source://tapioca//lib/tapioca/dsl/compiler.rb#23 + # source://tapioca//lib/tapioca/dsl/compiler.rb#25 sig { returns(::RBI::Tree) } def root; end private - # source://tapioca//lib/tapioca/dsl/compiler.rb#177 + # source://tapioca//lib/tapioca/dsl/compiler.rb#156 sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(T::Array[::RBI::TypedParam]) } def compile_method_parameters_to_rbi(method_def); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#213 + # source://tapioca//lib/tapioca/dsl/compiler.rb#192 sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(::String) } def compile_method_return_type_to_rbi(method_def); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#167 + # source://tapioca//lib/tapioca/dsl/compiler.rb#146 sig { params(scope: ::RBI::Scope, method_def: T.any(::Method, ::UnboundMethod), class_method: T::Boolean).void } def create_method_from_def(scope, method_def, class_method: T.unsafe(nil)); end # Get the types of each parameter from a method signature # - # source://tapioca//lib/tapioca/dsl/compiler.rb#141 + # source://tapioca//lib/tapioca/dsl/compiler.rb#120 sig { params(method_def: T.any(::Method, ::UnboundMethod), signature: T.untyped).returns(T::Array[::String]) } def parameters_types_from_signature(method_def, signature); end class << self # @abstract + # @raise [NotImplementedError] # - # source://tapioca//lib/tapioca/dsl/compiler.rb#39 + # source://tapioca//lib/tapioca/dsl/compiler.rb#42 sig { abstract.returns(T::Enumerable[::Module]) } def gather_constants; end - # source://tapioca//lib/tapioca/dsl/compiler.rb#34 + # source://tapioca//lib/tapioca/dsl/compiler.rb#36 sig { params(constant: ::Module).returns(T::Boolean) } def handles?(constant); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#42 + # source://tapioca//lib/tapioca/dsl/compiler.rb#45 sig { returns(T::Set[::Module]) } def processable_constants; end @@ -1303,15 +1248,15 @@ class Tapioca::Dsl::Compiler private - # source://tapioca//lib/tapioca/dsl/compiler.rb#82 + # source://tapioca//lib/tapioca/dsl/compiler.rb#78 sig { returns(T::Enumerable[T::Class[T.anything]]) } def all_classes; end - # source://tapioca//lib/tapioca/dsl/compiler.rb#90 + # source://tapioca//lib/tapioca/dsl/compiler.rb#83 sig { returns(T::Enumerable[::Module]) } def all_modules; end - # source://tapioca//lib/tapioca/dsl/compiler.rb#68 + # source://tapioca//lib/tapioca/dsl/compiler.rb#64 sig do type_parameters(:U) .params( @@ -1337,7 +1282,7 @@ Tapioca::Dsl::Compilers::NAMESPACES = T.let(T.unsafe(nil), Array) # source://tapioca//lib/tapioca/dsl/pipeline.rb#6 class Tapioca::Dsl::Pipeline - # source://tapioca//lib/tapioca/dsl/pipeline.rb#40 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#28 sig do params( requested_constants: T::Array[::Module], @@ -1357,15 +1302,15 @@ class Tapioca::Dsl::Pipeline sig { returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) } def active_compilers; end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#110 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#92 sig { params(error: ::String).void } def add_error(error); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#115 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#97 sig { params(compiler_name: ::String).returns(T::Boolean) } def compiler_enabled?(compiler_name); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#124 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#106 sig { returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } def compilers; end @@ -1385,7 +1330,7 @@ class Tapioca::Dsl::Pipeline sig { returns(T::Array[::Pathname]) } def requested_paths; end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#70 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#52 sig do type_parameters(:T) .params( @@ -1400,15 +1345,15 @@ class Tapioca::Dsl::Pipeline private - # source://tapioca//lib/tapioca/dsl/pipeline.rb#231 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#199 sig { void } def abort_if_pending_migrations!; end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#177 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#145 sig { params(constants: T::Set[::Module]).returns(T::Set[::Module]) } def filter_anonymous_and_reloaded_constants(constants); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#141 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#115 sig do params( requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], @@ -1417,7 +1362,7 @@ class Tapioca::Dsl::Pipeline end def gather_active_compilers(requested_compilers, excluded_compilers); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#155 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#123 sig do params( requested_constants: T::Array[::Module], @@ -1427,11 +1372,11 @@ class Tapioca::Dsl::Pipeline end def gather_constants(requested_constants, requested_paths, skipped_constants); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#206 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#174 sig { params(constant: ::Module).returns(T.nilable(::RBI::File)) } def rbi_for_constant(constant); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#225 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#193 sig { params(error: ::String).void } def report_error(error); end end @@ -1453,7 +1398,7 @@ class Tapioca::Executor sig { params(queue: T::Array[T.untyped], number_of_workers: T.nilable(::Integer)).void } def initialize(queue, number_of_workers: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/executor.rb#28 + # source://tapioca//lib/tapioca/executor.rb#22 sig do type_parameters(:T) .params( @@ -1464,7 +1409,7 @@ class Tapioca::Executor private - # source://tapioca//lib/tapioca/executor.rb#37 + # source://tapioca//lib/tapioca/executor.rb#31 sig { returns(::Integer) } def max_processors; end end @@ -1475,57 +1420,57 @@ Tapioca::Executor::MINIMUM_ITEMS_PER_WORKER = T.let(T.unsafe(nil), Integer) # source://tapioca//lib/tapioca/gem/events.rb#5 module Tapioca::Gem; end -# source://tapioca//lib/tapioca/gem/events.rb#77 +# source://tapioca//lib/tapioca/gem/events.rb#82 class Tapioca::Gem::ConstNodeAdded < ::Tapioca::Gem::NodeAdded - # source://tapioca//lib/tapioca/gem/events.rb#84 + # source://tapioca//lib/tapioca/gem/events.rb#89 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void } def initialize(symbol, constant, node); end - # source://tapioca//lib/tapioca/gem/events.rb#81 + # source://tapioca//lib/tapioca/gem/events.rb#86 sig { returns(::RBI::Const) } def node; end end -# source://tapioca//lib/tapioca/gem/events.rb#26 +# source://tapioca//lib/tapioca/gem/events.rb#27 class Tapioca::Gem::ConstantFound < ::Tapioca::Gem::Event - # source://tapioca//lib/tapioca/gem/events.rb#36 - sig { params(symbol: ::String, constant: ::BasicObject).void } + # @return [ConstantFound] a new instance of ConstantFound + # + # source://tapioca//lib/tapioca/gem/events.rb#39 def initialize(symbol, constant); end - # source://tapioca//lib/tapioca/gem/events.rb#33 - sig { returns(::BasicObject) } + # source://tapioca//lib/tapioca/gem/events.rb#35 def constant; end - # source://tapioca//lib/tapioca/gem/events.rb#30 + # source://tapioca//lib/tapioca/gem/events.rb#31 sig { returns(::String) } def symbol; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/gem/events.rb#6 class Tapioca::Gem::Event abstract! end -# source://tapioca//lib/tapioca/gem/events.rb#43 +# source://tapioca//lib/tapioca/gem/events.rb#46 class Tapioca::Gem::ForeignConstantFound < ::Tapioca::Gem::ConstantFound - # source://tapioca//lib/tapioca/gem/events.rb#52 + # source://tapioca//lib/tapioca/gem/events.rb#56 sig { params(symbol: ::String, constant: ::Module).void } def initialize(symbol, constant); end - # source://tapioca//lib/tapioca/gem/events.rb#47 + # source://tapioca//lib/tapioca/gem/events.rb#51 sig { override.returns(::Module) } def constant; end end -# source://tapioca//lib/tapioca/gem/events.rb#103 +# source://tapioca//lib/tapioca/gem/events.rb#108 class Tapioca::Gem::ForeignScopeNodeAdded < ::Tapioca::Gem::ScopeNodeAdded; end # source://tapioca//lib/tapioca/gem/listeners/base.rb#6 module Tapioca::Gem::Listeners; end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/gem/listeners/base.rb#7 class Tapioca::Gem::Listeners::Base @@ -1565,11 +1510,11 @@ class Tapioca::Gem::Listeners::DynamicMixins < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#31 + # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#33 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1581,15 +1526,15 @@ class Tapioca::Gem::Listeners::ForeignConstants < ::Tapioca::Gem::Listeners::Bas private - # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#60 + # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#58 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#55 + # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#52 sig { params(location: ::String).returns(T::Boolean) } def mixed_in_by_gem?(location); end - # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1603,7 +1548,7 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#35 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#28 sig do params( tree: ::RBI::Tree, @@ -1615,7 +1560,7 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base end def compile_directly_owned_methods(tree, module_name, mod, for_visibility = T.unsafe(nil), attached_class: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#71 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#56 sig do params( tree: ::RBI::Tree, @@ -1627,7 +1572,7 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base end def compile_method(tree, symbol_name, constant, method, visibility = T.unsafe(nil)); end - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#211 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#212 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end @@ -1635,11 +1580,7 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base sig { params(constant: ::Module).returns(T.nilable(::UnboundMethod)) } def initialize_method_for(constant); end - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#216 - sig { params(method: ::UnboundMethod).returns(T.untyped) } - def lookup_signature_of(method); end - - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#172 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#177 sig { params(mod: ::Module).returns(T::Hash[::Symbol, T::Array[::Symbol]]) } def method_names_by_visibility(mod); end @@ -1657,15 +1598,15 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base # It walks up the ancestor tree via the `super_method` method; if any of the super # methods are owned by the constant, it means that the constant declares the method. # - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#158 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#163 sig { params(method: ::UnboundMethod, constant: ::Module).returns(T::Boolean) } def method_owned_by_constant?(method, constant); end - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#16 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#17 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#181 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#186 sig { params(constant: ::Module, method_name: ::String).returns(T::Boolean) } def struct_method?(constant, method_name); end end @@ -1677,7 +1618,7 @@ class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#42 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#36 sig do params( tree: ::RBI::Tree, @@ -1688,15 +1629,15 @@ class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base end def add_mixins(tree, constant, mods, mixin_type); end - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#84 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#72 sig { params(mixin_name: ::String).returns(T::Boolean) } def filtered_mixin?(mixin_name); end - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#91 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#79 sig { params(constant: ::Module).returns(T::Array[::Module]) } def interesting_ancestors_of(constant); end - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#75 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#63 sig do params( constant: ::Module, @@ -1706,7 +1647,7 @@ class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base end def mixed_in_by_gem?(constant, mixin, mixin_type); end - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1718,11 +1659,11 @@ class Tapioca::Gem::Listeners::RemoveEmptyPayloadScopes < ::Tapioca::Gem::Listen private - # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#20 + # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#22 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1731,11 +1672,11 @@ end class Tapioca::Gem::Listeners::SorbetEnums < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#28 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#30 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#13 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#14 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1747,11 +1688,11 @@ class Tapioca::Gem::Listeners::SorbetHelpers < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#27 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#29 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1763,11 +1704,11 @@ class Tapioca::Gem::Listeners::SorbetProps < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#33 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#35 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#14 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#15 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1776,11 +1717,11 @@ end class Tapioca::Gem::Listeners::SorbetRequiredAncestors < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#23 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#25 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#13 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#14 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1794,19 +1735,19 @@ class Tapioca::Gem::Listeners::SorbetSignatures < ::Tapioca::Gem::Listeners::Bas private - # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#26 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#27 sig { params(signature: T.untyped, parameters: T::Array[[::Symbol, ::String]]).returns(::RBI::Sig) } def compile_signature(signature, parameters); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#79 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#81 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#18 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#19 sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } def on_method(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#68 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#69 sig { params(signature: T.untyped).returns(T::Boolean) } def signature_final?(signature); end end @@ -1821,19 +1762,19 @@ class Tapioca::Gem::Listeners::SorbetTypeVariables < ::Tapioca::Gem::Listeners:: private - # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#27 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#28 sig { params(tree: ::RBI::Tree, constant: ::Module).void } def compile_type_variable_declarations(tree, constant); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#63 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#65 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#50 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#51 sig { params(type_variable: ::Tapioca::TypeVariableModule).returns(T.nilable(::RBI::Node)) } def node_from_type_variable(type_variable); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1842,19 +1783,19 @@ end class Tapioca::Gem::Listeners::SourceLocation < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#41 + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#48 sig { params(node: ::RBI::NodeWithComments, file: T.nilable(::String), line: T.nilable(::Integer)).void } def add_source_location_comment(node, file, line); end - # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#13 + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#14 sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void } def on_const(event); end - # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#35 + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#38 sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } def on_method(event); end - # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#19 + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#21 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1866,53 +1807,57 @@ class Tapioca::Gem::Listeners::Subconstants < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#35 + # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#37 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#7 class Tapioca::Gem::Listeners::YardDoc < ::Tapioca::Gem::Listeners::Base - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#27 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#25 sig { params(pipeline: ::Tapioca::Gem::Pipeline).void } def initialize(pipeline); end private - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#55 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#61 sig { params(name: ::String, sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) } def documentation_comments(name, sigs: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#99 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#106 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#36 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#40 sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void } def on_const(event); end - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#46 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#52 sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } def on_method(event); end - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#41 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#46 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end + + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#34 + sig { params(line: ::String).returns(T::Boolean) } + def rbs_comment?(line); end end # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#10 Tapioca::Gem::Listeners::YardDoc::IGNORED_COMMENTS = T.let(T.unsafe(nil), Array) -# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#24 +# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#22 Tapioca::Gem::Listeners::YardDoc::IGNORED_SIG_TAGS = T.let(T.unsafe(nil), Array) -# source://tapioca//lib/tapioca/gem/events.rb#105 +# source://tapioca//lib/tapioca/gem/events.rb#110 class Tapioca::Gem::MethodNodeAdded < ::Tapioca::Gem::NodeAdded - # source://tapioca//lib/tapioca/gem/events.rb#130 + # source://tapioca//lib/tapioca/gem/events.rb#126 sig do params( symbol: ::String, @@ -1925,38 +1870,38 @@ class Tapioca::Gem::MethodNodeAdded < ::Tapioca::Gem::NodeAdded end def initialize(symbol, constant, method, node, signature, parameters); end - # source://tapioca//lib/tapioca/gem/events.rb#109 + # source://tapioca//lib/tapioca/gem/events.rb#114 sig { returns(::UnboundMethod) } def method; end - # source://tapioca//lib/tapioca/gem/events.rb#112 + # source://tapioca//lib/tapioca/gem/events.rb#117 sig { returns(::RBI::Method) } def node; end - # source://tapioca//lib/tapioca/gem/events.rb#118 + # source://tapioca//lib/tapioca/gem/events.rb#123 sig { returns(T::Array[[::Symbol, ::String]]) } def parameters; end - # source://tapioca//lib/tapioca/gem/events.rb#115 + # source://tapioca//lib/tapioca/gem/events.rb#120 sig { returns(T.untyped) } def signature; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://tapioca//lib/tapioca/gem/events.rb#57 +# source://tapioca//lib/tapioca/gem/events.rb#61 class Tapioca::Gem::NodeAdded < ::Tapioca::Gem::Event abstract! - # source://tapioca//lib/tapioca/gem/events.rb#70 + # source://tapioca//lib/tapioca/gem/events.rb#75 sig { params(symbol: ::String, constant: ::Module).void } def initialize(symbol, constant); end - # source://tapioca//lib/tapioca/gem/events.rb#67 + # source://tapioca//lib/tapioca/gem/events.rb#72 sig { returns(::Module) } def constant; end - # source://tapioca//lib/tapioca/gem/events.rb#64 + # source://tapioca//lib/tapioca/gem/events.rb#69 sig { returns(::String) } def symbol; end end @@ -1968,7 +1913,7 @@ class Tapioca::Gem::Pipeline include ::Tapioca::SorbetHelper include ::Tapioca::RBIHelper - # source://tapioca//lib/tapioca/gem/pipeline.rb#27 + # source://tapioca//lib/tapioca/gem/pipeline.rb#20 sig do params( gem: ::Tapioca::Gemfile::GemSpec, @@ -1979,11 +1924,11 @@ class Tapioca::Gem::Pipeline end def initialize(gem, error_handler:, include_doc: T.unsafe(nil), include_loc: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#64 + # source://tapioca//lib/tapioca/gem/pipeline.rb#57 sig { returns(::RBI::Tree) } def compile; end - # source://tapioca//lib/tapioca/gem/pipeline.rb#135 + # source://tapioca//lib/tapioca/gem/pipeline.rb#111 sig { params(name: T.any(::String, ::Symbol)).returns(T::Boolean) } def constant_in_gem?(name); end @@ -1995,33 +1940,35 @@ class Tapioca::Gem::Pipeline sig { returns(::Tapioca::Gemfile::GemSpec) } def gem; end - # source://tapioca//lib/tapioca/gem/pipeline.rb#153 - sig { params(method: ::UnboundMethod).returns(T::Boolean) } - def method_in_gem?(method); end + # source://tapioca//lib/tapioca/gem/pipeline.rb#149 + sig do + params( + method_name: ::Symbol, + owner: ::Module + ).returns(::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult) + end + def method_definition_in_gem(method_name, owner); end - # Helpers - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#163 + # source://tapioca//lib/tapioca/gem/pipeline.rb#175 sig { params(constant: ::Module).returns(T.nilable(::String)) } def name_of(constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#87 + # source://tapioca//lib/tapioca/gem/pipeline.rb#81 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void } def push_const(symbol, constant, node); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#77 - sig { params(symbol: ::String, constant: ::BasicObject).void } + # source://tapioca//lib/tapioca/gem/pipeline.rb#71 def push_constant(symbol, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#82 + # source://tapioca//lib/tapioca/gem/pipeline.rb#76 sig { params(symbol: ::String, constant: ::Module).void } def push_foreign_constant(symbol, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#101 + # source://tapioca//lib/tapioca/gem/pipeline.rb#91 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } def push_foreign_scope(symbol, constant, node); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#115 + # source://tapioca//lib/tapioca/gem/pipeline.rb#96 sig do params( symbol: ::String, @@ -2034,169 +1981,185 @@ class Tapioca::Gem::Pipeline end def push_method(symbol, constant, method, node, signature, parameters); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#94 + # source://tapioca//lib/tapioca/gem/pipeline.rb#86 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } def push_scope(symbol, constant, node); end - # Events handling - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#72 + # source://tapioca//lib/tapioca/gem/pipeline.rb#65 sig { params(symbol: ::String).void } def push_symbol(symbol); end - # Constants and properties filtering - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#122 + # source://tapioca//lib/tapioca/gem/pipeline.rb#103 sig { params(symbol_name: ::String).returns(T::Boolean) } def symbol_in_payload?(symbol_name); end private - # source://tapioca//lib/tapioca/gem/pipeline.rb#456 + # source://tapioca//lib/tapioca/gem/pipeline.rb#472 sig { params(name: ::String).void } def add_to_alias_namespace(name); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#461 + # source://tapioca//lib/tapioca/gem/pipeline.rb#477 sig { params(name: ::String).returns(T::Boolean) } def alias_namespaced?(name); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#260 + # source://tapioca//lib/tapioca/gem/pipeline.rb#273 sig { params(name: ::String, constant: ::Module).void } def compile_alias(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#246 - sig { params(symbol: ::String, constant: ::BasicObject).void } + # source://tapioca//lib/tapioca/gem/pipeline.rb#259 def compile_constant(symbol, constant); end - # Compiling - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#235 + # source://tapioca//lib/tapioca/gem/pipeline.rb#247 sig { params(symbol: ::String, constant: ::Module).void } def compile_foreign_constant(symbol, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#314 + # source://tapioca//lib/tapioca/gem/pipeline.rb#328 sig { params(name: ::String, constant: ::Module).void } def compile_module(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#281 - sig { params(name: ::String, value: ::BasicObject).void } + # source://tapioca//lib/tapioca/gem/pipeline.rb#295 def compile_object(name, value); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#325 + # source://tapioca//lib/tapioca/gem/pipeline.rb#339 sig { params(name: ::String, constant: ::Module).returns(::RBI::Scope) } def compile_scope(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#339 + # source://tapioca//lib/tapioca/gem/pipeline.rb#353 sig { params(constant: T::Class[T.anything]).returns(T.nilable(::String)) } def compile_superclass(constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#437 + # source://tapioca//lib/tapioca/gem/pipeline.rb#453 sig { params(constant: ::Module, strict: T::Boolean).returns(T::Boolean) } def defined_in_gem?(constant, strict: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#193 + # source://tapioca//lib/tapioca/gem/pipeline.rb#205 sig { params(event: ::Tapioca::Gem::Event).void } def dispatch(event); end - # Helpers - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#480 + # source://tapioca//lib/tapioca/gem/pipeline.rb#496 sig { params(constant: T.all(::Module, ::T::Generic)).returns(::String) } def generic_name_of(constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#449 + # source://tapioca//lib/tapioca/gem/pipeline.rb#465 sig { params(constant: ::Module).returns(T::Set[::String]) } def get_file_candidates(constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#178 + # source://tapioca//lib/tapioca/gem/pipeline.rb#190 sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) } def load_bootstrap_symbols(gem); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#496 + # source://tapioca//lib/tapioca/gem/pipeline.rb#512 sig { params(constant: ::Module, class_name: T.nilable(::String)).returns(T.nilable(::String)) } def name_of_proxy_target(constant, class_name); end - # Events handling - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#188 + # source://tapioca//lib/tapioca/gem/pipeline.rb#200 sig { returns(::Tapioca::Gem::Event) } def next_event; end - # source://tapioca//lib/tapioca/gem/pipeline.rb#216 + # source://tapioca//lib/tapioca/gem/pipeline.rb#228 sig { params(event: ::Tapioca::Gem::ConstantFound).void } def on_constant(event); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#228 + # source://tapioca//lib/tapioca/gem/pipeline.rb#240 sig { params(event: ::Tapioca::Gem::NodeAdded).void } def on_node(event); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#207 + # source://tapioca//lib/tapioca/gem/pipeline.rb#219 sig { params(event: ::Tapioca::Gem::SymbolFound).void } def on_symbol(event); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#468 + # source://tapioca//lib/tapioca/gem/pipeline.rb#484 sig { params(name: ::String).void } def seen!(name); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#473 + # source://tapioca//lib/tapioca/gem/pipeline.rb#489 sig { params(name: ::String).returns(T::Boolean) } def seen?(name); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#407 + # source://tapioca//lib/tapioca/gem/pipeline.rb#422 sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } def skip_alias?(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#395 - sig { params(name: ::String, constant: T.anything).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/gem/pipeline.rb#410 def skip_constant?(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#424 + # source://tapioca//lib/tapioca/gem/pipeline.rb#440 sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } def skip_foreign_constant?(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#429 + # source://tapioca//lib/tapioca/gem/pipeline.rb#445 sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } def skip_module?(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#416 - sig { params(name: ::String, constant: ::BasicObject).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/gem/pipeline.rb#432 def skip_object?(name, constant); end - # Constants and properties filtering - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#390 + # source://tapioca//lib/tapioca/gem/pipeline.rb#404 sig { params(name: ::String).returns(T::Boolean) } def skip_symbol?(name); end end -# this looks something like: -# "(eval at /path/to/file.rb:123)" -# and we are just interested in the "/path/to/file.rb" part +# source://tapioca//lib/tapioca/gem/pipeline.rb#11 +Tapioca::Gem::Pipeline::IGNORED_SYMBOLS = T.let(T.unsafe(nil), Array) + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://tapioca//lib/tapioca/gem/pipeline.rb#120 +class Tapioca::Gem::Pipeline::MethodDefinitionLookupResult + abstract! +end + +# The method defined in gem and has a source location +# +# source://tapioca//lib/tapioca/gem/pipeline.rb#135 +class Tapioca::Gem::Pipeline::MethodInGemWithLocation < ::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult + # source://tapioca//lib/tapioca/gem/pipeline.rb#142 + sig { params(location: ::Tapioca::Runtime::SourceLocation).void } + def initialize(location); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#139 + sig { returns(::Tapioca::Runtime::SourceLocation) } + def location; end +end + +# The method probably defined in the gem but doesn't have a source location # # source://tapioca//lib/tapioca/gem/pipeline.rb#132 -Tapioca::Gem::Pipeline::EVAL_SOURCE_FILE_PATTERN = T.let(T.unsafe(nil), Regexp) +class Tapioca::Gem::Pipeline::MethodInGemWithoutLocation < ::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult; end -# source://tapioca//lib/tapioca/gem/pipeline.rb#11 -Tapioca::Gem::Pipeline::IGNORED_SYMBOLS = T.let(T.unsafe(nil), Array) +# The method is not defined in the gem +# +# source://tapioca//lib/tapioca/gem/pipeline.rb#129 +class Tapioca::Gem::Pipeline::MethodNotInGem < ::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult; end + +# The method doesn't seem to exist +# +# source://tapioca//lib/tapioca/gem/pipeline.rb#126 +class Tapioca::Gem::Pipeline::MethodUnknown < ::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult; end -# source://tapioca//lib/tapioca/gem/events.rb#90 +# source://tapioca//lib/tapioca/gem/events.rb#95 class Tapioca::Gem::ScopeNodeAdded < ::Tapioca::Gem::NodeAdded - # source://tapioca//lib/tapioca/gem/events.rb#97 + # source://tapioca//lib/tapioca/gem/events.rb#102 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } def initialize(symbol, constant, node); end - # source://tapioca//lib/tapioca/gem/events.rb#94 + # source://tapioca//lib/tapioca/gem/events.rb#99 sig { returns(::RBI::Scope) } def node; end end -# source://tapioca//lib/tapioca/gem/events.rb#13 +# source://tapioca//lib/tapioca/gem/events.rb#14 class Tapioca::Gem::SymbolFound < ::Tapioca::Gem::Event - # source://tapioca//lib/tapioca/gem/events.rb#20 + # source://tapioca//lib/tapioca/gem/events.rb#21 sig { params(symbol: ::String).void } def initialize(symbol); end - # source://tapioca//lib/tapioca/gem/events.rb#17 + # source://tapioca//lib/tapioca/gem/events.rb#18 sig { returns(::String) } def symbol; end end @@ -2235,9 +2198,6 @@ class Tapioca::GemInfo < ::T::Struct # source://tapioca//lib/tapioca/gem_info.rb#13 sig { params(spec: ::Bundler::LazySpecification).returns(::Tapioca::GemInfo) } def from_spec(spec); end - - # source://sorbet-runtime/0.5.12003/lib/types/struct.rb#13 - def inherited(s); end end end @@ -2285,8 +2245,6 @@ class Tapioca::Gemfile sig { returns([T::Array[::Tapioca::Gemfile::GemSpec], T::Array[::String]]) } def load_dependencies; end - # @return [File] - # # source://tapioca//lib/tapioca/gemfile.rb#54 def lockfile; end @@ -2303,94 +2261,92 @@ end class Tapioca::Gemfile::GemSpec include ::Tapioca::GemHelper - # source://tapioca//lib/tapioca/gemfile.rb#145 + # source://tapioca//lib/tapioca/gemfile.rb#139 sig { params(spec: T.any(::Bundler::StubSpecification, ::Gem::Specification)).void } def initialize(spec); end - # source://tapioca//lib/tapioca/gemfile.rb#155 + # source://tapioca//lib/tapioca/gemfile.rb#149 sig { params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://tapioca//lib/tapioca/gemfile.rb#180 + # source://tapioca//lib/tapioca/gemfile.rb#174 sig { params(path: ::String).returns(T::Boolean) } def contains_path?(path); end - # source://tapioca//lib/tapioca/gemfile.rb#170 + # source://tapioca//lib/tapioca/gemfile.rb#164 sig { returns(T::Array[::Gem::Dependency]) } def dependencies; end - # source://tapioca//lib/tapioca/gemfile.rb#210 + # source://tapioca//lib/tapioca/gemfile.rb#204 sig { returns(T::Boolean) } def export_rbi_files?; end - # source://tapioca//lib/tapioca/gemfile.rb#205 + # source://tapioca//lib/tapioca/gemfile.rb#199 sig { returns(T::Array[::String]) } def exported_rbi_files; end - # source://tapioca//lib/tapioca/gemfile.rb#215 + # source://tapioca//lib/tapioca/gemfile.rb#209 sig { returns(::RBI::MergeTree) } def exported_rbi_tree; end - # source://tapioca//lib/tapioca/gemfile.rb#142 + # source://tapioca//lib/tapioca/gemfile.rb#136 sig { returns(T::Array[::Pathname]) } def files; end - # source://tapioca//lib/tapioca/gemfile.rb#139 + # source://tapioca//lib/tapioca/gemfile.rb#133 sig { returns(::String) } def full_gem_path; end - # source://tapioca//lib/tapioca/gemfile.rb#160 + # source://tapioca//lib/tapioca/gemfile.rb#154 sig { params(gemfile_dir: ::String).returns(T::Boolean) } def ignore?(gemfile_dir); end - # source://tapioca//lib/tapioca/gemfile.rb#165 + # source://tapioca//lib/tapioca/gemfile.rb#159 sig { returns(::String) } def name; end - # source://tapioca//lib/tapioca/gemfile.rb#189 + # source://tapioca//lib/tapioca/gemfile.rb#183 sig { void } def parse_yard_docs; end - # source://tapioca//lib/tapioca/gemfile.rb#175 + # source://tapioca//lib/tapioca/gemfile.rb#169 sig { returns(::String) } def rbi_file_name; end - # source://tapioca//lib/tapioca/gemfile.rb#227 + # source://tapioca//lib/tapioca/gemfile.rb#221 sig { params(file: ::Pathname).returns(::Pathname) } def relative_path_for(file); end - # @return [String] - # - # source://tapioca//lib/tapioca/gemfile.rb#139 + # source://tapioca//lib/tapioca/gemfile.rb#133 def version; end private - # source://tapioca//lib/tapioca/gemfile.rb#238 + # source://tapioca//lib/tapioca/gemfile.rb#232 sig { returns(T::Array[::Pathname]) } def collect_files; end - # source://tapioca//lib/tapioca/gemfile.rb#253 + # source://tapioca//lib/tapioca/gemfile.rb#247 sig { returns(T.nilable(T::Boolean)) } def default_gem?; end - # source://tapioca//lib/tapioca/gemfile.rb#312 + # source://tapioca//lib/tapioca/gemfile.rb#303 sig { returns(T::Boolean) } def gem_ignored?; end - # source://tapioca//lib/tapioca/gemfile.rb#291 + # source://tapioca//lib/tapioca/gemfile.rb#282 sig { params(path: ::String).returns(T::Boolean) } def has_parent_gemspec?(path); end - # source://tapioca//lib/tapioca/gemfile.rb#258 + # source://tapioca//lib/tapioca/gemfile.rb#252 sig { returns(::Regexp) } def require_paths_prefix_matcher; end - # source://tapioca//lib/tapioca/gemfile.rb#270 + # source://tapioca//lib/tapioca/gemfile.rb#261 sig { params(file: ::String).returns(::Pathname) } def resolve_to_ruby_lib_dir(file); end - # source://tapioca//lib/tapioca/gemfile.rb#284 + # source://tapioca//lib/tapioca/gemfile.rb#275 sig { returns(::String) } def version_string; end @@ -2401,13 +2357,13 @@ class Tapioca::Gemfile::GemSpec end end -# source://tapioca//lib/tapioca/gemfile.rb#125 +# source://tapioca//lib/tapioca/gemfile.rb#122 Tapioca::Gemfile::GemSpec::IGNORED_GEMS = T.let(T.unsafe(nil), Array) # source://tapioca//lib/tapioca/gemfile.rb#10 Tapioca::Gemfile::Spec = T.type_alias { T.any(::Bundler::StubSpecification, ::Gem::Specification) } -# source://tapioca//lib/tapioca.rb#33 +# source://tapioca//lib/tapioca.rb#29 Tapioca::LIB_ROOT_DIR = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/loaders/loader.rb#5 @@ -2415,7 +2371,7 @@ module Tapioca::Loaders; end # source://tapioca//lib/tapioca/loaders/dsl.rb#6 class Tapioca::Loaders::Dsl < ::Tapioca::Loaders::Loader - # source://tapioca//lib/tapioca/loaders/dsl.rb#74 + # source://tapioca//lib/tapioca/loaders/dsl.rb#66 sig do params( tapioca_path: ::String, @@ -2426,40 +2382,40 @@ class Tapioca::Loaders::Dsl < ::Tapioca::Loaders::Loader end def initialize(tapioca_path:, eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/loaders/dsl.rb#36 + # source://tapioca//lib/tapioca/loaders/dsl.rb#30 sig { override.void } def load; end - # source://tapioca//lib/tapioca/loaders/dsl.rb#43 + # source://tapioca//lib/tapioca/loaders/dsl.rb#37 sig { void } def load_dsl_extensions_and_compilers; end - # source://tapioca//lib/tapioca/loaders/dsl.rb#49 + # source://tapioca//lib/tapioca/loaders/dsl.rb#43 sig { void } def reload_custom_compilers; end protected - # source://tapioca//lib/tapioca/loaders/dsl.rb#120 + # source://tapioca//lib/tapioca/loaders/dsl.rb#112 sig { void } def load_application; end - # source://tapioca//lib/tapioca/loaders/dsl.rb#100 + # source://tapioca//lib/tapioca/loaders/dsl.rb#92 sig { void } def load_dsl_compilers; end - # source://tapioca//lib/tapioca/loaders/dsl.rb#85 + # source://tapioca//lib/tapioca/loaders/dsl.rb#77 sig { void } def load_dsl_extensions; end private - # source://tapioca//lib/tapioca/loaders/dsl.rb#136 + # source://tapioca//lib/tapioca/loaders/dsl.rb#128 sig { void } def load_custom_dsl_compilers; end class << self - # source://tapioca//lib/tapioca/loaders/dsl.rb#20 + # source://tapioca//lib/tapioca/loaders/dsl.rb#13 sig do params( tapioca_path: ::String, @@ -2474,7 +2430,7 @@ end # source://tapioca//lib/tapioca/loaders/gem.rb#6 class Tapioca::Loaders::Gem < ::Tapioca::Loaders::Loader - # source://tapioca//lib/tapioca/loaders/gem.rb#49 + # source://tapioca//lib/tapioca/loaders/gem.rb#34 sig do params( bundle: ::Tapioca::Gemfile, @@ -2486,22 +2442,22 @@ class Tapioca::Loaders::Gem < ::Tapioca::Loaders::Loader end def initialize(bundle:, prerequire:, postrequire:, default_command:, halt_upon_load_error:); end - # source://tapioca//lib/tapioca/loaders/gem.rb#34 + # source://tapioca//lib/tapioca/loaders/gem.rb#27 sig { override.void } def load; end protected - # source://tapioca//lib/tapioca/loaders/gem.rb#80 + # source://tapioca//lib/tapioca/loaders/gem.rb#65 sig { params(file: ::String, error: ::LoadError).void } def explain_failed_require(file, error); end - # source://tapioca//lib/tapioca/loaders/gem.rb#60 + # source://tapioca//lib/tapioca/loaders/gem.rb#45 sig { void } def require_gem_file; end class << self - # source://tapioca//lib/tapioca/loaders/gem.rb#21 + # source://tapioca//lib/tapioca/loaders/gem.rb#13 sig do params( bundle: ::Tapioca::Gemfile, @@ -2515,7 +2471,7 @@ class Tapioca::Loaders::Gem < ::Tapioca::Loaders::Loader end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/loaders/loader.rb#6 class Tapioca::Loaders::Loader @@ -2530,8 +2486,9 @@ class Tapioca::Loaders::Loader abstract! # @abstract + # @raise [NotImplementedError] # - # source://tapioca//lib/tapioca/loaders/loader.rb#17 + # source://tapioca//lib/tapioca/loaders/loader.rb#18 sig { abstract.void } def load; end @@ -2542,22 +2499,17 @@ class Tapioca::Loaders::Loader # engine paths. The following commit is the change: # https://github.com/rails/rails/commit/ebfca905db14020589c22e6937382e6f8f687664 # - # @param engine [T.class_of(Rails::Engine)] - # @return [Array] - # - # source://tapioca//lib/tapioca/loaders/loader.rb#234 + # source://tapioca//lib/tapioca/loaders/loader.rb#219 def eager_load_paths(engine); end - # source://tapioca//lib/tapioca/loaders/loader.rb#199 + # source://tapioca//lib/tapioca/loaders/loader.rb#183 sig { void } def eager_load_rails_app; end - # @return [Array] - # - # source://tapioca//lib/tapioca/loaders/loader.rb#178 + # source://tapioca//lib/tapioca/loaders/loader.rb#162 def engines; end - # source://tapioca//lib/tapioca/loaders/loader.rb#29 + # source://tapioca//lib/tapioca/loaders/loader.rb#23 sig do params( gemfile: ::Tapioca::Gemfile, @@ -2568,15 +2520,15 @@ class Tapioca::Loaders::Loader end def load_bundle(gemfile, initialize_file, require_file, halt_upon_load_error); end - # source://tapioca//lib/tapioca/loaders/loader.rb#136 + # source://tapioca//lib/tapioca/loaders/loader.rb#119 sig { void } def load_engines_in_classic_mode; end - # source://tapioca//lib/tapioca/loaders/loader.rb#114 + # source://tapioca//lib/tapioca/loaders/loader.rb#101 sig { void } def load_engines_in_zeitwerk_mode; end - # source://tapioca//lib/tapioca/loaders/loader.rb#49 + # source://tapioca//lib/tapioca/loaders/loader.rb#36 sig do params( environment_load: T::Boolean, @@ -2587,26 +2539,26 @@ class Tapioca::Loaders::Loader end def load_rails_application(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/loaders/loader.rb#89 + # source://tapioca//lib/tapioca/loaders/loader.rb#76 sig { void } def load_rails_engines; end - # source://tapioca//lib/tapioca/loaders/loader.rb#220 + # source://tapioca//lib/tapioca/loaders/loader.rb#204 sig { params(file: T.nilable(::String)).void } def require_helper(file); end - # source://tapioca//lib/tapioca/loaders/loader.rb#103 + # source://tapioca//lib/tapioca/loaders/loader.rb#90 def run_initializers; end - # source://tapioca//lib/tapioca/loaders/loader.rb#192 + # source://tapioca//lib/tapioca/loaders/loader.rb#176 sig { params(path: ::String).void } def safe_require(path); end - # source://tapioca//lib/tapioca/loaders/loader.rb#161 + # source://tapioca//lib/tapioca/loaders/loader.rb#144 sig { params(blk: T.proc.void).void } def with_rails_application(&blk); end - # source://tapioca//lib/tapioca/loaders/loader.rb#154 + # source://tapioca//lib/tapioca/loaders/loader.rb#137 sig { returns(T::Boolean) } def zeitwerk_mode?; end end @@ -2616,7 +2568,7 @@ module Tapioca::RBIFilesHelper requires_ancestor { Tapioca::SorbetHelper } requires_ancestor { Thor::Shell } - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#48 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#43 sig do params( index: ::RBI::Index, @@ -2626,19 +2578,19 @@ module Tapioca::RBIFilesHelper end def duplicated_nodes_from_index(index, shim_rbi_dir:, todo_rbi_file:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#13 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#14 sig { params(index: ::RBI::Index, kind: ::String, file: ::String).void } def index_rbi(index, kind, file); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#25 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#26 sig { params(index: ::RBI::Index, kind: ::String, dir: ::String, number_of_workers: T.nilable(::Integer)).void } def index_rbis(index, kind, dir, number_of_workers:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#65 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#60 sig { params(loc: ::RBI::Loc, path_prefix: T.nilable(::String)).returns(::String) } def location_to_payload_url(loc, path_prefix:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#86 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#72 sig do params( command: ::String, @@ -2653,27 +2605,11 @@ module Tapioca::RBIFilesHelper private - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#223 - sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[::RBI::Scope]) } - def extract_empty_scopes(nodes); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#228 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#250 sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) } def extract_methods_and_attrs(nodes); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#238 - sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Mixin, ::RBI::RequiresAncestor)]) } - def extract_mixins(nodes); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#248 - sig do - params( - nodes: T::Array[T.any(::RBI::Attr, ::RBI::Method)] - ).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) - end - def extract_nodes_with_sigs(nodes); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#216 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#243 sig do params( nodes: T::Array[::RBI::Node], @@ -2683,30 +2619,44 @@ module Tapioca::RBIFilesHelper end def extract_shims_and_todos(nodes, shim_rbi_dir:, todo_rbi_file:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#280 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#287 sig { params(path: ::String).returns(::String) } def gem_name_from_rbi_path(path); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#155 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#211 + sig { params(nodes: T::Array[::RBI::Node], shims_or_todos: T::Array[::RBI::Node]).returns(T::Boolean) } + def has_duplicated_methods_and_attrs?(nodes, shims_or_todos); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#203 + sig { params(shims_or_todos: T::Array[::RBI::Node]).returns(T::Boolean) } + def has_duplicated_mixins?(shims_or_todos); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#175 + sig { params(all_nodes: T::Array[::RBI::Node], shims_or_todos: T::Array[::RBI::Node]).returns(T::Boolean) } + def has_duplicated_scopes?(all_nodes, shims_or_todos); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#141 sig { params(index: ::RBI::Index, files: T::Array[::String], number_of_workers: T.nilable(::Integer)).void } def parse_and_index_files(index, files, number_of_workers:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#171 + # Do the list of `nodes` sharing the same name have duplicates? + # + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#158 sig { params(nodes: T::Array[::RBI::Node], shim_rbi_dir: ::String, todo_rbi_file: ::String).returns(T::Boolean) } def shims_or_todos_have_duplicates?(nodes, shim_rbi_dir:, todo_rbi_file:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#253 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#260 sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error], gem_dir: ::String).void } def update_gem_rbis_strictnesses(errors, gem_dir); end end # source://tapioca//lib/tapioca/rbi_formatter.rb#5 class Tapioca::RBIFormatter < ::RBI::Formatter - # source://tapioca//lib/tapioca/rbi_formatter.rb#24 + # source://tapioca//lib/tapioca/rbi_formatter.rb#18 sig { params(file: ::RBI::File).void } def write_empty_body_comment!(file); end - # source://tapioca//lib/tapioca/rbi_formatter.rb#15 + # source://tapioca//lib/tapioca/rbi_formatter.rb#9 sig { params(file: ::RBI::File, command: ::String, reason: T.nilable(::String)).void } def write_header!(file, command, reason: T.unsafe(nil)); end end @@ -2717,60 +2667,60 @@ module Tapioca::RBIHelper extend ::Tapioca::SorbetHelper extend ::Tapioca::RBIHelper - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#91 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#83 sig { params(type: ::String).returns(::String) } def as_nilable_type(type); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#100 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#92 sig { params(type: ::String).returns(::String) } def as_non_nilable_type(type); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#72 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#64 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_block_param(name, type:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#62 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#54 sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) } def create_kw_opt_param(name, type:, default:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#57 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#49 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_kw_param(name, type:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#67 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#59 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_kw_rest_param(name, type:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#47 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#39 sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) } def create_opt_param(name, type:, default:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#42 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#34 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_param(name, type:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#52 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#44 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_rest_param(name, type:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#77 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#69 sig { params(param: ::RBI::Param, type: ::String).returns(::RBI::TypedParam) } def create_typed_param(param, type); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#82 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#74 sig { params(sig_string: ::String).returns(::String) } def sanitize_signature_types(sig_string); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#109 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#101 sig { params(name: ::String).returns(T::Boolean) } def valid_method_name?(name); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#114 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#106 sig { params(name: ::String).returns(T::Boolean) } def valid_parameter_name?(name); end class << self - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#23 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#15 sig do params( type: ::String, @@ -2786,29 +2736,29 @@ end # source://tapioca//lib/tapioca/repo_index.rb#5 class Tapioca::RepoIndex - # source://tapioca//lib/tapioca/repo_index.rb#26 + # source://tapioca//lib/tapioca/repo_index.rb#24 sig { void } def initialize; end - # source://tapioca//lib/tapioca/repo_index.rb#31 + # source://tapioca//lib/tapioca/repo_index.rb#29 sig { params(gem_name: ::String).void } def <<(gem_name); end - # source://tapioca//lib/tapioca/repo_index.rb#36 + # source://tapioca//lib/tapioca/repo_index.rb#34 sig { returns(T::Enumerable[::String]) } def gems; end - # source://tapioca//lib/tapioca/repo_index.rb#41 + # source://tapioca//lib/tapioca/repo_index.rb#39 sig { params(gem_name: ::String).returns(T::Boolean) } def has_gem?(gem_name); end class << self - # source://tapioca//lib/tapioca/repo_index.rb#18 - sig { params(hash: T::Hash[::String, T::Hash[T.untyped, T.untyped]]).returns(Tapioca::RepoIndex) } + # source://tapioca//lib/tapioca/repo_index.rb#16 + sig { params(hash: T::Hash[::String, T::Hash[T.untyped, T.untyped]]).returns(::Tapioca::RepoIndex) } def from_hash(hash); end - # source://tapioca//lib/tapioca/repo_index.rb#13 - sig { params(json: ::String).returns(Tapioca::RepoIndex) } + # source://tapioca//lib/tapioca/repo_index.rb#11 + sig { params(json: ::String).returns(::Tapioca::RepoIndex) } def from_json(json); end end end @@ -2822,7 +2772,6 @@ module Tapioca::Runtime; end # class by iterating through ObjectSpace. module Tapioca::Runtime::AttachedClassOf # source://tapioca//lib/tapioca/runtime/attached_class_of_32.rb#14 - sig { params(singleton_class: ::Class).returns(T.nilable(::Module)) } def attached_class_of(singleton_class); end end @@ -2831,65 +2780,54 @@ class Tapioca::Runtime::DynamicMixinCompiler include ::Tapioca::Runtime::AttachedClassOf include ::Tapioca::Runtime::Reflection + # @return [DynamicMixinCompiler] a new instance of DynamicMixinCompiler + # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#20 - sig { params(constant: ::Module).void } def initialize(constant); end - # @return [Array] - # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 def class_attribute_predicates; end # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 - sig { returns(T::Array[::Symbol]) } def class_attribute_readers; end - # @return [Array] - # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 def class_attribute_writers; end # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#137 - sig { params(tree: ::RBI::Tree).void } def compile_class_attributes(tree); end # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#180 - sig { params(tree: ::RBI::Tree).returns([T::Array[::Module], T::Array[::Module]]) } def compile_mixes_in_class_methods(tree); end # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#11 - sig { returns(T::Array[::Module]) } def dynamic_extends; end - # @return [Array] - # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#11 def dynamic_includes; end + # @return [Boolean] + # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#132 - sig { returns(T::Boolean) } def empty_attributes?; end + # @return [Boolean] + # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#222 - sig { params(qualified_mixin_name: ::String).returns(T::Boolean) } def filtered_mixin?(qualified_mixin_name); end - # @return [Array] - # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 def instance_attribute_predicates; end # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 - sig { returns(T::Array[::Symbol]) } def instance_attribute_readers; end - # @return [Array] - # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 def instance_attribute_writers; end + # @return [Boolean] + # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#215 - sig { params(mod: ::Module, dynamic_extends: T::Array[::Module]).returns(T::Boolean) } def module_included_by_another_dynamic_extend?(mod, dynamic_extends); end end @@ -2914,12 +2852,12 @@ end # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#23 module Tapioca::Runtime::GenericTypeRegistry class << self - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#80 - sig { params(instance: ::Object).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#75 def generic_type_instance?(instance); end - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#85 - sig { params(constant: ::Module).returns(T.nilable(T::Array[::Tapioca::TypeVariableModule])) } + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#80 def lookup_type_variables(constant); end # This method is responsible for building the name of the instantiated concrete type @@ -2934,8 +2872,7 @@ module Tapioca::Runtime::GenericTypeRegistry # # This method returns the created or cached clone of the constant. # - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#65 - sig { params(constant: T.untyped, types: T.untyped).returns(::Module) } + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#60 def register_type(constant, types); end # This method is called from intercepted calls to `type_member` and `type_template`. @@ -2948,34 +2885,32 @@ module Tapioca::Runtime::GenericTypeRegistry # Finally, the original `type_variable` is returned from this method, so that the caller # can return it from the original methods as well. # - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#104 - sig { params(constant: T.untyped, type_variable: ::Tapioca::TypeVariableModule).void } + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#94 def register_type_variable(constant, type_variable); end private - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#113 - sig { params(constant: ::Module, name: ::String).returns(::Module) } + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#103 def create_generic_type(constant, name); end - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#155 - sig { params(constant: T::Class[T.anything]).returns(T::Class[T.anything]) } + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#145 def create_safe_subclass(constant); end - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#182 - sig { params(constant: ::Module).returns(T::Array[::Tapioca::TypeVariableModule]) } + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#172 def lookup_or_initialize_type_variables(constant); end end end -# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#34 +# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#28 class Tapioca::Runtime::GenericTypeRegistry::GenericType < ::T::Types::Simple - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#38 - sig { params(raw_type: ::Module, underlying_type: ::Module).void } + # @return [GenericType] a new instance of GenericType + # + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#32 def initialize(raw_type, underlying_type); end - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#45 - sig { override.params(obj: T.untyped).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#40 def valid?(obj); end end @@ -2984,34 +2919,32 @@ module Tapioca::Runtime::Reflection extend ::Tapioca::Runtime::AttachedClassOf extend ::Tapioca::Runtime::Reflection - # source://tapioca//lib/tapioca/runtime/reflection.rb#207 - sig { params(constant: ::Module).returns(T.untyped) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#228 def abstract_type_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#77 - sig { params(constant: ::Module).returns(T::Array[::Module]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#75 def ancestors_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#92 - sig { params(object: ::BasicObject, other: ::BasicObject).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#90 def are_equal?(object, other); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#56 - sig { params(object: ::BasicObject).returns(T::Class[T.anything]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#54 def class_of(object); end - # @param constant [BasicObject] + # source://tapioca//lib/tapioca/runtime/reflection.rb#179 + def const_source_location(constant_name); end + # @return [Boolean] # - # source://tapioca//lib/tapioca/runtime/reflection.rb#38 + # source://tapioca//lib/tapioca/runtime/reflection.rb#41 def constant_defined?(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#49 - sig { params(symbol: ::String, inherit: T::Boolean, namespace: ::Module).returns(::BasicObject) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#47 def constantize(symbol, inherit: T.unsafe(nil), namespace: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#61 - sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#59 def constants_of(constant); end # Returns an array with all classes that are < than the supplied class. @@ -3028,57 +2961,42 @@ module Tapioca::Runtime::Reflection # class D < C; end # descendants_of(C) # => [B, A, D] # - # source://tapioca//lib/tapioca/runtime/reflection.rb#172 - sig do - type_parameters(:U) - .params( - klass: T.all(T.type_parameter(:U), T::Class[T.anything]) - ).returns(T::Array[T.type_parameter(:U)]) - end + # source://tapioca//lib/tapioca/runtime/reflection.rb#170 def descendants_of(klass); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#200 - sig { params(constant: ::Module).returns(T::Set[::String]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#221 def file_candidates_for(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#213 - sig { params(constant: ::Module).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#234 def final_module?(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#112 - sig { params(constant: ::Module).returns(T::Array[::Module]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#110 def inherited_ancestors_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#150 - sig { params(constant: ::Module, method: ::Symbol).returns(::Method) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#152 def method_of(constant, method); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#66 - sig { params(constant: ::Module).returns(T.nilable(::String)) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#64 def name_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#145 - sig { params(type: ::T::Types::Base).returns(::String) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#147 def name_of_type(type); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#87 - sig { params(object: ::BasicObject).returns(::Integer) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#85 def object_id_of(object); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#107 - sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#105 def private_instance_methods_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#102 - sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#100 def protected_instance_methods_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#97 - sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#95 def public_instance_methods_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#121 - sig { params(constant: ::Module).returns(T.nilable(::String)) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#119 def qualified_name_of(constant); end # Examines the call stack to identify the closest location where a "require" is performed @@ -3086,110 +3004,128 @@ module Tapioca::Runtime::Reflection # case of an ActiveSupport.on_load hook. If none is found, it returns the location # labeled "
", which is the original call site. # - # source://tapioca//lib/tapioca/runtime/reflection.rb#185 - sig { params(locations: T.nilable(T::Array[::Thread::Backtrace::Location])).returns(::String) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#192 def resolve_loc(locations); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#218 - sig { params(constant: ::Module).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#239 def sealed_module?(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#138 - sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#140 def signature_of(method); end # source://tapioca//lib/tapioca/runtime/reflection.rb#133 - sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) } def signature_of!(method); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#72 - sig { params(constant: ::Module).returns(T::Class[T.anything]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#70 def singleton_class_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#82 - sig { params(constant: T::Class[T.anything]).returns(T.nilable(T::Class[T.anything])) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#80 def superclass_of(constant); end private - # source://tapioca//lib/tapioca/runtime/reflection.rb#255 - sig { params(parent: ::Module, name: ::String).returns(T.nilable(::Module)) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#276 def child_module_for_parent_with_name(parent, name); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#271 - sig { params(name: ::String).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#292 def has_aliased_namespace?(name); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#266 - sig { params(method: ::UnboundMethod).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#287 def method_defined_by_forwardable_module?(method); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#241 - sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#262 def methods_for(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#225 - sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#246 def relevant_methods_for(constant); end end -# source://tapioca//lib/tapioca/runtime/reflection.rb#25 +# source://tapioca//lib/tapioca/runtime/reflection.rb#27 Tapioca::Runtime::Reflection::ANCESTORS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#21 +# source://tapioca//lib/tapioca/runtime/reflection.rb#23 Tapioca::Runtime::Reflection::CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#22 +# source://tapioca//lib/tapioca/runtime/reflection.rb#24 Tapioca::Runtime::Reflection::CONSTANTS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#28 +# source://tapioca//lib/tapioca/runtime/reflection.rb#30 Tapioca::Runtime::Reflection::EQUAL_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#32 +# source://tapioca//lib/tapioca/runtime/reflection.rb#34 Tapioca::Runtime::Reflection::METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#23 +# source://tapioca//lib/tapioca/runtime/reflection.rb#25 Tapioca::Runtime::Reflection::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#27 +# source://tapioca//lib/tapioca/runtime/reflection.rb#29 Tapioca::Runtime::Reflection::OBJECT_ID_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#31 +# source://tapioca//lib/tapioca/runtime/reflection.rb#33 Tapioca::Runtime::Reflection::PRIVATE_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#30 +# source://tapioca//lib/tapioca/runtime/reflection.rb#32 Tapioca::Runtime::Reflection::PROTECTED_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#29 +# source://tapioca//lib/tapioca/runtime/reflection.rb#31 Tapioca::Runtime::Reflection::PUBLIC_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#35 +# source://tapioca//lib/tapioca/runtime/reflection.rb#37 Tapioca::Runtime::Reflection::REQUIRED_FROM_LABELS = T.let(T.unsafe(nil), Array) -# source://tapioca//lib/tapioca/runtime/reflection.rb#24 +# source://tapioca//lib/tapioca/runtime/reflection.rb#26 Tapioca::Runtime::Reflection::SINGLETON_CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#26 +# source://tapioca//lib/tapioca/runtime/reflection.rb#28 Tapioca::Runtime::Reflection::SUPERCLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) +class Tapioca::Runtime::Reflection::SignatureBlockError < ::Tapioca::Error; end + +class Tapioca::Runtime::SourceLocation + # @return [SourceLocation] a new instance of SourceLocation + # + # source://tapioca//lib/tapioca/runtime/source_location.rb#18 + def initialize(file:, line:); end + + # source://tapioca//lib/tapioca/runtime/source_location.rb#13 + def file; end + + # source://tapioca//lib/tapioca/runtime/source_location.rb#16 + def line; end + + class << self + # source://tapioca//lib/tapioca/runtime/source_location.rb#38 + def from_loc(loc); end + + private + + def new(*_arg0); end + end +end + +# this looks something like: +# "(eval at /path/to/file.rb:123)" +# and we are interested in the "/path/to/file.rb" and "123" parts +# +# source://tapioca//lib/tapioca/runtime/source_location.rb#10 +Tapioca::Runtime::SourceLocation::EVAL_SOURCE_FILE_PATTERN = T.let(T.unsafe(nil), Regexp) + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#6 module Tapioca::Runtime::Trackers class << self - # source://tapioca//lib/tapioca/runtime/trackers.rb#34 - sig { void } + # source://tapioca//lib/tapioca/runtime/trackers.rb#30 def disable_all!; end - # source://tapioca//lib/tapioca/runtime/trackers.rb#39 - sig { params(tracker: ::Tapioca::Runtime::Trackers::Tracker).void } + # source://tapioca//lib/tapioca/runtime/trackers.rb#35 def register_tracker(tracker); end - # source://tapioca//lib/tapioca/runtime/trackers.rb#21 - sig do - type_parameters(:Return) - .params( - blk: T.proc.returns(T.type_parameter(:Return)) - ).returns(T.type_parameter(:Return)) - end + # source://tapioca//lib/tapioca/runtime/trackers.rb#17 def with_trackers_enabled(&blk); end end end @@ -3200,20 +3136,12 @@ module Tapioca::Runtime::Trackers::Autoload class << self # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#19 - sig { void } def eager_load_all!; end # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#31 - sig { params(constant_name: ::String).void } def register(constant_name); end - # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#42 - sig do - type_parameters(:Result) - .params( - block: T.proc.returns(T.type_parameter(:Result)) - ).returns(T.type_parameter(:Result)) - end + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#38 def with_disabled_exits(&block); end end end @@ -3232,7 +3160,7 @@ module Tapioca::Runtime::Trackers::ConstantDefinition class << self # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#61 - def build_constant_location(tp, locations); end + def build_source_location(tp, locations); end # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#55 def disable!; end @@ -3241,71 +3169,57 @@ module Tapioca::Runtime::Trackers::ConstantDefinition # about situations where the class was opened prior to +require+ing, # or where metaprogramming was used via +eval+, etc. # - # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#71 + # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#74 def files_for(klass); end - # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#75 + # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#79 def locations_for(klass); end end end +# source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#7 +module Tapioca::Runtime::Trackers::MethodDefinition + extend ::Tapioca::Runtime::Trackers::Tracker + + class << self + # source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#29 + def method_definitions_for(method_name, owner); end + + # source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#15 + def register(method_name, owner, locations); end + + private + + # source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#43 + def registrations_for(method_name, owner); end + end +end + module Tapioca::Runtime::Trackers::Mixin extend ::Tapioca::Runtime::Trackers::Tracker class << self - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#56 - sig do - params( - mixin: ::Module - ).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, ::String]]) - end + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#53 def constants_with_mixin(mixin); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#61 - sig do - params( - mixin: ::Module, - mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type, - constant: ::Module - ).returns(T.nilable(::String)) - end + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#58 def mixin_location(mixin, mixin_type, constant); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#35 - sig { params(constant: ::Module, mixin: ::Module, mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type).void } + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#31 def register(constant, mixin, mixin_type); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#43 + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#40 def resolve_to_attached_class(constant, mixin, mixin_type); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#30 - sig do - type_parameters(:Result) - .params( - block: T.proc.returns(T.type_parameter(:Result)) - ).returns(T.type_parameter(:Result)) - end + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#26 def with_disabled_registration(&block); end private - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#76 - sig do - params( - mixin: ::Module - ).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, ::String]]) - end + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#73 def find_or_initialize_mixin_lookup(mixin); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#68 - sig do - params( - constant: ::Module, - mixin: ::Module, - mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type, - location: ::String - ).void - end + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#65 def register_with_location(constant, mixin, mixin_type, location); end end end @@ -3324,109 +3238,102 @@ module Tapioca::Runtime::Trackers::RequiredAncestor class << self # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#15 - sig { params(requiring: ::T::Helpers, block: T.proc.void).void } def register(requiring, block); end # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#23 - sig { params(mod: ::Module).returns(T::Array[T.proc.void]) } def required_ancestors_blocks_by(mod); end # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#28 - sig { params(mod: ::Module).returns(T::Array[T.untyped]) } def required_ancestors_by(mod); end end end -# @abstract Subclasses must implement the `abstract` methods below. +# @abstract module Tapioca::Runtime::Trackers::Tracker - abstract! - - # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#26 - sig { void } + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#23 def disable!; end # @return [Boolean] # - # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#30 + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#27 def enabled?; end - # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#34 + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#31 def with_disabled_tracker(&block); end class << self - # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#17 - sig { params(base: T.all(::Module, ::Tapioca::Runtime::Trackers::Tracker)).void } + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#14 def extended(base); end end end -# source://tapioca//lib/tapioca.rb#35 +# source://tapioca//lib/tapioca.rb#31 Tapioca::SORBET_CONFIG_FILE = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#34 +# source://tapioca//lib/tapioca.rb#30 Tapioca::SORBET_DIR = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#5 module Tapioca::SorbetHelper - # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#32 + # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#23 sig { params(sorbet_args: ::String).returns(::Spoom::ExecResult) } def sorbet(*sorbet_args); end - # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#37 + # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#28 sig { returns(::String) } def sorbet_path; end - # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#44 + # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#35 sig { params(feature: ::Symbol, version: T.nilable(::Gem::Version)).returns(T::Boolean) } def sorbet_supports?(feature, version: T.unsafe(nil)); end end -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#24 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#18 Tapioca::SorbetHelper::FEATURE_REQUIREMENTS = T.let(T.unsafe(nil), Hash) -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#13 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#10 Tapioca::SorbetHelper::SORBET_BIN = T.let(T.unsafe(nil), Pathname) -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#18 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#12 Tapioca::SorbetHelper::SORBET_EXE_PATH_ENV_VAR = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#8 Tapioca::SorbetHelper::SORBET_GEM_SPEC = T.let(T.unsafe(nil), Gem::Specification) -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#20 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#14 Tapioca::SorbetHelper::SORBET_PAYLOAD_URL = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#22 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#16 Tapioca::SorbetHelper::SPOOM_CONTEXT = T.let(T.unsafe(nil), Spoom::Context) # source://tapioca//lib/tapioca/helpers/source_uri.rb#7 class Tapioca::SourceURI < ::URI::File - # source://tapioca//lib/tapioca/helpers/source_uri.rb#72 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#62 sig { params(v: T.nilable(::String)).returns(T::Boolean) } def check_host(v); end - # source://tapioca//lib/tapioca/helpers/source_uri.rb#55 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#45 sig { returns(T.nilable(::String)) } def gem_name; end - # source://tapioca//lib/tapioca/helpers/source_uri.rb#29 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#26 sig { returns(T.nilable(::String)) } def gem_version; end - # source://tapioca//lib/tapioca/helpers/source_uri.rb#60 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#50 sig { returns(T.nilable(::String)) } def line_number; end - # source://tapioca//lib/tapioca/helpers/source_uri.rb#65 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#55 sig { params(v: T.nilable(::String)).void } def set_path(v); end - # source://tapioca//lib/tapioca/helpers/source_uri.rb#84 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#74 sig { returns(::String) } def to_s; end class << self - # source://tapioca//lib/tapioca/helpers/source_uri.rb#42 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#32 sig do params( gem_name: ::String, @@ -3448,7 +3355,7 @@ Tapioca::SourceURI::COMPONENT = T.let(T.unsafe(nil), Array) # handling to select a parser that doesn't emit deprecations. While it was backported to Ruby 3.1, users may # have the uri gem in their own bundle and thus not use a compatible version. # -# source://tapioca//lib/tapioca/helpers/source_uri.rb#26 +# source://tapioca//lib/tapioca/helpers/source_uri.rb#23 Tapioca::SourceURI::PARSER = T.let(T.unsafe(nil), URI::RFC2396_Parser) # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#5 @@ -3508,12 +3415,10 @@ module Tapioca::Static::SymbolLoader private - # @return [Array] - # - # source://tapioca//lib/tapioca/static/symbol_loader.rb#71 + # source://tapioca//lib/tapioca/static/symbol_loader.rb#72 def engines; end - # source://tapioca//lib/tapioca/static/symbol_loader.rb#84 + # source://tapioca//lib/tapioca/static/symbol_loader.rb#82 sig { params(input: ::String, table_type: ::String).returns(::String) } def symbol_table_json_from(input, table_type: T.unsafe(nil)); end end @@ -3547,10 +3452,10 @@ end # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#9 Tapioca::Static::SymbolTableParser::SKIP_PARSE_KINDS = T.let(T.unsafe(nil), Array) -# source://tapioca//lib/tapioca.rb#37 +# source://tapioca//lib/tapioca.rb#33 Tapioca::TAPIOCA_CONFIG_FILE = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#36 +# source://tapioca//lib/tapioca.rb#32 Tapioca::TAPIOCA_DIR = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#108 @@ -3574,41 +3479,31 @@ end # # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#122 class Tapioca::TypeVariableModule < ::Module - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#146 - sig do - params( - context: ::Module, - type: ::Tapioca::TypeVariableModule::Type, - variance: ::Symbol, - bounds_proc: T.nilable(T.proc.returns(T::Hash[::Symbol, T.untyped])) - ).void - end + # @return [TypeVariableModule] a new instance of TypeVariableModule + # + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#139 def initialize(context, type, variance, bounds_proc); end - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#181 - sig { returns(::Tapioca::TypeVariable) } + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#175 def coerce_to_type_variable; end - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#161 - sig { returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#155 def fixed?; end - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#155 - sig { returns(T.nilable(::String)) } + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#149 def name; end - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#166 - sig { returns(::String) } + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#160 def serialize; end # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#136 - sig { returns(::Tapioca::TypeVariableModule::Type) } def type; end private - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#188 - sig { returns(T::Hash[::Symbol, T.untyped]) } + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#182 def bounds; end end diff --git a/sorbet/rbi/gems/thor@1.3.2.rbi b/sorbet/rbi/gems/thor@1.4.0.rbi similarity index 97% rename from sorbet/rbi/gems/thor@1.3.2.rbi rename to sorbet/rbi/gems/thor@1.4.0.rbi index 10202a5d..e5184890 100644 --- a/sorbet/rbi/gems/thor@1.3.2.rbi +++ b/sorbet/rbi/gems/thor@1.4.0.rbi @@ -78,7 +78,7 @@ class Thor # # Then it is required either only one of "--one" or "--two". # - # source://thor//lib/thor.rb#246 + # source://thor//lib/thor.rb#250 def at_least_one(*args, &block); end # Extend check unknown options to accept a hash of conditions. @@ -131,7 +131,7 @@ class Thor # ==== Parameters # meth:: name of the default command # - # source://thor//lib/thor.rb#21 + # source://thor//lib/thor.rb#28 def default_task(meth = T.unsafe(nil)); end # source://thor//lib/thor/base.rb#26 @@ -188,7 +188,7 @@ class Thor # If you give "--one" and "--two" at the same time ExclusiveArgumentsError # will be raised. # - # source://thor//lib/thor.rb#203 + # source://thor//lib/thor.rb#207 def exclusive(*args, &block); end # Prints help information for this class. @@ -364,7 +364,7 @@ class Thor # :banner - String to show on usage notes. # :hide - If you want to hide this option from the help. # - # source://thor//lib/thor.rb#163 + # source://thor//lib/thor.rb#175 def option(name, options = T.unsafe(nil)); end # Declares the options for the next command to be declared. @@ -374,7 +374,7 @@ class Thor # is the type of the option. Can be :string, :array, :hash, :boolean, :numeric # or :required (string). If you give a value, the type of the value is used. # - # source://thor//lib/thor.rb#129 + # source://thor//lib/thor.rb#135 def options(options = T.unsafe(nil)); end # Allows for custom "Command" package naming. @@ -393,7 +393,7 @@ class Thor # Returns commands ready to be printed. # - # source://thor//lib/thor.rb#309 + # source://thor//lib/thor.rb#318 def printable_tasks(all = T.unsafe(nil), subcommand = T.unsafe(nil)); end # Registers another Thor subclass as a command. @@ -462,10 +462,10 @@ class Thor # source://thor//lib/thor.rb#320 def subcommands; end - # source://thor//lib/thor.rb#329 + # source://thor//lib/thor.rb#344 def subtask(subcommand, subcommand_class); end - # source://thor//lib/thor.rb#320 + # source://thor//lib/thor.rb#323 def subtasks; end # Prints help information for the given command. @@ -474,7 +474,7 @@ class Thor # shell # command_name # - # source://thor//lib/thor.rb#258 + # source://thor//lib/thor.rb#281 def task_help(shell, command_name); end protected @@ -493,7 +493,7 @@ class Thor # source://thor//lib/thor.rb#560 def create_command(meth); end - # source://thor//lib/thor.rb#560 + # source://thor//lib/thor.rb#584 def create_task(meth); end # help command has the required check disabled by default. @@ -522,7 +522,7 @@ class Thor # and determines whether it is an unambiguous substrings of a command or # alias name. # - # source://thor//lib/thor.rb#626 + # source://thor//lib/thor.rb#639 def find_task_possibilities(meth); end # source://thor//lib/thor.rb#586 @@ -567,7 +567,7 @@ class Thor # # @raise [AmbiguousTaskError] # - # source://thor//lib/thor.rb#605 + # source://thor//lib/thor.rb#621 def normalize_task_name(meth); end # source://thor//lib/thor.rb#493 @@ -583,7 +583,7 @@ class Thor # Retrieve the command name from given args. # - # source://thor//lib/thor.rb#592 + # source://thor//lib/thor.rb#596 def retrieve_task_name(args); end # Sort the commands, lexicographically by default. @@ -600,7 +600,7 @@ class Thor # source://thor//lib/thor.rb#641 def subcommand_help(cmd); end - # source://thor//lib/thor.rb#641 + # source://thor//lib/thor.rb#647 def subtask_help(cmd); end end end @@ -643,7 +643,7 @@ module Thor::Actions # # create_file "config/apache.conf", "your apache config" # - # source://thor//lib/thor/actions/create_file.rb#22 + # source://thor//lib/thor/actions/create_file.rb#27 def add_file(destination, *args, &block); end # Create a new file relative to the destination root from the given source. @@ -658,7 +658,7 @@ module Thor::Actions # # create_link "config/apache.conf", "/etc/apache.conf" # - # source://thor//lib/thor/actions/create_link.rb#17 + # source://thor//lib/thor/actions/create_link.rb#22 def add_link(destination, *args); end # Append text to a file. Since it depends on insert_into_file, it's reversible. @@ -676,7 +676,7 @@ module Thor::Actions # 'config.gem "rspec"' # end # - # source://thor//lib/thor/actions/file_manipulation.rb#192 + # source://thor//lib/thor/actions/file_manipulation.rb#197 def append_file(path, *args, &block); end # Append text to a file. Since it depends on insert_into_file, it's reversible. @@ -751,7 +751,7 @@ module Thor::Actions # # comment_lines 'config/initializers/session_store.rb', /cookie_store/ # - # source://thor//lib/thor/actions/file_manipulation.rb#308 + # source://thor//lib/thor/actions/file_manipulation.rb#333 def comment_lines(path, flag, *args); end # Copies the file from the relative source to the relative destination. If @@ -928,9 +928,30 @@ module Thor::Actions # match << " no more. Use thor!" # end # - # source://thor//lib/thor/actions/file_manipulation.rb#262 + # source://thor//lib/thor/actions/file_manipulation.rb#291 def gsub_file(path, flag, *args, &block); end + # Run a regular expression replacement on a file, raising an error if the + # contents of the file are not changed. + # + # ==== Parameters + # path:: path of the file to be changed + # flag:: the regexp or string to be replaced + # replacement:: the replacement, can be also given as a block + # config:: give :verbose => false to not log the status, and + # :force => true, to force the replacement regardless of runner behavior. + # + # ==== Example + # + # gsub_file! 'app/controllers/application_controller.rb', /#\s*(filter_parameter_logging :password)/, '\1' + # + # gsub_file! 'README', /rake/, :green do |match| + # match << " no more. Use thor!" + # end + # + # source://thor//lib/thor/actions/file_manipulation.rb#263 + def gsub_file!(path, flag, *args, &block); end + # Goes to the root and execute the given block. # # source://thor//lib/thor/actions.rb#200 @@ -956,7 +977,7 @@ module Thor::Actions # source://thor//lib/thor/actions/file_manipulation.rb#216 def inject_into_class(path, klass, *args, &block); end - # source://thor//lib/thor/actions/inject_into_file.rb#26 + # source://thor//lib/thor/actions/inject_into_file.rb#34 def inject_into_file(destination, *args, &block); end # Injects text right after the module definition. Since it depends on @@ -1028,7 +1049,7 @@ module Thor::Actions # 'config.gem "rspec"' # end # - # source://thor//lib/thor/actions/file_manipulation.rb#170 + # source://thor//lib/thor/actions/file_manipulation.rb#175 def prepend_file(path, *args, &block); end # Prepend text to a file. Since it depends on insert_into_file, it's reversible. @@ -1066,7 +1087,7 @@ module Thor::Actions # remove_file 'README' # remove_file 'app/controllers/application_controller.rb' # - # source://thor//lib/thor/actions/file_manipulation.rb#325 + # source://thor//lib/thor/actions/file_manipulation.rb#360 def remove_dir(path, config = T.unsafe(nil)); end # Removes a file at the given location. @@ -1080,7 +1101,7 @@ module Thor::Actions # remove_file 'README' # remove_file 'app/controllers/application_controller.rb' # - # source://thor//lib/thor/actions/file_manipulation.rb#325 + # source://thor//lib/thor/actions/file_manipulation.rb#350 def remove_file(path, config = T.unsafe(nil)); end # Executes a command returning the contents of the command. @@ -1164,7 +1185,7 @@ module Thor::Actions # # uncomment_lines 'config/initializers/session_store.rb', /active_record/ # - # source://thor//lib/thor/actions/file_manipulation.rb#289 + # source://thor//lib/thor/actions/file_manipulation.rb#314 def uncomment_lines(path, flag, *args); end protected @@ -1179,25 +1200,28 @@ module Thor::Actions private - # source://thor//lib/thor/actions/file_manipulation.rb#346 + # source://thor//lib/thor/actions/file_manipulation.rb#385 + def actually_gsub_file(path, flag, args, error_on_no_change, &block); end + + # source://thor//lib/thor/actions/file_manipulation.rb#371 def capture(*args); end - # source://thor//lib/thor/actions/file_manipulation.rb#342 + # source://thor//lib/thor/actions/file_manipulation.rb#367 def concat(string); end # Returns the value of attribute output_buffer. # - # source://thor//lib/thor/actions/file_manipulation.rb#337 + # source://thor//lib/thor/actions/file_manipulation.rb#362 def output_buffer; end # Sets the attribute output_buffer # # @param value the value to set the attribute output_buffer to. # - # source://thor//lib/thor/actions/file_manipulation.rb#337 + # source://thor//lib/thor/actions/file_manipulation.rb#362 def output_buffer=(_arg0); end - # source://thor//lib/thor/actions/file_manipulation.rb#350 + # source://thor//lib/thor/actions/file_manipulation.rb#375 def with_output_buffer(buf = T.unsafe(nil)); end class << self @@ -1209,9 +1233,9 @@ end # Thor::Actions#capture depends on what kind of buffer is used in ERB. # Thus CapturableERB fixes ERB to use String buffer. # -# source://thor//lib/thor/actions/file_manipulation.rb#362 +# source://thor//lib/thor/actions/file_manipulation.rb#398 class Thor::Actions::CapturableERB < ::ERB - # source://thor//lib/thor/actions/file_manipulation.rb#363 + # source://thor//lib/thor/actions/file_manipulation.rb#399 def set_eoutvar(compiler, eoutvar = T.unsafe(nil)); end end @@ -1568,7 +1592,7 @@ class Thor::Argument # Returns the value of attribute name. # - # source://thor//lib/thor/parser/argument.rb#5 + # source://thor//lib/thor/parser/argument.rb#6 def human_name; end # Returns the value of attribute name. @@ -1852,7 +1876,7 @@ module Thor::Base::ClassMethods # Hash:: An ordered hash with commands names as keys and Thor::Command # objects as values. # - # source://thor//lib/thor/base.rb#482 + # source://thor//lib/thor/base.rb#486 def all_tasks; end # If you want to use defaults that don't match the type of an option, @@ -2090,7 +2114,7 @@ module Thor::Base::ClassMethods # @raise [UndefinedCommandError] # - # source://thor//lib/thor/base.rb#613 + # source://thor//lib/thor/base.rb#616 def handle_no_task_error(command, has_namespace = T.unsafe(nil)); end # Sets the namespace for the Thor or Thor::Group class. By default the @@ -2167,7 +2191,7 @@ module Thor::Base::ClassMethods # remove_command :this_is_not_a_command # end # - # source://thor//lib/thor/base.rb#530 + # source://thor//lib/thor/base.rb#534 def no_tasks(&block); end # Allows to use private methods from parent in child classes as commands. @@ -2193,7 +2217,7 @@ module Thor::Base::ClassMethods # public_command :foo # public_command :foo, :bar, :baz # - # source://thor//lib/thor/base.rb#606 + # source://thor//lib/thor/base.rb#611 def public_task(*names); end # Removes a previous defined argument. If :undefine is given, undefine @@ -2250,7 +2274,7 @@ module Thor::Base::ClassMethods # options:: You can give :undefine => true if you want commands the method # to be undefined from the class as well. # - # source://thor//lib/thor/base.rb#500 + # source://thor//lib/thor/base.rb#509 def remove_task(*names); end # Parses the command and options from the given args, instantiate the class @@ -2294,7 +2318,7 @@ module Thor::Base::ClassMethods # Hash:: An ordered hash with commands names as keys and Thor::Command # objects as values. # - # source://thor//lib/thor/base.rb#471 + # source://thor//lib/thor/base.rb#474 def tasks; end protected @@ -2357,7 +2381,7 @@ module Thor::Base::ClassMethods # SIGNATURE: Creates a new command if valid_command? is true. This method is # called when a new method is added to the class. # - # source://thor//lib/thor/base.rb#782 + # source://thor//lib/thor/base.rb#784 def create_task(meth); end # SIGNATURE: The hook invoked by start. @@ -2378,7 +2402,7 @@ module Thor::Base::ClassMethods # class, just return it, otherwise dup it and add the fresh copy to the # current command hash. # - # source://thor//lib/thor/base.rb#708 + # source://thor//lib/thor/base.rb#717 def find_and_refresh_task(name); end # Retrieves a value from superclass. If it reaches the baseclass, @@ -2756,7 +2780,7 @@ class Thor::Group # Returns commands ready to be printed. # - # source://thor//lib/thor/group.rb#199 + # source://thor//lib/thor/group.rb#205 def printable_tasks(*_arg0); end # Remove a previously added invocation. @@ -2782,7 +2806,7 @@ class Thor::Group # source://thor//lib/thor/group.rb#263 def create_command(meth); end - # source://thor//lib/thor/group.rb#263 + # source://thor//lib/thor/group.rb#267 def create_task(meth); end # The method responsible for dispatching given the args. @@ -2799,7 +2823,7 @@ class Thor::Group # Represents the whole class as a command. # - # source://thor//lib/thor/group.rb#254 + # source://thor//lib/thor/group.rb#257 def self_task; end end end @@ -2919,7 +2943,7 @@ module Thor::Invocation # Invoke the given command if the given args. # - # source://thor//lib/thor/invocation.rb#122 + # source://thor//lib/thor/invocation.rb#130 def invoke_task(command, *args); end # Invokes using shell padding. @@ -2947,7 +2971,7 @@ module Thor::Invocation # use the given name and return self as class. Otherwise, call # prepare_for_invocation in the current class. # - # source://thor//lib/thor/invocation.rb#153 + # source://thor//lib/thor/invocation.rb#163 def _retrieve_class_and_task(name, sent_command = T.unsafe(nil)); end # Configuration values that are shared between invocations. @@ -3128,10 +3152,10 @@ class Thor::Option < ::Thor::Argument # source://thor//lib/thor/parser/option.rb#99 def aliases_for_usage; end - # source://thor//lib/thor/parser/option.rb#118 + # source://thor//lib/thor/parser/option.rb#117 def array?; end - # source://thor//lib/thor/parser/option.rb#118 + # source://thor//lib/thor/parser/option.rb#117 def boolean?; end # Returns the value of attribute group. @@ -3139,7 +3163,7 @@ class Thor::Option < ::Thor::Argument # source://thor//lib/thor/parser/option.rb#3 def group; end - # source://thor//lib/thor/parser/option.rb#118 + # source://thor//lib/thor/parser/option.rb#117 def hash?; end # Returns the value of attribute hide. @@ -3155,7 +3179,7 @@ class Thor::Option < ::Thor::Argument # source://thor//lib/thor/parser/option.rb#3 def lazy_default; end - # source://thor//lib/thor/parser/option.rb#118 + # source://thor//lib/thor/parser/option.rb#117 def numeric?; end # Returns the value of attribute repeatable. @@ -3168,7 +3192,7 @@ class Thor::Option < ::Thor::Argument # source://thor//lib/thor/parser/option.rb#107 def show_default?; end - # source://thor//lib/thor/parser/option.rb#118 + # source://thor//lib/thor/parser/option.rb#117 def string?; end # source://thor//lib/thor/parser/option.rb#75 @@ -3421,37 +3445,37 @@ module Thor::Shell # source://thor//lib/thor/shell.rb#44 def initialize(args = T.unsafe(nil), options = T.unsafe(nil), config = T.unsafe(nil)); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def ask(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def error(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def file_collision(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def no?(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def print_in_columns(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def print_table(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def print_wrapped(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def say(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def say_error(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def say_status(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def set_color(*args, &block); end # Holds the shell for the given Thor instance. If no shell is given, @@ -3467,7 +3491,7 @@ module Thor::Shell # source://thor//lib/thor/shell.rb#25 def shell=(_arg0); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def terminal_width(*args, &block); end # Yields the given block with padding. @@ -3475,7 +3499,7 @@ module Thor::Shell # source://thor//lib/thor/shell.rb#66 def with_padding; end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def yes?(*args, &block); end protected @@ -3688,9 +3712,6 @@ class Thor::Shell::Basic # source://thor//lib/thor/shell/basic.rb#296 def file_collision_help(block_given); end - # source://thor//lib/thor/shell/basic.rb#383 - def git_merge_tool; end - # @return [Boolean] # # source://thor//lib/thor/shell/basic.rb#286 @@ -4292,7 +4313,7 @@ module Thor::Util # ==== Parameters # namespace # - # source://thor//lib/thor/util.rb#131 + # source://thor//lib/thor/util.rb#148 def find_class_and_task_by_namespace(namespace, fallback = T.unsafe(nil)); end # Where to look for Thor files. diff --git a/sorbet/rbi/gems/timeout@0.4.3.rbi b/sorbet/rbi/gems/timeout@0.4.3.rbi index a73adfdc..affa4537 100644 --- a/sorbet/rbi/gems/timeout@0.4.3.rbi +++ b/sorbet/rbi/gems/timeout@0.4.3.rbi @@ -74,7 +74,7 @@ module Timeout # # @raise [ArgumentError] # - # source://timeout//lib/timeout.rb#167 + # source://timeout//lib/timeout.rb#197 def timeout(sec, klass = T.unsafe(nil), message = T.unsafe(nil), &block); end private diff --git a/sorbet/rbi/gems/tpm-key_attestation@0.14.0.rbi b/sorbet/rbi/gems/tpm-key_attestation@0.14.1.rbi similarity index 90% rename from sorbet/rbi/gems/tpm-key_attestation@0.14.0.rbi rename to sorbet/rbi/gems/tpm-key_attestation@0.14.1.rbi index de959b72..44f17265 100644 --- a/sorbet/rbi/gems/tpm-key_attestation@0.14.0.rbi +++ b/sorbet/rbi/gems/tpm-key_attestation@0.14.1.rbi @@ -10,91 +10,88 @@ module TPM; end # Section 3.2 in https://www.trustedcomputinggroup.org/wp-content/uploads/Credential_Profile_EK_V2.0_R14_published.pdf # -# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#9 +# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#10 class TPM::AIKCertificate < ::SimpleDelegator # @return [Boolean] # - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#23 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#32 def conformant?; end private # @return [Boolean] # - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#56 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#65 def empty_subject?; end - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#70 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#79 def extension(oid); end # @return [Boolean] # - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#34 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#43 def in_use?; end - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#108 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#117 def san_extension; end - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#92 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#101 def san_name; end - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#74 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#83 def tpm_manufacturer; end - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#80 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#89 def tpm_model; end - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#86 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#95 def tpm_version; end # @return [Boolean] # - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#44 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#53 def valid_basic_constraints?; end # @return [Boolean] # - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#50 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#59 def valid_extended_key_usage?; end # @return [Boolean] # - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#60 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#69 def valid_subject_alternative_name?; end # @return [Boolean] # - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#40 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#49 def valid_version?; end class << self - # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#19 + # source://tpm-key_attestation//lib/tpm/aik_certificate.rb#28 def from_der(certificate_der); end end end -# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#10 +# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#11 TPM::AIKCertificate::ASN_V3 = T.let(T.unsafe(nil), Integer) -# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#11 +# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#12 TPM::AIKCertificate::EMPTY_NAME = T.let(T.unsafe(nil), OpenSSL::X509::Name) -# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#13 -TPM::AIKCertificate::OID_TCG = T.let(T.unsafe(nil), String) - -# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#14 +# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#16 TPM::AIKCertificate::OID_TCG_AT_TPM_MANUFACTURER = T.let(T.unsafe(nil), String) -# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#15 +# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#17 TPM::AIKCertificate::OID_TCG_AT_TPM_MODEL = T.let(T.unsafe(nil), String) -# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#16 +# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#18 TPM::AIKCertificate::OID_TCG_AT_TPM_VERSION = T.let(T.unsafe(nil), String) -# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#17 +# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#19 TPM::AIKCertificate::OID_TCG_KP_AIK_CERTIFICATE = T.let(T.unsafe(nil), String) -# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#12 +# source://tpm-key_attestation//lib/tpm/aik_certificate.rb#13 TPM::AIKCertificate::SAN_DIRECTORY_NAME = T.let(T.unsafe(nil), Integer) # source://tpm-key_attestation//lib/tpm/constants.rb#20 @@ -301,6 +298,16 @@ TPM::KeyAttestation::TRUSTED_CERTIFICATES = T.let(T.unsafe(nil), Array) # source://tpm-key_attestation//lib/tpm/key_attestation/version.rb#5 TPM::KeyAttestation::VERSION = T.let(T.unsafe(nil), String) +# source://tpm-key_attestation//lib/tpm/openssl_helper.rb#4 +module TPM::OpenSSLHelper + class << self + # @return [Boolean] + # + # source://tpm-key_attestation//lib/tpm/openssl_helper.rb#5 + def running_openssl_version_35_or_up?; end + end +end + # source://tpm-key_attestation//lib/tpm/public_area.rb#12 class TPM::PublicArea # @return [PublicArea] a new instance of PublicArea @@ -344,7 +351,7 @@ end # source://tpm-key_attestation//lib/tpm/s_attest/s_certify_info.rb#8 class TPM::SAttest < ::BinData::Record class << self - # source://bindata/2.5.0/lib/bindata/base.rb#19 + # source://tpm-key_attestation//lib/tpm/s_attest.rb#12 def deserialize(io, *args, &block); end end end @@ -397,7 +404,7 @@ class TPM::TPublic < ::BinData::Record def rsa_key; end class << self - # source://bindata/2.5.0/lib/bindata/base.rb#19 + # source://tpm-key_attestation//lib/tpm/t_public.rb#27 def deserialize(io, *args, &block); end end end diff --git a/sorbet/rbi/gems/ttfunk@1.8.0.rbi b/sorbet/rbi/gems/ttfunk@1.8.0.rbi index 487125cf..4d6ff512 100644 --- a/sorbet/rbi/gems/ttfunk@1.8.0.rbi +++ b/sorbet/rbi/gems/ttfunk@1.8.0.rbi @@ -877,7 +877,7 @@ class TTFunk::SciForm # @param other [Float, SciForm] # @return [Boolean] # - # source://ttfunk//lib/ttfunk/sci_form.rb#32 + # source://ttfunk//lib/ttfunk/sci_form.rb#44 def eql?(other); end # Exponent @@ -1663,7 +1663,7 @@ class TTFunk::Table::Cff::Dict < ::TTFunk::SubTable # @yieldparam key [Integer] # @yieldparam value [Array] # - # source://ttfunk//lib/ttfunk/table/cff/dict.rb#60 + # source://ttfunk//lib/ttfunk/table/cff/dict.rb#64 def each_pair(&block); end # Encode dict. @@ -2298,19 +2298,19 @@ class TTFunk::Table::Cff::OneBasedIndex # source://ttfunk//lib/ttfunk/table/cff/one_based_index.rb#21 def base_index; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://ttfunk//lib/ttfunk/table/cff/one_based_index.rb#12 def each(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://ttfunk//lib/ttfunk/table/cff/one_based_index.rb#12 def encode(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://ttfunk//lib/ttfunk/table/cff/one_based_index.rb#12 def items_count(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://ttfunk//lib/ttfunk/table/cff/one_based_index.rb#12 def length(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://ttfunk//lib/ttfunk/table/cff/one_based_index.rb#12 def table_offset(*args, **_arg1, &block); end end @@ -2580,7 +2580,7 @@ class TTFunk::Table::Cff::TopDict < ::TTFunk::Table::Cff::Dict # # @return [Boolean] # - # source://ttfunk//lib/ttfunk/table/cff/top_dict.rb#114 + # source://ttfunk//lib/ttfunk/table/cff/top_dict.rb#118 def is_cid_font?; end # Private dict specified in this dict. @@ -3326,58 +3326,87 @@ class TTFunk::Table::Glyf::Compound::Component < ::Struct # x-offset for component or point number. # # @return [Integer] + # + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def arg1; end # x-offset for component or point number. # # @return [Integer] + # + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def arg1=(_); end # y-offset for component or point number. # # @return [Integer] + # + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def arg2; end # y-offset for component or point number. # # @return [Integer] + # + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def arg2=(_); end # Component flag. # # @return [Integer] + # + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def flags; end # Component flag. # # @return [Integer] + # + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def flags=(_); end # Glyph index of component. # # @return [Integer] + # + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def glyph_index; end # Glyph index of component. # # @return [Integer] + # + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def glyph_index=(_); end # Transformation. # # @return [] + # + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def transform; end # Transformation. # # @return [] + # + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def transform=(_); end class << self + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def [](*_arg0); end + + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def inspect; end + + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def keyword_init?; end + + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def members; end + + # source://ttfunk//lib/ttfunk/table/glyf/compound.rb#81 def new(*_arg0); end end end @@ -3952,22 +3981,39 @@ end # source://ttfunk//lib/ttfunk/table/hmtx.rb#48 class TTFunk::Table::Hmtx::HorizontalMetric < ::Struct # @return [Integer] Advance width. + # + # source://ttfunk//lib/ttfunk/table/hmtx.rb#48 def advance_width; end # @return [Integer] Advance width. + # + # source://ttfunk//lib/ttfunk/table/hmtx.rb#48 def advance_width=(_); end # @return [Integer] Left side bearing. + # + # source://ttfunk//lib/ttfunk/table/hmtx.rb#48 def left_side_bearing; end # @return [Integer] Left side bearing. + # + # source://ttfunk//lib/ttfunk/table/hmtx.rb#48 def left_side_bearing=(_); end class << self + # source://ttfunk//lib/ttfunk/table/hmtx.rb#48 def [](*_arg0); end + + # source://ttfunk//lib/ttfunk/table/hmtx.rb#48 def inspect; end + + # source://ttfunk//lib/ttfunk/table/hmtx.rb#48 def keyword_init?; end + + # source://ttfunk//lib/ttfunk/table/hmtx.rb#48 def members; end + + # source://ttfunk//lib/ttfunk/table/hmtx.rb#48 def new(*_arg0); end end end @@ -5195,52 +5241,85 @@ end # source://ttfunk//lib/ttfunk/table/sbix.rb#42 class TTFunk::Table::Sbix::BitmapData < ::Struct # The actual embedded graphic data. + # + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def data; end # The actual embedded graphic data. + # + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def data=(_); end # The PPEM size for which this strike was designed. + # + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def ppem; end # The PPEM size for which this strike was designed. + # + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def ppem=(_); end # The device pixel density (in PPI) for which this strike was designed. + # + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def resolution; end # The device pixel density (in PPI) for which this strike was designed. + # + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def resolution=(_); end # Indicates the format of the embedded graphic data: one of `jpg `, # `png `, `tiff`, or the special format `dupe`. + # + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def type; end # Indicates the format of the embedded graphic data: one of `jpg `, # `png `, `tiff`, or the special format `dupe`. + # + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def type=(_); end # The horizontal (x-axis) position of the left edge of the bitmap # graphic in relation to the glyph design space origin. + # + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def x; end # The horizontal (x-axis) position of the left edge of the bitmap # graphic in relation to the glyph design space origin. + # + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def x=(_); end # The vertical (y-axis) position of the bottom edge of the bitmap # graphic in relation to the glyph design space origin. + # + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def y; end # The vertical (y-axis) position of the bottom edge of the bitmap # graphic in relation to the glyph design space origin. + # + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def y=(_); end class << self + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def [](*_arg0); end + + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def inspect; end + + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def keyword_init?; end + + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def members; end + + # source://ttfunk//lib/ttfunk/table/sbix.rb#42 def new(*_arg0); end end end diff --git a/sorbet/rbi/gems/twilio-ruby@7.6.0.rbi b/sorbet/rbi/gems/twilio-ruby@7.8.0.rbi similarity index 97% rename from sorbet/rbi/gems/twilio-ruby@7.6.0.rbi rename to sorbet/rbi/gems/twilio-ruby@7.8.0.rbi index 031a5b5a..47935b81 100644 --- a/sorbet/rbi/gems/twilio-ruby@7.6.0.rbi +++ b/sorbet/rbi/gems/twilio-ruby@7.8.0.rbi @@ -6,12 +6,7 @@ # source://twilio-ruby//lib/rack/twilio_webhook_authentication.rb#5 -module Rack - class << self - # source://rack/3.1.14/lib/rack/version.rb#18 - def release; end - end -end +module Rack; end # Middleware that authenticates webhooks from Twilio using the request # validator. @@ -58,7 +53,6 @@ Rack::TwilioWebhookAuthentication::FORM_URLENCODED_MEDIA_TYPE = T.let(T.unsafe(n # This code was generated by # \ / _ _ _| _ _ -# | (_)\/(_)(_|\/| |(/_ v1.0.0 # / / # # @@ -67,10 +61,10 @@ module Twilio extend ::SingleForwardable class << self - # source://forwardable/1.3.3/forwardable.rb#231 + # source://twilio-ruby//lib/twilio-ruby.rb#31 def account_sid(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://twilio-ruby//lib/twilio-ruby.rb#31 def auth_token(*args, **_arg1, &block); end # Pre-configure with account SID and auth token so that you don't need to @@ -90,22 +84,22 @@ module Twilio # source://twilio-ruby//lib/twilio-ruby/framework/serialize.rb#28 def deserialize_rfc2822(date); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://twilio-ruby//lib/twilio-ruby.rb#31 def edge(*args, **_arg1, &block); end # source://twilio-ruby//lib/twilio-ruby/framework/serialize.rb#48 def flatten(map, result = T.unsafe(nil), previous = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://twilio-ruby//lib/twilio-ruby.rb#31 def http_client(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://twilio-ruby//lib/twilio-ruby.rb#31 def logger(*args, **_arg1, &block); end # source://twilio-ruby//lib/twilio-ruby/framework/serialize.rb#60 def prefixed_collapsible_map(map, prefix); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://twilio-ruby//lib/twilio-ruby.rb#31 def region(*args, **_arg1, &block); end # source://twilio-ruby//lib/twilio-ruby/framework/serialize.rb#4 @@ -618,7 +612,7 @@ class Twilio::JWT::BaseJWT # source://twilio-ruby//lib/twilio-ruby/jwt/jwt.rb#53 def to_jwt; end - # source://twilio-ruby//lib/twilio-ruby/jwt/jwt.rb#53 + # source://twilio-ruby//lib/twilio-ruby/jwt/jwt.rb#56 def to_s; end end @@ -1143,7 +1137,7 @@ class Twilio::REST::Accounts::V1::BulkConsentsList < ::Twilio::REST::ListResourc # Create the BulkConsentsInstance # - # @param items [Array[Hash]] This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]. + # @param items [Array[Hash]] This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]; `date_of_consent`, an optional datetime string field in ISO-8601 format that captures the exact date and time when the user gave or revoked consent. If not provided, it will be empty. # @return [BulkConsentsInstance] Created BulkConsentsInstance # # source://twilio-ruby//lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb#37 @@ -7779,7 +7773,7 @@ class Twilio::REST::Api::V2010::AccountContext::CallContext::TranscriptionList < # @param speech_model [String] Recognition model used by the transcription engine, among those supported by the provider # @param hints [String] A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them. # @param enable_automatic_punctuation [Boolean] The provider will add punctuation to recognition result - # @param intelligence_service [String] The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . + # @param intelligence_service [String] The SID or unique name of the [Intelligence Service](https://www.twilio.com/docs/conversational-intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . # @return [TranscriptionInstance] Created TranscriptionInstance # # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb#53 @@ -14819,7 +14813,7 @@ class Twilio::REST::Api::V2010::AccountContext::RecordingInstance < ::Twilio::RE # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/recording.rb#372 def call_sid; end - # @return [String] The number of channels in the final recording file. Can be: `1` or `2`. + # @return [String] The number of channels in the final recording file. Can be: `1` or `2`. Default: `1`. # # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/recording.rb#432 def channels; end @@ -18859,7 +18853,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordInstance < ::Tw # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record.rb#296 def as_of; end - # @return [Category] + # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). # # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record.rb#302 def category; end @@ -18984,7 +18978,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList < ::Twilio # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19010,7 +19004,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList < ::Twilio # Retrieve a single page of RecordInstance records from the API. # Request is executed immediately. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19026,7 +19020,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList < ::Twilio # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19109,7 +19103,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::AllTimeIn # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb#233 def as_of; end - # @return [Category] + # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). # # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb#239 def category; end @@ -19210,7 +19204,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::AllTimeLi # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19228,7 +19222,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::AllTimeLi # Retrieve a single page of AllTimeInstance records from the API. # Request is executed immediately. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19244,7 +19238,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::AllTimeLi # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19321,7 +19315,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::DailyInst # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb#233 def as_of; end - # @return [Category] + # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). # # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb#239 def category; end @@ -19422,7 +19416,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::DailyList # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19440,7 +19434,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::DailyList # Retrieve a single page of DailyInstance records from the API. # Request is executed immediately. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19456,7 +19450,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::DailyList # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19533,7 +19527,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::LastMonth # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb#233 def as_of; end - # @return [Category] + # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). # # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb#239 def category; end @@ -19634,7 +19628,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::LastMonth # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19652,7 +19646,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::LastMonth # Retrieve a single page of LastMonthInstance records from the API. # Request is executed immediately. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19668,7 +19662,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::LastMonth # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19745,7 +19739,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::MonthlyIn # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb#233 def as_of; end - # @return [Category] + # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). # # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb#239 def category; end @@ -19846,7 +19840,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::MonthlyLi # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19864,7 +19858,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::MonthlyLi # Retrieve a single page of MonthlyInstance records from the API. # Request is executed immediately. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19880,7 +19874,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::MonthlyLi # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -19957,7 +19951,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::ThisMonth # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb#233 def as_of; end - # @return [Category] + # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). # # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb#239 def category; end @@ -20058,7 +20052,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::ThisMonth # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -20076,7 +20070,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::ThisMonth # Retrieve a single page of ThisMonthInstance records from the API. # Request is executed immediately. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -20092,7 +20086,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::ThisMonth # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -20169,7 +20163,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::TodayInst # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb#233 def as_of; end - # @return [Category] + # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). # # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb#239 def category; end @@ -20270,7 +20264,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::TodayList # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -20288,7 +20282,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::TodayList # Retrieve a single page of TodayInstance records from the API. # Request is executed immediately. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -20304,7 +20298,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::TodayList # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -20381,7 +20375,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::YearlyIns # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb#233 def as_of; end - # @return [Category] + # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). # # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb#239 def category; end @@ -20482,7 +20476,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::YearlyLis # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -20500,7 +20494,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::YearlyLis # Retrieve a single page of YearlyInstance records from the API. # Request is executed immediately. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -20516,7 +20510,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::YearlyLis # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -20593,7 +20587,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::Yesterday # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb#233 def as_of; end - # @return [Category] + # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). # # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb#239 def category; end @@ -20694,7 +20688,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::Yesterday # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -20712,7 +20706,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::Yesterday # Retrieve a single page of YesterdayInstance records from the API. # Request is executed immediately. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -20728,7 +20722,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::RecordList::Yesterday # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # @param category [Category] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + # @param category [String] The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. # @param start_date [Date] Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. # @param end_date [Date] Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. # @param include_subaccounts [Boolean] Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. @@ -20975,7 +20969,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::TriggerInstance < ::T # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb#449 def uri; end - # @return [UsageCategory] + # @return [String] The usage category the trigger watches. Must be one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). # # source://twilio-ruby//lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb#455 def usage_category; end @@ -21000,7 +20994,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::TriggerList < ::Twili # # @param callback_url [String] The URL we should call using `callback_method` when the trigger fires. # @param trigger_value [String] The usage value at which the trigger should fire. For convenience, you can use an offset value such as `+30` to specify a trigger_value that is 30 units more than the current usage value. Be sure to urlencode a `+` as `%2B`. - # @param usage_category [UsageCategory] + # @param usage_category [String] The usage category that the trigger should watch. Use one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) for this value. # @param callback_method [String] The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. # @param friendly_name [String] A descriptive string that you create to describe the resource. It can be up to 64 characters long. # @param recurring [Recurring] @@ -21032,7 +21026,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::TriggerList < ::Twili # # @param recurring [Recurring] The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers. # @param trigger_by [TriggerField] The trigger field of the UsageTriggers to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). - # @param usage_category [UsageCategory] The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). + # @param usage_category [String] The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). # @param limit [Integer] Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit # @param page_size [Integer] Number of records to fetch per request, when @@ -21049,7 +21043,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::TriggerList < ::Twili # # @param recurring [Recurring] The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers. # @param trigger_by [TriggerField] The trigger field of the UsageTriggers to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). - # @param usage_category [UsageCategory] The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). + # @param usage_category [String] The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). # @param page_token [String] PageToken provided by the API # @param page_number [Integer] Page Number, this value is simply for client state # @param page_size [Integer] Number of records to return, defaults to 50 @@ -21064,7 +21058,7 @@ class Twilio::REST::Api::V2010::AccountContext::UsageList::TriggerList < ::Twili # # @param recurring [Recurring] The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers. # @param trigger_by [TriggerField] The trigger field of the UsageTriggers to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). - # @param usage_category [UsageCategory] The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). + # @param usage_category [String] The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). # @param limit [Integer] Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit # @param page_size [Integer] Number of records to fetch per request, when @@ -22946,7 +22940,7 @@ end class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCreateAssistantRequest # @return [AssistantsV1ServiceCreateAssistantRequest] a new instance of AssistantsV1ServiceCreateAssistantRequest # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#29 def initialize(payload); end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -22955,7 +22949,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCreateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#114 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#28 def customer_ai; end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -22964,7 +22958,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCreateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#114 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#28 def customer_ai=(_arg0); end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -22973,7 +22967,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCreateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#114 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#28 def name; end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -22982,7 +22976,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCreateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#114 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#28 def name=(_arg0); end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -22991,7 +22985,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCreateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#114 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#28 def owner; end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23000,7 +22994,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCreateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#114 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#28 def owner=(_arg0); end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23009,7 +23003,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCreateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#114 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#28 def personality_prompt; end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23018,7 +23012,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCreateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#114 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#28 def personality_prompt=(_arg0); end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23027,7 +23021,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCreateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#114 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#28 def segment_credential; end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23036,10 +23030,10 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCreateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#114 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#28 def segment_credential=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#122 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#36 def to_json(options = T.unsafe(nil)); end end @@ -23047,34 +23041,34 @@ end class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCustomerAi # @return [AssistantsV1ServiceCustomerAi] a new instance of AssistantsV1ServiceCustomerAi # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#137 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#51 def initialize(payload); end # @param : [perception_engine_enabled] [Boolean] True if the perception engine is enabled. # @param : [personalization_engine_enabled] [Boolean] True if the personalization engine is enabled. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#136 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#50 def perception_engine_enabled; end # @param : [perception_engine_enabled] [Boolean] True if the perception engine is enabled. # @param : [personalization_engine_enabled] [Boolean] True if the personalization engine is enabled. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#136 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#50 def perception_engine_enabled=(_arg0); end # @param : [perception_engine_enabled] [Boolean] True if the perception engine is enabled. # @param : [personalization_engine_enabled] [Boolean] True if the personalization engine is enabled. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#136 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#50 def personalization_engine_enabled; end # @param : [perception_engine_enabled] [Boolean] True if the perception engine is enabled. # @param : [personalization_engine_enabled] [Boolean] True if the personalization engine is enabled. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#136 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#50 def personalization_engine_enabled=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#141 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#55 def to_json(options = T.unsafe(nil)); end end @@ -23082,52 +23076,52 @@ end class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceSegmentCredential # @return [AssistantsV1ServiceSegmentCredential] a new instance of AssistantsV1ServiceSegmentCredential # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#154 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#68 def initialize(payload); end # @param : [profile_api_key] [String] The profile API key. # @param : [space_id] [String] The space ID. # @param : [write_key] [String] The write key. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#153 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#67 def profile_api_key; end # @param : [profile_api_key] [String] The profile API key. # @param : [space_id] [String] The space ID. # @param : [write_key] [String] The write key. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#153 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#67 def profile_api_key=(_arg0); end # @param : [profile_api_key] [String] The profile API key. # @param : [space_id] [String] The space ID. # @param : [write_key] [String] The write key. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#153 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#67 def space_id; end # @param : [profile_api_key] [String] The profile API key. # @param : [space_id] [String] The space ID. # @param : [write_key] [String] The write key. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#153 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#67 def space_id=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#159 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#73 def to_json(options = T.unsafe(nil)); end # @param : [profile_api_key] [String] The profile API key. # @param : [space_id] [String] The space ID. # @param : [write_key] [String] The write key. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#153 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#67 def write_key; end # @param : [profile_api_key] [String] The profile API key. # @param : [space_id] [String] The space ID. # @param : [write_key] [String] The write key. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#153 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#67 def write_key=(_arg0); end end @@ -23135,7 +23129,7 @@ end class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssistantRequest # @return [AssistantsV1ServiceUpdateAssistantRequest] a new instance of AssistantsV1ServiceUpdateAssistantRequest # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#175 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#89 def initialize(payload); end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23144,7 +23138,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#88 def customer_ai; end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23153,7 +23147,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#88 def customer_ai=(_arg0); end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23162,7 +23156,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#88 def name; end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23171,7 +23165,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#88 def name=(_arg0); end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23180,7 +23174,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#88 def owner; end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23189,7 +23183,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#88 def owner=(_arg0); end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23198,7 +23192,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#88 def personality_prompt; end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23207,7 +23201,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#88 def personality_prompt=(_arg0); end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23216,7 +23210,7 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#88 def segment_credential; end # @param : [customer_ai] [AssistantList.AssistantsV1ServiceCustomerAi] @@ -23225,10 +23219,10 @@ class Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssi # @param : [personality_prompt] [String] The personality prompt to be used for assistant. # @param : [segment_credential] [AssistantList.AssistantsV1ServiceSegmentCredential] # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#88 def segment_credential=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#182 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/assistant.rb#96 def to_json(options = T.unsafe(nil)); end end @@ -23816,7 +23810,7 @@ end class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnowledgeRequest # @return [AssistantsV1ServiceCreateKnowledgeRequest] a new instance of AssistantsV1ServiceCreateKnowledgeRequest # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#116 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#31 def initialize(payload); end # @param : [assistant_id] [String] The Assistant ID. @@ -23827,7 +23821,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def assistant_id; end # @param : [assistant_id] [String] The Assistant ID. @@ -23838,7 +23832,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def assistant_id=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -23849,7 +23843,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def description; end # @param : [assistant_id] [String] The Assistant ID. @@ -23860,7 +23854,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def description=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -23871,7 +23865,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def embedding_model; end # @param : [assistant_id] [String] The Assistant ID. @@ -23882,7 +23876,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def embedding_model=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -23893,7 +23887,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def knowledge_source_details; end # @param : [assistant_id] [String] The Assistant ID. @@ -23904,7 +23898,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def knowledge_source_details=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -23915,7 +23909,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def name; end # @param : [assistant_id] [String] The Assistant ID. @@ -23926,7 +23920,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def name=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -23937,7 +23931,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def policy; end # @param : [assistant_id] [String] The Assistant ID. @@ -23948,10 +23942,10 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def policy=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#125 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#40 def to_json(options = T.unsafe(nil)); end # @param : [assistant_id] [String] The Assistant ID. @@ -23962,7 +23956,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def type; end # @param : [assistant_id] [String] The Assistant ID. @@ -23973,7 +23967,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnow # @param : [type] [String] The type of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#115 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#30 def type=(_arg0); end end @@ -23981,7 +23975,7 @@ end class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreatePolicyRequest # @return [AssistantsV1ServiceCreatePolicyRequest] a new instance of AssistantsV1ServiceCreatePolicyRequest # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#60 def initialize(payload); end # @param : [description] [String] The description of the policy. @@ -23990,7 +23984,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreatePoli # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#59 def description; end # @param : [description] [String] The description of the policy. @@ -23999,7 +23993,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreatePoli # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#59 def description=(_arg0); end # @param : [description] [String] The description of the policy. @@ -24008,7 +24002,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreatePoli # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#59 def id; end # @param : [description] [String] The description of the policy. @@ -24017,7 +24011,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreatePoli # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#59 def id=(_arg0); end # @param : [description] [String] The description of the policy. @@ -24026,7 +24020,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreatePoli # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#59 def name; end # @param : [description] [String] The description of the policy. @@ -24035,7 +24029,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreatePoli # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#59 def name=(_arg0); end # @param : [description] [String] The description of the policy. @@ -24044,7 +24038,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreatePoli # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#59 def policy_details; end # @param : [description] [String] The description of the policy. @@ -24053,10 +24047,10 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreatePoli # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#59 def policy_details=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#152 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#67 def to_json(options = T.unsafe(nil)); end # @param : [description] [String] The description of the policy. @@ -24065,7 +24059,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreatePoli # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#59 def type; end # @param : [description] [String] The description of the policy. @@ -24074,7 +24068,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreatePoli # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#59 def type=(_arg0); end end @@ -24082,7 +24076,7 @@ end class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnowledgeRequest # @return [AssistantsV1ServiceUpdateKnowledgeRequest] a new instance of AssistantsV1ServiceUpdateKnowledgeRequest # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#171 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#86 def initialize(payload); end # @param : [description] [String] The description of the knowledge source. @@ -24092,7 +24086,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnow # @param : [type] [String] The description of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#170 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#85 def description; end # @param : [description] [String] The description of the knowledge source. @@ -24102,7 +24096,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnow # @param : [type] [String] The description of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#170 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#85 def description=(_arg0); end # @param : [description] [String] The description of the knowledge source. @@ -24112,7 +24106,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnow # @param : [type] [String] The description of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#170 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#85 def embedding_model; end # @param : [description] [String] The description of the knowledge source. @@ -24122,7 +24116,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnow # @param : [type] [String] The description of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#170 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#85 def embedding_model=(_arg0); end # @param : [description] [String] The description of the knowledge source. @@ -24132,7 +24126,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnow # @param : [type] [String] The description of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#170 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#85 def knowledge_source_details; end # @param : [description] [String] The description of the knowledge source. @@ -24142,7 +24136,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnow # @param : [type] [String] The description of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#170 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#85 def knowledge_source_details=(_arg0); end # @param : [description] [String] The description of the knowledge source. @@ -24152,7 +24146,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnow # @param : [type] [String] The description of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#170 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#85 def name; end # @param : [description] [String] The description of the knowledge source. @@ -24162,7 +24156,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnow # @param : [type] [String] The description of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#170 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#85 def name=(_arg0); end # @param : [description] [String] The description of the knowledge source. @@ -24172,7 +24166,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnow # @param : [type] [String] The description of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#170 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#85 def policy; end # @param : [description] [String] The description of the knowledge source. @@ -24182,10 +24176,10 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnow # @param : [type] [String] The description of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#170 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#85 def policy=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#179 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#94 def to_json(options = T.unsafe(nil)); end # @param : [description] [String] The description of the knowledge source. @@ -24195,7 +24189,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnow # @param : [type] [String] The description of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#170 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#85 def type; end # @param : [description] [String] The description of the knowledge source. @@ -24205,7 +24199,7 @@ class Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnow # @param : [type] [String] The description of the knowledge source. # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#170 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/knowledge.rb#85 def type=(_arg0); end end @@ -25056,7 +25050,7 @@ end class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyRequest # @return [AssistantsV1ServiceCreatePolicyRequest] a new instance of AssistantsV1ServiceCreatePolicyRequest # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#117 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#29 def initialize(payload); end # @param : [description] [String] The description of the policy. @@ -25065,7 +25059,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyReq # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#116 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#28 def description; end # @param : [description] [String] The description of the policy. @@ -25074,7 +25068,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyReq # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#116 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#28 def description=(_arg0); end # @param : [description] [String] The description of the policy. @@ -25083,7 +25077,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyReq # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#116 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#28 def id; end # @param : [description] [String] The description of the policy. @@ -25092,7 +25086,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyReq # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#116 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#28 def id=(_arg0); end # @param : [description] [String] The description of the policy. @@ -25101,7 +25095,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyReq # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#116 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#28 def name; end # @param : [description] [String] The description of the policy. @@ -25110,7 +25104,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyReq # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#116 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#28 def name=(_arg0); end # @param : [description] [String] The description of the policy. @@ -25119,7 +25113,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyReq # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#116 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#28 def policy_details; end # @param : [description] [String] The description of the policy. @@ -25128,10 +25122,10 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyReq # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#116 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#28 def policy_details=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#124 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#36 def to_json(options = T.unsafe(nil)); end # @param : [description] [String] The description of the policy. @@ -25140,7 +25134,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyReq # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#116 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#28 def type; end # @param : [description] [String] The description of the policy. @@ -25149,7 +25143,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyReq # @param : [policy_details] [Hash] # @param : [type] [String] The description of the policy. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#116 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#28 def type=(_arg0); end end @@ -25157,7 +25151,7 @@ end class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolRequest # @return [AssistantsV1ServiceCreateToolRequest] a new instance of AssistantsV1ServiceCreateToolRequest # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#56 def initialize(payload); end # @param : [assistant_id] [String] The Assistant ID. @@ -25168,7 +25162,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def assistant_id; end # @param : [assistant_id] [String] The Assistant ID. @@ -25179,7 +25173,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def assistant_id=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -25190,7 +25184,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def description; end # @param : [assistant_id] [String] The Assistant ID. @@ -25201,7 +25195,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def description=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -25212,7 +25206,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def enabled; end # @param : [assistant_id] [String] The Assistant ID. @@ -25223,7 +25217,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def enabled=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -25234,7 +25228,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def meta; end # @param : [assistant_id] [String] The Assistant ID. @@ -25245,7 +25239,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def meta=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -25256,7 +25250,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def name; end # @param : [assistant_id] [String] The Assistant ID. @@ -25267,7 +25261,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def name=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -25278,7 +25272,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def policy; end # @param : [assistant_id] [String] The Assistant ID. @@ -25289,10 +25283,10 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def policy=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#153 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#65 def to_json(options = T.unsafe(nil)); end # @param : [assistant_id] [String] The Assistant ID. @@ -25303,7 +25297,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def type; end # @param : [assistant_id] [String] The Assistant ID. @@ -25314,7 +25308,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The description of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#143 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#55 def type=(_arg0); end end @@ -25322,7 +25316,7 @@ end class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolRequest # @return [AssistantsV1ServiceUpdateToolRequest] a new instance of AssistantsV1ServiceUpdateToolRequest # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#175 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#87 def initialize(payload); end # @param : [assistant_id] [String] The Assistant ID. @@ -25333,7 +25327,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def assistant_id; end # @param : [assistant_id] [String] The Assistant ID. @@ -25344,7 +25338,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def assistant_id=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -25355,7 +25349,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def description; end # @param : [assistant_id] [String] The Assistant ID. @@ -25366,7 +25360,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def description=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -25377,7 +25371,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def enabled; end # @param : [assistant_id] [String] The Assistant ID. @@ -25388,7 +25382,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def enabled=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -25399,7 +25393,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def meta; end # @param : [assistant_id] [String] The Assistant ID. @@ -25410,7 +25404,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def meta=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -25421,7 +25415,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def name; end # @param : [assistant_id] [String] The Assistant ID. @@ -25432,7 +25426,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def name=(_arg0); end # @param : [assistant_id] [String] The Assistant ID. @@ -25443,7 +25437,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def policy; end # @param : [assistant_id] [String] The Assistant ID. @@ -25454,10 +25448,10 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def policy=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#184 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#96 def to_json(options = T.unsafe(nil)); end # @param : [assistant_id] [String] The Assistant ID. @@ -25468,7 +25462,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def type; end # @param : [assistant_id] [String] The Assistant ID. @@ -25479,7 +25473,7 @@ class Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolReque # @param : [policy] [ToolList.AssistantsV1ServiceCreatePolicyRequest] # @param : [type] [String] The type of the tool. # - # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/assistants/v1/tool.rb#86 def type=(_arg0); end end @@ -25994,7 +25988,7 @@ class Twilio::REST::Bulkexports::V1::ExportContext::ExportCustomJobInstance < :: # source://twilio-ruby//lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb#210 def initialize(version, payload, resource_type: T.unsafe(nil)); end - # @return [Hash] The details of a job which is an object that contains an array of status grouped by `status` state. Each `status` object has a `status` string, a count which is the number of days in that `status`, and list of days in that `status`. The day strings are in the format yyyy-MM-dd. As an example, a currently running job may have a status object for COMPLETED and a `status` object for SUBMITTED each with its own count and list of days. + # @return [Array] The details of a job which is an object that contains an array of status grouped by `status` state. Each `status` object has a `status` string, a count which is the number of days in that `status`, and list of days in that `status`. The day strings are in the format yyyy-MM-dd. As an example, a currently running job may have a status object for COMPLETED and a `status` object for SUBMITTED each with its own count and list of days. # # source://twilio-ruby//lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb#280 def details; end @@ -26333,7 +26327,7 @@ class Twilio::REST::Bulkexports::V1::ExportList::JobInstance < ::Twilio::REST::I # source://twilio-ruby//lib/twilio-ruby/rest/bulkexports/v1/export/job.rb#255 def delete; end - # @return [Hash] The details of a job which is an object that contains an array of status grouped by `status` state. Each `status` object has a `status` string, a count which is the number of days in that `status`, and list of days in that `status`. The day strings are in the format yyyy-MM-dd. As an example, a currently running job may have a status object for COMPLETED and a `status` object for SUBMITTED each with its own count and list of days. + # @return [Array] The details of a job which is an object that contains an array of status grouped by `status` state. Each `status` object has a `status` string, a count which is the number of days in that `status`, and list of days in that `status`. The day strings are in the format yyyy-MM-dd. As an example, a currently running job may have a status object for COMPLETED and a `status` object for SUBMITTED each with its own count and list of days. # # source://twilio-ruby//lib/twilio-ruby/rest/bulkexports/v1/export/job.rb#194 def details; end @@ -32713,7 +32707,7 @@ class Twilio::REST::Chat::V3 < ::Twilio::REST::Version # @return [Twilio::REST::Chat::V3::ChannelContext] if sid was passed. # @return [Twilio::REST::Chat::V3::ChannelList] # - # source://twilio-ruby//lib/twilio-ruby/rest/chat/v3.rb#50 + # source://twilio-ruby//lib/twilio-ruby/rest/chat/v3.rb#32 def channels(service_sid = T.unsafe(nil), sid = T.unsafe(nil)); end # Provide a user friendly representation @@ -32948,7 +32942,7 @@ class Twilio::REST::Client < ::Twilio::REST::ClientBase # @return [Twilio::REST::Api::V2010::AccountContext::AddressInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::AddressList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#220 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#210 def addresses(sid = T.unsafe(nil)); end # Access the Api Twilio Domain @@ -32959,7 +32953,7 @@ class Twilio::REST::Client < ::Twilio::REST::ClientBase # @return [Twilio::REST::Api::V2010::AccountContext::ApplicationInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::ApplicationList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#228 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#218 def applications(sid = T.unsafe(nil)); end # Access the Assistants Twilio Domain @@ -32970,13 +32964,13 @@ class Twilio::REST::Client < ::Twilio::REST::ClientBase # @return [Twilio::REST::Api::V2010::AccountContext::AuthorizedConnectAppInstance] if connectAppSid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::AuthorizedConnectAppList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#236 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#226 def authorized_connect_apps(connectAppSid = T.unsafe(nil)); end # @return [Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryInstance] if countryCode was passed. # @return [Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#244 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#234 def available_phone_numbers(countryCode = T.unsafe(nil)); end # Access the Bulkexports Twilio Domain @@ -32987,7 +32981,7 @@ class Twilio::REST::Client < ::Twilio::REST::ClientBase # @return [Twilio::REST::Api::V2010::AccountContext::CallInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::CallList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#253 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#243 def calls(sid = T.unsafe(nil)); end # Access the Chat Twilio Domain @@ -32998,13 +32992,13 @@ class Twilio::REST::Client < ::Twilio::REST::ClientBase # @return [Twilio::REST::Api::V2010::AccountContext::ConferenceInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::ConferenceList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#261 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#251 def conferences(sid = T.unsafe(nil)); end # @return [Twilio::REST::Api::V2010::AccountContext::ConnectAppInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::ConnectAppList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#269 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#259 def connect_apps(sid = T.unsafe(nil)); end # Access the Content Twilio Domain @@ -33040,7 +33034,7 @@ class Twilio::REST::Client < ::Twilio::REST::ClientBase # @return [Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#277 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#267 def incoming_phone_numbers(sid = T.unsafe(nil)); end # Access the Insights Twilio Domain @@ -33061,75 +33055,65 @@ class Twilio::REST::Client < ::Twilio::REST::ClientBase # @return [Twilio::REST::Api::V2010::AccountContext::KeyInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::KeyList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#285 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#275 def keys(sid = T.unsafe(nil)); end - # Access the Knowledge Twilio Domain - # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#96 - def knowledge; end - # Access the Lookups Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#101 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#96 def lookups; end # Access the Marketplace Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#106 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#101 def marketplace; end # @return [Twilio::REST::Api::V2010::AccountContext::MessageInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::MessageList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#293 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#283 def messages(sid = T.unsafe(nil)); end # Access the Messaging Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#111 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#106 def messaging; end - # Access the Microvisor Twilio Domain - # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#116 - def microvisor; end - # Access the Monitor Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#121 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#111 def monitor; end # @return [Twilio::REST::Api::V2010::AccountContext::NotificationInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::NotificationList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#303 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#293 def notifications(sid = T.unsafe(nil)); end # Access the Notify Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#126 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#116 def notify; end # Access the Numbers Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#131 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#121 def numbers; end # Access the Oauth Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#136 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#126 def oauth; end # @return [Twilio::REST::Api::V2010::AccountContext::OutgoingCallerIdInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::OutgoingCallerIdList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#311 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#301 def outgoing_caller_ids(sid = T.unsafe(nil)); end # Access the Preview Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#141 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#131 def preview; end # Access the PreviewIam Twilio Domain @@ -33139,107 +33123,107 @@ class Twilio::REST::Client < ::Twilio::REST::ClientBase # Access the Pricing Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#146 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#136 def pricing; end # Access the Proxy Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#151 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#141 def proxy; end # @return [Twilio::REST::Api::V2010::AccountContext::QueueInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::QueueList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#319 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#309 def queues(sid = T.unsafe(nil)); end # @return [Twilio::REST::Api::V2010::AccountContext::RecordingInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::RecordingList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#327 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#317 def recordings(sid = T.unsafe(nil)); end # Access the Routes Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#156 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#146 def routes; end # Access the Serverless Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#161 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#151 def serverless; end # @return [Twilio::REST::Api::V2010::AccountContext::ShortCodeInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::ShortCodeList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#335 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#325 def short_codes(sid = T.unsafe(nil)); end # @return [Twilio::REST::Api::V2010::AccountContext::SigningKeyInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::SigningKeyList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#342 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#332 def signing_keys(sid = T.unsafe(nil)); end # Access the Studio Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#166 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#156 def studio; end # Access the Supersim Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#171 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#161 def supersim; end # Access the Sync Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#176 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#166 def sync; end # Access the Taskrouter Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#181 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#171 def taskrouter; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#360 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#350 def to_s; end # @return [Twilio::REST::Api::V2010::AccountContext::TranscriptionInstance] if sid was passed. # @return [Twilio::REST::Api::V2010::AccountContext::TranscriptionList] # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#352 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#342 def transcriptions(sid = T.unsafe(nil)); end # Access the Trunking Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#186 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#176 def trunking; end # Access the Trusthub Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#191 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#181 def trusthub; end # Access the Verify Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#196 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#186 def verify; end # Access the Video Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#201 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#191 def video; end # Access the Voice Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#206 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#196 def voice; end # Access the Wireless Twilio Domain # - # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#211 + # source://twilio-ruby//lib/twilio-ruby/rest/client.rb#201 def wireless; end end @@ -33654,7 +33638,7 @@ class Twilio::REST::Content::V1::ContentAndApprovalsPage < ::Twilio::REST::Page def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#701 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#713 class Twilio::REST::Content::V1::ContentContext < ::Twilio::REST::InstanceContext # Initialize the ContentContext # @@ -33662,7 +33646,7 @@ class Twilio::REST::Content::V1::ContentContext < ::Twilio::REST::InstanceContex # @param sid [String] The Twilio-provided string that uniquely identifies the Content resource to fetch. # @return [ContentContext] ContentContext # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#707 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#719 def initialize(version, sid); end # Access the approval_create @@ -33670,7 +33654,7 @@ class Twilio::REST::Content::V1::ContentContext < ::Twilio::REST::InstanceContex # @return [ApprovalCreateList] # @return [ApprovalCreateContext] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#753 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#765 def approval_create; end # Access the approval_fetch @@ -33678,31 +33662,31 @@ class Twilio::REST::Content::V1::ContentContext < ::Twilio::REST::InstanceContex # @return [ApprovalFetchList] # @return [ApprovalFetchContext] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#764 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#776 def approval_fetch; end # Delete the ContentInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#721 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#733 def delete; end # Fetch the ContentInstance # # @return [ContentInstance] Fetched ContentInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#733 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#745 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#780 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#792 def inspect; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#773 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#785 def to_s; end end @@ -33979,7 +33963,7 @@ class Twilio::REST::Content::V1::ContentContext::ApprovalFetchPage < ::Twilio::R def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#814 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#826 class Twilio::REST::Content::V1::ContentInstance < ::Twilio::REST::InstanceResource # Initialize the ContentInstance # @@ -33991,26 +33975,26 @@ class Twilio::REST::Content::V1::ContentInstance < ::Twilio::REST::InstanceResou # @param sid [String] The SID of the Call resource to fetch. # @return [ContentInstance] ContentInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#824 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#836 def initialize(version, payload, sid: T.unsafe(nil)); end # @return [String] The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#877 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#889 def account_sid; end # Access the approval_create # # @return [approval_create] approval_create # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#936 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#948 def approval_create; end # Access the approval_fetch # # @return [approval_fetch] approval_fetch # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#943 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#955 def approval_fetch; end # Generate an instance context for the instance, the context is capable of @@ -34018,76 +34002,76 @@ class Twilio::REST::Content::V1::ContentInstance < ::Twilio::REST::InstanceResou # # @return [ContentContext] CallContext for this CallInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#850 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#862 def context; end # @return [Time] The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#859 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#871 def date_created; end # @return [Time] The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#865 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#877 def date_updated; end # Delete the ContentInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#920 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#932 def delete; end # Fetch the ContentInstance # # @return [ContentInstance] Fetched ContentInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#928 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#940 def fetch; end # @return [String] A string name used to describe the Content resource. Not visible to the end recipient. # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#883 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#895 def friendly_name; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#956 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#968 def inspect; end # @return [String] Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in. # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#889 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#901 def language; end # @return [Hash] A list of links related to the Content resource, such as approval_fetch and approval_create # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#913 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#925 def links; end # @return [String] The unique string that that we created to identify the Content resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#871 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#883 def sid; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#949 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#961 def to_s; end # @return [Hash] The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#901 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#913 def types; end # @return [String] The URL of the resource, relative to `https://content.twilio.com`. # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#907 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#919 def url; end # @return [Hash] Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}. # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#895 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#907 def variables; end end @@ -34098,7 +34082,7 @@ class Twilio::REST::Content::V1::ContentList < ::Twilio::REST::ListResource # @param version [Version] Version that contains the resource # @return [ContentList] ContentList # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#577 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#589 def initialize(version); end # Create the ContentInstance @@ -34106,14 +34090,14 @@ class Twilio::REST::Content::V1::ContentList < ::Twilio::REST::ListResource # @param content_create_request [ContentCreateRequest] # @return [ContentInstance] Created ContentInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#588 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#600 def create(content_create_request: T.unsafe(nil)); end # When passed a block, yields ContentInstance records from the API. # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#647 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#659 def each; end # Retrieve a single page of ContentInstance records from the API. @@ -34122,7 +34106,7 @@ class Twilio::REST::Content::V1::ContentList < ::Twilio::REST::ListResource # @param target_url [String] API-generated URL for the requested results page # @return [Page] Page of ContentInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#684 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#696 def get_page(target_url); end # Lists ContentInstance records from the API as a list. @@ -34137,7 +34121,7 @@ class Twilio::REST::Content::V1::ContentList < ::Twilio::REST::ListResource # efficient page size, i.e. min(limit, 1000) # @return [Array] Array of up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#616 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#628 def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Retrieve a single page of ContentInstance records from the API. @@ -34148,7 +34132,7 @@ class Twilio::REST::Content::V1::ContentList < ::Twilio::REST::ListResource # @param page_size [Integer] Number of records to return, defaults to 50 # @return [Page] Page of ContentInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#664 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#676 def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end # Streams Instance records from the API as an Enumerable. @@ -34163,12 +34147,12 @@ class Twilio::REST::Content::V1::ContentList < ::Twilio::REST::ListResource # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#634 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#646 def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#695 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#707 def to_s; end end @@ -34211,7 +34195,7 @@ end class Twilio::REST::Content::V1::ContentList::CallToActionAction # @return [CallToActionAction] a new instance of CallToActionAction # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#45 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#46 def initialize(payload); end # @param : [type] [CallToActionActionType] @@ -34219,8 +34203,9 @@ class Twilio::REST::Content::V1::ContentList::CallToActionAction # @param : [url] [String] # @param : [phone] [String] # @param : [code] [String] + # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#44 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#45 def code; end # @param : [type] [CallToActionActionType] @@ -34228,8 +34213,9 @@ class Twilio::REST::Content::V1::ContentList::CallToActionAction # @param : [url] [String] # @param : [phone] [String] # @param : [code] [String] + # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#44 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#45 def code=(_arg0); end # @param : [type] [CallToActionActionType] @@ -34237,8 +34223,29 @@ class Twilio::REST::Content::V1::ContentList::CallToActionAction # @param : [url] [String] # @param : [phone] [String] # @param : [code] [String] + # @param : [id] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#45 + def id; end + + # @param : [type] [CallToActionActionType] + # @param : [title] [String] + # @param : [url] [String] + # @param : [phone] [String] + # @param : [code] [String] + # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#44 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#45 + def id=(_arg0); end + + # @param : [type] [CallToActionActionType] + # @param : [title] [String] + # @param : [url] [String] + # @param : [phone] [String] + # @param : [code] [String] + # @param : [id] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#45 def phone; end # @param : [type] [CallToActionActionType] @@ -34246,8 +34253,9 @@ class Twilio::REST::Content::V1::ContentList::CallToActionAction # @param : [url] [String] # @param : [phone] [String] # @param : [code] [String] + # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#44 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#45 def phone=(_arg0); end # @param : [type] [CallToActionActionType] @@ -34255,8 +34263,9 @@ class Twilio::REST::Content::V1::ContentList::CallToActionAction # @param : [url] [String] # @param : [phone] [String] # @param : [code] [String] + # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#44 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#45 def title; end # @param : [type] [CallToActionActionType] @@ -34264,11 +34273,12 @@ class Twilio::REST::Content::V1::ContentList::CallToActionAction # @param : [url] [String] # @param : [phone] [String] # @param : [code] [String] + # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#44 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#45 def title=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#52 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#54 def to_json(options = T.unsafe(nil)); end # @param : [type] [CallToActionActionType] @@ -34276,8 +34286,9 @@ class Twilio::REST::Content::V1::ContentList::CallToActionAction # @param : [url] [String] # @param : [phone] [String] # @param : [code] [String] + # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#44 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#45 def type; end # @param : [type] [CallToActionActionType] @@ -34285,8 +34296,9 @@ class Twilio::REST::Content::V1::ContentList::CallToActionAction # @param : [url] [String] # @param : [phone] [String] # @param : [code] [String] + # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#44 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#45 def type=(_arg0); end # @param : [type] [CallToActionActionType] @@ -34294,8 +34306,9 @@ class Twilio::REST::Content::V1::ContentList::CallToActionAction # @param : [url] [String] # @param : [phone] [String] # @param : [code] [String] + # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#44 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#45 def url; end # @param : [type] [CallToActionActionType] @@ -34303,16 +34316,17 @@ class Twilio::REST::Content::V1::ContentList::CallToActionAction # @param : [url] [String] # @param : [phone] [String] # @param : [code] [String] + # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#44 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#45 def url=(_arg0); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#63 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#66 class Twilio::REST::Content::V1::ContentList::CardAction # @return [CardAction] a new instance of CardAction # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#71 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#75 def initialize(payload); end # @param : [type] [CardActionType] @@ -34321,8 +34335,9 @@ class Twilio::REST::Content::V1::ContentList::CardAction # @param : [phone] [String] # @param : [id] [String] # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#70 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 def code; end # @param : [type] [CardActionType] @@ -34331,8 +34346,9 @@ class Twilio::REST::Content::V1::ContentList::CardAction # @param : [phone] [String] # @param : [id] [String] # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#70 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 def code=(_arg0); end # @param : [type] [CardActionType] @@ -34341,8 +34357,9 @@ class Twilio::REST::Content::V1::ContentList::CardAction # @param : [phone] [String] # @param : [id] [String] # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#70 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 def id; end # @param : [type] [CardActionType] @@ -34351,8 +34368,9 @@ class Twilio::REST::Content::V1::ContentList::CardAction # @param : [phone] [String] # @param : [id] [String] # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#70 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 def id=(_arg0); end # @param : [type] [CardActionType] @@ -34361,8 +34379,9 @@ class Twilio::REST::Content::V1::ContentList::CardAction # @param : [phone] [String] # @param : [id] [String] # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#70 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 def phone; end # @param : [type] [CardActionType] @@ -34371,8 +34390,9 @@ class Twilio::REST::Content::V1::ContentList::CardAction # @param : [phone] [String] # @param : [id] [String] # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#70 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 def phone=(_arg0); end # @param : [type] [CardActionType] @@ -34381,8 +34401,9 @@ class Twilio::REST::Content::V1::ContentList::CardAction # @param : [phone] [String] # @param : [id] [String] # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#70 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 def title; end # @param : [type] [CardActionType] @@ -34391,11 +34412,12 @@ class Twilio::REST::Content::V1::ContentList::CardAction # @param : [phone] [String] # @param : [id] [String] # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#70 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 def title=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#79 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#84 def to_json(options = T.unsafe(nil)); end # @param : [type] [CardActionType] @@ -34404,8 +34426,9 @@ class Twilio::REST::Content::V1::ContentList::CardAction # @param : [phone] [String] # @param : [id] [String] # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#70 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 def type; end # @param : [type] [CardActionType] @@ -34414,8 +34437,9 @@ class Twilio::REST::Content::V1::ContentList::CardAction # @param : [phone] [String] # @param : [id] [String] # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#70 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 def type=(_arg0); end # @param : [type] [CardActionType] @@ -34424,8 +34448,9 @@ class Twilio::REST::Content::V1::ContentList::CardAction # @param : [phone] [String] # @param : [id] [String] # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#70 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 def url; end # @param : [type] [CardActionType] @@ -34434,16 +34459,39 @@ class Twilio::REST::Content::V1::ContentList::CardAction # @param : [phone] [String] # @param : [id] [String] # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#70 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 def url=(_arg0); end + + # @param : [type] [CardActionType] + # @param : [title] [String] + # @param : [url] [String] + # @param : [phone] [String] + # @param : [id] [String] + # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] + # + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 + def webview_size; end + + # @param : [type] [CardActionType] + # @param : [title] [String] + # @param : [url] [String] + # @param : [phone] [String] + # @param : [id] [String] + # @param : [code] [String] + # @param : [webview_size] [WebviewSizeType] + # + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#74 + def webview_size=(_arg0); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#91 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#97 class Twilio::REST::Content::V1::ContentList::CarouselAction # @return [CarouselAction] a new instance of CarouselAction # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#98 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#104 def initialize(payload); end # @param : [type] [CarouselActionType] @@ -34452,7 +34500,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselAction # @param : [phone] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#97 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#103 def id; end # @param : [type] [CarouselActionType] @@ -34461,7 +34509,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselAction # @param : [phone] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#97 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#103 def id=(_arg0); end # @param : [type] [CarouselActionType] @@ -34470,7 +34518,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselAction # @param : [phone] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#97 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#103 def phone; end # @param : [type] [CarouselActionType] @@ -34479,7 +34527,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselAction # @param : [phone] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#97 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#103 def phone=(_arg0); end # @param : [type] [CarouselActionType] @@ -34488,7 +34536,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselAction # @param : [phone] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#97 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#103 def title; end # @param : [type] [CarouselActionType] @@ -34497,10 +34545,10 @@ class Twilio::REST::Content::V1::ContentList::CarouselAction # @param : [phone] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#97 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#103 def title=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#105 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#111 def to_json(options = T.unsafe(nil)); end # @param : [type] [CarouselActionType] @@ -34509,7 +34557,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselAction # @param : [phone] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#97 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#103 def type; end # @param : [type] [CarouselActionType] @@ -34518,7 +34566,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselAction # @param : [phone] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#97 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#103 def type=(_arg0); end # @param : [type] [CarouselActionType] @@ -34527,7 +34575,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselAction # @param : [phone] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#97 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#103 def url; end # @param : [type] [CarouselActionType] @@ -34536,15 +34584,15 @@ class Twilio::REST::Content::V1::ContentList::CarouselAction # @param : [phone] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#97 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#103 def url=(_arg0); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#116 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#122 class Twilio::REST::Content::V1::ContentList::CarouselCard # @return [CarouselCard] a new instance of CarouselCard # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#122 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#128 def initialize(payload); end # @param : [title] [String] @@ -34552,7 +34600,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselCard # @param : [media] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#121 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#127 def actions; end # @param : [title] [String] @@ -34560,7 +34608,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselCard # @param : [media] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#121 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#127 def actions=(_arg0); end # @param : [title] [String] @@ -34568,7 +34616,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselCard # @param : [media] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#121 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#127 def body; end # @param : [title] [String] @@ -34576,7 +34624,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselCard # @param : [media] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#121 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#127 def body=(_arg0); end # @param : [title] [String] @@ -34584,7 +34632,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselCard # @param : [media] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#121 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#127 def media; end # @param : [title] [String] @@ -34592,7 +34640,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselCard # @param : [media] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#121 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#127 def media=(_arg0); end # @param : [title] [String] @@ -34600,7 +34648,7 @@ class Twilio::REST::Content::V1::ContentList::CarouselCard # @param : [media] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#121 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#127 def title; end # @param : [title] [String] @@ -34608,18 +34656,18 @@ class Twilio::REST::Content::V1::ContentList::CarouselCard # @param : [media] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#121 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#127 def title=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#128 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#134 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#138 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#144 class Twilio::REST::Content::V1::ContentList::CatalogItem # @return [CatalogItem] a new instance of CatalogItem # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#146 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#152 def initialize(payload); end # @param : [id] [String] @@ -34629,7 +34677,7 @@ class Twilio::REST::Content::V1::ContentList::CatalogItem # @param : [price] [Float] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#151 def description; end # @param : [id] [String] @@ -34639,7 +34687,7 @@ class Twilio::REST::Content::V1::ContentList::CatalogItem # @param : [price] [Float] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#151 def description=(_arg0); end # @param : [id] [String] @@ -34649,7 +34697,7 @@ class Twilio::REST::Content::V1::ContentList::CatalogItem # @param : [price] [Float] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#151 def id; end # @param : [id] [String] @@ -34659,7 +34707,7 @@ class Twilio::REST::Content::V1::ContentList::CatalogItem # @param : [price] [Float] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#151 def id=(_arg0); end # @param : [id] [String] @@ -34669,7 +34717,7 @@ class Twilio::REST::Content::V1::ContentList::CatalogItem # @param : [price] [Float] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#151 def media_url; end # @param : [id] [String] @@ -34679,7 +34727,7 @@ class Twilio::REST::Content::V1::ContentList::CatalogItem # @param : [price] [Float] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#151 def media_url=(_arg0); end # @param : [id] [String] @@ -34689,7 +34737,7 @@ class Twilio::REST::Content::V1::ContentList::CatalogItem # @param : [price] [Float] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#151 def name; end # @param : [id] [String] @@ -34699,7 +34747,7 @@ class Twilio::REST::Content::V1::ContentList::CatalogItem # @param : [price] [Float] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#151 def name=(_arg0); end # @param : [id] [String] @@ -34709,7 +34757,7 @@ class Twilio::REST::Content::V1::ContentList::CatalogItem # @param : [price] [Float] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#151 def price; end # @param : [id] [String] @@ -34719,7 +34767,7 @@ class Twilio::REST::Content::V1::ContentList::CatalogItem # @param : [price] [Float] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#151 def price=(_arg0); end # @param : [id] [String] @@ -34729,7 +34777,7 @@ class Twilio::REST::Content::V1::ContentList::CatalogItem # @param : [price] [Float] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#151 def section_title; end # @param : [id] [String] @@ -34739,18 +34787,18 @@ class Twilio::REST::Content::V1::ContentList::CatalogItem # @param : [price] [Float] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#151 def section_title=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#154 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#160 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#166 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#172 class Twilio::REST::Content::V1::ContentList::ContentCreateRequest # @return [ContentCreateRequest] a new instance of ContentCreateRequest # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#172 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#178 def initialize(payload); end # @param : [friendly_name] [String] User defined name of the content @@ -34758,7 +34806,7 @@ class Twilio::REST::Content::V1::ContentList::ContentCreateRequest # @param : [language] [String] Language code for the content # @param : [types] [ContentList.Types] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#171 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#177 def friendly_name; end # @param : [friendly_name] [String] User defined name of the content @@ -34766,7 +34814,7 @@ class Twilio::REST::Content::V1::ContentList::ContentCreateRequest # @param : [language] [String] Language code for the content # @param : [types] [ContentList.Types] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#171 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#177 def friendly_name=(_arg0); end # @param : [friendly_name] [String] User defined name of the content @@ -34774,7 +34822,7 @@ class Twilio::REST::Content::V1::ContentList::ContentCreateRequest # @param : [language] [String] Language code for the content # @param : [types] [ContentList.Types] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#171 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#177 def language; end # @param : [friendly_name] [String] User defined name of the content @@ -34782,10 +34830,10 @@ class Twilio::REST::Content::V1::ContentList::ContentCreateRequest # @param : [language] [String] Language code for the content # @param : [types] [ContentList.Types] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#171 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#177 def language=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#178 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#184 def to_json(options = T.unsafe(nil)); end # @param : [friendly_name] [String] User defined name of the content @@ -34793,7 +34841,7 @@ class Twilio::REST::Content::V1::ContentList::ContentCreateRequest # @param : [language] [String] Language code for the content # @param : [types] [ContentList.Types] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#171 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#177 def types; end # @param : [friendly_name] [String] User defined name of the content @@ -34801,7 +34849,7 @@ class Twilio::REST::Content::V1::ContentList::ContentCreateRequest # @param : [language] [String] Language code for the content # @param : [types] [ContentList.Types] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#171 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#177 def types=(_arg0); end # @param : [friendly_name] [String] User defined name of the content @@ -34809,7 +34857,7 @@ class Twilio::REST::Content::V1::ContentList::ContentCreateRequest # @param : [language] [String] Language code for the content # @param : [types] [ContentList.Types] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#171 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#177 def variables; end # @param : [friendly_name] [String] User defined name of the content @@ -34817,15 +34865,15 @@ class Twilio::REST::Content::V1::ContentList::ContentCreateRequest # @param : [language] [String] Language code for the content # @param : [types] [ContentList.Types] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#171 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#177 def variables=(_arg0); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#188 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#194 class Twilio::REST::Content::V1::ContentList::FlowsPage # @return [FlowsPage] a new instance of FlowsPage # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#195 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#201 def initialize(payload); end # @param : [id] [String] @@ -34834,7 +34882,7 @@ class Twilio::REST::Content::V1::ContentList::FlowsPage # @param : [subtitle] [String] # @param : [layout] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#194 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#200 def id; end # @param : [id] [String] @@ -34843,7 +34891,7 @@ class Twilio::REST::Content::V1::ContentList::FlowsPage # @param : [subtitle] [String] # @param : [layout] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#194 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#200 def id=(_arg0); end # @param : [id] [String] @@ -34852,7 +34900,7 @@ class Twilio::REST::Content::V1::ContentList::FlowsPage # @param : [subtitle] [String] # @param : [layout] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#194 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#200 def layout; end # @param : [id] [String] @@ -34861,7 +34909,7 @@ class Twilio::REST::Content::V1::ContentList::FlowsPage # @param : [subtitle] [String] # @param : [layout] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#194 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#200 def layout=(_arg0); end # @param : [id] [String] @@ -34870,7 +34918,7 @@ class Twilio::REST::Content::V1::ContentList::FlowsPage # @param : [subtitle] [String] # @param : [layout] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#194 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#200 def next_page_id; end # @param : [id] [String] @@ -34879,7 +34927,7 @@ class Twilio::REST::Content::V1::ContentList::FlowsPage # @param : [subtitle] [String] # @param : [layout] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#194 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#200 def next_page_id=(_arg0); end # @param : [id] [String] @@ -34888,7 +34936,7 @@ class Twilio::REST::Content::V1::ContentList::FlowsPage # @param : [subtitle] [String] # @param : [layout] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#194 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#200 def subtitle; end # @param : [id] [String] @@ -34897,7 +34945,7 @@ class Twilio::REST::Content::V1::ContentList::FlowsPage # @param : [subtitle] [String] # @param : [layout] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#194 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#200 def subtitle=(_arg0); end # @param : [id] [String] @@ -34906,7 +34954,7 @@ class Twilio::REST::Content::V1::ContentList::FlowsPage # @param : [subtitle] [String] # @param : [layout] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#194 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#200 def title; end # @param : [id] [String] @@ -34915,194 +34963,194 @@ class Twilio::REST::Content::V1::ContentList::FlowsPage # @param : [subtitle] [String] # @param : [layout] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#194 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#200 def title=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#202 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#208 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#213 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#219 class Twilio::REST::Content::V1::ContentList::FlowsPageComponent # @return [FlowsPageComponent] a new instance of FlowsPageComponent # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#217 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#223 def initialize(payload); end # @param : [label] [String] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#216 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#222 def label; end # @param : [label] [String] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#216 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#222 def label=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#221 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#227 def to_json(options = T.unsafe(nil)); end # @param : [label] [String] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#216 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#222 def type; end # @param : [label] [String] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#216 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#222 def type=(_arg0); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#229 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#235 class Twilio::REST::Content::V1::ContentList::ListItem # @return [ListItem] a new instance of ListItem # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#234 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#240 def initialize(payload); end # @param : [id] [String] # @param : [item] [String] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#233 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#239 def description; end # @param : [id] [String] # @param : [item] [String] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#233 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#239 def description=(_arg0); end # @param : [id] [String] # @param : [item] [String] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#233 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#239 def id; end # @param : [id] [String] # @param : [item] [String] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#233 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#239 def id=(_arg0); end # @param : [id] [String] # @param : [item] [String] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#233 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#239 def item; end # @param : [id] [String] # @param : [item] [String] # @param : [description] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#233 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#239 def item=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#239 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#245 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#248 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#254 class Twilio::REST::Content::V1::ContentList::QuickReplyAction # @return [QuickReplyAction] a new instance of QuickReplyAction # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#253 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#259 def initialize(payload); end # @param : [type] [QuickReplyActionType] # @param : [title] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#252 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#258 def id; end # @param : [type] [QuickReplyActionType] # @param : [title] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#252 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#258 def id=(_arg0); end # @param : [type] [QuickReplyActionType] # @param : [title] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#252 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#258 def title; end # @param : [type] [QuickReplyActionType] # @param : [title] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#252 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#258 def title=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#258 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#264 def to_json(options = T.unsafe(nil)); end # @param : [type] [QuickReplyActionType] # @param : [title] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#252 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#258 def type; end # @param : [type] [QuickReplyActionType] # @param : [title] [String] # @param : [id] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#252 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#258 def type=(_arg0); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#267 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#273 class Twilio::REST::Content::V1::ContentList::TwilioCallToAction # @return [TwilioCallToAction] a new instance of TwilioCallToAction # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#271 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#277 def initialize(payload); end # @param : [body] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#270 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#276 def actions; end # @param : [body] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#270 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#276 def actions=(_arg0); end # @param : [body] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#270 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#276 def body; end # @param : [body] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#270 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#276 def body=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#275 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#281 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#283 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#289 class Twilio::REST::Content::V1::ContentList::TwilioCard # @return [TwilioCard] a new instance of TwilioCard # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#289 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#295 def initialize(payload); end # @param : [title] [String] @@ -35110,7 +35158,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCard # @param : [media] [Array] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#288 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#294 def actions; end # @param : [title] [String] @@ -35118,7 +35166,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCard # @param : [media] [Array] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#288 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#294 def actions=(_arg0); end # @param : [title] [String] @@ -35126,7 +35174,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCard # @param : [media] [Array] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#288 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#294 def media; end # @param : [title] [String] @@ -35134,7 +35182,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCard # @param : [media] [Array] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#288 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#294 def media=(_arg0); end # @param : [title] [String] @@ -35142,7 +35190,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCard # @param : [media] [Array] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#288 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#294 def subtitle; end # @param : [title] [String] @@ -35150,7 +35198,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCard # @param : [media] [Array] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#288 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#294 def subtitle=(_arg0); end # @param : [title] [String] @@ -35158,7 +35206,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCard # @param : [media] [Array] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#288 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#294 def title; end # @param : [title] [String] @@ -35166,53 +35214,53 @@ class Twilio::REST::Content::V1::ContentList::TwilioCard # @param : [media] [Array] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#288 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#294 def title=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#295 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#301 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#305 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#311 class Twilio::REST::Content::V1::ContentList::TwilioCarousel # @return [TwilioCarousel] a new instance of TwilioCarousel # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#309 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#315 def initialize(payload); end # @param : [body] [String] # @param : [cards] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#308 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#314 def body; end # @param : [body] [String] # @param : [cards] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#308 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#314 def body=(_arg0); end # @param : [body] [String] # @param : [cards] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#308 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#314 def cards; end # @param : [body] [String] # @param : [cards] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#308 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#314 def cards=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#313 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#319 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#321 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#327 class Twilio::REST::Content::V1::ContentList::TwilioCatalog # @return [TwilioCatalog] a new instance of TwilioCatalog # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#329 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#335 def initialize(payload); end # @param : [title] [String] @@ -35222,7 +35270,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCatalog # @param : [items] [Array] # @param : [dynamic_items] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#328 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#334 def body; end # @param : [title] [String] @@ -35232,7 +35280,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCatalog # @param : [items] [Array] # @param : [dynamic_items] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#328 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#334 def body=(_arg0); end # @param : [title] [String] @@ -35242,7 +35290,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCatalog # @param : [items] [Array] # @param : [dynamic_items] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#328 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#334 def dynamic_items; end # @param : [title] [String] @@ -35252,7 +35300,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCatalog # @param : [items] [Array] # @param : [dynamic_items] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#328 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#334 def dynamic_items=(_arg0); end # @param : [title] [String] @@ -35262,7 +35310,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCatalog # @param : [items] [Array] # @param : [dynamic_items] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#328 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#334 def id; end # @param : [title] [String] @@ -35272,7 +35320,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCatalog # @param : [items] [Array] # @param : [dynamic_items] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#328 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#334 def id=(_arg0); end # @param : [title] [String] @@ -35282,7 +35330,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCatalog # @param : [items] [Array] # @param : [dynamic_items] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#328 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#334 def items; end # @param : [title] [String] @@ -35292,7 +35340,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCatalog # @param : [items] [Array] # @param : [dynamic_items] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#328 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#334 def items=(_arg0); end # @param : [title] [String] @@ -35302,7 +35350,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCatalog # @param : [items] [Array] # @param : [dynamic_items] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#328 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#334 def subtitle; end # @param : [title] [String] @@ -35312,7 +35360,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCatalog # @param : [items] [Array] # @param : [dynamic_items] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#328 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#334 def subtitle=(_arg0); end # @param : [title] [String] @@ -35322,7 +35370,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioCatalog # @param : [items] [Array] # @param : [dynamic_items] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#328 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#334 def title; end # @param : [title] [String] @@ -35332,18 +35380,18 @@ class Twilio::REST::Content::V1::ContentList::TwilioCatalog # @param : [items] [Array] # @param : [dynamic_items] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#328 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#334 def title=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#337 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#343 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#349 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#355 class Twilio::REST::Content::V1::ContentList::TwilioFlows # @return [TwilioFlows] a new instance of TwilioFlows # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#357 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#363 def initialize(payload); end # @param : [body] [String] @@ -35353,7 +35401,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioFlows # @param : [pages] [Array] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#356 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#362 def body; end # @param : [body] [String] @@ -35363,7 +35411,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioFlows # @param : [pages] [Array] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#356 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#362 def body=(_arg0); end # @param : [body] [String] @@ -35373,7 +35421,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioFlows # @param : [pages] [Array] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#356 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#362 def button_text; end # @param : [body] [String] @@ -35383,7 +35431,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioFlows # @param : [pages] [Array] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#356 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#362 def button_text=(_arg0); end # @param : [body] [String] @@ -35393,7 +35441,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioFlows # @param : [pages] [Array] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#356 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#362 def media_url; end # @param : [body] [String] @@ -35403,7 +35451,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioFlows # @param : [pages] [Array] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#356 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#362 def media_url=(_arg0); end # @param : [body] [String] @@ -35413,7 +35461,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioFlows # @param : [pages] [Array] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#356 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#362 def pages; end # @param : [body] [String] @@ -35423,7 +35471,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioFlows # @param : [pages] [Array] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#356 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#362 def pages=(_arg0); end # @param : [body] [String] @@ -35433,7 +35481,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioFlows # @param : [pages] [Array] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#356 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#362 def subtitle; end # @param : [body] [String] @@ -35443,10 +35491,10 @@ class Twilio::REST::Content::V1::ContentList::TwilioFlows # @param : [pages] [Array] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#356 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#362 def subtitle=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#365 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#371 def to_json(options = T.unsafe(nil)); end # @param : [body] [String] @@ -35456,7 +35504,7 @@ class Twilio::REST::Content::V1::ContentList::TwilioFlows # @param : [pages] [Array] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#356 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#362 def type; end # @param : [body] [String] @@ -35466,268 +35514,316 @@ class Twilio::REST::Content::V1::ContentList::TwilioFlows # @param : [pages] [Array] # @param : [type] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#356 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#362 def type=(_arg0); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#377 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#383 class Twilio::REST::Content::V1::ContentList::TwilioListPicker # @return [TwilioListPicker] a new instance of TwilioListPicker # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#382 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#388 def initialize(payload); end # @param : [body] [String] # @param : [button] [String] # @param : [items] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#381 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#387 def body; end # @param : [body] [String] # @param : [button] [String] # @param : [items] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#381 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#387 def body=(_arg0); end # @param : [body] [String] # @param : [button] [String] # @param : [items] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#381 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#387 def button; end # @param : [body] [String] # @param : [button] [String] # @param : [items] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#381 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#387 def button=(_arg0); end # @param : [body] [String] # @param : [button] [String] # @param : [items] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#381 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#387 def items; end # @param : [body] [String] # @param : [button] [String] # @param : [items] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#381 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#387 def items=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#387 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#393 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#396 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#402 class Twilio::REST::Content::V1::ContentList::TwilioLocation # @return [TwilioLocation] a new instance of TwilioLocation # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#401 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#409 def initialize(payload); end # @param : [latitude] [Float] # @param : [longitude] [Float] # @param : [label] [String] + # @param : [id] [String] + # @param : [address] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#400 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#408 + def address; end + + # @param : [latitude] [Float] + # @param : [longitude] [Float] + # @param : [label] [String] + # @param : [id] [String] + # @param : [address] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#408 + def address=(_arg0); end + + # @param : [latitude] [Float] + # @param : [longitude] [Float] + # @param : [label] [String] + # @param : [id] [String] + # @param : [address] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#408 + def id; end + + # @param : [latitude] [Float] + # @param : [longitude] [Float] + # @param : [label] [String] + # @param : [id] [String] + # @param : [address] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#408 + def id=(_arg0); end + + # @param : [latitude] [Float] + # @param : [longitude] [Float] + # @param : [label] [String] + # @param : [id] [String] + # @param : [address] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#408 def label; end # @param : [latitude] [Float] # @param : [longitude] [Float] # @param : [label] [String] + # @param : [id] [String] + # @param : [address] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#400 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#408 def label=(_arg0); end # @param : [latitude] [Float] # @param : [longitude] [Float] # @param : [label] [String] + # @param : [id] [String] + # @param : [address] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#400 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#408 def latitude; end # @param : [latitude] [Float] # @param : [longitude] [Float] # @param : [label] [String] + # @param : [id] [String] + # @param : [address] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#400 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#408 def latitude=(_arg0); end # @param : [latitude] [Float] # @param : [longitude] [Float] # @param : [label] [String] + # @param : [id] [String] + # @param : [address] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#400 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#408 def longitude; end # @param : [latitude] [Float] # @param : [longitude] [Float] # @param : [label] [String] + # @param : [id] [String] + # @param : [address] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#400 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#408 def longitude=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#406 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#416 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#415 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#427 class Twilio::REST::Content::V1::ContentList::TwilioMedia # @return [TwilioMedia] a new instance of TwilioMedia # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#419 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#431 def initialize(payload); end # @param : [body] [String] # @param : [media] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#418 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#430 def body; end # @param : [body] [String] # @param : [media] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#418 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#430 def body=(_arg0); end # @param : [body] [String] # @param : [media] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#418 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#430 def media; end # @param : [body] [String] # @param : [media] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#418 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#430 def media=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#423 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#435 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#431 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#443 class Twilio::REST::Content::V1::ContentList::TwilioQuickReply # @return [TwilioQuickReply] a new instance of TwilioQuickReply # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#435 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#447 def initialize(payload); end # @param : [body] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#434 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#446 def actions; end # @param : [body] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#434 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#446 def actions=(_arg0); end # @param : [body] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#434 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#446 def body; end # @param : [body] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#434 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#446 def body=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#439 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#451 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#447 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#459 class Twilio::REST::Content::V1::ContentList::TwilioSchedule # @return [TwilioSchedule] a new instance of TwilioSchedule # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#452 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#464 def initialize(payload); end # @param : [id] [String] # @param : [title] [String] # @param : [time_slots] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#451 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#463 def id; end # @param : [id] [String] # @param : [title] [String] # @param : [time_slots] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#451 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#463 def id=(_arg0); end # @param : [id] [String] # @param : [title] [String] # @param : [time_slots] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#451 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#463 def time_slots; end # @param : [id] [String] # @param : [title] [String] # @param : [time_slots] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#451 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#463 def time_slots=(_arg0); end # @param : [id] [String] # @param : [title] [String] # @param : [time_slots] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#451 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#463 def title; end # @param : [id] [String] # @param : [title] [String] # @param : [time_slots] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#451 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#463 def title=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#457 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#469 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#466 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#478 class Twilio::REST::Content::V1::ContentList::TwilioText # @return [TwilioText] a new instance of TwilioText # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#469 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#481 def initialize(payload); end # @param : [body] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#468 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#480 def body; end # @param : [body] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#468 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#480 def body=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#472 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#484 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#479 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#491 class Twilio::REST::Content::V1::ContentList::Types # @return [Types] a new instance of Types # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#494 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#506 def initialize(payload); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#509 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#521 def to_json(options = T.unsafe(nil)); end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35744,7 +35840,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_call_to_action; end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35761,7 +35857,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_call_to_action=(_arg0); end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35778,7 +35874,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_card; end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35795,7 +35891,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_card=(_arg0); end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35812,7 +35908,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_carousel; end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35829,7 +35925,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_carousel=(_arg0); end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35846,7 +35942,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_catalog; end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35863,7 +35959,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_catalog=(_arg0); end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35880,7 +35976,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_flows; end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35897,7 +35993,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_flows=(_arg0); end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35914,7 +36010,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_list_picker; end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35931,7 +36027,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_list_picker=(_arg0); end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35948,7 +36044,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_location; end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35965,7 +36061,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_location=(_arg0); end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35982,7 +36078,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_media; end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -35999,7 +36095,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_media=(_arg0); end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -36016,7 +36112,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_quick_reply; end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -36033,7 +36129,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_quick_reply=(_arg0); end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -36050,7 +36146,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_schedule; end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -36067,7 +36163,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_schedule=(_arg0); end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -36084,7 +36180,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_text; end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -36101,7 +36197,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def twilio_text=(_arg0); end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -36118,7 +36214,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def whatsapp_authentication; end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -36135,7 +36231,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def whatsapp_authentication=(_arg0); end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -36152,7 +36248,7 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def whatsapp_card; end # @param : [whatsapp_authentication] [ContentList.WhatsappAuthentication] @@ -36169,68 +36265,68 @@ class Twilio::REST::Content::V1::ContentList::Types # @param : [whatsapp_card] [ContentList.WhatsappCard] # @param : [twilio_text] [ContentList.TwilioText] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#493 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#505 def whatsapp_card=(_arg0); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#528 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#540 class Twilio::REST::Content::V1::ContentList::WhatsappAuthentication # @return [WhatsappAuthentication] a new instance of WhatsappAuthentication # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#533 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#545 def initialize(payload); end # @param : [add_security_recommendation] [Boolean] # @param : [code_expiration_minutes] [Float] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#532 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#544 def actions; end # @param : [add_security_recommendation] [Boolean] # @param : [code_expiration_minutes] [Float] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#532 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#544 def actions=(_arg0); end # @param : [add_security_recommendation] [Boolean] # @param : [code_expiration_minutes] [Float] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#532 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#544 def add_security_recommendation; end # @param : [add_security_recommendation] [Boolean] # @param : [code_expiration_minutes] [Float] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#532 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#544 def add_security_recommendation=(_arg0); end # @param : [add_security_recommendation] [Boolean] # @param : [code_expiration_minutes] [Float] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#532 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#544 def code_expiration_minutes; end # @param : [add_security_recommendation] [Boolean] # @param : [code_expiration_minutes] [Float] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#532 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#544 def code_expiration_minutes=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#538 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#550 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#547 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#559 class Twilio::REST::Content::V1::ContentList::WhatsappCard # @return [WhatsappCard] a new instance of WhatsappCard # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#554 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#566 def initialize(payload); end # @param : [body] [String] @@ -36239,7 +36335,7 @@ class Twilio::REST::Content::V1::ContentList::WhatsappCard # @param : [header_text] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#553 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#565 def actions; end # @param : [body] [String] @@ -36248,7 +36344,7 @@ class Twilio::REST::Content::V1::ContentList::WhatsappCard # @param : [header_text] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#553 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#565 def actions=(_arg0); end # @param : [body] [String] @@ -36257,7 +36353,7 @@ class Twilio::REST::Content::V1::ContentList::WhatsappCard # @param : [header_text] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#553 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#565 def body; end # @param : [body] [String] @@ -36266,7 +36362,7 @@ class Twilio::REST::Content::V1::ContentList::WhatsappCard # @param : [header_text] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#553 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#565 def body=(_arg0); end # @param : [body] [String] @@ -36275,7 +36371,7 @@ class Twilio::REST::Content::V1::ContentList::WhatsappCard # @param : [header_text] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#553 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#565 def footer; end # @param : [body] [String] @@ -36284,7 +36380,7 @@ class Twilio::REST::Content::V1::ContentList::WhatsappCard # @param : [header_text] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#553 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#565 def footer=(_arg0); end # @param : [body] [String] @@ -36293,7 +36389,7 @@ class Twilio::REST::Content::V1::ContentList::WhatsappCard # @param : [header_text] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#553 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#565 def header_text; end # @param : [body] [String] @@ -36302,7 +36398,7 @@ class Twilio::REST::Content::V1::ContentList::WhatsappCard # @param : [header_text] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#553 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#565 def header_text=(_arg0); end # @param : [body] [String] @@ -36311,7 +36407,7 @@ class Twilio::REST::Content::V1::ContentList::WhatsappCard # @param : [header_text] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#553 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#565 def media; end # @param : [body] [String] @@ -36320,14 +36416,14 @@ class Twilio::REST::Content::V1::ContentList::WhatsappCard # @param : [header_text] [String] # @param : [actions] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#553 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#565 def media=(_arg0); end - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#561 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#573 def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#786 +# source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#798 class Twilio::REST::Content::V1::ContentPage < ::Twilio::REST::Page # Initialize the ContentPage # @@ -36336,7 +36432,7 @@ class Twilio::REST::Content::V1::ContentPage < ::Twilio::REST::Page # @param solution [Hash] Path solution for the resource # @return [ContentPage] ContentPage # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#793 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#805 def initialize(version, response, solution); end # Build an instance of ContentInstance @@ -36344,12 +36440,12 @@ class Twilio::REST::Content::V1::ContentPage < ::Twilio::REST::Page # @param payload [Hash] Payload response from the API # @return [ContentInstance] ContentInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#804 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#816 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#810 + # source://twilio-ruby//lib/twilio-ruby/rest/content/v1/content.rb#822 def to_s; end end @@ -45700,7 +45796,7 @@ class Twilio::REST::Events::V1::SinkPage < ::Twilio::REST::Page def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#170 +# source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#167 class Twilio::REST::Events::V1::SubscriptionContext < ::Twilio::REST::InstanceContext # Initialize the SubscriptionContext # @@ -45708,26 +45804,26 @@ class Twilio::REST::Events::V1::SubscriptionContext < ::Twilio::REST::InstanceCo # @param sid [String] A 34 character string that uniquely identifies this Subscription. # @return [SubscriptionContext] SubscriptionContext # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#176 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#173 def initialize(version, sid); end # Delete the SubscriptionInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#189 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#186 def delete; end # Fetch the SubscriptionInstance # # @return [SubscriptionInstance] Fetched SubscriptionInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#201 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#198 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#278 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#269 def inspect; end # Access the subscribed_events @@ -45736,23 +45832,21 @@ class Twilio::REST::Events::V1::SubscriptionContext < ::Twilio::REST::InstanceCo # @return [SubscribedEventList] # @return [SubscribedEventContext] if sid was passed. # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#253 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#244 def subscribed_events(type = T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#271 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#262 def to_s; end # Update the SubscriptionInstance # # @param description [String] A human readable description for the Subscription. - # @param sink_sid [String] The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. - # @param receive_events_from_subaccounts [Boolean] Receive events from all children accounts in the parent account subscription. # @return [SubscriptionInstance] Updated SubscriptionInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#223 - def update(description: T.unsafe(nil), sink_sid: T.unsafe(nil), receive_events_from_subaccounts: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#218 + def update(description: T.unsafe(nil)); end end # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb#161 @@ -45989,7 +46083,7 @@ class Twilio::REST::Events::V1::SubscriptionContext::SubscribedEventPage < ::Twi def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#312 +# source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#303 class Twilio::REST::Events::V1::SubscriptionInstance < ::Twilio::REST::InstanceResource # Initialize the SubscriptionInstance # @@ -46001,12 +46095,12 @@ class Twilio::REST::Events::V1::SubscriptionInstance < ::Twilio::REST::InstanceR # @param sid [String] The SID of the Call resource to fetch. # @return [SubscriptionInstance] SubscriptionInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#322 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#313 def initialize(version, payload, sid: T.unsafe(nil)); end # @return [String] The unique SID identifier of the Account. # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#356 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#346 def account_sid; end # Generate an instance context for the instance, the context is capable of @@ -46014,88 +46108,81 @@ class Twilio::REST::Events::V1::SubscriptionInstance < ::Twilio::REST::InstanceR # # @return [SubscriptionContext] CallContext for this CallInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#347 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#337 def context; end # @return [Time] The date that this Subscription was created, given in ISO 8601 format. # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#368 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#358 def date_created; end # @return [Time] The date that this Subscription was updated, given in ISO 8601 format. # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#374 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#364 def date_updated; end # Delete the SubscriptionInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#411 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#395 def delete; end # @return [String] A human readable description for the Subscription # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#380 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#370 def description; end # Fetch the SubscriptionInstance # # @return [SubscriptionInstance] Fetched SubscriptionInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#419 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#403 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#459 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#437 def inspect; end # @return [Hash] Contains a dictionary of URL links to nested resources of this Subscription. # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#398 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#388 def links; end - # @return [Boolean] Receive events from all children accounts in the parent account subscription. - # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#404 - def receive_events_from_subaccounts; end - # @return [String] A 34 character string that uniquely identifies this Subscription. # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#362 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#352 def sid; end # @return [String] The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#386 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#376 def sink_sid; end # Access the subscribed_events # # @return [subscribed_events] subscribed_events # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#446 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#424 def subscribed_events; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#452 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#430 def to_s; end # Update the SubscriptionInstance # # @param description [String] A human readable description for the Subscription. - # @param sink_sid [String] The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. - # @param receive_events_from_subaccounts [Boolean] Receive events from all children accounts in the parent account subscription. # @return [SubscriptionInstance] Updated SubscriptionInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#430 - def update(description: T.unsafe(nil), sink_sid: T.unsafe(nil), receive_events_from_subaccounts: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#412 + def update(description: T.unsafe(nil)); end # @return [String] The URL of this resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#392 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#382 def url; end end @@ -46114,17 +46201,16 @@ class Twilio::REST::Events::V1::SubscriptionList < ::Twilio::REST::ListResource # @param description [String] A human readable description for the Subscription **This value should not contain PII.** # @param sink_sid [String] The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. # @param types [Array[Hash]] An array of objects containing the subscribed Event Types - # @param receive_events_from_subaccounts [Boolean] Receive events from all children accounts in the parent account subscription. # @return [SubscriptionInstance] Created SubscriptionInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#40 - def create(description: T.unsafe(nil), sink_sid: T.unsafe(nil), types: T.unsafe(nil), receive_events_from_subaccounts: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#39 + def create(description: T.unsafe(nil), sink_sid: T.unsafe(nil), types: T.unsafe(nil)); end # When passed a block, yields SubscriptionInstance records from the API. # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#114 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#111 def each; end # Retrieve a single page of SubscriptionInstance records from the API. @@ -46133,7 +46219,7 @@ class Twilio::REST::Events::V1::SubscriptionList < ::Twilio::REST::ListResource # @param target_url [String] API-generated URL for the requested results page # @return [Page] Page of SubscriptionInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#153 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#150 def get_page(target_url); end # Lists SubscriptionInstance records from the API as a list. @@ -46149,7 +46235,7 @@ class Twilio::REST::Events::V1::SubscriptionList < ::Twilio::REST::ListResource # efficient page size, i.e. min(limit, 1000) # @return [Array] Array of up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#80 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#77 def list(sink_sid: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Retrieve a single page of SubscriptionInstance records from the API. @@ -46161,7 +46247,7 @@ class Twilio::REST::Events::V1::SubscriptionList < ::Twilio::REST::ListResource # @param page_size [Integer] Number of records to return, defaults to 50 # @return [Page] Page of SubscriptionInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#132 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#129 def page(sink_sid: T.unsafe(nil), page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end # Streams Instance records from the API as an Enumerable. @@ -46177,16 +46263,16 @@ class Twilio::REST::Events::V1::SubscriptionList < ::Twilio::REST::ListResource # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#100 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#97 def stream(sink_sid: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#164 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#161 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#284 +# source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#275 class Twilio::REST::Events::V1::SubscriptionPage < ::Twilio::REST::Page # Initialize the SubscriptionPage # @@ -46195,7 +46281,7 @@ class Twilio::REST::Events::V1::SubscriptionPage < ::Twilio::REST::Page # @param solution [Hash] Path solution for the resource # @return [SubscriptionPage] SubscriptionPage # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#291 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#282 def initialize(version, response, solution); end # Build an instance of SubscriptionInstance @@ -46203,12 +46289,12 @@ class Twilio::REST::Events::V1::SubscriptionPage < ::Twilio::REST::Page # @param payload [Hash] Payload response from the API # @return [SubscriptionInstance] SubscriptionInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#302 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#293 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#308 + # source://twilio-ruby//lib/twilio-ruby/rest/events/v1/subscription.rb#299 def to_s; end end @@ -46417,7 +46503,7 @@ class Twilio::REST::FlexApi::V1 < ::Twilio::REST::Version # @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveContext] if sid was passed. # @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveList] # - # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1.rb#280 + # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1.rb#262 def plugin_version_archive(plugin_sid = T.unsafe(nil), sid = T.unsafe(nil)); end # @param sid [String] The SID of the Flex Plugin resource to fetch. @@ -46536,7 +46622,7 @@ class Twilio::REST::FlexApi::V1::AssessmentsInstance < ::Twilio::REST::InstanceR # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1/assessments.rb#451 def inspect; end - # @return [Float] Offset of the conversation + # @return [String] Offset of the conversation # # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1/assessments.rb#350 def offset; end @@ -46551,7 +46637,7 @@ class Twilio::REST::FlexApi::V1::AssessmentsInstance < ::Twilio::REST::InstanceR # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1/assessments.rb#374 def segment_id; end - # @return [Float] + # @return [String] # # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1/assessments.rb#410 def timestamp; end @@ -46587,7 +46673,7 @@ class Twilio::REST::FlexApi::V1::AssessmentsInstance < ::Twilio::REST::InstanceR # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1/assessments.rb#380 def user_name; end - # @return [Float] The weightage given to this comment + # @return [String] The weightage given to this comment # # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1/assessments.rb#362 def weight; end @@ -47698,7 +47784,7 @@ class Twilio::REST::FlexApi::V1::InsightsAssessmentsCommentInstance < ::Twilio:: # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb#328 def inspect; end - # @return [Float] The offset + # @return [String] The offset # # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb#268 def offset; end @@ -47713,7 +47799,7 @@ class Twilio::REST::FlexApi::V1::InsightsAssessmentsCommentInstance < ::Twilio:: # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb#292 def segment_id; end - # @return [Float] The timestamp when the record is inserted + # @return [String] The timestamp when the record is inserted # # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb#310 def timestamp; end @@ -47738,7 +47824,7 @@ class Twilio::REST::FlexApi::V1::InsightsAssessmentsCommentInstance < ::Twilio:: # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb#298 def user_name; end - # @return [Float] The weightage given to this comment + # @return [String] The weightage given to this comment # # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb#280 def weight; end @@ -52585,7 +52671,7 @@ class Twilio::REST::FlexApi::V2 < ::Twilio::REST::Version # @return [Twilio::REST::FlexApi::V2::FlexUserContext] if flexUserSid was passed. # @return [Twilio::REST::FlexApi::V2::FlexUserList] # - # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2.rb#51 + # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2.rb#33 def flex_user(instance_sid = T.unsafe(nil), flex_user_sid = T.unsafe(nil)); end # Provide a user friendly representation @@ -52807,7 +52893,7 @@ class Twilio::REST::FlexApi::V2::FlexUserPage < ::Twilio::REST::Page def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#106 +# source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#109 class Twilio::REST::FlexApi::V2::WebChannelsInstance < ::Twilio::REST::InstanceResource # Initialize the WebChannelsInstance # @@ -52819,27 +52905,27 @@ class Twilio::REST::FlexApi::V2::WebChannelsInstance < ::Twilio::REST::InstanceR # @param sid [String] The SID of the Call resource to fetch. # @return [WebChannelsInstance] WebChannelsInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#116 + # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#119 def initialize(version, payload); end # @return [String] The unique string representing the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) created. # - # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#129 + # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#132 def conversation_sid; end # @return [String] The unique string representing the User created and should be authorized to participate in the Conversation. For more details, see [User Identity & Access Tokens](https://www.twilio.com/docs/conversations/identity). # - # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#135 + # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#138 def identity; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#147 + # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#150 def inspect; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#141 + # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#144 def to_s; end end @@ -52859,19 +52945,20 @@ class Twilio::REST::FlexApi::V2::WebChannelsList < ::Twilio::REST::ListResource # @param chat_friendly_name [String] The Conversation's friendly name. See the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) for an example. # @param customer_friendly_name [String] The Conversation participant's friendly name. See the [Conversation Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) for an example. # @param pre_engagement_data [String] The pre-engagement data. + # @param identity [String] The Identity of the guest user. See the [Conversation User Resource](https://www.twilio.com/docs/conversations/api/user-resource) for an example. # @param ui_version [String] The Ui-Version HTTP request header # @return [WebChannelsInstance] Created WebChannelsInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#41 - def create(address_sid: T.unsafe(nil), chat_friendly_name: T.unsafe(nil), customer_friendly_name: T.unsafe(nil), pre_engagement_data: T.unsafe(nil), ui_version: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#42 + def create(address_sid: T.unsafe(nil), chat_friendly_name: T.unsafe(nil), customer_friendly_name: T.unsafe(nil), pre_engagement_data: T.unsafe(nil), identity: T.unsafe(nil), ui_version: T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#73 + # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#76 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#78 +# source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#81 class Twilio::REST::FlexApi::V2::WebChannelsPage < ::Twilio::REST::Page # Initialize the WebChannelsPage # @@ -52880,7 +52967,7 @@ class Twilio::REST::FlexApi::V2::WebChannelsPage < ::Twilio::REST::Page # @param solution [Hash] Path solution for the resource # @return [WebChannelsPage] WebChannelsPage # - # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#85 + # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#88 def initialize(version, response, solution); end # Build an instance of WebChannelsInstance @@ -52888,12 +52975,12 @@ class Twilio::REST::FlexApi::V2::WebChannelsPage < ::Twilio::REST::Page # @param payload [Hash] Payload response from the API # @return [WebChannelsInstance] WebChannelsInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#96 + # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#99 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#102 + # source://twilio-ruby//lib/twilio-ruby/rest/flex_api/v2/web_channels.rb#105 def to_s; end end @@ -53366,32 +53453,37 @@ class Twilio::REST::Iam::V1::GetApiKeysInstance < ::Twilio::REST::InstanceResour # @return [Time] The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/get_api_keys.rb#200 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/get_api_keys.rb#201 def date_created; end # @return [Time] The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/get_api_keys.rb#206 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/get_api_keys.rb#207 def date_updated; end + # @return [Array] + # + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/get_api_keys.rb#213 + def flags; end + # @return [String] The string that you assigned to describe the resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/get_api_keys.rb#194 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/get_api_keys.rb#195 def friendly_name; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/get_api_keys.rb#218 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/get_api_keys.rb#225 def inspect; end # @return [String] The unique string that we created to identify the Key resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/get_api_keys.rb#188 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/get_api_keys.rb#189 def sid; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/get_api_keys.rb#212 + # source://twilio-ruby//lib/twilio-ruby/rest/iam/v1/get_api_keys.rb#219 def to_s; end end @@ -54778,7 +54870,7 @@ class Twilio::REST::Insights::V1::CallPage < ::Twilio::REST::Page def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#349 +# source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#373 class Twilio::REST::Insights::V1::CallSummariesInstance < ::Twilio::REST::InstanceResource # Initialize the CallSummariesInstance # @@ -54790,132 +54882,132 @@ class Twilio::REST::Insights::V1::CallSummariesInstance < ::Twilio::REST::Instan # @param sid [String] The SID of the Call resource to fetch. # @return [CallSummariesInstance] CallSummariesInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#359 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#383 def initialize(version, payload); end # @return [String] The unique SID identifier of the Account. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#393 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#417 def account_sid; end # @return [Hash] # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#525 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#549 def annotation; end # @return [AnsweredBy] # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#405 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#429 def answered_by; end # @return [Hash] Attributes capturing call-flow-specific details. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#507 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#531 def attributes; end # @return [String] The unique SID identifier of the Call. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#399 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#423 def call_sid; end # @return [CallState] # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#417 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#441 def call_state; end # @return [CallType] # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#411 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#435 def call_type; end # @return [Hash] Contains metrics and properties for the Twilio media gateway of a PSTN call. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#471 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#495 def carrier_edge; end # @return [Hash] Contains metrics and properties for the Twilio media gateway of a Client call. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#477 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#501 def client_edge; end # @return [String] Duration between when the call was answered and when it ended # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#453 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#477 def connect_duration; end # @return [Time] The time at which the Call was created, given in ISO 8601 format. Can be different from `start_time` in the event of queueing due to CPS # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#429 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#453 def created_time; end # @return [String] Duration between when the call was initiated and the call was ended # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#447 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#471 def duration; end # @return [Time] The time at which the Call was ended, given in ISO 8601 format. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#441 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#465 def end_time; end # @return [Hash] The calling party. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#459 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#483 def from; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#537 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#561 def inspect; end # @return [ProcessingState] # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#423 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#447 def processing_state; end # @return [Hash] Contains edge-agnostic call-level details. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#513 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#537 def properties; end # @return [Hash] Contains metrics and properties for the SDK sensor library for Client calls. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#483 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#507 def sdk_edge; end # @return [Hash] Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#489 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#513 def sip_edge; end # @return [Time] The time at which the Call was started, given in ISO 8601 format. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#435 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#459 def start_time; end # @return [Array] Tags applied to calls by Voice Insights analysis indicating a condition that could result in subjective degradation of the call quality. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#495 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#519 def tags; end # @return [Hash] The called party. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#465 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#489 def to; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#531 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#555 def to_s; end # @return [Hash] Contains trusted communications details including Branded Call and verified caller ID. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#519 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#543 def trust; end # @return [String] The URL of this resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#501 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#525 def url; end end @@ -54933,7 +55025,7 @@ class Twilio::REST::Insights::V1::CallSummariesList < ::Twilio::REST::ListResour # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#204 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#220 def each; end # Retrieve a single page of CallSummariesInstance records from the API. @@ -54942,7 +55034,7 @@ class Twilio::REST::Insights::V1::CallSummariesList < ::Twilio::REST::ListResour # @param target_url [String] API-generated URL for the requested results page # @return [Page] Page of CallSummariesInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#305 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#329 def get_page(target_url); end # Lists CallSummariesInstance records from the API as a list. @@ -54975,6 +55067,10 @@ class Twilio::REST::Insights::V1::CallSummariesList < ::Twilio::REST::ListResour # @param branded_enabled [Boolean] A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false' # @param voice_integrity_enabled [Boolean] A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false' # @param branded_bundle_sid [String] A unique SID identifier of the Branded Call. + # @param branded_logo [Boolean] Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present). + # @param branded_type [String] Indicates whether the Branded Call is in_band vs out_of_band. + # @param branded_use_case [String] Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling. + # @param branded_call_reason [String] Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call. # @param voice_integrity_bundle_sid [String] A unique SID identifier of the Voice Integrity Profile. # @param voice_integrity_use_case [String] A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'. # @param business_profile_identity [String] A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'. @@ -54989,8 +55085,8 @@ class Twilio::REST::Insights::V1::CallSummariesList < ::Twilio::REST::ListResour # efficient page size, i.e. min(limit, 1000) # @return [Array] Array of up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#77 - def list(from: T.unsafe(nil), to: T.unsafe(nil), from_carrier: T.unsafe(nil), to_carrier: T.unsafe(nil), from_country_code: T.unsafe(nil), to_country_code: T.unsafe(nil), verified_caller: T.unsafe(nil), has_tag: T.unsafe(nil), start_time: T.unsafe(nil), end_time: T.unsafe(nil), call_type: T.unsafe(nil), call_state: T.unsafe(nil), direction: T.unsafe(nil), processing_state: T.unsafe(nil), sort_by: T.unsafe(nil), subaccount: T.unsafe(nil), abnormal_session: T.unsafe(nil), answered_by: T.unsafe(nil), answered_by_annotation: T.unsafe(nil), connectivity_issue_annotation: T.unsafe(nil), quality_issue_annotation: T.unsafe(nil), spam_annotation: T.unsafe(nil), call_score_annotation: T.unsafe(nil), branded_enabled: T.unsafe(nil), voice_integrity_enabled: T.unsafe(nil), branded_bundle_sid: T.unsafe(nil), voice_integrity_bundle_sid: T.unsafe(nil), voice_integrity_use_case: T.unsafe(nil), business_profile_identity: T.unsafe(nil), business_profile_industry: T.unsafe(nil), business_profile_bundle_sid: T.unsafe(nil), business_profile_type: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#81 + def list(from: T.unsafe(nil), to: T.unsafe(nil), from_carrier: T.unsafe(nil), to_carrier: T.unsafe(nil), from_country_code: T.unsafe(nil), to_country_code: T.unsafe(nil), verified_caller: T.unsafe(nil), has_tag: T.unsafe(nil), start_time: T.unsafe(nil), end_time: T.unsafe(nil), call_type: T.unsafe(nil), call_state: T.unsafe(nil), direction: T.unsafe(nil), processing_state: T.unsafe(nil), sort_by: T.unsafe(nil), subaccount: T.unsafe(nil), abnormal_session: T.unsafe(nil), answered_by: T.unsafe(nil), answered_by_annotation: T.unsafe(nil), connectivity_issue_annotation: T.unsafe(nil), quality_issue_annotation: T.unsafe(nil), spam_annotation: T.unsafe(nil), call_score_annotation: T.unsafe(nil), branded_enabled: T.unsafe(nil), voice_integrity_enabled: T.unsafe(nil), branded_bundle_sid: T.unsafe(nil), branded_logo: T.unsafe(nil), branded_type: T.unsafe(nil), branded_use_case: T.unsafe(nil), branded_call_reason: T.unsafe(nil), voice_integrity_bundle_sid: T.unsafe(nil), voice_integrity_use_case: T.unsafe(nil), business_profile_identity: T.unsafe(nil), business_profile_industry: T.unsafe(nil), business_profile_bundle_sid: T.unsafe(nil), business_profile_type: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Retrieve a single page of CallSummariesInstance records from the API. # Request is executed immediately. @@ -55021,6 +55117,10 @@ class Twilio::REST::Insights::V1::CallSummariesList < ::Twilio::REST::ListResour # @param branded_enabled [Boolean] A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false' # @param voice_integrity_enabled [Boolean] A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false' # @param branded_bundle_sid [String] A unique SID identifier of the Branded Call. + # @param branded_logo [Boolean] Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present). + # @param branded_type [String] Indicates whether the Branded Call is in_band vs out_of_band. + # @param branded_use_case [String] Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling. + # @param branded_call_reason [String] Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call. # @param voice_integrity_bundle_sid [String] A unique SID identifier of the Voice Integrity Profile. # @param voice_integrity_use_case [String] A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'. # @param business_profile_identity [String] A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'. @@ -55032,8 +55132,8 @@ class Twilio::REST::Insights::V1::CallSummariesList < ::Twilio::REST::ListResour # @param page_size [Integer] Number of records to return, defaults to 50 # @return [Page] Page of CallSummariesInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#253 - def page(from: T.unsafe(nil), to: T.unsafe(nil), from_carrier: T.unsafe(nil), to_carrier: T.unsafe(nil), from_country_code: T.unsafe(nil), to_country_code: T.unsafe(nil), verified_caller: T.unsafe(nil), has_tag: T.unsafe(nil), start_time: T.unsafe(nil), end_time: T.unsafe(nil), call_type: T.unsafe(nil), call_state: T.unsafe(nil), direction: T.unsafe(nil), processing_state: T.unsafe(nil), sort_by: T.unsafe(nil), subaccount: T.unsafe(nil), abnormal_session: T.unsafe(nil), answered_by: T.unsafe(nil), answered_by_annotation: T.unsafe(nil), connectivity_issue_annotation: T.unsafe(nil), quality_issue_annotation: T.unsafe(nil), spam_annotation: T.unsafe(nil), call_score_annotation: T.unsafe(nil), branded_enabled: T.unsafe(nil), voice_integrity_enabled: T.unsafe(nil), branded_bundle_sid: T.unsafe(nil), voice_integrity_bundle_sid: T.unsafe(nil), voice_integrity_use_case: T.unsafe(nil), business_profile_identity: T.unsafe(nil), business_profile_industry: T.unsafe(nil), business_profile_bundle_sid: T.unsafe(nil), business_profile_type: T.unsafe(nil), page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#273 + def page(from: T.unsafe(nil), to: T.unsafe(nil), from_carrier: T.unsafe(nil), to_carrier: T.unsafe(nil), from_country_code: T.unsafe(nil), to_country_code: T.unsafe(nil), verified_caller: T.unsafe(nil), has_tag: T.unsafe(nil), start_time: T.unsafe(nil), end_time: T.unsafe(nil), call_type: T.unsafe(nil), call_state: T.unsafe(nil), direction: T.unsafe(nil), processing_state: T.unsafe(nil), sort_by: T.unsafe(nil), subaccount: T.unsafe(nil), abnormal_session: T.unsafe(nil), answered_by: T.unsafe(nil), answered_by_annotation: T.unsafe(nil), connectivity_issue_annotation: T.unsafe(nil), quality_issue_annotation: T.unsafe(nil), spam_annotation: T.unsafe(nil), call_score_annotation: T.unsafe(nil), branded_enabled: T.unsafe(nil), voice_integrity_enabled: T.unsafe(nil), branded_bundle_sid: T.unsafe(nil), branded_logo: T.unsafe(nil), branded_type: T.unsafe(nil), branded_use_case: T.unsafe(nil), branded_call_reason: T.unsafe(nil), voice_integrity_bundle_sid: T.unsafe(nil), voice_integrity_use_case: T.unsafe(nil), business_profile_identity: T.unsafe(nil), business_profile_industry: T.unsafe(nil), business_profile_bundle_sid: T.unsafe(nil), business_profile_type: T.unsafe(nil), page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end # Streams Instance records from the API as an Enumerable. # This operation lazily loads records as efficiently as possible until the limit @@ -55065,6 +55165,10 @@ class Twilio::REST::Insights::V1::CallSummariesList < ::Twilio::REST::ListResour # @param branded_enabled [Boolean] A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false' # @param voice_integrity_enabled [Boolean] A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false' # @param branded_bundle_sid [String] A unique SID identifier of the Branded Call. + # @param branded_logo [Boolean] Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present). + # @param branded_type [String] Indicates whether the Branded Call is in_band vs out_of_band. + # @param branded_use_case [String] Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling. + # @param branded_call_reason [String] Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call. # @param voice_integrity_bundle_sid [String] A unique SID identifier of the Voice Integrity Profile. # @param voice_integrity_use_case [String] A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'. # @param business_profile_identity [String] A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'. @@ -55079,16 +55183,16 @@ class Twilio::REST::Insights::V1::CallSummariesList < ::Twilio::REST::ListResour # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#159 - def stream(from: T.unsafe(nil), to: T.unsafe(nil), from_carrier: T.unsafe(nil), to_carrier: T.unsafe(nil), from_country_code: T.unsafe(nil), to_country_code: T.unsafe(nil), verified_caller: T.unsafe(nil), has_tag: T.unsafe(nil), start_time: T.unsafe(nil), end_time: T.unsafe(nil), call_type: T.unsafe(nil), call_state: T.unsafe(nil), direction: T.unsafe(nil), processing_state: T.unsafe(nil), sort_by: T.unsafe(nil), subaccount: T.unsafe(nil), abnormal_session: T.unsafe(nil), answered_by: T.unsafe(nil), answered_by_annotation: T.unsafe(nil), connectivity_issue_annotation: T.unsafe(nil), quality_issue_annotation: T.unsafe(nil), spam_annotation: T.unsafe(nil), call_score_annotation: T.unsafe(nil), branded_enabled: T.unsafe(nil), voice_integrity_enabled: T.unsafe(nil), branded_bundle_sid: T.unsafe(nil), voice_integrity_bundle_sid: T.unsafe(nil), voice_integrity_use_case: T.unsafe(nil), business_profile_identity: T.unsafe(nil), business_profile_industry: T.unsafe(nil), business_profile_bundle_sid: T.unsafe(nil), business_profile_type: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#171 + def stream(from: T.unsafe(nil), to: T.unsafe(nil), from_carrier: T.unsafe(nil), to_carrier: T.unsafe(nil), from_country_code: T.unsafe(nil), to_country_code: T.unsafe(nil), verified_caller: T.unsafe(nil), has_tag: T.unsafe(nil), start_time: T.unsafe(nil), end_time: T.unsafe(nil), call_type: T.unsafe(nil), call_state: T.unsafe(nil), direction: T.unsafe(nil), processing_state: T.unsafe(nil), sort_by: T.unsafe(nil), subaccount: T.unsafe(nil), abnormal_session: T.unsafe(nil), answered_by: T.unsafe(nil), answered_by_annotation: T.unsafe(nil), connectivity_issue_annotation: T.unsafe(nil), quality_issue_annotation: T.unsafe(nil), spam_annotation: T.unsafe(nil), call_score_annotation: T.unsafe(nil), branded_enabled: T.unsafe(nil), voice_integrity_enabled: T.unsafe(nil), branded_bundle_sid: T.unsafe(nil), branded_logo: T.unsafe(nil), branded_type: T.unsafe(nil), branded_use_case: T.unsafe(nil), branded_call_reason: T.unsafe(nil), voice_integrity_bundle_sid: T.unsafe(nil), voice_integrity_use_case: T.unsafe(nil), business_profile_identity: T.unsafe(nil), business_profile_industry: T.unsafe(nil), business_profile_bundle_sid: T.unsafe(nil), business_profile_type: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#316 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#340 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#321 +# source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#345 class Twilio::REST::Insights::V1::CallSummariesPage < ::Twilio::REST::Page # Initialize the CallSummariesPage # @@ -55097,7 +55201,7 @@ class Twilio::REST::Insights::V1::CallSummariesPage < ::Twilio::REST::Page # @param solution [Hash] Path solution for the resource # @return [CallSummariesPage] CallSummariesPage # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#328 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#352 def initialize(version, response, solution); end # Build an instance of CallSummariesInstance @@ -55105,12 +55209,12 @@ class Twilio::REST::Insights::V1::CallSummariesPage < ::Twilio::REST::Page # @param payload [Hash] Payload response from the API # @return [CallSummariesInstance] CallSummariesInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#339 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#363 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#345 + # source://twilio-ruby//lib/twilio-ruby/rest/insights/v1/call_summaries.rb#369 def to_s; end end @@ -56559,7 +56663,7 @@ class Twilio::REST::Intelligence::V2 < ::Twilio::REST::Version # @return [Twilio::REST::Intelligence::V2::OperatorAttachmentContext] if operatorSid was passed. # @return [Twilio::REST::Intelligence::V2::OperatorAttachmentList] # - # source://twilio-ruby//lib/twilio-ruby/rest/intelligence/v2.rb#85 + # source://twilio-ruby//lib/twilio-ruby/rest/intelligence/v2.rb#67 def operator_attachment(service_sid = T.unsafe(nil), operator_sid = T.unsafe(nil)); end # @param service_sid [String] The unique SID identifier of the Service. @@ -65312,1206 +65416,740 @@ class Twilio::REST::IpMessagingBase < ::Twilio::REST::Domain def v2; end end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge.rb#3 -class Twilio::REST::Knowledge < ::Twilio::REST::KnowledgeBase; end +# source://twilio-ruby//lib/twilio-ruby/framework/rest/resource.rb#5 +class Twilio::REST::ListResource + # @return [ListResource] a new instance of ListResource + # + # source://twilio-ruby//lib/twilio-ruby/framework/rest/resource.rb#6 + def initialize(version); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups.rb#3 +class Twilio::REST::Lookups < ::Twilio::REST::LookupsBase + # @param phone_number [String] The phone number in + # {E.164}[https://www.twilio.com/docs/glossary/what-e164] format, which consists + # of a + followed by the country code and subscriber number. + # @return [Twilio::REST::Lookups::V1::PhoneNumberInstance] if phone_number was passed. + # @return [Twilio::REST::Lookups::V1::PhoneNumberList] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups.rb#10 + def phone_numbers(phone_number = T.unsafe(nil)); end +end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1.rb#18 -class Twilio::REST::Knowledge::V1 < ::Twilio::REST::Version - # Initialize the V1 version of Knowledge +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1.rb#18 +class Twilio::REST::Lookups::V1 < ::Twilio::REST::Version + # Initialize the V1 version of Lookups # # @return [V1] a new instance of V1 # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1.rb#21 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1.rb#21 def initialize(domain); end - # @param id [String] - # @return [Twilio::REST::Knowledge::V1::KnowledgeContext] if id was passed. - # @return [Twilio::REST::Knowledge::V1::KnowledgeList] + # @param phone_number [String] The phone number to lookup in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + # @return [Twilio::REST::Lookups::V1::PhoneNumberContext] if phoneNumber was passed. + # @return [Twilio::REST::Lookups::V1::PhoneNumberList] # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1.rb#31 - def knowledge(id = T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1.rb#31 + def phone_numbers(phone_number = T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1.rb#43 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1.rb#43 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#20 -class Twilio::REST::Knowledge::V1::Knowledge < ::Twilio::REST::InstanceContext; end +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#43 +class Twilio::REST::Lookups::V1::PhoneNumberContext < ::Twilio::REST::InstanceContext + # Initialize the PhoneNumberContext + # + # @param version [Version] Version that contains the resource + # @param phone_number [String] The phone number to lookup in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + # @return [PhoneNumberContext] PhoneNumberContext + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#49 + def initialize(version, phone_number); end + + # Fetch the PhoneNumberInstance + # + # @param country_code [String] The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format. + # @param type [Array[String]] The type of information to return. Can be: `carrier` or `caller-name`. The default is null. To retrieve both types of information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value. + # @param add_ons [Array[String]] The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons). + # @param add_ons_data [Hash] Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on. + # @return [PhoneNumberInstance] Fetched PhoneNumberInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#65 + def fetch(country_code: T.unsafe(nil), type: T.unsafe(nil), add_ons: T.unsafe(nil), add_ons_data: T.unsafe(nil)); end + + # Provide a detailed, user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#102 + def inspect; end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#95 + def to_s; end +end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#159 -class Twilio::REST::Knowledge::V1::Knowledge::ChunkInstance < ::Twilio::REST::InstanceResource - # Initialize the ChunkInstance +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#136 +class Twilio::REST::Lookups::V1::PhoneNumberInstance < ::Twilio::REST::InstanceResource + # Initialize the PhoneNumberInstance # # @param version [Version] Version that contains the resource # @param payload [Hash] payload that contains response from Twilio # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Chunk + # {Account}[https://www.twilio.com/docs/iam/api/account] that created this PhoneNumber # resource. # @param sid [String] The SID of the Call resource to fetch. - # @return [ChunkInstance] ChunkInstance + # @return [PhoneNumberInstance] PhoneNumberInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#169 - def initialize(version, payload, id: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#146 + def initialize(version, payload, phone_number: T.unsafe(nil)); end - # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource. + # @return [Hash] A JSON string with the results of the Add-ons you specified in the `add_ons` parameters. For the format of the object, see [Using Add-ons](https://www.twilio.com/docs/add-ons). # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#185 - def account_sid; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#208 + def add_ons; end - # @return [String] The chunk content. + # @return [Hash] The name of the phone number's owner. If `null`, that information was not available. # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#191 - def content; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#178 + def caller_name; end - # @return [Time] The date and time in GMT when the Chunk was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + # @return [Hash] The telecom company that provides the phone number. # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#203 - def date_created; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#202 + def carrier; end - # @return [Time] The date and time in GMT when the Chunk was updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + # Generate an instance context for the instance, the context is capable of + # performing various actions. All instance actions are proxied to the context # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#209 - def date_updated; end + # @return [PhoneNumberContext] CallContext for this CallInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#169 + def context; end + + # @return [String] The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) for the phone number. + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#184 + def country_code; end + + # Fetch the PhoneNumberInstance + # + # @param country_code [String] The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format. + # @param type [Array[String]] The type of information to return. Can be: `carrier` or `caller-name`. The default is null. To retrieve both types of information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value. + # @param add_ons [Array[String]] The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons). + # @param add_ons_data [Hash] Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on. + # @return [PhoneNumberInstance] Fetched PhoneNumberInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#225 + def fetch(country_code: T.unsafe(nil), type: T.unsafe(nil), add_ons: T.unsafe(nil), add_ons_data: T.unsafe(nil)); end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#221 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#249 def inspect; end - # @return [Hash] The metadata of the chunk. + # @return [String] The phone number, in national format. # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#197 - def metadata; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#196 + def national_format; end + + # @return [String] The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#190 + def phone_number; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#215 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#242 def to_s; end + + # @return [String] The absolute URL of the resource. + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#214 + def url; end end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#22 -class Twilio::REST::Knowledge::V1::Knowledge::ChunkList < ::Twilio::REST::ListResource - # Initialize the ChunkList +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#20 +class Twilio::REST::Lookups::V1::PhoneNumberList < ::Twilio::REST::ListResource + # Initialize the PhoneNumberList # # @param version [Version] Version that contains the resource - # @return [ChunkList] ChunkList + # @return [PhoneNumberList] PhoneNumberList # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#28 - def initialize(version, id: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#26 + def initialize(version); end - # When passed a block, yields ChunkInstance records from the API. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. + # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#78 - def each; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#37 + def to_s; end +end - # Retrieve a single page of ChunkInstance records from the API. - # Request is executed immediately. +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#108 +class Twilio::REST::Lookups::V1::PhoneNumberPage < ::Twilio::REST::Page + # Initialize the PhoneNumberPage # - # @param target_url [String] API-generated URL for the requested results page - # @return [Page] Page of ChunkInstance + # @param version [Version] Version that contains the resource + # @param response [Response] Response from the API + # @param solution [Hash] Path solution for the resource + # @return [PhoneNumberPage] PhoneNumberPage # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#115 - def get_page(target_url); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#115 + def initialize(version, response, solution); end - # Lists ChunkInstance records from the API as a list. - # Unlike stream(), this operation is eager and will load `limit` records into - # memory before returning. + # Build an instance of PhoneNumberInstance # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Array] Array of up to limit results + # @param payload [Hash] Payload response from the API + # @return [PhoneNumberInstance] PhoneNumberInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#47 - def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#126 + def get_instance(payload); end - # Retrieve a single page of ChunkInstance records from the API. - # Request is executed immediately. - # - # @param page_token [String] PageToken provided by the API - # @param page_number [Integer] Page Number, this value is simply for client state - # @param page_size [Integer] Number of records to return, defaults to 50 - # @return [Page] Page of ChunkInstance + # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#95 - def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#132 + def to_s; end +end - # Streams Instance records from the API as an Enumerable. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2.rb#18 +class Twilio::REST::Lookups::V2 < ::Twilio::REST::Version + # Initialize the V2 version of Lookups # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Enumerable] Enumerable that will yield up to limit results + # @return [V2] a new instance of V2 # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#65 - def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2.rb#21 + def initialize(domain); end - # Provide a user friendly representation + # @param field [String] bucket name + # @param bucket [String] bucket name + # @return [Twilio::REST::Lookups::V2::BucketContext] if bucket was passed. + # @return [Twilio::REST::Lookups::V2::BucketList] # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#126 - def to_s; end -end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2.rb#36 + def bucket(field = T.unsafe(nil), bucket = T.unsafe(nil)); end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#131 -class Twilio::REST::Knowledge::V1::Knowledge::ChunkPage < ::Twilio::REST::Page - # Initialize the ChunkPage + # @param field [String] + # @param phone_number [String] + # @return [Twilio::REST::Lookups::V2::LookupOverrideContext] if phoneNumber was passed. + # @return [Twilio::REST::Lookups::V2::LookupOverrideList] # - # @param version [Version] Version that contains the resource - # @param response [Response] Response from the API - # @param solution [Hash] Path solution for the resource - # @return [ChunkPage] ChunkPage + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2.rb#72 + def lookup_overrides(field = T.unsafe(nil), phone_number = T.unsafe(nil)); end + + # @param phone_number [String] The phone number to lookup in E.164 or national format. Default country code is +1 (North America). + # @return [Twilio::REST::Lookups::V2::PhoneNumberContext] if phoneNumber was passed. + # @return [Twilio::REST::Lookups::V2::PhoneNumberList] # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#138 - def initialize(version, response, solution); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2.rb#107 + def phone_numbers(phone_number = T.unsafe(nil)); end - # Build an instance of ChunkInstance + # @return [Twilio::REST::Lookups::V2::QueryList] # - # @param payload [Hash] Payload response from the API - # @return [ChunkInstance] ChunkInstance + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2.rb#119 + def query; end + + # @return [Twilio::REST::Lookups::V2::RateLimitList] # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#149 - def get_instance(payload); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2.rb#124 + def rate_limits; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb#155 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2.rb#129 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#45 -class Twilio::REST::Knowledge::V1::Knowledge::KnowledgeStatusContext < ::Twilio::REST::InstanceContext - # Initialize the KnowledgeStatusContext +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#60 +class Twilio::REST::Lookups::V2::BucketContext < ::Twilio::REST::InstanceContext + # Initialize the BucketContext # # @param version [Version] Version that contains the resource - # @param id [String] the Knowledge ID. - # @return [KnowledgeStatusContext] KnowledgeStatusContext + # @param field [String] field name + # @param bucket [String] bucket name + # @return [BucketContext] BucketContext # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#51 - def initialize(version, id); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#67 + def initialize(version, field, bucket); end - # Fetch the KnowledgeStatusInstance + # Delete the BucketInstance # - # @return [KnowledgeStatusInstance] Fetched KnowledgeStatusInstance + # @return [Boolean] True if delete succeeds, false otherwise + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#79 + def delete; end + + # Fetch the BucketInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#63 + # @return [BucketInstance] Fetched BucketInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#91 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#89 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#140 def inspect; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#82 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#133 def to_s; end + + # Update the BucketInstance + # + # @param rate_limit_request [RateLimitRequest] + # @return [BucketInstance] Updated BucketInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#112 + def update(rate_limit_request: T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#123 -class Twilio::REST::Knowledge::V1::Knowledge::KnowledgeStatusInstance < ::Twilio::REST::InstanceResource - # Initialize the KnowledgeStatusInstance +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#174 +class Twilio::REST::Lookups::V2::BucketInstance < ::Twilio::REST::InstanceResource + # Initialize the BucketInstance # # @param version [Version] Version that contains the resource # @param payload [Hash] payload that contains response from Twilio # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this KnowledgeStatus + # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Bucket # resource. # @param sid [String] The SID of the Call resource to fetch. - # @return [KnowledgeStatusInstance] KnowledgeStatusInstance + # @return [BucketInstance] BucketInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#133 - def initialize(version, payload, id: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#184 + def initialize(version, payload, field: T.unsafe(nil), bucket: T.unsafe(nil)); end - # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource. + # @return [String] Name of the bucket # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#162 - def account_sid; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#254 + def bucket; end + + # @return [String] Twilio-specific error code + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#218 + def code; end # Generate an instance context for the instance, the context is capable of # performing various actions. All instance actions are proxied to the context # - # @return [KnowledgeStatusContext] CallContext for this CallInstance + # @return [BucketContext] CallContext for this CallInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#153 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#209 def context; end - # @return [Time] The date and time in GMT when the Knowledge was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + # Delete the BucketInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#180 - def date_updated; end + # @return [Boolean] True if delete succeeds, false otherwise + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#273 + def delete; end - # Fetch the KnowledgeStatusInstance + # Fetch the BucketInstance # - # @return [KnowledgeStatusInstance] Fetched KnowledgeStatusInstance + # @return [BucketInstance] Fetched BucketInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#187 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#281 def fetch; end + # @return [String] Limit of requests for the bucket + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#242 + def field; end + # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#201 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#306 def inspect; end - # @return [String] The last status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED') + # @return [String] Limit of requests for the bucket # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#174 - def last_status; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#248 + def limit; end - # @return [String] The status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED') + # @return [String] Error message + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#224 + def message; end + + # @return [String] Link to Error Code References + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#230 + def more_info; end + + # @return [String] Owner of the rule + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#260 + def owner; end + + # @return [String] HTTP response status code # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#168 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#236 def status; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#194 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#299 def to_s; end + + # @return [String] Time to live of the rule + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#266 + def ttl; end + + # Update the BucketInstance + # + # @param rate_limit_request [RateLimitRequest] + # @return [BucketInstance] Updated BucketInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#290 + def update(rate_limit_request: T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#22 -class Twilio::REST::Knowledge::V1::Knowledge::KnowledgeStatusList < ::Twilio::REST::ListResource - # Initialize the KnowledgeStatusList +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#20 +class Twilio::REST::Lookups::V2::BucketList < ::Twilio::REST::ListResource + # Initialize the BucketList # # @param version [Version] Version that contains the resource - # @return [KnowledgeStatusList] KnowledgeStatusList + # @return [BucketList] BucketList # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#28 - def initialize(version, id: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#43 + def initialize(version); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#39 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#54 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#95 -class Twilio::REST::Knowledge::V1::Knowledge::KnowledgeStatusPage < ::Twilio::REST::Page - # Initialize the KnowledgeStatusPage +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#22 +class Twilio::REST::Lookups::V2::BucketList::RateLimitRequest + # @return [RateLimitRequest] a new instance of RateLimitRequest + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#26 + def initialize(payload); end + + # @param : [limit] [String] Limit of requests for the bucket + # @param : [ttl] [String] Time to live of the rule + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#25 + def limit; end + + # @param : [limit] [String] Limit of requests for the bucket + # @param : [ttl] [String] Time to live of the rule + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#25 + def limit=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#30 + def to_json(options = T.unsafe(nil)); end + + # @param : [limit] [String] Limit of requests for the bucket + # @param : [ttl] [String] Time to live of the rule + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#25 + def ttl; end + + # @param : [limit] [String] Limit of requests for the bucket + # @param : [ttl] [String] Time to live of the rule + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#25 + def ttl=(_arg0); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#146 +class Twilio::REST::Lookups::V2::BucketPage < ::Twilio::REST::Page + # Initialize the BucketPage # # @param version [Version] Version that contains the resource # @param response [Response] Response from the API # @param solution [Hash] Path solution for the resource - # @return [KnowledgeStatusPage] KnowledgeStatusPage + # @return [BucketPage] BucketPage # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#102 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#153 def initialize(version, response, solution); end - # Build an instance of KnowledgeStatusInstance + # Build an instance of BucketInstance # # @param payload [Hash] Payload response from the API - # @return [KnowledgeStatusInstance] KnowledgeStatusInstance + # @return [BucketInstance] BucketInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#113 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#164 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb#119 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/bucket.rb#170 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#314 -class Twilio::REST::Knowledge::V1::KnowledgeContext < ::Twilio::REST::InstanceContext - # Initialize the KnowledgeContext +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#60 +class Twilio::REST::Lookups::V2::LookupOverrideContext < ::Twilio::REST::InstanceContext + # Initialize the LookupOverrideContext # # @param version [Version] Version that contains the resource - # @param id [String] - # @return [KnowledgeContext] KnowledgeContext + # @param field [String] + # @param phone_number [String] + # @return [LookupOverrideContext] LookupOverrideContext # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#320 - def initialize(version, id); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#67 + def initialize(version, field, phone_number); end - # Access the chunks + # Create the LookupOverrideInstance # - # @return [ChunkList] - # @return [ChunkContext] + # @param overrides_request [OverridesRequest] + # @return [LookupOverrideInstance] Created LookupOverrideInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#387 - def chunks; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#80 + def create(overrides_request: T.unsafe(nil)); end - # Delete the KnowledgeInstance + # Delete the LookupOverrideInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#334 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#101 def delete; end - # Fetch the KnowledgeInstance + # Fetch the LookupOverrideInstance # - # @return [KnowledgeInstance] Fetched KnowledgeInstance + # @return [LookupOverrideInstance] Fetched LookupOverrideInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#346 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#113 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#414 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#162 def inspect; end - # Access the knowledge_status - # - # @return [KnowledgeStatusList] - # @return [KnowledgeStatusContext] - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#398 - def knowledge_status; end - # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#407 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#155 def to_s; end - # Update the KnowledgeInstance + # Update the LookupOverrideInstance # - # @param knowledge_v1_service_update_knowledge_request [KnowledgeV1ServiceUpdateKnowledgeRequest] - # @return [KnowledgeInstance] Updated KnowledgeInstance + # @param overrides_request [OverridesRequest] + # @return [LookupOverrideInstance] Updated LookupOverrideInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#366 - def update(knowledge_v1_service_update_knowledge_request: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#134 + def update(overrides_request: T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#448 -class Twilio::REST::Knowledge::V1::KnowledgeInstance < ::Twilio::REST::InstanceResource - # Initialize the KnowledgeInstance +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#196 +class Twilio::REST::Lookups::V2::LookupOverrideInstance < ::Twilio::REST::InstanceResource + # Initialize the LookupOverrideInstance # # @param version [Version] Version that contains the resource # @param payload [Hash] payload that contains response from Twilio # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Knowledge + # {Account}[https://www.twilio.com/docs/iam/api/account] that created this LookupOverride # resource. # @param sid [String] The SID of the Call resource to fetch. - # @return [KnowledgeInstance] KnowledgeInstance + # @return [LookupOverrideInstance] LookupOverrideInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#458 - def initialize(version, payload, id: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#206 + def initialize(version, payload, field: T.unsafe(nil), phone_number: T.unsafe(nil)); end - # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource. + # @return [String] Name of the bucket # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#506 - def account_sid; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#318 + def bucket; end - # Access the chunks - # - # @return [chunks] chunks + # @return [String] Twilio-specific error code # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#588 - def chunks; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#282 + def code; end # Generate an instance context for the instance, the context is capable of # performing various actions. All instance actions are proxied to the context # - # @return [KnowledgeContext] CallContext for this CallInstance + # @return [LookupOverrideContext] CallContext for this CallInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#485 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#237 def context; end - # @return [Time] The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + # Create the LookupOverrideInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#548 - def date_created; end - - # @return [Time] The date and time in GMT when the Knowledge was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + # @param overrides_request [OverridesRequest] + # @return [LookupOverrideInstance] Created LookupOverrideInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#554 - def date_updated; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#338 + def create(overrides_request: T.unsafe(nil)); end - # Delete the KnowledgeInstance + # Delete the LookupOverrideInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#561 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#348 def delete; end - # @return [String] The type of knowledge source. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#494 - def description; end - - # @return [String] The embedding model to be used for the knowledge source. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#542 - def embedding_model; end - - # Fetch the KnowledgeInstance + # Fetch the LookupOverrideInstance # - # @return [KnowledgeInstance] Fetched KnowledgeInstance + # @return [LookupOverrideInstance] Fetched LookupOverrideInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#569 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#356 def fetch; end - # @return [String] The description of knowledge. + # @return [String] Limit of requests for the bucket # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#500 - def id; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#306 + def field; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#608 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#381 def inspect; end - # @return [Hash] The details of the knowledge source based on the type. + # @return [String] Limit of requests for the bucket # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#512 - def knowledge_source_details; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#312 + def limit; end - # Access the knowledge_status - # - # @return [knowledge_status] knowledge_status + # @return [String] Error message # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#595 - def knowledge_status; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#288 + def message; end - # @return [String] The name of the knowledge source. + # @return [String] Link to Error Code References # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#518 - def name; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#294 + def more_info; end - # @return [String] The status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED') + # @return [String] The original line type # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#524 - def status; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#252 + def original_line_type; end - # Provide a user friendly representation + # @return [String] The Account SID for the user who made the override # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#601 - def to_s; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#276 + def overridden_by_account_sid; end - # @return [String] The type of knowledge source ('Web', 'Database', 'Text', 'File') + # @return [String] The new line type after the override # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#530 - def type; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#258 + def overridden_line_type; end - # Update the KnowledgeInstance - # - # @param knowledge_v1_service_update_knowledge_request [KnowledgeV1ServiceUpdateKnowledgeRequest] - # @return [KnowledgeInstance] Updated KnowledgeInstance + # @return [String] The reason for the override # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#578 - def update(knowledge_v1_service_update_knowledge_request: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#264 + def override_reason; end - # @return [String] The url of the knowledge resource. + # @return [Time] # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#536 - def url; end -end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#270 + def override_timestamp; end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#20 -class Twilio::REST::Knowledge::V1::KnowledgeList < ::Twilio::REST::ListResource - # Initialize the KnowledgeList + # @return [String] Owner of the rule # - # @param version [Version] Version that contains the resource - # @return [KnowledgeList] KnowledgeList - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#190 - def initialize(version); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#324 + def owner; end - # Create the KnowledgeInstance - # - # @param knowledge_v1_service_create_knowledge_request [KnowledgeV1ServiceCreateKnowledgeRequest] - # @return [KnowledgeInstance] Created KnowledgeInstance + # @return [String] The phone number for which the override was created # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#201 - def create(knowledge_v1_service_create_knowledge_request: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#246 + def phone_number; end - # When passed a block, yields KnowledgeInstance records from the API. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. + # @return [String] HTTP response status code # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#260 - def each; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#300 + def status; end - # Retrieve a single page of KnowledgeInstance records from the API. - # Request is executed immediately. - # - # @param target_url [String] API-generated URL for the requested results page - # @return [Page] Page of KnowledgeInstance + # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#297 - def get_page(target_url); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#374 + def to_s; end - # Lists KnowledgeInstance records from the API as a list. - # Unlike stream(), this operation is eager and will load `limit` records into - # memory before returning. - # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Array] Array of up to limit results + # @return [String] Time to live of the rule # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#229 - def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#330 + def ttl; end - # Retrieve a single page of KnowledgeInstance records from the API. - # Request is executed immediately. + # Update the LookupOverrideInstance # - # @param page_token [String] PageToken provided by the API - # @param page_number [Integer] Page Number, this value is simply for client state - # @param page_size [Integer] Number of records to return, defaults to 50 - # @return [Page] Page of KnowledgeInstance + # @param overrides_request [OverridesRequest] + # @return [LookupOverrideInstance] Updated LookupOverrideInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#277 - def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#365 + def update(overrides_request: T.unsafe(nil)); end +end - # Streams Instance records from the API as an Enumerable. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#20 +class Twilio::REST::Lookups::V2::LookupOverrideList < ::Twilio::REST::ListResource + # Initialize the LookupOverrideList # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Enumerable] Enumerable that will yield up to limit results + # @param version [Version] Version that contains the resource + # @return [LookupOverrideList] LookupOverrideList # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#247 - def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#43 + def initialize(version); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#308 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#54 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#22 -class Twilio::REST::Knowledge::V1::KnowledgeList::KnowledgeV1ServiceCreateKnowledgeRequest - # @return [KnowledgeV1ServiceCreateKnowledgeRequest] a new instance of KnowledgeV1ServiceCreateKnowledgeRequest +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#22 +class Twilio::REST::Lookups::V2::LookupOverrideList::OverridesRequest + # @return [OverridesRequest] a new instance of OverridesRequest # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#112 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#26 def initialize(payload); end - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the tool. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The type of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. + # @param : [line_type] [String] The new line type to override the original line type + # @param : [reason] [String] The reason for the override # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#111 - def description; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#25 + def line_type; end - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the tool. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The type of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. + # @param : [line_type] [String] The new line type to override the original line type + # @param : [reason] [String] The reason for the override # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#111 - def description=(_arg0); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#25 + def line_type=(_arg0); end - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the tool. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The type of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. + # @param : [line_type] [String] The new line type to override the original line type + # @param : [reason] [String] The reason for the override # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#111 - def embedding_model; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#25 + def reason; end - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the tool. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The type of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. + # @param : [line_type] [String] The new line type to override the original line type + # @param : [reason] [String] The reason for the override # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#111 - def embedding_model=(_arg0); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#25 + def reason=(_arg0); end - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the tool. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The type of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#111 - def knowledge_source_details; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#30 + def to_json(options = T.unsafe(nil)); end +end - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the tool. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The type of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#168 +class Twilio::REST::Lookups::V2::LookupOverridePage < ::Twilio::REST::Page + # Initialize the LookupOverridePage # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#111 - def knowledge_source_details=(_arg0); end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the tool. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The type of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. + # @param version [Version] Version that contains the resource + # @param response [Response] Response from the API + # @param solution [Hash] Path solution for the resource + # @return [LookupOverridePage] LookupOverridePage # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#111 - def name; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#175 + def initialize(version, response, solution); end - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the tool. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The type of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#111 - def name=(_arg0); end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the tool. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The type of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#111 - def policy; end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the tool. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The type of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#111 - def policy=(_arg0); end - - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#120 - def to_json(options = T.unsafe(nil)); end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the tool. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The type of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#111 - def type; end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the tool. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The type of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#111 - def type=(_arg0); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#50 -class Twilio::REST::Knowledge::V1::KnowledgeList::KnowledgeV1ServiceCreatePolicyRequest - # @return [KnowledgeV1ServiceCreatePolicyRequest] a new instance of KnowledgeV1ServiceCreatePolicyRequest - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#139 - def initialize(payload); end - - # @param : [description] [String] The description of the policy. - # @param : [id] [String] The Policy ID. - # @param : [name] [String] The name of the policy. - # @param : [policy_details] [Hash] - # @param : [type] [String] The description of the policy. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#138 - def description; end - - # @param : [description] [String] The description of the policy. - # @param : [id] [String] The Policy ID. - # @param : [name] [String] The name of the policy. - # @param : [policy_details] [Hash] - # @param : [type] [String] The description of the policy. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#138 - def description=(_arg0); end - - # @param : [description] [String] The description of the policy. - # @param : [id] [String] The Policy ID. - # @param : [name] [String] The name of the policy. - # @param : [policy_details] [Hash] - # @param : [type] [String] The description of the policy. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#138 - def id; end - - # @param : [description] [String] The description of the policy. - # @param : [id] [String] The Policy ID. - # @param : [name] [String] The name of the policy. - # @param : [policy_details] [Hash] - # @param : [type] [String] The description of the policy. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#138 - def id=(_arg0); end - - # @param : [description] [String] The description of the policy. - # @param : [id] [String] The Policy ID. - # @param : [name] [String] The name of the policy. - # @param : [policy_details] [Hash] - # @param : [type] [String] The description of the policy. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#138 - def name; end - - # @param : [description] [String] The description of the policy. - # @param : [id] [String] The Policy ID. - # @param : [name] [String] The name of the policy. - # @param : [policy_details] [Hash] - # @param : [type] [String] The description of the policy. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#138 - def name=(_arg0); end - - # @param : [description] [String] The description of the policy. - # @param : [id] [String] The Policy ID. - # @param : [name] [String] The name of the policy. - # @param : [policy_details] [Hash] - # @param : [type] [String] The description of the policy. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#138 - def policy_details; end - - # @param : [description] [String] The description of the policy. - # @param : [id] [String] The Policy ID. - # @param : [name] [String] The name of the policy. - # @param : [policy_details] [Hash] - # @param : [type] [String] The description of the policy. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#138 - def policy_details=(_arg0); end - - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#146 - def to_json(options = T.unsafe(nil)); end - - # @param : [description] [String] The description of the policy. - # @param : [id] [String] The Policy ID. - # @param : [name] [String] The name of the policy. - # @param : [policy_details] [Hash] - # @param : [type] [String] The description of the policy. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#138 - def type; end - - # @param : [description] [String] The description of the policy. - # @param : [id] [String] The Policy ID. - # @param : [name] [String] The name of the policy. - # @param : [policy_details] [Hash] - # @param : [type] [String] The description of the policy. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#138 - def type=(_arg0); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#75 -class Twilio::REST::Knowledge::V1::KnowledgeList::KnowledgeV1ServiceUpdateKnowledgeRequest - # @return [KnowledgeV1ServiceUpdateKnowledgeRequest] a new instance of KnowledgeV1ServiceUpdateKnowledgeRequest - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#165 - def initialize(payload); end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the knowledge source. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The description of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#164 - def description; end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the knowledge source. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The description of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#164 - def description=(_arg0); end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the knowledge source. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The description of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#164 - def embedding_model; end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the knowledge source. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The description of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#164 - def embedding_model=(_arg0); end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the knowledge source. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The description of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#164 - def knowledge_source_details; end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the knowledge source. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The description of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#164 - def knowledge_source_details=(_arg0); end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the knowledge source. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The description of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#164 - def name; end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the knowledge source. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The description of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#164 - def name=(_arg0); end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the knowledge source. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The description of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#164 - def policy; end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the knowledge source. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The description of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#164 - def policy=(_arg0); end - - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#173 - def to_json(options = T.unsafe(nil)); end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the knowledge source. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The description of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#164 - def type; end - - # @param : [description] [String] The description of the knowledge source. - # @param : [knowledge_source_details] [Hash] The details of the knowledge source based on the type. - # @param : [name] [String] The name of the knowledge source. - # @param : [policy] [KnowledgeList.KnowledgeV1ServiceCreatePolicyRequest] - # @param : [type] [String] The description of the knowledge source. - # @param : [embedding_model] [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type. - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#164 - def type=(_arg0); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#420 -class Twilio::REST::Knowledge::V1::KnowledgePage < ::Twilio::REST::Page - # Initialize the KnowledgePage - # - # @param version [Version] Version that contains the resource - # @param response [Response] Response from the API - # @param solution [Hash] Path solution for the resource - # @return [KnowledgePage] KnowledgePage - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#427 - def initialize(version, response, solution); end - - # Build an instance of KnowledgeInstance - # - # @param payload [Hash] Payload response from the API - # @return [KnowledgeInstance] KnowledgeInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#438 - def get_instance(payload); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge/v1/knowledge.rb#444 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/knowledge_base.rb#13 -class Twilio::REST::KnowledgeBase < ::Twilio::REST::Domain - # Initialize knowledge domain - # - # @param twilio - The twilio client - # @return [KnowledgeBase] a new instance of KnowledgeBase - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge_base.rb#19 - def initialize(twilio); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge_base.rb#33 - def to_s; end - - # source://twilio-ruby//lib/twilio-ruby/rest/knowledge_base.rb#27 - def v1; end -end - -# source://twilio-ruby//lib/twilio-ruby/framework/rest/resource.rb#5 -class Twilio::REST::ListResource - # @return [ListResource] a new instance of ListResource - # - # source://twilio-ruby//lib/twilio-ruby/framework/rest/resource.rb#6 - def initialize(version); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/lookups.rb#3 -class Twilio::REST::Lookups < ::Twilio::REST::LookupsBase - # @param phone_number [String] The phone number in - # {E.164}[https://www.twilio.com/docs/glossary/what-e164] format, which consists - # of a + followed by the country code and subscriber number. - # @return [Twilio::REST::Lookups::V1::PhoneNumberInstance] if phone_number was passed. - # @return [Twilio::REST::Lookups::V1::PhoneNumberList] - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups.rb#10 - def phone_numbers(phone_number = T.unsafe(nil)); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1.rb#18 -class Twilio::REST::Lookups::V1 < ::Twilio::REST::Version - # Initialize the V1 version of Lookups - # - # @return [V1] a new instance of V1 - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1.rb#21 - def initialize(domain); end - - # @param phone_number [String] The phone number to lookup in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. - # @return [Twilio::REST::Lookups::V1::PhoneNumberContext] if phoneNumber was passed. - # @return [Twilio::REST::Lookups::V1::PhoneNumberList] - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1.rb#31 - def phone_numbers(phone_number = T.unsafe(nil)); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1.rb#43 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#43 -class Twilio::REST::Lookups::V1::PhoneNumberContext < ::Twilio::REST::InstanceContext - # Initialize the PhoneNumberContext - # - # @param version [Version] Version that contains the resource - # @param phone_number [String] The phone number to lookup in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. - # @return [PhoneNumberContext] PhoneNumberContext - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#49 - def initialize(version, phone_number); end - - # Fetch the PhoneNumberInstance - # - # @param country_code [String] The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format. - # @param type [Array[String]] The type of information to return. Can be: `carrier` or `caller-name`. The default is null. To retrieve both types of information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value. - # @param add_ons [Array[String]] The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons). - # @param add_ons_data [Hash] Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on. - # @return [PhoneNumberInstance] Fetched PhoneNumberInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#65 - def fetch(country_code: T.unsafe(nil), type: T.unsafe(nil), add_ons: T.unsafe(nil), add_ons_data: T.unsafe(nil)); end - - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#102 - def inspect; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#95 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#136 -class Twilio::REST::Lookups::V1::PhoneNumberInstance < ::Twilio::REST::InstanceResource - # Initialize the PhoneNumberInstance - # - # @param version [Version] Version that contains the resource - # @param payload [Hash] payload that contains response from Twilio - # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this PhoneNumber - # resource. - # @param sid [String] The SID of the Call resource to fetch. - # @return [PhoneNumberInstance] PhoneNumberInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#146 - def initialize(version, payload, phone_number: T.unsafe(nil)); end - - # @return [Hash] A JSON string with the results of the Add-ons you specified in the `add_ons` parameters. For the format of the object, see [Using Add-ons](https://www.twilio.com/docs/add-ons). - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#208 - def add_ons; end - - # @return [Hash] The name of the phone number's owner. If `null`, that information was not available. - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#178 - def caller_name; end - - # @return [Hash] The telecom company that provides the phone number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#202 - def carrier; end - - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context - # - # @return [PhoneNumberContext] CallContext for this CallInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#169 - def context; end - - # @return [String] The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) for the phone number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#184 - def country_code; end - - # Fetch the PhoneNumberInstance - # - # @param country_code [String] The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format. - # @param type [Array[String]] The type of information to return. Can be: `carrier` or `caller-name`. The default is null. To retrieve both types of information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value. - # @param add_ons [Array[String]] The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons). - # @param add_ons_data [Hash] Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on. - # @return [PhoneNumberInstance] Fetched PhoneNumberInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#225 - def fetch(country_code: T.unsafe(nil), type: T.unsafe(nil), add_ons: T.unsafe(nil), add_ons_data: T.unsafe(nil)); end - - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#249 - def inspect; end - - # @return [String] The phone number, in national format. - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#196 - def national_format; end - - # @return [String] The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#190 - def phone_number; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#242 - def to_s; end - - # @return [String] The absolute URL of the resource. - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#214 - def url; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#20 -class Twilio::REST::Lookups::V1::PhoneNumberList < ::Twilio::REST::ListResource - # Initialize the PhoneNumberList - # - # @param version [Version] Version that contains the resource - # @return [PhoneNumberList] PhoneNumberList - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#26 - def initialize(version); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#37 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#108 -class Twilio::REST::Lookups::V1::PhoneNumberPage < ::Twilio::REST::Page - # Initialize the PhoneNumberPage - # - # @param version [Version] Version that contains the resource - # @param response [Response] Response from the API - # @param solution [Hash] Path solution for the resource - # @return [PhoneNumberPage] PhoneNumberPage - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#115 - def initialize(version, response, solution); end - - # Build an instance of PhoneNumberInstance + # Build an instance of LookupOverrideInstance # # @param payload [Hash] Payload response from the API - # @return [PhoneNumberInstance] PhoneNumberInstance + # @return [LookupOverrideInstance] LookupOverrideInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#126 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#186 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v1/phone_number.rb#132 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2.rb#18 -class Twilio::REST::Lookups::V2 < ::Twilio::REST::Version - # Initialize the V2 version of Lookups - # - # @return [V2] a new instance of V2 - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2.rb#21 - def initialize(domain); end - - # @param phone_number [String] The phone number to lookup in E.164 or national format. Default country code is +1 (North America). - # @return [Twilio::REST::Lookups::V2::PhoneNumberContext] if phoneNumber was passed. - # @return [Twilio::REST::Lookups::V2::PhoneNumberList] - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2.rb#31 - def phone_numbers(phone_number = T.unsafe(nil)); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2.rb#43 + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/lookup_override.rb#192 def to_s; end end @@ -66742,43 +66380,1681 @@ class Twilio::REST::Lookups::V2::PhoneNumberPage < ::Twilio::REST::Page def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/lookups_base.rb#13 -class Twilio::REST::LookupsBase < ::Twilio::REST::Domain - # Initialize lookups domain +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#414 +class Twilio::REST::Lookups::V2::QueryInstance < ::Twilio::REST::InstanceResource + # Initialize the QueryInstance # - # @param twilio - The twilio client - # @return [LookupsBase] a new instance of LookupsBase + # @param version [Version] Version that contains the resource + # @param payload [Hash] payload that contains response from Twilio + # @param account_sid [String] The SID of the + # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Query + # resource. + # @param sid [String] The SID of the Call resource to fetch. + # @return [QueryInstance] QueryInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups_base.rb#19 - def initialize(twilio); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#424 + def initialize(version, payload); end - # Provide a user friendly representation + # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/lookups_base.rb#38 - def to_s; end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#448 + def inspect; end - # source://twilio-ruby//lib/twilio-ruby/rest/lookups_base.rb#28 - def v1; end + # @return [Array] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#436 + def phone_numbers; end - # source://twilio-ruby//lib/twilio-ruby/rest/lookups_base.rb#32 - def v2; end + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#442 + def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/marketplace.rb#3 -class Twilio::REST::Marketplace < ::Twilio::REST::MarketplaceBase; end - -# source://twilio-ruby//lib/twilio-ruby/rest/marketplace/v1.rb#18 -class Twilio::REST::Marketplace::V1 < ::Twilio::REST::Version - # Initialize the V1 version of Marketplace +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#20 +class Twilio::REST::Lookups::V2::QueryList < ::Twilio::REST::ListResource + # Initialize the QueryList # - # @return [V1] a new instance of V1 + # @param version [Version] Version that contains the resource + # @return [QueryList] QueryList # - # source://twilio-ruby//lib/twilio-ruby/rest/marketplace/v1.rb#21 - def initialize(domain); end + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#350 + def initialize(version); end - # @param sid [String] The SID of the AvailableAddOn resource to fetch. - # @return [Twilio::REST::Marketplace::V1::AvailableAddOnContext] if sid was passed. - # @return [Twilio::REST::Marketplace::V1::AvailableAddOnList] + # Create the QueryInstance + # + # @param lookup_request1 [LookupRequest1] + # @return [QueryInstance] Created QueryInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#361 + def create(lookup_request1: T.unsafe(nil)); end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#381 + def to_s; end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#22 +class Twilio::REST::Lookups::V2::QueryList::CallForwarding + # @return [CallForwarding] a new instance of CallForwarding + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#26 + def initialize(payload); end + + # @param : [call_forwarding_enabled] [Boolean] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#25 + def call_forwarding_enabled; end + + # @param : [call_forwarding_enabled] [Boolean] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#25 + def call_forwarding_enabled=(_arg0); end + + # @param : [call_forwarding_enabled] [Boolean] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#25 + def error_code; end + + # @param : [call_forwarding_enabled] [Boolean] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#25 + def error_code=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#30 + def to_json(options = T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#38 +class Twilio::REST::Lookups::V2::QueryList::CallerName + # @return [CallerName] a new instance of CallerName + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#43 + def initialize(payload); end + + # @param : [caller_name] [String] + # @param : [caller_type] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#42 + def caller_name; end + + # @param : [caller_name] [String] + # @param : [caller_type] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#42 + def caller_name=(_arg0); end + + # @param : [caller_name] [String] + # @param : [caller_type] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#42 + def caller_type; end + + # @param : [caller_name] [String] + # @param : [caller_type] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#42 + def caller_type=(_arg0); end + + # @param : [caller_name] [String] + # @param : [caller_type] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#42 + def error_code; end + + # @param : [caller_name] [String] + # @param : [caller_type] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#42 + def error_code=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#48 + def to_json(options = T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#57 +class Twilio::REST::Lookups::V2::QueryList::IdentityMatch + # @return [IdentityMatch] a new instance of IdentityMatch + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#71 + def initialize(payload); end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def address_line_match; end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def address_line_match=(_arg0); end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def city_match; end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def city_match=(_arg0); end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def country_code_match; end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def country_code_match=(_arg0); end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def date_of_birth_match; end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def date_of_birth_match=(_arg0); end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def error_code; end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def error_code=(_arg0); end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def error_message; end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def error_message=(_arg0); end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def first_name_match; end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def first_name_match=(_arg0); end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def last_name_match; end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def last_name_match=(_arg0); end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def national_id_match; end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def national_id_match=(_arg0); end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def postal_code_match; end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def postal_code_match=(_arg0); end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def state_match; end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def state_match=(_arg0); end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def summary_score; end + + # @param : [error_message] [String] + # @param : [last_name_match] [String] + # @param : [address_line_match] [String] + # @param : [city_match] [String] + # @param : [state_match] [String] + # @param : [postal_code_match] [String] + # @param : [country_code_match] [String] + # @param : [national_id_match] [String] + # @param : [date_of_birth_match] [String] + # @param : [summary_score] [Integer] + # @param : [error_code] [Integer] + # @param : [first_name_match] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#70 + def summary_score=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#85 + def to_json(options = T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#103 +class Twilio::REST::Lookups::V2::QueryList::IdentityMatchParameters + # @return [IdentityMatchParameters] a new instance of IdentityMatchParameters + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#115 + def initialize(payload); end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def address_country_code; end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def address_country_code=(_arg0); end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def address_line1; end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def address_line1=(_arg0); end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def address_line2; end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def address_line2=(_arg0); end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def city; end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def city=(_arg0); end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def date_of_birth; end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def date_of_birth=(_arg0); end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def first_name; end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def first_name=(_arg0); end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def last_name; end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def last_name=(_arg0); end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def national_id; end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def national_id=(_arg0); end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def postal_code; end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def postal_code=(_arg0); end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def state; end + + # @param : [date_of_birth] [String] + # @param : [last_name] [String] + # @param : [address_line1] [String] + # @param : [address_line2] [String] + # @param : [city] [String] + # @param : [state] [String] + # @param : [postal_code] [String] + # @param : [address_country_code] [String] + # @param : [national_id] [String] + # @param : [first_name] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#114 + def state=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#127 + def to_json(options = T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#143 +class Twilio::REST::Lookups::V2::QueryList::LastSimSwap + # @return [LastSimSwap] a new instance of LastSimSwap + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#148 + def initialize(payload); end + + # @param : [last_sim_swap_date] [Time] + # @param : [swapped_period] [String] + # @param : [swapped_in_period] [Boolean] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#147 + def last_sim_swap_date; end + + # @param : [last_sim_swap_date] [Time] + # @param : [swapped_period] [String] + # @param : [swapped_in_period] [Boolean] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#147 + def last_sim_swap_date=(_arg0); end + + # @param : [last_sim_swap_date] [Time] + # @param : [swapped_period] [String] + # @param : [swapped_in_period] [Boolean] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#147 + def swapped_in_period; end + + # @param : [last_sim_swap_date] [Time] + # @param : [swapped_period] [String] + # @param : [swapped_in_period] [Boolean] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#147 + def swapped_in_period=(_arg0); end + + # @param : [last_sim_swap_date] [Time] + # @param : [swapped_period] [String] + # @param : [swapped_in_period] [Boolean] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#147 + def swapped_period; end + + # @param : [last_sim_swap_date] [Time] + # @param : [swapped_period] [String] + # @param : [swapped_in_period] [Boolean] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#147 + def swapped_period=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#153 + def to_json(options = T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#162 +class Twilio::REST::Lookups::V2::QueryList::LineStatus + # @return [LineStatus] a new instance of LineStatus + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#166 + def initialize(payload); end + + # @param : [status] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#165 + def error_code; end + + # @param : [status] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#165 + def error_code=(_arg0); end + + # @param : [status] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#165 + def status; end + + # @param : [status] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#165 + def status=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#170 + def to_json(options = T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#178 +class Twilio::REST::Lookups::V2::QueryList::LineTypeIntelligence + # @return [LineTypeIntelligence] a new instance of LineTypeIntelligence + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#185 + def initialize(payload); end + + # @param : [type] [String] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#184 + def carrier_name; end + + # @param : [type] [String] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#184 + def carrier_name=(_arg0); end + + # @param : [type] [String] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#184 + def error_code; end + + # @param : [type] [String] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#184 + def error_code=(_arg0); end + + # @param : [type] [String] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#184 + def mobile_country_code; end + + # @param : [type] [String] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#184 + def mobile_country_code=(_arg0); end + + # @param : [type] [String] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#184 + def mobile_network_code; end + + # @param : [type] [String] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#184 + def mobile_network_code=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#192 + def to_json(options = T.unsafe(nil)); end + + # @param : [type] [String] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#184 + def type; end + + # @param : [type] [String] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#184 + def type=(_arg0); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#203 +class Twilio::REST::Lookups::V2::QueryList::LookupRequest1 + # @return [LookupRequest1] a new instance of LookupRequest1 + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#206 + def initialize(payload); end + + # @param : [phone_numbers] [Array] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#205 + def phone_numbers; end + + # @param : [phone_numbers] [Array] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#205 + def phone_numbers=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#209 + def to_json(options = T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#216 +class Twilio::REST::Lookups::V2::QueryList::LookupRequestWithCorId + # @return [LookupRequestWithCorId] a new instance of LookupRequestWithCorId + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#225 + def initialize(payload); end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def correlation_id; end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def correlation_id=(_arg0); end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def country_code; end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def country_code=(_arg0); end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def fields; end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def fields=(_arg0); end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def identity_match; end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def identity_match=(_arg0); end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def phone_number; end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def phone_number=(_arg0); end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def reassigned_number; end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def reassigned_number=(_arg0); end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def sms_pumping_risk; end + + # @param : [correlation_id] [String] Unique identifier used to match request with response + # @param : [phone_number] [String] + # @param : [fields] [Array] + # @param : [country_code] [String] + # @param : [identity_match] [QueryList.IdentityMatchParameters] + # @param : [reassigned_number] [QueryList.ReassignedNumberRequest] + # @param : [sms_pumping_risk] [QueryList.SmsPumpingRiskParameters] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#224 + def sms_pumping_risk=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#234 + def to_json(options = T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#247 +class Twilio::REST::Lookups::V2::QueryList::ReassignedNumberRequest + # @return [ReassignedNumberRequest] a new instance of ReassignedNumberRequest + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#250 + def initialize(payload); end + + # @param : [last_verified_date] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#249 + def last_verified_date; end + + # @param : [last_verified_date] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#249 + def last_verified_date=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#253 + def to_json(options = T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#260 +class Twilio::REST::Lookups::V2::QueryList::ReassignedNumberResponse + # @return [ReassignedNumberResponse] a new instance of ReassignedNumberResponse + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#265 + def initialize(payload); end + + # @param : [last_verified_date] [String] + # @param : [is_number_reassigned] [String] + # @param : [error_code] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#264 + def error_code; end + + # @param : [last_verified_date] [String] + # @param : [is_number_reassigned] [String] + # @param : [error_code] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#264 + def error_code=(_arg0); end + + # @param : [last_verified_date] [String] + # @param : [is_number_reassigned] [String] + # @param : [error_code] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#264 + def is_number_reassigned; end + + # @param : [last_verified_date] [String] + # @param : [is_number_reassigned] [String] + # @param : [error_code] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#264 + def is_number_reassigned=(_arg0); end + + # @param : [last_verified_date] [String] + # @param : [is_number_reassigned] [String] + # @param : [error_code] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#264 + def last_verified_date; end + + # @param : [last_verified_date] [String] + # @param : [is_number_reassigned] [String] + # @param : [error_code] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#264 + def last_verified_date=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#270 + def to_json(options = T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#279 +class Twilio::REST::Lookups::V2::QueryList::SimSwap + # @return [SimSwap] a new instance of SimSwap + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#286 + def initialize(payload); end + + # @param : [last_sim_swap] [LastSimSwap] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#285 + def carrier_name; end + + # @param : [last_sim_swap] [LastSimSwap] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#285 + def carrier_name=(_arg0); end + + # @param : [last_sim_swap] [LastSimSwap] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#285 + def error_code; end + + # @param : [last_sim_swap] [LastSimSwap] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#285 + def error_code=(_arg0); end + + # @param : [last_sim_swap] [LastSimSwap] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#285 + def last_sim_swap; end + + # @param : [last_sim_swap] [LastSimSwap] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#285 + def last_sim_swap=(_arg0); end + + # @param : [last_sim_swap] [LastSimSwap] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#285 + def mobile_country_code; end + + # @param : [last_sim_swap] [LastSimSwap] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#285 + def mobile_country_code=(_arg0); end + + # @param : [last_sim_swap] [LastSimSwap] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#285 + def mobile_network_code; end + + # @param : [last_sim_swap] [LastSimSwap] + # @param : [carrier_name] [String] + # @param : [mobile_country_code] [String] + # @param : [mobile_network_code] [String] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#285 + def mobile_network_code=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#293 + def to_json(options = T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#304 +class Twilio::REST::Lookups::V2::QueryList::SmsPumpingRisk + # @return [SmsPumpingRisk] a new instance of SmsPumpingRisk + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#312 + def initialize(payload); end + + # @param : [carrier_risk_category] [String] + # @param : [number_blocked] [Boolean] + # @param : [number_blocked_date] [Time] + # @param : [number_blocked_last_3_months] [Boolean] + # @param : [sms_pumping_risk_score] [Integer] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#311 + def carrier_risk_category; end + + # @param : [carrier_risk_category] [String] + # @param : [number_blocked] [Boolean] + # @param : [number_blocked_date] [Time] + # @param : [number_blocked_last_3_months] [Boolean] + # @param : [sms_pumping_risk_score] [Integer] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#311 + def carrier_risk_category=(_arg0); end + + # @param : [carrier_risk_category] [String] + # @param : [number_blocked] [Boolean] + # @param : [number_blocked_date] [Time] + # @param : [number_blocked_last_3_months] [Boolean] + # @param : [sms_pumping_risk_score] [Integer] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#311 + def error_code; end + + # @param : [carrier_risk_category] [String] + # @param : [number_blocked] [Boolean] + # @param : [number_blocked_date] [Time] + # @param : [number_blocked_last_3_months] [Boolean] + # @param : [sms_pumping_risk_score] [Integer] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#311 + def error_code=(_arg0); end + + # @param : [carrier_risk_category] [String] + # @param : [number_blocked] [Boolean] + # @param : [number_blocked_date] [Time] + # @param : [number_blocked_last_3_months] [Boolean] + # @param : [sms_pumping_risk_score] [Integer] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#311 + def number_blocked; end + + # @param : [carrier_risk_category] [String] + # @param : [number_blocked] [Boolean] + # @param : [number_blocked_date] [Time] + # @param : [number_blocked_last_3_months] [Boolean] + # @param : [sms_pumping_risk_score] [Integer] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#311 + def number_blocked=(_arg0); end + + # @param : [carrier_risk_category] [String] + # @param : [number_blocked] [Boolean] + # @param : [number_blocked_date] [Time] + # @param : [number_blocked_last_3_months] [Boolean] + # @param : [sms_pumping_risk_score] [Integer] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#311 + def number_blocked_date; end + + # @param : [carrier_risk_category] [String] + # @param : [number_blocked] [Boolean] + # @param : [number_blocked_date] [Time] + # @param : [number_blocked_last_3_months] [Boolean] + # @param : [sms_pumping_risk_score] [Integer] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#311 + def number_blocked_date=(_arg0); end + + # @param : [carrier_risk_category] [String] + # @param : [number_blocked] [Boolean] + # @param : [number_blocked_date] [Time] + # @param : [number_blocked_last_3_months] [Boolean] + # @param : [sms_pumping_risk_score] [Integer] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#311 + def number_blocked_last_3_months; end + + # @param : [carrier_risk_category] [String] + # @param : [number_blocked] [Boolean] + # @param : [number_blocked_date] [Time] + # @param : [number_blocked_last_3_months] [Boolean] + # @param : [sms_pumping_risk_score] [Integer] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#311 + def number_blocked_last_3_months=(_arg0); end + + # @param : [carrier_risk_category] [String] + # @param : [number_blocked] [Boolean] + # @param : [number_blocked_date] [Time] + # @param : [number_blocked_last_3_months] [Boolean] + # @param : [sms_pumping_risk_score] [Integer] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#311 + def sms_pumping_risk_score; end + + # @param : [carrier_risk_category] [String] + # @param : [number_blocked] [Boolean] + # @param : [number_blocked_date] [Time] + # @param : [number_blocked_last_3_months] [Boolean] + # @param : [sms_pumping_risk_score] [Integer] + # @param : [error_code] [Integer] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#311 + def sms_pumping_risk_score=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#320 + def to_json(options = T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#332 +class Twilio::REST::Lookups::V2::QueryList::SmsPumpingRiskParameters + # @return [SmsPumpingRiskParameters] a new instance of SmsPumpingRiskParameters + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#335 + def initialize(payload); end + + # @param : [partner_sub_id] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#334 + def partner_sub_id; end + + # @param : [partner_sub_id] [String] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#334 + def partner_sub_id=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#338 + def to_json(options = T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#386 +class Twilio::REST::Lookups::V2::QueryPage < ::Twilio::REST::Page + # Initialize the QueryPage + # + # @param version [Version] Version that contains the resource + # @param response [Response] Response from the API + # @param solution [Hash] Path solution for the resource + # @return [QueryPage] QueryPage + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#393 + def initialize(version, response, solution); end + + # Build an instance of QueryInstance + # + # @param payload [Hash] Payload response from the API + # @return [QueryInstance] QueryInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#404 + def get_instance(payload); end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/query.rb#410 + def to_s; end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/rate_limit.rb#94 +class Twilio::REST::Lookups::V2::RateLimitInstance < ::Twilio::REST::InstanceResource + # Initialize the RateLimitInstance + # + # @param version [Version] Version that contains the resource + # @param payload [Hash] payload that contains response from Twilio + # @param account_sid [String] The SID of the + # {Account}[https://www.twilio.com/docs/iam/api/account] that created this RateLimit + # resource. + # @param sid [String] The SID of the Call resource to fetch. + # @return [RateLimitInstance] RateLimitInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/rate_limit.rb#104 + def initialize(version, payload); end + + # Provide a detailed, user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/rate_limit.rb#128 + def inspect; end + + # @return [Array] + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/rate_limit.rb#116 + def rate_limits; end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/rate_limit.rb#122 + def to_s; end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/rate_limit.rb#20 +class Twilio::REST::Lookups::V2::RateLimitList < ::Twilio::REST::ListResource + # Initialize the RateLimitList + # + # @param version [Version] Version that contains the resource + # @return [RateLimitList] RateLimitList + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/rate_limit.rb#26 + def initialize(version); end + + # Fetch the RateLimitInstance + # + # @param fields [Array[String]] + # @return [RateLimitInstance] Fetched RateLimitInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/rate_limit.rb#37 + def fetch(fields: T.unsafe(nil)); end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/rate_limit.rb#61 + def to_s; end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/rate_limit.rb#66 +class Twilio::REST::Lookups::V2::RateLimitPage < ::Twilio::REST::Page + # Initialize the RateLimitPage + # + # @param version [Version] Version that contains the resource + # @param response [Response] Response from the API + # @param solution [Hash] Path solution for the resource + # @return [RateLimitPage] RateLimitPage + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/rate_limit.rb#73 + def initialize(version, response, solution); end + + # Build an instance of RateLimitInstance + # + # @param payload [Hash] Payload response from the API + # @return [RateLimitInstance] RateLimitInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/rate_limit.rb#84 + def get_instance(payload); end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups/v2/rate_limit.rb#90 + def to_s; end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/lookups_base.rb#13 +class Twilio::REST::LookupsBase < ::Twilio::REST::Domain + # Initialize lookups domain + # + # @param twilio - The twilio client + # @return [LookupsBase] a new instance of LookupsBase + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups_base.rb#19 + def initialize(twilio); end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/lookups_base.rb#38 + def to_s; end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups_base.rb#28 + def v1; end + + # source://twilio-ruby//lib/twilio-ruby/rest/lookups_base.rb#32 + def v2; end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/marketplace.rb#3 +class Twilio::REST::Marketplace < ::Twilio::REST::MarketplaceBase; end + +# source://twilio-ruby//lib/twilio-ruby/rest/marketplace/v1.rb#18 +class Twilio::REST::Marketplace::V1 < ::Twilio::REST::Version + # Initialize the V1 version of Marketplace + # + # @return [V1] a new instance of V1 + # + # source://twilio-ruby//lib/twilio-ruby/rest/marketplace/v1.rb#21 + def initialize(domain); end + + # @param sid [String] The SID of the AvailableAddOn resource to fetch. + # @return [Twilio::REST::Marketplace::V1::AvailableAddOnContext] if sid was passed. + # @return [Twilio::REST::Marketplace::V1::AvailableAddOnList] # # source://twilio-ruby//lib/twilio-ruby/rest/marketplace/v1.rb#35 def available_add_ons(sid = T.unsafe(nil)); end @@ -68421,7 +69697,7 @@ class Twilio::REST::Messaging::V1 < ::Twilio::REST::Version # @return [Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceContext] if messagingServiceSid was passed. # @return [Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceList] # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1.rb#127 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1.rb#109 def linkshortening_messaging_service(domain_sid = T.unsafe(nil), messaging_service_sid = T.unsafe(nil)); end # @param messaging_service_sid [String] Unique string used to identify the Messaging service that this domain should be associated with. @@ -68474,12 +69750,20 @@ class Twilio::REST::Messaging::V1::BrandRegistrationContext < ::Twilio::REST::In # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#173 def initialize(version, sid); end + # Access the brand_registration2_fa + # + # @return [BrandRegistration2FaList] + # @return [BrandRegistration2FaContext] + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#257 + def brand_registration2_fa; end + # Access the brand_registration_otps # # @return [BrandRegistrationOtpList] # @return [BrandRegistrationOtpContext] # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#226 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#227 def brand_registration_otps; end # Access the brand_vettings @@ -68488,31 +69772,31 @@ class Twilio::REST::Messaging::V1::BrandRegistrationContext < ::Twilio::REST::In # @return [BrandVettingList] # @return [BrandVettingContext] if sid was passed. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#237 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#238 def brand_vettings(brand_vetting_sid = T.unsafe(nil)); end # Fetch the BrandRegistrationInstance # # @return [BrandRegistrationInstance] Fetched BrandRegistrationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#187 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#188 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#262 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#273 def inspect; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#255 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#266 def to_s; end # Update the BrandRegistrationInstance # # @return [BrandRegistrationInstance] Updated BrandRegistrationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#206 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#207 def update; end end @@ -68833,7 +70117,7 @@ class Twilio::REST::Messaging::V1::BrandRegistrationContext::BrandVettingPage < def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#296 +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#307 class Twilio::REST::Messaging::V1::BrandRegistrationInstance < ::Twilio::REST::InstanceResource # Initialize the BrandRegistrationInstance # @@ -68845,46 +70129,53 @@ class Twilio::REST::Messaging::V1::BrandRegistrationInstance < ::Twilio::REST::I # @param sid [String] The SID of the Call resource to fetch. # @return [BrandRegistrationInstance] BrandRegistrationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#306 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#317 def initialize(version, payload, sid: T.unsafe(nil)); end # @return [String] A2P Messaging Profile Bundle BundleSid. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#370 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#381 def a2p_profile_bundle_sid; end # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Brand Registration resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#358 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#369 def account_sid; end # @return [Array] DEPRECATED. Feedback on how to improve brand score # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#430 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#441 def brand_feedback; end + # Access the brand_registration2_fa + # + # @return [brand_registration2_fa] brand_registration2_fa + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#520 + def brand_registration2_fa; end + # Access the brand_registration_otps # # @return [brand_registration_otps] brand_registration_otps # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#495 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#506 def brand_registration_otps; end # @return [String] The secondary vetting score if it was done. Otherwise, it will be the brand score if it's returned from TCR. It may be null if no score is available. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#424 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#435 def brand_score; end # @return [String] Type of brand. One of: \"STANDARD\", \"SOLE_PROPRIETOR\". SOLE_PROPRIETOR is for the low volume, SOLE_PROPRIETOR campaign use case. There can only be one SOLE_PROPRIETOR campaign created per SOLE_PROPRIETOR brand. STANDARD is for all other campaign use cases. Multiple campaign use cases can be created per STANDARD brand. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#388 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#399 def brand_type; end # Access the brand_vettings # # @return [brand_vettings] brand_vettings # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#502 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#513 def brand_vettings; end # Generate an instance context for the instance, the context is capable of @@ -68892,111 +70183,111 @@ class Twilio::REST::Messaging::V1::BrandRegistrationInstance < ::Twilio::REST::I # # @return [BrandRegistrationContext] CallContext for this CallInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#343 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#354 def context; end # @return [String] A2P Messaging Profile Bundle BundleSid. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#364 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#375 def customer_profile_bundle_sid; end # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#376 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#387 def date_created; end # @return [Time] The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#382 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#393 def date_updated; end # @return [Array] A list of errors that occurred during the brand registration process. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#412 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#423 def errors; end # @return [String] DEPRECATED. A reason why brand registration has failed. Only applicable when status is FAILED. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#406 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#417 def failure_reason; end # Fetch the BrandRegistrationInstance # # @return [BrandRegistrationInstance] Fetched BrandRegistrationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#479 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#490 def fetch; end # @return [Boolean] Identified as a government entity # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#448 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#459 def government_entity; end # @return [IdentityStatus] # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#436 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#447 def identity_status; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#515 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#533 def inspect; end # @return [Hash] # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#472 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#483 def links; end # @return [Boolean] A boolean that specifies whether brand should be a mock or not. If true, brand will be registered as a mock brand. Defaults to false if no value is provided. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#466 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#477 def mock; end # @return [Boolean] Publicly traded company identified in the Russell 3000 Index # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#442 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#453 def russell_3000; end # @return [String] The unique string to identify Brand Registration. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#352 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#363 def sid; end # @return [Boolean] A flag to disable automatic secondary vetting for brands which it would otherwise be done. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#460 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#471 def skip_automatic_sec_vet; end # @return [Status] # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#394 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#405 def status; end # @return [String] Nonprofit organization tax-exempt status per section 501 of the U.S. tax code. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#454 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#465 def tax_exempt_status; end # @return [String] Campaign Registry (TCR) Brand ID. Assigned only after successful brand registration. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#400 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#411 def tcr_id; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#508 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#526 def to_s; end # Update the BrandRegistrationInstance # # @return [BrandRegistrationInstance] Updated BrandRegistrationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#487 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#498 def update; end # @return [String] The absolute URL of the Brand Registration resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#418 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#429 def url; end end @@ -69085,7 +70376,7 @@ class Twilio::REST::Messaging::V1::BrandRegistrationList < ::Twilio::REST::ListR def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#268 +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#279 class Twilio::REST::Messaging::V1::BrandRegistrationPage < ::Twilio::REST::Page # Initialize the BrandRegistrationPage # @@ -69094,7 +70385,7 @@ class Twilio::REST::Messaging::V1::BrandRegistrationPage < ::Twilio::REST::Page # @param solution [Hash] Path solution for the resource # @return [BrandRegistrationPage] BrandRegistrationPage # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#275 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#286 def initialize(version, response, solution); end # Build an instance of BrandRegistrationInstance @@ -69102,12 +70393,12 @@ class Twilio::REST::Messaging::V1::BrandRegistrationPage < ::Twilio::REST::Page # @param payload [Hash] Payload response from the API # @return [BrandRegistrationInstance] BrandRegistrationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#286 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#297 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#292 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/brand_registration.rb#303 def to_s; end end @@ -70370,7 +71661,7 @@ class Twilio::REST::Messaging::V1::ServiceContext < ::Twilio::REST::InstanceCont # @param scan_message_content [ScanMessageContent] # @param fallback_to_long_code [Boolean] [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. # @param area_code_geomatch [Boolean] Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. - # @param validity_period [String] How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. Default value is `14,400`. + # @param validity_period [String] How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `36,000`. Default value is `36,000`. # @param synchronous_validation [Boolean] Reserved. # @param usecase [String] A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`. # @param use_inbound_webhook_on_number [Boolean] A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service. @@ -70866,7 +72157,7 @@ class Twilio::REST::Messaging::V1::ServiceContext::ChannelSenderPage < ::Twilio: def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#161 +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#167 class Twilio::REST::Messaging::V1::ServiceContext::DestinationAlphaSenderContext < ::Twilio::REST::InstanceContext # Initialize the DestinationAlphaSenderContext # @@ -70875,35 +72166,35 @@ class Twilio::REST::Messaging::V1::ServiceContext::DestinationAlphaSenderContext # @param sid [String] The SID of the AlphaSender resource to fetch. # @return [DestinationAlphaSenderContext] DestinationAlphaSenderContext # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#168 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#174 def initialize(version, service_sid, sid); end # Delete the DestinationAlphaSenderInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#180 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#186 def delete; end # Fetch the DestinationAlphaSenderInstance # # @return [DestinationAlphaSenderInstance] Fetched DestinationAlphaSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#192 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#198 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#219 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#225 def inspect; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#212 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#218 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#253 +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#259 class Twilio::REST::Messaging::V1::ServiceContext::DestinationAlphaSenderInstance < ::Twilio::REST::InstanceResource # Initialize the DestinationAlphaSenderInstance # @@ -70915,22 +72206,22 @@ class Twilio::REST::Messaging::V1::ServiceContext::DestinationAlphaSenderInstanc # @param sid [String] The SID of the Call resource to fetch. # @return [DestinationAlphaSenderInstance] DestinationAlphaSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#263 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#269 def initialize(version, payload, service_sid: T.unsafe(nil), sid: T.unsafe(nil)); end # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AlphaSender resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#303 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#309 def account_sid; end # @return [String] The Alphanumeric Sender ID string. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#327 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#333 def alpha_sender; end # @return [Array] An array of values that describe whether the number can receive calls or messages. Can be: `SMS`. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#333 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#339 def capabilities; end # Generate an instance context for the instance, the context is capable of @@ -70938,61 +72229,61 @@ class Twilio::REST::Messaging::V1::ServiceContext::DestinationAlphaSenderInstanc # # @return [DestinationAlphaSenderContext] CallContext for this CallInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#288 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#294 def context; end # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#315 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#321 def date_created; end # @return [Time] The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#321 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#327 def date_updated; end # Delete the DestinationAlphaSenderInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#352 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#358 def delete; end # Fetch the DestinationAlphaSenderInstance # # @return [DestinationAlphaSenderInstance] Fetched DestinationAlphaSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#360 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#366 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#374 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#380 def inspect; end # @return [String] The Two Character ISO Country Code the Alphanumeric Sender ID will be used for. For Default Alpha Senders that work across countries, this value will be an empty string # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#345 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#351 def iso_country_code; end # @return [String] The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the resource is associated with. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#309 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#315 def service_sid; end # @return [String] The unique string that we created to identify the AlphaSender resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#297 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#303 def sid; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#367 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#373 def to_s; end # @return [String] The absolute URL of the AlphaSender resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#339 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#345 def url; end end @@ -71019,7 +72310,7 @@ class Twilio::REST::Messaging::V1::ServiceContext::DestinationAlphaSenderList < # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#107 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#111 def each; end # Retrieve a single page of DestinationAlphaSenderInstance records from the API. @@ -71028,13 +72319,14 @@ class Twilio::REST::Messaging::V1::ServiceContext::DestinationAlphaSenderList < # @param target_url [String] API-generated URL for the requested results page # @return [Page] Page of DestinationAlphaSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#150 def get_page(target_url); end # Lists DestinationAlphaSenderInstance records from the API as a list. # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # + # @param iso_country_code [String] Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code. # @param limit [Integer] Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit # @param page_size [Integer] Number of records to fetch per request, when @@ -71043,24 +72335,26 @@ class Twilio::REST::Messaging::V1::ServiceContext::DestinationAlphaSenderList < # efficient page size, i.e. min(limit, 1000) # @return [Array] Array of up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#76 - def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#77 + def list(iso_country_code: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Retrieve a single page of DestinationAlphaSenderInstance records from the API. # Request is executed immediately. # + # @param iso_country_code [String] Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code. # @param page_token [String] PageToken provided by the API # @param page_number [Integer] Page Number, this value is simply for client state # @param page_size [Integer] Number of records to return, defaults to 50 # @return [Page] Page of DestinationAlphaSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#124 - def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#129 + def page(iso_country_code: T.unsafe(nil), page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end # Streams Instance records from the API as an Enumerable. # This operation lazily loads records as efficiently as possible until the limit # is reached. # + # @param iso_country_code [String] Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code. # @param limit [Integer] Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit # @param page_size [Integer] Number of records to fetch per request, when @@ -71069,16 +72363,16 @@ class Twilio::REST::Messaging::V1::ServiceContext::DestinationAlphaSenderList < # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#94 - def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#97 + def stream(iso_country_code: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#155 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#161 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#225 +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#231 class Twilio::REST::Messaging::V1::ServiceContext::DestinationAlphaSenderPage < ::Twilio::REST::Page # Initialize the DestinationAlphaSenderPage # @@ -71087,7 +72381,7 @@ class Twilio::REST::Messaging::V1::ServiceContext::DestinationAlphaSenderPage < # @param solution [Hash] Path solution for the resource # @return [DestinationAlphaSenderPage] DestinationAlphaSenderPage # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#232 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#238 def initialize(version, response, solution); end # Build an instance of DestinationAlphaSenderInstance @@ -71095,12 +72389,12 @@ class Twilio::REST::Messaging::V1::ServiceContext::DestinationAlphaSenderPage < # @param payload [Hash] Payload response from the API # @return [DestinationAlphaSenderInstance] DestinationAlphaSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#243 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#249 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#249 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb#255 def to_s; end end @@ -72220,7 +73514,7 @@ class Twilio::REST::Messaging::V1::ServiceInstance < ::Twilio::REST::InstanceRes # @param scan_message_content [ScanMessageContent] # @param fallback_to_long_code [Boolean] [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. # @param area_code_geomatch [Boolean] Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. - # @param validity_period [String] How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. Default value is `14,400`. + # @param validity_period [String] How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `36,000`. Default value is `36,000`. # @param synchronous_validation [Boolean] Reserved. # @param usecase [String] A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`. # @param use_inbound_webhook_on_number [Boolean] A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service. @@ -72231,1648 +73525,94 @@ class Twilio::REST::Messaging::V1::ServiceInstance < ::Twilio::REST::InstanceRes # @return [String] The absolute URL of the Service resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#659 - def url; end - - # Access the us_app_to_person - # - # @return [us_app_to_person] us_app_to_person - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#778 - def us_app_to_person; end - - # @return [Boolean] Whether US A2P campaign is registered for this Service. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#677 - def us_app_to_person_registered; end - - # Access the us_app_to_person_usecases - # - # @return [us_app_to_person_usecases] us_app_to_person_usecases - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#764 - def us_app_to_person_usecases; end - - # @return [Boolean] A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#683 - def use_inbound_webhook_on_number; end - - # @return [String] A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#671 - def usecase; end - - # @return [String] How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. Default value is `14,400`. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#653 - def validity_period; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#20 -class Twilio::REST::Messaging::V1::ServiceList < ::Twilio::REST::ListResource - # Initialize the ServiceList - # - # @param version [Version] Version that contains the resource - # @return [ServiceList] ServiceList - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#26 - def initialize(version); end - - # Create the ServiceInstance - # - # @param friendly_name [String] A descriptive string that you create to describe the resource. It can be up to 64 characters long. - # @param inbound_request_url [String] The URL we call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. All messages sent to the Twilio phone number or short code will not be logged and received on the Account. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `inbound_request_url` defined for the Messaging Service. - # @param inbound_method [String] The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. - # @param fallback_url [String] The URL that we call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `fallback_url` defined for the Messaging Service. - # @param fallback_method [String] The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. - # @param status_callback [String] The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. - # @param sticky_sender [Boolean] Whether to enable [Sticky Sender](https://www.twilio.com/docs/messaging/services#sticky-sender) on the Service instance. - # @param mms_converter [Boolean] Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance. - # @param smart_encoding [Boolean] Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance. - # @param scan_message_content [ScanMessageContent] - # @param fallback_to_long_code [Boolean] [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. - # @param area_code_geomatch [Boolean] Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. - # @param validity_period [String] How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. Default value is `14,400`. - # @param synchronous_validation [Boolean] Reserved. - # @param usecase [String] A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`. - # @param use_inbound_webhook_on_number [Boolean] A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service. - # @return [ServiceInstance] Created ServiceInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#52 - def create(friendly_name: T.unsafe(nil), inbound_request_url: T.unsafe(nil), inbound_method: T.unsafe(nil), fallback_url: T.unsafe(nil), fallback_method: T.unsafe(nil), status_callback: T.unsafe(nil), sticky_sender: T.unsafe(nil), mms_converter: T.unsafe(nil), smart_encoding: T.unsafe(nil), scan_message_content: T.unsafe(nil), fallback_to_long_code: T.unsafe(nil), area_code_geomatch: T.unsafe(nil), validity_period: T.unsafe(nil), synchronous_validation: T.unsafe(nil), usecase: T.unsafe(nil), use_inbound_webhook_on_number: T.unsafe(nil)); end - - # When passed a block, yields ServiceInstance records from the API. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#146 - def each; end - - # Retrieve a single page of ServiceInstance records from the API. - # Request is executed immediately. - # - # @param target_url [String] API-generated URL for the requested results page - # @return [Page] Page of ServiceInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#183 - def get_page(target_url); end - - # Lists ServiceInstance records from the API as a list. - # Unlike stream(), this operation is eager and will load `limit` records into - # memory before returning. - # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Array] Array of up to limit results - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#115 - def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Retrieve a single page of ServiceInstance records from the API. - # Request is executed immediately. - # - # @param page_token [String] PageToken provided by the API - # @param page_number [Integer] Page Number, this value is simply for client state - # @param page_size [Integer] Number of records to return, defaults to 50 - # @return [Page] Page of ServiceInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#163 - def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Streams Instance records from the API as an Enumerable. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. - # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Enumerable] Enumerable that will yield up to limit results - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#133 - def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#194 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#465 -class Twilio::REST::Messaging::V1::ServicePage < ::Twilio::REST::Page - # Initialize the ServicePage - # - # @param version [Version] Version that contains the resource - # @param response [Response] Response from the API - # @param solution [Hash] Path solution for the resource - # @return [ServicePage] ServicePage - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#472 - def initialize(version, response, solution); end - - # Build an instance of ServiceInstance - # - # @param payload [Hash] Payload response from the API - # @return [ServiceInstance] ServiceInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#483 - def get_instance(payload); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#489 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#245 -class Twilio::REST::Messaging::V1::TollfreeVerificationContext < ::Twilio::REST::InstanceContext - # Initialize the TollfreeVerificationContext - # - # @param version [Version] Version that contains the resource - # @param sid [String] The unique string to identify Tollfree Verification. - # @return [TollfreeVerificationContext] TollfreeVerificationContext - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#251 - def initialize(version, sid); end - - # Delete the TollfreeVerificationInstance - # - # @return [Boolean] True if delete succeeds, false otherwise - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#263 - def delete; end - - # Fetch the TollfreeVerificationInstance - # - # @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#275 - def fetch; end - - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#387 - def inspect; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#380 - def to_s; end - - # Update the TollfreeVerificationInstance - # - # @param business_name [String] The name of the business or organization using the Tollfree number. - # @param business_website [String] The website of the business or organization using the Tollfree number. - # @param notification_email [String] The email address to receive the notification about the verification result. . - # @param use_case_categories [Array[String]] The category of the use case for the Tollfree Number. List as many are applicable.. - # @param use_case_summary [String] Use this to further explain how messaging is used by the business or organization. - # @param production_message_sample [String] An example of message content, i.e. a sample message. - # @param opt_in_image_urls [Array[String]] Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. - # @param opt_in_type [OptInType] - # @param message_volume [String] Estimate monthly volume of messages from the Tollfree Number. - # @param business_street_address [String] The address of the business or organization using the Tollfree number. - # @param business_street_address2 [String] The address of the business or organization using the Tollfree number. - # @param business_city [String] The city of the business or organization using the Tollfree number. - # @param business_state_province_region [String] The state/province/region of the business or organization using the Tollfree number. - # @param business_postal_code [String] The postal code of the business or organization using the Tollfree number. - # @param business_country [String] The country of the business or organization using the Tollfree number. - # @param additional_information [String] Additional information to be provided for verification. - # @param business_contact_first_name [String] The first name of the contact for the business or organization using the Tollfree number. - # @param business_contact_last_name [String] The last name of the contact for the business or organization using the Tollfree number. - # @param business_contact_email [String] The email address of the contact for the business or organization using the Tollfree number. - # @param business_contact_phone [String] The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. - # @param edit_reason [String] Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'. - # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#315 - def update(business_name: T.unsafe(nil), business_website: T.unsafe(nil), notification_email: T.unsafe(nil), use_case_categories: T.unsafe(nil), use_case_summary: T.unsafe(nil), production_message_sample: T.unsafe(nil), opt_in_image_urls: T.unsafe(nil), opt_in_type: T.unsafe(nil), message_volume: T.unsafe(nil), business_street_address: T.unsafe(nil), business_street_address2: T.unsafe(nil), business_city: T.unsafe(nil), business_state_province_region: T.unsafe(nil), business_postal_code: T.unsafe(nil), business_country: T.unsafe(nil), additional_information: T.unsafe(nil), business_contact_first_name: T.unsafe(nil), business_contact_last_name: T.unsafe(nil), business_contact_email: T.unsafe(nil), business_contact_phone: T.unsafe(nil), edit_reason: T.unsafe(nil)); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#421 -class Twilio::REST::Messaging::V1::TollfreeVerificationInstance < ::Twilio::REST::InstanceResource - # Initialize the TollfreeVerificationInstance - # - # @param version [Version] Version that contains the resource - # @param payload [Hash] payload that contains response from Twilio - # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this TollfreeVerification - # resource. - # @param sid [String] The SID of the Call resource to fetch. - # @return [TollfreeVerificationInstance] TollfreeVerificationInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#431 - def initialize(version, payload, sid: T.unsafe(nil)); end - - # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Tollfree Verification resource. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#499 - def account_sid; end - - # @return [String] Additional information to be provided for verification. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#649 - def additional_information; end - - # @return [String] The city of the business or organization using the Tollfree number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#553 - def business_city; end - - # @return [String] The email address of the contact for the business or organization using the Tollfree number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#595 - def business_contact_email; end - - # @return [String] The first name of the contact for the business or organization using the Tollfree number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#583 - def business_contact_first_name; end - - # @return [String] The last name of the contact for the business or organization using the Tollfree number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#589 - def business_contact_last_name; end - - # @return [String] The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#601 - def business_contact_phone; end - - # @return [String] The country of the business or organization using the Tollfree number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#571 - def business_country; end - - # @return [String] The name of the business or organization using the Tollfree number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#535 - def business_name; end - - # @return [String] The postal code of the business or organization using the Tollfree number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#565 - def business_postal_code; end - - # @return [String] The state/province/region of the business or organization using the Tollfree number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#559 - def business_state_province_region; end - - # @return [String] The address of the business or organization using the Tollfree number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#541 - def business_street_address; end - - # @return [String] The address of the business or organization using the Tollfree number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#547 - def business_street_address2; end - - # @return [String] The website of the business or organization using the Tollfree number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#577 - def business_website; end - - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context - # - # @return [TollfreeVerificationContext] CallContext for this CallInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#484 - def context; end - - # @return [String] Customer's Profile Bundle BundleSid. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#505 - def customer_profile_sid; end - - # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#517 - def date_created; end - - # @return [Time] The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#523 - def date_updated; end - - # Delete the TollfreeVerificationInstance - # - # @return [Boolean] True if delete succeeds, false otherwise - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#716 - def delete; end - - # @return [Boolean] If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#691 - def edit_allowed; end - - # @return [Time] The date and time when the ability to edit a rejected verification expires. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#685 - def edit_expiration; end - - # @return [String] The error code given when a Tollfree Verification has been rejected. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#679 - def error_code; end - - # @return [String] An optional external reference ID supplied by customer and echoed back on status retrieval. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#709 - def external_reference_id; end - - # Fetch the TollfreeVerificationInstance - # - # @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#724 - def fetch; end - - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#811 - def inspect; end - - # @return [String] Estimate monthly volume of messages from the Tollfree Number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#643 - def message_volume; end - - # @return [String] The email address to receive the notification about the verification result. . - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#607 - def notification_email; end - - # @return [Array] Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#631 - def opt_in_image_urls; end - - # @return [OptInType] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#637 - def opt_in_type; end - - # @return [String] An example of message content, i.e. a sample message. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#625 - def production_message_sample; end - - # @return [String] The SID of the Regulated Item. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#529 - def regulated_item_sid; end - - # @return [String] The rejection reason given when a Tollfree Verification has been rejected. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#673 - def rejection_reason; end - - # @return [Array] A list of rejection reasons and codes describing why a Tollfree Verification has been rejected. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#697 - def rejection_reasons; end - - # @return [Hash] The URLs of the documents associated with the Tollfree Verification resource. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#703 - def resource_links; end - - # @return [String] The unique string to identify Tollfree Verification. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#493 - def sid; end - - # @return [Status] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#661 - def status; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#804 - def to_s; end - - # @return [String] The SID of the Phone Number associated with the Tollfree Verification. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#655 - def tollfree_phone_number_sid; end - - # @return [String] Tollfree TrustProduct Bundle BundleSid. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#511 - def trust_product_sid; end - - # Update the TollfreeVerificationInstance - # - # @param business_name [String] The name of the business or organization using the Tollfree number. - # @param business_website [String] The website of the business or organization using the Tollfree number. - # @param notification_email [String] The email address to receive the notification about the verification result. . - # @param use_case_categories [Array[String]] The category of the use case for the Tollfree Number. List as many are applicable.. - # @param use_case_summary [String] Use this to further explain how messaging is used by the business or organization. - # @param production_message_sample [String] An example of message content, i.e. a sample message. - # @param opt_in_image_urls [Array[String]] Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. - # @param opt_in_type [OptInType] - # @param message_volume [String] Estimate monthly volume of messages from the Tollfree Number. - # @param business_street_address [String] The address of the business or organization using the Tollfree number. - # @param business_street_address2 [String] The address of the business or organization using the Tollfree number. - # @param business_city [String] The city of the business or organization using the Tollfree number. - # @param business_state_province_region [String] The state/province/region of the business or organization using the Tollfree number. - # @param business_postal_code [String] The postal code of the business or organization using the Tollfree number. - # @param business_country [String] The country of the business or organization using the Tollfree number. - # @param additional_information [String] Additional information to be provided for verification. - # @param business_contact_first_name [String] The first name of the contact for the business or organization using the Tollfree number. - # @param business_contact_last_name [String] The last name of the contact for the business or organization using the Tollfree number. - # @param business_contact_email [String] The email address of the contact for the business or organization using the Tollfree number. - # @param business_contact_phone [String] The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. - # @param edit_reason [String] Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'. - # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#753 - def update(business_name: T.unsafe(nil), business_website: T.unsafe(nil), notification_email: T.unsafe(nil), use_case_categories: T.unsafe(nil), use_case_summary: T.unsafe(nil), production_message_sample: T.unsafe(nil), opt_in_image_urls: T.unsafe(nil), opt_in_type: T.unsafe(nil), message_volume: T.unsafe(nil), business_street_address: T.unsafe(nil), business_street_address2: T.unsafe(nil), business_city: T.unsafe(nil), business_state_province_region: T.unsafe(nil), business_postal_code: T.unsafe(nil), business_country: T.unsafe(nil), additional_information: T.unsafe(nil), business_contact_first_name: T.unsafe(nil), business_contact_last_name: T.unsafe(nil), business_contact_email: T.unsafe(nil), business_contact_phone: T.unsafe(nil), edit_reason: T.unsafe(nil)); end - - # @return [String] The absolute URL of the Tollfree Verification resource. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#667 - def url; end - - # @return [Array] The category of the use case for the Tollfree Number. List as many are applicable.. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#613 - def use_case_categories; end - - # @return [String] Use this to further explain how messaging is used by the business or organization. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#619 - def use_case_summary; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#20 -class Twilio::REST::Messaging::V1::TollfreeVerificationList < ::Twilio::REST::ListResource - # Initialize the TollfreeVerificationList - # - # @param version [Version] Version that contains the resource - # @return [TollfreeVerificationList] TollfreeVerificationList - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#26 - def initialize(version); end - - # Create the TollfreeVerificationInstance - # - # @param business_name [String] The name of the business or organization using the Tollfree number. - # @param business_website [String] The website of the business or organization using the Tollfree number. - # @param notification_email [String] The email address to receive the notification about the verification result. . - # @param use_case_categories [Array[String]] The category of the use case for the Tollfree Number. List as many are applicable.. - # @param use_case_summary [String] Use this to further explain how messaging is used by the business or organization. - # @param production_message_sample [String] An example of message content, i.e. a sample message. - # @param opt_in_image_urls [Array[String]] Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. - # @param opt_in_type [OptInType] - # @param message_volume [String] Estimate monthly volume of messages from the Tollfree Number. - # @param tollfree_phone_number_sid [String] The SID of the Phone Number associated with the Tollfree Verification. - # @param customer_profile_sid [String] Customer's Profile Bundle BundleSid. - # @param business_street_address [String] The address of the business or organization using the Tollfree number. - # @param business_street_address2 [String] The address of the business or organization using the Tollfree number. - # @param business_city [String] The city of the business or organization using the Tollfree number. - # @param business_state_province_region [String] The state/province/region of the business or organization using the Tollfree number. - # @param business_postal_code [String] The postal code of the business or organization using the Tollfree number. - # @param business_country [String] The country of the business or organization using the Tollfree number. - # @param additional_information [String] Additional information to be provided for verification. - # @param business_contact_first_name [String] The first name of the contact for the business or organization using the Tollfree number. - # @param business_contact_last_name [String] The last name of the contact for the business or organization using the Tollfree number. - # @param business_contact_email [String] The email address of the contact for the business or organization using the Tollfree number. - # @param business_contact_phone [String] The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. - # @param external_reference_id [String] An optional external reference ID supplied by customer and echoed back on status retrieval. - # @return [TollfreeVerificationInstance] Created TollfreeVerificationInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#59 - def create(business_name: T.unsafe(nil), business_website: T.unsafe(nil), notification_email: T.unsafe(nil), use_case_categories: T.unsafe(nil), use_case_summary: T.unsafe(nil), production_message_sample: T.unsafe(nil), opt_in_image_urls: T.unsafe(nil), opt_in_type: T.unsafe(nil), message_volume: T.unsafe(nil), tollfree_phone_number_sid: T.unsafe(nil), customer_profile_sid: T.unsafe(nil), business_street_address: T.unsafe(nil), business_street_address2: T.unsafe(nil), business_city: T.unsafe(nil), business_state_province_region: T.unsafe(nil), business_postal_code: T.unsafe(nil), business_country: T.unsafe(nil), additional_information: T.unsafe(nil), business_contact_first_name: T.unsafe(nil), business_contact_last_name: T.unsafe(nil), business_contact_email: T.unsafe(nil), business_contact_phone: T.unsafe(nil), external_reference_id: T.unsafe(nil)); end - - # When passed a block, yields TollfreeVerificationInstance records from the API. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#183 - def each; end - - # Retrieve a single page of TollfreeVerificationInstance records from the API. - # Request is executed immediately. - # - # @param target_url [String] API-generated URL for the requested results page - # @return [Page] Page of TollfreeVerificationInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#228 - def get_page(target_url); end - - # Lists TollfreeVerificationInstance records from the API as a list. - # Unlike stream(), this operation is eager and will load `limit` records into - # memory before returning. - # - # @param tollfree_phone_number_sid [String] The SID of the Phone Number associated with the Tollfree Verification. - # @param status [Status] The compliance status of the Tollfree Verification record. - # @param external_reference_id [String] Customer supplied reference id for the Tollfree Verification record. - # @param include_sub_accounts [Boolean] Whether to include Tollfree Verifications from sub accounts in list response. - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Array] Array of up to limit results - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#140 - def list(tollfree_phone_number_sid: T.unsafe(nil), status: T.unsafe(nil), external_reference_id: T.unsafe(nil), include_sub_accounts: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Retrieve a single page of TollfreeVerificationInstance records from the API. - # Request is executed immediately. - # - # @param tollfree_phone_number_sid [String] The SID of the Phone Number associated with the Tollfree Verification. - # @param status [Status] The compliance status of the Tollfree Verification record. - # @param external_reference_id [String] Customer supplied reference id for the Tollfree Verification record. - # @param include_sub_accounts [Boolean] Whether to include Tollfree Verifications from sub accounts in list response. - # @param page_token [String] PageToken provided by the API - # @param page_number [Integer] Page Number, this value is simply for client state - # @param page_size [Integer] Number of records to return, defaults to 50 - # @return [Page] Page of TollfreeVerificationInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#204 - def page(tollfree_phone_number_sid: T.unsafe(nil), status: T.unsafe(nil), external_reference_id: T.unsafe(nil), include_sub_accounts: T.unsafe(nil), page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Streams Instance records from the API as an Enumerable. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. - # - # @param tollfree_phone_number_sid [String] The SID of the Phone Number associated with the Tollfree Verification. - # @param status [Status] The compliance status of the Tollfree Verification record. - # @param external_reference_id [String] Customer supplied reference id for the Tollfree Verification record. - # @param include_sub_accounts [Boolean] Whether to include Tollfree Verifications from sub accounts in list response. - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Enumerable] Enumerable that will yield up to limit results - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#166 - def stream(tollfree_phone_number_sid: T.unsafe(nil), status: T.unsafe(nil), external_reference_id: T.unsafe(nil), include_sub_accounts: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#239 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#393 -class Twilio::REST::Messaging::V1::TollfreeVerificationPage < ::Twilio::REST::Page - # Initialize the TollfreeVerificationPage - # - # @param version [Version] Version that contains the resource - # @param response [Response] Response from the API - # @param solution [Hash] Path solution for the resource - # @return [TollfreeVerificationPage] TollfreeVerificationPage - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#400 - def initialize(version, response, solution); end - - # Build an instance of TollfreeVerificationInstance - # - # @param payload [Hash] Payload response from the API - # @return [TollfreeVerificationInstance] TollfreeVerificationInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#411 - def get_instance(payload); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#417 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#88 -class Twilio::REST::Messaging::V1::UsecaseInstance < ::Twilio::REST::InstanceResource - # Initialize the UsecaseInstance - # - # @param version [Version] Version that contains the resource - # @param payload [Hash] payload that contains response from Twilio - # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Usecase - # resource. - # @param sid [String] The SID of the Call resource to fetch. - # @return [UsecaseInstance] UsecaseInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#98 - def initialize(version, payload); end - - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#122 - def inspect; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#116 - def to_s; end - - # @return [Array] Human readable use case details (usecase, description and purpose) of Messaging Service Use Cases. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#110 - def usecases; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#20 -class Twilio::REST::Messaging::V1::UsecaseList < ::Twilio::REST::ListResource - # Initialize the UsecaseList - # - # @param version [Version] Version that contains the resource - # @return [UsecaseList] UsecaseList - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#26 - def initialize(version); end - - # Fetch the UsecaseInstance - # - # @return [UsecaseInstance] Fetched UsecaseInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#36 - def fetch; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#55 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#60 -class Twilio::REST::Messaging::V1::UsecasePage < ::Twilio::REST::Page - # Initialize the UsecasePage - # - # @param version [Version] Version that contains the resource - # @param response [Response] Response from the API - # @param solution [Hash] Path solution for the resource - # @return [UsecasePage] UsecasePage - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#67 - def initialize(version, response, solution); end - - # Build an instance of UsecaseInstance - # - # @param payload [Hash] Payload response from the API - # @return [UsecaseInstance] UsecaseInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#78 - def get_instance(payload); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#84 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2.rb#18 -class Twilio::REST::Messaging::V2 < ::Twilio::REST::Version - # Initialize the V2 version of Messaging - # - # @return [V2] a new instance of V2 - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2.rb#21 - def initialize(domain); end - - # @param sid [String] A 34 character string that uniquely identifies this Sender. - # @return [Twilio::REST::Messaging::V2::ChannelsSenderContext] if sid was passed. - # @return [Twilio::REST::Messaging::V2::ChannelsSenderList] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2.rb#31 - def channels_senders(sid = T.unsafe(nil)); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2.rb#43 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#304 -class Twilio::REST::Messaging::V2::ChannelsSenderContext < ::Twilio::REST::InstanceContext - # Initialize the ChannelsSenderContext - # - # @param version [Version] Version that contains the resource - # @param sid [String] A 34 character string that uniquely identifies this Sender. - # @return [ChannelsSenderContext] ChannelsSenderContext - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#310 - def initialize(version, sid); end - - # Delete the ChannelsSenderInstance - # - # @return [Boolean] True if delete succeeds, false otherwise - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#322 - def delete; end - - # Fetch the ChannelsSenderInstance - # - # @return [ChannelsSenderInstance] Fetched ChannelsSenderInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#334 - def fetch; end - - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#381 - def inspect; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#374 - def to_s; end - - # Update the ChannelsSenderInstance - # - # @param messaging_v2_channels_sender_requests_update [MessagingV2ChannelsSenderRequestsUpdate] - # @return [ChannelsSenderInstance] Updated ChannelsSenderInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#354 - def update(messaging_v2_channels_sender_requests_update: T.unsafe(nil)); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#415 -class Twilio::REST::Messaging::V2::ChannelsSenderInstance < ::Twilio::REST::InstanceResource - # Initialize the ChannelsSenderInstance - # - # @param version [Version] Version that contains the resource - # @param payload [Hash] payload that contains response from Twilio - # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this ChannelsSender - # resource. - # @param sid [String] The SID of the Call resource to fetch. - # @return [ChannelsSenderInstance] ChannelsSenderInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#425 - def initialize(version, payload, sid: T.unsafe(nil)); end - - # @return [MessagingV2ChannelsSenderConfiguration] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#477 - def configuration; end - - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context - # - # @return [ChannelsSenderContext] CallContext for this CallInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#450 - def context; end - - # Delete the ChannelsSenderInstance - # - # @return [Boolean] True if delete succeeds, false otherwise - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#514 - def delete; end - - # Fetch the ChannelsSenderInstance - # - # @return [ChannelsSenderInstance] Fetched ChannelsSenderInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#522 - def fetch; end - - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#547 - def inspect; end - - # @return [Array] Reasons why the sender is offline., e.g., [{\"code\": \"21211400\", \"message\": \"Whatsapp business account is banned by provider {provider_name} | Credit line is assigned to another BSP\", \"more_info\": \"https://www.twilio.com/docs/errors/21211400\"}] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#501 - def offline_reasons; end - - # @return [MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#489 - def profile; end - - # @return [MessagingV2ChannelsSenderProperties] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#495 - def properties; end - - # @return [String] The ID of this Sender prefixed with the channel, e.g., `whatsapp:E.164` - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#471 - def sender_id; end - - # @return [String] A 34 character string that uniquely identifies this Sender. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#459 - def sid; end - - # @return [Status] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#465 - def status; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#540 - def to_s; end - - # Update the ChannelsSenderInstance - # - # @param messaging_v2_channels_sender_requests_update [MessagingV2ChannelsSenderRequestsUpdate] - # @return [ChannelsSenderInstance] Updated ChannelsSenderInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#531 - def update(messaging_v2_channels_sender_requests_update: T.unsafe(nil)); end - - # @return [String] The URL of this resource, relative to `https://messaging.twilio.com`. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#507 - def url; end - - # @return [MessagingV2ChannelsSenderWebhook] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#483 - def webhook; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#20 -class Twilio::REST::Messaging::V2::ChannelsSenderList < ::Twilio::REST::ListResource - # Initialize the ChannelsSenderList - # - # @param version [Version] Version that contains the resource - # @return [ChannelsSenderList] ChannelsSenderList - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#174 - def initialize(version); end - - # Create the ChannelsSenderInstance - # - # @param messaging_v2_channels_sender_requests_create [MessagingV2ChannelsSenderRequestsCreate] - # @return [ChannelsSenderInstance] Created ChannelsSenderInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#185 - def create(messaging_v2_channels_sender_requests_create: T.unsafe(nil)); end - - # When passed a block, yields ChannelsSenderInstance records from the API. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#248 - def each; end - - # Retrieve a single page of ChannelsSenderInstance records from the API. - # Request is executed immediately. - # - # @param target_url [String] API-generated URL for the requested results page - # @return [Page] Page of ChannelsSenderInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#287 - def get_page(target_url); end - - # Lists ChannelsSenderInstance records from the API as a list. - # Unlike stream(), this operation is eager and will load `limit` records into - # memory before returning. - # - # @param channel [String] - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Array] Array of up to limit results - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#214 - def list(channel: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Retrieve a single page of ChannelsSenderInstance records from the API. - # Request is executed immediately. - # - # @param channel [String] - # @param page_token [String] PageToken provided by the API - # @param page_number [Integer] Page Number, this value is simply for client state - # @param page_size [Integer] Number of records to return, defaults to 50 - # @return [Page] Page of ChannelsSenderInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#266 - def page(channel: T.unsafe(nil), page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Streams Instance records from the API as an Enumerable. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. - # - # @param channel [String] - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Enumerable] Enumerable that will yield up to limit results - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#234 - def stream(channel: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#298 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#22 -class Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderProfileEmails - # @return [MessagingV2ChannelsSenderProfileEmails] a new instance of MessagingV2ChannelsSenderProfileEmails - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#100 - def initialize(payload); end - - # @param : [email] [String] The email of the sender. - # @param : [label] [String] The label of the sender. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#99 - def email; end - - # @param : [email] [String] The email of the sender. - # @param : [label] [String] The label of the sender. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#99 - def email=(_arg0); end - - # @param : [email] [String] The email of the sender. - # @param : [label] [String] The label of the sender. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#99 - def label; end - - # @param : [email] [String] The email of the sender. - # @param : [label] [String] The label of the sender. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#99 - def label=(_arg0); end - - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#104 - def to_json(options = T.unsafe(nil)); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#38 -class Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderProfileWebsites - # @return [MessagingV2ChannelsSenderProfileWebsites] a new instance of MessagingV2ChannelsSenderProfileWebsites - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#116 - def initialize(payload); end - - # @param : [label] [String] The label of the sender. - # @param : [website] [String] The website of the sender. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#115 - def label; end - - # @param : [label] [String] The label of the sender. - # @param : [website] [String] The website of the sender. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#115 - def label=(_arg0); end - - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#120 - def to_json(options = T.unsafe(nil)); end - - # @param : [label] [String] The label of the sender. - # @param : [website] [String] The website of the sender. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#115 - def website; end - - # @param : [label] [String] The label of the sender. - # @param : [website] [String] The website of the sender. - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#115 - def website=(_arg0); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#54 -class Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderRequestsCreate - # @return [MessagingV2ChannelsSenderRequestsCreate] a new instance of MessagingV2ChannelsSenderRequestsCreate - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#134 - def initialize(payload); end - - # @param : [sender_id] [String] The ID of this Sender prefixed with the channel, e.g., `whatsapp:E.164` - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#133 - def configuration; end - - # @param : [sender_id] [String] The ID of this Sender prefixed with the channel, e.g., `whatsapp:E.164` - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#133 - def configuration=(_arg0); end - - # @param : [sender_id] [String] The ID of this Sender prefixed with the channel, e.g., `whatsapp:E.164` - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#133 - def profile; end - - # @param : [sender_id] [String] The ID of this Sender prefixed with the channel, e.g., `whatsapp:E.164` - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#133 - def profile=(_arg0); end - - # @param : [sender_id] [String] The ID of this Sender prefixed with the channel, e.g., `whatsapp:E.164` - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#133 - def sender_id; end - - # @param : [sender_id] [String] The ID of this Sender prefixed with the channel, e.g., `whatsapp:E.164` - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#133 - def sender_id=(_arg0); end - - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#140 - def to_json(options = T.unsafe(nil)); end - - # @param : [sender_id] [String] The ID of this Sender prefixed with the channel, e.g., `whatsapp:E.164` - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#133 - def webhook; end - - # @param : [sender_id] [String] The ID of this Sender prefixed with the channel, e.g., `whatsapp:E.164` - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#133 - def webhook=(_arg0); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#76 -class Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderRequestsUpdate - # @return [MessagingV2ChannelsSenderRequestsUpdate] a new instance of MessagingV2ChannelsSenderRequestsUpdate - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#155 - def initialize(payload); end - - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#154 - def configuration; end - - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#154 - def configuration=(_arg0); end - - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#154 - def profile; end - - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#154 - def profile=(_arg0); end - - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#160 - def to_json(options = T.unsafe(nil)); end - - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#154 - def webhook; end - - # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] - # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] - # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#154 - def webhook=(_arg0); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#387 -class Twilio::REST::Messaging::V2::ChannelsSenderPage < ::Twilio::REST::Page - # Initialize the ChannelsSenderPage - # - # @param version [Version] Version that contains the resource - # @param response [Response] Response from the API - # @param solution [Hash] Path solution for the resource - # @return [ChannelsSenderPage] ChannelsSenderPage - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#394 - def initialize(version, response, solution); end - - # Build an instance of ChannelsSenderInstance - # - # @param payload [Hash] Payload response from the API - # @return [ChannelsSenderInstance] ChannelsSenderInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#405 - def get_instance(payload); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#411 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/messaging_base.rb#13 -class Twilio::REST::MessagingBase < ::Twilio::REST::Domain - # Initialize messaging domain - # - # @param twilio - The twilio client - # @return [MessagingBase] a new instance of MessagingBase - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging_base.rb#19 - def initialize(twilio); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/messaging_base.rb#38 - def to_s; end - - # source://twilio-ruby//lib/twilio-ruby/rest/messaging_base.rb#28 - def v1; end - - # source://twilio-ruby//lib/twilio-ruby/rest/messaging_base.rb#32 - def v2; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor.rb#3 -class Twilio::REST::Microvisor < ::Twilio::REST::MicrovisorBase - # @param sid [String] A 34-character string that uniquely identifies this App. - # @return [Twilio::REST::Microvisor::V1::AppInstance] if sid was passed. - # @return [Twilio::REST::Microvisor::V1::AppList] - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor.rb#9 - def apps(sid = T.unsafe(nil)); end - - # @param sid [String] A 34-character string that uniquely identifies this Device. - # @return [Twilio::REST::Microvisor::V1::DeviceInstance] if sid was passed. - # @return [Twilio::REST::Microvisor::V1::DeviceList] - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor.rb#18 - def devices(sid = T.unsafe(nil)); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1.rb#18 -class Twilio::REST::Microvisor::V1 < ::Twilio::REST::Version - # Initialize the V1 version of Microvisor - # - # @return [V1] a new instance of V1 - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1.rb#21 - def initialize(domain); end - - # @param key [String] The config key; up to 100 characters. - # @return [Twilio::REST::Microvisor::V1::AccountConfigContext] if key was passed. - # @return [Twilio::REST::Microvisor::V1::AccountConfigList] - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1.rb#34 - def account_configs(key = T.unsafe(nil)); end - - # @param key [String] The secret key; up to 100 characters. - # @return [Twilio::REST::Microvisor::V1::AccountSecretContext] if key was passed. - # @return [Twilio::REST::Microvisor::V1::AccountSecretList] - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1.rb#48 - def account_secrets(key = T.unsafe(nil)); end - - # @param sid [String] A 34-character string that uniquely identifies this App. - # @return [Twilio::REST::Microvisor::V1::AppContext] if sid was passed. - # @return [Twilio::REST::Microvisor::V1::AppList] - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1.rb#62 - def apps(sid = T.unsafe(nil)); end - - # @param sid [String] A 34-character string that uniquely identifies this Device. - # @return [Twilio::REST::Microvisor::V1::DeviceContext] if sid was passed. - # @return [Twilio::REST::Microvisor::V1::DeviceList] - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1.rb#76 - def devices(sid = T.unsafe(nil)); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1.rb#88 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#158 -class Twilio::REST::Microvisor::V1::AccountConfigContext < ::Twilio::REST::InstanceContext - # Initialize the AccountConfigContext - # - # @param version [Version] Version that contains the resource - # @param key [String] The config key; up to 100 characters. - # @return [AccountConfigContext] AccountConfigContext - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#164 - def initialize(version, key); end - - # Delete the AccountConfigInstance - # - # @return [Boolean] True if delete succeeds, false otherwise - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#176 - def delete; end - - # Fetch the AccountConfigInstance - # - # @return [AccountConfigInstance] Fetched AccountConfigInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#188 - def fetch; end - - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#240 - def inspect; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#233 - def to_s; end - - # Update the AccountConfigInstance - # - # @param value [String] The config value; up to 4096 characters. - # @return [AccountConfigInstance] Updated AccountConfigInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#208 - def update(value: T.unsafe(nil)); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#274 -class Twilio::REST::Microvisor::V1::AccountConfigInstance < ::Twilio::REST::InstanceResource - # Initialize the AccountConfigInstance - # - # @param version [Version] Version that contains the resource - # @param payload [Hash] payload that contains response from Twilio - # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this AccountConfig - # resource. - # @param sid [String] The SID of the Call resource to fetch. - # @return [AccountConfigInstance] AccountConfigInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#284 - def initialize(version, payload, key: T.unsafe(nil)); end - - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context - # - # @return [AccountConfigContext] CallContext for this CallInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#304 - def context; end - - # @return [Time] - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#319 - def date_updated; end - - # Delete the AccountConfigInstance - # - # @return [Boolean] True if delete succeeds, false otherwise - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#338 - def delete; end - - # Fetch the AccountConfigInstance - # - # @return [AccountConfigInstance] Fetched AccountConfigInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#346 - def fetch; end - - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#373 - def inspect; end - - # @return [String] The config key; up to 100 characters. - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#313 - def key; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#366 - def to_s; end - - # Update the AccountConfigInstance - # - # @param value [String] The config value; up to 4096 characters. - # @return [AccountConfigInstance] Updated AccountConfigInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#355 - def update(value: T.unsafe(nil)); end - - # @return [String] The absolute URL of the Config. - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#331 - def url; end - - # @return [String] The config value; up to 4096 characters. - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#325 - def value; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#20 -class Twilio::REST::Microvisor::V1::AccountConfigList < ::Twilio::REST::ListResource - # Initialize the AccountConfigList - # - # @param version [Version] Version that contains the resource - # @return [AccountConfigList] AccountConfigList - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#26 - def initialize(version); end - - # Create the AccountConfigInstance - # - # @param key [String] The config key; up to 100 characters. - # @param value [String] The config value; up to 4096 characters. - # @return [AccountConfigInstance] Created AccountConfigInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#38 - def create(key: T.unsafe(nil), value: T.unsafe(nil)); end - - # When passed a block, yields AccountConfigInstance records from the API. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#104 - def each; end - - # Retrieve a single page of AccountConfigInstance records from the API. - # Request is executed immediately. - # - # @param target_url [String] API-generated URL for the requested results page - # @return [Page] Page of AccountConfigInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#141 - def get_page(target_url); end - - # Lists AccountConfigInstance records from the API as a list. - # Unlike stream(), this operation is eager and will load `limit` records into - # memory before returning. - # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Array] Array of up to limit results - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#73 - def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Retrieve a single page of AccountConfigInstance records from the API. - # Request is executed immediately. - # - # @param page_token [String] PageToken provided by the API - # @param page_number [Integer] Page Number, this value is simply for client state - # @param page_size [Integer] Number of records to return, defaults to 50 - # @return [Page] Page of AccountConfigInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#121 - def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Streams Instance records from the API as an Enumerable. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. - # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Enumerable] Enumerable that will yield up to limit results - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#91 - def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#152 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#246 -class Twilio::REST::Microvisor::V1::AccountConfigPage < ::Twilio::REST::Page - # Initialize the AccountConfigPage - # - # @param version [Version] Version that contains the resource - # @param response [Response] Response from the API - # @param solution [Hash] Path solution for the resource - # @return [AccountConfigPage] AccountConfigPage - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#253 - def initialize(version, response, solution); end - - # Build an instance of AccountConfigInstance - # - # @param payload [Hash] Payload response from the API - # @return [AccountConfigInstance] AccountConfigInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#264 - def get_instance(payload); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_config.rb#270 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#158 -class Twilio::REST::Microvisor::V1::AccountSecretContext < ::Twilio::REST::InstanceContext - # Initialize the AccountSecretContext - # - # @param version [Version] Version that contains the resource - # @param key [String] The secret key; up to 100 characters. - # @return [AccountSecretContext] AccountSecretContext - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#164 - def initialize(version, key); end - - # Delete the AccountSecretInstance - # - # @return [Boolean] True if delete succeeds, false otherwise - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#176 - def delete; end - - # Fetch the AccountSecretInstance - # - # @return [AccountSecretInstance] Fetched AccountSecretInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#188 - def fetch; end - - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#240 - def inspect; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#233 - def to_s; end - - # Update the AccountSecretInstance - # - # @param value [String] The secret value; up to 4096 characters. - # @return [AccountSecretInstance] Updated AccountSecretInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#208 - def update(value: T.unsafe(nil)); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#274 -class Twilio::REST::Microvisor::V1::AccountSecretInstance < ::Twilio::REST::InstanceResource - # Initialize the AccountSecretInstance - # - # @param version [Version] Version that contains the resource - # @param payload [Hash] payload that contains response from Twilio - # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this AccountSecret - # resource. - # @param sid [String] The SID of the Call resource to fetch. - # @return [AccountSecretInstance] AccountSecretInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#284 - def initialize(version, payload, key: T.unsafe(nil)); end - - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context - # - # @return [AccountSecretContext] CallContext for this CallInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#303 - def context; end - - # @return [Time] - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#318 - def date_rotated; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#659 + def url; end - # Delete the AccountSecretInstance + # Access the us_app_to_person # - # @return [Boolean] True if delete succeeds, false otherwise + # @return [us_app_to_person] us_app_to_person # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#331 - def delete; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#778 + def us_app_to_person; end - # Fetch the AccountSecretInstance - # - # @return [AccountSecretInstance] Fetched AccountSecretInstance + # @return [Boolean] Whether US A2P campaign is registered for this Service. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#339 - def fetch; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#677 + def us_app_to_person_registered; end - # Provide a detailed, user friendly representation + # Access the us_app_to_person_usecases # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#366 - def inspect; end - - # @return [String] The secret key; up to 100 characters. + # @return [us_app_to_person_usecases] us_app_to_person_usecases # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#312 - def key; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#764 + def us_app_to_person_usecases; end - # Provide a user friendly representation + # @return [Boolean] A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#359 - def to_s; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#683 + def use_inbound_webhook_on_number; end - # Update the AccountSecretInstance - # - # @param value [String] The secret value; up to 4096 characters. - # @return [AccountSecretInstance] Updated AccountSecretInstance + # @return [String] A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#348 - def update(value: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#671 + def usecase; end - # @return [String] The absolute URL of the Secret. + # @return [String] How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `36,000`. Default value is `36,000`. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#324 - def url; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#653 + def validity_period; end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#20 -class Twilio::REST::Microvisor::V1::AccountSecretList < ::Twilio::REST::ListResource - # Initialize the AccountSecretList +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#20 +class Twilio::REST::Messaging::V1::ServiceList < ::Twilio::REST::ListResource + # Initialize the ServiceList # # @param version [Version] Version that contains the resource - # @return [AccountSecretList] AccountSecretList + # @return [ServiceList] ServiceList # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#26 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#26 def initialize(version); end - # Create the AccountSecretInstance + # Create the ServiceInstance # - # @param key [String] The secret key; up to 100 characters. - # @param value [String] The secret value; up to 4096 characters. - # @return [AccountSecretInstance] Created AccountSecretInstance + # @param friendly_name [String] A descriptive string that you create to describe the resource. It can be up to 64 characters long. + # @param inbound_request_url [String] The URL we call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. All messages sent to the Twilio phone number or short code will not be logged and received on the Account. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `inbound_request_url` defined for the Messaging Service. + # @param inbound_method [String] The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. + # @param fallback_url [String] The URL that we call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `fallback_url` defined for the Messaging Service. + # @param fallback_method [String] The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. + # @param status_callback [String] The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. + # @param sticky_sender [Boolean] Whether to enable [Sticky Sender](https://www.twilio.com/docs/messaging/services#sticky-sender) on the Service instance. + # @param mms_converter [Boolean] Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance. + # @param smart_encoding [Boolean] Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance. + # @param scan_message_content [ScanMessageContent] + # @param fallback_to_long_code [Boolean] [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. + # @param area_code_geomatch [Boolean] Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. + # @param validity_period [String] How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `36,000`. Default value is `36,000`. + # @param synchronous_validation [Boolean] Reserved. + # @param usecase [String] A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`. + # @param use_inbound_webhook_on_number [Boolean] A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service. + # @return [ServiceInstance] Created ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#38 - def create(key: T.unsafe(nil), value: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#52 + def create(friendly_name: T.unsafe(nil), inbound_request_url: T.unsafe(nil), inbound_method: T.unsafe(nil), fallback_url: T.unsafe(nil), fallback_method: T.unsafe(nil), status_callback: T.unsafe(nil), sticky_sender: T.unsafe(nil), mms_converter: T.unsafe(nil), smart_encoding: T.unsafe(nil), scan_message_content: T.unsafe(nil), fallback_to_long_code: T.unsafe(nil), area_code_geomatch: T.unsafe(nil), validity_period: T.unsafe(nil), synchronous_validation: T.unsafe(nil), usecase: T.unsafe(nil), use_inbound_webhook_on_number: T.unsafe(nil)); end - # When passed a block, yields AccountSecretInstance records from the API. + # When passed a block, yields ServiceInstance records from the API. # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#104 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#146 def each; end - # Retrieve a single page of AccountSecretInstance records from the API. + # Retrieve a single page of ServiceInstance records from the API. # Request is executed immediately. # # @param target_url [String] API-generated URL for the requested results page - # @return [Page] Page of AccountSecretInstance + # @return [Page] Page of ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#141 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#183 def get_page(target_url); end - # Lists AccountSecretInstance records from the API as a list. + # Lists ServiceInstance records from the API as a list. # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # @@ -73884,18 +73624,18 @@ class Twilio::REST::Microvisor::V1::AccountSecretList < ::Twilio::REST::ListReso # efficient page size, i.e. min(limit, 1000) # @return [Array] Array of up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#73 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#115 def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end - # Retrieve a single page of AccountSecretInstance records from the API. + # Retrieve a single page of ServiceInstance records from the API. # Request is executed immediately. # # @param page_token [String] PageToken provided by the API # @param page_number [Integer] Page Number, this value is simply for client state # @param page_size [Integer] Number of records to return, defaults to 50 - # @return [Page] Page of AccountSecretInstance + # @return [Page] Page of ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#121 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#163 def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end # Streams Instance records from the API as an Enumerable. @@ -73910,342 +73650,430 @@ class Twilio::REST::Microvisor::V1::AccountSecretList < ::Twilio::REST::ListReso # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#91 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#133 def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#152 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#194 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#246 -class Twilio::REST::Microvisor::V1::AccountSecretPage < ::Twilio::REST::Page - # Initialize the AccountSecretPage +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#465 +class Twilio::REST::Messaging::V1::ServicePage < ::Twilio::REST::Page + # Initialize the ServicePage # # @param version [Version] Version that contains the resource # @param response [Response] Response from the API # @param solution [Hash] Path solution for the resource - # @return [AccountSecretPage] AccountSecretPage + # @return [ServicePage] ServicePage # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#253 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#472 def initialize(version, response, solution); end - # Build an instance of AccountSecretInstance + # Build an instance of ServiceInstance # # @param payload [Hash] Payload response from the API - # @return [AccountSecretInstance] AccountSecretInstance + # @return [ServiceInstance] ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#264 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#483 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/account_secret.rb#270 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/service.rb#489 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#130 -class Twilio::REST::Microvisor::V1::AppContext < ::Twilio::REST::InstanceContext - # Initialize the AppContext +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#245 +class Twilio::REST::Messaging::V1::TollfreeVerificationContext < ::Twilio::REST::InstanceContext + # Initialize the TollfreeVerificationContext # # @param version [Version] Version that contains the resource - # @param sid [String] A 34-character string that uniquely identifies this App. - # @return [AppContext] AppContext + # @param sid [String] The unique string to identify Tollfree Verification. + # @return [TollfreeVerificationContext] TollfreeVerificationContext # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#136 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#251 def initialize(version, sid); end - # Access the app_manifests - # - # @return [AppManifestList] - # @return [AppManifestContext] - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#181 - def app_manifests; end - - # Delete the AppInstance + # Delete the TollfreeVerificationInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#149 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#263 def delete; end - # Fetch the AppInstance + # Fetch the TollfreeVerificationInstance # - # @return [AppInstance] Fetched AppInstance + # @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#161 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#275 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#197 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#387 def inspect; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#190 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#380 def to_s; end -end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#45 -class Twilio::REST::Microvisor::V1::AppContext::AppManifestContext < ::Twilio::REST::InstanceContext - # Initialize the AppManifestContext - # - # @param version [Version] Version that contains the resource - # @param app_sid [String] A 34-character string that uniquely identifies this App. - # @return [AppManifestContext] AppManifestContext - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#51 - def initialize(version, app_sid); end - - # Fetch the AppManifestInstance - # - # @return [AppManifestInstance] Fetched AppManifestInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#63 - def fetch; end - - # Provide a detailed, user friendly representation + # Update the TollfreeVerificationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#89 - def inspect; end - - # Provide a user friendly representation + # @param business_name [String] The name of the business or organization using the Tollfree number. + # @param business_website [String] The website of the business or organization using the Tollfree number. + # @param notification_email [String] The email address to receive the notification about the verification result. . + # @param use_case_categories [Array[String]] The category of the use case for the Tollfree Number. List as many are applicable.. + # @param use_case_summary [String] Use this to further explain how messaging is used by the business or organization. + # @param production_message_sample [String] An example of message content, i.e. a sample message. + # @param opt_in_image_urls [Array[String]] Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. + # @param opt_in_type [OptInType] + # @param message_volume [String] Estimate monthly volume of messages from the Tollfree Number. + # @param business_street_address [String] The address of the business or organization using the Tollfree number. + # @param business_street_address2 [String] The address of the business or organization using the Tollfree number. + # @param business_city [String] The city of the business or organization using the Tollfree number. + # @param business_state_province_region [String] The state/province/region of the business or organization using the Tollfree number. + # @param business_postal_code [String] The postal code of the business or organization using the Tollfree number. + # @param business_country [String] The country of the business or organization using the Tollfree number. + # @param additional_information [String] Additional information to be provided for verification. + # @param business_contact_first_name [String] The first name of the contact for the business or organization using the Tollfree number. + # @param business_contact_last_name [String] The last name of the contact for the business or organization using the Tollfree number. + # @param business_contact_email [String] The email address of the contact for the business or organization using the Tollfree number. + # @param business_contact_phone [String] The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. + # @param edit_reason [String] Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'. + # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#82 - def to_s; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#315 + def update(business_name: T.unsafe(nil), business_website: T.unsafe(nil), notification_email: T.unsafe(nil), use_case_categories: T.unsafe(nil), use_case_summary: T.unsafe(nil), production_message_sample: T.unsafe(nil), opt_in_image_urls: T.unsafe(nil), opt_in_type: T.unsafe(nil), message_volume: T.unsafe(nil), business_street_address: T.unsafe(nil), business_street_address2: T.unsafe(nil), business_city: T.unsafe(nil), business_state_province_region: T.unsafe(nil), business_postal_code: T.unsafe(nil), business_country: T.unsafe(nil), additional_information: T.unsafe(nil), business_contact_first_name: T.unsafe(nil), business_contact_last_name: T.unsafe(nil), business_contact_email: T.unsafe(nil), business_contact_phone: T.unsafe(nil), edit_reason: T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#123 -class Twilio::REST::Microvisor::V1::AppContext::AppManifestInstance < ::Twilio::REST::InstanceResource - # Initialize the AppManifestInstance +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#421 +class Twilio::REST::Messaging::V1::TollfreeVerificationInstance < ::Twilio::REST::InstanceResource + # Initialize the TollfreeVerificationInstance # # @param version [Version] Version that contains the resource # @param payload [Hash] payload that contains response from Twilio # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this AppManifest + # {Account}[https://www.twilio.com/docs/iam/api/account] that created this TollfreeVerification # resource. # @param sid [String] The SID of the Call resource to fetch. - # @return [AppManifestInstance] AppManifestInstance + # @return [TollfreeVerificationInstance] TollfreeVerificationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#133 - def initialize(version, payload, app_sid: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#431 + def initialize(version, payload, sid: T.unsafe(nil)); end - # @return [String] A 34-character string that uniquely identifies this App. + # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Tollfree Verification resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#162 - def app_sid; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#499 + def account_sid; end - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context + # @return [String] Additional information to be provided for verification. # - # @return [AppManifestContext] CallContext for this CallInstance + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#649 + def additional_information; end + + # @return [String] The city of the business or organization using the Tollfree number. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#153 - def context; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#553 + def business_city; end - # @return [String] The base-64 encoded manifest + # @return [String] The email address of the contact for the business or organization using the Tollfree number. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#174 - def encoded_bytes; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#595 + def business_contact_email; end - # Fetch the AppManifestInstance + # @return [String] The first name of the contact for the business or organization using the Tollfree number. # - # @return [AppManifestInstance] Fetched AppManifestInstance + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#583 + def business_contact_first_name; end + + # @return [String] The last name of the contact for the business or organization using the Tollfree number. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#187 - def fetch; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#589 + def business_contact_last_name; end - # @return [String] App manifest hash represented as `hash_algorithm:hash_value`. + # @return [String] The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#168 - def hash; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#601 + def business_contact_phone; end - # Provide a detailed, user friendly representation + # @return [String] The country of the business or organization using the Tollfree number. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#201 - def inspect; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#571 + def business_country; end - # Provide a user friendly representation + # @return [String] The name of the business or organization using the Tollfree number. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#194 - def to_s; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#535 + def business_name; end - # @return [String] The absolute URL of this Manifest. + # @return [String] The postal code of the business or organization using the Tollfree number. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#180 - def url; end -end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#565 + def business_postal_code; end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#22 -class Twilio::REST::Microvisor::V1::AppContext::AppManifestList < ::Twilio::REST::ListResource - # Initialize the AppManifestList + # @return [String] The state/province/region of the business or organization using the Tollfree number. # - # @param version [Version] Version that contains the resource - # @return [AppManifestList] AppManifestList + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#559 + def business_state_province_region; end + + # @return [String] The address of the business or organization using the Tollfree number. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#28 - def initialize(version, app_sid: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#541 + def business_street_address; end - # Provide a user friendly representation + # @return [String] The address of the business or organization using the Tollfree number. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#39 - def to_s; end -end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#547 + def business_street_address2; end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#95 -class Twilio::REST::Microvisor::V1::AppContext::AppManifestPage < ::Twilio::REST::Page - # Initialize the AppManifestPage + # @return [String] The website of the business or organization using the Tollfree number. # - # @param version [Version] Version that contains the resource - # @param response [Response] Response from the API - # @param solution [Hash] Path solution for the resource - # @return [AppManifestPage] AppManifestPage + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#577 + def business_website; end + + # Generate an instance context for the instance, the context is capable of + # performing various actions. All instance actions are proxied to the context # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#102 - def initialize(version, response, solution); end + # @return [TollfreeVerificationContext] CallContext for this CallInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#484 + def context; end - # Build an instance of AppManifestInstance + # @return [String] Customer's Profile Bundle BundleSid. # - # @param payload [Hash] Payload response from the API - # @return [AppManifestInstance] AppManifestInstance + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#505 + def customer_profile_sid; end + + # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#113 - def get_instance(payload); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#517 + def date_created; end - # Provide a user friendly representation + # @return [Time] The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb#119 - def to_s; end -end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#523 + def date_updated; end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#231 -class Twilio::REST::Microvisor::V1::AppInstance < ::Twilio::REST::InstanceResource - # Initialize the AppInstance + # Delete the TollfreeVerificationInstance # - # @param version [Version] Version that contains the resource - # @param payload [Hash] payload that contains response from Twilio - # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this App - # resource. - # @param sid [String] The SID of the Call resource to fetch. - # @return [AppInstance] AppInstance + # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#241 - def initialize(version, payload, sid: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#716 + def delete; end - # @return [String] The unique SID identifier of the Account. + # @return [Boolean] If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#280 - def account_sid; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#691 + def edit_allowed; end - # Access the app_manifests + # @return [Time] The date and time when the ability to edit a rejected verification expires. # - # @return [app_manifests] app_manifests + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#685 + def edit_expiration; end + + # @return [String] The error code given when a Tollfree Verification has been rejected. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#339 - def app_manifests; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#679 + def error_code; end - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context + # @return [String] An optional external reference ID supplied by customer and echoed back on status retrieval. # - # @return [AppContext] CallContext for this CallInstance + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#709 + def external_reference_id; end + + # Fetch the TollfreeVerificationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#265 - def context; end + # @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#724 + def fetch; end - # @return [Time] The date that this App was created, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#298 - def date_created; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#811 + def inspect; end - # @return [Time] The date that this App was last updated, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + # @return [String] Estimate monthly volume of messages from the Tollfree Number. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#304 - def date_updated; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#643 + def message_volume; end - # Delete the AppInstance + # @return [String] The email address to receive the notification about the verification result. . # - # @return [Boolean] True if delete succeeds, false otherwise + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#607 + def notification_email; end + + # @return [Array] Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#323 - def delete; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#631 + def opt_in_image_urls; end + + # @return [OptInType] + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#637 + def opt_in_type; end - # Fetch the AppInstance + # @return [String] An example of message content, i.e. a sample message. # - # @return [AppInstance] Fetched AppInstance + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#625 + def production_message_sample; end + + # @return [String] The SID of the Regulated Item. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#331 - def fetch; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#529 + def regulated_item_sid; end - # @return [String] App manifest hash represented as `hash_algorithm:hash_value`. + # @return [String] The rejection reason given when a Tollfree Verification has been rejected. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#286 - def hash; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#673 + def rejection_reason; end - # Provide a detailed, user friendly representation + # @return [Array] A list of rejection reasons and codes describing why a Tollfree Verification has been rejected. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#352 - def inspect; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#697 + def rejection_reasons; end - # @return [Hash] + # @return [Hash] The URLs of the documents associated with the Tollfree Verification resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#316 - def links; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#703 + def resource_links; end - # @return [String] A 34-character string that uniquely identifies this App. + # @return [String] The unique string to identify Tollfree Verification. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#274 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#493 def sid; end + # @return [Status] + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#661 + def status; end + # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#345 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#804 def to_s; end - # @return [String] A developer-defined string that uniquely identifies the App. This value must be unique for all Apps on this Account. The `unique_name` value may be used as an alternative to the `sid` in the URL path to address the resource. + # @return [String] The SID of the Phone Number associated with the Tollfree Verification. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#292 - def unique_name; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#655 + def tollfree_phone_number_sid; end - # @return [String] The URL of this resource. + # @return [String] Tollfree TrustProduct Bundle BundleSid. + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#511 + def trust_product_sid; end + + # Update the TollfreeVerificationInstance + # + # @param business_name [String] The name of the business or organization using the Tollfree number. + # @param business_website [String] The website of the business or organization using the Tollfree number. + # @param notification_email [String] The email address to receive the notification about the verification result. . + # @param use_case_categories [Array[String]] The category of the use case for the Tollfree Number. List as many are applicable.. + # @param use_case_summary [String] Use this to further explain how messaging is used by the business or organization. + # @param production_message_sample [String] An example of message content, i.e. a sample message. + # @param opt_in_image_urls [Array[String]] Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. + # @param opt_in_type [OptInType] + # @param message_volume [String] Estimate monthly volume of messages from the Tollfree Number. + # @param business_street_address [String] The address of the business or organization using the Tollfree number. + # @param business_street_address2 [String] The address of the business or organization using the Tollfree number. + # @param business_city [String] The city of the business or organization using the Tollfree number. + # @param business_state_province_region [String] The state/province/region of the business or organization using the Tollfree number. + # @param business_postal_code [String] The postal code of the business or organization using the Tollfree number. + # @param business_country [String] The country of the business or organization using the Tollfree number. + # @param additional_information [String] Additional information to be provided for verification. + # @param business_contact_first_name [String] The first name of the contact for the business or organization using the Tollfree number. + # @param business_contact_last_name [String] The last name of the contact for the business or organization using the Tollfree number. + # @param business_contact_email [String] The email address of the contact for the business or organization using the Tollfree number. + # @param business_contact_phone [String] The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. + # @param edit_reason [String] Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'. + # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#753 + def update(business_name: T.unsafe(nil), business_website: T.unsafe(nil), notification_email: T.unsafe(nil), use_case_categories: T.unsafe(nil), use_case_summary: T.unsafe(nil), production_message_sample: T.unsafe(nil), opt_in_image_urls: T.unsafe(nil), opt_in_type: T.unsafe(nil), message_volume: T.unsafe(nil), business_street_address: T.unsafe(nil), business_street_address2: T.unsafe(nil), business_city: T.unsafe(nil), business_state_province_region: T.unsafe(nil), business_postal_code: T.unsafe(nil), business_country: T.unsafe(nil), additional_information: T.unsafe(nil), business_contact_first_name: T.unsafe(nil), business_contact_last_name: T.unsafe(nil), business_contact_email: T.unsafe(nil), business_contact_phone: T.unsafe(nil), edit_reason: T.unsafe(nil)); end + + # @return [String] The absolute URL of the Tollfree Verification resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#310 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#667 def url; end + + # @return [Array] The category of the use case for the Tollfree Number. List as many are applicable.. + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#613 + def use_case_categories; end + + # @return [String] Use this to further explain how messaging is used by the business or organization. + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#619 + def use_case_summary; end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#20 -class Twilio::REST::Microvisor::V1::AppList < ::Twilio::REST::ListResource - # Initialize the AppList +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#20 +class Twilio::REST::Messaging::V1::TollfreeVerificationList < ::Twilio::REST::ListResource + # Initialize the TollfreeVerificationList # # @param version [Version] Version that contains the resource - # @return [AppList] AppList + # @return [TollfreeVerificationList] TollfreeVerificationList # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#26 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#26 def initialize(version); end - # When passed a block, yields AppInstance records from the API. + # Create the TollfreeVerificationInstance + # + # @param business_name [String] The name of the business or organization using the Tollfree number. + # @param business_website [String] The website of the business or organization using the Tollfree number. + # @param notification_email [String] The email address to receive the notification about the verification result. . + # @param use_case_categories [Array[String]] The category of the use case for the Tollfree Number. List as many are applicable.. + # @param use_case_summary [String] Use this to further explain how messaging is used by the business or organization. + # @param production_message_sample [String] An example of message content, i.e. a sample message. + # @param opt_in_image_urls [Array[String]] Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. + # @param opt_in_type [OptInType] + # @param message_volume [String] Estimate monthly volume of messages from the Tollfree Number. + # @param tollfree_phone_number_sid [String] The SID of the Phone Number associated with the Tollfree Verification. + # @param customer_profile_sid [String] Customer's Profile Bundle BundleSid. + # @param business_street_address [String] The address of the business or organization using the Tollfree number. + # @param business_street_address2 [String] The address of the business or organization using the Tollfree number. + # @param business_city [String] The city of the business or organization using the Tollfree number. + # @param business_state_province_region [String] The state/province/region of the business or organization using the Tollfree number. + # @param business_postal_code [String] The postal code of the business or organization using the Tollfree number. + # @param business_country [String] The country of the business or organization using the Tollfree number. + # @param additional_information [String] Additional information to be provided for verification. + # @param business_contact_first_name [String] The first name of the contact for the business or organization using the Tollfree number. + # @param business_contact_last_name [String] The last name of the contact for the business or organization using the Tollfree number. + # @param business_contact_email [String] The email address of the contact for the business or organization using the Tollfree number. + # @param business_contact_phone [String] The E.164 formatted phone number of the contact for the business or organization using the Tollfree number. + # @param external_reference_id [String] An optional external reference ID supplied by customer and echoed back on status retrieval. + # @return [TollfreeVerificationInstance] Created TollfreeVerificationInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#59 + def create(business_name: T.unsafe(nil), business_website: T.unsafe(nil), notification_email: T.unsafe(nil), use_case_categories: T.unsafe(nil), use_case_summary: T.unsafe(nil), production_message_sample: T.unsafe(nil), opt_in_image_urls: T.unsafe(nil), opt_in_type: T.unsafe(nil), message_volume: T.unsafe(nil), tollfree_phone_number_sid: T.unsafe(nil), customer_profile_sid: T.unsafe(nil), business_street_address: T.unsafe(nil), business_street_address2: T.unsafe(nil), business_city: T.unsafe(nil), business_state_province_region: T.unsafe(nil), business_postal_code: T.unsafe(nil), business_country: T.unsafe(nil), additional_information: T.unsafe(nil), business_contact_first_name: T.unsafe(nil), business_contact_last_name: T.unsafe(nil), business_contact_email: T.unsafe(nil), business_contact_phone: T.unsafe(nil), external_reference_id: T.unsafe(nil)); end + + # When passed a block, yields TollfreeVerificationInstance records from the API. # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#76 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#183 def each; end - # Retrieve a single page of AppInstance records from the API. + # Retrieve a single page of TollfreeVerificationInstance records from the API. # Request is executed immediately. # # @param target_url [String] API-generated URL for the requested results page - # @return [Page] Page of AppInstance + # @return [Page] Page of TollfreeVerificationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#113 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#228 def get_page(target_url); end - # Lists AppInstance records from the API as a list. + # Lists TollfreeVerificationInstance records from the API as a list. # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # + # @param tollfree_phone_number_sid [String] The SID of the Phone Number associated with the Tollfree Verification. + # @param status [Status] The compliance status of the Tollfree Verification record. + # @param external_reference_id [String] Customer supplied reference id for the Tollfree Verification record. + # @param include_sub_accounts [Boolean] Whether to include Tollfree Verifications from sub accounts in list response. # @param limit [Integer] Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit # @param page_size [Integer] Number of records to fetch per request, when @@ -74254,24 +74082,32 @@ class Twilio::REST::Microvisor::V1::AppList < ::Twilio::REST::ListResource # efficient page size, i.e. min(limit, 1000) # @return [Array] Array of up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#45 - def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#140 + def list(tollfree_phone_number_sid: T.unsafe(nil), status: T.unsafe(nil), external_reference_id: T.unsafe(nil), include_sub_accounts: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end - # Retrieve a single page of AppInstance records from the API. + # Retrieve a single page of TollfreeVerificationInstance records from the API. # Request is executed immediately. # + # @param tollfree_phone_number_sid [String] The SID of the Phone Number associated with the Tollfree Verification. + # @param status [Status] The compliance status of the Tollfree Verification record. + # @param external_reference_id [String] Customer supplied reference id for the Tollfree Verification record. + # @param include_sub_accounts [Boolean] Whether to include Tollfree Verifications from sub accounts in list response. # @param page_token [String] PageToken provided by the API # @param page_number [Integer] Page Number, this value is simply for client state # @param page_size [Integer] Number of records to return, defaults to 50 - # @return [Page] Page of AppInstance + # @return [Page] Page of TollfreeVerificationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#93 - def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#204 + def page(tollfree_phone_number_sid: T.unsafe(nil), status: T.unsafe(nil), external_reference_id: T.unsafe(nil), include_sub_accounts: T.unsafe(nil), page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end # Streams Instance records from the API as an Enumerable. # This operation lazily loads records as efficiently as possible until the limit # is reached. # + # @param tollfree_phone_number_sid [String] The SID of the Phone Number associated with the Tollfree Verification. + # @param status [Status] The compliance status of the Tollfree Verification record. + # @param external_reference_id [String] Customer supplied reference id for the Tollfree Verification record. + # @param include_sub_accounts [Boolean] Whether to include Tollfree Verifications from sub accounts in list response. # @param limit [Integer] Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit # @param page_size [Integer] Number of records to fetch per request, when @@ -74280,264 +74116,332 @@ class Twilio::REST::Microvisor::V1::AppList < ::Twilio::REST::ListResource # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#63 - def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#166 + def stream(tollfree_phone_number_sid: T.unsafe(nil), status: T.unsafe(nil), external_reference_id: T.unsafe(nil), include_sub_accounts: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#124 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#239 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#203 -class Twilio::REST::Microvisor::V1::AppPage < ::Twilio::REST::Page - # Initialize the AppPage +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#393 +class Twilio::REST::Messaging::V1::TollfreeVerificationPage < ::Twilio::REST::Page + # Initialize the TollfreeVerificationPage # # @param version [Version] Version that contains the resource # @param response [Response] Response from the API # @param solution [Hash] Path solution for the resource - # @return [AppPage] AppPage + # @return [TollfreeVerificationPage] TollfreeVerificationPage # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#210 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#400 def initialize(version, response, solution); end - # Build an instance of AppInstance + # Build an instance of TollfreeVerificationInstance # # @param payload [Hash] Payload response from the API - # @return [AppInstance] AppInstance + # @return [TollfreeVerificationInstance] TollfreeVerificationInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#221 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#411 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/app.rb#227 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb#417 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#130 -class Twilio::REST::Microvisor::V1::DeviceContext < ::Twilio::REST::InstanceContext - # Initialize the DeviceContext +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#88 +class Twilio::REST::Messaging::V1::UsecaseInstance < ::Twilio::REST::InstanceResource + # Initialize the UsecaseInstance # # @param version [Version] Version that contains the resource - # @param sid [String] A 34-character string that uniquely identifies this Device. - # @return [DeviceContext] DeviceContext + # @param payload [Hash] payload that contains response from Twilio + # @param account_sid [String] The SID of the + # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Usecase + # resource. + # @param sid [String] The SID of the Call resource to fetch. + # @return [UsecaseInstance] UsecaseInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#136 - def initialize(version, sid); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#98 + def initialize(version, payload); end + + # Provide a detailed, user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#122 + def inspect; end - # Access the device_configs + # Provide a user friendly representation # - # @raise [ArgumentError] - # @return [DeviceConfigList] - # @return [DeviceConfigContext] if sid was passed. + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#116 + def to_s; end + + # @return [Array] Human readable use case details (usecase, description and purpose) of Messaging Service Use Cases. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#224 - def device_configs(key = T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#110 + def usecases; end +end - # Access the device_secrets +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#20 +class Twilio::REST::Messaging::V1::UsecaseList < ::Twilio::REST::ListResource + # Initialize the UsecaseList # - # @raise [ArgumentError] - # @return [DeviceSecretList] - # @return [DeviceSecretContext] if sid was passed. + # @param version [Version] Version that contains the resource + # @return [UsecaseList] UsecaseList # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#205 - def device_secrets(key = T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#26 + def initialize(version); end - # Fetch the DeviceInstance + # Fetch the UsecaseInstance # - # @return [DeviceInstance] Fetched DeviceInstance + # @return [UsecaseInstance] Fetched UsecaseInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#150 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#36 def fetch; end - # Provide a detailed, user friendly representation + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#55 + def to_s; end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#60 +class Twilio::REST::Messaging::V1::UsecasePage < ::Twilio::REST::Page + # Initialize the UsecasePage + # + # @param version [Version] Version that contains the resource + # @param response [Response] Response from the API + # @param solution [Hash] Path solution for the resource + # @return [UsecasePage] UsecasePage + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#67 + def initialize(version, response, solution); end + + # Build an instance of UsecaseInstance + # + # @param payload [Hash] Payload response from the API + # @return [UsecaseInstance] UsecaseInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#78 + def get_instance(payload); end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v1/usecase.rb#84 + def to_s; end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2.rb#18 +class Twilio::REST::Messaging::V2 < ::Twilio::REST::Version + # Initialize the V2 version of Messaging + # + # @return [V2] a new instance of V2 + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2.rb#21 + def initialize(domain); end + + # @param sid [String] The SID of the sender. + # @return [Twilio::REST::Messaging::V2::ChannelsSenderContext] if sid was passed. + # @return [Twilio::REST::Messaging::V2::ChannelsSenderList] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#249 - def inspect; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2.rb#31 + def channels_senders(sid = T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#242 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2.rb#43 def to_s; end - - # Update the DeviceInstance - # - # @param unique_name [String] A unique and addressable name to be assigned to this Device by the developer. It may be used in place of the Device SID. - # @param target_app [String] The SID or unique name of the App to be targeted to the Device. - # @param logging_enabled [Boolean] A Boolean flag specifying whether to enable application logging. Logs will be enabled or extended for 24 hours. - # @param restart_app [Boolean] Set to true to restart the App running on the Device. - # @return [DeviceInstance] Updated DeviceInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#173 - def update(unique_name: T.unsafe(nil), target_app: T.unsafe(nil), logging_enabled: T.unsafe(nil), restart_app: T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#161 -class Twilio::REST::Microvisor::V1::DeviceContext::DeviceConfigContext < ::Twilio::REST::InstanceContext - # Initialize the DeviceConfigContext +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#510 +class Twilio::REST::Messaging::V2::ChannelsSenderContext < ::Twilio::REST::InstanceContext + # Initialize the ChannelsSenderContext # # @param version [Version] Version that contains the resource - # @param device_sid [String] A 34-character string that uniquely identifies the Device. - # @param key [String] The config key; up to 100 characters. - # @return [DeviceConfigContext] DeviceConfigContext + # @param sid [String] The SID of the sender. + # @return [ChannelsSenderContext] ChannelsSenderContext # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#168 - def initialize(version, device_sid, key); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#516 + def initialize(version, sid); end - # Delete the DeviceConfigInstance + # Delete the ChannelsSenderInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#180 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#528 def delete; end - # Fetch the DeviceConfigInstance + # Fetch the ChannelsSenderInstance # - # @return [DeviceConfigInstance] Fetched DeviceConfigInstance + # @return [ChannelsSenderInstance] Fetched ChannelsSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#192 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#540 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#246 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#587 def inspect; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#239 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#580 def to_s; end - # Update the DeviceConfigInstance + # Update the ChannelsSenderInstance # - # @param value [String] The config value; up to 4096 characters. - # @return [DeviceConfigInstance] Updated DeviceConfigInstance + # @param messaging_v2_channels_sender_requests_update [MessagingV2ChannelsSenderRequestsUpdate] + # @return [ChannelsSenderInstance] Updated ChannelsSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#213 - def update(value: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#560 + def update(messaging_v2_channels_sender_requests_update: T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#280 -class Twilio::REST::Microvisor::V1::DeviceContext::DeviceConfigInstance < ::Twilio::REST::InstanceResource - # Initialize the DeviceConfigInstance +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#621 +class Twilio::REST::Messaging::V2::ChannelsSenderInstance < ::Twilio::REST::InstanceResource + # Initialize the ChannelsSenderInstance # # @param version [Version] Version that contains the resource # @param payload [Hash] payload that contains response from Twilio # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this DeviceConfig + # {Account}[https://www.twilio.com/docs/iam/api/account] that created this ChannelsSender # resource. # @param sid [String] The SID of the Call resource to fetch. - # @return [DeviceConfigInstance] DeviceConfigInstance + # @return [ChannelsSenderInstance] ChannelsSenderInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#631 + def initialize(version, payload, sid: T.unsafe(nil)); end + + # @return [MessagingV2RcsComplianceResponse] + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#714 + def compliance; end + + # @return [MessagingV2ChannelsSenderConfiguration] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#290 - def initialize(version, payload, device_sid: T.unsafe(nil), key: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#684 + def configuration; end # Generate an instance context for the instance, the context is capable of # performing various actions. All instance actions are proxied to the context # - # @return [DeviceConfigContext] CallContext for this CallInstance + # @return [ChannelsSenderContext] CallContext for this CallInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#311 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#657 def context; end - # @return [Time] - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#338 - def date_updated; end - - # Delete the DeviceConfigInstance + # Delete the ChannelsSenderInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#351 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#727 def delete; end - # @return [String] A 34-character string that uniquely identifies the parent Device. - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#320 - def device_sid; end - - # Fetch the DeviceConfigInstance + # Fetch the ChannelsSenderInstance # - # @return [DeviceConfigInstance] Fetched DeviceConfigInstance + # @return [ChannelsSenderInstance] Fetched ChannelsSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#359 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#735 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#386 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#760 def inspect; end - # @return [String] The config key; up to 100 characters. + # @return [Array] The reasons why the sender is offline. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#326 - def key; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#708 + def offline_reasons; end + + # @return [MessagingV2ChannelsSenderProfileGenericResponse] + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#696 + def profile; end + + # @return [MessagingV2ChannelsSenderProperties] + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#702 + def properties; end + + # @return [String] The ID of the sender in `whatsapp:` format. + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#678 + def sender_id; end + + # @return [String] The SID of the sender. + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#666 + def sid; end + + # @return [Status] + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#672 + def status; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#379 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#753 def to_s; end - # Update the DeviceConfigInstance + # Update the ChannelsSenderInstance # - # @param value [String] The config value; up to 4096 characters. - # @return [DeviceConfigInstance] Updated DeviceConfigInstance + # @param messaging_v2_channels_sender_requests_update [MessagingV2ChannelsSenderRequestsUpdate] + # @return [ChannelsSenderInstance] Updated ChannelsSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#368 - def update(value: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#744 + def update(messaging_v2_channels_sender_requests_update: T.unsafe(nil)); end - # @return [String] The absolute URL of the Config. + # @return [String] The URL of the resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#344 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#720 def url; end - # @return [String] The config value; up to 4096 characters. + # @return [MessagingV2ChannelsSenderWebhook] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#332 - def value; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#690 + def webhook; end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#22 -class Twilio::REST::Microvisor::V1::DeviceContext::DeviceConfigList < ::Twilio::REST::ListResource - # Initialize the DeviceConfigList +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#20 +class Twilio::REST::Messaging::V2::ChannelsSenderList < ::Twilio::REST::ListResource + # Initialize the ChannelsSenderList # # @param version [Version] Version that contains the resource - # @return [DeviceConfigList] DeviceConfigList + # @return [ChannelsSenderList] ChannelsSenderList # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#28 - def initialize(version, device_sid: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#380 + def initialize(version); end - # Create the DeviceConfigInstance + # Create the ChannelsSenderInstance # - # @param key [String] The config key; up to 100 characters. - # @param value [String] The config value; up to 4096 characters. - # @return [DeviceConfigInstance] Created DeviceConfigInstance + # @param messaging_v2_channels_sender_requests_create [MessagingV2ChannelsSenderRequestsCreate] + # @return [ChannelsSenderInstance] Created ChannelsSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#40 - def create(key: T.unsafe(nil), value: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#391 + def create(messaging_v2_channels_sender_requests_create: T.unsafe(nil)); end - # When passed a block, yields DeviceConfigInstance records from the API. + # When passed a block, yields ChannelsSenderInstance records from the API. # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#107 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#454 def each; end - # Retrieve a single page of DeviceConfigInstance records from the API. + # Retrieve a single page of ChannelsSenderInstance records from the API. # Request is executed immediately. # # @param target_url [String] API-generated URL for the requested results page - # @return [Page] Page of DeviceConfigInstance + # @return [Page] Page of ChannelsSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#493 def get_page(target_url); end - # Lists DeviceConfigInstance records from the API as a list. + # Lists ChannelsSenderInstance records from the API as a list. # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # + # @param channel [String] # @param limit [Integer] Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit # @param page_size [Integer] Number of records to fetch per request, when @@ -74546,24 +74450,26 @@ class Twilio::REST::Microvisor::V1::DeviceContext::DeviceConfigList < ::Twilio:: # efficient page size, i.e. min(limit, 1000) # @return [Array] Array of up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#76 - def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#420 + def list(channel: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end - # Retrieve a single page of DeviceConfigInstance records from the API. + # Retrieve a single page of ChannelsSenderInstance records from the API. # Request is executed immediately. # + # @param channel [String] # @param page_token [String] PageToken provided by the API # @param page_number [Integer] Page Number, this value is simply for client state # @param page_size [Integer] Number of records to return, defaults to 50 - # @return [Page] Page of DeviceConfigInstance + # @return [Page] Page of ChannelsSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#124 - def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#472 + def page(channel: T.unsafe(nil), page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end # Streams Instance records from the API as an Enumerable. # This operation lazily loads records as efficiently as possible until the limit # is reached. # + # @param channel [String] # @param limit [Integer] Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit # @param page_size [Integer] Number of records to fetch per request, when @@ -74572,497 +74478,857 @@ class Twilio::REST::Microvisor::V1::DeviceContext::DeviceConfigList < ::Twilio:: # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#94 - def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#440 + def stream(channel: T.unsafe(nil), limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#155 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#504 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#252 -class Twilio::REST::Microvisor::V1::DeviceContext::DeviceConfigPage < ::Twilio::REST::Page - # Initialize the DeviceConfigPage - # - # @param version [Version] Version that contains the resource - # @param response [Response] Response from the API - # @param solution [Hash] Path solution for the resource - # @return [DeviceConfigPage] DeviceConfigPage +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#22 +class Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderProfile + # @return [MessagingV2ChannelsSenderProfile] a new instance of MessagingV2ChannelsSenderProfile # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#259 - def initialize(version, response, solution); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#37 + def initialize(payload); end - # Build an instance of DeviceConfigInstance - # - # @param payload [Hash] Payload response from the API - # @return [DeviceConfigInstance] DeviceConfigInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#270 - def get_instance(payload); end + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def about; end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def about=(_arg0); end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def accent_color; end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def accent_color=(_arg0); end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def address; end - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb#276 - def to_s; end -end + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def address=(_arg0); end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def banner_url; end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def banner_url=(_arg0); end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def description; end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#161 -class Twilio::REST::Microvisor::V1::DeviceContext::DeviceSecretContext < ::Twilio::REST::InstanceContext - # Initialize the DeviceSecretContext - # - # @param version [Version] Version that contains the resource - # @param device_sid [String] A 34-character string that uniquely identifies the Device. - # @param key [String] The secret key; up to 100 characters. - # @return [DeviceSecretContext] DeviceSecretContext - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#168 - def initialize(version, device_sid, key); end + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def description=(_arg0); end - # Delete the DeviceSecretInstance - # - # @return [Boolean] True if delete succeeds, false otherwise - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#180 - def delete; end + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def emails; end - # Fetch the DeviceSecretInstance - # - # @return [DeviceSecretInstance] Fetched DeviceSecretInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#192 - def fetch; end + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def emails=(_arg0); end - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#246 - def inspect; end + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def logo_url; end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def logo_url=(_arg0); end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def name; end - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#239 - def to_s; end + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def name=(_arg0); end - # Update the DeviceSecretInstance - # - # @param value [String] The secret value; up to 4096 characters. - # @return [DeviceSecretInstance] Updated DeviceSecretInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#213 - def update(value: T.unsafe(nil)); end -end + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def phone_numbers; end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#280 -class Twilio::REST::Microvisor::V1::DeviceContext::DeviceSecretInstance < ::Twilio::REST::InstanceResource - # Initialize the DeviceSecretInstance - # - # @param version [Version] Version that contains the resource - # @param payload [Hash] payload that contains response from Twilio - # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this DeviceSecret - # resource. - # @param sid [String] The SID of the Call resource to fetch. - # @return [DeviceSecretInstance] DeviceSecretInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#290 - def initialize(version, payload, device_sid: T.unsafe(nil), key: T.unsafe(nil)); end + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def phone_numbers=(_arg0); end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def privacy_url; end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def privacy_url=(_arg0); end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def terms_of_service_url; end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def terms_of_service_url=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#52 + def to_json(options = T.unsafe(nil)); end - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context - # - # @return [DeviceSecretContext] CallContext for this CallInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#310 - def context; end + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def vertical; end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def vertical=(_arg0); end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def websites; end + + # @param : [phone_numbers] [Hash] The phone numbers of the sender. + # @param : [about] [String] The profile about text for the sender. + # @param : [address] [String] The address of the sender. + # @param : [description] [String] The description of the sender. + # @param : [logo_url] [String] The logo URL of the sender. + # @param : [banner_url] [String] The banner URL of the sender. + # @param : [privacy_url] [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender. + # @param : [terms_of_service_url] [String] The terms of service URL of the sender. + # @param : [accent_color] [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white. + # @param : [vertical] [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other` + # @param : [websites] [Hash] The websites of the sender. + # @param : [emails] [Hash] The emails of the sender. + # @param : [name] [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362). + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#36 + def websites=(_arg0); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#71 +class Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderProfileGenericResponseEmails + # @return [MessagingV2ChannelsSenderProfileGenericResponseEmails] a new instance of MessagingV2ChannelsSenderProfileGenericResponseEmails + # + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#75 + def initialize(payload); end - # @return [Time] + # @param : [email] [String] + # @param : [label] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#331 - def date_rotated; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#74 + def email; end - # Delete the DeviceSecretInstance - # - # @return [Boolean] True if delete succeeds, false otherwise + # @param : [email] [String] + # @param : [label] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#344 - def delete; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#74 + def email=(_arg0); end - # @return [String] A 34-character string that uniquely identifies the parent Device. + # @param : [email] [String] + # @param : [label] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#319 - def device_sid; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#74 + def label; end - # Fetch the DeviceSecretInstance - # - # @return [DeviceSecretInstance] Fetched DeviceSecretInstance + # @param : [email] [String] + # @param : [label] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#352 - def fetch; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#74 + def label=(_arg0); end - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#379 - def inspect; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#79 + def to_json(options = T.unsafe(nil)); end +end - # @return [String] The secret key; up to 100 characters. +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#87 +class Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers + # @return [MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers] a new instance of MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#325 - def key; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#91 + def initialize(payload); end - # Provide a user friendly representation + # @param : [phone_number] [String] + # @param : [label] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#372 - def to_s; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#90 + def label; end - # Update the DeviceSecretInstance - # - # @param value [String] The secret value; up to 4096 characters. - # @return [DeviceSecretInstance] Updated DeviceSecretInstance + # @param : [phone_number] [String] + # @param : [label] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#361 - def update(value: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#90 + def label=(_arg0); end - # @return [String] The absolute URL of the Secret. + # @param : [phone_number] [String] + # @param : [label] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#337 - def url; end -end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#90 + def phone_number; end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#22 -class Twilio::REST::Microvisor::V1::DeviceContext::DeviceSecretList < ::Twilio::REST::ListResource - # Initialize the DeviceSecretList - # - # @param version [Version] Version that contains the resource - # @return [DeviceSecretList] DeviceSecretList + # @param : [phone_number] [String] + # @param : [label] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#28 - def initialize(version, device_sid: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#90 + def phone_number=(_arg0); end - # Create the DeviceSecretInstance - # - # @param key [String] The secret key; up to 100 characters. - # @param value [String] The secret value; up to 4096 characters. - # @return [DeviceSecretInstance] Created DeviceSecretInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#40 - def create(key: T.unsafe(nil), value: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#95 + def to_json(options = T.unsafe(nil)); end +end - # When passed a block, yields DeviceSecretInstance records from the API. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#103 +class Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderProfileGenericResponseWebsites + # @return [MessagingV2ChannelsSenderProfileGenericResponseWebsites] a new instance of MessagingV2ChannelsSenderProfileGenericResponseWebsites # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#107 - def each; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#107 + def initialize(payload); end - # Retrieve a single page of DeviceSecretInstance records from the API. - # Request is executed immediately. - # - # @param target_url [String] API-generated URL for the requested results page - # @return [Page] Page of DeviceSecretInstance + # @param : [website] [String] + # @param : [label] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#144 - def get_page(target_url); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#106 + def label; end - # Lists DeviceSecretInstance records from the API as a list. - # Unlike stream(), this operation is eager and will load `limit` records into - # memory before returning. - # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Array] Array of up to limit results + # @param : [website] [String] + # @param : [label] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#76 - def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#106 + def label=(_arg0); end - # Retrieve a single page of DeviceSecretInstance records from the API. - # Request is executed immediately. - # - # @param page_token [String] PageToken provided by the API - # @param page_number [Integer] Page Number, this value is simply for client state - # @param page_size [Integer] Number of records to return, defaults to 50 - # @return [Page] Page of DeviceSecretInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#124 - def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#111 + def to_json(options = T.unsafe(nil)); end - # Streams Instance records from the API as an Enumerable. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. - # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Enumerable] Enumerable that will yield up to limit results + # @param : [website] [String] + # @param : [label] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#94 - def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#106 + def website; end - # Provide a user friendly representation + # @param : [website] [String] + # @param : [label] [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#155 - def to_s; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#106 + def website=(_arg0); end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#252 -class Twilio::REST::Microvisor::V1::DeviceContext::DeviceSecretPage < ::Twilio::REST::Page - # Initialize the DeviceSecretPage - # - # @param version [Version] Version that contains the resource - # @param response [Response] Response from the API - # @param solution [Hash] Path solution for the resource - # @return [DeviceSecretPage] DeviceSecretPage +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#119 +class Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderRequestsCreate + # @return [MessagingV2ChannelsSenderRequestsCreate] a new instance of MessagingV2ChannelsSenderRequestsCreate # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#259 - def initialize(version, response, solution); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#125 + def initialize(payload); end - # Build an instance of DeviceSecretInstance - # - # @param payload [Hash] Payload response from the API - # @return [DeviceSecretInstance] DeviceSecretInstance + # @param : [sender_id] [String] The ID of the sender in `whatsapp:` format. + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#270 - def get_instance(payload); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#124 + def configuration; end - # Provide a user friendly representation + # @param : [sender_id] [String] The ID of the sender in `whatsapp:` format. + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb#276 - def to_s; end -end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#124 + def configuration=(_arg0); end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#283 -class Twilio::REST::Microvisor::V1::DeviceInstance < ::Twilio::REST::InstanceResource - # Initialize the DeviceInstance - # - # @param version [Version] Version that contains the resource - # @param payload [Hash] payload that contains response from Twilio - # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Device - # resource. - # @param sid [String] The SID of the Call resource to fetch. - # @return [DeviceInstance] DeviceInstance + # @param : [sender_id] [String] The ID of the sender in `whatsapp:` format. + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#293 - def initialize(version, payload, sid: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#124 + def profile; end - # @return [String] The unique SID identifier of the Account. + # @param : [sender_id] [String] The ID of the sender in `whatsapp:` format. + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#339 - def account_sid; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#124 + def profile=(_arg0); end - # @return [Hash] Information about the target App and the App reported by this Device. Contains the properties `target_sid`, `date_targeted`, `update_status` (one of `up-to-date`, `pending` and `error`), `update_error_code`, `reported_sid` and `date_reported`. + # @param : [sender_id] [String] The ID of the sender in `whatsapp:` format. + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#345 - def app; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#124 + def sender_id; end - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context - # - # @return [DeviceContext] CallContext for this CallInstance + # @param : [sender_id] [String] The ID of the sender in `whatsapp:` format. + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#318 - def context; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#124 + def sender_id=(_arg0); end - # @return [Time] The date that this Device was created, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. - # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#357 - def date_created; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#131 + def to_json(options = T.unsafe(nil)); end - # @return [Time] The date that this Device was last updated, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + # @param : [sender_id] [String] The ID of the sender in `whatsapp:` format. + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#363 - def date_updated; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#124 + def webhook; end - # Access the device_configs - # - # @return [device_configs] device_configs + # @param : [sender_id] [String] The ID of the sender in `whatsapp:` format. + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#419 - def device_configs; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#124 + def webhook=(_arg0); end +end - # Access the device_secrets - # - # @return [device_secrets] device_secrets +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#141 +class Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderRequestsUpdate + # @return [MessagingV2ChannelsSenderRequestsUpdate] a new instance of MessagingV2ChannelsSenderRequestsUpdate # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#412 - def device_secrets; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#146 + def initialize(payload); end - # Fetch the DeviceInstance + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # @return [DeviceInstance] Fetched DeviceInstance + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#145 + def configuration; end + + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#382 - def fetch; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#145 + def configuration=(_arg0); end - # Provide a detailed, user friendly representation + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#432 - def inspect; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#145 + def profile; end - # @return [Hash] The absolute URLs of related resources. + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#375 - def links; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#145 + def profile=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#151 + def to_json(options = T.unsafe(nil)); end - # @return [Hash] Object specifying whether application logging is enabled for this Device. Contains the properties `enabled` and `date_expires`. + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#351 - def logging; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#145 + def webhook; end - # @return [String] A 34-character string that uniquely identifies this Device. + # @param : [configuration] [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration] + # @param : [webhook] [ChannelsSenderList.MessagingV2ChannelsSenderWebhook] + # @param : [profile] [ChannelsSenderList.MessagingV2ChannelsSenderProfile] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#327 - def sid; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#145 + def webhook=(_arg0); end +end - # Provide a user friendly representation +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#160 +class Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2RcsCarrier + # @return [MessagingV2RcsCarrier] a new instance of MessagingV2RcsCarrier # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#425 - def to_s; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#164 + def initialize(payload); end - # @return [String] A developer-defined string that uniquely identifies the Device. This value must be unique for all Devices on this Account. The `unique_name` value may be used as an alternative to the `sid` in the URL path to address the resource. + # @param : [name] [String] The name of the carrier. For example, `Verizon` or `AT&T` for US. + # @param : [status] [MessagingV2RcsCarrierStatus] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#333 - def unique_name; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#163 + def name; end - # Update the DeviceInstance + # @param : [name] [String] The name of the carrier. For example, `Verizon` or `AT&T` for US. + # @param : [status] [MessagingV2RcsCarrierStatus] # - # @param unique_name [String] A unique and addressable name to be assigned to this Device by the developer. It may be used in place of the Device SID. - # @param target_app [String] The SID or unique name of the App to be targeted to the Device. - # @param logging_enabled [Boolean] A Boolean flag specifying whether to enable application logging. Logs will be enabled or extended for 24 hours. - # @param restart_app [Boolean] Set to true to restart the App running on the Device. - # @return [DeviceInstance] Updated DeviceInstance + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#163 + def name=(_arg0); end + + # @param : [name] [String] The name of the carrier. For example, `Verizon` or `AT&T` for US. + # @param : [status] [MessagingV2RcsCarrierStatus] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#394 - def update(unique_name: T.unsafe(nil), target_app: T.unsafe(nil), logging_enabled: T.unsafe(nil), restart_app: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#163 + def status; end - # @return [String] The URL of this resource. + # @param : [name] [String] The name of the carrier. For example, `Verizon` or `AT&T` for US. + # @param : [status] [MessagingV2RcsCarrierStatus] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#369 - def url; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#163 + def status=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#168 + def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#20 -class Twilio::REST::Microvisor::V1::DeviceList < ::Twilio::REST::ListResource - # Initialize the DeviceList - # - # @param version [Version] Version that contains the resource - # @return [DeviceList] DeviceList +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#176 +class Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2RcsComplianceCountryResponse + # @return [MessagingV2RcsComplianceCountryResponse] a new instance of MessagingV2RcsComplianceCountryResponse # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#26 - def initialize(version); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#182 + def initialize(payload); end - # When passed a block, yields DeviceInstance records from the API. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. + # @param : [country] [String] The ISO 3166-1 alpha-2 country code. + # @param : [registration_sid] [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the `countries` array. + # @param : [status] [MessagingV2RcsCountryStatus] + # @param : [carriers] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#76 - def each; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#181 + def carriers; end - # Retrieve a single page of DeviceInstance records from the API. - # Request is executed immediately. - # - # @param target_url [String] API-generated URL for the requested results page - # @return [Page] Page of DeviceInstance + # @param : [country] [String] The ISO 3166-1 alpha-2 country code. + # @param : [registration_sid] [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the `countries` array. + # @param : [status] [MessagingV2RcsCountryStatus] + # @param : [carriers] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#113 - def get_page(target_url); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#181 + def carriers=(_arg0); end - # Lists DeviceInstance records from the API as a list. - # Unlike stream(), this operation is eager and will load `limit` records into - # memory before returning. - # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Array] Array of up to limit results + # @param : [country] [String] The ISO 3166-1 alpha-2 country code. + # @param : [registration_sid] [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the `countries` array. + # @param : [status] [MessagingV2RcsCountryStatus] + # @param : [carriers] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#45 - def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#181 + def country; end - # Retrieve a single page of DeviceInstance records from the API. - # Request is executed immediately. + # @param : [country] [String] The ISO 3166-1 alpha-2 country code. + # @param : [registration_sid] [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the `countries` array. + # @param : [status] [MessagingV2RcsCountryStatus] + # @param : [carriers] [Array] # - # @param page_token [String] PageToken provided by the API - # @param page_number [Integer] Page Number, this value is simply for client state - # @param page_size [Integer] Number of records to return, defaults to 50 - # @return [Page] Page of DeviceInstance + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#181 + def country=(_arg0); end + + # @param : [country] [String] The ISO 3166-1 alpha-2 country code. + # @param : [registration_sid] [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the `countries` array. + # @param : [status] [MessagingV2RcsCountryStatus] + # @param : [carriers] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#93 - def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#181 + def registration_sid; end - # Streams Instance records from the API as an Enumerable. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. + # @param : [country] [String] The ISO 3166-1 alpha-2 country code. + # @param : [registration_sid] [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the `countries` array. + # @param : [status] [MessagingV2RcsCountryStatus] + # @param : [carriers] [Array] # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Enumerable] Enumerable that will yield up to limit results + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#181 + def registration_sid=(_arg0); end + + # @param : [country] [String] The ISO 3166-1 alpha-2 country code. + # @param : [registration_sid] [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the `countries` array. + # @param : [status] [MessagingV2RcsCountryStatus] + # @param : [carriers] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#63 - def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#181 + def status; end - # Provide a user friendly representation + # @param : [country] [String] The ISO 3166-1 alpha-2 country code. + # @param : [registration_sid] [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the `countries` array. + # @param : [status] [MessagingV2RcsCountryStatus] + # @param : [carriers] [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#124 - def to_s; end + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#181 + def status=(_arg0); end + + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#188 + def to_json(options = T.unsafe(nil)); end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#255 -class Twilio::REST::Microvisor::V1::DevicePage < ::Twilio::REST::Page - # Initialize the DevicePage +# source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#593 +class Twilio::REST::Messaging::V2::ChannelsSenderPage < ::Twilio::REST::Page + # Initialize the ChannelsSenderPage # # @param version [Version] Version that contains the resource # @param response [Response] Response from the API # @param solution [Hash] Path solution for the resource - # @return [DevicePage] DevicePage + # @return [ChannelsSenderPage] ChannelsSenderPage # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#262 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#600 def initialize(version, response, solution); end - # Build an instance of DeviceInstance + # Build an instance of ChannelsSenderInstance # # @param payload [Hash] Payload response from the API - # @return [DeviceInstance] DeviceInstance + # @return [ChannelsSenderInstance] ChannelsSenderInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#273 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#611 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor/v1/device.rb#279 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging/v2/channels_sender.rb#617 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/microvisor_base.rb#13 -class Twilio::REST::MicrovisorBase < ::Twilio::REST::Domain - # Initialize microvisor domain +# source://twilio-ruby//lib/twilio-ruby/rest/messaging_base.rb#13 +class Twilio::REST::MessagingBase < ::Twilio::REST::Domain + # Initialize messaging domain # # @param twilio - The twilio client - # @return [MicrovisorBase] a new instance of MicrovisorBase + # @return [MessagingBase] a new instance of MessagingBase # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor_base.rb#19 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging_base.rb#19 def initialize(twilio); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor_base.rb#33 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging_base.rb#38 def to_s; end - # source://twilio-ruby//lib/twilio-ruby/rest/microvisor_base.rb#27 + # source://twilio-ruby//lib/twilio-ruby/rest/messaging_base.rb#28 def v1; end + + # source://twilio-ruby//lib/twilio-ruby/rest/messaging_base.rb#32 + def v2; end end # source://twilio-ruby//lib/twilio-ruby/rest/monitor.rb#3 @@ -76879,7 +77145,7 @@ class Twilio::REST::Numbers::V1 < ::Twilio::REST::Version # @return [Twilio::REST::Numbers::V1::PortingPortInPhoneNumberContext] if phoneNumberSid was passed. # @return [Twilio::REST::Numbers::V1::PortingPortInPhoneNumberList] # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1.rb#91 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1.rb#73 def porting_port_in_phone_number(port_in_request_sid = T.unsafe(nil), phone_number_sid = T.unsafe(nil)); end # @param port_in_request_sid [String] The SID of the Port In request. This is a unique identifier of the port in request. @@ -76896,11 +77162,6 @@ class Twilio::REST::Numbers::V1 < ::Twilio::REST::Version # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1.rb#108 def porting_portabilities(phone_number = T.unsafe(nil)); end - # @return [Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchList] - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1.rb#139 - def porting_webhook_configuration_fetch; end - # @return [Twilio::REST::Numbers::V1::PortingWebhookConfigurationList] # # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1.rb#120 @@ -76915,13 +77176,18 @@ class Twilio::REST::Numbers::V1 < ::Twilio::REST::Version # @return [Twilio::REST::Numbers::V1::SigningRequestConfigurationList] # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1.rb#144 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1.rb#139 def signing_request_configurations; end # Provide a user friendly representation # # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1.rb#149 def to_s; end + + # @return [Twilio::REST::Numbers::V1::WebhookList] + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1.rb#144 + def webhook; end end # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb#63 @@ -77213,94 +77479,109 @@ class Twilio::REST::Numbers::V1::PortingPortInInstance < ::Twilio::REST::Instanc # @return [String] Account Sid or subaccount where the phone number(s) will be Ported # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#212 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#215 def account_sid; end + # @return [String] Japan specific field, indicates the number of phone numbers to automatically approve for cancellation. + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#275 + def auto_cancel_approval_numbers; end + + # @return [String] The bundle sid is an optional identifier to reference a group of regulatory documents for a port request. + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#263 + def bundle_sid; end + # Generate an instance context for the instance, the context is capable of # performing various actions. All instance actions are proxied to the context # # @return [PortingPortInContext] CallContext for this CallInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#191 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#194 def context; end # @return [Time] # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#266 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#287 def date_created; end # Delete the PortingPortInInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#273 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#294 def delete; end # @return [Array] List of document SIDs for all phone numbers included in the port in request. At least one document SID referring to a document of the type Utility Bill is required. # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#260 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#281 def documents; end # Fetch the PortingPortInInstance # # @return [PortingPortInInstance] Fetched PortingPortInInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#281 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#302 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#295 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#316 def inspect; end # @return [Hash] Details regarding the customer’s information with the losing carrier. These values will be used to generate the letter of authorization and should match the losing carrier’s data as closely as possible to ensure the port is accepted. # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#248 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#251 def losing_carrier_information; end # @return [Array] Additional emails to send a copy of the signed LOA to. # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#218 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#221 def notification_emails; end # @return [Array] # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#254 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#257 def phone_numbers; end # @return [String] The SID of the Port In request. This is a unique identifier of the port in request. # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#200 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#203 def port_in_request_sid; end # @return [String] The status of the port in request. The possible values are: In progress, Completed, Expired, In review, Waiting for Signature, Action Required, and Canceled. # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#242 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#245 def port_in_request_status; end - # @return [Date] Target date to port the number. We cannot guarantee that this date will be honored by the other carriers, please work with Ops to get a confirmation of the firm order commitment (FOC) date. Expected format is ISO Local Date, example: ‘2011-12-03`. This date must be at least 7 days in the future for US ports and 10 days in the future for Japanese ports. (This value is only available for custom porting customers.) + # @return [String] A field only required for Japan port in requests. It is a unique identifier for the donor carrier service the line is being ported from. + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#269 + def portability_advance_carrier; end + + # @return [Date] Target date to port the number. We cannot guarantee that this date will be honored by the other carriers, please work with Ops to get a confirmation of the firm order commitment (FOC) date. Expected format is ISO Local Date, example: ‘2011-12-03`. This date must be at least 7 days in the future for US ports and 10 days in the future for Japanese ports. We can't guarantee the exact date and time, as this depends on the losing carrier # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#224 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#227 def target_port_in_date; end - # @return [String] The latest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. (This value is only available for custom porting customers.) + # @return [String] The latest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. We can't guarantee the exact date and time, as this depends on the losing carrier # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#236 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#239 def target_port_in_time_range_end; end - # @return [String] The earliest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. (This value is only available for custom porting customers.) + # @return [String] The earliest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. We can't guarantee the exact date and time, as this depends on the losing carrier # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#230 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#233 def target_port_in_time_range_start; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#288 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#309 def to_s; end # @return [String] The URL of this Port In request # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#206 + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb#209 def url; end end @@ -77844,111 +78125,6 @@ class Twilio::REST::Numbers::V1::PortingWebhookConfigurationDeletePage < ::Twili def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#88 -class Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchInstance < ::Twilio::REST::InstanceResource - # Initialize the PortingWebhookConfigurationFetchInstance - # - # @param version [Version] Version that contains the resource - # @param payload [Hash] payload that contains response from Twilio - # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingWebhookConfigurationFetch - # resource. - # @param sid [String] The SID of the Call resource to fetch. - # @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#98 - def initialize(version, payload); end - - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#157 - def inspect; end - - # @return [Array] A list to filter what notification events to receive for this account and its sub accounts. If it is an empty list, then it means that there are no filters for the notifications events to send in each webhook and all events will get sent. - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#133 - def notifications_of; end - - # @return [Time] Creation date for the port in webhook configuration - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#139 - def port_in_target_date_created; end - - # @return [String] The complete webhook url that will be called when a notification event for port in request or port in phone number happens - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#121 - def port_in_target_url; end - - # @return [Time] Creation date for the port out webhook configuration - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#145 - def port_out_target_date_created; end - - # @return [String] The complete webhook url that will be called when a notification event for a port out phone number happens. - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#127 - def port_out_target_url; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#151 - def to_s; end - - # @return [String] The URL of the webhook configuration request - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#115 - def url; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#20 -class Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchList < ::Twilio::REST::ListResource - # Initialize the PortingWebhookConfigurationFetchList - # - # @param version [Version] Version that contains the resource - # @return [PortingWebhookConfigurationFetchList] PortingWebhookConfigurationFetchList - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#26 - def initialize(version); end - - # Fetch the PortingWebhookConfigurationFetchInstance - # - # @return [PortingWebhookConfigurationFetchInstance] Fetched PortingWebhookConfigurationFetchInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#36 - def fetch; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#55 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#60 -class Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchPage < ::Twilio::REST::Page - # Initialize the PortingWebhookConfigurationFetchPage - # - # @param version [Version] Version that contains the resource - # @param response [Response] Response from the API - # @param solution [Hash] Path solution for the resource - # @return [PortingWebhookConfigurationFetchPage] PortingWebhookConfigurationFetchPage - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#67 - def initialize(version, response, solution); end - - # Build an instance of PortingWebhookConfigurationFetchInstance - # - # @param payload [Hash] Payload response from the API - # @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#78 - def get_instance(payload); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb#84 - def to_s; end -end - # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb#90 class Twilio::REST::Numbers::V1::PortingWebhookConfigurationInstance < ::Twilio::REST::InstanceResource # Initialize the PortingWebhookConfigurationInstance @@ -78224,6 +78400,111 @@ class Twilio::REST::Numbers::V1::SigningRequestConfigurationPage < ::Twilio::RES def to_s; end end +# source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#88 +class Twilio::REST::Numbers::V1::WebhookInstance < ::Twilio::REST::InstanceResource + # Initialize the WebhookInstance + # + # @param version [Version] Version that contains the resource + # @param payload [Hash] payload that contains response from Twilio + # @param account_sid [String] The SID of the + # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Webhook + # resource. + # @param sid [String] The SID of the Call resource to fetch. + # @return [WebhookInstance] WebhookInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#98 + def initialize(version, payload); end + + # Provide a detailed, user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#157 + def inspect; end + + # @return [Array] A list to filter what notification events to receive for this account and its sub accounts. If it is an empty list, then it means that there are no filters for the notifications events to send in each webhook and all events will get sent. + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#133 + def notifications_of; end + + # @return [Time] Creation date for the port in webhook configuration + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#139 + def port_in_target_date_created; end + + # @return [String] The complete webhook url that will be called when a notification event for port in request or port in phone number happens + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#121 + def port_in_target_url; end + + # @return [Time] Creation date for the port out webhook configuration + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#145 + def port_out_target_date_created; end + + # @return [String] The complete webhook url that will be called when a notification event for a port out phone number happens. + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#127 + def port_out_target_url; end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#151 + def to_s; end + + # @return [String] The URL of the webhook configuration request + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#115 + def url; end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#20 +class Twilio::REST::Numbers::V1::WebhookList < ::Twilio::REST::ListResource + # Initialize the WebhookList + # + # @param version [Version] Version that contains the resource + # @return [WebhookList] WebhookList + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#26 + def initialize(version); end + + # Fetch the WebhookInstance + # + # @return [WebhookInstance] Fetched WebhookInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#36 + def fetch; end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#55 + def to_s; end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#60 +class Twilio::REST::Numbers::V1::WebhookPage < ::Twilio::REST::Page + # Initialize the WebhookPage + # + # @param version [Version] Version that contains the resource + # @param response [Response] Response from the API + # @param solution [Hash] Path solution for the resource + # @return [WebhookPage] WebhookPage + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#67 + def initialize(version, response, solution); end + + # Build an instance of WebhookInstance + # + # @param payload [Hash] Payload response from the API + # @return [WebhookInstance] WebhookInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#78 + def get_instance(payload); end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v1/webhook.rb#84 + def to_s; end +end + # source://twilio-ruby//lib/twilio-ruby/rest/numbers/v2.rb#18 class Twilio::REST::Numbers::V2 < ::Twilio::REST::Version # Initialize the V2 version of Numbers @@ -89118,19 +89399,19 @@ class Twilio::REST::Proxy::V1::ServiceContext < ::Twilio::REST::InstanceContext # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#197 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#196 def delete; end # Fetch the ServiceInstance # # @return [ServiceInstance] Fetched ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#209 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#208 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#339 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#319 def inspect; end # Access the phone_numbers @@ -89139,7 +89420,7 @@ class Twilio::REST::Proxy::V1::ServiceContext < ::Twilio::REST::InstanceContext # @return [PhoneNumberList] # @return [PhoneNumberContext] if sid was passed. # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#314 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#294 def phone_numbers(sid = T.unsafe(nil)); end # Access the sessions @@ -89148,21 +89429,12 @@ class Twilio::REST::Proxy::V1::ServiceContext < ::Twilio::REST::InstanceContext # @return [SessionList] # @return [SessionContext] if sid was passed. # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#276 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#275 def sessions(sid = T.unsafe(nil)); end - # Access the short_codes - # - # @raise [ArgumentError] - # @return [ShortCodeList] - # @return [ShortCodeContext] if sid was passed. - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#295 - def short_codes(sid = T.unsafe(nil)); end - # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#332 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#312 def to_s; end # Update the ServiceInstance @@ -89177,7 +89449,7 @@ class Twilio::REST::Proxy::V1::ServiceContext < ::Twilio::REST::InstanceContext # @param chat_instance_sid [String] The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. # @return [ServiceInstance] Updated ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#236 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#235 def update(unique_name: T.unsafe(nil), default_ttl: T.unsafe(nil), callback_url: T.unsafe(nil), geo_match_level: T.unsafe(nil), number_selection_behavior: T.unsafe(nil), intercept_callback_url: T.unsafe(nil), out_of_session_callback_url: T.unsafe(nil), chat_instance_sid: T.unsafe(nil)); end end @@ -90618,265 +90890,7 @@ class Twilio::REST::Proxy::V1::ServiceContext::SessionPage < ::Twilio::REST::Pag def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#158 -class Twilio::REST::Proxy::V1::ServiceContext::ShortCodeContext < ::Twilio::REST::InstanceContext - # Initialize the ShortCodeContext - # - # @param version [Version] Version that contains the resource - # @param service_sid [String] The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to update. - # @param sid [String] The Twilio-provided string that uniquely identifies the ShortCode resource to update. - # @return [ShortCodeContext] ShortCodeContext - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#165 - def initialize(version, service_sid, sid); end - - # Delete the ShortCodeInstance - # - # @return [Boolean] True if delete succeeds, false otherwise - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#177 - def delete; end - - # Fetch the ShortCodeInstance - # - # @return [ShortCodeInstance] Fetched ShortCodeInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#189 - def fetch; end - - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#243 - def inspect; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#236 - def to_s; end - - # Update the ShortCodeInstance - # - # @param is_reserved [Boolean] Whether the short code should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. - # @return [ShortCodeInstance] Updated ShortCodeInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#210 - def update(is_reserved: T.unsafe(nil)); end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#277 -class Twilio::REST::Proxy::V1::ServiceContext::ShortCodeInstance < ::Twilio::REST::InstanceResource - # Initialize the ShortCodeInstance - # - # @param version [Version] Version that contains the resource - # @param payload [Hash] payload that contains response from Twilio - # @param account_sid [String] The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this ShortCode - # resource. - # @param sid [String] The SID of the Call resource to fetch. - # @return [ShortCodeInstance] ShortCodeInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#287 - def initialize(version, payload, service_sid: T.unsafe(nil), sid: T.unsafe(nil)); end - - # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource. - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#328 - def account_sid; end - - # @return [ProxyV1ServiceShortCodeCapabilities] - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#364 - def capabilities; end - - # Generate an instance context for the instance, the context is capable of - # performing various actions. All instance actions are proxied to the context - # - # @return [ShortCodeContext] CallContext for this CallInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#313 - def context; end - - # @return [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time in GMT when the resource was created. - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#340 - def date_created; end - - # @return [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time in GMT when the resource was last updated. - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#346 - def date_updated; end - - # Delete the ShortCodeInstance - # - # @return [Boolean] True if delete succeeds, false otherwise - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#383 - def delete; end - - # Fetch the ShortCodeInstance - # - # @return [ShortCodeInstance] Fetched ShortCodeInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#391 - def fetch; end - - # Provide a detailed, user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#418 - def inspect; end - - # @return [Boolean] Whether the short code should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#376 - def is_reserved; end - - # @return [String] The ISO Country Code for the short code. - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#358 - def iso_country; end - - # @return [String] The SID of the ShortCode resource's parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#334 - def service_sid; end - - # @return [String] The short code's number. - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#352 - def short_code; end - - # @return [String] The unique string that we created to identify the ShortCode resource. - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#322 - def sid; end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#411 - def to_s; end - - # Update the ShortCodeInstance - # - # @param is_reserved [Boolean] Whether the short code should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. - # @return [ShortCodeInstance] Updated ShortCodeInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#400 - def update(is_reserved: T.unsafe(nil)); end - - # @return [String] The absolute URL of the ShortCode resource. - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#370 - def url; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#22 -class Twilio::REST::Proxy::V1::ServiceContext::ShortCodeList < ::Twilio::REST::ListResource - # Initialize the ShortCodeList - # - # @param version [Version] Version that contains the resource - # @return [ShortCodeList] ShortCodeList - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#28 - def initialize(version, service_sid: T.unsafe(nil)); end - - # Create the ShortCodeInstance - # - # @param sid [String] The SID of a Twilio [ShortCode](https://www.twilio.com/en-us/messaging/channels/sms/short-codes) resource that represents the short code you would like to assign to your Proxy Service. - # @return [ShortCodeInstance] Created ShortCodeInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#39 - def create(sid: T.unsafe(nil)); end - - # When passed a block, yields ShortCodeInstance records from the API. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#104 - def each; end - - # Retrieve a single page of ShortCodeInstance records from the API. - # Request is executed immediately. - # - # @param target_url [String] API-generated URL for the requested results page - # @return [Page] Page of ShortCodeInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#141 - def get_page(target_url); end - - # Lists ShortCodeInstance records from the API as a list. - # Unlike stream(), this operation is eager and will load `limit` records into - # memory before returning. - # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Array] Array of up to limit results - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#73 - def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Retrieve a single page of ShortCodeInstance records from the API. - # Request is executed immediately. - # - # @param page_token [String] PageToken provided by the API - # @param page_number [Integer] Page Number, this value is simply for client state - # @param page_size [Integer] Number of records to return, defaults to 50 - # @return [Page] Page of ShortCodeInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#121 - def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Streams Instance records from the API as an Enumerable. - # This operation lazily loads records as efficiently as possible until the limit - # is reached. - # - # @param limit [Integer] Upper limit for the number of records to return. stream() - # guarantees to never return more than limit. Default is no limit - # @param page_size [Integer] Number of records to fetch per request, when - # not set will use the default value of 50 records. If no page_size is defined - # but a limit is defined, stream() will attempt to read the limit with the most - # efficient page size, i.e. min(limit, 1000) - # @return [Enumerable] Enumerable that will yield up to limit results - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#91 - def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#152 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#249 -class Twilio::REST::Proxy::V1::ServiceContext::ShortCodePage < ::Twilio::REST::Page - # Initialize the ShortCodePage - # - # @param version [Version] Version that contains the resource - # @param response [Response] Response from the API - # @param solution [Hash] Path solution for the resource - # @return [ShortCodePage] ShortCodePage - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#256 - def initialize(version, response, solution); end - - # Build an instance of ShortCodeInstance - # - # @param payload [Hash] Payload response from the API - # @return [ShortCodeInstance] ShortCodeInstance - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#267 - def get_instance(payload); end - - # Provide a user friendly representation - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service/short_code.rb#273 - def to_s; end -end - -# source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#373 +# source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#353 class Twilio::REST::Proxy::V1::ServiceInstance < ::Twilio::REST::InstanceResource # Initialize the ServiceInstance # @@ -90888,22 +90902,22 @@ class Twilio::REST::Proxy::V1::ServiceInstance < ::Twilio::REST::InstanceResourc # @param sid [String] The SID of the Call resource to fetch. # @return [ServiceInstance] ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#383 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#363 def initialize(version, payload, sid: T.unsafe(nil)); end # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Service resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#434 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#414 def account_sid; end # @return [String] The URL we call when the interaction status changes. # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#446 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#426 def callback_url; end # @return [String] The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#440 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#420 def chat_instance_sid; end # Generate an instance context for the instance, the context is capable of @@ -90911,102 +90925,95 @@ class Twilio::REST::Proxy::V1::ServiceInstance < ::Twilio::REST::InstanceResourc # # @return [ServiceContext] CallContext for this CallInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#413 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#393 def context; end # @return [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time in GMT when the resource was created. # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#482 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#462 def date_created; end # @return [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time in GMT when the resource was last updated. # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#488 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#468 def date_updated; end # @return [String] The default `ttl` value for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#452 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#432 def default_ttl; end # Delete the ServiceInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#507 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#487 def delete; end # Fetch the ServiceInstance # # @return [ServiceInstance] Fetched ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#515 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#495 def fetch; end # @return [GeoMatchLevel] # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#464 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#444 def geo_match_level; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#584 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#557 def inspect; end # @return [String] The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#470 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#450 def intercept_callback_url; end # @return [Hash] The URLs of resources related to the Service. # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#500 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#480 def links; end # @return [NumberSelectionBehavior] # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#458 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#438 def number_selection_behavior; end # @return [String] The URL we call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/en-us/serverless/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#476 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#456 def out_of_session_callback_url; end # Access the phone_numbers # # @return [phone_numbers] phone_numbers # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#571 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#544 def phone_numbers; end # Access the sessions # # @return [sessions] sessions # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#557 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#537 def sessions; end - # Access the short_codes - # - # @return [short_codes] short_codes - # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#564 - def short_codes; end - # @return [String] The unique string that we created to identify the Service resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#422 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#402 def sid; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#577 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#550 def to_s; end # @return [String] An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. Supports UTF-8 characters. **This value should not have PII.** # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#428 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#408 def unique_name; end # Update the ServiceInstance @@ -91021,12 +91028,12 @@ class Twilio::REST::Proxy::V1::ServiceInstance < ::Twilio::REST::InstanceResourc # @param chat_instance_sid [String] The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. # @return [ServiceInstance] Updated ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#531 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#511 def update(unique_name: T.unsafe(nil), default_ttl: T.unsafe(nil), callback_url: T.unsafe(nil), geo_match_level: T.unsafe(nil), number_selection_behavior: T.unsafe(nil), intercept_callback_url: T.unsafe(nil), out_of_session_callback_url: T.unsafe(nil), chat_instance_sid: T.unsafe(nil)); end # @return [String] The absolute URL of the Service resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#494 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#474 def url; end end @@ -91118,7 +91125,7 @@ class Twilio::REST::Proxy::V1::ServiceList < ::Twilio::REST::ListResource def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#345 +# source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#325 class Twilio::REST::Proxy::V1::ServicePage < ::Twilio::REST::Page # Initialize the ServicePage # @@ -91127,7 +91134,7 @@ class Twilio::REST::Proxy::V1::ServicePage < ::Twilio::REST::Page # @param solution [Hash] Path solution for the resource # @return [ServicePage] ServicePage # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#352 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#332 def initialize(version, response, solution); end # Build an instance of ServiceInstance @@ -91135,12 +91142,12 @@ class Twilio::REST::Proxy::V1::ServicePage < ::Twilio::REST::Page # @param payload [Hash] Payload response from the API # @return [ServiceInstance] ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#363 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#343 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#369 + # source://twilio-ruby//lib/twilio-ruby/rest/proxy/v1/service.rb#349 def to_s; end end @@ -93181,7 +93188,7 @@ class Twilio::REST::Serverless::V1::ServiceContext::EnvironmentContext::LogInsta # source://twilio-ruby//lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb#367 def inspect; end - # @return [Level] + # @return [String] The log level. # # source://twilio-ruby//lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb#328 def level; end @@ -94921,7 +94928,7 @@ class Twilio::REST::Studio::V1::FlowContext::EngagementContext::EngagementContex # @return [Hash] As your flow executes, we save the state in what's called the Flow Context. Any data in the flow context can be accessed by your widgets as variables, either in configuration fields or in text areas as variable substitution. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb#172 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb#157 def context; end # @return [String] The SID of the Engagement. @@ -95091,7 +95098,7 @@ class Twilio::REST::Studio::V1::FlowContext::EngagementContext::StepContext::Ste # @return [Hash] The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb#176 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb#161 def context; end # @return [String] The SID of the Engagement. @@ -95191,91 +95198,96 @@ class Twilio::REST::Studio::V1::FlowContext::EngagementContext::StepInstance < : # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Step resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#282 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#283 def account_sid; end # @return [Hash] The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#306 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#268 def context; end # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#330 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#337 def date_created; end # @return [Time] The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#336 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#343 def date_updated; end # @return [String] The SID of the Engagement. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#294 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#295 def engagement_sid; end # Fetch the StepInstance # # @return [StepInstance] Fetched StepInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#355 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#362 def fetch; end # @return [String] The SID of the Flow. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#288 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#289 def flow_sid; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#376 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#383 def inspect; end # @return [Hash] The URLs of related resources. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#348 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#355 def links; end # @return [String] The event that caused the Flow to transition to the Step. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#300 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#301 def name; end # @return [String] The SID of the parent Step. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#312 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#313 def parent_step_sid; end # @return [String] The unique string that we created to identify the Step resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#276 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#277 def sid; end # Access the step_context # # @return [step_context] step_context # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#363 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#370 def step_context; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#369 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#376 def to_s; end # @return [String] The Widget that preceded the Widget for the Step. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#318 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#319 def transitioned_from; end # @return [String] The Widget that will follow the Widget for the Step. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#324 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#325 def transitioned_to; end + # @return [String] The type of the widget that was executed. + # + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#331 + def type; end + # @return [String] The absolute URL of the resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#342 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb#349 def url; end end @@ -95410,7 +95422,7 @@ class Twilio::REST::Studio::V1::FlowContext::EngagementInstance < ::Twilio::REST # @return [Hash] The current state of the execution flow. As your flow executes, we save the state in a flow context. Your widgets can access the data in the flow context as variables, either in configuration fields or in text areas as variable substitution. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement.rb#364 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/engagement.rb#325 def context; end # @return [Time] The date and time in GMT when the Engagement was created in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. @@ -95710,7 +95722,7 @@ class Twilio::REST::Studio::V1::FlowContext::ExecutionContext::ExecutionContextI # @return [Hash] The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb#172 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb#157 def context; end # @return [String] The SID of the context's Execution resource. @@ -95880,7 +95892,7 @@ class Twilio::REST::Studio::V1::FlowContext::ExecutionContext::ExecutionStepCont # @return [Hash] The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb#176 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb#161 def context; end # @return [String] The SID of the context's Execution resource. @@ -95980,91 +95992,96 @@ class Twilio::REST::Studio::V1::FlowContext::ExecutionContext::ExecutionStepInst # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ExecutionStep resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#282 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#283 def account_sid; end # @return [Hash] The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#312 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#268 def context; end # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#330 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#337 def date_created; end # @return [Time] The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#336 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#343 def date_updated; end # @return [String] The SID of the Step's Execution resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#294 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#295 def execution_sid; end # Fetch the ExecutionStepInstance # # @return [ExecutionStepInstance] Fetched ExecutionStepInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#355 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#362 def fetch; end # @return [String] The SID of the Flow. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#288 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#289 def flow_sid; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#376 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#383 def inspect; end # @return [Hash] The URLs of related resources. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#348 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#355 def links; end # @return [String] The event that caused the Flow to transition to the Step. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#306 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#307 def name; end # @return [String] This field shows the Step SID of the Widget in the parent Flow that started the Subflow. If this Step is not part of a Subflow execution, the value is null. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#300 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#301 def parent_step_sid; end # @return [String] The unique string that we created to identify the ExecutionStep resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#276 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#277 def sid; end # Access the step_context # # @return [step_context] step_context # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#363 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#370 def step_context; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#369 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#376 def to_s; end # @return [String] The Widget that preceded the Widget for the Step. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#318 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#319 def transitioned_from; end # @return [String] The Widget that will follow the Widget for the Step. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#324 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#325 def transitioned_to; end + # @return [String] The type of the widget that was executed. + # + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#331 + def type; end + # @return [String] The absolute URL of the resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#342 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb#349 def url; end end @@ -96199,7 +96216,7 @@ class Twilio::REST::Studio::V1::FlowContext::ExecutionInstance < ::Twilio::REST: # @return [Hash] The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution.rb#403 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v1/flow/execution.rb#364 def context; end # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. @@ -96819,7 +96836,7 @@ class Twilio::REST::Studio::V2::FlowContext::ExecutionContext::ExecutionContextI # @return [Hash] The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb#172 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb#157 def context; end # @return [String] The SID of the context's Execution resource. @@ -96989,7 +97006,7 @@ class Twilio::REST::Studio::V2::FlowContext::ExecutionContext::ExecutionStepCont # @return [Hash] The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb#176 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb#161 def context; end # @return [String] The SID of the context's Execution resource. @@ -97089,91 +97106,96 @@ class Twilio::REST::Studio::V2::FlowContext::ExecutionContext::ExecutionStepInst # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ExecutionStep resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#282 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#283 def account_sid; end # @return [Hash] The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#312 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#268 def context; end # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#330 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#337 def date_created; end # @return [Time] The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#336 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#343 def date_updated; end # @return [String] The SID of the Step's Execution resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#294 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#295 def execution_sid; end # Fetch the ExecutionStepInstance # # @return [ExecutionStepInstance] Fetched ExecutionStepInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#355 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#362 def fetch; end # @return [String] The SID of the Flow. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#288 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#289 def flow_sid; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#376 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#383 def inspect; end # @return [Hash] The URLs of related resources. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#348 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#355 def links; end # @return [String] The event that caused the Flow to transition to the Step. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#306 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#307 def name; end # @return [String] The SID of the parent Step. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#300 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#301 def parent_step_sid; end # @return [String] The unique string that we created to identify the ExecutionStep resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#276 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#277 def sid; end # Access the step_context # # @return [step_context] step_context # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#363 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#370 def step_context; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#369 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#376 def to_s; end # @return [String] The Widget that preceded the Widget for the Step. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#318 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#319 def transitioned_from; end # @return [String] The Widget that will follow the Widget for the Step. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#324 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#325 def transitioned_to; end + # @return [String] The type of the widget that was executed. + # + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#331 + def type; end + # @return [String] The absolute URL of the resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#342 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb#349 def url; end end @@ -97303,7 +97325,7 @@ class Twilio::REST::Studio::V2::FlowContext::ExecutionInstance < ::Twilio::REST: # @return [Hash] The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. # - # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution.rb#396 + # source://twilio-ruby//lib/twilio-ruby/rest/studio/v2/flow/execution.rb#363 def context; end # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. @@ -105659,7 +105681,7 @@ class Twilio::REST::Taskrouter::V1::WorkspaceContext::TaskList < ::Twilio::REST: # @param priority [String] The priority to assign the new task and override the default. When supplied, the new Task will have this priority unless it matches a Workflow Target with a Priority set. When not supplied, the new Task will have the priority of the matching Workflow Target. Value can be 0 to 2^31^ (2,147,483,647). # @param task_channel [String] When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`. # @param workflow_sid [String] The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional. - # @param attributes [String] A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. + # @param attributes [String] A JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. # @param virtual_start_time [Time] The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can't be in the future or before the year of 1900. # @param routing_target [String] A SID of a Worker, Queue, or Workflow to route a Task to # @param ignore_capacity [String] A boolean that indicates if the Task should respect a Worker's capacity and availability during assignment. This field can only be used when the `RoutingTarget` field is set to a Worker SID. By setting `IgnoreCapacity` to a value of `true`, `1`, or `yes`, the Task will be routed to the Worker without respecting their capacity and availability. Any other value will enforce the Worker's capacity and availability. The default value of `IgnoreCapacity` is `true` when the `RoutingTarget` is set to a Worker SID. @@ -111707,22 +111729,22 @@ class Twilio::REST::Trunking::V1::TrunkInstance < ::Twilio::REST::InstanceResour # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Trunk resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#456 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#457 def account_sid; end # @return [String] The types of authentication mapped to the domain. Can be: `IP_ACL` and `CREDENTIAL_LIST`. If both are mapped, the values are returned in a comma delimited list. If empty, the domain will not receive any traffic. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#516 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#517 def auth_type; end # @return [Array] Reserved. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#522 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#529 def auth_type_set; end # @return [Boolean] Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#510 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#511 def cnam_lookup_enabled; end # Generate an instance context for the instance, the context is capable of @@ -111730,126 +111752,131 @@ class Twilio::REST::Trunking::V1::TrunkInstance < ::Twilio::REST::InstanceResour # # @return [TrunkContext] CallContext for this CallInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#447 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#448 def context; end # Access the credentials_lists # # @return [credentials_lists] credentials_lists # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#616 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#623 def credentials_lists; end # @return [Time] The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#528 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#535 def date_created; end # @return [Time] The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#534 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#541 def date_updated; end # Delete the TrunkInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#559 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#566 def delete; end # @return [String] The HTTP method we use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#468 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#469 def disaster_recovery_method; end # @return [String] The URL we call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from this URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#474 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#475 def disaster_recovery_url; end # @return [String] The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and `-` and must end with `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#462 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#463 def domain_name; end # Fetch the TrunkInstance # # @return [TrunkInstance] Fetched TrunkInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#567 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#574 def fetch; end # @return [String] The string that you assigned to describe the resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#480 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#481 def friendly_name; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#650 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#657 def inspect; end # Access the ip_access_control_lists # # @return [ip_access_control_lists] ip_access_control_lists # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#623 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#630 def ip_access_control_lists; end # @return [Hash] The URLs of related resources. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#552 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#559 def links; end # Access the origination_urls # # @return [origination_urls] origination_urls # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#637 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#644 def origination_urls; end # Access the phone_numbers # # @return [phone_numbers] phone_numbers # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#630 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#637 def phone_numbers; end # @return [Hash] The recording settings for the trunk. Can be: `do-not-record`, `record-from-ringing`, `record-from-answer`. If set to `record-from-ringing` or `record-from-answer`, all calls going through the trunk will be recorded. The only way to change recording parameters is on a sub-resource of a Trunk after it has been created. e.g.`/Trunks/[Trunk_SID]/Recording -XPOST -d'Mode=record-from-answer'`. See [Recording](https://www.twilio.com/docs/sip-trunking#recording) for more information. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#492 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#493 def recording; end # Access the recordings # # @return [recordings] recordings # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#609 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#616 def recordings; end # @return [Boolean] Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#486 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#487 def secure; end # @return [String] The unique string that we created to identify the Trunk resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#540 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#547 def sid; end + # @return [Boolean] Whether Symmetric RTP is enabled for the trunk. When Symmetric RTP is disabled, Twilio will send RTP to the destination negotiated in the SDP. Disabling Symmetric RTP is considered to be more secure and therefore recommended. See [Symmetric RTP](https://www.twilio.com/docs/sip-trunking#symmetric-rtp) for more information. + # + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#523 + def symmetric_rtp_enabled; end + # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#643 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#650 def to_s; end # @return [TransferCallerId] # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#504 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#505 def transfer_caller_id; end # @return [TransferSetting] # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#498 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#499 def transfer_mode; end # Update the TrunkInstance @@ -111864,12 +111891,12 @@ class Twilio::REST::Trunking::V1::TrunkInstance < ::Twilio::REST::InstanceResour # @param transfer_caller_id [TransferCallerId] # @return [TrunkInstance] Updated TrunkInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#583 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#590 def update(friendly_name: T.unsafe(nil), domain_name: T.unsafe(nil), disaster_recovery_url: T.unsafe(nil), disaster_recovery_method: T.unsafe(nil), transfer_mode: T.unsafe(nil), secure: T.unsafe(nil), cnam_lookup_enabled: T.unsafe(nil), transfer_caller_id: T.unsafe(nil)); end # @return [String] The absolute URL of the resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#546 + # source://twilio-ruby//lib/twilio-ruby/rest/trunking/v1/trunk.rb#553 def url; end end @@ -116112,7 +116139,7 @@ class Twilio::REST::Verify::V2::SafelistPage < ::Twilio::REST::Page def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#212 +# source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#230 class Twilio::REST::Verify::V2::ServiceContext < ::Twilio::REST::InstanceContext # Initialize the ServiceContext # @@ -116120,7 +116147,7 @@ class Twilio::REST::Verify::V2::ServiceContext < ::Twilio::REST::InstanceContext # @param sid [String] The Twilio-provided string that uniquely identifies the Service resource to update. # @return [ServiceContext] ServiceContext # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#218 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#236 def initialize(version, sid); end # Access the access_tokens @@ -116129,14 +116156,14 @@ class Twilio::REST::Verify::V2::ServiceContext < ::Twilio::REST::InstanceContext # @return [AccessTokenList] # @return [AccessTokenContext] if sid was passed. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#382 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#418 def access_tokens(sid = T.unsafe(nil)); end # Delete the ServiceInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#237 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#255 def delete; end # Access the entities @@ -116145,19 +116172,19 @@ class Twilio::REST::Verify::V2::ServiceContext < ::Twilio::REST::InstanceContext # @return [EntityList] # @return [EntityContext] if sid was passed. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#439 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#475 def entities(identity = T.unsafe(nil)); end # Fetch the ServiceInstance # # @return [ServiceInstance] Fetched ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#249 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#267 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#483 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#519 def inspect; end # Access the messaging_configurations @@ -116166,7 +116193,7 @@ class Twilio::REST::Verify::V2::ServiceContext < ::Twilio::REST::InstanceContext # @return [MessagingConfigurationList] # @return [MessagingConfigurationContext] if sid was passed. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#420 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#456 def messaging_configurations(country = T.unsafe(nil)); end # Access the rate_limits @@ -116175,12 +116202,12 @@ class Twilio::REST::Verify::V2::ServiceContext < ::Twilio::REST::InstanceContext # @return [RateLimitList] # @return [RateLimitContext] if sid was passed. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#458 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#494 def rate_limits(sid = T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#476 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#512 def to_s; end # Update the ServiceInstance @@ -116204,18 +116231,24 @@ class Twilio::REST::Verify::V2::ServiceContext < ::Twilio::REST::InstanceContext # @param default_template_sid [String] The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only. # @param whatsapp_msg_service_sid [String] The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service. # @param whatsapp_from [String] The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service. + # @param passkeys_relying_party_id [String] The Relying Party ID for Passkeys. This is the domain of your application, e.g. `example.com`. It is used to identify your application when creating Passkeys. + # @param passkeys_relying_party_name [String] The Relying Party Name for Passkeys. This is the name of your application, e.g. `Example App`. It is used to identify your application when creating Passkeys. + # @param passkeys_relying_party_origins [String] The Relying Party Origins for Passkeys. This is the origin of your application, e.g. `login.example.com,www.example.com`. It is used to identify your application when creating Passkeys, it can have multiple origins split by `,`. + # @param passkeys_authenticator_attachment [String] The Authenticator Attachment for Passkeys. This is the type of authenticator that will be used to create Passkeys. It can be empty or it can have the values `platform`, `cross-platform` or `any`. + # @param passkeys_discoverable_credentials [String] Indicates whether credentials must be discoverable by the authenticator. It can be empty or it can have the values `required`, `preferred` or `discouraged`. + # @param passkeys_user_verification [String] The User Verification for Passkeys. This is the type of user verification that will be used to create Passkeys. It can be empty or it can have the values `required`, `preferred` or `discouraged`. # @param verify_event_subscription_enabled [Boolean] Whether to allow verifications from the service to reach the stream-events sinks if configured # @return [ServiceInstance] Updated ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#288 - def update(friendly_name: T.unsafe(nil), code_length: T.unsafe(nil), lookup_enabled: T.unsafe(nil), skip_sms_to_landlines: T.unsafe(nil), dtmf_input_required: T.unsafe(nil), tts_name: T.unsafe(nil), psd2_enabled: T.unsafe(nil), do_not_share_warning_enabled: T.unsafe(nil), custom_code_enabled: T.unsafe(nil), push_include_date: T.unsafe(nil), push_apn_credential_sid: T.unsafe(nil), push_fcm_credential_sid: T.unsafe(nil), totp_issuer: T.unsafe(nil), totp_time_step: T.unsafe(nil), totp_code_length: T.unsafe(nil), totp_skew: T.unsafe(nil), default_template_sid: T.unsafe(nil), whatsapp_msg_service_sid: T.unsafe(nil), whatsapp_from: T.unsafe(nil), verify_event_subscription_enabled: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#312 + def update(friendly_name: T.unsafe(nil), code_length: T.unsafe(nil), lookup_enabled: T.unsafe(nil), skip_sms_to_landlines: T.unsafe(nil), dtmf_input_required: T.unsafe(nil), tts_name: T.unsafe(nil), psd2_enabled: T.unsafe(nil), do_not_share_warning_enabled: T.unsafe(nil), custom_code_enabled: T.unsafe(nil), push_include_date: T.unsafe(nil), push_apn_credential_sid: T.unsafe(nil), push_fcm_credential_sid: T.unsafe(nil), totp_issuer: T.unsafe(nil), totp_time_step: T.unsafe(nil), totp_code_length: T.unsafe(nil), totp_skew: T.unsafe(nil), default_template_sid: T.unsafe(nil), whatsapp_msg_service_sid: T.unsafe(nil), whatsapp_from: T.unsafe(nil), passkeys_relying_party_id: T.unsafe(nil), passkeys_relying_party_name: T.unsafe(nil), passkeys_relying_party_origins: T.unsafe(nil), passkeys_authenticator_attachment: T.unsafe(nil), passkeys_discoverable_credentials: T.unsafe(nil), passkeys_user_verification: T.unsafe(nil), verify_event_subscription_enabled: T.unsafe(nil)); end # Access the verification_checks # # @return [VerificationCheckList] # @return [VerificationCheckContext] # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#352 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#388 def verification_checks; end # Access the verifications @@ -116224,7 +116257,7 @@ class Twilio::REST::Verify::V2::ServiceContext < ::Twilio::REST::InstanceContext # @return [VerificationList] # @return [VerificationContext] if sid was passed. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#363 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#399 def verifications(sid = T.unsafe(nil)); end # Access the webhooks @@ -116233,7 +116266,7 @@ class Twilio::REST::Verify::V2::ServiceContext < ::Twilio::REST::InstanceContext # @return [WebhookList] # @return [WebhookContext] if sid was passed. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#401 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#437 def webhooks(sid = T.unsafe(nil)); end end @@ -117210,82 +117243,87 @@ class Twilio::REST::Verify::V2::ServiceContext::EntityContext::NewFactorInstance # @return [String] The unique SID identifier of the Account. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#180 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#181 def account_sid; end # @return [Hash] Contains the `factor_type` specific secret and metadata. For push, this is `binding.public_key` and `binding.alg`. For totp, this is `binding.secret` and `binding.uri`. The `binding.uri` property is generated following the [google authenticator key URI format](https://github.com/google/google-authenticator/wiki/Key-Uri-Format), and `Factor.friendly_name` is used for the “accountname” value and `Service.friendly_name` or `Service.totp.issuer` is used for the `issuer` value. The Binding property is ONLY returned upon Factor creation. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#204 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#205 def binding; end # @return [Hash] An object that contains configurations specific to a `factor_type`. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#240 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#247 def config; end # @return [Time] The date that this Factor was created, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#210 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#217 def date_created; end # @return [Time] The date that this Factor was updated, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#216 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#223 def date_updated; end # @return [String] The unique SID identifier of the Entity. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#192 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#193 def entity_sid; end # @return [FactorTypes] # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#234 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#241 def factor_type; end # @return [String] The friendly name of this Factor. This can be any string up to 64 characters, meant for humans to distinguish between Factors. For `factor_type` `push`, this could be a device name. For `factor_type` `totp`, this value is used as the “account name” in constructing the `binding.uri` property. At the same time, we recommend avoiding providing PII. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#222 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#229 def friendly_name; end # @return [String] Customer unique identity for the Entity owner of the Factor. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. It can only contain dash (-) separated alphanumeric characters. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#198 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#199 def identity; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#264 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#271 def inspect; end # @return [Hash] Custom metadata associated with the factor. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\"os\": \"Android\"}`. Can be up to 1024 characters in length. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#246 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#253 def metadata; end + # @return [Hash] + # + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#211 + def options; end + # @return [String] The unique SID identifier of the Service. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#186 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#187 def service_sid; end # @return [String] A 34 character string that uniquely identifies this Factor. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#174 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#175 def sid; end # @return [FactorStatuses] # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#228 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#235 def status; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#258 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#265 def to_s; end # @return [String] The URL of this resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#252 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb#259 def url; end end @@ -118989,7 +119027,7 @@ class Twilio::REST::Verify::V2::ServiceContext::WebhookPage < ::Twilio::REST::Pa def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#517 +# source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#553 class Twilio::REST::Verify::V2::ServiceInstance < ::Twilio::REST::InstanceResource # Initialize the ServiceInstance # @@ -119001,24 +119039,24 @@ class Twilio::REST::Verify::V2::ServiceInstance < ::Twilio::REST::InstanceResour # @param sid [String] The SID of the Call resource to fetch. # @return [ServiceInstance] ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#527 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#563 def initialize(version, payload, sid: T.unsafe(nil)); end # Access the access_tokens # # @return [access_tokens] access_tokens # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#793 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#854 def access_tokens; end # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Service resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#578 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#615 def account_sid; end # @return [String] The length of the verification code to generate. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#590 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#627 def code_length; end # Generate an instance context for the instance, the context is capable of @@ -119026,127 +119064,132 @@ class Twilio::REST::Verify::V2::ServiceInstance < ::Twilio::REST::InstanceResour # # @return [ServiceContext] CallContext for this CallInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#563 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#600 def context; end # @return [Boolean] Whether to allow sending verifications with a custom code instead of a randomly generated one. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#632 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#669 def custom_code_enabled; end # @return [Time] The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#668 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#711 def date_created; end # @return [Time] The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#674 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#717 def date_updated; end # @return [String] # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#650 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#687 def default_template_sid; end # Delete the ServiceInstance # # @return [Boolean] True if delete succeeds, false otherwise # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#693 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#736 def delete; end # @return [Boolean] Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#626 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#663 def do_not_share_warning_enabled; end # @return [Boolean] Whether to ask the user to press a number before delivering the verify code in a phone call. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#614 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#651 def dtmf_input_required; end # Access the entities # # @return [entities] entities # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#814 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#875 def entities; end # Fetch the ServiceInstance # # @return [ServiceInstance] Fetched ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#701 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#744 def fetch; end - # @return [String] The name that appears in the body of your verification messages. It can be up to 30 characters long and can include letters, numbers, spaces, dashes, underscores. Phone numbers, special characters or links are NOT allowed. **This value should not contain PII.** + # @return [String] The name that appears in the body of your verification messages. It can be up to 30 characters long and can include letters, numbers, spaces, dashes, underscores. Phone numbers, special characters or links are NOT allowed. It cannot contain more than 4 (consecutive or non-consecutive) digits. **This value should not contain PII.** # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#584 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#621 def friendly_name; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#834 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#895 def inspect; end # @return [Hash] The URLs of related resources. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#686 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#729 def links; end # @return [Boolean] Whether to perform a lookup with each verification started and return info about the phone number. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#596 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#633 def lookup_enabled; end # Access the messaging_configurations # # @return [messaging_configurations] messaging_configurations # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#807 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#868 def messaging_configurations; end + # @return [Hash] + # + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#699 + def passkeys; end + # @return [Boolean] Whether to pass PSD2 transaction parameters when starting a verification. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#602 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#639 def psd2_enabled; end # @return [Hash] Configurations for the Push factors (channel) created under this Service. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#638 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#675 def push; end # Access the rate_limits # # @return [rate_limits] rate_limits # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#821 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#882 def rate_limits; end # @return [String] The unique string that we created to identify the Service resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#572 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#609 def sid; end # @return [Boolean] Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#608 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#645 def skip_sms_to_landlines; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#827 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#888 def to_s; end # @return [Hash] Configurations for the TOTP factors (channel) created under this Service. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#644 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#681 def totp; end # @return [String] The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#620 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#657 def tts_name; end # Update the ServiceInstance @@ -119170,46 +119213,52 @@ class Twilio::REST::Verify::V2::ServiceInstance < ::Twilio::REST::InstanceResour # @param default_template_sid [String] The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only. # @param whatsapp_msg_service_sid [String] The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service. # @param whatsapp_from [String] The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service. + # @param passkeys_relying_party_id [String] The Relying Party ID for Passkeys. This is the domain of your application, e.g. `example.com`. It is used to identify your application when creating Passkeys. + # @param passkeys_relying_party_name [String] The Relying Party Name for Passkeys. This is the name of your application, e.g. `Example App`. It is used to identify your application when creating Passkeys. + # @param passkeys_relying_party_origins [String] The Relying Party Origins for Passkeys. This is the origin of your application, e.g. `login.example.com,www.example.com`. It is used to identify your application when creating Passkeys, it can have multiple origins split by `,`. + # @param passkeys_authenticator_attachment [String] The Authenticator Attachment for Passkeys. This is the type of authenticator that will be used to create Passkeys. It can be empty or it can have the values `platform`, `cross-platform` or `any`. + # @param passkeys_discoverable_credentials [String] Indicates whether credentials must be discoverable by the authenticator. It can be empty or it can have the values `required`, `preferred` or `discouraged`. + # @param passkeys_user_verification [String] The User Verification for Passkeys. This is the type of user verification that will be used to create Passkeys. It can be empty or it can have the values `required`, `preferred` or `discouraged`. # @param verify_event_subscription_enabled [Boolean] Whether to allow verifications from the service to reach the stream-events sinks if configured # @return [ServiceInstance] Updated ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#729 - def update(friendly_name: T.unsafe(nil), code_length: T.unsafe(nil), lookup_enabled: T.unsafe(nil), skip_sms_to_landlines: T.unsafe(nil), dtmf_input_required: T.unsafe(nil), tts_name: T.unsafe(nil), psd2_enabled: T.unsafe(nil), do_not_share_warning_enabled: T.unsafe(nil), custom_code_enabled: T.unsafe(nil), push_include_date: T.unsafe(nil), push_apn_credential_sid: T.unsafe(nil), push_fcm_credential_sid: T.unsafe(nil), totp_issuer: T.unsafe(nil), totp_time_step: T.unsafe(nil), totp_code_length: T.unsafe(nil), totp_skew: T.unsafe(nil), default_template_sid: T.unsafe(nil), whatsapp_msg_service_sid: T.unsafe(nil), whatsapp_from: T.unsafe(nil), verify_event_subscription_enabled: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#778 + def update(friendly_name: T.unsafe(nil), code_length: T.unsafe(nil), lookup_enabled: T.unsafe(nil), skip_sms_to_landlines: T.unsafe(nil), dtmf_input_required: T.unsafe(nil), tts_name: T.unsafe(nil), psd2_enabled: T.unsafe(nil), do_not_share_warning_enabled: T.unsafe(nil), custom_code_enabled: T.unsafe(nil), push_include_date: T.unsafe(nil), push_apn_credential_sid: T.unsafe(nil), push_fcm_credential_sid: T.unsafe(nil), totp_issuer: T.unsafe(nil), totp_time_step: T.unsafe(nil), totp_code_length: T.unsafe(nil), totp_skew: T.unsafe(nil), default_template_sid: T.unsafe(nil), whatsapp_msg_service_sid: T.unsafe(nil), whatsapp_from: T.unsafe(nil), passkeys_relying_party_id: T.unsafe(nil), passkeys_relying_party_name: T.unsafe(nil), passkeys_relying_party_origins: T.unsafe(nil), passkeys_authenticator_attachment: T.unsafe(nil), passkeys_discoverable_credentials: T.unsafe(nil), passkeys_user_verification: T.unsafe(nil), verify_event_subscription_enabled: T.unsafe(nil)); end # @return [String] The absolute URL of the resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#680 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#723 def url; end # Access the verification_checks # # @return [verification_checks] verification_checks # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#779 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#840 def verification_checks; end # Access the verifications # # @return [verifications] verifications # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#786 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#847 def verifications; end # @return [Boolean] Whether to allow verifications from the service to reach the stream-events sinks if configured # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#662 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#705 def verify_event_subscription_enabled; end # Access the webhooks # # @return [webhooks] webhooks # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#800 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#861 def webhooks; end # @return [Hash] # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#656 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#693 def whatsapp; end end @@ -119244,17 +119293,23 @@ class Twilio::REST::Verify::V2::ServiceList < ::Twilio::REST::ListResource # @param default_template_sid [String] The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only. # @param whatsapp_msg_service_sid [String] The SID of the Messaging Service containing WhatsApp Sender(s) that Verify will use to send WhatsApp messages to your users. # @param whatsapp_from [String] The number to use as the WhatsApp Sender that Verify will use to send WhatsApp messages to your users.This WhatsApp Sender must be associated with a Messaging Service SID. + # @param passkeys_relying_party_id [String] The Relying Party ID for Passkeys. This is the domain of your application, e.g. `example.com`. It is used to identify your application when creating Passkeys. + # @param passkeys_relying_party_name [String] The Relying Party Name for Passkeys. This is the name of your application, e.g. `Example App`. It is used to identify your application when creating Passkeys. + # @param passkeys_relying_party_origins [String] The Relying Party Origins for Passkeys. This is the origin of your application, e.g. `login.example.com,www.example.com`. It is used to identify your application when creating Passkeys, it can have multiple origins split by `,`. + # @param passkeys_authenticator_attachment [String] The Authenticator Attachment for Passkeys. This is the type of authenticator that will be used to create Passkeys. It can be empty or it can have the values `platform`, `cross-platform` or `any`. + # @param passkeys_discoverable_credentials [String] Indicates whether credentials must be discoverable by the authenticator. It can be empty or it can have the values `required`, `preferred` or `discouraged`. + # @param passkeys_user_verification [String] The User Verification for Passkeys. This is the type of user verification that will be used to create Passkeys. It can be empty or it can have the values `required`, `preferred` or `discouraged`. # @param verify_event_subscription_enabled [Boolean] Whether to allow verifications from the service to reach the stream-events sinks if configured # @return [ServiceInstance] Created ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#56 - def create(friendly_name: T.unsafe(nil), code_length: T.unsafe(nil), lookup_enabled: T.unsafe(nil), skip_sms_to_landlines: T.unsafe(nil), dtmf_input_required: T.unsafe(nil), tts_name: T.unsafe(nil), psd2_enabled: T.unsafe(nil), do_not_share_warning_enabled: T.unsafe(nil), custom_code_enabled: T.unsafe(nil), push_include_date: T.unsafe(nil), push_apn_credential_sid: T.unsafe(nil), push_fcm_credential_sid: T.unsafe(nil), totp_issuer: T.unsafe(nil), totp_time_step: T.unsafe(nil), totp_code_length: T.unsafe(nil), totp_skew: T.unsafe(nil), default_template_sid: T.unsafe(nil), whatsapp_msg_service_sid: T.unsafe(nil), whatsapp_from: T.unsafe(nil), verify_event_subscription_enabled: T.unsafe(nil)); end + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#62 + def create(friendly_name: T.unsafe(nil), code_length: T.unsafe(nil), lookup_enabled: T.unsafe(nil), skip_sms_to_landlines: T.unsafe(nil), dtmf_input_required: T.unsafe(nil), tts_name: T.unsafe(nil), psd2_enabled: T.unsafe(nil), do_not_share_warning_enabled: T.unsafe(nil), custom_code_enabled: T.unsafe(nil), push_include_date: T.unsafe(nil), push_apn_credential_sid: T.unsafe(nil), push_fcm_credential_sid: T.unsafe(nil), totp_issuer: T.unsafe(nil), totp_time_step: T.unsafe(nil), totp_code_length: T.unsafe(nil), totp_skew: T.unsafe(nil), default_template_sid: T.unsafe(nil), whatsapp_msg_service_sid: T.unsafe(nil), whatsapp_from: T.unsafe(nil), passkeys_relying_party_id: T.unsafe(nil), passkeys_relying_party_name: T.unsafe(nil), passkeys_relying_party_origins: T.unsafe(nil), passkeys_authenticator_attachment: T.unsafe(nil), passkeys_discoverable_credentials: T.unsafe(nil), passkeys_user_verification: T.unsafe(nil), verify_event_subscription_enabled: T.unsafe(nil)); end # When passed a block, yields ServiceInstance records from the API. # This operation lazily loads records as efficiently as possible until the limit # is reached. # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#158 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#176 def each; end # Retrieve a single page of ServiceInstance records from the API. @@ -119263,7 +119318,7 @@ class Twilio::REST::Verify::V2::ServiceList < ::Twilio::REST::ListResource # @param target_url [String] API-generated URL for the requested results page # @return [Page] Page of ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#195 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#213 def get_page(target_url); end # Lists ServiceInstance records from the API as a list. @@ -119278,7 +119333,7 @@ class Twilio::REST::Verify::V2::ServiceList < ::Twilio::REST::ListResource # efficient page size, i.e. min(limit, 1000) # @return [Array] Array of up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#127 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#145 def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Retrieve a single page of ServiceInstance records from the API. @@ -119289,7 +119344,7 @@ class Twilio::REST::Verify::V2::ServiceList < ::Twilio::REST::ListResource # @param page_size [Integer] Number of records to return, defaults to 50 # @return [Page] Page of ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#175 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#193 def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end # Streams Instance records from the API as an Enumerable. @@ -119304,16 +119359,16 @@ class Twilio::REST::Verify::V2::ServiceList < ::Twilio::REST::ListResource # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#145 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#163 def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#206 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#224 def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#489 +# source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#525 class Twilio::REST::Verify::V2::ServicePage < ::Twilio::REST::Page # Initialize the ServicePage # @@ -119322,7 +119377,7 @@ class Twilio::REST::Verify::V2::ServicePage < ::Twilio::REST::Page # @param solution [Hash] Path solution for the resource # @return [ServicePage] ServicePage # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#496 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#532 def initialize(version, response, solution); end # Build an instance of ServiceInstance @@ -119330,12 +119385,12 @@ class Twilio::REST::Verify::V2::ServicePage < ::Twilio::REST::Page # @param payload [Hash] Payload response from the API # @return [ServiceInstance] ServiceInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#507 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#543 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#513 + # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/service.rb#549 def to_s; end end @@ -119651,7 +119706,7 @@ class Twilio::REST::Verify::V2::VerificationAttemptList < ::Twilio::REST::ListRe # @param date_created_before [Time] Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z. # @param channel_data_to [String] Destination of a verification. It is phone number in E.164 format. # @param country [String] Filter used to query Verification Attempts sent to the specified destination country. - # @param channel [Channels] Filter used to query Verification Attempts by communication channel. Valid values are `SMS` and `CALL` + # @param channel [Channels] Filter used to query Verification Attempts by communication channel. # @param verify_service_sid [String] Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned. # @param verification_sid [String] Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned. # @param status [ConversionStatus] Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed. @@ -119673,7 +119728,7 @@ class Twilio::REST::Verify::V2::VerificationAttemptList < ::Twilio::REST::ListRe # @param date_created_before [Time] Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z. # @param channel_data_to [String] Destination of a verification. It is phone number in E.164 format. # @param country [String] Filter used to query Verification Attempts sent to the specified destination country. - # @param channel [Channels] Filter used to query Verification Attempts by communication channel. Valid values are `SMS` and `CALL` + # @param channel [Channels] Filter used to query Verification Attempts by communication channel. # @param verify_service_sid [String] Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned. # @param verification_sid [String] Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned. # @param status [ConversionStatus] Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed. @@ -119693,7 +119748,7 @@ class Twilio::REST::Verify::V2::VerificationAttemptList < ::Twilio::REST::ListRe # @param date_created_before [Time] Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z. # @param channel_data_to [String] Destination of a verification. It is phone number in E.164 format. # @param country [String] Filter used to query Verification Attempts sent to the specified destination country. - # @param channel [Channels] Filter used to query Verification Attempts by communication channel. Valid values are `SMS` and `CALL` + # @param channel [Channels] Filter used to query Verification Attempts by communication channel. # @param verify_service_sid [String] Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned. # @param verification_sid [String] Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned. # @param status [ConversionStatus] Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed. @@ -119756,7 +119811,7 @@ class Twilio::REST::Verify::V2::VerificationAttemptsSummaryContext < ::Twilio::R # @param date_created_after [Time] Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z. # @param date_created_before [Time] Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z. # @param country [String] Filter used to consider only Verification Attempts sent to the specified destination country on the summary aggregation. - # @param channel [Channels] Filter Verification Attempts considered on the summary aggregation by communication channel. Valid values are `SMS`, `CALL` and `WHATSAPP` + # @param channel [Channels] Filter Verification Attempts considered on the summary aggregation by communication channel. # @param destination_prefix [String] Filter the Verification Attempts considered on the summary aggregation by Destination prefix. It is the prefix of a phone number in E.164 format. # @return [VerificationAttemptsSummaryInstance] Fetched VerificationAttemptsSummaryInstance # @@ -119797,7 +119852,7 @@ class Twilio::REST::Verify::V2::VerificationAttemptsSummaryInstance < ::Twilio:: # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb#171 def context; end - # @return [Float] Percentage of the confirmed messages over the total, defined by (total_converted/total_attempts)*100. + # @return [String] Percentage of the confirmed messages over the total, defined by (total_converted/total_attempts)*100. # # source://twilio-ruby//lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb#198 def conversion_rate_percentage; end @@ -119808,7 +119863,7 @@ class Twilio::REST::Verify::V2::VerificationAttemptsSummaryInstance < ::Twilio:: # @param date_created_after [Time] Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z. # @param date_created_before [Time] Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z. # @param country [String] Filter used to consider only Verification Attempts sent to the specified destination country on the summary aggregation. - # @param channel [Channels] Filter Verification Attempts considered on the summary aggregation by communication channel. Valid values are `SMS`, `CALL` and `WHATSAPP` + # @param channel [Channels] Filter Verification Attempts considered on the summary aggregation by communication channel. # @param destination_prefix [String] Filter the Verification Attempts considered on the summary aggregation by Destination prefix. It is the prefix of a phone number in E.164 format. # @return [VerificationAttemptsSummaryInstance] Fetched VerificationAttemptsSummaryInstance # @@ -121368,12 +121423,12 @@ class Twilio::REST::Video::V1::RoomContext < ::Twilio::REST::InstanceContext # # @return [RoomInstance] Fetched RoomInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#248 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#249 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#349 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#369 def inspect; end # Access the participants @@ -121382,7 +121437,7 @@ class Twilio::REST::Video::V1::RoomContext < ::Twilio::REST::InstanceContext # @return [ParticipantList] # @return [ParticipantContext] if sid was passed. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#305 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#306 def participants(sid = T.unsafe(nil)); end # Access the recording_rules @@ -121390,7 +121445,7 @@ class Twilio::REST::Video::V1::RoomContext < ::Twilio::REST::InstanceContext # @return [RecordingRulesList] # @return [RecordingRulesContext] # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#294 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#295 def recording_rules; end # Access the recordings @@ -121399,20 +121454,29 @@ class Twilio::REST::Video::V1::RoomContext < ::Twilio::REST::InstanceContext # @return [RoomRecordingList] # @return [RoomRecordingContext] if sid was passed. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#324 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#344 def recordings(sid = T.unsafe(nil)); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#342 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#362 def to_s; end + # Access the transcriptions + # + # @raise [ArgumentError] + # @return [TranscriptionsList] + # @return [TranscriptionsContext] if sid was passed. + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#325 + def transcriptions(ttid = T.unsafe(nil)); end + # Update the RoomInstance # # @param status [RoomStatus] # @return [RoomInstance] Updated RoomInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#268 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#269 def update(status: T.unsafe(nil)); end end @@ -122833,7 +122897,256 @@ class Twilio::REST::Video::V1::RoomContext::RoomRecordingPage < ::Twilio::REST:: def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#383 +# source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#158 +class Twilio::REST::Video::V1::RoomContext::TranscriptionsContext < ::Twilio::REST::InstanceContext + # Initialize the TranscriptionsContext + # + # @param version [Version] Version that contains the resource + # @param room_sid [String] The SID of the room with the transcriptions resource to update. + # @param ttid [String] The Twilio type id of the transcriptions resource to update. + # @return [TranscriptionsContext] TranscriptionsContext + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#165 + def initialize(version, room_sid, ttid); end + + # Fetch the TranscriptionsInstance + # + # @return [TranscriptionsInstance] Fetched TranscriptionsInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#177 + def fetch; end + + # Provide a detailed, user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#231 + def inspect; end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#224 + def to_s; end + + # Update the TranscriptionsInstance + # + # @param status [Status] + # @return [TranscriptionsInstance] Updated TranscriptionsInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#198 + def update(status: T.unsafe(nil)); end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#265 +class Twilio::REST::Video::V1::RoomContext::TranscriptionsInstance < ::Twilio::REST::InstanceResource + # Initialize the TranscriptionsInstance + # + # @param version [Version] Version that contains the resource + # @param payload [Hash] payload that contains response from Twilio + # @param account_sid [String] The SID of the + # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Transcriptions + # resource. + # @param sid [String] The SID of the Call resource to fetch. + # @return [TranscriptionsInstance] TranscriptionsInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#275 + def initialize(version, payload, room_sid: T.unsafe(nil), ttid: T.unsafe(nil)); end + + # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Room resource. + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#317 + def account_sid; end + + # @return [Hash] An JSON object that describes the video layout of the composition in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#371 + def configuration; end + + # Generate an instance context for the instance, the context is capable of + # performing various actions. All instance actions are proxied to the context + # + # @return [TranscriptionsContext] CallContext for this CallInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#302 + def context; end + + # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#335 + def date_created; end + + # @return [Time] The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#341 + def date_updated; end + + # @return [String] The duration in seconds that the transcriptions were `connected`. Populated only after the transcriptions is `stopped`. + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#359 + def duration; end + + # @return [Time] The time when the transcriptions disconnected from the room in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#353 + def end_time; end + + # Fetch the TranscriptionsInstance + # + # @return [TranscriptionsInstance] Fetched TranscriptionsInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#378 + def fetch; end + + # Provide a detailed, user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#405 + def inspect; end + + # @return [String] The SID of the transcriptions's room. + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#323 + def room_sid; end + + # @return [Time] The time of transcriptions connected to the room in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#347 + def start_time; end + + # @return [Status] + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#329 + def status; end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#398 + def to_s; end + + # @return [String] The unique string that we created to identify the transcriptions resource. + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#311 + def ttid; end + + # Update the TranscriptionsInstance + # + # @param status [Status] + # @return [TranscriptionsInstance] Updated TranscriptionsInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#387 + def update(status: T.unsafe(nil)); end + + # @return [String] The absolute URL of the resource. + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#365 + def url; end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#22 +class Twilio::REST::Video::V1::RoomContext::TranscriptionsList < ::Twilio::REST::ListResource + # Initialize the TranscriptionsList + # + # @param version [Version] Version that contains the resource + # @return [TranscriptionsList] TranscriptionsList + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#28 + def initialize(version, room_sid: T.unsafe(nil)); end + + # Create the TranscriptionsInstance + # + # @param configuration [Object] A collection of properties that describe transcription behaviour. + # @return [TranscriptionsInstance] Created TranscriptionsInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#39 + def create(configuration: T.unsafe(nil)); end + + # When passed a block, yields TranscriptionsInstance records from the API. + # This operation lazily loads records as efficiently as possible until the limit + # is reached. + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#104 + def each; end + + # Retrieve a single page of TranscriptionsInstance records from the API. + # Request is executed immediately. + # + # @param target_url [String] API-generated URL for the requested results page + # @return [Page] Page of TranscriptionsInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#141 + def get_page(target_url); end + + # Lists TranscriptionsInstance records from the API as a list. + # Unlike stream(), this operation is eager and will load `limit` records into + # memory before returning. + # + # @param limit [Integer] Upper limit for the number of records to return. stream() + # guarantees to never return more than limit. Default is no limit + # @param page_size [Integer] Number of records to fetch per request, when + # not set will use the default value of 50 records. If no page_size is defined + # but a limit is defined, stream() will attempt to read the limit with the most + # efficient page size, i.e. min(limit, 1000) + # @return [Array] Array of up to limit results + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#73 + def list(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + + # Retrieve a single page of TranscriptionsInstance records from the API. + # Request is executed immediately. + # + # @param page_token [String] PageToken provided by the API + # @param page_number [Integer] Page Number, this value is simply for client state + # @param page_size [Integer] Number of records to return, defaults to 50 + # @return [Page] Page of TranscriptionsInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#121 + def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end + + # Streams Instance records from the API as an Enumerable. + # This operation lazily loads records as efficiently as possible until the limit + # is reached. + # + # @param limit [Integer] Upper limit for the number of records to return. stream() + # guarantees to never return more than limit. Default is no limit + # @param page_size [Integer] Number of records to fetch per request, when + # not set will use the default value of 50 records. If no page_size is defined + # but a limit is defined, stream() will attempt to read the limit with the most + # efficient page size, i.e. min(limit, 1000) + # @return [Enumerable] Enumerable that will yield up to limit results + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#91 + def stream(limit: T.unsafe(nil), page_size: T.unsafe(nil)); end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#152 + def to_s; end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#237 +class Twilio::REST::Video::V1::RoomContext::TranscriptionsPage < ::Twilio::REST::Page + # Initialize the TranscriptionsPage + # + # @param version [Version] Version that contains the resource + # @param response [Response] Response from the API + # @param solution [Hash] Path solution for the resource + # @return [TranscriptionsPage] TranscriptionsPage + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#244 + def initialize(version, response, solution); end + + # Build an instance of TranscriptionsInstance + # + # @param payload [Hash] Payload response from the API + # @return [TranscriptionsInstance] TranscriptionsInstance + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#255 + def get_instance(payload); end + + # Provide a user friendly representation + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room/transcriptions.rb#261 + def to_s; end +end + +# source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#403 class Twilio::REST::Video::V1::RoomInstance < ::Twilio::REST::InstanceResource # Initialize the RoomInstance # @@ -122845,17 +123158,17 @@ class Twilio::REST::Video::V1::RoomInstance < ::Twilio::REST::InstanceResource # @param sid [String] The SID of the Call resource to fetch. # @return [RoomInstance] RoomInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#393 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#413 def initialize(version, payload, sid: T.unsafe(nil)); end # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Room resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#466 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#486 def account_sid; end # @return [Boolean] When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#550 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#570 def audio_only; end # Generate an instance context for the instance, the context is capable of @@ -122863,145 +123176,152 @@ class Twilio::REST::Video::V1::RoomInstance < ::Twilio::REST::InstanceResource # # @return [RoomContext] CallContext for this CallInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#433 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#453 def context; end # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#454 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#474 def date_created; end # @return [Time] The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#460 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#480 def date_updated; end # @return [String] The duration of the room in seconds. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#502 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#522 def duration; end # @return [String] Specifies how long (in minutes) a room will remain active after last participant leaves. Can be configured when creating a room via REST API. For Ad-Hoc rooms this value cannot be changed. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#556 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#576 def empty_room_timeout; end # @return [Boolean] Deprecated, now always considered to be true. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#472 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#492 def enable_turn; end # @return [Time] The UTC end time of the room in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#496 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#516 def end_time; end # Fetch the RoomInstance # # @return [RoomInstance] Fetched RoomInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#587 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#607 def fetch; end # Provide a detailed, user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#635 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#662 def inspect; end # @return [Boolean] Indicates if this is a large room. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#568 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#588 def large_room; end # @return [Hash] The URLs of related resources. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#580 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#600 def links; end # @return [String] The maximum number of published audio, video, and data tracks all participants combined are allowed to publish in the room at the same time. Check [Programmable Video Limits](https://www.twilio.com/docs/video/programmable-video-limits) for more details. If it is set to 0 it means unconstrained. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#526 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#546 def max_concurrent_published_tracks; end # @return [String] The maximum number of seconds a Participant can be connected to the room. The maximum possible value is 86400 seconds (24 hours). The default is 14400 seconds (4 hours). # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#520 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#540 def max_participant_duration; end # @return [String] The maximum number of concurrent Participants allowed in the room. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#514 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#534 def max_participants; end # @return [String] The region for the Room's media server. Can be one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#media-servers). # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#544 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#564 def media_region; end # Access the participants # # @return [participants] participants # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#615 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#635 def participants; end # @return [Boolean] Whether to start recording when Participants connect. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#532 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#552 def record_participants_on_connect; end # Access the recording_rules # # @return [recording_rules] recording_rules # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#608 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#628 def recording_rules; end # Access the recordings # # @return [recordings] recordings # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#622 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#649 def recordings; end # @return [String] The unique string that Twilio created to identify the Room resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#442 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#462 def sid; end # @return [RoomStatus] # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#448 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#468 def status; end # @return [String] The URL Twilio calls using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#484 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#504 def status_callback; end # @return [String] The HTTP method Twilio uses to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#490 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#510 def status_callback_method; end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#628 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#655 def to_s; end + # Access the transcriptions + # + # @return [transcriptions] transcriptions + # + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#642 + def transcriptions; end + # @return [RoomType] # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#508 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#528 def type; end # @return [String] An application-defined string that uniquely identifies the resource. It can be used as a `room_sid` in place of the resource's `sid` in the URL to address the resource, assuming it does not contain any [reserved characters](https://tools.ietf.org/html/rfc3986#section-2.2) that would need to be URL encoded. This value is unique for `in-progress` rooms. SDK clients can use this name to connect to the room. REST API clients can use this name in place of the Room SID to interact with the room as long as the room is `in-progress`. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#478 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#498 def unique_name; end # @return [String] Specifies how long (in minutes) a room will remain active if no one joins. Can be configured when creating a room via REST API. For Ad-Hoc rooms this value cannot be changed. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#562 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#582 def unused_room_timeout; end # Update the RoomInstance @@ -123009,17 +123329,17 @@ class Twilio::REST::Video::V1::RoomInstance < ::Twilio::REST::InstanceResource # @param status [RoomStatus] # @return [RoomInstance] Updated RoomInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#596 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#616 def update(status: T.unsafe(nil)); end # @return [String] The absolute URL of the resource. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#574 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#594 def url; end # @return [Array] An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#538 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#558 def video_codecs; end end @@ -123132,7 +123452,7 @@ class Twilio::REST::Video::V1::RoomList < ::Twilio::REST::ListResource def to_s; end end -# source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#355 +# source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#375 class Twilio::REST::Video::V1::RoomPage < ::Twilio::REST::Page # Initialize the RoomPage # @@ -123141,7 +123461,7 @@ class Twilio::REST::Video::V1::RoomPage < ::Twilio::REST::Page # @param solution [Hash] Path solution for the resource # @return [RoomPage] RoomPage # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#362 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#382 def initialize(version, response, solution); end # Build an instance of RoomInstance @@ -123149,12 +123469,12 @@ class Twilio::REST::Video::V1::RoomPage < ::Twilio::REST::Page # @param payload [Hash] Payload response from the API # @return [RoomInstance] RoomInstance # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#373 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#393 def get_instance(payload); end # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#379 + # source://twilio-ruby//lib/twilio-ruby/rest/video/v1/room.rb#399 def to_s; end end @@ -123238,7 +123558,7 @@ class Twilio::REST::Voice::V1 < ::Twilio::REST::Version # @return [Twilio::REST::Voice::V1::ArchivedCallContext] if sid was passed. # @return [Twilio::REST::Voice::V1::ArchivedCallList] # - # source://twilio-ruby//lib/twilio-ruby/rest/voice/v1.rb#55 + # source://twilio-ruby//lib/twilio-ruby/rest/voice/v1.rb#37 def archived_calls(date = T.unsafe(nil), sid = T.unsafe(nil)); end # @param sid [String] The Twilio-provided string that uniquely identifies the BYOC Trunk resource to fetch. @@ -125426,11 +125746,8 @@ class Twilio::REST::VoiceBase < ::Twilio::REST::Domain # Provide a user friendly representation # - # source://twilio-ruby//lib/twilio-ruby/rest/voice_base.rb#33 + # source://twilio-ruby//lib/twilio-ruby/rest/voice_base.rb#28 def to_s; end - - # source://twilio-ruby//lib/twilio-ruby/rest/voice_base.rb#27 - def v1; end end # source://twilio-ruby//lib/twilio-ruby/rest/wireless.rb#3 @@ -127210,20 +127527,20 @@ module Twilio::TwiML; end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1768 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1792 class Twilio::TwiML::Application < ::Twilio::TwiML::TwiML # @return [Application] a new instance of Application # @yield [_self] # @yieldparam _self [Twilio::TwiML::Application] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1769 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1793 def initialize(application_sid: T.unsafe(nil), **keyword_args); end # Create a new element # sid:: Application sid to dial # keyword_args:: additional attributes # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1780 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1804 def application_sid(sid, **keyword_args); end # Create a new element @@ -127231,31 +127548,31 @@ class Twilio::TwiML::Application < ::Twilio::TwiML::TwiML # value:: The value of the custom parameter # keyword_args:: additional attributes # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1789 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1813 def parameter(name: T.unsafe(nil), value: T.unsafe(nil), **keyword_args); end end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1796 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1820 class Twilio::TwiML::ApplicationSid < ::Twilio::TwiML::TwiML # @return [ApplicationSid] a new instance of ApplicationSid # @yield [_self] # @yieldparam _self [Twilio::TwiML::ApplicationSid] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1797 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1821 def initialize(sid, **keyword_args); end end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2022 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2056 class Twilio::TwiML::Assistant < ::Twilio::TwiML::TwiML # @return [Assistant] a new instance of Assistant # @yield [_self] # @yieldparam _self [Twilio::TwiML::Assistant] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2023 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2057 def initialize(**keyword_args); end # Create a new element @@ -127266,7 +127583,7 @@ class Twilio::TwiML::Assistant < ::Twilio::TwiML::TwiML # speech_model:: Speech model to be used for transcription of this language # keyword_args:: additional attributes # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2038 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2072 def language(code: T.unsafe(nil), tts_provider: T.unsafe(nil), voice: T.unsafe(nil), transcription_provider: T.unsafe(nil), speech_model: T.unsafe(nil), **keyword_args); end # Create a new element @@ -127274,19 +127591,19 @@ class Twilio::TwiML::Assistant < ::Twilio::TwiML::TwiML # value:: The value of the custom parameter # keyword_args:: additional attributes # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2047 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2081 def parameter(name: T.unsafe(nil), value: T.unsafe(nil), **keyword_args); end end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2137 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2171 class Twilio::TwiML::Autopilot < ::Twilio::TwiML::TwiML # @return [Autopilot] a new instance of Autopilot # @yield [_self] # @yieldparam _self [Twilio::TwiML::Autopilot] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2138 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2172 def initialize(name, **keyword_args); end end @@ -127304,20 +127621,20 @@ end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1851 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1875 class Twilio::TwiML::Client < ::Twilio::TwiML::TwiML # @return [Client] a new instance of Client # @yield [_self] # @yieldparam _self [Twilio::TwiML::Client] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1852 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1876 def initialize(identity: T.unsafe(nil), **keyword_args); end # Create a new element # client_identity:: Identity of the client to dial # keyword_args:: additional attributes # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1863 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1887 def identity(client_identity, **keyword_args); end # Create a new element @@ -127325,7 +127642,7 @@ class Twilio::TwiML::Client < ::Twilio::TwiML::TwiML # value:: The value of the custom parameter # keyword_args:: additional attributes # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1872 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1896 def parameter(name: T.unsafe(nil), value: T.unsafe(nil), **keyword_args); end end @@ -127337,13 +127654,13 @@ end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1840 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1864 class Twilio::TwiML::Conference < ::Twilio::TwiML::TwiML # @return [Conference] a new instance of Conference # @yield [_self] # @yieldparam _self [Twilio::TwiML::Conference] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1841 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1865 def initialize(name, **keyword_args); end end @@ -127361,13 +127678,13 @@ end # TwiML Verb # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1890 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1914 class Twilio::TwiML::Connect < ::Twilio::TwiML::TwiML # @return [Connect] a new instance of Connect # @yield [_self] # @yieldparam _self [Twilio::TwiML::Connect] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1891 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1915 def initialize(**keyword_args); end # Create a new element @@ -127383,22 +127700,27 @@ class Twilio::TwiML::Connect < ::Twilio::TwiML::TwiML # dtmf_detection:: Whether DTMF tones should be detected and reported in speech transcription # welcome_greeting:: The sentence to be played automatically when the session is connected # partial_prompts:: Whether partial prompts should be reported to WebSocket server before the caller finishes speaking - # interruptible:: Whether caller's speaking can interrupt the play of text-to-speech - # interrupt_by_dtmf:: Whether DTMF tone can interrupt the play of text-to-speech - # welcome_greeting_interruptible:: Whether caller's speaking can interrupt the welcome greeting - # debug:: Whether debugging on the session is enabled + # welcome_greeting_interruptible:: "Whether and how the input from a caller, such as speaking or DTMF can interrupt the welcome greeting + # interruptible:: Whether and how the input from a caller, such as speaking or DTMF can interrupt the play of text-to-speech + # preemptible:: Whether subsequent text-to-speech or play media can interrupt the on-going play of text-to-speech or media + # hints:: Phrases to help better accuracy in speech recognition of these pharases + # intelligence_service:: The Conversational Intelligence Service id or unique name to be used for the session + # report_input_during_agent_speech:: Whether prompts should be reported to WebSocket server when text-to-speech playing and interrupt is disabled + # elevenlabs_text_normalization:: When using ElevenLabs as TTS provider, this parameter allows you to enable or disable its text normalization feature + # interrupt_sensitivity:: Set the sensitivity of the interrupt feature for speech. The value can be low, medium, or high + # debug:: Multiple debug options to be used for troubleshooting # keyword_args:: additional attributes # # @yield [assistant] # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2012 - def assistant(id: T.unsafe(nil), language: T.unsafe(nil), tts_language: T.unsafe(nil), transcription_language: T.unsafe(nil), tts_provider: T.unsafe(nil), voice: T.unsafe(nil), transcription_provider: T.unsafe(nil), speech_model: T.unsafe(nil), profanity_filter: T.unsafe(nil), dtmf_detection: T.unsafe(nil), welcome_greeting: T.unsafe(nil), partial_prompts: T.unsafe(nil), interruptible: T.unsafe(nil), interrupt_by_dtmf: T.unsafe(nil), welcome_greeting_interruptible: T.unsafe(nil), debug: T.unsafe(nil), **keyword_args); end + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2046 + def assistant(id: T.unsafe(nil), language: T.unsafe(nil), tts_language: T.unsafe(nil), transcription_language: T.unsafe(nil), tts_provider: T.unsafe(nil), voice: T.unsafe(nil), transcription_provider: T.unsafe(nil), speech_model: T.unsafe(nil), profanity_filter: T.unsafe(nil), dtmf_detection: T.unsafe(nil), welcome_greeting: T.unsafe(nil), partial_prompts: T.unsafe(nil), welcome_greeting_interruptible: T.unsafe(nil), interruptible: T.unsafe(nil), preemptible: T.unsafe(nil), hints: T.unsafe(nil), intelligence_service: T.unsafe(nil), report_input_during_agent_speech: T.unsafe(nil), elevenlabs_text_normalization: T.unsafe(nil), interrupt_sensitivity: T.unsafe(nil), debug: T.unsafe(nil), **keyword_args); end # Create a new element # name:: Autopilot assistant sid or unique name # keyword_args:: additional attributes # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1911 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1935 def autopilot(name, **keyword_args); end # Create a new element @@ -127418,7 +127740,7 @@ class Twilio::TwiML::Connect < ::Twilio::TwiML::TwiML # status_callback_event:: Events to call status callback URL # keyword_args:: additional attributes # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1963 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1987 def conversation(service_instance_sid: T.unsafe(nil), inbound_autocreation: T.unsafe(nil), routing_assignment_timeout: T.unsafe(nil), inbound_timeout: T.unsafe(nil), url: T.unsafe(nil), method: T.unsafe(nil), record: T.unsafe(nil), trim: T.unsafe(nil), recording_status_callback: T.unsafe(nil), recording_status_callback_method: T.unsafe(nil), recording_status_callback_event: T.unsafe(nil), status_callback: T.unsafe(nil), status_callback_method: T.unsafe(nil), status_callback_event: T.unsafe(nil), **keyword_args); end # Create a new element @@ -127434,23 +127756,28 @@ class Twilio::TwiML::Connect < ::Twilio::TwiML::TwiML # dtmf_detection:: Whether DTMF tones should be detected and reported in speech transcription # welcome_greeting:: The sentence to be played automatically when the session is connected # partial_prompts:: Whether partial prompts should be reported to WebSocket server before the caller finishes speaking - # interruptible:: Whether caller's speaking can interrupt the play of text-to-speech - # interrupt_by_dtmf:: Whether DTMF tone can interrupt the play of text-to-speech - # welcome_greeting_interruptible:: Whether caller's speaking can interrupt the welcome greeting - # debug:: Whether debugging on the session is enabled + # welcome_greeting_interruptible:: "Whether and how the input from a caller, such as speaking or DTMF can interrupt the welcome greeting + # interruptible:: Whether and how the input from a caller, such as speaking or DTMF can interrupt the play of text-to-speech + # preemptible:: Whether subsequent text-to-speech or play media can interrupt the on-going play of text-to-speech or media + # hints:: Phrases to help better accuracy in speech recognition of these pharases + # intelligence_service:: The Conversational Intelligence Service id or unique name to be used for the session + # report_input_during_agent_speech:: Whether prompts should be reported to WebSocket server when text-to-speech playing and interrupt is disabled + # elevenlabs_text_normalization:: When using ElevenLabs as TTS provider, this parameter allows you to enable or disable its text normalization feature + # interrupt_sensitivity:: Set the sensitivity of the interrupt feature for speech. The value can be low, medium, or high + # debug:: Multiple debug options to be used for troubleshooting # keyword_args:: additional attributes # # @yield [conversation_relay] # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1986 - def conversation_relay(url: T.unsafe(nil), language: T.unsafe(nil), tts_language: T.unsafe(nil), transcription_language: T.unsafe(nil), tts_provider: T.unsafe(nil), voice: T.unsafe(nil), transcription_provider: T.unsafe(nil), speech_model: T.unsafe(nil), profanity_filter: T.unsafe(nil), dtmf_detection: T.unsafe(nil), welcome_greeting: T.unsafe(nil), partial_prompts: T.unsafe(nil), interruptible: T.unsafe(nil), interrupt_by_dtmf: T.unsafe(nil), welcome_greeting_interruptible: T.unsafe(nil), debug: T.unsafe(nil), **keyword_args); end + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2015 + def conversation_relay(url: T.unsafe(nil), language: T.unsafe(nil), tts_language: T.unsafe(nil), transcription_language: T.unsafe(nil), tts_provider: T.unsafe(nil), voice: T.unsafe(nil), transcription_provider: T.unsafe(nil), speech_model: T.unsafe(nil), profanity_filter: T.unsafe(nil), dtmf_detection: T.unsafe(nil), welcome_greeting: T.unsafe(nil), partial_prompts: T.unsafe(nil), welcome_greeting_interruptible: T.unsafe(nil), interruptible: T.unsafe(nil), preemptible: T.unsafe(nil), hints: T.unsafe(nil), intelligence_service: T.unsafe(nil), report_input_during_agent_speech: T.unsafe(nil), elevenlabs_text_normalization: T.unsafe(nil), interrupt_sensitivity: T.unsafe(nil), debug: T.unsafe(nil), **keyword_args); end # Create a new element # name:: Room name # participant_identity:: Participant identity when connecting to the Room # keyword_args:: additional attributes # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1903 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1927 def room(name, participant_identity: T.unsafe(nil), **keyword_args); end # Create a new element @@ -127464,7 +127791,7 @@ class Twilio::TwiML::Connect < ::Twilio::TwiML::TwiML # # @yield [stream] # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1924 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1948 def stream(name: T.unsafe(nil), connector_name: T.unsafe(nil), url: T.unsafe(nil), track: T.unsafe(nil), status_callback: T.unsafe(nil), status_callback_method: T.unsafe(nil), **keyword_args); end # Create a new element @@ -127477,31 +127804,31 @@ class Twilio::TwiML::Connect < ::Twilio::TwiML::TwiML # # @yield [virtual_agent] # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1939 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1963 def virtual_agent(connector_name: T.unsafe(nil), language: T.unsafe(nil), sentiment_analysis: T.unsafe(nil), status_callback: T.unsafe(nil), status_callback_method: T.unsafe(nil), **keyword_args); end end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2097 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2131 class Twilio::TwiML::Conversation < ::Twilio::TwiML::TwiML # @return [Conversation] a new instance of Conversation # @yield [_self] # @yieldparam _self [Twilio::TwiML::Conversation] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2098 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2132 def initialize(**keyword_args); end end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2065 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2099 class Twilio::TwiML::ConversationRelay < ::Twilio::TwiML::TwiML # @return [ConversationRelay] a new instance of ConversationRelay # @yield [_self] # @yieldparam _self [Twilio::TwiML::ConversationRelay] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2066 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2100 def initialize(**keyword_args); end # Create a new element @@ -127512,7 +127839,7 @@ class Twilio::TwiML::ConversationRelay < ::Twilio::TwiML::TwiML # speech_model:: Speech model to be used for transcription of this language # keyword_args:: additional attributes # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2081 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2115 def language(code: T.unsafe(nil), tts_provider: T.unsafe(nil), voice: T.unsafe(nil), transcription_provider: T.unsafe(nil), speech_model: T.unsafe(nil), **keyword_args); end # Create a new element @@ -127520,7 +127847,7 @@ class Twilio::TwiML::ConversationRelay < ::Twilio::TwiML::TwiML # value:: The value of the custom parameter # keyword_args:: additional attributes # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2090 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2124 def parameter(name: T.unsafe(nil), value: T.unsafe(nil), **keyword_args); end end @@ -127651,6 +127978,18 @@ class Twilio::TwiML::Dial < ::Twilio::TwiML::TwiML # # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1743 def sip(sip_url, username: T.unsafe(nil), password: T.unsafe(nil), url: T.unsafe(nil), method: T.unsafe(nil), status_callback_event: T.unsafe(nil), status_callback: T.unsafe(nil), status_callback_method: T.unsafe(nil), machine_detection: T.unsafe(nil), amd_status_callback_method: T.unsafe(nil), amd_status_callback: T.unsafe(nil), machine_detection_timeout: T.unsafe(nil), machine_detection_speech_threshold: T.unsafe(nil), machine_detection_speech_end_threshold: T.unsafe(nil), machine_detection_silence_timeout: T.unsafe(nil), **keyword_args); end + + # Create a new element + # phone_number:: WhatsApp Phone Number to dial + # url:: TwiML URL + # method:: TwiML URL Method + # status_callback_event:: Events to trigger status callback + # status_callback:: Status Callback URL + # status_callback_method:: Status Callback URL Method + # keyword_args:: additional attributes + # + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1774 + def whats_app(phone_number, url: T.unsafe(nil), method: T.unsafe(nil), status_callback_event: T.unsafe(nil), status_callback: T.unsafe(nil), status_callback_method: T.unsafe(nil), **keyword_args); end end # TwiML Verb @@ -127779,25 +128118,25 @@ end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1879 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1903 class Twilio::TwiML::Identity < ::Twilio::TwiML::TwiML # @return [Identity] a new instance of Identity # @yield [_self] # @yieldparam _self [Twilio::TwiML::Identity] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1880 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1904 def initialize(client_identity, **keyword_args); end end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2054 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2088 class Twilio::TwiML::Language < ::Twilio::TwiML::TwiML # @return [Language] a new instance of Language # @yield [_self] # @yieldparam _self [Twilio::TwiML::Language] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2055 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2089 def initialize(**keyword_args); end end @@ -127895,13 +128234,13 @@ end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1829 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1853 class Twilio::TwiML::Number < ::Twilio::TwiML::TwiML # @return [Number] a new instance of Number # @yield [_self] # @yieldparam _self [Twilio::TwiML::Number] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1830 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1854 def initialize(phone_number, **keyword_args); end end @@ -128058,7 +128397,7 @@ class Twilio::TwiML::Redirect < ::Twilio::TwiML::TwiML # @yield [_self] # @yieldparam _self [Twilio::TwiML::Redirect] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1482 + # source://twilio-ruby//lib/twilio-ruby/twiml/messaging_response.rb#50 def initialize(url, **keyword_args); end end @@ -128115,13 +128454,13 @@ end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2148 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2182 class Twilio::TwiML::Room < ::Twilio::TwiML::TwiML # @return [Room] a new instance of Room # @yield [_self] # @yieldparam _self [Twilio::TwiML::Room] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2149 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2183 def initialize(name, **keyword_args); end end @@ -128233,25 +128572,25 @@ end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1818 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1842 class Twilio::TwiML::Sim < ::Twilio::TwiML::TwiML # @return [Sim] a new instance of Sim # @yield [_self] # @yieldparam _self [Twilio::TwiML::Sim] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1819 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1843 def initialize(sim_sid, **keyword_args); end end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1807 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1831 class Twilio::TwiML::Sip < ::Twilio::TwiML::TwiML # @return [Sip] a new instance of Sip # @yield [_self] # @yieldparam _self [Twilio::TwiML::Sip] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1808 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1832 def initialize(sip_url, **keyword_args); end end @@ -129112,7 +129451,7 @@ class Twilio::TwiML::TwiML # source://twilio-ruby//lib/twilio-ruby/twiml/twiml.rb#59 def to_s(xml_declaration = T.unsafe(nil)); end - # source://twilio-ruby//lib/twilio-ruby/twiml/twiml.rb#59 + # source://twilio-ruby//lib/twilio-ruby/twiml/twiml.rb#115 def to_xml(xml_declaration = T.unsafe(nil)); end # source://twilio-ruby//lib/twilio-ruby/twiml/twiml.rb#70 @@ -129129,13 +129468,13 @@ class Twilio::TwiML::TwiMLError < ::StandardError; end # TwiML Noun # -# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2108 +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2142 class Twilio::TwiML::VirtualAgent < ::Twilio::TwiML::TwiML # @return [VirtualAgent] a new instance of VirtualAgent # @yield [_self] # @yieldparam _self [Twilio::TwiML::VirtualAgent] the object that the method was called on # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2109 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2143 def initialize(**keyword_args); end # Create a new element @@ -129143,7 +129482,7 @@ class Twilio::TwiML::VirtualAgent < ::Twilio::TwiML::TwiML # value:: The value of the custom config # keyword_args:: additional attributes # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2121 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2155 def config(name: T.unsafe(nil), value: T.unsafe(nil), **keyword_args); end # Create a new element @@ -129151,7 +129490,7 @@ class Twilio::TwiML::VirtualAgent < ::Twilio::TwiML::TwiML # value:: The value of the custom parameter # keyword_args:: additional attributes # - # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2130 + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#2164 def parameter(name: T.unsafe(nil), value: T.unsafe(nil), **keyword_args); end end @@ -129418,6 +129757,18 @@ class Twilio::TwiML::VoiceResponse < ::Twilio::TwiML::TwiML def stop(**keyword_args); end end +# TwiML Noun +# +# source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1781 +class Twilio::TwiML::WhatsApp < ::Twilio::TwiML::TwiML + # @return [WhatsApp] a new instance of WhatsApp + # @yield [_self] + # @yieldparam _self [Twilio::TwiML::WhatsApp] the object that the method was called on + # + # source://twilio-ruby//lib/twilio-ruby/twiml/voice_response.rb#1782 + def initialize(phone_number, **keyword_args); end +end + # source://twilio-ruby//lib/twilio-ruby/util.rb#4 module Twilio::Util # source://twilio-ruby//lib/twilio-ruby/util.rb#10 @@ -129438,7 +129789,7 @@ class Twilio::Util::Configuration # # @param value the value to set the attribute account_sid to. # - # source://twilio-ruby//lib/twilio-ruby/util/configuration.rb#8 + # source://twilio-ruby//lib/twilio-ruby/util/configuration.rb#6 def account_sid=(value); end # Returns the value of attribute auth_token. @@ -129450,7 +129801,7 @@ class Twilio::Util::Configuration # # @param value the value to set the attribute auth_token to. # - # source://twilio-ruby//lib/twilio-ruby/util/configuration.rb#12 + # source://twilio-ruby//lib/twilio-ruby/util/configuration.rb#6 def auth_token=(value); end # Returns the value of attribute edge. @@ -129462,7 +129813,7 @@ class Twilio::Util::Configuration # # @param value the value to set the attribute edge to. # - # source://twilio-ruby//lib/twilio-ruby/util/configuration.rb#24 + # source://twilio-ruby//lib/twilio-ruby/util/configuration.rb#6 def edge=(value); end # Returns the value of attribute http_client. @@ -129474,7 +129825,7 @@ class Twilio::Util::Configuration # # @param value the value to set the attribute http_client to. # - # source://twilio-ruby//lib/twilio-ruby/util/configuration.rb#16 + # source://twilio-ruby//lib/twilio-ruby/util/configuration.rb#6 def http_client=(value); end # Returns the value of attribute logger. @@ -129486,7 +129837,7 @@ class Twilio::Util::Configuration # # @param value the value to set the attribute logger to. # - # source://twilio-ruby//lib/twilio-ruby/util/configuration.rb#28 + # source://twilio-ruby//lib/twilio-ruby/util/configuration.rb#6 def logger=(value); end # Returns the value of attribute region. @@ -129498,7 +129849,7 @@ class Twilio::Util::Configuration # # @param value the value to set the attribute region to. # - # source://twilio-ruby//lib/twilio-ruby/util/configuration.rb#20 + # source://twilio-ruby//lib/twilio-ruby/util/configuration.rb#6 def region=(value); end end diff --git a/sorbet/rbi/gems/tzinfo@2.0.6.rbi b/sorbet/rbi/gems/tzinfo@2.0.6.rbi index f8f9c81f..7d84c69a 100644 --- a/sorbet/rbi/gems/tzinfo@2.0.6.rbi +++ b/sorbet/rbi/gems/tzinfo@2.0.6.rbi @@ -68,7 +68,7 @@ class TZInfo::AbsoluteDayOfYearTransitionRule < ::TZInfo::DayOfYearTransitionRul # with the same {transition_at} and day as this # {AbsoluteDayOfYearTransitionRule}, otherwise `false`. # - # source://tzinfo//lib/tzinfo/transition_rule.rb#153 + # source://tzinfo//lib/tzinfo/transition_rule.rb#156 def eql?(r); end # @return [Boolean] `true` if the day specified by this transition is the @@ -346,7 +346,7 @@ class TZInfo::Country # @return [Array] an `Array` containing the identifier for each time # zone observed by the country # - # source://tzinfo//lib/tzinfo/country.rb#111 + # source://tzinfo//lib/tzinfo/country.rb#114 def zone_names; end # Returns An `Array` containing a {Timezone} instance for each time zone @@ -2248,7 +2248,7 @@ class TZInfo::DayOfMonthTransitionRule < ::TZInfo::DayOfWeekTransitionRule # same {transition_at}, month, week and day of week as this # {DayOfMonthTransitionRule}, otherwise `false`. # - # source://tzinfo//lib/tzinfo/transition_rule.rb#353 + # source://tzinfo//lib/tzinfo/transition_rule.rb#356 def eql?(r); end protected @@ -2322,7 +2322,7 @@ class TZInfo::DayOfWeekTransitionRule < ::TZInfo::TransitionRule # same {transition_at}, month and day of week as this # {DayOfWeekTransitionRule}, otherwise `false`. # - # source://tzinfo//lib/tzinfo/transition_rule.rb#299 + # source://tzinfo//lib/tzinfo/transition_rule.rb#302 def eql?(r); end # @return [Boolean] `false`. @@ -2392,7 +2392,7 @@ class TZInfo::DayOfYearTransitionRule < ::TZInfo::TransitionRule # same {transition_at} and day as this {DayOfYearTransitionRule}, # otherwise `false`. # - # source://tzinfo//lib/tzinfo/transition_rule.rb#94 + # source://tzinfo//lib/tzinfo/transition_rule.rb#97 def eql?(r); end protected @@ -3097,7 +3097,7 @@ class TZInfo::JulianDayOfYearTransitionRule < ::TZInfo::DayOfYearTransitionRule # the same {transition_at} and day as this # {JulianDayOfYearTransitionRule}, otherwise `false`. # - # source://tzinfo//lib/tzinfo/transition_rule.rb#226 + # source://tzinfo//lib/tzinfo/transition_rule.rb#229 def eql?(r); end # @return [Boolean] `true` if the day specified by this transition is the @@ -3186,7 +3186,7 @@ class TZInfo::LastDayOfMonthTransitionRule < ::TZInfo::DayOfWeekTransitionRule # the same {transition_at}, month and day of week as this # {LastDayOfMonthTransitionRule}, otherwise `false`. # - # source://tzinfo//lib/tzinfo/transition_rule.rb#420 + # source://tzinfo//lib/tzinfo/transition_rule.rb#423 def eql?(r); end protected @@ -3332,7 +3332,7 @@ class TZInfo::OffsetTimezonePeriod < ::TZInfo::TimezonePeriod # @return [Boolean] `true` if `p` is a {OffsetTimezonePeriod} with the same # {offset}, otherwise `false`. # - # source://tzinfo//lib/tzinfo/offset_timezone_period.rb#32 + # source://tzinfo//lib/tzinfo/offset_timezone_period.rb#35 def eql?(p); end # @return [Integer] a hash based on {offset}. @@ -3457,7 +3457,7 @@ class TZInfo::TimeWithOffset < ::Time # @return [Boolean] `true` if daylight savings time is being observed, # otherwise `false`. # - # source://tzinfo//lib/tzinfo/time_with_offset.rb#43 + # source://tzinfo//lib/tzinfo/time_with_offset.rb#47 def isdst; end # An overridden version of `Time#localtime` that clears the associated @@ -3607,6 +3607,7 @@ class TZInfo::Timestamp # source://tzinfo//lib/tzinfo/timestamp.rb#372 def add_and_set_utc_offset(seconds, utc_offset); end + # source://tzinfo//lib/tzinfo/timestamp.rb#464 def eql?(_arg0); end # @return [Integer] a hash based on the value, sub-second and whether there @@ -4092,7 +4093,7 @@ class TZInfo::Timezone # offset. # @return [String] the abbreviation of this {Timezone} at the given time. # - # source://tzinfo//lib/tzinfo/timezone.rb#1048 + # source://tzinfo//lib/tzinfo/timezone.rb#1051 def abbr(time = T.unsafe(nil)); end # @param time [Object] a `Time`, `DateTime` or `Timestamp`. @@ -4191,7 +4192,7 @@ class TZInfo::Timezone # time zone as the first element and the current {TimezonePeriod} for the # time zone as the second element. # - # source://tzinfo//lib/tzinfo/timezone.rb#1008 + # source://tzinfo//lib/tzinfo/timezone.rb#1018 def current_period_and_time; end # Returns the current local time and {TimezonePeriod} for the time zone as @@ -4845,7 +4846,7 @@ class TZInfo::Timezone # @return [Integer] the observed offset from UTC in seconds at the given # time. # - # source://tzinfo//lib/tzinfo/timezone.rb#1094 + # source://tzinfo//lib/tzinfo/timezone.rb#1097 def utc_offset(time = T.unsafe(nil)); end # Converts a time in UTC to the local time for the time zone. @@ -5087,7 +5088,7 @@ class TZInfo::TimezoneOffset # # @return [String] the abbreviation that identifies this offset. # - # source://tzinfo//lib/tzinfo/timezone_offset.rb#50 + # source://tzinfo//lib/tzinfo/timezone_offset.rb#51 def abbr; end # The abbreviation that identifies this offset. For example GMT @@ -5186,7 +5187,7 @@ class TZInfo::TimezoneOffset # # @return [Integer] the base offset from UTC in seconds. # - # source://tzinfo//lib/tzinfo/timezone_offset.rb#21 + # source://tzinfo//lib/tzinfo/timezone_offset.rb#22 def utc_offset; end # Returns the observed offset from UTC in seconds (`base_utc_offset + @@ -5194,7 +5195,7 @@ class TZInfo::TimezoneOffset # # @return [Integer] the observed offset from UTC in seconds. # - # source://tzinfo//lib/tzinfo/timezone_offset.rb#43 + # source://tzinfo//lib/tzinfo/timezone_offset.rb#44 def utc_total_offset; end end @@ -5225,7 +5226,7 @@ class TZInfo::TimezonePeriod # # @return [String] the abbreviation that identifies this offset. # - # source://tzinfo//lib/tzinfo/timezone_period.rb#80 + # source://tzinfo//lib/tzinfo/timezone_period.rb#83 def abbr; end # The abbreviation that identifies this offset. For example GMT @@ -5371,7 +5372,7 @@ class TZInfo::TimezonePeriod # # @return [Integer] the base offset from UTC in seconds. # - # source://tzinfo//lib/tzinfo/timezone_period.rb#54 + # source://tzinfo//lib/tzinfo/timezone_period.rb#57 def utc_offset; end # Returns the observed offset from UTC in seconds (`base_utc_offset + @@ -5379,7 +5380,7 @@ class TZInfo::TimezonePeriod # # @return [Integer] the observed offset from UTC in seconds. # - # source://tzinfo//lib/tzinfo/timezone_period.rb#90 + # source://tzinfo//lib/tzinfo/timezone_period.rb#93 def utc_total_offset; end # The abbreviation that identifies this offset. For example GMT @@ -5387,7 +5388,7 @@ class TZInfo::TimezonePeriod # # @return [String] the abbreviation that identifies this offset. # - # source://tzinfo//lib/tzinfo/timezone_period.rb#80 + # source://tzinfo//lib/tzinfo/timezone_period.rb#84 def zone_identifier; end private @@ -5638,7 +5639,7 @@ class TZInfo::TimezoneTransition # {offset}, {previous_offset} and {timestamp_value} as this # {TimezoneTransition}, otherwise `false`. # - # source://tzinfo//lib/tzinfo/timezone_transition.rb#86 + # source://tzinfo//lib/tzinfo/timezone_transition.rb#90 def eql?(tti); end # @return [Integer] a hash based on {offset}, {previous_offset} and @@ -5741,7 +5742,7 @@ class TZInfo::TransitionRule # @return [Boolean] `true` if `r` is a {TransitionRule} with the same # {transition_at} as this {TransitionRule}, otherwise `false`. # - # source://tzinfo//lib/tzinfo/transition_rule.rb#47 + # source://tzinfo//lib/tzinfo/transition_rule.rb#50 def eql?(r); end # @return [Integer] a hash based on {hash_args} (defaulting to @@ -5816,7 +5817,7 @@ class TZInfo::TransitionsTimezonePeriod < ::TZInfo::TimezonePeriod # same {offset}, {start_transition} and {end_transition}, otherwise # `false`. # - # source://tzinfo//lib/tzinfo/transitions_timezone_period.rb#47 + # source://tzinfo//lib/tzinfo/transitions_timezone_period.rb#50 def eql?(p); end # @return [Integer] a hash based on {start_transition} and {end_transition}. diff --git a/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi b/sorbet/rbi/gems/unicode-display_width@3.1.5.rbi similarity index 97% rename from sorbet/rbi/gems/unicode-display_width@3.1.4.rbi rename to sorbet/rbi/gems/unicode-display_width@3.1.5.rbi index 0d6ec7f1..63021730 100644 --- a/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +++ b/sorbet/rbi/gems/unicode-display_width@3.1.5.rbi @@ -5,9 +5,6 @@ # Please instead update this file by running `bin/tapioca gem unicode-display_width`. -# require "rbconfig" -# RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ # windows -# # source://unicode-display_width//lib/unicode/display_width/constants.rb#3 module Unicode; end @@ -79,9 +76,12 @@ Unicode::DisplayWidth::DEFAULT_AMBIGUOUS = T.let(T.unsafe(nil), Integer) # source://unicode-display_width//lib/unicode/display_width.rb#32 Unicode::DisplayWidth::EMOJI_SEQUENCES_REGEX_MAPPING = T.let(T.unsafe(nil), Hash) -# source://unicode-display_width//lib/unicode/display_width/emoji_support.rb#6 +# source://unicode-display_width//lib/unicode/display_width/emoji_support.rb#5 module Unicode::DisplayWidth::EmojiSupport class << self + # source://unicode-display_width//lib/unicode/display_width/emoji_support.rb#18 + def _recommended; end + # Tries to find out which terminal emulator is used to # set emoji: config to best suiting value # @@ -91,7 +91,7 @@ module Unicode::DisplayWidth::EmojiSupport # Please note: Many terminals do not set any ENV vars, # maybe CSI queries can help? # - # source://unicode-display_width//lib/unicode/display_width/emoji_support.rb#15 + # source://unicode-display_width//lib/unicode/display_width/emoji_support.rb#14 def recommended; end end end diff --git a/sorbet/rbi/gems/uri@1.0.3.rbi b/sorbet/rbi/gems/uri@1.0.3.rbi index f1ac1a84..8cd8b5e7 100644 --- a/sorbet/rbi/gems/uri@1.0.3.rbi +++ b/sorbet/rbi/gems/uri@1.0.3.rbi @@ -35,7 +35,7 @@ module Kernel # URI(uri) # # => # # - # source://uri//lib/uri/common.rb#869 + # source://uri//lib/uri/common.rb#879 def URI(uri); end end end @@ -703,79 +703,7 @@ URI::File::COMPONENT = T.let(T.unsafe(nil), Array) # source://uri//lib/uri/file.rb#12 URI::File::DEFAULT_PORT = T.let(T.unsafe(nil), T.untyped) -class URI::GID < ::URI::Generic - # source://uri//lib/uri/generic.rb#243 - def app; end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#107 - def deconstruct_keys(_keys); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#29 - def model_id; end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#29 - def model_name; end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#29 - def params; end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#102 - def to_s; end - - protected - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#118 - def query=(query); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#129 - def set_params(params); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#112 - def set_path(path); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#124 - def set_query(query); end - - private - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#136 - def check_host(host); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#141 - def check_path(path); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#146 - def check_scheme(scheme); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#195 - def parse_query_params(query); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#154 - def set_model_components(path, validate = T.unsafe(nil)); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#174 - def validate_component(component); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#188 - def validate_model_id(model_id_part); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#181 - def validate_model_id_section(model_id, model_name); end - - class << self - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#88 - def build(args); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#72 - def create(app, model, params = T.unsafe(nil)); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#64 - def parse(uri); end - - # source://globalid/1.2.1/lib/global_id/uri/gid.rb#48 - def validate_app(app); end - end -end +class URI::GID < ::URI::Generic; end # Base class for all URI classes. # Implements generic URI syntax as per RFC 2396. @@ -836,7 +764,7 @@ class URI::Generic # # => "http://my.example.com/main.rbx?page=1" # merge # - # source://uri//lib/uri/generic.rb#1109 + # source://uri//lib/uri/generic.rb#1151 def +(oth); end # == Args @@ -856,7 +784,7 @@ class URI::Generic # uri.route_from('http://my.example.com') # #=> # # - # source://uri//lib/uri/generic.rb#1261 + # source://uri//lib/uri/generic.rb#1281 def -(oth); end # Compares two URIs. @@ -868,7 +796,7 @@ class URI::Generic # # @return [Boolean] # - # source://uri//lib/uri/generic.rb#972 + # source://uri//lib/uri/generic.rb#979 def absolute; end # Returns true if URI has a scheme (e.g. http:// or https://) specified. @@ -1406,7 +1334,7 @@ class URI::Generic # Constructs String from URI. # - # source://uri//lib/uri/generic.rb#1342 + # source://uri//lib/uri/generic.rb#1381 def to_str; end # Returns the user component (without URI decoding). @@ -1987,7 +1915,7 @@ class URI::MailTo < ::URI::Generic # uri.to_mailtext # # => "To: ruby-list@ruby-lang.org\nSubject: subscribe\nCc: myaddr\n\n\n" # - # source://uri//lib/uri/mailto.rb#268 + # source://uri//lib/uri/mailto.rb#289 def to_rfc822text; end # Constructs String from URI. @@ -2357,7 +2285,7 @@ module URI::Util def make_components_hash(klass, array_hash); end class << self - # source://uri//lib/uri/common.rb#63 + # source://uri//lib/uri/common.rb#91 def make_components_hash(klass, array_hash); end end end diff --git a/sorbet/rbi/gems/vite_rails@3.0.19.rbi b/sorbet/rbi/gems/vite_rails@3.0.19.rbi index 168b7b0d..f068eb6b 100644 --- a/sorbet/rbi/gems/vite_rails@3.0.19.rbi +++ b/sorbet/rbi/gems/vite_rails@3.0.19.rbi @@ -57,17 +57,7 @@ module ViteRails::Config end # source://vite_rails//lib/vite_rails/engine.rb#5 -class ViteRails::Engine < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end +class ViteRails::Engine < ::Rails::Engine; end # Public: Allows to render HTML tags for scripts and styles processed by Vite. # diff --git a/sorbet/rbi/gems/vite_ruby@3.9.2.rbi b/sorbet/rbi/gems/vite_ruby@3.9.2.rbi index 6139558d..37effdca 100644 --- a/sorbet/rbi/gems/vite_ruby@3.9.2.rbi +++ b/sorbet/rbi/gems/vite_ruby@3.9.2.rbi @@ -87,19 +87,19 @@ class ViteRuby # source://vite_ruby//lib/vite_ruby.rb#43 def bootstrap; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby.rb#35 def commands(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby.rb#35 def config(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby.rb#35 def configure(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby.rb#35 def digest(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby.rb#35 def env(*args, **_arg1, &block); end # Internal: Detects if the application has installed a framework-specific @@ -116,7 +116,7 @@ class ViteRuby # source://vite_ruby//lib/vite_ruby.rb#38 def instance; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby.rb#36 def mode(*args, **_arg1, &block); end # Internal: Creates a new instance with the specified options. @@ -124,27 +124,41 @@ class ViteRuby # source://vite_ruby//lib/vite_ruby.rb#53 def reload_with(**config_options); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby.rb#35 def run(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby.rb#35 def run_proxy?(*args, **_arg1, &block); end end end # source://vite_ruby//lib/vite_ruby/build.rb#7 class ViteRuby::Build < ::Struct + # source://vite_ruby//lib/vite_ruby/build.rb#7 def current_digest; end + + # source://vite_ruby//lib/vite_ruby/build.rb#7 def current_digest=(_); end + + # source://vite_ruby//lib/vite_ruby/build.rb#7 def digest; end + + # source://vite_ruby//lib/vite_ruby/build.rb#7 def digest=(_); end + + # source://vite_ruby//lib/vite_ruby/build.rb#7 def errors; end + + # source://vite_ruby//lib/vite_ruby/build.rb#7 def errors=(_); end # source://vite_ruby//lib/vite_ruby/build.rb#43 def fresh?; end + # source://vite_ruby//lib/vite_ruby/build.rb#7 def last_build_path; end + + # source://vite_ruby//lib/vite_ruby/build.rb#7 def last_build_path=(_); end # source://vite_ruby//lib/vite_ruby/build.rb#49 @@ -153,15 +167,25 @@ class ViteRuby::Build < ::Struct # source://vite_ruby//lib/vite_ruby/build.rb#37 def stale?; end + # source://vite_ruby//lib/vite_ruby/build.rb#7 def success; end + + # source://vite_ruby//lib/vite_ruby/build.rb#7 def success=(_); end + + # source://vite_ruby//lib/vite_ruby/build.rb#7 def timestamp; end + + # source://vite_ruby//lib/vite_ruby/build.rb#7 def timestamp=(_); end # source://vite_ruby//lib/vite_ruby/build.rb#73 def to_json(*_args); end + # source://vite_ruby//lib/vite_ruby/build.rb#7 def vite_ruby; end + + # source://vite_ruby//lib/vite_ruby/build.rb#7 def vite_ruby=(_); end # source://vite_ruby//lib/vite_ruby/build.rb#56 @@ -171,14 +195,22 @@ class ViteRuby::Build < ::Struct def write_to_cache; end class << self + # source://vite_ruby//lib/vite_ruby/build.rb#7 def [](*_arg0); end # source://vite_ruby//lib/vite_ruby/build.rb#10 def from_previous(last_build_path, current_digest); end + # source://vite_ruby//lib/vite_ruby/build.rb#7 def inspect; end + + # source://vite_ruby//lib/vite_ruby/build.rb#7 def keyword_init?; end + + # source://vite_ruby//lib/vite_ruby/build.rb#7 def members; end + + # source://vite_ruby//lib/vite_ruby/build.rb#7 def new(*_arg0); end private @@ -208,7 +240,7 @@ class ViteRuby::Builder # source://vite_ruby//lib/vite_ruby/builder.rb#13 def build(*args); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/builder.rb#39 def config(*args, **_arg1, &block); end # Internal: Reads the result of the last compilation from disk. @@ -216,10 +248,10 @@ class ViteRuby::Builder # source://vite_ruby//lib/vite_ruby/builder.rb#31 def last_build_metadata(ssr: T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/builder.rb#39 def logger(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/builder.rb#39 def run(*args, **_arg1, &block); end private @@ -270,7 +302,7 @@ end # source://vite_ruby//lib/vite_ruby/cli/build.rb#3 class ViteRuby::CLI::Build < ::ViteRuby::CLI::Vite - # source://vite_rails/3.0.19/lib/vite_rails/cli.rb#9 + # source://vite_ruby//lib/vite_ruby/cli/build.rb#13 def call(**options); end end @@ -404,17 +436,17 @@ class ViteRuby::CLI::Install < ::Dry::CLI::Command # source://vite_ruby//lib/vite_ruby/cli/install.rb#11 def call(package_manager: T.unsafe(nil), **_arg1); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/cli/install.rb#62 def config(*args, **_arg1, &block); end # Internal: Create a sample JS file and attempt to inject it in an HTML template. # - # source://vite_rails/3.0.19/lib/vite_rails/cli.rb#60 + # source://vite_ruby//lib/vite_ruby/cli/install.rb#54 def install_sample_files; end # Internal: Setup for a plain Rack application. # - # source://vite_rails/3.0.19/lib/vite_rails/cli.rb#28 + # source://vite_ruby//lib/vite_ruby/cli/install.rb#45 def setup_app_files; end protected @@ -580,7 +612,7 @@ class ViteRuby::Commands # source://vite_ruby//lib/vite_ruby/commands.rb#11 def build_from_task(*args); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/commands.rb#99 def builder(*args, **_arg1, &block); end # Public: Removes all build cache and previously compiled assets. @@ -588,7 +620,7 @@ class ViteRuby::Commands # source://vite_ruby//lib/vite_ruby/commands.rb#25 def clobber; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/commands.rb#99 def config(*args, **_arg1, &block); end # Internal: Installs the binstub for the CLI in the appropriate path. @@ -610,13 +642,13 @@ class ViteRuby::Commands # source://vite_ruby//lib/vite_ruby/commands.rb#43 def legacy_yarn_version?; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/commands.rb#99 def logger(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/commands.rb#99 def logger=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/commands.rb#99 def manifest(*args, **_arg1, &block); end # Internal: Prints information about ViteRuby's environment. @@ -842,7 +874,7 @@ class ViteRuby::Config # Internal: Default values for a Ruby application. # - # source://vite_rails/3.0.19/lib/vite_rails/config.rb#7 + # source://vite_ruby//lib/vite_ruby/config.rb#145 def config_defaults; end # Internal: Extracts the configuration options provided as env vars. @@ -860,6 +892,7 @@ class ViteRuby::Config # source://vite_ruby//lib/vite_ruby/config.rb#155 def load_json(path); end + # source://vite_ruby//lib/vite_ruby/config.rb#123 def new(*_arg0); end # Internal: Retrieves a configuration option from environment variables. @@ -908,10 +941,10 @@ class ViteRuby::DevServerProxy < ::Rack::Proxy # source://vite_ruby//lib/vite_ruby/dev_server_proxy.rb#10 def initialize(app = T.unsafe(nil), options = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/dev_server_proxy.rb#30 def config(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/dev_server_proxy.rb#30 def dev_server_running?(*args, **_arg1, &block); end # Rack: Intercept asset requests and send them to the Vite server. @@ -1008,13 +1041,13 @@ class ViteRuby::Manifest # source://vite_ruby//lib/vite_ruby/manifest.rb#13 def initialize(vite_ruby); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/manifest.rb#102 def builder(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/manifest.rb#102 def config(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/manifest.rb#102 def dev_server_running?(*args, **_arg1, &block); end # Public: Returns the path for the specified Vite entrypoint file. @@ -1226,13 +1259,13 @@ class ViteRuby::Runner # source://vite_ruby//lib/vite_ruby/runner.rb#5 def initialize(vite_ruby); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/runner.rb#26 def config(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/runner.rb#26 def env(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://vite_ruby//lib/vite_ruby/runner.rb#26 def logger(*args, **_arg1, &block); end # Public: Executes Vite with the specified arguments. diff --git a/sorbet/rbi/gems/voight_kampff@2.0.0.rbi b/sorbet/rbi/gems/voight_kampff@2.0.0.rbi index d207f420..67b99993 100644 --- a/sorbet/rbi/gems/voight_kampff@2.0.0.rbi +++ b/sorbet/rbi/gems/voight_kampff@2.0.0.rbi @@ -28,7 +28,7 @@ module VoightKampff # @return [Boolean] # - # source://voight_kampff//lib/voight_kampff.rb#17 + # source://voight_kampff//lib/voight_kampff.rb#20 def replicant?(user_agent_string); end # source://voight_kampff//lib/voight_kampff.rb#8 @@ -42,17 +42,7 @@ module VoightKampff end # source://voight_kampff//lib/voight_kampff/engine.rb#2 -class VoightKampff::Engine < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end +class VoightKampff::Engine < ::Rails::Engine; end # source://voight_kampff//lib/voight_kampff/methods.rb#1 module VoightKampff::Methods @@ -68,7 +58,7 @@ module VoightKampff::Methods # @return [Boolean] # - # source://voight_kampff//lib/voight_kampff/methods.rb#6 + # source://voight_kampff//lib/voight_kampff/methods.rb#9 def replicant?; end end @@ -94,7 +84,7 @@ class VoightKampff::Test # @return [Boolean] # - # source://voight_kampff//lib/voight_kampff/test.rb#19 + # source://voight_kampff//lib/voight_kampff/test.rb#22 def replicant?; end # Returns the value of attribute user_agent_string. diff --git a/sorbet/rbi/gems/web-push@3.0.1.rbi b/sorbet/rbi/gems/web-push@3.0.1.rbi index e5a46820..6daeff62 100644 --- a/sorbet/rbi/gems/web-push@3.0.1.rbi +++ b/sorbet/rbi/gems/web-push@3.0.1.rbi @@ -268,7 +268,7 @@ class WebPush::VapidKey # source://web-push//lib/web_push/vapid_key.rb#94 def to_h; end - # source://web-push//lib/web_push/vapid_key.rb#94 + # source://web-push//lib/web_push/vapid_key.rb#97 def to_hash; end # source://web-push//lib/web_push/vapid_key.rb#99 diff --git a/sorbet/rbi/gems/webauthn@3.4.0.rbi b/sorbet/rbi/gems/webauthn@3.4.1.rbi similarity index 94% rename from sorbet/rbi/gems/webauthn@3.4.0.rbi rename to sorbet/rbi/gems/webauthn@3.4.1.rbi index 7ba9e815..228159ae 100644 --- a/sorbet/rbi/gems/webauthn@3.4.0.rbi +++ b/sorbet/rbi/gems/webauthn@3.4.1.rbi @@ -51,7 +51,7 @@ module WebAuthn # source://webauthn//lib/webauthn.rb#13 def generate_user_id; end - # source://webauthn//lib/webauthn/encoder.rb#6 + # source://webauthn//lib/webauthn/encoders.rb#4 def standard_encoder; end end end @@ -65,10 +65,10 @@ class WebAuthn::AttestationObject # source://webauthn//lib/webauthn/attestation_object.rb#30 def initialize(authenticator_data:, attestation_statement:); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/attestation_object.rb#44 def aaguid(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/attestation_object.rb#45 def attestation_certificate_key_id(*args, **_arg1, &block); end # Returns the value of attribute attestation_statement. @@ -81,7 +81,7 @@ class WebAuthn::AttestationObject # source://webauthn//lib/webauthn/attestation_object.rb#28 def authenticator_data; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/attestation_object.rb#44 def credential(*args, **_arg1, &block); end # Returns the value of attribute relying_party. @@ -653,19 +653,19 @@ class WebAuthn::AuthenticatorAttestationResponse < ::WebAuthn::AuthenticatorResp # source://webauthn//lib/webauthn/authenticator_attestation_response.rb#33 def initialize(attestation_object:, transports: T.unsafe(nil), **options); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/authenticator_attestation_response.rb#56 def aaguid(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/authenticator_attestation_response.rb#65 def attestation_certificate_key(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/authenticator_attestation_response.rb#56 def attestation_certificate_key_id(*args, **_arg1, &block); end # source://webauthn//lib/webauthn/authenticator_attestation_response.rb#52 def attestation_object; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/authenticator_attestation_response.rb#56 def attestation_statement(*args, **_arg1, &block); end # Returns the value of attribute attestation_trust_path. @@ -678,10 +678,10 @@ class WebAuthn::AuthenticatorAttestationResponse < ::WebAuthn::AuthenticatorResp # source://webauthn//lib/webauthn/authenticator_attestation_response.rb#31 def attestation_type; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/authenticator_attestation_response.rb#56 def authenticator_data(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/authenticator_attestation_response.rb#56 def credential(*args, **_arg1, &block); end # Returns the value of attribute transports. @@ -854,44 +854,65 @@ class WebAuthn::AuthenticatorData::AttestedCredentialData::Credential < ::Struct # Returns the value of attribute algorithm # # @return [Object] the current value of algorithm + # + # source://webauthn//lib/webauthn/authenticator_data/attested_credential_data.rb#26 def algorithm; end # Sets the attribute algorithm # # @param value [Object] the value to set the attribute algorithm to. # @return [Object] the newly set value + # + # source://webauthn//lib/webauthn/authenticator_data/attested_credential_data.rb#26 def algorithm=(_); end # Returns the value of attribute id # # @return [Object] the current value of id + # + # source://webauthn//lib/webauthn/authenticator_data/attested_credential_data.rb#26 def id; end # Sets the attribute id # # @param value [Object] the value to set the attribute id to. # @return [Object] the newly set value + # + # source://webauthn//lib/webauthn/authenticator_data/attested_credential_data.rb#26 def id=(_); end # Returns the value of attribute public_key # # @return [Object] the current value of public_key + # + # source://webauthn//lib/webauthn/authenticator_data/attested_credential_data.rb#26 def public_key; end # Sets the attribute public_key # # @param value [Object] the value to set the attribute public_key to. # @return [Object] the newly set value + # + # source://webauthn//lib/webauthn/authenticator_data/attested_credential_data.rb#26 def public_key=(_); end # source://webauthn//lib/webauthn/authenticator_data/attested_credential_data.rb#27 def public_key_object; end class << self + # source://webauthn//lib/webauthn/authenticator_data/attested_credential_data.rb#26 def [](*_arg0); end + + # source://webauthn//lib/webauthn/authenticator_data/attested_credential_data.rb#26 def inspect; end + + # source://webauthn//lib/webauthn/authenticator_data/attested_credential_data.rb#26 def keyword_init?; end + + # source://webauthn//lib/webauthn/authenticator_data/attested_credential_data.rb#26 def members; end + + # source://webauthn//lib/webauthn/authenticator_data/attested_credential_data.rb#26 def new(*_arg0); end end end @@ -1055,58 +1076,58 @@ class WebAuthn::Configuration # source://webauthn//lib/webauthn/configuration.rb#44 def initialize; end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def acceptable_attestation_types(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def acceptable_attestation_types=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def algorithms(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def algorithms=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def allowed_origins(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def allowed_origins=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def attestation_root_certificates_finders(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def attestation_root_certificates_finders=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def credential_options_timeout(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def credential_options_timeout=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def encoder(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def encoder=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def encoding(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def encoding=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def legacy_u2f_appid(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def legacy_u2f_appid=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def origin(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def origin=(*args, **_arg1, &block); end # Returns the value of attribute relying_party. @@ -1126,16 +1147,16 @@ class WebAuthn::Configuration # source://webauthn//lib/webauthn/configuration.rb#52 def rp_name=(name); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def silent_authentication(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def silent_authentication=(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def verify_attestation_statement(*args, **_arg1, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 + # source://webauthn//lib/webauthn/configuration.rb#18 def verify_attestation_statement=(*args, **_arg1, &block); end end @@ -1345,30 +1366,68 @@ class WebAuthn::CredentialUserEntity < ::WebAuthn::CredentialEntity def id; end end -# source://webauthn//lib/webauthn/encoder.rb#10 +# source://webauthn//lib/webauthn/encoder.rb#6 class WebAuthn::Encoder + extend ::Forwardable + # @return [Encoder] a new instance of Encoder # - # source://webauthn//lib/webauthn/encoder.rb#16 + # source://webauthn//lib/webauthn/encoder.rb#14 def initialize(encoding = T.unsafe(nil)); end - # source://webauthn//lib/webauthn/encoder.rb#36 - def decode(data); end - - # source://webauthn//lib/webauthn/encoder.rb#20 - def encode(data); end + # source://webauthn//lib/webauthn/encoder.rb#12 + def decode(*args, **_arg1, &block); end - # Returns the value of attribute encoding. - # - # source://webauthn//lib/webauthn/encoder.rb#14 - def encoding; end + # source://webauthn//lib/webauthn/encoder.rb#12 + def encode(*args, **_arg1, &block); end end # https://www.w3.org/TR/webauthn-2/#base64url-encoding # -# source://webauthn//lib/webauthn/encoder.rb#12 +# source://webauthn//lib/webauthn/encoder.rb#10 WebAuthn::Encoder::STANDARD_ENCODING = T.let(T.unsafe(nil), Symbol) +# source://webauthn//lib/webauthn/encoders.rb#8 +module WebAuthn::Encoders + class << self + # source://webauthn//lib/webauthn/encoders.rb#10 + def lookup(encoding); end + end +end + +# source://webauthn//lib/webauthn/encoders.rb#24 +class WebAuthn::Encoders::Base64Encoder + class << self + # source://webauthn//lib/webauthn/encoders.rb#29 + def decode(data); end + + # source://webauthn//lib/webauthn/encoders.rb#25 + def encode(data); end + end +end + +# source://webauthn//lib/webauthn/encoders.rb#34 +class WebAuthn::Encoders::Base64UrlEncoder + class << self + # source://webauthn//lib/webauthn/encoders.rb#42 + def decode(data); end + + # source://webauthn//lib/webauthn/encoders.rb#35 + def encode(data); end + end +end + +# source://webauthn//lib/webauthn/encoders.rb#52 +class WebAuthn::Encoders::NullEncoder + class << self + # source://webauthn//lib/webauthn/encoders.rb#57 + def decode(data); end + + # source://webauthn//lib/webauthn/encoders.rb#53 + def encode(data); end + end +end + # source://webauthn//lib/webauthn/error.rb#4 class WebAuthn::Error < ::StandardError; end diff --git a/sorbet/rbi/gems/websocket-driver@0.7.7.rbi b/sorbet/rbi/gems/websocket-driver@0.8.0.rbi similarity index 86% rename from sorbet/rbi/gems/websocket-driver@0.7.7.rbi rename to sorbet/rbi/gems/websocket-driver@0.8.0.rbi index f0f29f2a..d64ac9a3 100644 --- a/sorbet/rbi/gems/websocket-driver@0.7.7.rbi +++ b/sorbet/rbi/gems/websocket-driver@0.8.0.rbi @@ -6,21 +6,7 @@ # source://websocket-driver//lib/websocket/driver.rb#16 -module WebSocket - class << self - # source://websocket/1.2.11/lib/websocket.rb#20 - def max_frame_size; end - - # source://websocket/1.2.11/lib/websocket.rb#25 - def max_frame_size=(val); end - - # source://websocket/1.2.11/lib/websocket.rb#31 - def should_raise; end - - # source://websocket/1.2.11/lib/websocket.rb#36 - def should_raise=(val); end - end -end +module WebSocket; end # source://websocket-driver//lib/websocket/driver.rb#19 class WebSocket::Driver @@ -31,19 +17,19 @@ class WebSocket::Driver # source://websocket-driver//lib/websocket/driver.rb#72 def initialize(socket, options = T.unsafe(nil)); end - # source://websocket-driver//lib/websocket/driver.rb#90 + # source://websocket-driver//lib/websocket/driver.rb#92 def add_extension(extension); end - # source://websocket-driver//lib/websocket/driver.rb#123 + # source://websocket-driver//lib/websocket/driver.rb#125 def binary(message); end - # source://websocket-driver//lib/websocket/driver.rb#135 + # source://websocket-driver//lib/websocket/driver.rb#137 def close(reason = T.unsafe(nil), code = T.unsafe(nil)); end - # source://websocket-driver//lib/websocket/driver.rb#127 + # source://websocket-driver//lib/websocket/driver.rb#129 def ping(*args); end - # source://websocket-driver//lib/websocket/driver.rb#131 + # source://websocket-driver//lib/websocket/driver.rb#133 def pong(*args); end # Returns the value of attribute protocol. @@ -56,54 +42,54 @@ class WebSocket::Driver # source://websocket-driver//lib/websocket/driver.rb#70 def ready_state; end - # source://websocket-driver//lib/websocket/driver.rb#94 + # source://websocket-driver//lib/websocket/driver.rb#96 def set_header(name, value); end - # source://websocket-driver//lib/websocket/driver.rb#100 + # source://websocket-driver//lib/websocket/driver.rb#102 def start; end - # source://websocket-driver//lib/websocket/driver.rb#85 + # source://websocket-driver//lib/websocket/driver.rb#87 def state; end - # source://websocket-driver//lib/websocket/driver.rb#118 + # source://websocket-driver//lib/websocket/driver.rb#120 def text(message); end private - # source://websocket-driver//lib/websocket/driver.rb#156 + # source://websocket-driver//lib/websocket/driver.rb#158 def fail(type, message); end - # source://websocket-driver//lib/websocket/driver.rb#144 + # source://websocket-driver//lib/websocket/driver.rb#146 def fail_handshake(error); end - # source://websocket-driver//lib/websocket/driver.rb#162 + # source://websocket-driver//lib/websocket/driver.rb#164 def open; end - # source://websocket-driver//lib/websocket/driver.rb#169 + # source://websocket-driver//lib/websocket/driver.rb#171 def queue(message); end class << self - # source://websocket-driver//lib/websocket/driver.rb#174 + # source://websocket-driver//lib/websocket/driver.rb#176 def client(socket, options = T.unsafe(nil)); end - # source://websocket-driver//lib/websocket/driver.rb#198 + # source://websocket-driver//lib/websocket/driver.rb#200 def encode(data, encoding = T.unsafe(nil)); end - # source://websocket-driver//lib/websocket/driver.rb#213 + # source://websocket-driver//lib/websocket/driver.rb#216 def host_header(uri); end - # source://websocket-driver//lib/websocket/driver.rb#182 + # source://websocket-driver//lib/websocket/driver.rb#184 def rack(socket, options = T.unsafe(nil)); end - # source://websocket-driver//lib/websocket/driver.rb#178 + # source://websocket-driver//lib/websocket/driver.rb#180 def server(socket, options = T.unsafe(nil)); end - # source://websocket-driver//lib/websocket/driver.rb#221 + # source://websocket-driver//lib/websocket/driver.rb#224 def validate_options(options, valid_keys); end # @return [Boolean] # - # source://websocket-driver//lib/websocket/driver.rb#229 + # source://websocket-driver//lib/websocket/driver.rb#238 def websocket?(env); end end end @@ -162,30 +148,47 @@ class WebSocket::Driver::CloseEvent < ::Struct # Returns the value of attribute code # # @return [Object] the current value of code + # + # source://websocket-driver//lib/websocket/driver.rb#53 def code; end # Sets the attribute code # # @param value [Object] the value to set the attribute code to. # @return [Object] the newly set value + # + # source://websocket-driver//lib/websocket/driver.rb#53 def code=(_); end # Returns the value of attribute reason # # @return [Object] the current value of reason + # + # source://websocket-driver//lib/websocket/driver.rb#53 def reason; end # Sets the attribute reason # # @param value [Object] the value to set the attribute reason to. # @return [Object] the newly set value + # + # source://websocket-driver//lib/websocket/driver.rb#53 def reason=(_); end class << self + # source://websocket-driver//lib/websocket/driver.rb#53 def [](*_arg0); end + + # source://websocket-driver//lib/websocket/driver.rb#53 def inspect; end + + # source://websocket-driver//lib/websocket/driver.rb#53 def keyword_init?; end + + # source://websocket-driver//lib/websocket/driver.rb#53 def members; end + + # source://websocket-driver//lib/websocket/driver.rb#53 def new(*_arg0); end end end @@ -196,10 +199,19 @@ class WebSocket::Driver::ConfigurationError < ::ArgumentError; end # source://websocket-driver//lib/websocket/driver.rb#48 class WebSocket::Driver::ConnectEvent < ::Struct class << self + # source://websocket-driver//lib/websocket/driver.rb#48 def [](*_arg0); end + + # source://websocket-driver//lib/websocket/driver.rb#48 def inspect; end + + # source://websocket-driver//lib/websocket/driver.rb#48 def keyword_init?; end + + # source://websocket-driver//lib/websocket/driver.rb#48 def members; end + + # source://websocket-driver//lib/websocket/driver.rb#48 def new(*_arg0); end end end @@ -363,34 +375,34 @@ class WebSocket::Driver::Hybi < ::WebSocket::Driver private - # source://websocket-driver//lib/websocket/driver/hybi.rb#336 + # source://websocket-driver//lib/websocket/driver/hybi.rb#338 def check_frame_length; end - # source://websocket-driver//lib/websocket/driver/hybi.rb#347 + # source://websocket-driver//lib/websocket/driver/hybi.rb#349 def emit_frame(buffer); end - # source://websocket-driver//lib/websocket/driver/hybi.rb#395 + # source://websocket-driver//lib/websocket/driver/hybi.rb#397 def emit_message; end - # source://websocket-driver//lib/websocket/driver/hybi.rb#270 + # source://websocket-driver//lib/websocket/driver/hybi.rb#272 def fail(type, message); end - # source://websocket-driver//lib/websocket/driver/hybi.rb#232 + # source://websocket-driver//lib/websocket/driver/hybi.rb#234 def handshake_response; end - # source://websocket-driver//lib/websocket/driver/hybi.rb#325 + # source://websocket-driver//lib/websocket/driver/hybi.rb#327 def parse_extended_length(buffer); end - # source://websocket-driver//lib/websocket/driver/hybi.rb#308 + # source://websocket-driver//lib/websocket/driver/hybi.rb#310 def parse_length(octet); end - # source://websocket-driver//lib/websocket/driver/hybi.rb#275 + # source://websocket-driver//lib/websocket/driver/hybi.rb#277 def parse_opcode(octet); end - # source://websocket-driver//lib/websocket/driver/hybi.rb#196 + # source://websocket-driver//lib/websocket/driver/hybi.rb#198 def send_frame(frame); end - # source://websocket-driver//lib/websocket/driver/hybi.rb#258 + # source://websocket-driver//lib/websocket/driver/hybi.rb#260 def shutdown(code, reason, error = T.unsafe(nil)); end class << self @@ -661,19 +673,32 @@ class WebSocket::Driver::MessageEvent < ::Struct # Returns the value of attribute data # # @return [Object] the current value of data + # + # source://websocket-driver//lib/websocket/driver.rb#50 def data; end # Sets the attribute data # # @param value [Object] the value to set the attribute data to. # @return [Object] the newly set value + # + # source://websocket-driver//lib/websocket/driver.rb#50 def data=(_); end class << self + # source://websocket-driver//lib/websocket/driver.rb#50 def [](*_arg0); end + + # source://websocket-driver//lib/websocket/driver.rb#50 def inspect; end + + # source://websocket-driver//lib/websocket/driver.rb#50 def keyword_init?; end + + # source://websocket-driver//lib/websocket/driver.rb#50 def members; end + + # source://websocket-driver//lib/websocket/driver.rb#50 def new(*_arg0); end end end @@ -681,10 +706,19 @@ end # source://websocket-driver//lib/websocket/driver.rb#49 class WebSocket::Driver::OpenEvent < ::Struct class << self + # source://websocket-driver//lib/websocket/driver.rb#49 def [](*_arg0); end + + # source://websocket-driver//lib/websocket/driver.rb#49 def inspect; end + + # source://websocket-driver//lib/websocket/driver.rb#49 def keyword_init?; end + + # source://websocket-driver//lib/websocket/driver.rb#49 def members; end + + # source://websocket-driver//lib/websocket/driver.rb#49 def new(*_arg0); end end end @@ -697,19 +731,32 @@ class WebSocket::Driver::PingEvent < ::Struct # Returns the value of attribute data # # @return [Object] the current value of data + # + # source://websocket-driver//lib/websocket/driver.rb#51 def data; end # Sets the attribute data # # @param value [Object] the value to set the attribute data to. # @return [Object] the newly set value + # + # source://websocket-driver//lib/websocket/driver.rb#51 def data=(_); end class << self + # source://websocket-driver//lib/websocket/driver.rb#51 def [](*_arg0); end + + # source://websocket-driver//lib/websocket/driver.rb#51 def inspect; end + + # source://websocket-driver//lib/websocket/driver.rb#51 def keyword_init?; end + + # source://websocket-driver//lib/websocket/driver.rb#51 def members; end + + # source://websocket-driver//lib/websocket/driver.rb#51 def new(*_arg0); end end end @@ -719,19 +766,32 @@ class WebSocket::Driver::PongEvent < ::Struct # Returns the value of attribute data # # @return [Object] the current value of data + # + # source://websocket-driver//lib/websocket/driver.rb#52 def data; end # Sets the attribute data # # @param value [Object] the value to set the attribute data to. # @return [Object] the newly set value + # + # source://websocket-driver//lib/websocket/driver.rb#52 def data=(_); end class << self + # source://websocket-driver//lib/websocket/driver.rb#52 def [](*_arg0); end + + # source://websocket-driver//lib/websocket/driver.rb#52 def inspect; end + + # source://websocket-driver//lib/websocket/driver.rb#52 def keyword_init?; end + + # source://websocket-driver//lib/websocket/driver.rb#52 def members; end + + # source://websocket-driver//lib/websocket/driver.rb#52 def new(*_arg0); end end end @@ -927,9 +987,6 @@ WebSocket::HTTP::Headers::CR = T.let(T.unsafe(nil), Integer) # token = 1* # # separators = "(" | ")" | "<" | ">" | "@" -# | "," | ";" | ":" | "\" | <"> -# | "/" | "[" | "]" | "?" | "=" -# | "{" | "}" | SP | HT # # Or, as redefined in RFC 7230: # @@ -1002,6 +1059,7 @@ WebSocket::HTTP::Response::STATUS_LINE = T.let(T.unsafe(nil), Regexp) module WebSocket::Mask class << self + # source://websocket-driver//lib/websocket/driver.rb#25 def mask(_arg0, _arg1); end end end diff --git a/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi b/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi index 6262a186..dcc32f70 100644 --- a/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +++ b/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi @@ -6,21 +6,7 @@ # source://websocket-extensions//lib/websocket/extensions.rb#1 -module WebSocket - class << self - # source://websocket/1.2.11/lib/websocket.rb#20 - def max_frame_size; end - - # source://websocket/1.2.11/lib/websocket.rb#25 - def max_frame_size=(val); end - - # source://websocket/1.2.11/lib/websocket.rb#31 - def should_raise; end - - # source://websocket/1.2.11/lib/websocket.rb#36 - def should_raise=(val); end - end -end +module WebSocket; end # source://websocket-extensions//lib/websocket/extensions.rb#2 class WebSocket::Extensions @@ -53,7 +39,7 @@ class WebSocket::Extensions # source://websocket-extensions//lib/websocket/extensions.rb#120 def valid_frame_rsv(frame); end - # source://websocket-extensions//lib/websocket/extensions.rb#120 + # source://websocket-extensions//lib/websocket/extensions.rb#135 def valid_frame_rsv?(frame); end private @@ -128,8 +114,4 @@ WebSocket::Extensions::Parser::QUOTED = T.let(T.unsafe(nil), Regexp) # source://websocket-extensions//lib/websocket/extensions/parser.rb#7 WebSocket::Extensions::Parser::TOKEN = T.let(T.unsafe(nil), Regexp) -module WebSocket::Mask - class << self - def mask(_arg0, _arg1); end - end -end +module WebSocket::Mask; end diff --git a/sorbet/rbi/gems/websocket@1.2.11.rbi b/sorbet/rbi/gems/websocket@1.2.11.rbi index 6fb984a3..1690a715 100644 --- a/sorbet/rbi/gems/websocket@1.2.11.rbi +++ b/sorbet/rbi/gems/websocket@1.2.11.rbi @@ -228,7 +228,7 @@ class WebSocket::Frame::Base # @param args [Hash] Arguments for frame # @return [Base] a new instance of Base # - # source://websocket//lib/websocket/exception_handler.rb#19 + # source://websocket//lib/websocket/frame/base.rb#19 def initialize(*args); end # Returns the value of attribute code. @@ -267,7 +267,7 @@ class WebSocket::Frame::Base # source://websocket//lib/websocket/frame/base.rb#31 def error?; end - # source://websocket//lib/websocket/exception_handler.rb#19 + # source://websocket//lib/websocket/frame/base.rb#27 def initialize_with_rescue(*args); end # Is selected type supported for selected handler? @@ -303,7 +303,7 @@ class WebSocket::Frame::Base # source://websocket//lib/websocket/frame/base.rb#49 def include_version; end - # source://websocket//lib/websocket/frame/base.rb#19 + # source://websocket//lib/websocket/frame/base.rb#27 def initialize_without_rescue(args = T.unsafe(nil)); end end @@ -626,13 +626,13 @@ class WebSocket::Frame::Incoming < ::WebSocket::Frame::Base # # @return [WebSocket::Frame::Incoming] Single incoming frame or nil if no complete frame is available. # - # source://websocket//lib/websocket/exception_handler.rb#19 + # source://websocket//lib/websocket/frame/incoming.rb#40 def next(*args); end - # source://websocket//lib/websocket/exception_handler.rb#19 + # source://websocket//lib/websocket/frame/incoming.rb#43 def next_with_rescue(*args); end - # source://websocket//lib/websocket/frame/incoming.rb#40 + # source://websocket//lib/websocket/frame/incoming.rb#43 def next_without_rescue; end # If decoded then this will return frame content. Otherwise it will return raw frame. @@ -696,13 +696,13 @@ class WebSocket::Frame::Outgoing < ::WebSocket::Frame::Base # # @raise [WebSocket::Error::Frame::UnknownFrameType] # - # source://websocket//lib/websocket/exception_handler.rb#19 + # source://websocket//lib/websocket/frame/outgoing.rb#28 def to_s(*args); end - # source://websocket//lib/websocket/exception_handler.rb#19 + # source://websocket//lib/websocket/frame/outgoing.rb#32 def to_s_with_rescue(*args); end - # source://websocket//lib/websocket/frame/outgoing.rb#28 + # source://websocket//lib/websocket/frame/outgoing.rb#32 def to_s_without_rescue; end end @@ -830,13 +830,13 @@ class WebSocket::Handshake::Base # # @return [String] text of response # - # source://websocket//lib/websocket/exception_handler.rb#19 + # source://websocket//lib/websocket/handshake/base.rb#40 def to_s(*args); end - # source://websocket//lib/websocket/exception_handler.rb#19 + # source://websocket//lib/websocket/handshake/base.rb#43 def to_s_with_rescue(*args); end - # source://websocket//lib/websocket/handshake/base.rb#40 + # source://websocket//lib/websocket/handshake/base.rb#43 def to_s_without_rescue; end # URI of request. @@ -852,7 +852,7 @@ class WebSocket::Handshake::Base # # @return [Boolean] False if some errors occured. Reason for error could be found in error method # - # source://websocket//lib/websocket/exception_handler.rb#19 + # source://websocket//lib/websocket/handshake/base.rb#53 def valid?(*args); end # Returns the value of attribute version. @@ -937,7 +937,7 @@ class WebSocket::Handshake::Client < ::WebSocket::Handshake::Base # @raise [WebSocket::Error::Handshake::NoHostProvided] # @return [Client] a new instance of Client # - # source://websocket//lib/websocket/exception_handler.rb#19 + # source://websocket//lib/websocket/handshake/client.rb#57 def initialize(*args); end # Add text of response from Server. This method will parse content immediately and update state and error(if neccessary) @@ -952,7 +952,7 @@ class WebSocket::Handshake::Client < ::WebSocket::Handshake::Base # EOF # @param data [String] Data to add # - # source://websocket//lib/websocket/exception_handler.rb#19 + # source://websocket//lib/websocket/handshake/client.rb#90 def <<(*args); end # Returns the value of attribute headers. @@ -960,7 +960,7 @@ class WebSocket::Handshake::Client < ::WebSocket::Handshake::Base # source://websocket//lib/websocket/handshake/client.rb#37 def headers; end - # source://websocket//lib/websocket/exception_handler.rb#19 + # source://websocket//lib/websocket/handshake/client.rb#76 def initialize_with_rescue(*args); end # Returns the value of attribute origin. @@ -984,7 +984,7 @@ class WebSocket::Handshake::Client < ::WebSocket::Handshake::Base # source://websocket//lib/websocket/handshake/client.rb#106 def include_version; end - # source://websocket//lib/websocket/handshake/client.rb#57 + # source://websocket//lib/websocket/handshake/client.rb#76 def initialize_without_rescue(args = T.unsafe(nil)); end # Parse first line of Server response. @@ -1402,7 +1402,7 @@ class WebSocket::Handshake::Server < ::WebSocket::Handshake::Base # EOF # @param data [String] Data to add # - # source://websocket//lib/websocket/exception_handler.rb#19 + # source://websocket//lib/websocket/handshake/server.rb#64 def <<(*args); end # Parse the request from hash @@ -1475,11 +1475,7 @@ end # source://websocket//lib/websocket/handshake/server.rb#163 WebSocket::Handshake::Server::PATH = T.let(T.unsafe(nil), Regexp) -module WebSocket::Mask - class << self - def mask(_arg0, _arg1); end - end -end +module WebSocket::Mask; end # source://websocket//lib/websocket/nice_inspect.rb#4 module WebSocket::NiceInspect diff --git a/sorbet/rbi/gems/xpath@3.2.0.rbi b/sorbet/rbi/gems/xpath@3.2.0.rbi index 9dbb5114..aaecf500 100644 --- a/sorbet/rbi/gems/xpath@3.2.0.rbi +++ b/sorbet/rbi/gems/xpath@3.2.0.rbi @@ -21,43 +21,43 @@ end # source://xpath//lib/xpath/dsl.rb#4 module XPath::DSL - # source://xpath//lib/xpath/dsl.rb#90 + # source://xpath//lib/xpath/dsl.rb#101 def !(*args); end - # source://xpath//lib/xpath/dsl.rb#122 + # source://xpath//lib/xpath/dsl.rb#125 def !=(rhs); end - # source://xpath//lib/xpath/dsl.rb#122 + # source://xpath//lib/xpath/dsl.rb#125 def %(rhs); end - # source://xpath//lib/xpath/dsl.rb#122 + # source://xpath//lib/xpath/dsl.rb#125 def &(rhs); end - # source://xpath//lib/xpath/dsl.rb#122 + # source://xpath//lib/xpath/dsl.rb#125 def *(rhs); end - # source://xpath//lib/xpath/dsl.rb#62 + # source://xpath//lib/xpath/dsl.rb#65 def +(*expressions); end - # source://xpath//lib/xpath/dsl.rb#122 + # source://xpath//lib/xpath/dsl.rb#125 def /(rhs); end - # source://xpath//lib/xpath/dsl.rb#122 + # source://xpath//lib/xpath/dsl.rb#125 def <(rhs); end - # source://xpath//lib/xpath/dsl.rb#122 + # source://xpath//lib/xpath/dsl.rb#125 def <=(rhs); end - # source://xpath//lib/xpath/dsl.rb#122 + # source://xpath//lib/xpath/dsl.rb#125 def ==(rhs); end - # source://xpath//lib/xpath/dsl.rb#122 + # source://xpath//lib/xpath/dsl.rb#125 def >(rhs); end - # source://xpath//lib/xpath/dsl.rb#122 + # source://xpath//lib/xpath/dsl.rb#125 def >=(rhs); end - # source://xpath//lib/xpath/dsl.rb#45 + # source://xpath//lib/xpath/dsl.rb#52 def [](expression); end # source://xpath//lib/xpath/dsl.rb#136 @@ -150,15 +150,12 @@ module XPath::DSL # source://xpath//lib/xpath/dsl.rb#90 def id(*args); end - # source://xpath//lib/xpath/dsl.rb#90 + # source://xpath//lib/xpath/dsl.rb#99 def inverse(*args); end # source://xpath//lib/xpath/dsl.rb#54 def is(expression); end - # source://capybara/3.40.0/lib/capybara/selector/xpath_extensions.rb#13 - def join(*expressions); end - # source://xpath//lib/xpath/dsl.rb#90 def lang(*args); end @@ -189,7 +186,7 @@ module XPath::DSL # source://xpath//lib/xpath/dsl.rb#122 def multiply(rhs); end - # source://xpath//lib/xpath/dsl.rb#90 + # source://xpath//lib/xpath/dsl.rb#103 def n(*args); end # source://xpath//lib/xpath/dsl.rb#136 @@ -201,7 +198,7 @@ module XPath::DSL # source://xpath//lib/xpath/dsl.rb#166 def next_sibling(*expressions); end - # source://xpath//lib/xpath/dsl.rb#90 + # source://xpath//lib/xpath/dsl.rb#102 def normalize(*args); end # source://xpath//lib/xpath/dsl.rb#90 @@ -249,7 +246,7 @@ module XPath::DSL # source://xpath//lib/xpath/dsl.rb#136 def self(*element_names); end - # source://xpath//lib/xpath/dsl.rb#136 + # source://xpath//lib/xpath/dsl.rb#141 def self_axis(*element_names); end # source://xpath//lib/xpath/dsl.rb#90 @@ -291,10 +288,10 @@ module XPath::DSL # source://xpath//lib/xpath/dsl.rb#45 def where(expression); end - # source://xpath//lib/xpath/dsl.rb#122 + # source://xpath//lib/xpath/dsl.rb#125 def |(rhs); end - # source://xpath//lib/xpath/dsl.rb#90 + # source://xpath//lib/xpath/dsl.rb#100 def ~(*args); end end @@ -349,7 +346,7 @@ class XPath::Expression # source://xpath//lib/xpath/expression.rb#5 def expression=(_arg0); end - # source://xpath//lib/xpath/expression.rb#17 + # source://xpath//lib/xpath/expression.rb#20 def to_s(type = T.unsafe(nil)); end # source://xpath//lib/xpath/expression.rb#17 @@ -406,9 +403,6 @@ class XPath::Renderer # source://xpath//lib/xpath/renderer.rb#75 def is(one, two); end - # source://capybara/3.40.0/lib/capybara/selector/xpath_extensions.rb#5 - def join(*expressions); end - # source://xpath//lib/xpath/renderer.rb#91 def literal(node); end @@ -460,7 +454,7 @@ class XPath::Union # Returns the value of attribute expressions. # - # source://xpath//lib/xpath/union.rb#7 + # source://xpath//lib/xpath/union.rb#8 def arguments; end # source://xpath//lib/xpath/union.rb#18 @@ -477,7 +471,7 @@ class XPath::Union # source://xpath//lib/xpath/union.rb#22 def method_missing(*args); end - # source://xpath//lib/xpath/union.rb#26 + # source://xpath//lib/xpath/union.rb#29 def to_s(type = T.unsafe(nil)); end # source://xpath//lib/xpath/union.rb#26 diff --git a/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi b/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi index 6fe7654e..ac59d98a 100644 --- a/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +++ b/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi @@ -386,11 +386,6 @@ class YARDSorbet::TStructProp < ::T::Struct const :prop_name, ::String const :source, ::String const :types, T::Array[::String] - - class << self - # source://sorbet-runtime/0.5.12003/lib/types/struct.rb#13 - def inherited(s); end - end end # Helper methods for working with `YARD` tags diff --git a/sorbet/rbi/gems/yard@0.9.37.rbi b/sorbet/rbi/gems/yard@0.9.37.rbi index b00cdcfe..0906d4ec 100644 --- a/sorbet/rbi/gems/yard@0.9.37.rbi +++ b/sorbet/rbi/gems/yard@0.9.37.rbi @@ -177,7 +177,7 @@ class Gem::SourceIndex # source://yard//lib/yard/rubygems/backports/source_index.rb#143 def latest_specs(include_prerelease = T.unsafe(nil)); end - # source://yard//lib/yard/rubygems/backports/source_index.rb#248 + # source://yard//lib/yard/rubygems/backports/source_index.rb#251 def length; end # Reconstruct the source index from the specifications in +spec_dirs+. @@ -491,21 +491,9 @@ RUBY19 = T.let(T.unsafe(nil), TrueClass) # # source://yard//lib/yard/server/rack_adapter.rb#93 class Rack::Request - # source://rack/3.1.12/lib/rack/request.rb#62 - def initialize(env); end - - # source://rack/3.1.12/lib/rack/request.rb#76 - def delete_param(k); end - - # source://rack/3.1.12/lib/rack/request.rb#67 - def params; end - - # source://rack/3.1.12/lib/rack/request.rb#67 + # source://yard//lib/yard/server/rack_adapter.rb#95 def query; end - # source://rack/3.1.12/lib/rack/request.rb#71 - def update_param(k, v); end - # Returns the value of attribute version_supplied. # # source://yard//lib/yard/server/rack_adapter.rb#94 @@ -522,26 +510,6 @@ class Rack::Request # # source://yard//lib/yard/server/rack_adapter.rb#96 def xhr?; end - - class << self - # source://rack/3.1.12/lib/rack/request.rb#31 - def forwarded_priority; end - - # source://rack/3.1.12/lib/rack/request.rb#31 - def forwarded_priority=(_arg0); end - - # source://rack/3.1.12/lib/rack/request.rb#18 - def ip_filter; end - - # source://rack/3.1.12/lib/rack/request.rb#18 - def ip_filter=(_arg0); end - - # source://rack/3.1.12/lib/rack/request.rb#40 - def x_forwarded_proto_priority; end - - # source://rack/3.1.12/lib/rack/request.rb#40 - def x_forwarded_proto_priority=(_arg0); end - end end # source://yard//lib/yard/core_ext/string.rb#2 @@ -602,7 +570,7 @@ class SymbolHash < ::Hash # @param key [#to_sym] the key to test # @return [Boolean] whether the key exists # - # source://yard//lib/yard/core_ext/symbol_hash.rb#59 + # source://yard//lib/yard/core_ext/symbol_hash.rb#60 def has_key?(key); end # Tests if a symbolized key exists @@ -627,7 +595,7 @@ class SymbolHash < ::Hash # @param hash [Hash] the hash object to copy the values from # @return [SymbolHash] self # - # source://yard//lib/yard/core_ext/symbol_hash.rb#67 + # source://yard//lib/yard/core_ext/symbol_hash.rb#68 def merge!(hash); end # Updates the object with the contents of another Hash object. @@ -1271,10 +1239,10 @@ class YARD::CLI::GraphOptions < ::YARD::Templates::TemplateOptions # @return [:dot] the default output format # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/graph.rb#7 def format; end - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/graph.rb#7 def format=(_arg0); end # @return [Boolean] whether to list the full class diagram @@ -2211,18 +2179,18 @@ class YARD::CLI::YardocOptions < ::YARD::Templates::TemplateOptions # @return [Array] the list of extra files rendered along with objects # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/yardoc.rb#11 def files; end - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/yardoc.rb#11 def files=(_arg0); end # @return [Symbol] the default output format (:html). # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/yardoc.rb#24 def format; end - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/yardoc.rb#24 def format=(_arg0); end # @return [Numeric] An index value for rendering sequentially related templates @@ -2272,10 +2240,10 @@ class YARD::CLI::YardocOptions < ::YARD::Templates::TemplateOptions # @return [Boolean] whether the data should be rendered in a single page, # if the template supports it. # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/yardoc.rb#28 def onefile; end - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/yardoc.rb#28 def onefile=(_arg0); end # @return [CodeObjects::ExtraFileObject] the README file object rendered @@ -2293,26 +2261,26 @@ class YARD::CLI::YardocOptions < ::YARD::Templates::TemplateOptions # @return [Serializers::Base] the default serializer for generating output # to disk. # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/yardoc.rb#21 def serializer; end - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/yardoc.rb#21 def serializer=(_arg0); end # @return [String] the default title appended to each generated page # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/yardoc.rb#14 def title; end - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/yardoc.rb#14 def title=(_arg0); end # @return [Verifier] the default verifier object to filter queries # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/yardoc.rb#17 def verifier; end - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/cli/yardoc.rb#17 def verifier=(_arg0); end end @@ -2538,7 +2506,7 @@ class YARD::CodeObjects::Base # the paths are equal # @return [Boolean] whether or not the objects are considered the same # - # source://yard//lib/yard/code_objects/base.rb#323 + # source://yard//lib/yard/code_objects/base.rb#330 def ==(other); end # Accesses a custom attribute on the object @@ -2586,7 +2554,7 @@ class YARD::CodeObjects::Base # @return [Docstring] the documentation string # @since 0.8.4 # - # source://yard//lib/yard/code_objects/base.rb#166 + # source://yard//lib/yard/code_objects/base.rb#164 def base_docstring; end # Copies all data in this object to another code object, except for @@ -2645,7 +2613,7 @@ class YARD::CodeObjects::Base # the paths are equal # @return [Boolean] whether or not the objects are considered the same # - # source://yard//lib/yard/code_objects/base.rb#323 + # source://yard//lib/yard/code_objects/base.rb#331 def eql?(other); end # Tests if another object is equal to this, including a proxy @@ -2770,7 +2738,7 @@ class YARD::CodeObjects::Base # # @return [NamespaceObject] the namespace object # - # source://yard//lib/yard/code_objects/base.rb#142 + # source://yard//lib/yard/code_objects/base.rb#543 def parent; end # Sets the namespace the object is defined in. @@ -2779,7 +2747,7 @@ class YARD::CodeObjects::Base # for {Registry.root}). If obj is nil, the object is unregistered # from the Registry. # - # source://yard//lib/yard/code_objects/base.rb#522 + # source://yard//lib/yard/code_objects/base.rb#544 def parent=(obj); end # Represents the unique path of the object. The default implementation @@ -2905,7 +2873,7 @@ class YARD::CodeObjects::Base # @return [String] the unique path of the object # @see #sep # - # source://yard//lib/yard/code_objects/base.rb#453 + # source://yard//lib/yard/code_objects/base.rb#460 def to_s; end # Default type is the lowercase class name without the "Object" suffix. @@ -2923,7 +2891,7 @@ class YARD::CodeObjects::Base # @return [Symbol] the visibility of an object (:public, :private, :protected) # - # source://yard//lib/yard/code_objects/base.rb#183 + # source://yard//lib/yard/code_objects/base.rb#181 def visibility=(v); end protected @@ -3108,7 +3076,7 @@ class YARD::CodeObjects::CodeObjectList < ::Array # @param value [Base] a code object to add # @return [CodeObjectList] self # - # source://yard//lib/yard/code_objects/base.rb#19 + # source://yard//lib/yard/code_objects/base.rb#28 def <<(value); end # Adds a new value to the list @@ -3202,10 +3170,10 @@ class YARD::CodeObjects::ExtraFileObject # source://yard//lib/yard/code_objects/extra_file_object.rb#44 def contents=(contents); end - # source://yard//lib/yard/code_objects/extra_file_object.rb#64 + # source://yard//lib/yard/code_objects/extra_file_object.rb#68 def eql?(other); end - # source://yard//lib/yard/code_objects/extra_file_object.rb#64 + # source://yard//lib/yard/code_objects/extra_file_object.rb#69 def equal?(other); end # Returns the value of attribute filename. @@ -3252,13 +3220,13 @@ class YARD::CodeObjects::ExtraFileObject # Returns the value of attribute name. # - # source://yard//lib/yard/code_objects/extra_file_object.rb#10 + # source://yard//lib/yard/code_objects/extra_file_object.rb#28 def path; end # source://yard//lib/yard/code_objects/extra_file_object.rb#35 def title; end - # source://yard//lib/yard/code_objects/extra_file_object.rb#57 + # source://yard//lib/yard/code_objects/extra_file_object.rb#60 def to_s; end # source://yard//lib/yard/code_objects/extra_file_object.rb#62 @@ -3438,7 +3406,7 @@ class YARD::CodeObjects::MacroObject < ::YARD::CodeObjects::Base # @return [nil] if the +data+ has no macro tag or if the macro is # not new and no macro by the macro name is found. # - # source://yard//lib/yard/code_objects/macro_object.rb#70 + # source://yard//lib/yard/code_objects/macro_object.rb#73 def create_docstring(macro_name, data, method_object = T.unsafe(nil)); end # Expands +macro_data+ using the interpolation parameters. @@ -4026,7 +3994,7 @@ class YARD::CodeObjects::Proxy # @return [Boolean] # - # source://yard//lib/yard/code_objects/proxy.rb#127 + # source://yard//lib/yard/code_objects/proxy.rb#134 def ==(other); end # @return [Boolean] @@ -4099,7 +4067,7 @@ class YARD::CodeObjects::Proxy # Returns the value of attribute namespace. # - # source://yard//lib/yard/code_objects/proxy.rb#27 + # source://yard//lib/yard/code_objects/proxy.rb#28 def parent; end # If the proxy resolves to an object, returns its path, otherwise @@ -4129,7 +4097,7 @@ class YARD::CodeObjects::Proxy # @return [String] the assumed path of the proxy (or the real path # of the resolved object) # - # source://yard//lib/yard/code_objects/proxy.rb#100 + # source://yard//lib/yard/code_objects/proxy.rb#105 def title; end # If the proxy resolves to an object, returns its path, otherwise @@ -4138,7 +4106,7 @@ class YARD::CodeObjects::Proxy # @return [String] the assumed path of the proxy (or the real path # of the resolved object) # - # source://yard//lib/yard/code_objects/proxy.rb#100 + # source://yard//lib/yard/code_objects/proxy.rb#103 def to_s; end # If the proxy resolves to an object, returns its path, otherwise @@ -4147,7 +4115,7 @@ class YARD::CodeObjects::Proxy # @return [String] the assumed path of the proxy (or the real path # of the resolved object) # - # source://yard//lib/yard/code_objects/proxy.rb#100 + # source://yard//lib/yard/code_objects/proxy.rb#104 def to_str; end # Returns the type of the proxy. If it cannot be resolved at the @@ -4552,7 +4520,7 @@ class YARD::Docstring < ::String # # @param content [String] the raw comments to be parsed # - # source://yard//lib/yard/docstring.rb#132 + # source://yard//lib/yard/docstring.rb#144 def all=(content, parse = T.unsafe(nil)); end # Returns true if the docstring has no content that is visible to a template. @@ -5329,36 +5297,36 @@ class YARD::Handlers::Base # Returns the value of attribute extra_state. # - # source://yard//lib/yard/handlers/base.rb#348 + # source://yard//lib/yard/handlers/base.rb#333 def extra_state; end # Returns the value of attribute globals. # - # source://yard//lib/yard/handlers/base.rb#347 + # source://yard//lib/yard/handlers/base.rb#330 def globals; end # Returns the value of attribute namespace. # - # source://yard//lib/yard/handlers/base.rb#341 + # source://yard//lib/yard/handlers/base.rb#321 def namespace; end # Sets the attribute namespace # # @param value the value to set the attribute namespace to. # - # source://yard//lib/yard/handlers/base.rb#342 + # source://yard//lib/yard/handlers/base.rb#321 def namespace=(v); end # Returns the value of attribute owner. # - # source://yard//lib/yard/handlers/base.rb#339 + # source://yard//lib/yard/handlers/base.rb#318 def owner; end # Sets the attribute owner # # @param value the value to set the attribute owner to. # - # source://yard//lib/yard/handlers/base.rb#340 + # source://yard//lib/yard/handlers/base.rb#318 def owner=(v); end # Parses the semantic "block" contained in the statement node. @@ -5502,14 +5470,14 @@ class YARD::Handlers::Base # Returns the value of attribute scope. # - # source://yard//lib/yard/handlers/base.rb#345 + # source://yard//lib/yard/handlers/base.rb#327 def scope; end # Sets the attribute scope # # @param value the value to set the attribute scope to. # - # source://yard//lib/yard/handlers/base.rb#346 + # source://yard//lib/yard/handlers/base.rb#327 def scope=(v); end # @return [Object] the statement object currently being processed. Usually @@ -5521,14 +5489,14 @@ class YARD::Handlers::Base # Returns the value of attribute visibility. # - # source://yard//lib/yard/handlers/base.rb#343 + # source://yard//lib/yard/handlers/base.rb#324 def visibility; end # Sets the attribute visibility # # @param value the value to set the attribute visibility to. # - # source://yard//lib/yard/handlers/base.rb#344 + # source://yard//lib/yard/handlers/base.rb#324 def visibility=(v); end class << self @@ -6216,7 +6184,7 @@ class YARD::Handlers::Processor # @return [Hash] a list of registered parser type extensions # @since 0.6.0 # - # source://yard//lib/yard/handlers/processor.rb#32 + # source://yard//lib/yard/handlers/processor.rb#30 def namespace_for_handler; end # Registers a new namespace for handlers of the given type. @@ -7121,13 +7089,13 @@ class YARD::I18n::Locale # @return [String, nil] the default locale name. # @since 0.8.4 # - # source://yard//lib/yard/i18n/locale.rb#15 + # source://yard//lib/yard/i18n/locale.rb#12 def default; end # @return [String, nil] the default locale name. # @since 0.8.4 # - # source://yard//lib/yard/i18n/locale.rb#20 + # source://yard//lib/yard/i18n/locale.rb#12 def default=(locale); end end end @@ -7541,7 +7509,7 @@ class YARD::Logger # @return [void] # @since 0.8.2 # - # source://yard//lib/yard/logging.rb#205 + # source://yard//lib/yard/logging.rb#209 def <<(msg = T.unsafe(nil)); end # Prints the backtrace +exc+ to the logger as error data. @@ -8357,7 +8325,7 @@ class YARD::Parser::C::Statement # source://yard//lib/yard/parser/c/statement.rb#36 def show; end - # source://yard//lib/yard/parser/c/statement.rb#30 + # source://yard//lib/yard/parser/c/statement.rb#34 def signature; end # Returns the value of attribute source. @@ -8529,17 +8497,17 @@ class YARD::Parser::Ruby::AstNode < ::Array # Returns the value of attribute docstring. # - # source://yard//lib/yard/parser/ruby/ast_node.rb#43 + # source://yard//lib/yard/parser/ruby/ast_node.rb#50 def comments; end # Returns the value of attribute docstring_hash_flag. # - # source://yard//lib/yard/parser/ruby/ast_node.rb#42 + # source://yard//lib/yard/parser/ruby/ast_node.rb#52 def comments_hash_flag; end # Returns the value of attribute docstring_range. # - # source://yard//lib/yard/parser/ruby/ast_node.rb#43 + # source://yard//lib/yard/parser/ruby/ast_node.rb#51 def comments_range; end # @return [Boolean] whether the node is a if/elsif/else condition @@ -8723,7 +8691,7 @@ class YARD::Parser::Ruby::AstNode < ::Array # @return [String] the parse of {#full_source} that the node represents # - # source://yard//lib/yard/parser/ruby/ast_node.rb#89 + # source://yard//lib/yard/parser/ruby/ast_node.rb#43 def source; end # Sets the attribute source @@ -8748,7 +8716,7 @@ class YARD::Parser::Ruby::AstNode < ::Array # Returns the value of attribute source. # - # source://yard//lib/yard/parser/ruby/ast_node.rb#43 + # source://yard//lib/yard/parser/ruby/ast_node.rb#53 def to_s; end # @return [Boolean] whether the node is a token @@ -8824,7 +8792,7 @@ end # # source://yard//lib/yard/parser/ruby/ast_node.rb#548 class YARD::Parser::Ruby::CommentNode < ::YARD::Parser::Ruby::AstNode - # source://yard//lib/yard/parser/ruby/ast_node.rb#549 + # source://yard//lib/yard/parser/ruby/ast_node.rb#551 def comments; end # source://yard//lib/yard/parser/ruby/ast_node.rb#549 @@ -9201,6 +9169,7 @@ YARD::Parser::Ruby::Legacy::RubyToken::NEWLINE_TOKEN = T.let(T.unsafe(nil), YARD # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::OPASGN < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9217,6 +9186,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkAND < ::YARD::Parser::Ruby::Legac # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkANDOP < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9224,6 +9194,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkAREF < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9231,6 +9202,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkASET < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9241,6 +9213,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkASSIGN < ::YARD::Parser::Ruby::Le # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkASSOC < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9251,6 +9224,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkAT < ::YARD::Parser::Ruby::Legacy # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkBACKQUOTE < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9267,6 +9241,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkBEGIN < ::YARD::Parser::Ruby::Leg # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkBITAND < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9274,6 +9249,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkBITNOT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9281,6 +9257,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkBITOR < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9288,6 +9265,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkBITXOR < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9312,6 +9290,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkCLASS < ::YARD::Parser::Ruby::Leg # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkCMP < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9319,6 +9298,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkCOLON < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9326,6 +9306,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkCOLON2 < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9333,6 +9314,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkCOLON3 < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9355,6 +9337,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkDEFINED < ::YARD::Parser::Ruby::L # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkDIV < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9371,6 +9354,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkDOT < ::YARD::Parser::Ruby::Legac # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkDOT2 < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9378,6 +9362,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkDOT3 < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9409,6 +9394,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkENSURE < ::YARD::Parser::Ruby::Le # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkEQ < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9416,6 +9402,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkEQQ < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9438,6 +9425,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkFOR < ::YARD::Parser::Ruby::Legac # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkGEQ < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9445,6 +9433,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkGT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9502,6 +9491,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkLBRACK < ::YARD::Parser::Ruby::Le # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkLEQ < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9512,6 +9502,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkLPAREN < ::YARD::Parser::Ruby::Le # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkLSHFT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9519,6 +9510,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkLT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9526,6 +9518,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkMATCH < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9533,6 +9526,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkMINUS < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9540,6 +9534,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkMOD < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9550,6 +9545,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkMODULE < ::YARD::Parser::Ruby::Le # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkMULT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9557,6 +9553,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkNEQ < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9573,6 +9570,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkNL < ::YARD::Parser::Ruby::Legacy # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkNMATCH < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9583,6 +9581,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkNOT < ::YARD::Parser::Ruby::Legac # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkNOTOP < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9617,6 +9616,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkOR < ::YARD::Parser::Ruby::Legacy # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkOROP < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9630,6 +9630,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkPLUS < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9637,6 +9638,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkPOW < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9644,6 +9646,7 @@ end # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkQUESTION < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9675,6 +9678,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkRPAREN < ::YARD::Parser::Ruby::Le # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkRSHFT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9729,6 +9733,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkTRUE < ::YARD::Parser::Ruby::Lega # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkUMINUS < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9751,6 +9756,7 @@ class YARD::Parser::Ruby::Legacy::RubyToken::TkUNTIL_MOD < ::YARD::Parser::Ruby: # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 class YARD::Parser::Ruby::Legacy::RubyToken::TkUPLUS < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp class << self + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#298 def op_name; end end end @@ -9942,10 +9948,10 @@ class YARD::Parser::Ruby::Legacy::Statement # source://yard//lib/yard/parser/ruby/legacy/statement.rb#41 def show; end - # source://yard//lib/yard/parser/ruby/legacy/statement.rb#21 + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#25 def signature; end - # source://yard//lib/yard/parser/ruby/legacy/statement.rb#27 + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#32 def source(include_block = T.unsafe(nil)); end # source://yard//lib/yard/parser/ruby/legacy/statement.rb#27 @@ -10106,7 +10112,7 @@ class YARD::Parser::Ruby::Legacy::TokenList < ::Array # @param tokens [TokenList, Token, String] A list of tokens. If the token is a string, it # is parsed with {RubyLex}. # - # source://yard//lib/yard/parser/ruby/legacy/token_list.rb#21 + # source://yard//lib/yard/parser/ruby/legacy/token_list.rb#35 def <<(*tokens); end # @param tokens [TokenList, Token, String] A list of tokens. If the token is a string, it @@ -10187,6 +10193,7 @@ end # source://yard//lib/yard/parser/ruby/ast_node.rb#479 class YARD::Parser::Ruby::MethodDefinitionNode < ::YARD::Parser::Ruby::AstNode + # source://yard//lib/yard/parser/ruby/ast_node.rb#506 def block(n = T.unsafe(nil)); end # @return [Boolean] @@ -10319,490 +10326,490 @@ class YARD::Parser::Ruby::RipperParser < ::Ripper # source://yard//lib/yard/parser/ruby/ruby_parser.rb#29 def frozen_string_line; end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_BEGIN(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_CHAR(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_END(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on___end__(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_alias(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_alias_error(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_arg_ambiguous(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_arg_paren(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_args_add(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_args_add_block(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_args_add_star(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_args_forward(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#154 def on_args_new(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_aryptn(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_assign(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_assign_error(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_assoc_splat(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_backref(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_backtick(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_begin(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_binary(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_block_var(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_blockarg(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_brace_block(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_break(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_call(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_case(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_class(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_class_name_error(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_comma(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_command(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_command_call(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_const(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_const_path_field(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_const_ref(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_cvar(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_def(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_defined(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_defs(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_do_block(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_dot2(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_dot3(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_else(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_elsif(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_embexpr_beg(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_embexpr_end(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_embvar(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_ensure(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_excessed_comma(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_fcall(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_field(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_float(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_fndptn(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_for(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_gvar(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_heredoc_beg(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_heredoc_dedent(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_heredoc_end(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_hshptn(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_ident(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_if(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#449 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_if_mod(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_ifop(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#222 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_ignored_nl(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_ignored_sp(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_imaginary(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_in(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_int(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_ivar(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#209 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_kw(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_kwrest_param(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_label_end(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_lbrace(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_lparen(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_magic_comment(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_massign(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_method_add_arg(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_method_add_block(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_mlhs_add(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_mlhs_add_post(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_mlhs_add_star(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#154 def on_mlhs_new(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_mlhs_paren(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_module(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_mrhs_add(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_mrhs_add_star(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#154 def on_mrhs_new(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_mrhs_new_from_args(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_next(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#222 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_nl(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_nokw_param(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#209 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_op(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_opassign(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_operator_ambiguous(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_param_error(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_paren(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_period(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#474 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_qsymbols_add(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_qsymbols_beg(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#462 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#154 def on_qsymbols_new(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#474 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_qwords_add(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_qwords_beg(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#462 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#154 def on_qwords_new(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_rational(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_rbrace(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_redo(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_regexp_add(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_regexp_beg(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_regexp_end(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_regexp_literal(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#154 def on_regexp_new(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_rescue_mod(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_rest_param(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_retry(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_return(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_return0(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_rparen(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_sclass(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_semicolon(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_stmts_add(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#154 def on_stmts_new(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_string_add(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_string_concat(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_string_dvar(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_string_embexpr(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_super(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_symbeg(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_symbol(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_symbol_literal(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#474 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_symbols_add(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_symbols_beg(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#462 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#154 def on_symbols_new(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_tlambda(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_tlambeg(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_top_const_field(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_tstring_beg(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_tstring_content(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_tstring_end(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_undef(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_unless(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#449 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_unless_mod(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_until(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#449 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_until_mod(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_var_alias(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_var_field(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_var_ref(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_vcall(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_when(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_while(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#449 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_while_mod(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_word_add(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#154 def on_word_new(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#474 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_words_add(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_words_beg(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#462 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#154 def on_words_new(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_words_sep(tok); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#160 def on_xstring_add(list, item); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_xstring_literal(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#154 def on_xstring_new(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_yield(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_yield0(*args); end - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_zsuper(*args); end # @since 0.5.6 @@ -10812,7 +10819,7 @@ class YARD::Parser::Ruby::RipperParser < ::Ripper # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#28 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#30 def root; end # @since 0.5.6 @@ -10846,7 +10853,7 @@ class YARD::Parser::Ruby::RipperParser < ::Ripper # @raise [ParserSyntaxError] # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#606 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#609 def compile_error(msg); end # @since 0.5.6 @@ -10861,32 +10868,32 @@ class YARD::Parser::Ruby::RipperParser < ::Ripper # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#377 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_aref(*args); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#385 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_aref_field(*args); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#391 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_array(other); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#352 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_assoc_new(*args); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#364 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_assoclist_from_args(*args); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#360 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_bare_assoc_hash(*args); end # @since 0.5.6 @@ -10896,113 +10903,113 @@ class YARD::Parser::Ruby::RipperParser < ::Ripper # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#347 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_bodystmt(*args); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#542 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_comment(comment); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#441 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_const_path_ref(*args); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#419 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_dyna_symbol(sym); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#592 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_embdoc(text); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#586 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_embdoc_beg(text); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#597 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_embdoc_end(text); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#356 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_hash(*args); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#534 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_label(data); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#497 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_lambda(*args); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#409 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_lbracket(tok); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#515 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_params(*args); end # @raise [ParserSyntaxError] # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#606 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_parse_error(msg); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#343 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_program(*args); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#414 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_rbracket(tok); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#506 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_rescue(exc, *args); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#232 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#186 def on_sp(tok); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#501 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_string_content(*args); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#484 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_string_literal(*args); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#429 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#168 def on_top_const_ref(*args); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#368 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_unary(op, val); end # @since 0.5.6 # - # source://yard//lib/yard/parser/ruby/ruby_parser.rb#511 + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#175 def on_void_stmt; end # @since 0.5.6 @@ -11747,7 +11754,7 @@ module YARD::Registry # @return [CodeObjects::Base] the object at path # @return [nil] if no object is found # - # source://yard//lib/yard/registry.rb#261 + # source://yard//lib/yard/registry.rb#262 def [](path); end # Returns all objects in the registry that match one of the types provided @@ -11907,14 +11914,14 @@ module YARD::Registry # # @return [String] the directory that has .po files # - # source://yard//lib/yard/registry.rb#353 + # source://yard//lib/yard/registry.rb#349 def po_dir; end # Gets/sets the directory that has LANG.po files # # @return [String] the directory that has .po files # - # source://yard//lib/yard/registry.rb#351 + # source://yard//lib/yard/registry.rb#349 def po_dir=(dir); end # The assumed types of a list of paths. This method is used by CodeObjects::Base @@ -11990,7 +11997,7 @@ module YARD::Registry # @return [Boolean, nil] if this value is set to nil, the storage # adapter will decide how to store the data. # - # source://yard//lib/yard/registry.rb#335 + # source://yard//lib/yard/registry.rb#332 def single_object_db; end # Whether or not the Registry storage should load everything into a @@ -12002,7 +12009,7 @@ module YARD::Registry # @return [Boolean, nil] if this value is set to nil, the storage # adapter will decide how to store the data. # - # source://yard//lib/yard/registry.rb#334 + # source://yard//lib/yard/registry.rb#332 def single_object_db=(v); end # Gets/sets the yardoc filename @@ -12010,7 +12017,7 @@ module YARD::Registry # @return [String] the yardoc filename # @see DEFAULT_YARDOC_FILE # - # source://yard//lib/yard/registry.rb#88 + # source://yard//lib/yard/registry.rb#84 def yardoc_file; end # Gets/sets the yardoc filename @@ -12018,7 +12025,7 @@ module YARD::Registry # @return [String] the yardoc filename # @see DEFAULT_YARDOC_FILE # - # source://yard//lib/yard/registry.rb#86 + # source://yard//lib/yard/registry.rb#84 def yardoc_file=(v); end # Returns the .yardoc file associated with a gem. @@ -12199,7 +12206,7 @@ class YARD::RegistryStore # If it is empty or :root, returns the {#root} object. # @return [CodeObjects::Base, nil] a code object or nil if none is found # - # source://yard//lib/yard/registry_store.rb#33 + # source://yard//lib/yard/registry_store.rb#69 def [](key); end # Associates an object with a path @@ -12208,7 +12215,7 @@ class YARD::RegistryStore # @param value [CodeObjects::Base] the object to store # @return [CodeObjects::Base] returns +value+ # - # source://yard//lib/yard/registry_store.rb#55 + # source://yard//lib/yard/registry_store.rb#70 def []=(key, value); end # Returns the value of attribute checksums. @@ -13399,22 +13406,22 @@ class YARD::Server::Commands::LibraryIndexOptions < ::YARD::CLI::YardocOptions # source://yard//lib/yard/server/commands/library_index_command.rb#6 def libraries=(_arg0); end - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/server/commands/library_index_command.rb#9 def serialize; end - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/server/commands/library_index_command.rb#9 def serialize=(_arg0); end - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/server/commands/library_index_command.rb#7 def template; end - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/server/commands/library_index_command.rb#7 def template=(_arg0); end - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/server/commands/library_index_command.rb#8 def type; end - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/server/commands/library_index_command.rb#8 def type=(_arg0); end end @@ -13951,7 +13958,7 @@ module YARD::Server::HTTPUtils # # @since 0.6.0 # - # source://yard//lib/yard/server/http_utils.rb#223 + # source://yard//lib/yard/server/http_utils.rb#228 def dequote(str); end # Escapes HTTP reserved and unwise characters in +str+ @@ -13986,7 +13993,7 @@ module YARD::Server::HTTPUtils # # @since 0.6.0 # - # source://yard//lib/yard/server/http_utils.rb#112 + # source://yard//lib/yard/server/http_utils.rb#128 def load_mime_types(file); end # Returns the mime type of +filename+ from the list in +mime_tab+. If no @@ -13994,7 +14001,7 @@ module YARD::Server::HTTPUtils # # @since 0.6.0 # - # source://yard//lib/yard/server/http_utils.rb#134 + # source://yard//lib/yard/server/http_utils.rb#139 def mime_type(filename, mime_tab); end # Normalizes a request path. Raises an exception if the path cannot be @@ -14002,14 +14009,14 @@ module YARD::Server::HTTPUtils # # @since 0.6.0 # - # source://yard//lib/yard/server/http_utils.rb#31 + # source://yard//lib/yard/server/http_utils.rb#42 def normalize_path(path); end # Parses form data in +io+ with the given +boundary+ # # @since 0.6.0 # - # source://yard//lib/yard/server/http_utils.rb#395 + # source://yard//lib/yard/server/http_utils.rb#421 def parse_form_data(io, boundary); end # Parses an HTTP header +raw+ into a hash of header fields with an Array @@ -14017,42 +14024,42 @@ module YARD::Server::HTTPUtils # # @since 0.6.0 # - # source://yard//lib/yard/server/http_utils.rb#145 + # source://yard//lib/yard/server/http_utils.rb#170 def parse_header(raw); end # Parses the query component of a URI in +str+ # # @since 0.6.0 # - # source://yard//lib/yard/server/http_utils.rb#371 + # source://yard//lib/yard/server/http_utils.rb#390 def parse_query(str); end # Parses q values in +value+ as used in Accept headers. # # @since 0.6.0 # - # source://yard//lib/yard/server/http_utils.rb#202 + # source://yard//lib/yard/server/http_utils.rb#218 def parse_qvalues(value); end # Parses a Range header value +ranges_specifier+ # # @since 0.6.0 # - # source://yard//lib/yard/server/http_utils.rb#184 + # source://yard//lib/yard/server/http_utils.rb#197 def parse_range_header(ranges_specifier); end # Quotes and escapes quotes in +str+ # # @since 0.6.0 # - # source://yard//lib/yard/server/http_utils.rb#233 + # source://yard//lib/yard/server/http_utils.rb#236 def quote(str); end # Splits a header value +str+ according to HTTP specification. # # @since 0.6.0 # - # source://yard//lib/yard/server/http_utils.rb#175 + # source://yard//lib/yard/server/http_utils.rb#179 def split_header_value(str); end # Unescapes HTTP reserved and unwise characters in +str+ @@ -14181,7 +14188,7 @@ class YARD::Server::HTTPUtils::FormData < ::String # # @since 0.6.0 # - # source://yard//lib/yard/server/http_utils.rb#347 + # source://yard//lib/yard/server/http_utils.rb#358 def to_ary; end # This FormData's body @@ -14344,7 +14351,7 @@ class YARD::Server::LibraryVersion # @return [Boolean] whether another LibraryVersion is equal to this one # @since 0.6.0 # - # source://yard//lib/yard/server/library_version.rb#153 + # source://yard//lib/yard/server/library_version.rb#157 def ==(other); end # @return [Boolean] whether another LibraryVersion is equal to this one @@ -14356,7 +14363,7 @@ class YARD::Server::LibraryVersion # @return [Boolean] whether another LibraryVersion is equal to this one # @since 0.6.0 # - # source://yard//lib/yard/server/library_version.rb#153 + # source://yard//lib/yard/server/library_version.rb#158 def equal?(other); end # @return [Gem::Specification] a gemspec object for a given library. Used @@ -15303,7 +15310,7 @@ class YARD::Tags::Library # def run; raise NotImplementedError end # end # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def abstract_tag(text); end # Declares the API that the object belongs to. Does not display in @@ -15323,7 +15330,7 @@ class YARD::Tags::Library # documentation if it is listed, letting users know that the # method is not to be used by external components. # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def api_tag(text); end # Declares a readonly attribute on a Struct or class. @@ -15335,7 +15342,7 @@ class YARD::Tags::Library # class MyStruct < Struct; end # @note This attribute is only applicable on class docstrings # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def attr_reader_tag(text); end # Declares a readwrite attribute on a Struct or class. @@ -15347,7 +15354,7 @@ class YARD::Tags::Library # class MyStruct < Struct; end # @note This attribute is only applicable on class docstrings # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def attr_tag(text); end # Declares a writeonly attribute on a Struct or class. @@ -15359,7 +15366,7 @@ class YARD::Tags::Library # class MyStruct < Struct; end # @note This attribute is only applicable on class docstrings # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def attr_writer_tag(text); end # source://yard//lib/yard/tags/library.rb#202 @@ -15371,7 +15378,7 @@ class YARD::Tags::Library # # @author Foo Bar # class MyClass; end # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def author_tag(text); end # Marks a method/class as deprecated with an optional description. @@ -15389,7 +15396,7 @@ class YARD::Tags::Library # def kill; end # end # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def deprecated_tag(text); end # Creates a new directive with tag information and a docstring parser @@ -15414,7 +15421,7 @@ class YARD::Tags::Library # # "mystring".reverse #=> "gnirtsym" # def reverse; end # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def example_tag(text); end # A factory class to handle parsing of tags, defaults to {default_factory} @@ -15457,7 +15464,7 @@ class YARD::Tags::Library # def eject; end # @see tag:todo # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def note_tag(text); end # Describe an options hash in a method. The tag takes the @@ -15478,7 +15485,7 @@ class YARD::Tags::Library # def send_email(opts = {}) end # @note For keyword parameters, use +@param+, not +@option+. # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def option_tag(text); end # Describe that your method can be used in various @@ -15497,7 +15504,7 @@ class YARD::Tags::Library # # @param value [Object] describe value param # def set(*args) end # - # source://yard//lib/yard/tags/library.rb#161 + # source://yard//lib/yard/tags/library.rb#160 def overload_tag(text); end # Documents a single method parameter (either regular or keyword) with a given name, type @@ -15508,7 +15515,7 @@ class YARD::Tags::Library # # @param directory [String] the name of the directory to save to # def load_page(url, directory: 'pages') end # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def param_tag(text); end # source://yard//lib/yard/tags/library.rb#202 @@ -15543,7 +15550,7 @@ class YARD::Tags::Library # it is redefined on the child object. # @see tag:api # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def private_tag(text); end # Describes that a method may raise a given exception, with @@ -15554,7 +15561,7 @@ class YARD::Tags::Library # # sufficient funds to perform the transaction # def withdraw(amount) end # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def raise_tag(text); end # Describes the return value (and type or types) of a method. @@ -15572,7 +15579,7 @@ class YARD::Tags::Library # # returned. # def find(query) end # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def return_tag(text); end # Sets the scope of a DSL method. Only applicable to DSL method @@ -15592,7 +15599,7 @@ class YARD::Tags::Library # # @see NTPHelperMethods # class NTPUpdater; end # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def see_tag(text); end # Lists the version that the object was first added. @@ -15605,7 +15612,7 @@ class YARD::Tags::Library # applied to all children objects of that namespace unless # it is redefined on the child object. # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def since_tag(text); end # Creates a new {Tag} object with a given tag name and data @@ -15640,7 +15647,7 @@ class YARD::Tags::Library # class Wonderlander; end # @see tag:note # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def todo_tag(text); end # Lists the version of a class, module or method. This is @@ -15655,7 +15662,7 @@ class YARD::Tags::Library # # @version 2.0 # class JabberwockyAPI; end # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def version_tag(text); end # Sets the visibility of a DSL method. Only applicable to @@ -15678,7 +15685,7 @@ class YARD::Tags::Library # @see tag:yieldparam # @see tag:yieldreturn # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def yield_tag(text); end # Defines a parameter yielded by a block. If you define the @@ -15689,7 +15696,7 @@ class YARD::Tags::Library # # @yieldparam [String] name the name that is yielded # def with_name(name) yield(name) end # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def yieldparam_tag(text); end # Documents the value and type that the block is expected @@ -15700,7 +15707,7 @@ class YARD::Tags::Library # def add5_block(&block) 5 + yield end # @see tag:return # - # source://yard//lib/yard/tags/library.rb#168 + # source://yard//lib/yard/tags/library.rb#166 def yieldreturn_tag(text); end private @@ -16159,7 +16166,7 @@ class YARD::Tags::OverloadTag < ::YARD::Tags::Tag # @return [Boolean] # - # source://yard//lib/yard/tags/overload_tag.rb#36 + # source://yard//lib/yard/tags/overload_tag.rb#39 def kind_of?(other); end # source://yard//lib/yard/tags/overload_tag.rb#28 @@ -16454,6 +16461,7 @@ class YARD::Tags::TypesExplainer private + # source://yard//lib/yard/tags/types_explainer.rb#22 def new(*_arg0); end end end @@ -16907,7 +16915,7 @@ module YARD::Templates::Helpers::BaseHelper # @return [CodeObjects::Base] the object representing the current generated # page. Might not be the current {#object} when inside sub-templates. # - # source://yard//lib/yard/templates/helpers/base_helper.rb#11 + # source://yard//lib/yard/templates/helpers/base_helper.rb#9 def owner; end # Runs a list of objects against the {Verifier} object passed into the @@ -17201,7 +17209,7 @@ module YARD::Templates::Helpers::HtmlHelper # @param relative [Boolean] use a relative or absolute link # @return [String] the URL location of the object # - # source://yard//lib/yard/templates/helpers/html_helper.rb#368 + # source://yard//lib/yard/templates/helpers/html_helper.rb#399 def mtime_url(obj, anchor = T.unsafe(nil), relative = T.unsafe(nil)); end # Resolves any text in the form of +{Name}+ to the object specified by @@ -17355,7 +17363,7 @@ module YARD::Templates::Helpers::HtmlHelper # @param text [String] the URL # @return [String] the escaped URL # - # source://yard//lib/yard/templates/helpers/html_helper.rb#31 + # source://yard//lib/yard/templates/helpers/html_helper.rb#47 def urlencode(text); end end end @@ -17737,7 +17745,7 @@ class YARD::Templates::Section < ::Array # @since 0.6.0 # - # source://yard//lib/yard/templates/section.rb#45 + # source://yard//lib/yard/templates/section.rb#48 def <<(*args); end # @since 0.6.0 @@ -18155,17 +18163,17 @@ class YARD::Templates::TemplateOptions < ::YARD::Options # @return [OpenStruct] an open struct containing any global state across all # generated objects in a template. # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#34 def __globals; end # @return [String] the default return type for a method with no return tags # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#20 def default_return; end # @return [String] the default return type for a method with no return tags # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#20 def default_return=(_arg0); end # @example A list of mixin path names (including wildcards) @@ -18175,7 +18183,7 @@ class YARD::Templates::TemplateOptions < ::YARD::Options # Useful for modules like ClassMethods. If the name contains '::', the module # is matched against the full mixin path, otherwise only the module name is used. # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#71 def embed_mixins; end # @example A list of mixin path names (including wildcards) @@ -18185,7 +18193,7 @@ class YARD::Templates::TemplateOptions < ::YARD::Options # Useful for modules like ClassMethods. If the name contains '::', the module # is matched against the full mixin path, otherwise only the module name is used. # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#71 def embed_mixins=(_arg0); end # @param mixin [CodeObjects::Base] accepts any code object, but returns @@ -18198,44 +18206,44 @@ class YARD::Templates::TemplateOptions < ::YARD::Options # @return [Symbol] the template output format # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#11 def format; end # @return [Symbol] the template output format # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#11 def format=(_arg0); end # @return [OpenStruct] an open struct containing any global state across all # generated objects in a template. # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#33 def globals; end # @return [OpenStruct] an open struct containing any global state across all # generated objects in a template. # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#33 def globals=(_arg0); end # @return [Boolean] whether void methods should show "void" in their signature # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#23 def hide_void_return; end # @return [Boolean] whether void methods should show "void" in their signature # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#23 def hide_void_return=(_arg0); end # @return [Boolean] whether code blocks should be syntax highlighted # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#26 def highlight; end # @return [Boolean] whether code blocks should be syntax highlighted # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#26 def highlight=(_arg0); end # @return [Boolean] whether the page is the "index" @@ -18250,12 +18258,12 @@ class YARD::Templates::TemplateOptions < ::YARD::Options # @return [Symbol] the markup format to use when parsing docstrings # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#17 def markup; end # @return [Symbol] the markup format to use when parsing docstrings # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#17 def markup=(_arg0); end # @return [Class] the markup provider class for the markup format @@ -18271,7 +18279,7 @@ class YARD::Templates::TemplateOptions < ::YARD::Options # @deprecated use {#highlight} instead. # @return [Boolean] whether highlighting should be ignored # - # source://yard//lib/yard/templates/template_options.rb#56 + # source://yard//lib/yard/templates/template_options.rb#54 def no_highlight; end # source://yard//lib/yard/templates/template_options.rb#57 @@ -18309,12 +18317,12 @@ class YARD::Templates::TemplateOptions < ::YARD::Options # @return [Boolean] whether serialization should be performed # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#46 def serialize; end # @return [Boolean] whether serialization should be performed # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#46 def serialize=(_arg0); end # @return [Serializers::Base] the serializer used to generate links and serialize @@ -18331,12 +18339,12 @@ class YARD::Templates::TemplateOptions < ::YARD::Options # @return [Symbol] the template name used to render output # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#14 def template; end # @return [Symbol] the template name used to render output # - # source://yard//lib/yard/options.rb#82 + # source://yard//lib/yard/templates/template_options.rb#14 def template=(_arg0); end # @return [Symbol] the template type used to generate output @@ -18452,7 +18460,7 @@ class YARD::Verifier # @return [CodeObjects::Base] the current object being tested # - # source://yard//lib/yard/verifier.rb#98 + # source://yard//lib/yard/verifier.rb#99 def o; end # @return [CodeObjects::Base] the current object being tested diff --git a/sorbet/rbi/gems/zeitwerk@2.7.2.rbi b/sorbet/rbi/gems/zeitwerk@2.7.3.rbi similarity index 70% rename from sorbet/rbi/gems/zeitwerk@2.7.2.rbi rename to sorbet/rbi/gems/zeitwerk@2.7.3.rbi index 94d234bd..8d23b764 100644 --- a/sorbet/rbi/gems/zeitwerk@2.7.2.rbi +++ b/sorbet/rbi/gems/zeitwerk@2.7.3.rbi @@ -12,9 +12,39 @@ module Kernel # source://zeitwerk//lib/zeitwerk/core_ext/kernel.rb#23 def require(path); end + # Zeitwerk's main idea is to define autoloads for project constants, and then + # intercept them when triggered in this thin `Kernel#require` wrapper. + # + # That allows us to complete the circle, invoke callbacks, autovivify modules, + # define autoloads for just autoloaded namespaces, update internal state, etc. + # + # On the other hand, if you publish a new version of a gem that is now managed + # by Zeitwerk, client code can reference directly your classes and modules and + # should not require anything. But if someone has legacy require calls around, + # they will work as expected, and in a compatible way. This feature is by now + # EXPERIMENTAL and UNDOCUMENTED. + # + # source://zeitwerk//lib/zeitwerk/core_ext/kernel.rb#17 + def zeitwerk_original_require(path); end + class << self # source://zeitwerk//lib/zeitwerk/core_ext/kernel.rb#23 def require(path); end + + # Zeitwerk's main idea is to define autoloads for project constants, and then + # intercept them when triggered in this thin `Kernel#require` wrapper. + # + # That allows us to complete the circle, invoke callbacks, autovivify modules, + # define autoloads for just autoloaded namespaces, update internal state, etc. + # + # On the other hand, if you publish a new version of a gem that is now managed + # by Zeitwerk, client code can reference directly your classes and modules and + # should not require anything. But if someone has legacy require calls around, + # they will work as expected, and in a compatible way. This feature is by now + # EXPERIMENTAL and UNDOCUMENTED. + # + # source://zeitwerk//lib/zeitwerk/core_ext/kernel.rb#19 + def zeitwerk_original_require(name); end end end @@ -27,6 +57,7 @@ module Zeitwerk class << self # This is a dangerous method. # + # # source://zeitwerk//lib/zeitwerk.rb#23 def with_loader; end end @@ -40,14 +71,14 @@ end # This private class encapsulates pairs (mod, cname). # -# Objects represent the constant cname in the class or module object mod, and -# have API to manage them. Examples: +# Objects represent the constant `cname` in the class or module object `mod`, +# and have API to manage them. Examples: # # cref.path # cref.set(value) # cref.get # -# The constant may or may not exist in mod. +# The constant may or may not exist in `mod`. # # source://zeitwerk//lib/zeitwerk/cref.rb#13 class Zeitwerk::Cref @@ -56,6 +87,7 @@ class Zeitwerk::Cref # The type of the first argument is Module because Class < Module, class # objects are also valid. # + # # @return [Cref] a new instance of Cref # # source://zeitwerk//lib/zeitwerk/cref.rb#28 @@ -69,8 +101,6 @@ class Zeitwerk::Cref # source://zeitwerk//lib/zeitwerk/cref.rb#41 def autoload?; end - # Returns the value of attribute cname. - # # source://zeitwerk//lib/zeitwerk/cref.rb#22 def cname; end @@ -79,107 +109,66 @@ class Zeitwerk::Cref # source://zeitwerk//lib/zeitwerk/cref.rb#51 def defined?; end - # @raise [NameError] - # - # source://zeitwerk//lib/zeitwerk/cref.rb#62 + # source://zeitwerk//lib/zeitwerk/cref.rb#61 def get; end - # Returns the value of attribute mod. - # # source://zeitwerk//lib/zeitwerk/cref.rb#19 def mod; end # source://zeitwerk//lib/zeitwerk/cref.rb#35 def path; end - # @raise [NameError] - # - # source://zeitwerk//lib/zeitwerk/cref.rb#68 + # source://zeitwerk//lib/zeitwerk/cref.rb#66 def remove; end # source://zeitwerk//lib/zeitwerk/cref.rb#56 def set(value); end - # source://zeitwerk//lib/zeitwerk/cref.rb#35 + # source://zeitwerk//lib/zeitwerk/cref.rb#38 def to_s; end end -# This class emulates a hash table whose keys are of type Zeitwerk::Cref. -# -# It is a synchronized 2-level hash. The keys of the top one, stored in `@map`, -# are class and module objects, but their hash code is forced to be their object -# IDs (see why below). Then, each one of them stores a hash table keyed on -# constant names as symbols. We finally store the values in those. -# -# For example, if we store values 0, 1, and 2 for the crefs that would -# correspond to `M::X`, `M::Y`, and `N::Z`, the map will look like this: -# -# { M => { X: 0, :Y => 1 }, N => { Z: 2 } } -# -# This structure is internal, so only the needed interface is implemented. -# -# Why not use tables that map pairs [Module, Symbol] to their values? Because -# class and module objects are not guaranteed to be hashable, the `hash` method -# may have been overridden: -# -# https://github.com/fxn/zeitwerk/issues/188 -# -# We can also use a 1-level hash whose keys are the corresponding class and -# module names. In the example above it would be: -# -# { "M::X" => 0, "M::Y" => 1, "N::Z" => 2 } -# -# The gem used this approach for several years. -# -# Another option would be to make crefs hashable. I tried with hash code -# -# real_mod_hash(mod) ^ cname.hash -# -# and the matching eql?, but that was about 1.8x slower. -# -# Finally, I came with this solution which is 1.6x faster than the previous one -# based on class and module names, even being synchronized. Also, client code -# feels natural, since crefs are central objects in Zeitwerk's implementation. -# -# source://zeitwerk//lib/zeitwerk/cref/map.rb#39 +# source://zeitwerk//lib/zeitwerk/cref/map.rb#73 class Zeitwerk::Cref::Map # @return [Map] a new instance of Map # - # source://zeitwerk//lib/zeitwerk/cref/map.rb#40 + # source://zeitwerk//lib/zeitwerk/cref/map.rb#75 def initialize; end - # source://zeitwerk//lib/zeitwerk/cref/map.rb#55 + # source://zeitwerk//lib/zeitwerk/cref/map.rb#90 def [](cref); end - # source://zeitwerk//lib/zeitwerk/cref/map.rb#47 + # source://zeitwerk//lib/zeitwerk/cref/map.rb#82 def []=(cref, value); end - # source://zeitwerk//lib/zeitwerk/cref/map.rb#112 + # source://zeitwerk//lib/zeitwerk/cref/map.rb#147 def clear; end - # source://zeitwerk//lib/zeitwerk/cref/map.rb#70 + # source://zeitwerk//lib/zeitwerk/cref/map.rb#105 def delete(cref); end - # source://zeitwerk//lib/zeitwerk/cref/map.rb#89 + # source://zeitwerk//lib/zeitwerk/cref/map.rb#124 def delete_by_value(value); end # Ad-hoc for loader_for, called from const_added. That is a hot path, I prefer # to not create a cref in every call, since that is global. # - # source://zeitwerk//lib/zeitwerk/cref/map.rb#78 + # + # source://zeitwerk//lib/zeitwerk/cref/map.rb#113 def delete_mod_cname(mod, cname); end # Order of yielded crefs is undefined. # - # source://zeitwerk//lib/zeitwerk/cref/map.rb#101 + # + # source://zeitwerk//lib/zeitwerk/cref/map.rb#136 def each_key; end # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/cref/map.rb#119 + # source://zeitwerk//lib/zeitwerk/cref/map.rb#154 def empty?; end - # source://zeitwerk//lib/zeitwerk/cref/map.rb#62 + # source://zeitwerk//lib/zeitwerk/cref/map.rb#97 def get_or_set(cref, &block); end end @@ -222,6 +211,7 @@ class Zeitwerk::GemLoader < ::Zeitwerk::Loader private + # source://zeitwerk//lib/zeitwerk/gem_loader.rb#10 def new(*_arg0); end end end @@ -237,6 +227,7 @@ class Zeitwerk::Inflector # # Takes into account hard-coded mappings configured with `inflect`. # + # # source://zeitwerk//lib/zeitwerk/inflector.rb#15 def camelize(basename, _abspath); end @@ -252,6 +243,7 @@ class Zeitwerk::Inflector # inflector.camelize("mysql_adapter", abspath) # => "MySQLAdapter" # inflector.camelize("users_controller", abspath) # => "UsersController" # + # # source://zeitwerk//lib/zeitwerk/inflector.rb#32 def inflect(inflections); end @@ -260,6 +252,7 @@ class Zeitwerk::Inflector # Hard-coded basename to constant name user maps that override the default # inflection logic. # + # # source://zeitwerk//lib/zeitwerk/inflector.rb#42 def overrides; end end @@ -287,36 +280,37 @@ class Zeitwerk::Loader # source://zeitwerk//lib/zeitwerk/loader.rb#107 def initialize; end - # source://zeitwerk//lib/zeitwerk/loader.rb#66 + # source://zeitwerk//lib/zeitwerk/loader.rb#67 def __autoloaded_dirs; end - # source://zeitwerk//lib/zeitwerk/loader.rb#32 + # source://zeitwerk//lib/zeitwerk/loader.rb#33 def __autoloads; end - # source://zeitwerk//lib/zeitwerk/loader.rb#56 + # source://zeitwerk//lib/zeitwerk/loader.rb#57 def __inceptions; end - # source://zeitwerk//lib/zeitwerk/loader.rb#85 + # source://zeitwerk//lib/zeitwerk/loader.rb#86 def __namespace_dirs; end - # source://zeitwerk//lib/zeitwerk/loader.rb#361 + # source://zeitwerk//lib/zeitwerk/loader.rb#362 def __shadowed_file?(file); end - # source://zeitwerk//lib/zeitwerk/loader.rb#96 + # source://zeitwerk//lib/zeitwerk/loader.rb#97 def __shadowed_files; end - # source://zeitwerk//lib/zeitwerk/loader.rb#76 + # source://zeitwerk//lib/zeitwerk/loader.rb#77 def __to_unload; end # Returns a hash that maps the absolute paths of the managed files and # directories to their respective expected constant paths. # - # source://zeitwerk//lib/zeitwerk/loader.rb#248 + # + # source://zeitwerk//lib/zeitwerk/loader.rb#247 def all_expected_cpaths; end # @raise [Zeitwerk::Error] # - # source://zeitwerk//lib/zeitwerk/loader.rb#278 + # source://zeitwerk//lib/zeitwerk/loader.rb#277 def cpath_expected_at(path); end # Unloads all loaded code, and calls setup again so that the loader is able @@ -325,13 +319,15 @@ class Zeitwerk::Loader # This method is not thread-safe, please see how this can be achieved by # client code in the README of the project. # - # @raise [Zeitwerk::Error] # - # source://zeitwerk//lib/zeitwerk/loader.rb#234 + # @raise [ReloadingDisabledError] + # + # source://zeitwerk//lib/zeitwerk/loader.rb#233 def reload; end # Sets autoloads in the root namespaces. # + # # source://zeitwerk//lib/zeitwerk/loader.rb#128 def setup; end @@ -346,6 +342,7 @@ class Zeitwerk::Loader # means `unload` + `setup`. This one is available to be used together with # `unregister`, which is undocumented too. # + # # source://zeitwerk//lib/zeitwerk/loader.rb#154 def unload; end @@ -355,9 +352,10 @@ class Zeitwerk::Loader # This is an undocumented method that I wrote to help transition from the # classic autoloader in Rails. Its usage was removed from Rails in 7.0. # + # # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader.rb#332 + # source://zeitwerk//lib/zeitwerk/loader.rb#331 def unloadable_cpath?(cpath); end # Returns an array with the constant paths that would be unloaded on reload. @@ -366,25 +364,27 @@ class Zeitwerk::Loader # This is an undocumented method that I wrote to help transition from the # classic autoloader in Rails. Its usage was removed from Rails in 7.0. # - # source://zeitwerk//lib/zeitwerk/loader.rb#343 + # + # source://zeitwerk//lib/zeitwerk/loader.rb#342 def unloadable_cpaths; end # This is a dangerous method. # - # source://zeitwerk//lib/zeitwerk/loader.rb#351 + # + # source://zeitwerk//lib/zeitwerk/loader.rb#350 def unregister; end private - # source://zeitwerk//lib/zeitwerk/loader.rb#508 + # source://zeitwerk//lib/zeitwerk/loader.rb#513 def autoload_file(cref, file); end # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader.rb#560 + # source://zeitwerk//lib/zeitwerk/loader.rb#565 def autoload_path_set_by_me_for?(cref); end - # source://zeitwerk//lib/zeitwerk/loader.rb#479 + # source://zeitwerk//lib/zeitwerk/loader.rb#484 def autoload_subdir(cref, subdir); end # We keep track of autoloaded directories to remove them from the registry @@ -393,6 +393,7 @@ class Zeitwerk::Loader # Files are removed as they are autoloaded, but directories need to wait due # to concurrency (see why in Zeitwerk::Loader::Callbacks#on_dir_autoloaded). # + # # source://zeitwerk//lib/zeitwerk/loader.rb#66 def autoloaded_dirs; end @@ -403,17 +404,16 @@ class Zeitwerk::Loader # "/Users/fxn/blog/app/models/hotel/pricing.rb" => #, # ... # + # # source://zeitwerk//lib/zeitwerk/loader.rb#32 def autoloads; end - # source://zeitwerk//lib/zeitwerk/loader.rb#542 + # source://zeitwerk//lib/zeitwerk/loader.rb#547 def define_autoload(cref, abspath); end - # source://zeitwerk//lib/zeitwerk/loader.rb#461 + # source://zeitwerk//lib/zeitwerk/loader.rb#466 def define_autoloads_for_dir(dir, parent); end - # Returns the value of attribute dirs_autoload_monitor. - # # source://zeitwerk//lib/zeitwerk/loader.rb#104 def dirs_autoload_monitor; end @@ -434,14 +434,13 @@ class Zeitwerk::Loader # the inceptions just in case. # # This map keeps track of pairs (cref, autoload_path) found by the loader. - # The module Zeitwerk::Registry::Inceptions, on the other hand, acts as a + # The object Zeitwerk::Registry.inceptions, on the other hand, acts as a # global registry for them. # + # # source://zeitwerk//lib/zeitwerk/loader.rb#56 def inceptions; end - # Returns the value of attribute mutex. - # # source://zeitwerk//lib/zeitwerk/loader.rb#100 def mutex; end @@ -450,28 +449,30 @@ class Zeitwerk::Loader # When these crefs get defined we know their children are spread over those # directories. We'll visit them to set up the corresponding autoloads. # + # # source://zeitwerk//lib/zeitwerk/loader.rb#85 def namespace_dirs; end # `dir` is the directory that would have autovivified a namespace. `file` is # the file where we've found the namespace is explicitly defined. # - # source://zeitwerk//lib/zeitwerk/loader.rb#529 + # + # source://zeitwerk//lib/zeitwerk/loader.rb#534 def promote_namespace_from_implicit_to_explicit(dir:, file:, cref:); end - # source://zeitwerk//lib/zeitwerk/loader.rb#593 + # source://zeitwerk//lib/zeitwerk/loader.rb#598 def raise_if_conflicting_directory(dir); end - # source://zeitwerk//lib/zeitwerk/loader.rb#569 + # source://zeitwerk//lib/zeitwerk/loader.rb#574 def register_explicit_namespace(cref); end - # source://zeitwerk//lib/zeitwerk/loader.rb#579 + # source://zeitwerk//lib/zeitwerk/loader.rb#584 def register_inception(cref, abspath); end - # source://zeitwerk//lib/zeitwerk/loader.rb#617 + # source://zeitwerk//lib/zeitwerk/loader.rb#622 def run_on_unload_callbacks(cref, value, abspath); end - # source://zeitwerk//lib/zeitwerk/loader.rb#361 + # source://zeitwerk//lib/zeitwerk/loader.rb#362 def shadowed_file?(file); end # A shadowed file is a file managed by this loader that is ignored when @@ -481,6 +482,7 @@ class Zeitwerk::Loader # loader has only scanned the top-level, `shadowed_files` does not have the # shadowed files that may exist deep in the project tree. # + # # source://zeitwerk//lib/zeitwerk/loader.rb#96 def shadowed_files; end @@ -490,50 +492,48 @@ class Zeitwerk::Loader # On unload, the autoload paths are passed to callbacks, files deleted from # $LOADED_FEATURES, and the crefs are deleted. # + # # source://zeitwerk//lib/zeitwerk/loader.rb#76 def to_unload; end - # source://zeitwerk//lib/zeitwerk/loader.rb#624 + # source://zeitwerk//lib/zeitwerk/loader.rb#629 def unload_autoload(cref); end - # source://zeitwerk//lib/zeitwerk/loader.rb#630 + # source://zeitwerk//lib/zeitwerk/loader.rb#635 def unload_cref(cref); end - # source://zeitwerk//lib/zeitwerk/loader.rb#574 + # source://zeitwerk//lib/zeitwerk/loader.rb#579 def unregister_explicit_namespaces; end - # source://zeitwerk//lib/zeitwerk/loader.rb#585 + # source://zeitwerk//lib/zeitwerk/loader.rb#590 def unregister_inceptions; end class << self # Returns an array with the absolute paths of the root directories of all # registered loaders. This is a read-only collection. # - # source://zeitwerk//lib/zeitwerk/loader.rb#455 + # + # source://zeitwerk//lib/zeitwerk/loader.rb#456 def all_dirs; end - # Returns the value of attribute default_logger. - # - # source://zeitwerk//lib/zeitwerk/loader.rb#371 + # source://zeitwerk//lib/zeitwerk/loader.rb#372 def default_logger; end - # Sets the attribute default_logger - # - # @param value the value to set the attribute default_logger to. - # - # source://zeitwerk//lib/zeitwerk/loader.rb#371 + # source://zeitwerk//lib/zeitwerk/loader.rb#372 def default_logger=(_arg0); end # Broadcasts `eager_load` to all loaders. Those that have not been setup # are skipped. # - # source://zeitwerk//lib/zeitwerk/loader.rb#427 + # + # source://zeitwerk//lib/zeitwerk/loader.rb#428 def eager_load_all; end # Broadcasts `eager_load_namespace` to all loaders. Those that have not # been setup are skipped. # - # source://zeitwerk//lib/zeitwerk/loader.rb#441 + # + # source://zeitwerk//lib/zeitwerk/loader.rb#442 def eager_load_namespace(mod); end # This is a shortcut for @@ -551,7 +551,8 @@ class Zeitwerk::Loader # This method returns a subclass of Zeitwerk::Loader, but the exact type # is private, client code can only rely on the interface. # - # source://zeitwerk//lib/zeitwerk/loader.rb#389 + # + # source://zeitwerk//lib/zeitwerk/loader.rb#390 def for_gem(warn_on_extra_files: T.unsafe(nil)); end # This is a shortcut for @@ -569,7 +570,8 @@ class Zeitwerk::Loader # This method returns a subclass of Zeitwerk::Loader, but the exact type # is private, client code can only rely on the interface. # - # source://zeitwerk//lib/zeitwerk/loader.rb#410 + # + # source://zeitwerk//lib/zeitwerk/loader.rb#411 def for_gem_extension(namespace); end end end @@ -578,27 +580,27 @@ end module Zeitwerk::Loader::Callbacks extend ::Zeitwerk::Internal - # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#40 + # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#39 def __on_dir_autoloaded(dir); end - # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#10 + # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#9 def __on_file_autoloaded(file); end - # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#79 + # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#77 def __on_namespace_loaded(cref, namespace); end private - # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#40 + # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#39 def on_dir_autoloaded(dir); end - # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#10 + # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#9 def on_file_autoloaded(file); end - # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#79 + # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#77 def on_namespace_loaded(cref, namespace); end - # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#90 + # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#88 def run_on_load_callbacks(cpath, value, abspath); end end @@ -607,17 +609,19 @@ module Zeitwerk::Loader::Config include ::Zeitwerk::RealModName extend ::Zeitwerk::Internal - # source://zeitwerk//lib/zeitwerk/loader/config.rb#86 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#85 def initialize; end - # source://zeitwerk//lib/zeitwerk/loader/config.rb#296 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#289 def __ignores?(abspath); end + # source://zeitwerk//lib/zeitwerk/loader/config.rb#30 def __roots; end # Configure directories or glob patterns to be collapsed. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#216 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#213 def collapse(*glob_patterns); end # If `namespaces` is falsey (default), returns an array with the absolute @@ -629,54 +633,45 @@ module Zeitwerk::Loader::Config # # These are read-only collections, please add to them with `push_dir`. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#156 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#154 def dirs(namespaces: T.unsafe(nil), ignored: T.unsafe(nil)); end # Let eager load ignore the given files or directories. The constants defined # in those files are still autoloadable. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#198 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#195 def do_not_eager_load(*paths); end # You need to call this method before setup in order to be able to reload. # There is no way to undo this, either you want to reload or you don't. # - # @raise [Zeitwerk::Error] # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#177 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#174 def enable_reloading; end # Configure files, directories, or glob patterns to be totally ignored. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#205 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#202 def ignore(*glob_patterns); end - # Returns the value of attribute inflector. - # # source://zeitwerk//lib/zeitwerk/loader/config.rb#11 def inflector; end - # Sets the attribute inflector - # - # @param value the value to set the attribute inflector to. - # # source://zeitwerk//lib/zeitwerk/loader/config.rb#11 def inflector=(_arg0); end # Logs to `$stdout`, handy shortcut for debugging. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#288 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#281 def log!; end - # Returns the value of attribute logger. - # # source://zeitwerk//lib/zeitwerk/loader/config.rb#14 def logger; end - # Sets the attribute logger - # - # @param value the value to set the attribute logger to. - # # source://zeitwerk//lib/zeitwerk/loader/config.rb#14 def logger=(_arg0); end @@ -694,15 +689,17 @@ module Zeitwerk::Loader::Config # # ... # end # + # # @raise [TypeError] # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#252 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#247 def on_load(cpath = T.unsafe(nil), &block); end # Configure a block to be called after setup and on each reload. # If setup was already done, the block runs immediately. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#228 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#225 def on_setup(&block); end # Configure a block to be invoked right before a certain constant is removed. @@ -719,9 +716,10 @@ module Zeitwerk::Loader::Config # # ... # end # + # # @raise [TypeError] # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#277 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#270 def on_unload(cpath = T.unsafe(nil), &block); end # Pushes `path` to the list of root directories. @@ -730,14 +728,13 @@ module Zeitwerk::Loader::Config # the same process already manages that directory or one of its ascendants or # descendants. # - # @raise [Zeitwerk::Error] # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#111 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#109 def push_dir(path, namespace: T.unsafe(nil)); end # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#190 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#187 def reloading_enabled?; end # Returns the loader's tag. @@ -745,96 +742,105 @@ module Zeitwerk::Loader::Config # Implemented as a method instead of via attr_reader for symmetry with the # writer below. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#135 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#133 def tag; end # Sets a tag for the loader, useful for logging. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#142 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#140 def tag=(tag); end private - # source://zeitwerk//lib/zeitwerk/loader/config.rb#314 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#307 def actual_roots; end # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#339 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#332 def collapse?(dir); end # The actual collection of absolute directory names at the time the collapse # glob patterns were expanded. Computed on setup, and recomputed on reload. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#57 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#56 def collapse_dirs; end # Absolute paths of directories or glob patterns to be collapsed. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#50 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#49 def collapse_glob_patterns; end # Absolute paths of files or directories not to be eager loaded. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#63 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#62 def eager_load_exclusions; end # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#326 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#319 def excluded_from_eager_load?(abspath); end - # source://zeitwerk//lib/zeitwerk/loader/config.rb#349 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#342 def expand_glob_patterns(glob_patterns); end - # source://zeitwerk//lib/zeitwerk/loader/config.rb#344 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#337 def expand_paths(paths); end - # Absolute paths of files, directories, or glob patterns to be totally - # ignored. + # Absolute paths of files, directories, or glob patterns to be ignored. + # # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#36 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#35 def ignored_glob_patterns; end # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#309 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#302 def ignored_path?(abspath); end # The actual collection of absolute file and directory names at the time the # ignored glob patterns were expanded. Computed on setup, and recomputed on # reload. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#44 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#43 def ignored_paths; end - # source://zeitwerk//lib/zeitwerk/loader/config.rb#296 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#289 def ignores?(abspath); end # User-oriented callbacks to be fired when a constant is loaded. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#76 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#75 def on_load_callbacks; end # User-oriented callbacks to be fired on setup and on reload. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#69 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#68 def on_setup_callbacks; end # User-oriented callbacks to be fired before constants are removed. # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#83 + # + # source://zeitwerk//lib/zeitwerk/loader/config.rb#82 def on_unload_callbacks; end - # source://zeitwerk//lib/zeitwerk/loader/config.rb#361 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#354 def recompute_collapse_dirs; end - # source://zeitwerk//lib/zeitwerk/loader/config.rb#356 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#349 def recompute_ignored_paths; end # @return [Boolean] # - # source://zeitwerk//lib/zeitwerk/loader/config.rb#321 + # source://zeitwerk//lib/zeitwerk/loader/config.rb#314 def root_dir?(dir); end # Absolute paths of the root directories, mapped to their respective root namespaces: @@ -849,6 +855,7 @@ module Zeitwerk::Loader::Config # This is a private collection maintained by the loader. The public # interface for it is `push_dir` and `dirs`. # + # # source://zeitwerk//lib/zeitwerk/loader/config.rb#29 def roots; end end @@ -861,6 +868,7 @@ module Zeitwerk::Loader::EagerLoad # specific files and directories with `do_not_eager_load`, and that can be # overridden passing `force: true`. # + # # source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#9 def eager_load(force: T.unsafe(nil)); end @@ -881,6 +889,7 @@ module Zeitwerk::Loader::EagerLoad # The method is implemented as `constantize` for files, in a sense, to be able # to descend orderly and make sure the file is loadable. # + # # @raise [Zeitwerk::Error] # # source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#116 @@ -891,12 +900,14 @@ module Zeitwerk::Loader::EagerLoad # The caller is responsible for making sure `namespace` is the namespace that # corresponds to `dir`. # + # # source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#160 def actual_eager_load_dir(dir, namespace, force: T.unsafe(nil)); end # In order to invoke this method, the caller has to ensure `child` is a # strict namespace descendant of `root_namespace`. # + # # source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#193 def eager_load_child_namespace(child, child_name, root_dir, root_namespace); end end @@ -905,9 +916,7 @@ end module Zeitwerk::Loader::Helpers private - # @raise [Zeitwerk::NameError] - # - # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#108 + # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#107 def cname_for(basename, abspath); end # @return [Boolean] @@ -919,6 +928,7 @@ module Zeitwerk::Loader::Helpers # important to list as less directories as possible and return fast in the # common case in which there are Ruby files. # + # # @return [Boolean] # # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#56 @@ -952,7 +962,7 @@ module Zeitwerk::Loader::Helpers::CNAME_VALIDATOR; end # source://zeitwerk//lib/zeitwerk/loader.rb#21 Zeitwerk::Loader::MUTEX = T.let(T.unsafe(nil), Thread::Mutex) -# source://zeitwerk//lib/zeitwerk/error.rb#13 +# source://zeitwerk//lib/zeitwerk/error.rb#14 class Zeitwerk::NameError < ::NameError; end # source://zeitwerk//lib/zeitwerk/null_inflector.rb#1 @@ -963,16 +973,19 @@ end # source://zeitwerk//lib/zeitwerk/real_mod_name.rb#3 module Zeitwerk::RealModName - # Returns the real name of the class or module, as set after the first - # constant to which it was assigned (or nil). + # Returns the real name of the class or module. # - # The name method can be overridden, hence the indirection in this method. + # We need this indirection becasue the `name` method can be overridden, and + # because in practice what we really need is the constant paths of modules + # with a permanent name, not so much what the user considers to be the name of + # a certain class or module of theirs. # - # source://zeitwerk//lib/zeitwerk/real_mod_name.rb#13 + # + # source://zeitwerk//lib/zeitwerk/real_mod_name.rb#16 def real_mod_name(mod); end end -# source://zeitwerk//lib/zeitwerk/real_mod_name.rb#4 +# source://zeitwerk//lib/zeitwerk/real_mod_name.rb#5 Zeitwerk::RealModName::UNBOUND_METHOD_MODULE_NAME = T.let(T.unsafe(nil), UnboundMethod) # source://zeitwerk//lib/zeitwerk/registry.rb#4 @@ -983,26 +996,34 @@ module Zeitwerk::Registry # This information is used by our decorated `Kernel#require` to be able to # invoke callbacks and autovivify modules. # + # # @private # - # source://zeitwerk//lib/zeitwerk/registry.rb#29 + # source://zeitwerk//lib/zeitwerk/registry.rb#31 def autoloads; end + # @private + # + # source://zeitwerk//lib/zeitwerk/registry.rb#35 + def explicit_namespaces; end + # Registers gem loaders to let `for_gem` be idempotent in case of reload. # + # # @private # - # source://zeitwerk//lib/zeitwerk/registry.rb#20 + # source://zeitwerk//lib/zeitwerk/registry.rb#22 def gem_loaders_by_root_file; end # @private # - # source://zeitwerk//lib/zeitwerk/registry.rb#70 - def loader_for(path); end + # source://zeitwerk//lib/zeitwerk/registry.rb#39 + def inceptions; end # This method returns always a loader, the same instance for the same root # file. That is how Zeitwerk::Loader.for_gem is idempotent. # + # # @private # # source://zeitwerk//lib/zeitwerk/registry.rb#52 @@ -1011,41 +1032,50 @@ module Zeitwerk::Registry # Keeps track of all loaders. Useful to broadcast messages and to prevent # them from being garbage collected. # + # # @private # - # source://zeitwerk//lib/zeitwerk/registry.rb#14 + # source://zeitwerk//lib/zeitwerk/registry.rb#16 def loaders; end # @private # - # source://zeitwerk//lib/zeitwerk/registry.rb#76 - def on_unload(loader); end + # source://zeitwerk//lib/zeitwerk/registry.rb#43 + def unregister_loader(loader); end + end +end - # @private - # - # source://zeitwerk//lib/zeitwerk/registry.rb#58 - def register_autoload(loader, abspath); end +# source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#2 +class Zeitwerk::Registry::Autoloads + # @return [Autoloads] a new instance of Autoloads + # + # source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#4 + def initialize; end - # Registers a loader. - # - # @private - # - # source://zeitwerk//lib/zeitwerk/registry.rb#35 - def register_loader(loader); end + # source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#34 + def clear; end - # @private - # - # source://zeitwerk//lib/zeitwerk/registry.rb#64 - def unregister_autoload(abspath); end + # @return [Boolean] + # + # source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#29 + def empty?; end - # @private - # - # source://zeitwerk//lib/zeitwerk/registry.rb#41 - def unregister_loader(loader); end - end + # source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#9 + def register(abspath, loader); end + + # @return [Boolean] + # + # source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#14 + def registered?(path); end + + # source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#19 + def unregister(abspath); end + + # source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#24 + def unregister_loader(loader); end end -# This module is a registry for explicit namespaces. +# A registry for explicit namespaces. # # When a loader determines that a certain file should define an explicit # namespace, it registers it here, associating its cref with itself. @@ -1061,41 +1091,38 @@ end # Loaders that reopen namespaces owned by other projects are responsible for # loading their constant before setup. This is documented. # -# source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#19 -module Zeitwerk::Registry::ExplicitNamespaces - class << self - # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#59 - def __clear; end - - # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#40 - def __loader_for(mod, cname); end - - # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#35 - def __register(cref, loader); end - - # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#52 - def __registered?(cref); end - - # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#45 - def __unregister_loader(loader); end - - private +# **This is a private module.** +# +# source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#21 +class Zeitwerk::Registry::ExplicitNamespaces + # @return [ExplicitNamespaces] a new instance of ExplicitNamespaces + # + # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#23 + def initialize; end - # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#59 - def clear; end + # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#57 + def clear; end - # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#40 - def loader_for(mod, cname); end + # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#40 + def loader_for(mod, cname); end - # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#35 - def register(cref, loader); end + # Registers `cref` as being the constant path of an explicit namespace + # managed by `loader`. + # + # + # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#35 + def register(cref, loader); end - # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#52 - def registered?(cref); end + # This is an internal method only used by the test suite. + # + # + # @return [Boolean] + # + # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#52 + def registered?(cref); end - # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#45 - def unregister_loader(loader); end - end + # source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#45 + def unregister_loader(loader); end end # Loaders know their own inceptions, but there is a use case in which we need @@ -1103,39 +1130,67 @@ end # registry is for. # # source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#5 -module Zeitwerk::Registry::Inceptions - class << self - # source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#26 - def clear; end +class Zeitwerk::Registry::Inceptions + # @return [Inceptions] a new instance of Inceptions + # + # source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#7 + def initialize; end - # source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#11 - def register(cref, autoload_path); end + # source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#27 + def clear; end - # @return [Boolean] - # - # source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#16 - def registered?(cref); end + # source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#12 + def register(cref, abspath); end - # source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#21 - def unregister(cref); end - end + # @return [Boolean] + # + # source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#17 + def registered?(cref); end + + # source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#22 + def unregister(cref); end +end + +# source://zeitwerk//lib/zeitwerk/registry/loaders.rb#2 +class Zeitwerk::Registry::Loaders + # @return [Loaders] a new instance of Loaders + # + # source://zeitwerk//lib/zeitwerk/registry/loaders.rb#4 + def initialize; end + + # source://zeitwerk//lib/zeitwerk/registry/loaders.rb#29 + def clear; end + + # source://zeitwerk//lib/zeitwerk/registry/loaders.rb#9 + def each(&block); end + + # source://zeitwerk//lib/zeitwerk/registry/loaders.rb#14 + def register(loader); end + + # @return [Boolean] + # + # source://zeitwerk//lib/zeitwerk/registry/loaders.rb#24 + def registered?(loader); end + + # source://zeitwerk//lib/zeitwerk/registry/loaders.rb#19 + def unregister(loader); end end # source://zeitwerk//lib/zeitwerk/error.rb#7 class Zeitwerk::ReloadingDisabledError < ::Zeitwerk::Error # @return [ReloadingDisabledError] a new instance of ReloadingDisabledError # - # source://zeitwerk//lib/zeitwerk/error.rb#8 + # source://zeitwerk//lib/zeitwerk/error.rb#9 def initialize; end end -# source://zeitwerk//lib/zeitwerk/error.rb#16 +# source://zeitwerk//lib/zeitwerk/error.rb#17 class Zeitwerk::SetupRequired < ::Zeitwerk::Error # @return [SetupRequired] a new instance of SetupRequired # - # source://zeitwerk//lib/zeitwerk/error.rb#17 + # source://zeitwerk//lib/zeitwerk/error.rb#19 def initialize; end end -# source://zeitwerk//lib/zeitwerk/version.rb#4 +# source://zeitwerk//lib/zeitwerk/version.rb#5 Zeitwerk::VERSION = T.let(T.unsafe(nil), String) diff --git a/spec/controllers/user_organization_membership_invites_controller_spec.rb b/spec/controllers/user_organization_membership_invites_controller_spec.rb new file mode 100644 index 00000000..e69de29b diff --git a/spec/requests/invites_controller_spec.rb b/spec/requests/invites_controller_spec.rb new file mode 100644 index 00000000..8481436e --- /dev/null +++ b/spec/requests/invites_controller_spec.rb @@ -0,0 +1,41 @@ +require "rails_helper" + +RSpec.describe "Invites", type: :request do + include_context "SessionDouble" + include_context "Setup" + + let(:inviter) { create(:user) } + let(:user_inviter) { UserInviter.create!(user: inviter) } + let(:short_url) { user_inviter.short_url } + let(:invite_uuid) { user_inviter.invite_uuid } + let(:long_url) { "/invites/#{inviter.id}/#{invite_uuid}" } + + it "redirects from short url to long url and sets inviter cookie" do + get short_url + expect(response).to redirect_to(invite_path(inviter, invite_uuid)) + follow_redirect! + expect(cookies_hash[UserInviter::INVITED_BY_SESSION_KEY]).to eq(inviter.id) + end + + it "creates an Invite after registration" do + _, user = setup_pre_registration + + # Simulate visiting short URL + get short_url + follow_redirect! + expect(cookies_hash[UserInviter::INVITED_BY_SESSION_KEY]).to eq(inviter.id) + + # Simulate registration (replace with your registration endpoint) + post "/sway_registration", + params: { sway_registration: { latitude: -76.1234, longitude: 35.1234, street: "123 Apple Lane", city: "Baltimore", + region_code: "MD", postal_code: "21224", country: "United States" } } + new_user = User.find_by(email: user.email) + expect(new_user).not_to be_nil + + # After registration, create Invite (simulate what your registration controller does) + Invite.create!(inviter_id: inviter.id, invitee_id: new_user.id) + + invite = Invite.find_by(inviter_id: inviter.id, invitee_id: new_user.id) + expect(invite).not_to be_nil + end +end diff --git a/spec/requests/shortened_urls_controller_spec.rb b/spec/requests/shortened_urls_controller_spec.rb index a4fffdfb..dca0ce74 100644 --- a/spec/requests/shortened_urls_controller_spec.rb +++ b/spec/requests/shortened_urls_controller_spec.rb @@ -11,7 +11,7 @@ get "/s/#{user.user_inviter.shortened_urls.first.unique_key}" expect(response).to have_http_status(301) - expect(response.redirect_url).to eql("http://#{response.request.host}/invites/#{user.id}/#{user.user_inviter.invite_uuid}") + expect(response.redirect_url).to eql("http://#{response.request.host}/invite/#{user.id}/#{user.user_inviter.invite_uuid}") follow_redirect! diff --git a/spec/services/congress_legislator_vote_update_service_spec.rb b/spec/services/congress_legislator_vote_update_service_spec.rb index c7a4643b..362e9512 100644 --- a/spec/services/congress_legislator_vote_update_service_spec.rb +++ b/spec/services/congress_legislator_vote_update_service_spec.rb @@ -60,14 +60,14 @@ district = build(:district, sway_locale:) senator = Legislator.find_by(external_id: "V000128").presence || build(:legislator, address:, district:, title: "Sen.", external_id: "V000128", first_name: "Chris", - last_name: "Van Hollen") + last_name: "Van Hollen") representative = Legislator.find_by(external_id: "M000687").presence || build(:legislator, address:, district:, first_name: "Kweisi", last_name: "Mfume", - external_id: "M000687", title: "Rep.") + external_id: "M000687", title: "Rep.") bill = create(:bill, sway_locale: sway_locale, external_id: "s5") create(:vote, bill:, house_roll_call_vote_number: "23", senate_roll_call_vote_number: "7") - expect(LegislatorVote.count).to eql(530) + expect(LegislatorVote.count).to be > 500 expect(LegislatorVote.where(legislator: senator).first&.support).to eql("AGAINST") expect(LegislatorVote.where(legislator: representative).first&.support).to eql("AGAINST") end diff --git a/spec/support/setup.rb b/spec/support/setup.rb index 34cff577..a0e37a87 100644 --- a/spec/support/setup.rb +++ b/spec/support/setup.rb @@ -28,4 +28,14 @@ def setup [sway_locale, user] end + + def setup_pre_registration + user = create(:user, is_registration_complete: false) do |u| + if defined? session_hash + session_hash[:user_id] = u.id + end + end + + [nil, user] + end end From 2d3631abb7c64f831ace7883b779308956d02400 Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Wed, 10 Sep 2025 16:12:17 -0400 Subject: [PATCH 33/41] update gems, gem rbis, node packages, create user_organization models, create tests for new models + controller --- .husky/pre-commit | 1 + .prettierignore | 32 +- .prettierrc | 3 +- .rubocop.yml | 17 + .vscode/settings.json | 5 +- Gemfile | 111 +- Gemfile.lock | 69 +- app/channels/application_cable/channel.rb | 4 +- app/channels/application_cable/connection.rb | 4 +- .../admin/bills/creator_controller.rb | 14 +- app/controllers/admin_controller.rb | 2 +- app/controllers/api_keys_controller.rb | 63 +- app/controllers/application_controller.rb | 367 +- .../bill_of_the_week_controller.rb | 33 +- .../bill_of_the_week_schedule_controller.rb | 48 +- .../bill_score_districts_controller.rb | 20 +- app/controllers/bill_scores_controller.rb | 19 +- app/controllers/bills_controller.rb | 462 +- app/controllers/buckets/assets_controller.rb | 56 +- .../concerns/api_key_authenticatable.rb | 58 +- app/controllers/concerns/authentication.rb | 226 +- .../concerns/default_meta_taggable.rb | 97 +- app/controllers/concerns/pages.rb | 28 +- app/controllers/concerns/relying_party.rb | 107 +- app/controllers/concerns/sway_props.rb | 37 +- app/controllers/concerns/sway_routes.rb | 20 +- app/controllers/districts_controller.rb | 6 +- .../email_verification_controller.rb | 135 +- app/controllers/home_controller.rb | 26 +- app/controllers/influence_controller.rb | 28 +- app/controllers/invites_controller.rb | 22 +- .../legislator_votes_controller.rb | 113 +- app/controllers/legislators_controller.rb | 54 +- ...h_notification_subscriptions_controller.rb | 91 +- .../push_notifications_controller.rb | 58 +- app/controllers/notifications_controller.rb | 13 +- ...zation_bill_position_changes_controller.rb | 50 + .../organization_bill_positions_controller.rb | 72 +- app/controllers/organizations_controller.rb | 138 +- .../phone_verification_controller.rb | 149 +- app/controllers/sitemap_controller.rb | 16 +- app/controllers/sway_locales_controller.rb | 39 +- .../sway_registration_controller.rb | 135 +- app/controllers/user_districts_controller.rb | 6 +- .../user_legislator_email_controller.rb | 32 +- .../user_legislator_scores_controller.rb | 37 +- .../user_legislators_controller.rb | 28 +- ...anization_membership_invites_controller.rb | 31 + ...ser_organization_memberships_controller.rb | 104 + .../user_organization_positions_controller.rb | 92 + app/controllers/user_votes_controller.rb | 55 +- .../users/user_details_controller.rb | 44 +- .../users/webauthn/registration_controller.rb | 180 +- .../users/webauthn/sessions_controller.rb | 191 +- app/controllers/users/webauthn_controller.rb | 4 +- app/controllers/well_known_controller.rb | 14 +- app/frontend/components/Layout.tsx | 32 - app/frontend/components/drawer/AppDrawer.tsx | 13 +- app/frontend/components/layouts/Layout.tsx | 58 + .../components/{ => layouts}/LoginBubbles.tsx | 0 .../components/{ => layouts}/NoAuthLayout.tsx | 12 +- app/frontend/entrypoints/application.tsx | 7 +- .../users/useUserOrganizationMembership.ts | 37 + app/frontend/index.d.ts | 7 + .../UserOrganizationMembership.tsx | 87 + .../UserOrganizationMembership_Approvals.tsx | 120 + .../UserOrganizationMembership_Members.tsx | 74 + .../UserOrganizationMembership_Position.tsx | 112 + ...erOrganizationMembership_PositionsList.tsx | 21 + .../UserOrganizationMemberships_List.tsx | 44 + app/frontend/styles/scss/main.scss | 8 + app/frontend/sway_constants/routes.ts | 1 + app/frontend/sway_utils/datetimes.ts | 4 + app/frontend/sway_utils/index.ts | 8 +- app/helpers/admin/bills/creator_helper.rb | 6 +- app/helpers/buckets/assets_helper.rb | 4 +- app/helpers/notifications/push_helper.rb | 4 +- .../push_notifications_helper.rb | 4 +- ...ganization_bill_position_changes_helper.rb | 2 + .../user_organization_positions_helper.rb | 2 + .../users/webauthn/authentication_helper.rb | 6 +- app/helpers/users/webauthn/passkeys_helper.rb | 6 +- .../users/webauthn/registration_helper.rb | 6 +- app/helpers/users/webauthn/sessions_helper.rb | 6 +- app/helpers/users/webauthn_helper.rb | 4 +- app/jobs/application_job.rb | 8 +- .../on_bill_becomes_botw_notify_users_job.rb | 18 +- .../on_deactivated_phone_delete_user_job.rb | 68 +- .../on_legislator_vote_update_scores_job.rb | 331 +- ...mail_saved_send_email_to_legislator_job.rb | 15 +- app/jobs/on_user_vote_update_scores_job.rb | 10 +- app/mailers/application_mailer.rb | 4 +- app/mailers/user_legislator_email_mailer.rb | 162 +- ...r_organization_membership_invite_mailer.rb | 10 + app/models/address.rb | 165 +- app/models/api_key.rb | 49 +- app/models/application_record.rb | 28 +- app/models/bill.rb | 365 +- app/models/bill_cosponsor.rb | 4 +- app/models/bill_notification.rb | 44 +- app/models/bill_score.rb | 72 +- app/models/bill_score_district.rb | 54 +- app/models/bill_sponsor.rb | 4 +- app/models/concerns/agreeable.rb | 60 +- app/models/concerns/scoreable.rb | 43 +- app/models/concerns/supportable.rb | 36 +- app/models/district.rb | 50 +- app/models/invite.rb | 22 +- app/models/legislator.rb | 187 +- app/models/legislator_district_score.rb | 56 +- app/models/legislator_vote.rb | 185 +- app/models/organization.rb | 69 +- app/models/organization_bill_position.rb | 51 +- .../organization_bill_position_change.rb | 76 + app/models/passkey.rb | 14 +- app/models/push_notification_subscription.rb | 48 +- app/models/refresh_token.rb | 78 +- app/models/sway_locale.rb | 316 +- app/models/user.rb | 311 +- app/models/user_address.rb | 4 +- app/models/user_district.rb | 4 +- app/models/user_inviter.rb | 60 +- app/models/user_legislator.rb | 30 +- app/models/user_legislator_email.rb | 63 +- app/models/user_legislator_score.rb | 82 +- app/models/user_organization_membership.rb | 45 + .../user_organization_membership_invite.rb | 27 + app/models/user_vote.rb | 70 +- app/models/vote.rb | 42 +- .../scraper/congress/house/api_connector.rb | 22 +- .../congress/house/legislator_votes.rb | 75 +- app/scraper/scraper/congress/house/vote.rb | 8 +- .../scraper/congress/senate/api_connector.rb | 24 +- .../congress/senate/legislator_votes.rb | 150 +- app/scraper/scraper/congress/senate/vote.rb | 8 +- app/scraper/scraper/congress/senate/votes.rb | 60 +- app/scraper/scraper/faraday_connector.rb | 241 +- app/scraper/scraper/maryland/api_connector.rb | 20 +- .../scraper/maryland/legislator_votes.rb | 179 +- app/scraper/scraper/maryland/vote.rb | 6 +- .../open_states/house/api_connector.rb | 24 +- .../open_states/house/legislator_votes.rb | 133 +- app/scraper/scraper/open_states/house/vote.rb | 8 +- .../open_states/senate/api_connector.rb | 22 +- .../open_states/senate/legislator_votes.rb | 133 +- .../scraper/open_states/senate/vote.rb | 8 +- ...congress_legislator_vote_update_service.rb | 136 +- app/services/influence_service.rb | 48 +- ...n_states_legislator_vote_update_service.rb | 112 +- app/services/score_updater_service.rb | 162 +- .../sway_push_notification_service.rb | 64 +- app/services/sway_registration_service.rb | 199 +- app/views/sitemap/index.xml.builder | 38 +- .../invite.html.erb | 7 + .../invite.text.erb | 3 + .../create.html.erb | 2 + .../destroy.html.erb | 2 + .../update.html.erb | 2 + config/application.rb | 42 +- config/environments/development.rb | 157 +- config/environments/production.rb | 264 +- config/environments/test.rb | 98 +- .../initializers/filter_parameter_logging.rb | 15 +- config/initializers/geocoder.rb | 49 +- config/initializers/lograge.rb | 18 +- config/initializers/monkey_patches.rb | 64 +- config/initializers/permissions_policy.rb | 14 +- config/initializers/sentry.rb | 36 +- config/initializers/shortener.rb | 2 +- config/initializers/sorbet.rb | 19 +- config/initializers/webauthn.rb | 59 +- config/puma.rb | 10 +- config/routes.rb | 186 +- ...49_create_user_organization_memberships.rb | 13 + ...te_user_organization_membership_invites.rb | 11 + ...eate_organization_bill_position_changes.rb | 19 + db/queue_schema.rb | 232 +- db/schema.rb | 788 +- db/seeds.rb | 54 + db/seeds/models/bill.rb | 122 +- db/seeds/models/legislator.rb | 187 +- db/seeds/models/sway_locale.rb | 42 +- db/seeds/seed_errors.rb | 6 +- db/seeds/seed_preparers/legislators/base.rb | 195 +- .../legislators/congress_dot_gov.rb | 280 +- .../seed_preparers/legislators/open_states.rb | 126 +- db/seeds/seed_preparers/legislators/sway.rb | 112 +- package-lock.json | 997 +- package.json | 36 +- sorbet/rbi/dsl/application_controller.rbi | 2 + .../rbi/dsl/generated_path_helpers_module.rbi | 24 + .../rbi/dsl/generated_url_helpers_module.rbi | 24 + .../on_deactivated_phone_delete_user_job.rbi | 8 +- sorbet/rbi/dsl/organization.rbi | 14 + sorbet/rbi/dsl/organization_bill_position.rbi | 14 + .../dsl/organization_bill_position_change.rbi | 1750 ++ sorbet/rbi/dsl/user.rbi | 28 + .../rbi/dsl/user_organization_membership.rbi | 1420 + .../user_organization_membership_invite.rbi | 1378 + ..._organization_membership_invite_mailer.rbi | 13 + sorbet/rbi/gems/builder@3.3.0.rbi | 497 +- .../{cbor@0.5.9.9.rbi => cbor@0.5.10.1.rbi} | 0 sorbet/rbi/gems/csv@3.3.5.rbi | 4954 +++- ...@6.5.0.rbi => factory_bot_rails@6.5.1.rbi} | 0 ...e@1.0.1.rbi => google-apis-core@1.0.2.rbi} | 0 sorbet/rbi/gems/haml@6.3.0.rbi | 1703 ++ sorbet/rbi/gems/prettier_print@1.2.1.rbi | 952 + .../gems/{puma@7.0.0.rbi => puma@7.0.2.rbi} | 101 +- .../gems/{rexml@3.4.2.rbi => rexml@3.4.4.rbi} | 94 +- sorbet/rbi/gems/rubocop-ast@1.46.0.rbi | 6 - ...5.0.rbi => rubocop-performance@1.26.0.rbi} | 66 +- .../{rubyzip@3.0.2.rbi => rubyzip@3.1.0.rbi} | 291 +- ...ils@5.26.0.rbi => sentry-rails@5.27.0.rbi} | 375 +- ...ruby@5.26.0.rbi => sentry-ruby@5.27.0.rbi} | 932 +- sorbet/rbi/gems/syntax_tree-haml@4.0.3.rbi | 385 + sorbet/rbi/gems/syntax_tree-rbs@1.0.0.rbi | 1034 + sorbet/rbi/gems/syntax_tree@6.3.0.rbi | 23304 ++++++++++++++++ sorbet/rbi/gems/temple@0.10.4.rbi | 1739 ++ sorbet/rbi/gems/tilt@2.6.1.rbi | 1012 + ....5.rbi => unicode-display_width@3.2.0.rbi} | 0 ...moji@4.0.4.rbi => unicode-emoji@4.1.0.rbi} | 0 ...tion_membership_invites_controller_spec.rb | 0 spec/factories/addresses.rb | 14 +- spec/factories/api_key.rb | 26 +- spec/factories/bills.rb | 40 +- spec/factories/districts.rb | 10 +- spec/factories/invite.rb | 10 +- spec/factories/legislator_votes.rb | 12 +- spec/factories/legislators.rb | 18 +- spec/factories/organization.rb | 12 +- spec/factories/organization_bill_position.rb | 8 + .../organization_bill_position_change.rb | 11 + .../push_notification_subscription.rb | 21 +- spec/factories/sway_locales.rb | 18 +- spec/factories/user_addresses.rb | 10 +- spec/factories/user_legislators.rb | 10 +- .../factories/user_organization_membership.rb | 11 + .../user_organization_membership_invite.rb | 9 + spec/factories/user_votes.rb | 12 +- spec/factories/users.rb | 10 +- spec/factories/vote.rb | 18 +- ...bill_becomes_botw_notify_users_job_spec.rb | 94 +- ..._deactivated_phone_delete_user_job_spec.rb | 40 +- ..._legislator_vote_update_scores_job_spec.rb | 106 +- ...saved_send_email_to_legislator_job_spec.rb | 38 +- .../user_legislator_email_mailer_spec.rb | 2 +- ...anization_membership_invite_mailer_spec.rb | 29 + spec/models/address_spec.rb | 109 +- spec/models/bill.rb | 60 +- spec/models/sway_locale_spec.rb | 87 +- spec/rails_helper.rb | 126 +- spec/requests/api_keys_spec.rb | 98 +- .../bill_of_the_week_controller_spec.rb | 28 +- .../bill_of_the_week_schedule_spec.rb | 50 +- .../bill_organizations_controller_spec.rb | 89 +- spec/requests/bills_controller_spec.rb | 362 +- spec/requests/invites_controller_spec.rb | 83 +- .../legislator_votes_controller_spec.rb | 91 +- spec/requests/legislators_controller_spec.rb | 24 +- ...organization_bill_position_changes_spec.rb | 66 + .../requests/organizations_controller_spec.rb | 107 +- .../shortened_urls_controller_spec.rb | 28 +- spec/requests/sitemap_spec.rb | 6 +- spec/requests/user_details_spec.rb | 49 +- spec/requests/user_email_confirmation_spec.rb | 6 +- spec/requests/user_legislator_email_spec.rb | 6 +- ...er_organization_membership_invites_spec.rb | 33 + .../user_organization_memberships_spec.rb | 124 + .../user_organization_positions_spec.rb | 95 + ...ess_legislator_vote_update_service_spec.rb | 123 +- spec/services/influence_service_spec.rb | 37 +- ...tes_legislator_vote_update_service_spec.rb | 195 +- spec/services/score_updater_spec.rb | 65 +- .../sway_push_notification_service_spec.rb | 42 +- spec/services/sway_registration_spec.rb | 94 +- spec/spec_helper.rb | 164 +- spec/support/factory_bot.rb | 4 +- spec/support/session_double.rb | 74 +- spec/support/setup.rb | 61 +- vite.config.build.ts | 1 + 280 files changed, 51070 insertions(+), 8376 deletions(-) create mode 100644 app/controllers/organization_bill_position_changes_controller.rb create mode 100644 app/controllers/user_organization_membership_invites_controller.rb create mode 100644 app/controllers/user_organization_memberships_controller.rb create mode 100644 app/controllers/user_organization_positions_controller.rb delete mode 100644 app/frontend/components/Layout.tsx create mode 100644 app/frontend/components/layouts/Layout.tsx rename app/frontend/components/{ => layouts}/LoginBubbles.tsx (100%) rename app/frontend/components/{ => layouts}/NoAuthLayout.tsx (76%) create mode 100644 app/frontend/hooks/users/useUserOrganizationMembership.ts create mode 100644 app/frontend/pages/organizations/UserOrganizationMembership.tsx create mode 100644 app/frontend/pages/organizations/UserOrganizationMembership_Approvals.tsx create mode 100644 app/frontend/pages/organizations/UserOrganizationMembership_Members.tsx create mode 100644 app/frontend/pages/organizations/UserOrganizationMembership_Position.tsx create mode 100644 app/frontend/pages/organizations/UserOrganizationMembership_PositionsList.tsx create mode 100644 app/frontend/pages/organizations/UserOrganizationMemberships_List.tsx create mode 100644 app/helpers/organization_bill_position_changes_helper.rb create mode 100644 app/helpers/user_organization_positions_helper.rb create mode 100644 app/mailers/user_organization_membership_invite_mailer.rb create mode 100644 app/models/organization_bill_position_change.rb create mode 100644 app/models/user_organization_membership.rb create mode 100644 app/models/user_organization_membership_invite.rb create mode 100644 app/views/user_organization_membership_invite_mailer/invite.html.erb create mode 100644 app/views/user_organization_membership_invite_mailer/invite.text.erb create mode 100644 app/views/user_organization_positions/create.html.erb create mode 100644 app/views/user_organization_positions/destroy.html.erb create mode 100644 app/views/user_organization_positions/update.html.erb create mode 100644 db/migrate/20250904175449_create_user_organization_memberships.rb create mode 100644 db/migrate/20250904180414_create_user_organization_membership_invites.rb create mode 100644 db/migrate/20250909195550_create_organization_bill_position_changes.rb create mode 100644 sorbet/rbi/dsl/organization_bill_position_change.rbi create mode 100644 sorbet/rbi/dsl/user_organization_membership.rbi create mode 100644 sorbet/rbi/dsl/user_organization_membership_invite.rbi create mode 100644 sorbet/rbi/dsl/user_organization_membership_invite_mailer.rbi rename sorbet/rbi/gems/{cbor@0.5.9.9.rbi => cbor@0.5.10.1.rbi} (100%) rename sorbet/rbi/gems/{factory_bot_rails@6.5.0.rbi => factory_bot_rails@6.5.1.rbi} (100%) rename sorbet/rbi/gems/{google-apis-core@1.0.1.rbi => google-apis-core@1.0.2.rbi} (100%) create mode 100644 sorbet/rbi/gems/haml@6.3.0.rbi create mode 100644 sorbet/rbi/gems/prettier_print@1.2.1.rbi rename sorbet/rbi/gems/{puma@7.0.0.rbi => puma@7.0.2.rbi} (98%) rename sorbet/rbi/gems/{rexml@3.4.2.rbi => rexml@3.4.4.rbi} (98%) rename sorbet/rbi/gems/{rubocop-performance@1.25.0.rbi => rubocop-performance@1.26.0.rbi} (98%) rename sorbet/rbi/gems/{rubyzip@3.0.2.rbi => rubyzip@3.1.0.rbi} (90%) rename sorbet/rbi/gems/{sentry-rails@5.26.0.rbi => sentry-rails@5.27.0.rbi} (57%) rename sorbet/rbi/gems/{sentry-ruby@5.26.0.rbi => sentry-ruby@5.27.0.rbi} (87%) create mode 100644 sorbet/rbi/gems/syntax_tree-haml@4.0.3.rbi create mode 100644 sorbet/rbi/gems/syntax_tree-rbs@1.0.0.rbi create mode 100644 sorbet/rbi/gems/syntax_tree@6.3.0.rbi create mode 100644 sorbet/rbi/gems/temple@0.10.4.rbi create mode 100644 sorbet/rbi/gems/tilt@2.6.1.rbi rename sorbet/rbi/gems/{unicode-display_width@3.1.5.rbi => unicode-display_width@3.2.0.rbi} (100%) rename sorbet/rbi/gems/{unicode-emoji@4.0.4.rbi => unicode-emoji@4.1.0.rbi} (100%) delete mode 100644 spec/controllers/user_organization_membership_invites_controller_spec.rb create mode 100644 spec/factories/organization_bill_position.rb create mode 100644 spec/factories/organization_bill_position_change.rb create mode 100644 spec/factories/user_organization_membership.rb create mode 100644 spec/factories/user_organization_membership_invite.rb create mode 100644 spec/mailers/user_organization_membership_invite_mailer_spec.rb create mode 100644 spec/requests/organization_bill_position_changes_spec.rb create mode 100644 spec/requests/user_organization_membership_invites_spec.rb create mode 100644 spec/requests/user_organization_memberships_spec.rb create mode 100644 spec/requests/user_organization_positions_spec.rb diff --git a/.husky/pre-commit b/.husky/pre-commit index bfcc7cec..ff16ef84 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -15,5 +15,6 @@ npm run prettier echo "Run rubocop on changed files, autofix any fixable offenses" bundle exec rubocop --autocorrect --only-recognized-file-types $changed_files +# bundle exec rubocop --only-recognized-file-types $changed_files -A git update-index --again \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index e0d5e88e..6b0cb992 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,15 +1,33 @@ -./.vscode -./.firebase +./.bundle ./.github -./.certs +./.husky +./.kamal +./.rubocop +./.vscode + +bin/ +db/migrate/ +docker/ +log/ +node_modules/ +public/ +scripts/ +sorbet/ +storage/ +tmp/ +vendor/ + +db/schema.rb + +package.json +package-lock.json +Gemfile +Gemfile.lock -./keys **/**/node_modules **/build/** **/dist/** **/lib/** -./emulate_data/* -./firebase-export-*/* +**/**/*.log -**/**/*.log \ No newline at end of file diff --git a/.prettierrc b/.prettierrc index 6299f693..1ef0f479 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,5 +4,6 @@ "printWidth": 120, "singleQuote": false, "bracketSpacing": true, - "arrowParens": "always" + "arrowParens": "always", + "plugins": ["@prettier/plugin-ruby"] } diff --git a/.rubocop.yml b/.rubocop.yml index a510543a..b5221bdc 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -9,6 +9,7 @@ inherit_from: - .rubocop/rails.yml - .rubocop/rspec.yml - .rubocop/strict.yml + - node_modules/@prettier/plugin-ruby/rubocop.yml AllCops: NewCops: disable @@ -29,3 +30,19 @@ Style/StringLiterals: Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: space + +Layout/IndentationWidth: + Enable: true + Width: 2 + +Metrics/AbcSize: + Max: 50 + +Metrics/MethodLength: + Max: 50 + +Style/Documentation: + Enabled: false + +Style/FrozenStringLiteralComment: + Enabled: false diff --git a/.vscode/settings.json b/.vscode/settings.json index c79259d3..da22f9d3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,8 @@ { "typescript.enablePromptUseWorkspaceTsdk": false, "typescript.tsdk": "node_modules/typescript/lib", - "editor.codeActionsOnSave": ["source.addMissingImports"] + "editor.codeActionsOnSave": ["source.addMissingImports"], + + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true } diff --git a/Gemfile b/Gemfile index a23f7959..99fdfee4 100644 --- a/Gemfile +++ b/Gemfile @@ -105,7 +105,7 @@ gem "shortener" # https://github.com/pushpad/web-push # https://medium.com/@dejanvu.developer/implementing-web-push-notifications-in-a-ruby-on-rails-application-dcd829e02df0 -gem "web-push", "~> 3" +gem "web-push" # Logs in a single line # https://github.com/roidrage/lograge @@ -126,69 +126,74 @@ gem "solid_queue", "~> 1.1" gem "pdf-reader" group :development, :test do - # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem - gem "debug", platforms: %i[mri windows] + # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem + gem "debug", platforms: %i[mri windows] - gem "pry" + gem "pry" - # https://github.com/bkeepers/dotenv - gem "dotenv" + # https://github.com/bkeepers/dotenv + gem "dotenv" - # https://github.com/rspec/rspec-rails - # Run against this stable release - gem "rspec-rails", "~> 8" + # https://github.com/rspec/rspec-rails + # Run against this stable release + gem "rspec-rails", "~> 8" - # https://github.com/thoughtbot/factory_bot_rails - gem "factory_bot_rails" + # https://github.com/thoughtbot/factory_bot_rails + gem "factory_bot_rails" - # https://github.com/samuelgiles/rspec-sorbet - # https://stackoverflow.com/questions/74842832/how-to-configure-sorbet-with-rspec - gem "rspec-sorbet" + # https://github.com/samuelgiles/rspec-sorbet + # https://stackoverflow.com/questions/74842832/how-to-configure-sorbet-with-rspec + gem "rspec-sorbet" - # Generate types from gems - # https://github.com/Shopify/tapioca - gem "tapioca", "~> 0.17", require: false + # Generate types from gems + # https://github.com/Shopify/tapioca + gem "tapioca", "~> 0.17", require: false end group :development do - # Use console on exceptions pages [https://github.com/rails/web-console] - gem "web-console" - - # https://github.com/ctran/annotate_models - # https://stackoverflow.com/questions/1289557/how-do-you-discover-model-attributes-in-rails - # Use annotaterb instead of annotate - https://github.com/drwl/annotaterb - gem "annotaterb" - - # Ruby type hints - # https://sorbet.org/docs/adopting - gem "sorbet" - - # https://github.com/faker-ruby/faker - gem "faker" - - # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler] - # gem "rack-mini-profiler" - - # Speed up commands on slow machines / big apps [https://github.com/rails/spring] - # gem "spring" - - # https://github.com/BetterErrors/better_errors - gem "better_errors" - gem "binding_of_caller" - - gem "rubocop", "~> 1.80" - gem "rubocop-factory_bot" - gem "rubocop-performance" - gem "rubocop-rails" - gem "rubocop-rspec" - gem "rubocop-shopify" - gem "rubocop-thread_safety" + # Use console on exceptions pages [https://github.com/rails/web-console] + gem "web-console" + + # https://github.com/ctran/annotate_models + # https://stackoverflow.com/questions/1289557/how-do-you-discover-model-attributes-in-rails + # Use annotaterb instead of annotate - https://github.com/drwl/annotaterb + gem "annotaterb" + + # Ruby type hints + # https://sorbet.org/docs/adopting + gem "sorbet" + + # https://github.com/faker-ruby/faker + gem "faker" + + # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler] + # gem "rack-mini-profiler" + + # Speed up commands on slow machines / big apps [https://github.com/rails/spring] + # gem "spring" + + # https://github.com/BetterErrors/better_errors + gem "better_errors" + gem "binding_of_caller" + + gem "rubocop", "~> 1.80" + gem "rubocop-factory_bot" + gem "rubocop-performance" + gem "rubocop-rails" + gem "rubocop-rspec" + gem "rubocop-shopify" + gem "rubocop-thread_safety" + + gem "prettier_print" + gem "syntax_tree" + gem "syntax_tree-haml" + gem "syntax_tree-rbs" end group :test do - # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing] - gem "capybara" - gem "selenium-webdriver" + # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing] + gem "capybara" + gem "selenium-webdriver" - gem "rails-controller-testing" + gem "rails-controller-testing" end diff --git a/Gemfile.lock b/Gemfile.lock index c8b62932..25d44b4a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -104,7 +104,7 @@ GEM rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) - cbor (0.5.9.9) + cbor (0.5.10.1) coderay (1.1.3) concurrent-ruby (1.3.5) connection_pool (2.5.4) @@ -131,7 +131,7 @@ GEM tzinfo factory_bot (6.5.5) activesupport (>= 6.1.0) - factory_bot_rails (6.5.0) + factory_bot_rails (6.5.1) factory_bot (~> 6.5) railties (>= 6.1.0) faker (3.5.2) @@ -152,7 +152,7 @@ GEM csv (>= 3.0.0) globalid (1.2.1) activesupport (>= 6.1) - google-apis-core (1.0.1) + google-apis-core (1.0.2) addressable (~> 2.8, >= 2.8.7) faraday (~> 2.13) faraday-follow_redirects (~> 0.3) @@ -189,6 +189,10 @@ GEM multi_json (~> 1.11) os (>= 0.9, < 2.0) signet (>= 0.16, < 2.a) + haml (6.3.0) + temple (>= 0.8.2) + thor + tilt hashery (2.1.2) i18n (1.14.7) concurrent-ruby (~> 1.0) @@ -272,6 +276,7 @@ GEM ttfunk pp (0.6.2) prettyprint + prettier_print (1.2.1) prettyprint (0.2.0) prism (1.4.0) pry (0.15.2) @@ -281,7 +286,7 @@ GEM date stringio public_suffix (6.0.2) - puma (7.0.0) + puma (7.0.2) nio4r (~> 2.0) raabro (1.4.0) racc (1.8.1) @@ -350,7 +355,7 @@ GEM rack (>= 1.4) require-hooks (0.2.2) retriable (3.1.2) - rexml (3.4.2) + rexml (3.4.4) rgeo (3.0.1) rgeo-geojson (2.2.0) multi_json (~> 1.15) @@ -392,10 +397,10 @@ GEM rubocop-factory_bot (2.27.1) lint_roller (~> 1.1) rubocop (~> 1.72, >= 1.72.1) - rubocop-performance (1.25.0) + rubocop-performance (1.26.0) lint_roller (~> 1.1) rubocop (>= 1.75.0, < 2.0) - rubocop-ast (>= 1.38.0, < 2.0) + rubocop-ast (>= 1.44.0, < 2.0) rubocop-rails (2.33.3) activesupport (>= 4.2.0) lint_roller (~> 1.1) @@ -413,7 +418,7 @@ GEM rubocop-ast (>= 1.44.0, < 2.0) ruby-progressbar (1.13.0) ruby-rc4 (0.1.5) - rubyzip (3.0.2) + rubyzip (3.1.0) safety_net_attestation (0.4.0) jwt (~> 2.0) securerandom (0.4.1) @@ -423,10 +428,10 @@ GEM rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 4.0) websocket (~> 1.0) - sentry-rails (5.26.0) + sentry-rails (5.27.0) railties (>= 5.0) - sentry-ruby (~> 5.26.0) - sentry-ruby (5.26.0) + sentry-ruby (~> 5.27.0) + sentry-ruby (5.27.0) bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) shortener (1.0.1) @@ -443,15 +448,15 @@ GEM fugit (~> 1.11.0) railties (>= 7.1) thor (>= 1.3.1) - sorbet (0.6.12479) - sorbet-static (= 0.6.12479) - sorbet-runtime (0.6.12479) - sorbet-static (0.6.12479-aarch64-linux) - sorbet-static (0.6.12479-universal-darwin) - sorbet-static (0.6.12479-x86_64-linux) - sorbet-static-and-runtime (0.6.12479) - sorbet (= 0.6.12479) - sorbet-runtime (= 0.6.12479) + sorbet (0.6.12507) + sorbet-static (= 0.6.12507) + sorbet-runtime (0.6.12507) + sorbet-static (0.6.12507-aarch64-linux) + sorbet-static (0.6.12507-universal-darwin) + sorbet-static (0.6.12507-x86_64-linux) + sorbet-static-and-runtime (0.6.12507) + sorbet (= 0.6.12507) + sorbet-runtime (= 0.6.12507) spoom (1.7.6) erubi (>= 1.10.0) prism (>= 0.28.0) @@ -472,6 +477,16 @@ GEM mini_portile2 (~> 2.8.0) stackprof (0.2.27) stringio (3.1.7) + syntax_tree (6.3.0) + prettier_print (>= 1.2.0) + syntax_tree-haml (4.0.3) + haml (>= 5.2) + prettier_print (>= 1.2.1) + syntax_tree (>= 6.0.0) + syntax_tree-rbs (1.0.0) + prettier_print + rbs + syntax_tree (>= 2.0.1) tapioca (0.17.7) benchmark bundler (>= 2.2.25) @@ -483,7 +498,9 @@ GEM spoom (>= 1.7.0) thor (>= 1.2.0) yard-sorbet + temple (0.10.4) thor (1.4.0) + tilt (2.6.1) timeout (0.4.3) tpm-key_attestation (0.14.1) bindata (~> 2.4) @@ -499,9 +516,9 @@ GEM tzinfo (2.0.6) concurrent-ruby (~> 1.0) uber (0.1.0) - unicode-display_width (3.1.5) - unicode-emoji (~> 4.0, >= 4.0.4) - unicode-emoji (4.0.4) + unicode-display_width (3.2.0) + unicode-emoji (~> 4.1) + unicode-emoji (4.1.0) uri (1.0.3) useragent (0.16.11) vite_rails (3.0.19) @@ -574,6 +591,7 @@ DEPENDENCIES lograge newrelic_rpm pdf-reader + prettier_print pry puma (>= 5) rails (~> 8) @@ -600,12 +618,15 @@ DEPENDENCIES sprockets-rails sqlite3 (~> 2) stackprof + syntax_tree + syntax_tree-haml + syntax_tree-rbs tapioca (~> 0.17) twilio-ruby (~> 7) tzinfo-data vite_rails web-console - web-push (~> 3) + web-push webauthn (~> 3) RUBY VERSION diff --git a/app/channels/application_cable/channel.rb b/app/channels/application_cable/channel.rb index 261e32b0..2264c6e0 100644 --- a/app/channels/application_cable/channel.rb +++ b/app/channels/application_cable/channel.rb @@ -2,6 +2,6 @@ # typed: strict module ApplicationCable - class Channel < ActionCable::Channel::Base - end + class Channel < ActionCable::Channel::Base + end end diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb index 4804259d..8d388249 100644 --- a/app/channels/application_cable/connection.rb +++ b/app/channels/application_cable/connection.rb @@ -2,6 +2,6 @@ # typed: strict module ApplicationCable - class Connection < ActionCable::Connection::Base - end + class Connection < ActionCable::Connection::Base + end end diff --git a/app/controllers/admin/bills/creator_controller.rb b/app/controllers/admin/bills/creator_controller.rb index 2c8bb5e2..32fa948d 100644 --- a/app/controllers/admin/bills/creator_controller.rb +++ b/app/controllers/admin/bills/creator_controller.rb @@ -1,13 +1,13 @@ # frozen_string_literal: true module Admin - module Bills - class CreatorController < ApplicationController - before_action :verify_is_admin + module Bills + class CreatorController < ApplicationController + before_action :verify_is_admin - def index - render inertia: Pages::BILL_CREATOR - end + def index + render inertia: Pages::BILL_CREATOR + end + end end - end end diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 8f732811..b192f934 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true class AdminController < ApplicationController - before_action :verify_is_admin + before_action :verify_is_admin end diff --git a/app/controllers/api_keys_controller.rb b/app/controllers/api_keys_controller.rb index d24a23bd..08c852f3 100644 --- a/app/controllers/api_keys_controller.rb +++ b/app/controllers/api_keys_controller.rb @@ -1,44 +1,39 @@ class ApiKeysController < ApplicationController - # include ApiKeyAuthenticatable - # Require API key authentication - # prepend_before_action :authenticate_with_api_key!, only: %i[index destroy] + # include ApiKeyAuthenticatable + # Require API key authentication + # prepend_before_action :authenticate_with_api_key!, only: %i[index destroy] - def index - render_component(Pages::API_KEYS, { - api_keys: current_user.api_keys - }) - end + def index + render_component(Pages::API_KEYS, { api_keys: current_user.api_keys }) + end - def create - if current_user.api_keys.blank? - api_key = current_user.api_keys.create!(token: SecureRandom.hex) - flash[:notice] = "API Key Created!" + def create + if current_user.api_keys.blank? + api_key = current_user.api_keys.create!(token: SecureRandom.hex) + flash[:notice] = "API Key Created!" - render json: { - **api_key.attributes, - token: api_key.token - }, status: :ok - else - flash[:alert] = "You may only have 1 API Key." - route_component(api_keys_path) + render json: { **api_key.attributes, token: api_key.token }, status: :ok + else + flash[:alert] = "You may only have 1 API Key." + route_component(api_keys_path) + end end - end - def update - current_user.api_keys.find_by(id: params[:id])&.update!(update_params) - flash[:notice] = "API Key Name Updated" - route_component(api_keys_path) - end + def update + current_user.api_keys.find_by(id: params[:id])&.update!(update_params) + flash[:notice] = "API Key Name Updated" + route_component(api_keys_path) + end - def destroy - current_user.api_keys.find_by(id: params[:id])&.destroy - flash[:notice] = "API Key Deleted!" - route_component(api_keys_path) - end + def destroy + current_user.api_keys.find_by(id: params[:id])&.destroy + flash[:notice] = "API Key Deleted!" + route_component(api_keys_path) + end - private + private - def update_params - params.require(:api_keys_update_params).permit(:name) - end + def update_params + params.require(:api_keys_update_params).permit(:name) + end end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 2819bb30..09722094 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,206 +2,191 @@ # typed: false class ApplicationController < ActionController::Base - extend T::Sig - include DefaultMetaTaggable - include RelyingParty - include ApiKeyAuthenticatable - include SwayProps - include Pages - include SwayRoutes - - # https://inertia-rails.dev/guide/csrf-protection#handling-mismatches - rescue_from ActionController::InvalidAuthenticityToken, with: :inertia_page_expired_error - - # https://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection/ClassMethods.html - protect_from_forgery with: :exception, prepend: true - - # newrelic_ignore_enduser - - before_action :is_api_request_and_is_route_api_accessible? - before_action :authenticate_user! - before_action :set_sway_locale_id_in_session - - inertia_config( - # ..........*......DEPRECATION WARNING: To comply with the Inertia protocol, an empty errors hash `{errors: {}}` will be included to all responses by default starting with InertiaRails 4.0. To opt-in now, set `config.always_include_errors_hash = true`. To disable this warning, set it to `false`. (called from ApplicationController#render_component at /Users/dave/plebtech/sway/app/controllers/application_controller.rb:42) - always_include_errors_hash: true - ) - - T::Configuration.inline_type_error_handler = lambda do |error, _opts| - Rails.logger.error error - end - - helper_method :current_user, :current_sway_locale, :verify_is_admin, :invited_by_id - - @@_ssr_methods = {} - - sig do - params( - page: T.nilable(String), - props: T.untyped - ).returns(T.untyped) - end - def render_component(page, props = {}) - return render_component(Pages::HOME) if page.nil? - - render(inertia: page, props: expand_props(props)) - end - - sig { params(route: T.nilable(String), new_params: T::Hash[T.any(String, Symbol), T.anything]).returns(T.untyped) } - def route_component(route, new_params = {}) - return route_component(SwayRoutes::HOME) if route.nil? - - phone = session[:verified_phone] - - Rails.logger.info "ServerRendering.route - Route to page - #{route}" - - render json: { route:, phone:, params: new_params } - # end - end - - inertia_share flash: -> { flash.to_hash } - - inertia_share do - { - user: current_user&.to_sway_json&.merge({ - address: current_user&.address&.attributes - }), - sway_locale: current_sway_locale&.to_sway_json, - sway_locales: current_user&.sway_locales&.map(&:to_sway_json) || SwayLocale.all&.map(&:to_sway_json), - params: { - sway_locale_id: params[:sway_locale_id], - errors: params[:errros] - } - } - end - - sig { params(user: T.nilable(User)).returns(T.untyped) } - def sign_in(user) - return if user.blank? - - _invited_by_id = invited_by_id - - # Reset session on sign_in to prevent session fixation attacks - # https://guides.rubyonrails.org/security.html#session-fixation-countermeasures - reset_session - - # Need to persist this value through registration - cookies.permanent[UserInviter::INVITED_BY_SESSION_KEY] = _invited_by_id - - begin - cookies.encrypted[:refresh_token] = RefreshToken.for(user, request).as_cookie - session[:user_id] = user.id - - user.sign_in_count = user.sign_in_count + 1 - user.last_sign_in_at = user.current_sign_in_at - user.current_sign_in_at = Time.zone.now - user.last_sign_in_ip = user.current_sign_in_ip - user.current_sign_in_ip = request.remote_ip - user.save - - cookies.permanent[:sway_locale_id] = user.default_sway_locale&.id if user.is_registration_complete - rescue StandardError => e - reset_session - cookies.clear - raise e + extend T::Sig + include DefaultMetaTaggable + include RelyingParty + include ApiKeyAuthenticatable + include SwayProps + include Pages + include SwayRoutes + + # https://inertia-rails.dev/guide/csrf-protection#handling-mismatches + rescue_from ActionController::InvalidAuthenticityToken, with: :inertia_page_expired_error + + # https://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection/ClassMethods.html + protect_from_forgery with: :exception, prepend: true + + # newrelic_ignore_enduser + + before_action :is_api_request_and_is_route_api_accessible? + before_action :authenticate_user! + before_action :set_sway_locale_id_in_session + + inertia_config( + # ..........*......DEPRECATION WARNING: To comply with the Inertia protocol, an empty errors hash `{errors: {}}` will be included to all responses by default starting with InertiaRails 4.0. To opt-in now, set `config.always_include_errors_hash = true`. To disable this warning, set it to `false`. (called from ApplicationController#render_component at /Users/dave/plebtech/sway/app/controllers/application_controller.rb:42) + always_include_errors_hash: true, + ) + + T::Configuration.inline_type_error_handler = lambda { |error, _opts| Rails.logger.error error } + + helper_method :current_user, :current_sway_locale, :verify_is_admin, :invited_by_id + + @@_ssr_methods = {} + + sig { params(page: T.nilable(String), props: T.untyped).returns(T.untyped) } + def render_component(page, props = {}) + return render_component(Pages::HOME) if page.nil? + + render(inertia: page, props: expand_props(props)) end - end - - sig { void } - def sign_out - current_user&.refresh_token&.destroy - reset_session - cookies.clear - end - - sig { returns(T.nilable(User)) } - def current_user - @current_user ||= authenticate_with_cookies || authenticate_with_api_key # ApiKeyAuthenticatable - end - - sig { returns(T.nilable(SwayLocale)) } - def current_sway_locale - @_current_sway_locale ||= find_current_sway_locale - end - - def invited_by_id - Rails.logger.info "Getting invited_by_id from cookies: #{cookies.permanent[UserInviter::INVITED_BY_SESSION_KEY]}" - cookies.permanent[UserInviter::INVITED_BY_SESSION_KEY] - end - - def authenticate_with_cookies - u = User.find_by(id: session[:user_id]) - - if u.nil? && cookies.encrypted[:refresh_token].present? - current_refresh_token = RefreshToken.find_by(token: cookies.encrypted[:refresh_token]) - - if current_refresh_token&.is_valid?(request) - Rails.logger.info("authenticate_with_cookies - refreshing User with Refresh Token") - u = current_refresh_token.user - if u.present? - session[:user_id] = u.id - cookies.encrypted[:refresh_token] = RefreshToken.for(u, request).as_cookie + + sig { params(route: T.nilable(String), new_params: T::Hash[T.any(String, Symbol), T.anything]).returns(T.untyped) } + def route_component(route, new_params = {}) + return route_component(SwayRoutes::HOME) if route.nil? + + phone = session[:verified_phone] + + Rails.logger.info "ServerRendering.route - Route to page - #{route}" + + render json: { route:, phone:, params: new_params } + # end + end + + inertia_share flash: -> { flash.to_hash } + + inertia_share do + { + user: current_user&.to_sway_json&.merge({ address: current_user&.address&.attributes }), + sway_locale: current_sway_locale&.to_sway_json, + sway_locales: current_user&.sway_locales&.map(&:to_sway_json) || SwayLocale.all&.map(&:to_sway_json), + params: { + sway_locale_id: params[:sway_locale_id], + errors: params[:errros], + }, + } + end + + sig { params(user: T.nilable(User)).returns(T.untyped) } + def sign_in(user) + return if user.blank? + + _invited_by_id = invited_by_id + + # Reset session on sign_in to prevent session fixation attacks + # https://guides.rubyonrails.org/security.html#session-fixation-countermeasures + reset_session + + # Need to persist this value through registration + cookies.permanent[UserInviter::INVITED_BY_SESSION_KEY] = _invited_by_id + + begin + cookies.encrypted[:refresh_token] = RefreshToken.for(user, request).as_cookie + session[:user_id] = user.id + + user.sign_in_count = user.sign_in_count + 1 + user.last_sign_in_at = user.current_sign_in_at + user.current_sign_in_at = Time.zone.now + user.last_sign_in_ip = user.current_sign_in_ip + user.current_sign_in_ip = request.remote_ip + user.save + + cookies.permanent[:sway_locale_id] = user.default_sway_locale&.id if user.is_registration_complete + rescue StandardError => e + reset_session + cookies.clear + raise e + end + end + + sig { void } + def sign_out + current_user&.refresh_token&.destroy + reset_session + cookies.clear + end + + sig { returns(T.nilable(User)) } + def current_user + @current_user ||= authenticate_with_cookies || authenticate_with_api_key # ApiKeyAuthenticatable + end + + sig { returns(T.nilable(SwayLocale)) } + def current_sway_locale + @current_sway_locale ||= find_current_sway_locale + end + + def invited_by_id + Rails.logger.info "Getting invited_by_id from cookies: #{cookies.permanent[UserInviter::INVITED_BY_SESSION_KEY]}" + cookies.permanent[UserInviter::INVITED_BY_SESSION_KEY] + end + + def authenticate_with_cookies + u = User.find_by(id: session[:user_id]) + + if u.nil? && cookies.encrypted[:refresh_token].present? + current_refresh_token = RefreshToken.find_by(token: cookies.encrypted[:refresh_token]) + + if current_refresh_token&.is_valid?(request) + Rails.logger.info("authenticate_with_cookies - refreshing User with Refresh Token") + u = current_refresh_token.user + if u.present? + session[:user_id] = u.id + cookies.encrypted[:refresh_token] = RefreshToken.for(u, request).as_cookie + end + end end - end + u end - u - end - - sig { void } - def is_api_request_and_is_route_api_accessible? - if request.path.starts_with?("/api/admin/") - unless authenticate_with_api_key! && current_user&.is_admin? - render json: { - message: "Missing API Key. Include it an Authorization header." - }, status: :accepted - end - elsif request.path.starts_with?("/api/") - unless authenticate_with_api_key! - render json: { - message: "Missing API Key. Include it an Authorization header." - }, status: :accepted - end + + sig { void } + def is_api_request_and_is_route_api_accessible? + if request.path.starts_with?("/api/admin/") + unless authenticate_with_api_key! && current_user&.is_admin? + render json: { message: "Missing API Key. Include it an Authorization header." }, status: :accepted + end + elsif request.path.starts_with?("/api/") + unless authenticate_with_api_key! + render json: { message: "Missing API Key. Include it an Authorization header." }, status: :accepted + end + end end - end - - sig { void } - def authenticate_user! - u = current_user - if u.nil? - Rails.logger.info "No current user, redirect to root path" - redirect_to root_url - elsif !u.is_registration_complete - if u.has_user_legislators? - u.is_registration_complete = true - u.save! - else - Rails.logger.info "Current user registration is not complete, redirect to sway registration" - redirect_to sway_registration_index_path - end + + sig { void } + def authenticate_user! + u = current_user + if u.nil? + Rails.logger.info "No current user, redirect to root path" + redirect_to root_url + elsif !u.is_registration_complete + if u.has_user_legislators? + u.is_registration_complete = true + u.save! + else + Rails.logger.info "Current user registration is not complete, redirect to sway registration" + redirect_to sway_registration_index_path + end + end end - end - sig { void } - def verify_is_admin - redirect_to root_path unless current_user&.is_admin? - end + sig { void } + def verify_is_admin + redirect_to root_path unless current_user&.is_admin? + end - private + private - def set_sway_locale_id_in_session - return if params[:sway_locale_id].blank? + def set_sway_locale_id_in_session + return if params[:sway_locale_id].blank? - cookies.permanent[:sway_locale_id] = params[:sway_locale_id].to_i - end + cookies.permanent[:sway_locale_id] = params[:sway_locale_id].to_i + end - def find_current_sway_locale - SwayLocale.find_by(id: cookies.permanent[:sway_locale_id]) || - SwayLocale.find_by_name(params[:sway_locale_name]) || # query string for sharing - current_user&.default_sway_locale || - SwayLocale.default_locale # congress - end + def find_current_sway_locale + SwayLocale.find_by(id: cookies.permanent[:sway_locale_id]) || SwayLocale.find_by(name: params[:sway_locale_name]) || # query string for sharing + current_user&.default_sway_locale || SwayLocale.default_locale # congress + end - def inertia_page_expired_error - redirect_back_or_to("/", allow_other_host: false, notice: "The page expired, please try again.") - end + def inertia_page_expired_error + redirect_back_or_to("/", allow_other_host: false, notice: "The page expired, please try again.") + end end diff --git a/app/controllers/bill_of_the_week_controller.rb b/app/controllers/bill_of_the_week_controller.rb index d9c20be9..1e5d7f16 100644 --- a/app/controllers/bill_of_the_week_controller.rb +++ b/app/controllers/bill_of_the_week_controller.rb @@ -2,23 +2,26 @@ # typed: true class BillOfTheWeekController < ApplicationController - skip_before_action :authenticate_user!, only: %i[index] + skip_before_action :authenticate_user!, only: %i[index] - def index - b = T.cast(Bill.of_the_week(sway_locale: current_sway_locale), T.nilable(T.any(Bill, T::Array[Bill]))) - b = b.first if b.is_a?(Array) + def index + b = T.cast(Bill.of_the_week(sway_locale: current_sway_locale), T.nilable(T.any(Bill, T::Array[Bill]))) + b = b.first if b.is_a?(Array) - if b.present? - render_component(Pages::BILL_OF_THE_WEEK, -> { - to_render = b.render(current_user, current_sway_locale) - if params[:with]&.include?("legislator") - to_render[:legislator] = current_user&.legislators(current_sway_locale)&.first + if b.present? + render_component( + Pages::BILL_OF_THE_WEEK, + -> do + to_render = b.render(current_user, current_sway_locale) + if params[:with]&.include?("legislator") + to_render[:legislator] = current_user&.legislators(current_sway_locale)&.first + end + to_render + end, + ) + else + flash[:notice] = "No Bill of the Week Available for #{current_sway_locale&.name}. Redirecting to Bills." + redirect_to bills_path end - to_render - }) - else - flash[:notice] = "No Bill of the Week Available for #{current_sway_locale&.name}. Redirecting to Bills." - redirect_to bills_path end - end end diff --git a/app/controllers/bill_of_the_week_schedule_controller.rb b/app/controllers/bill_of_the_week_schedule_controller.rb index d1b28a5d..e815d784 100644 --- a/app/controllers/bill_of_the_week_schedule_controller.rb +++ b/app/controllers/bill_of_the_week_schedule_controller.rb @@ -1,28 +1,34 @@ class BillOfTheWeekScheduleController < ApplicationController - before_action :set_bill, only: %i[update] + before_action :set_bill, only: %i[update] - def update - if @bill.present? - if @bill.update(scheduled_release_date_utc: bill_of_the_week_schedule_params[:scheduled_release_date_utc]) - flash[:notice] = @bill.scheduled_release_date_utc.blank? ? "Bill - #{@bill.title} - removed from schedule." : "Added bill - #{@bill.title} - to schedule." - route_component(edit_bill_path(@bill.id, tab_key: bill_of_the_week_schedule_params[:tab_key])) - else - flash[:alert] = "Failed to update bill schedule." - render_component(Pages::BILL_CREATOR, {errors: @bill.errors}) - end - else - flash[:alert] = "Failed to update bill schedule. Bill not found." - route_component(edit_bill_path(@bill.id, tab_key: bill_of_the_week_schedule_params[:tab_key])) + def update + if @bill.present? + if @bill.update(scheduled_release_date_utc: bill_of_the_week_schedule_params[:scheduled_release_date_utc]) + flash[:notice] = ( + if @bill.scheduled_release_date_utc.blank? + "Bill - #{@bill.title} - removed from schedule." + else + "Added bill - #{@bill.title} - to schedule." + end + ) + route_component(edit_bill_path(@bill.id, tab_key: bill_of_the_week_schedule_params[:tab_key])) + else + flash[:alert] = "Failed to update bill schedule." + render_component(Pages::BILL_CREATOR, { errors: @bill.errors }) + end + else + flash[:alert] = "Failed to update bill schedule. Bill not found." + route_component(edit_bill_path(@bill.id, tab_key: bill_of_the_week_schedule_params[:tab_key])) + end end - end - private + private - def bill_of_the_week_schedule_params - params.require(:bill_of_the_week_schedule).permit(:bill_id, :scheduled_release_date_utc, :tab_key) - end + def bill_of_the_week_schedule_params + params.require(:bill_of_the_week_schedule).permit(:bill_id, :scheduled_release_date_utc, :tab_key) + end - def set_bill - @bill = Bill.includes(:sway_locale).find(bill_of_the_week_schedule_params[:bill_id]) - end + def set_bill + @bill = Bill.includes(:sway_locale).find(bill_of_the_week_schedule_params[:bill_id]) + end end diff --git a/app/controllers/bill_score_districts_controller.rb b/app/controllers/bill_score_districts_controller.rb index 8e5ca178..79f6b578 100644 --- a/app/controllers/bill_score_districts_controller.rb +++ b/app/controllers/bill_score_districts_controller.rb @@ -2,16 +2,16 @@ # typed: true class BillScoreDistrictsController < ApplicationController - # GET /bill_score_districts/1 or /bill_score_districts/1.json - def show - render json: BillScoreDistrict.where(bill_score_id: bill_score_district_params[:bill_score_id]).map(&:to_sway_json), - status: :ok - end + # GET /bill_score_districts/1 or /bill_score_districts/1.json + def show + render json: BillScoreDistrict.where(bill_score_id: bill_score_district_params[:bill_score_id]).map(&:to_sway_json), + status: :ok + end - private + private - # Only allow a list of trusted parameters through. - def bill_score_district_params - params.require(:bill_score_district).permit(:bill_score_id, :district) - end + # Only allow a list of trusted parameters through. + def bill_score_district_params + params.require(:bill_score_district).permit(:bill_score_id, :district) + end end diff --git a/app/controllers/bill_scores_controller.rb b/app/controllers/bill_scores_controller.rb index d6f9f939..fe1fe524 100644 --- a/app/controllers/bill_scores_controller.rb +++ b/app/controllers/bill_scores_controller.rb @@ -2,16 +2,17 @@ # typed: true class BillScoresController < ApplicationController - skip_before_action :authenticate_user!, only: %i[show] + skip_before_action :authenticate_user!, only: %i[show] - def show - render json: BillScore.find_by(bill_id: params[:id])&.to_builder_with_user(current_user)&.attributes!, status: :ok - end + def show + render json: BillScore.find_by(bill_id: params[:id])&.to_builder_with_user(current_user)&.attributes!, +status: :ok + end - private + private - # Only allow a list of trusted parameters through. - def bill_score_params - params.require(:bill_score).permit(:bill_id) - end + # Only allow a list of trusted parameters through. + def bill_score_params + params.require(:bill_score).permit(:bill_id) + end end diff --git a/app/controllers/bills_controller.rb b/app/controllers/bills_controller.rb index e83ea14b..61eee854 100644 --- a/app/controllers/bills_controller.rb +++ b/app/controllers/bills_controller.rb @@ -2,228 +2,248 @@ # typed: true class BillsController < ApplicationController - include SwayGoogleCloudStorage - - skip_before_action :authenticate_user!, only: %i[index show] - - before_action :verify_is_admin, only: %i[new edit create update destroy] - before_action :set_bill, only: %i[show edit update destroy] - before_action :meta_title - - # GET /bills or /bills.json - def index - user_votes_by_bill_id = current_user&.user_votes&.index_by(&:bill_id) - - render_component(Pages::BILLS, lambda do - { - bills: Bill.previous(current_sway_locale).map do |bill| - bill.to_sway_json.merge({ - user_vote: user_votes_by_bill_id&.dig(bill.id), - bill_score: bill.bill_score&.to_builder_with_user(current_user)&.attributes!&.except("is_a?") - }) - end, - districts: current_user&.districts(current_sway_locale)&.map(&:to_sway_json) || [] - } - end) - end - - # GET /bills/1 or /bills/1.json - def show - if @bill.present? - render_component(Pages::BILL, -> { - to_render = @bill.render(current_user, current_sway_locale) - if params[:with]&.include?("legislator") - to_render[:legislator] = current_user&.legislators(current_sway_locale)&.first + include SwayGoogleCloudStorage + + skip_before_action :authenticate_user!, only: %i[index show] + + before_action :verify_is_admin, only: %i[new edit create update destroy] + before_action :set_bill, only: %i[show edit update destroy] + before_action :meta_title + + # GET /bills or /bills.json + def index + user_votes_by_bill_id = current_user&.user_votes&.index_by(&:bill_id) + + render_component( + Pages::BILLS, + lambda do + { + bills: + Bill + .previous(current_sway_locale) + .map do |bill| + bill.to_sway_json.merge( + { + user_vote: user_votes_by_bill_id&.dig(bill.id), + bill_score: bill.bill_score&.to_builder_with_user(current_user)&.attributes!&.except("is_a?"), + }, + ) + end, + districts: current_user&.districts(current_sway_locale)&.map(&:to_sway_json) || [], + } + end, + ) + end + + # GET /bills/1 or /bills/1.json + def show + if @bill.present? + render_component( + Pages::BILL, + -> do + to_render = @bill.render(current_user, current_sway_locale) + if params[:with]&.include?("legislator") + to_render[:legislator] = current_user&.legislators(current_sway_locale)&.first + end + to_render + end, + ) + else + redirect_to bills_path end - to_render - }) - else - redirect_to bills_path - end - end - - # ADMIN ONLY ROUTES - - # GET /bills/new - def new - render_component(Pages::BILL_CREATOR, { - bills: Bill.current_session(current_sway_locale)&.map(&:to_sway_json), - bill: Bill.new.attributes, - legislators: current_sway_locale&.legislators&.map(&:to_sway_json), - legislator_votes: [], - organizations: Organization.where(sway_locale: current_sway_locale).map(&:to_sway_json), - tab_key: params[:tab_key] - }) - end - - # GET /bills/1/edit - def edit - return redirect_to new_bill_path if @bill.blank? || @bill.id.blank? - - render_component(Pages::BILL_CREATOR, { - bills: Bill.current_session(current_sway_locale)&.map(&:to_sway_json), - bill: @bill.to_sway_json.tap do |b| - b[:organizations] = @bill.organizations.map(&:to_sway_json) - end, - legislators: current_sway_locale&.legislators&.filter do |l| - if current_sway_locale&.congress? && @bill.external_id.starts_with?("PN") - l.active && !l.title.starts_with?("Rep") + end + + # ADMIN ONLY ROUTES + + # GET /bills/new + def new + render_component( + Pages::BILL_CREATOR, + { + bills: Bill.current_session(current_sway_locale)&.map(&:to_sway_json), + bill: Bill.new.attributes, + legislators: current_sway_locale&.legislators&.map(&:to_sway_json), + legislator_votes: [], + organizations: Organization.where(sway_locale: current_sway_locale).map(&:to_sway_json), + tab_key: params[:tab_key], + }, + ) + end + + # GET /bills/1/edit + def edit + return redirect_to new_bill_path if @bill.blank? || @bill.id.blank? + + render_component( + Pages::BILL_CREATOR, + { + bills: Bill.current_session(current_sway_locale)&.map(&:to_sway_json), + bill: @bill.to_sway_json.tap { |b| b[:organizations] = @bill.organizations.map(&:to_sway_json) }, + legislators: + current_sway_locale + &.legislators + &.filter do |l| + if current_sway_locale&.congress? && @bill.external_id.starts_with?("PN") + l.active && !l.title.starts_with?("Rep") + else + l.active + end + end + &.map(&:to_sway_json), + legislator_votes: @bill.legislator_votes.map(&:to_sway_json), + organizations: Organization.where(sway_locale: current_sway_locale).map(&:to_sway_json), + tab_key: params[:tab_key], + }, + ) + end + + # POST /bills or /bills.json + def create + b = + Bill.find_by( + external_id: bill_params[:external_id], + sway_locale_id: bill_params[:sway_locale_id] || current_sway_locale&.id, + ) + b = Bill.new(**bill_params.except(*vote_params)) if b.nil? + + b.legislator = Legislator.find(bill_params[:legislator_id]) + + if b.save + create_vote(b) + route_component(edit_bill_path(b.id, { saved: "Bill Created", event_key: "legislator_votes" })) else - l.active + Rails.logger.error("Error saving bill - #{b.errors.flat_map(&:message).join(" | ")}") + redirect_to new_bill_path({ event_key: "bill" }), inertia: { errors: b.errors } end - end&.map(&:to_sway_json), - legislator_votes: @bill.legislator_votes.map(&:to_sway_json), - organizations: Organization.where(sway_locale: current_sway_locale).map(&:to_sway_json), - tab_key: params[:tab_key] - }) - end - - # POST /bills or /bills.json - def create - b = Bill.find_by( - external_id: bill_params[:external_id], - sway_locale_id: bill_params[:sway_locale_id] || current_sway_locale&.id - ) - if b.nil? - b = Bill.new(**bill_params.except(*vote_params)) - end - - b.legislator = Legislator.find(bill_params[:legislator_id]) - - if b.save - create_vote(b) - route_component(edit_bill_path(b.id, {saved: "Bill Created", event_key: "legislator_votes"})) - else - Rails.logger.error("Error saving bill - #{b.errors.flat_map(&:message).join(" | ")}") - redirect_to new_bill_path({event_key: "bill"}), inertia: { - errors: b.errors - } - end - rescue Exception => e # rubocop:disable Lint/RescueException - Rails.logger.error(e) - redirect_to new_bill_path({event_key: "bill"}), inertia: {errors: {external_id: e}} - end - - # PATCH/PUT /bills/1 or /bills/1.json - def update - if @bill.blank? - return redirect_to new_bill_path({event_key: "bill"}) - end - - current_audio_path = @bill.audio_bucket_path.freeze - if @bill.update(bill_params.except(*vote_params)) - remove_audio(current_audio_path) - - create_vote(@bill) - - route_component(edit_bill_path(@bill.id, {saved: "Bill Updated", event_key: "legislator_votes"})) - else - redirect_to edit_bill_path(@bill.id, {event_key: "bill"}), inertia: { - errors: @bill.errors - } - end - end - - # DELETE /bills/1 or /bills/1.json - def destroy - @bill&.destroy! - - new - end - - def meta_title - @meta_title = case action_name - when "index" - current_sway_locale.present? ? "#{current_sway_locale&.human_name} Legislation" : "Sway Legislation" - when "show" - if @bill.present? && current_sway_locale.present? - "#{@bill.external_id} - #{current_sway_locale&.human_name}" - else - "Sway Legislation" - end - else - "Sway" - end - end - - private - - def set_bill - @bill = T.let(Bill.includes(:legislator_votes, :organization_bill_positions, :legislator, :sway_locale).find(params[:id]), T.nilable(Bill)) - end - - def remove_audio(audio_path) - return unless @bill.present? && @bill.audio_bucket_path != audio_path - - delete_file( - bucket_name: SwayGoogleCloudStorage::BUCKETS[:ASSETS], - file_name: audio_path - ) - end - - def create_vote(b) - return unless bill_params[:house_roll_call_vote_number] || bill_params[:senate_roll_call_vote_number] - - Vote.find_or_create_by!(bill_id: b.id, - house_roll_call_vote_number: bill_params[:house_roll_call_vote_number], - senate_roll_call_vote_number: bill_params[:senate_roll_call_vote_number]) - end - - # Only allow a list of trusted parameters through. - def bill_params - params.transform_keys(&:underscore).permit( - :external_id, - :external_version, - :title, - :link, - :chamber, - :introduced_date_time_utc, - :house_vote_date_time_utc, - :senate_vote_date_time_utc, - :category, - :summary, - :status, - :active, - :audio_bucket_path, - :audio_by_line, - :sway_locale_id, - :legislator_id, - :house_roll_call_vote_number, - :senate_roll_call_vote_number, - :audio_bucket_path, - :audio_by_line - ) - end - - def vote_params - [ - :house_roll_call_vote_number, - :senate_roll_call_vote_number - ] - end - - def legislator_vote_params - params.require(:legislator_votes).map do |p| - p.transform_keys(&:underscore).permit(:legislator_id, :bill_id, :support) - end - end - - def organizations_params - params.require(:organizations).map do |p| - p.transform_keys(&:underscore).permit( - :id, :sway_locale_id, :name, :icon_path, positions: [:id, :bill_id, :summary, :support] - ) - end - end - - def params - super.transform_keys(&:underscore) - end - - sig { params(organization: Organization, current_icon_path: T.nilable(String)).void } - def remove_icon(organization, current_icon_path) - return unless organization.icon_path != current_icon_path - - delete_file(bucket_name: SwayGoogleCloudStorage::BUCKETS[:ASSETS], file_name: current_icon_path) - end + rescue Exception => e # rubocop:disable Lint/RescueException + Rails.logger.error(e) + redirect_to new_bill_path({ event_key: "bill" }), inertia: { errors: { external_id: e } } + end + + # PATCH/PUT /bills/1 or /bills/1.json + def update + return redirect_to new_bill_path({ event_key: "bill" }) if @bill.blank? + + current_audio_path = @bill.audio_bucket_path.freeze + if @bill.update(bill_params.except(*vote_params)) + remove_audio(current_audio_path) + + create_vote(@bill) + + route_component(edit_bill_path(@bill.id, { saved: "Bill Updated", event_key: "legislator_votes" })) + else + redirect_to edit_bill_path(@bill.id, { event_key: "bill" }), inertia: { errors: @bill.errors } + end + end + + # DELETE /bills/1 or /bills/1.json + def destroy + @bill&.destroy! + + new + end + + def meta_title + @meta_title = + case action_name + when "index" + current_sway_locale.present? ? "#{current_sway_locale&.human_name} Legislation" : "Sway Legislation" + when "show" + if @bill.present? && current_sway_locale.present? + "#{@bill.external_id} - #{current_sway_locale&.human_name}" + else + "Sway Legislation" + end + else + "Sway" + end + end + + private + + def set_bill + @bill = + T.let( + Bill.includes(:legislator_votes, :organization_bill_positions, :legislator, +:sway_locale).find(params[:id]), + T.nilable(Bill), + ) + end + + def remove_audio(audio_path) + return unless @bill.present? && @bill.audio_bucket_path != audio_path + + delete_file(bucket_name: SwayGoogleCloudStorage::BUCKETS[:ASSETS], file_name: audio_path) + end + + def create_vote(b) + return unless bill_params[:house_roll_call_vote_number] || bill_params[:senate_roll_call_vote_number] + + Vote.find_or_create_by!( + bill_id: b.id, + house_roll_call_vote_number: bill_params[:house_roll_call_vote_number], + senate_roll_call_vote_number: bill_params[:senate_roll_call_vote_number], + ) + end + + # Only allow a list of trusted parameters through. + def bill_params + params.transform_keys(&:underscore).permit( + :external_id, + :external_version, + :title, + :link, + :chamber, + :introduced_date_time_utc, + :house_vote_date_time_utc, + :senate_vote_date_time_utc, + :category, + :summary, + :status, + :active, + :audio_bucket_path, + :audio_by_line, + :sway_locale_id, + :legislator_id, + :house_roll_call_vote_number, + :senate_roll_call_vote_number, + :audio_bucket_path, + :audio_by_line, + ) + end + + def vote_params + %i[house_roll_call_vote_number senate_roll_call_vote_number] + end + + def legislator_vote_params + params + .require(:legislator_votes) + .map { |p| p.transform_keys(&:underscore).permit(:legislator_id, :bill_id, :support) } + end + + def organizations_params + params + .require(:organizations) + .map do |p| + p.transform_keys(&:underscore).permit( + :id, + :sway_locale_id, + :name, + :icon_path, + positions: %i[id bill_id summary support], + ) + end + end + + def params + super.transform_keys(&:underscore) + end + + sig { params(organization: Organization, current_icon_path: T.nilable(String)).void } + def remove_icon(organization, current_icon_path) + return unless organization.icon_path != current_icon_path + + delete_file(bucket_name: SwayGoogleCloudStorage::BUCKETS[:ASSETS], file_name: current_icon_path) + end end diff --git a/app/controllers/buckets/assets_controller.rb b/app/controllers/buckets/assets_controller.rb index 363050e8..329cae2f 100644 --- a/app/controllers/buckets/assets_controller.rb +++ b/app/controllers/buckets/assets_controller.rb @@ -2,36 +2,42 @@ # typed: true module Buckets - class AssetsController < ApplicationController - extend T::Sig - include SwayGoogleCloudStorage + class AssetsController < ApplicationController + extend T::Sig + include SwayGoogleCloudStorage - before_action :verify_is_admin + before_action :verify_is_admin - # Upload a file to the assets bucket in GCP - # return the new file location - def create - render json: { - bucket_file_path: file_name, - url: generate_put_signed_url_v4(bucket_name: SwayGoogleCloudStorage::BUCKETS[:ASSETS], file_name:, content_type: buckets_assets_params[:mime_type]) - }, status: :ok - end + # Upload a file to the assets bucket in GCP + # return the new file location + def create + render json: { + bucket_file_path: file_name, + url: + generate_put_signed_url_v4( + bucket_name: SwayGoogleCloudStorage::BUCKETS[:ASSETS], + file_name:, + content_type: buckets_assets_params[:mime_type], + ), + }, + status: :ok + end - private + private - def file_name - "#{T.cast(current_sway_locale, SwayLocale).name}/#{buckets_assets_params[:name]}" - end + def file_name + "#{T.cast(current_sway_locale, SwayLocale).name}/#{buckets_assets_params[:name]}" + end - # https://stackoverflow.com/a/16804560/6410635 - def file_suffix - Rack::Mime::MIME_TYPES.invert[buckets_assets_params[:mime_type]] - end + # https://stackoverflow.com/a/16804560/6410635 + def file_suffix + Rack::Mime::MIME_TYPES.invert[buckets_assets_params[:mime_type]] + end - # :name will typically be the name of the organization uploading an icon - # :mime_type is the type of file being uploaded, i.e. image/png - def buckets_assets_params - params.require(:asset).permit(:name, :mime_type) + # :name will typically be the name of the organization uploading an icon + # :mime_type is the type of file being uploaded, i.e. image/png + def buckets_assets_params + params.require(:asset).permit(:name, :mime_type) + end end - end end diff --git a/app/controllers/concerns/api_key_authenticatable.rb b/app/controllers/concerns/api_key_authenticatable.rb index acd4a183..1494e834 100644 --- a/app/controllers/concerns/api_key_authenticatable.rb +++ b/app/controllers/concerns/api_key_authenticatable.rb @@ -3,43 +3,39 @@ # https://keygen.sh/blog/how-to-implement-api-key-authentication-in-rails-without-devise/ module ApiKeyAuthenticatable - extend ActiveSupport::Concern - extend T::Sig - - include ActionController::HttpAuthentication::Basic::ControllerMethods - include ActionController::HttpAuthentication::Token::ControllerMethods - - attr_reader :current_api_key - attr_reader :current_bearer - - # Use this to raise an error and automatically respond with a 401 HTTP status - # code when API key authentication fails - # https://stackoverflow.com/a/34982438/6410635 - # https://keygen.sh/blog/how-to-implement-api-key-authentication-in-rails-without-devise/ - def authenticate_with_api_key! - authenticate_or_request_with_http_token do |http_token, options| - @current_bearer = authenticator(http_token, options) + extend ActiveSupport::Concern + extend T::Sig + + include ActionController::HttpAuthentication::Basic::ControllerMethods + include ActionController::HttpAuthentication::Token::ControllerMethods + + attr_reader :current_api_key, :current_bearer + + # Use this to raise an error and automatically respond with a 401 HTTP status + # code when API key authentication fails + # https://stackoverflow.com/a/34982438/6410635 + # https://keygen.sh/blog/how-to-implement-api-key-authentication-in-rails-without-devise/ + def authenticate_with_api_key! + authenticate_or_request_with_http_token do |http_token, options| + @current_bearer = authenticator(http_token, options) + end end - end - # Use this for optional API key authentication - def authenticate_with_api_key - authenticate_with_http_token do |http_token, options| - @current_bearer = authenticator(http_token, options) + # Use this for optional API key authentication + def authenticate_with_api_key + authenticate_with_http_token { |http_token, options| @current_bearer = authenticator(http_token, options) } end - end - private + private - attr_writer :current_api_key - attr_writer :current_bearer + attr_writer :current_api_key, :current_bearer - def authenticator(http_token, options) - @current_api_key = ApiKey.find_by(token_digest: http_token) - @current_api_key = ApiKey.authenticate_by_token(http_token) + def authenticator(http_token, _options) + @current_api_key = ApiKey.find_by(token_digest: http_token) + @current_api_key = ApiKey.authenticate_by_token(http_token) - @current_api_key&.update(last_used_on_utc: Time.zone.now) + @current_api_key&.update(last_used_on_utc: Time.zone.now) - current_api_key&.bearer - end + current_api_key&.bearer + end end diff --git a/app/controllers/concerns/authentication.rb b/app/controllers/concerns/authentication.rb index 0ba4e6f4..642c57e9 100644 --- a/app/controllers/concerns/authentication.rb +++ b/app/controllers/concerns/authentication.rb @@ -2,120 +2,116 @@ # typed: true module Authentication - extend ActiveSupport::Concern - extend T::Sig - - included do - sig { params(phone: String).void } - def authenticate(phone) - # 1 - We try to find a User by phone. If present and has confirmed, check passkey - user = find_by_phone(phone) - - # if user.present? - # if verified? && passkey? - # # sessions_controller.create - # elsif passkey? - # # somehow has a passkey and has not verified phone - # # phone_verification_controller.create - # else - # # has verified phone, but no passkey - # # actually this shouldn't happen, because - # # there exists a race condition where a phone is verified - # # and an attacker creates a passkey on another device - # end - # else - # # user does not exist, phone_verification_controller.create - # end - - # The above can be simplified to: - if user.present? && verified? && passkey? - # sessions_controller.create - else - # phone_verification_controller.create - end + extend ActiveSupport::Concern + extend T::Sig + + included do + sig { params(phone: String).void } + def authenticate(phone) + # 1 - We try to find a User by phone. If present and has confirmed, check passkey + user = find_by_phone(phone) + + # if user.present? + # if verified? && passkey? + # # sessions_controller.create + # elsif passkey? + # # somehow has a passkey and has not verified phone + # # phone_verification_controller.create + # else + # # has verified phone, but no passkey + # # actually this shouldn't happen, because + # # there exists a race condition where a phone is verified + # # and an attacker creates a passkey on another device + # end + # else + # # user does not exist, phone_verification_controller.create + # end + + # The above can be simplified to: + if user.present? && verified? && passkey? + # sessions_controller.create + else + # phone_verification_controller.create + end + end + + def send_phone_verification(session, phone_) + return false unless session.present? && phone_.present? + + phone = phone_.remove_non_digits + + if ENV.fetch("SKIP_PHONE_VERIFICATION", nil).present? + session[:phone] = phone + return true + end + + begin + verification = + twilio_client.verify.v2.services(service_sid).verifications.create(to: "+1#{phone}", channel: "sms") + + session[:phone] = phone if verification.present? + + true + rescue Twilio::REST::RestError => e + Rails.logger.error(e.full_message) + Sentry.capture_exception(e) + false + end + end + + def send_email_verification(session, email) + return false unless session.present? && email.present? + + begin + verification = twilio_client.verify.v2.services(service_sid).verifications.create(to: email, +channel: "email") + + session[:email] = email if verification.present? + + true + rescue Twilio::REST::RestError => e + Rails.logger.error e.full_message + Sentry.capture_exception(e) + false + end + end + + private + + def twilio_client + @twilio_client ||= Twilio::REST::Client.new(account_sid, auth_token) + end + + def account_sid + ENV["TWILIO_ACCOUNT_SID"] + end + + def auth_token + ENV["TWILIO_AUTH_TOKEN"] + end + + def service_sid + ENV["TWILIO_VERIFY_SERVICE_SID"] + end + + # sig { params(phone: String).returns(T::Boolean) } + # def authenticatable(phone) + # @user&.phone&.present? && verified? + # end + + sig { returns(T::Boolean) } + def verified? + @user&.is_phone_verified + end + + sig { returns(T::Boolean) } + def passkey? + @user&.passkeys&.size&.> 0 + end + + sig { params(phone: String).returns(T.nilable(User)) } + def find_by_phone(phone) + @find_by_phone ||= User.find_by(phone:) + end end - - def send_phone_verification(session, phone_) - return false unless session.present? && phone_.present? - - phone = phone_.remove_non_digits - - if ENV.fetch("SKIP_PHONE_VERIFICATION", nil).present? - session[:phone] = phone - return true - end - - begin - verification = twilio_client.verify.v2.services(service_sid).verifications.create( - to: "+1#{phone}", - channel: "sms" - ) - - session[:phone] = phone if verification.present? - - true - rescue Twilio::REST::RestError => e - Rails.logger.error(e.full_message) - Sentry.capture_exception(e) - false - end - end - - def send_email_verification(session, email) - return false unless session.present? && email.present? - - begin - verification = twilio_client.verify.v2.services(service_sid).verifications.create( - to: email, - channel: "email" - ) - - session[:email] = email if verification.present? - - true - rescue Twilio::REST::RestError => e - Rails.logger.error e.full_message - Sentry.capture_exception(e) - false - end - end - - private - - def twilio_client - @twilio_client ||= Twilio::REST::Client.new(account_sid, auth_token) - end - - def account_sid - ENV["TWILIO_ACCOUNT_SID"] - end - - def auth_token - ENV["TWILIO_AUTH_TOKEN"] - end - - def service_sid - ENV["TWILIO_VERIFY_SERVICE_SID"] - end - - # sig { params(phone: String).returns(T::Boolean) } - # def authenticatable(phone) - # @user&.phone&.present? && verified? - # end - - sig { returns(T::Boolean) } - def verified? - @user&.is_phone_verified - end - - sig { returns(T::Boolean) } - def passkey? - @user&.passkeys&.size&.> 0 - end - - sig { params(phone: String).returns(T.nilable(User)) } - def find_by_phone(phone) - @find_by_phone ||= User.find_by(phone:) - end - end end diff --git a/app/controllers/concerns/default_meta_taggable.rb b/app/controllers/concerns/default_meta_taggable.rb index 4a2972e1..0eb75e3d 100644 --- a/app/controllers/concerns/default_meta_taggable.rb +++ b/app/controllers/concerns/default_meta_taggable.rb @@ -1,59 +1,56 @@ module DefaultMetaTaggable - extend ActiveSupport::Concern + extend ActiveSupport::Concern - included do - inertia_share do - meta_inertia_data - end - end + included { inertia_share { meta_inertia_data } } - def meta_title - @meta_title || "Sway" - end + def meta_title + @meta_title || "Sway" + end - def meta_description - @meta_title || "Remember in November" - end + def meta_description + @meta_title || "Remember in November" + end - def meta_tags - @meta_tags || default_meta_tags - end + def meta_tags + @meta_tags || default_meta_tags + end - def set_meta_tag(tag_name, value) - @meta_tags ||= default_meta_tags - @meta_tags[tag_name.to_s] = value - end + def set_meta_tag(tag_name, value) + @meta_tags ||= default_meta_tags + @meta_tags[tag_name.to_s] = value + end - def default_meta_tags - { - "description" => meta_description, - "author" => "Plebeian Technologies, Inc.", - "title" => meta_title, - "og:description" => meta_description, - "og:type" => "website", - "og:title" => meta_title, - "og:image" => "https://sway.vote/images/sway-us-light.png", - "og:image:secure_url" => "https://sway.vote/images/sway-us-light.png", - "og:url" => request.original_url, - "twitter:title" => meta_title, - "twitter:description" => meta_description, - "twitter:image" => "https://sway.vote/images/sway-us-light.png", - "twitter:card" => "summary_large_image" - } - end + def default_meta_tags + { + "description" => meta_description, + "author" => "Plebeian Technologies, Inc.", + "title" => meta_title, + "og:description" => meta_description, + "og:type" => "website", + "og:title" => meta_title, + "og:image" => "https://sway.vote/images/sway-us-light.png", + "og:image:secure_url" => "https://sway.vote/images/sway-us-light.png", + "og:url" => request.original_url, + "twitter:title" => meta_title, + "twitter:description" => meta_description, + "twitter:image" => "https://sway.vote/images/sway-us-light.png", + "twitter:card" => "summary_large_image", + } + end - def meta_inertia_data - { - title: -> { meta_title }, - meta: lambda { - meta_tags.map do |tag_name, value| - id_key = tag_name.start_with?("og") ? :property : :name - {}.tap do |h| - h[id_key] = tag_name.to_s - h[:content] = value - end - end - } - } - end + def meta_inertia_data + { + title: -> { meta_title }, + meta: + lambda do + meta_tags.map do |tag_name, value| + id_key = tag_name.start_with?("og") ? :property : :name + {}.tap do |h| + h[id_key] = tag_name.to_s + h[:content] = value + end + end + end, + } + end end diff --git a/app/controllers/concerns/pages.rb b/app/controllers/concerns/pages.rb index 9306d4f1..808d46d6 100644 --- a/app/controllers/concerns/pages.rb +++ b/app/controllers/concerns/pages.rb @@ -1,14 +1,18 @@ +# frozen_string_literal: true + module Pages - API_KEYS = "ApiKeys" - BILL = "Bill" - BILLS = "Bills" - BILL_CREATOR = "BillOfTheWeekCreatorPage" - BILL_OF_THE_WEEK = "BillOfTheWeek" - GEOCODER = "geocoder" - HOME = "Home" - INFLUENCE = "Influence" - INVITE = "Invite" - LEGISLATORS = "Legislators" - NOTIFICATIONS = "Notifications" - REGISTRATION = "Registration" + API_KEYS = "ApiKeys" + BILL = "Bill" + BILLS = "Bills" + BILL_CREATOR = "BillOfTheWeekCreatorPage" + BILL_OF_THE_WEEK = "BillOfTheWeek" + GEOCODER = "geocoder" + HOME = "Home" + INFLUENCE = "Influence" + INVITE = "Invite" + LEGISLATORS = "Legislators" + NOTIFICATIONS = "Notifications" + REGISTRATION = "Registration" + USER_ORGANIZATION_MEMBERSHIPS = "organizations/UserOrganizationMemberships_List" + USER_ORGANIZATION_MEMBERSHIP = "organizations/UserOrganizationMembership" end diff --git a/app/controllers/concerns/relying_party.rb b/app/controllers/concerns/relying_party.rb index 085e70e1..c239043d 100644 --- a/app/controllers/concerns/relying_party.rb +++ b/app/controllers/concerns/relying_party.rb @@ -2,59 +2,58 @@ # typed: true module RelyingParty - extend ActiveSupport::Concern - extend T::Sig - - # https://github.com/ruby-passkeys/devise-passkeys-template/blob/329990739ffffcd9306ceff775c1561cead71029/app/controllers/concerns/relying_party.rb#L4 - - included do - def relying_party - Rails.logger.info("RelyingParty.relying_party.origin - #{"#{T.unsafe(self).request.protocol}#{T.unsafe(self).request.host}"}") - - WebAuthn::RelyingParty.new( - # This value needs to match `window.location.origin` evaluated by - # the User Agent during registration and authentication ceremonies. - # origin: Rails.env.production? ? "https://app.sway.vote" : "https://localhost:3333", - allowed_origins: origins, - - # Relying Party name for display purposes - name: "sway-#{ENV["RAILS_ENV"]}", - # Optionally configure a client timeout hint, in milliseconds. - # This hint specifies how long the browser should wait for any - # interaction with the user. - # This hint may be overridden by the browser. - # https://www.w3.org/TR/webauthn/#dom-publickeycredentialcreationoptions-timeout - credential_options_timeout: 120_000, - - # You can optionally specify a different Relying Party ID - # (https://www.w3.org/TR/webauthn/#relying-party-identifier) - # if it differs from the default one. - # - # In this case the default would be "admin.example.com", but you can set it to - # the suffix "example.com" - # - id: Rails.env.production? ? "app.sway.vote" : nil - # Configure preferred binary-to-text encoding scheme. This should match the encoding scheme - # used in your client-side (user agent) code before sending the credential to the server. - # Supported values: `:base64url` (default), `:base64` or `false` to disable all encoding. - # - # encoding: :base64url - - # Possible values: "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "RS256", "RS384", "RS512", "RS1" - # Default: ["ES256", "PS256", "RS256"] - # - # algorithms: ["ES384"] - ) - end - - private - - def origins - if Rails.env.production? - ["#{T.unsafe(self).request.protocol}#{T.unsafe(self).request.host}"] - else - ["#{T.unsafe(self).request.protocol}#{T.unsafe(self).request.host_with_port}"] - end + extend ActiveSupport::Concern + extend T::Sig + + # https://github.com/ruby-passkeys/devise-passkeys-template/blob/329990739ffffcd9306ceff775c1561cead71029/app/controllers/concerns/relying_party.rb#L4 + + included do + def relying_party + Rails.logger.info( + "RelyingParty.relying_party.origin - #{"#{T.unsafe(self).request.protocol}#{T.unsafe(self).request.host}"}", + ) + + WebAuthn::RelyingParty.new( + # This value needs to match `window.location.origin` evaluated by + # the User Agent during registration and authentication ceremonies. + # origin: Rails.env.production? ? "https://app.sway.vote" : "https://localhost:3333", + allowed_origins: origins, + # Relying Party name for display purposes + name: "sway-#{ENV["RAILS_ENV"]}", + # Optionally configure a client timeout hint, in milliseconds. + # This hint specifies how long the browser should wait for any + # interaction with the user. + # This hint may be overridden by the browser. + # https://www.w3.org/TR/webauthn/#dom-publickeycredentialcreationoptions-timeout + credential_options_timeout: 120_000, + # You can optionally specify a different Relying Party ID + # (https://www.w3.org/TR/webauthn/#relying-party-identifier) + # if it differs from the default one. + # + # In this case the default would be "admin.example.com", but you can set it to + # the suffix "example.com" + # + id: Rails.env.production? ? "app.sway.vote" : nil, + # Configure preferred binary-to-text encoding scheme. This should match the encoding scheme + # used in your client-side (user agent) code before sending the credential to the server. + # Supported values: `:base64url` (default), `:base64` or `false` to disable all encoding. + # + # encoding: :base64url + # Possible values: "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "RS256", "RS384", "RS512", "RS1" + # Default: ["ES256", "PS256", "RS256"] + # + # algorithms: ["ES384"] + ) + end + + private + + def origins + if Rails.env.production? + ["#{T.unsafe(self).request.protocol}#{T.unsafe(self).request.host}"] + else + ["#{T.unsafe(self).request.protocol}#{T.unsafe(self).request.host_with_port}"] + end + end end - end end diff --git a/app/controllers/concerns/sway_props.rb b/app/controllers/concerns/sway_props.rb index 05f17a54..f505e65d 100644 --- a/app/controllers/concerns/sway_props.rb +++ b/app/controllers/concerns/sway_props.rb @@ -2,26 +2,23 @@ # typed: true module SwayProps - extend T::Sig - extend ActiveSupport::Concern + extend T::Sig + extend ActiveSupport::Concern - included do - sig do - params( - props: T.nilable(T.any( - T::Hash[T.untyped, T.untyped], - T.proc.returns(T::Hash[T.untyped, T.untyped]) - )) - ).returns(T::Hash[T.untyped, T.untyped]) + included do + sig do + params( + props: T.nilable(T.any(T::Hash[T.untyped, T.untyped], T.proc.returns(T::Hash[T.untyped, T.untyped]))), + ).returns(T::Hash[T.untyped, T.untyped]) + end + def expand_props(props) + if props.nil? + {} + elsif props.is_a?(Hash) + props + else + props.call + end + end end - def expand_props(props) - if props.nil? - {} - elsif props.is_a?(Hash) - props - else - props.call - end - end - end end diff --git a/app/controllers/concerns/sway_routes.rb b/app/controllers/concerns/sway_routes.rb index fe8378d2..f81f7d8c 100644 --- a/app/controllers/concerns/sway_routes.rb +++ b/app/controllers/concerns/sway_routes.rb @@ -1,12 +1,12 @@ module SwayRoutes - HOME = "home" - LEGISLATORS = "legislators" - REGISTRATION = "sway_registration" - BILL_OF_THE_WEEK = "bill_of_the_week" - BILL = "bill" - BILLS = "bills" - BILL_CREATOR = "admin/bills/creator" - INFLUENCE = "influence" - INVITE = "invites/:user_id/:invite_uuid" - NOTIFICATIONS = "notifications" + HOME = "home".freeze + LEGISLATORS = "legislators".freeze + REGISTRATION = "sway_registration".freeze + BILL_OF_THE_WEEK = "bill_of_the_week".freeze + BILL = "bill".freeze + BILLS = "bills".freeze + BILL_CREATOR = "admin/bills/creator".freeze + INFLUENCE = "influence".freeze + INVITE = "invites/:user_id/:invite_uuid".freeze + NOTIFICATIONS = "notifications".freeze end diff --git a/app/controllers/districts_controller.rb b/app/controllers/districts_controller.rb index 63a7ff10..24882612 100644 --- a/app/controllers/districts_controller.rb +++ b/app/controllers/districts_controller.rb @@ -2,7 +2,7 @@ # typed: true class DistrictsController < ApplicationController - def index - render json: current_user&.districts(T.cast(current_sway_locale, SwayLocale)), status: :ok - end + def index + render json: current_user&.districts(T.cast(current_sway_locale, SwayLocale)), status: :ok + end end diff --git a/app/controllers/email_verification_controller.rb b/app/controllers/email_verification_controller.rb index 23d5f496..be46b544 100644 --- a/app/controllers/email_verification_controller.rb +++ b/app/controllers/email_verification_controller.rb @@ -1,87 +1,88 @@ # typed: true class EmailVerificationController < ApplicationController - include Authentication - extend T::Sig + include Authentication + extend T::Sig - before_action :set_twilio_client + before_action :set_twilio_client - def create - if ENV.fetch("SKIP_PHONE_VERIFICATION", nil).present? || send_email_verification(session, email_verification_params[:email]) - session[:email] = email_verification_params[:email] - end + def create + if ENV.fetch("SKIP_PHONE_VERIFICATION", nil).present? || + send_email_verification(session, email_verification_params[:email]) + session[:email] = email_verification_params[:email] + end - if session[:email].present? - current_user.update(email: session[:email]) - flash[:notice] = "Confirmation Email Sent!" - else - flash[:error] = "Failed to send verification email. Please try again." - end + if session[:email].present? + current_user.update(email: session[:email]) + flash[:notice] = "Confirmation Email Sent!" + else + flash[:error] = "Failed to send verification email. Please try again." + end - redirect_to(redirect_path) - end - - def update - approved = false - if ENV.fetch("SKIP_PHONE_VERIFICATION", nil).present? - approved = true - else - verification_check = @client.verify - .v2 - .services(service_sid) - .verification_checks - .create(to: session[:email], code: email_verification_params[:code]) - - approved = verification_check&.status == "approved" + redirect_to(redirect_path) end - current_user.update(email: session[:email], is_email_verified: approved) - if approved - flash[:notice] = "Email Verified!" - else - flash[:error] = "We could verify your email address. Please try again." + def update + approved = false + if ENV.fetch("SKIP_PHONE_VERIFICATION", nil).present? + approved = true + else + verification_check = + @client + .verify + .v2 + .services(service_sid) + .verification_checks + .create(to: session[:email], code: email_verification_params[:code]) + + approved = verification_check&.status == "approved" + end + current_user.update(email: session[:email], is_email_verified: approved) + + if approved + flash[:notice] = "Email Verified!" + else + flash[:error] = "We could verify your email address. Please try again." + end + + redirect_to(redirect_path) end - redirect_to(redirect_path) - end - - def destroy - current_user.update(email: nil, is_email_verified: false) - flash[:notice] = "Email Verification Reset" - render json: { - success: true - } - end + def destroy + current_user.update(email: nil, is_email_verified: false) + flash[:notice] = "Email Verification Reset" + render json: { success: true } + end - private + private - def redirect_path - bill_path(email_verification_params[:bill_id], {with: "legislator,address"}) - end + def redirect_path + bill_path(email_verification_params[:bill_id], { with: "legislator,address" }) + end - def set_twilio_client - @client ||= Twilio::REST::Client.new(account_sid, auth_token) - end + def set_twilio_client + @set_twilio_client ||= Twilio::REST::Client.new(account_sid, auth_token) + end - def account_sid - ENV["TWILIO_ACCOUNT_SID"] - end + def account_sid + ENV["TWILIO_ACCOUNT_SID"] + end - def auth_token - ENV["TWILIO_AUTH_TOKEN"] - end + def auth_token + ENV["TWILIO_AUTH_TOKEN"] + end - def service_sid - ENV["TWILIO_VERIFY_SERVICE_SID"] - end + def service_sid + ENV["TWILIO_VERIFY_SERVICE_SID"] + end - sig { returns(ActionController::Parameters) } - def email_verification_params - params.require(:email_verification).permit(:email, :code, :bill_id) - end + sig { returns(ActionController::Parameters) } + def email_verification_params + params.require(:email_verification).permit(:email, :code, :bill_id) + end - sig { returns(User) } - def current_user - T.cast(super, User) - end + sig { returns(User) } + def current_user + T.cast(super, User) + end end diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 9e54bac2..09e18c3a 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -2,21 +2,17 @@ # frozen_string_literal: true class HomeController < ApplicationController - skip_before_action :authenticate_user! + skip_before_action :authenticate_user! - def index - u = current_user - if u.nil? - render inertia: Pages::HOME, props: { - name: "Sway", - isBubbles: true, - params: params - } - # T.unsafe(self).render_home({name: "Sway", isBubbles: true}) - elsif u.is_registration_complete - redirect_to legislators_path - else - redirect_to sway_registration_index_path + def index + u = current_user + if u.nil? + render inertia: Pages::HOME, props: { name: "Sway", isBubbles: true, params: params } + # T.unsafe(self).render_home({name: "Sway", isBubbles: true}) + elsif u.is_registration_complete + redirect_to legislators_path + else + redirect_to sway_registration_index_path + end end - end end diff --git a/app/controllers/influence_controller.rb b/app/controllers/influence_controller.rb index ae327e1a..cb5b4b4a 100644 --- a/app/controllers/influence_controller.rb +++ b/app/controllers/influence_controller.rb @@ -2,20 +2,20 @@ # typed: true class InfluenceController < ApplicationController - extend T::Sig + extend T::Sig - def index - u = current_user - l = current_sway_locale - if u.nil? || l.nil? - redirect_to root_path - elsif u.is_registration_complete - render_component(Pages::INFLUENCE, {influence: InfluenceService.new( - user: u, - sway_locale: l - ).to_builder.attributes!.except("isA?")}) - else - redirect_to sway_registration_index_path + def index + u = current_user + l = current_sway_locale + if u.nil? || l.nil? + redirect_to root_path + elsif u.is_registration_complete + render_component( + Pages::INFLUENCE, + { influence: InfluenceService.new(user: u, sway_locale: l).to_builder.attributes!.except("isA?") }, + ) + else + redirect_to sway_registration_index_path + end end - end end diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb index 7f3ab2e8..1fac3581 100644 --- a/app/controllers/invites_controller.rb +++ b/app/controllers/invites_controller.rb @@ -2,21 +2,19 @@ # typed: true class InvitesController < ApplicationController - extend T::Sig + extend T::Sig - skip_before_action :authenticate_user! + skip_before_action :authenticate_user! - def show - UserInviter.find_by(invite_params).tap do |i| - cookies.permanent[UserInviter::INVITED_BY_SESSION_KEY] = i&.user_id - end + def show + UserInviter.find_by(invite_params).tap { |i| cookies.permanent[UserInviter::INVITED_BY_SESSION_KEY] = i&.user_id } - redirect_to root_path - end + redirect_to root_path + end - private + private - def invite_params - params.permit(:user_id, :invite_uuid) - end + def invite_params + params.permit(:user_id, :invite_uuid) + end end diff --git a/app/controllers/legislator_votes_controller.rb b/app/controllers/legislator_votes_controller.rb index 0c1f757f..c63b4c77 100644 --- a/app/controllers/legislator_votes_controller.rb +++ b/app/controllers/legislator_votes_controller.rb @@ -2,59 +2,64 @@ # typed: true class LegislatorVotesController < ApplicationController - before_action :verify_is_admin, only: %i[create] - before_action :set_bill, only: %i[show create] - - def index - render json: current_user&.legislators(T.cast(current_sway_locale, SwayLocale)), status: :ok - end - - def show - render json: LegislatorVote.where(bill: @bill).map(&:to_sway_json), status: :ok - end - - def create - legislator_votes_params[:legislator_votes].each do |param| - Rails.logger.info("LegislatorVotesController.create - creating new LegislatorVote for Bill: #{@bill.id}, Legislator: #{param[:legislator_id]}") - legislator = Legislator.find(param[:legislator_id].to_i) - - existing_legislator_vote = LegislatorVote.find_by(legislator:, bill: @bill.id) - existing_support = existing_legislator_vote&.support.freeze - - new_legislator_vote = LegislatorVote.new({ - bill_id: @bill.id, - legislator:, - support: param[:support] - }) - - if existing_legislator_vote.nil? - new_legislator_vote.save! - Rails.logger.info("LegislatorVotesController.create - NEW Vote for Legislator #{legislator.id} TO: #{new_legislator_vote.support}") - elsif existing_legislator_vote.support != new_legislator_vote.support - existing_legislator_vote.update!(support: new_legislator_vote.support) - Rails.logger.info("LegislatorVotesController.create - Vote: #{existing_legislator_vote.id} for Legislator #{legislator.id} CHANGED to: #{new_legislator_vote.support} from: #{existing_support}") - else - # Legislator Vote is unchanged, LegislatorDistrict score should remain unchanged - Rails.logger.info("LegislatorVotesController.create - Vote for Legislator #{legislator.id} is UNCHANGED") - next - end + before_action :verify_is_admin, only: %i[create] + before_action :set_bill, only: %i[show create] + + def index + render json: current_user&.legislators(T.cast(current_sway_locale, SwayLocale)), status: :ok + end + + def show + render json: LegislatorVote.where(bill: @bill).map(&:to_sway_json), status: :ok + end + + def create + legislator_votes_params[:legislator_votes].each do |param| + Rails.logger.info( + "LegislatorVotesController.create - creating new LegislatorVote for Bill: #{@bill.id}, Legislator: #{param[:legislator_id]}", + ) + legislator = Legislator.find(param[:legislator_id].to_i) + + existing_legislator_vote = LegislatorVote.find_by(legislator:, bill: @bill.id) + existing_support = existing_legislator_vote&.support.freeze + + new_legislator_vote = LegislatorVote.new({ bill_id: @bill.id, legislator:, support: param[:support] }) + + if existing_legislator_vote.nil? + new_legislator_vote.save! + Rails.logger.info( + "LegislatorVotesController.create - NEW Vote for Legislator #{legislator.id} TO: #{new_legislator_vote.support}", + ) + elsif existing_legislator_vote.support != new_legislator_vote.support + existing_legislator_vote.update!(support: new_legislator_vote.support) + Rails.logger.info( + "LegislatorVotesController.create - Vote: #{existing_legislator_vote.id} for Legislator #{legislator.id} CHANGED to: #{new_legislator_vote.support} from: #{existing_support}", + ) + else + # Legislator Vote is unchanged, LegislatorDistrict score should remain unchanged + Rails.logger.info("LegislatorVotesController.create - Vote for Legislator #{legislator.id} is UNCHANGED") + next + end + end + rescue Exception => e # rubocop:disable Lint/RescueException + Rails.logger.error(e) + redirect_to edit_bill_path(@bill.id, { event_key: "legislator_votes" }), + inertia: { + errors: { + legislator_votes: e, + }, + } + else + redirect_to(edit_bill_path(@bill.id), { saved: "Legislator Votes Saved", event_key: "organizations" }) + end + + private + + def set_bill + @bill = Bill.includes(:legislator_votes, :sway_locale).find_by(id: legislator_votes_params[:bill_id]) + end + + def legislator_votes_params + params.permit(:bill_id, legislator_votes: %i[legislator_id support]) end - rescue Exception => e # rubocop:disable Lint/RescueException - Rails.logger.error(e) - redirect_to edit_bill_path(@bill.id, {event_key: "legislator_votes"}), inertia: { - errors: {legislator_votes: e} - } - else - redirect_to(edit_bill_path(@bill.id), {saved: "Legislator Votes Saved", event_key: "organizations"}) - end - - private - - def set_bill - @bill = Bill.includes(:legislator_votes, :sway_locale).find_by(id: legislator_votes_params[:bill_id]) - end - - def legislator_votes_params - params.permit(:bill_id, legislator_votes: %i[legislator_id support]) - end end diff --git a/app/controllers/legislators_controller.rb b/app/controllers/legislators_controller.rb index 478f02ca..cf798f3d 100644 --- a/app/controllers/legislators_controller.rb +++ b/app/controllers/legislators_controller.rb @@ -2,42 +2,34 @@ # typed: true class LegislatorsController < ApplicationController - before_action :set_legislator, only: %i[show] - skip_before_action :authenticate_user!, only: %i[show] + before_action :set_legislator, only: %i[show] + skip_before_action :authenticate_user!, only: %i[show] - # GET /legislators or /legislators.json - def index - render_component(Pages::LEGISLATORS, - lambda do - { - legislators: json_legislators - } - end) - end + # GET /legislators or /legislators.json + def index + render_component(Pages::LEGISLATORS, lambda { { legislators: json_legislators } }) + end - def show - render_component(Pages::LEGISLATORS, - lambda do - { - legislators: [@legislator.to_sway_json] - } - end) - end + def show + render_component(Pages::LEGISLATORS, lambda { { legislators: [@legislator.to_sway_json] } }) + end - private + private - def set_legislator - @legislator = Legislator.find(params[:id]) - end + def set_legislator + @legislator = Legislator.find(params[:id]) + end - def json_legislators - current_user&.user_legislators&.joins(:legislator)&.where(active: true, legislators: {active: true})&.map do |ul| - ul.legislator.to_sway_json + def json_legislators + current_user + &.user_legislators + &.joins(:legislator) + &.where(active: true, legislators: { active: true }) + &.map { |ul| ul.legislator.to_sway_json } end - end - # Only allow a list of trusted parameters through. - def legislator_params - params.require(:legislator).permit(:id) - end + # Only allow a list of trusted parameters through. + def legislator_params + params.require(:legislator).permit(:id) + end end diff --git a/app/controllers/notifications/push_notification_subscriptions_controller.rb b/app/controllers/notifications/push_notification_subscriptions_controller.rb index 8b4ea847..7a8411ac 100644 --- a/app/controllers/notifications/push_notification_subscriptions_controller.rb +++ b/app/controllers/notifications/push_notification_subscriptions_controller.rb @@ -2,51 +2,50 @@ # typed: true module Notifications - class PushNotificationSubscriptionsController < ApplicationController - extend T::Sig - - before_action :set_subscription - - def create - if @subscription.present? - @subscription.update!(subscribed: true) unless @subscription.subscribed - - SwayPushNotificationService.new( - title: "Notifications Activated", - body: "We'll send you one of these when a new Bill of the Week is released." - ).send_push_notification - - render json: @subscription.attributes, status: :ok - else - render json: PushNotificationSubscription.create!( - **push_notification_subscription_params, - user: current_user, - subscribed: true - ).attributes, status: :ok - end + class PushNotificationSubscriptionsController < ApplicationController + extend T::Sig + + before_action :set_subscription + + def create + if @subscription.present? + @subscription.update!(subscribed: true) unless @subscription.subscribed + + SwayPushNotificationService.new( + title: "Notifications Activated", + body: "We'll send you one of these when a new Bill of the Week is released.", + ).send_push_notification + + render json: @subscription.attributes, status: :ok + else + render json: + PushNotificationSubscription.create!( + **push_notification_subscription_params, + user: current_user, + subscribed: true, + ).attributes, + status: :ok + end + end + + def destroy + return if @subscription.blank? + + @subscription.update!(subscribed: false) + render json: @subscription.attributes, status: :ok + end + + private + + def set_subscription + @subscription = + current_user&.push_notification_subscriptions&.find do |s| + s.endpoint == push_notification_subscription_params[:endpoint] + end + end + + def push_notification_subscription_params + params.require(:push_notification_subscription).permit(:endpoint, :p256dh, :auth) + end end - - def destroy - return if @subscription.blank? - - @subscription.update!(subscribed: false) - render json: @subscription.attributes, status: :ok - end - - private - - def set_subscription - @subscription = current_user&.push_notification_subscriptions&.find do |s| - s.endpoint == push_notification_subscription_params[:endpoint] - end - end - - def push_notification_subscription_params - params.require(:push_notification_subscription).permit( - :endpoint, - :p256dh, - :auth - ) - end - end end diff --git a/app/controllers/notifications/push_notifications_controller.rb b/app/controllers/notifications/push_notifications_controller.rb index f787e845..9a1a7a2a 100644 --- a/app/controllers/notifications/push_notifications_controller.rb +++ b/app/controllers/notifications/push_notifications_controller.rb @@ -2,38 +2,42 @@ # typed: true module Notifications - class PushNotificationsController < ApplicationController - extend T::Sig + class PushNotificationsController < ApplicationController + extend T::Sig - before_action :set_subscription + before_action :set_subscription - # Allow the user to test a push notification - def create - if @subscription.nil? - render json: {success: false, message: "Failed to send test notification. Try disabling and re-enabling notifications."}, status: :ok - else - SwayPushNotificationService.new( - @subscription, - title: "Notifications Test", - body: "Test Web Push Notification." - ).send_push_notification + # Allow the user to test a push notification + def create + if @subscription.nil? + render json: { + success: false, + message: "Failed to send test notification. Try disabling and re-enabling notifications.", + }, + status: :ok + else + SwayPushNotificationService.new( + @subscription, + title: "Notifications Test", + body: "Test Web Push Notification.", + ).send_push_notification - render json: {success: true, message: "Test notification sent. You should receive one soon..."}, status: :ok - end - end + render json: { success: true, message: "Test notification sent. You should receive one soon..." }, +status: :ok + end + end - private + private - def set_subscription - @subscription = current_user&.push_notification_subscriptions&.find do |s| - s.endpoint == push_notification_subscription_params[:endpoint] - end - end + def set_subscription + @subscription = + current_user&.push_notification_subscriptions&.find do |s| + s.endpoint == push_notification_subscription_params[:endpoint] + end + end - def push_notification_subscription_params - params.require(:push_notification).permit( - :endpoint - ) + def push_notification_subscription_params + params.require(:push_notification).permit(:endpoint) + end end - end end diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index 0ac4470f..edeec7a3 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -1,11 +1,10 @@ # frozen_string_literal: true class NotificationsController < ApplicationController - def index - render_component(Pages::NOTIFICATIONS, lambda do - { - subscriptions: current_user&.push_notification_subscriptions&.map(&:attributes) || [] - } - end) - end + def index + render_component( + Pages::NOTIFICATIONS, + lambda { { subscriptions: current_user&.push_notification_subscriptions&.map(&:attributes) || [] } }, + ) + end end diff --git a/app/controllers/organization_bill_position_changes_controller.rb b/app/controllers/organization_bill_position_changes_controller.rb new file mode 100644 index 00000000..b3e0d496 --- /dev/null +++ b/app/controllers/organization_bill_position_changes_controller.rb @@ -0,0 +1,50 @@ +class OrganizationBillPositionChangesController < ApplicationController + before_action :set_change, only: %i[update] + before_action :set_membership, only: %i[update] + before_action :current_user_must_be_member! + + def update + unless @membership.admin? + flash[:alert] = "Forbidden" + redirect_to user_organization_membership_path(@membership) and return + end + + if @change.update(approved_by: current_user) + position.support = @change.new_support + position.summary = @change.new_summary + position.save! + + flash[:notice] = "Change approved and position updated." + else + Rails.logger.error(change.errors.full_messages) + flash[:alert] = "Could not approve change." + end + redirect_to user_organization_membership_path(@membership) + end + + private + + def organization + @organization ||= position.organization + end + + def position + @position ||= @change.organization_bill_position + end + + def set_change + @change = OrganizationBillPositionChange.find(params[:id]) + end + + def set_membership + @membership = UserOrganizationMembership.find_by(organization: organization, user: current_user) + end + + def current_user_must_be_member! + return if @membership.user_id == current_user.id + + Rails.logger.info("Membership user_id #{@membership.user_id} does not match current_user.id #{current_user.id}") + flash[:alert] = "Forbidden" + redirect_to root_path and return + end +end diff --git a/app/controllers/organization_bill_positions_controller.rb b/app/controllers/organization_bill_positions_controller.rb index 1f5e0865..4f96df7f 100644 --- a/app/controllers/organization_bill_positions_controller.rb +++ b/app/controllers/organization_bill_positions_controller.rb @@ -1,43 +1,47 @@ # frozen_string_literal: true class OrganizationBillPositionsController < ApplicationController - before_action :verify_is_admin, only: %i[create] - - def index - if params[:bill_id] - render json: OrganizationBillPosition.where(bill_id: params[:bill_id]), status: :ok - elsif params[:organization_id] - render json: OrganizationBillPosition.where(organization: Organization.find_by(id: params[:organization_id])), - status: :ok - else - render json: [], status: :ok + before_action :verify_is_admin, only: %i[create] + + def index + if params[:bill_id] + render json: OrganizationBillPosition.where(bill_id: params[:bill_id]), status: :ok + elsif params[:organization_id] + render json: OrganizationBillPosition.where(organization: Organization.find_by(id: params[:organization_id])), + status: :ok + else + render json: [], status: :ok + end end - end - - def show - render json: OrganizationBillPosition.find_by( - bill_id: params[:bill_id], - organization: Organization.find_by(id: params[:organization_id]) - ), status: :ok - end - - def create - if organization_bill_positions_params[:positions].present? - OrganizationBillPosition.where(bill_id: organization_bill_positions_params[:positions].first[:bill_id]).destroy_all - - render json: OrganizationBillPosition.insert_all!(organization_bill_positions_params[:positions]), status: :ok # rubocop:disable Rails/SkipsModelValidations - else - render json: [], status: :no_content + + def show + render json: + OrganizationBillPosition.find_by( + bill_id: params[:bill_id], + organization: Organization.find_by(id: params[:organization_id]), + ), + status: :ok + end + + def create + if organization_bill_positions_params[:positions].present? + OrganizationBillPosition.where( + bill_id: organization_bill_positions_params[:positions].first[:bill_id], + ).destroy_all + + render json: OrganizationBillPosition.insert_all!(organization_bill_positions_params[:positions]), status: :ok # rubocop:disable Rails/SkipsModelValidations + else + render json: [], status: :no_content + end end - end - private + private - def organization_bill_positions_params - params.require(:organization_bill_position).permit(positions: %i[bill_id organization_id support summary]) - end + def organization_bill_positions_params + params.require(:organization_bill_position).permit(positions: %i[bill_id organization_id support summary]) + end - def organization_bill_position_params - params.require(:organization_bill_position).permit(:bill_id, :organization_id, :support, :summary) - end + def organization_bill_position_params + params.require(:organization_bill_position).permit(:bill_id, :organization_id, :support, :summary) + end end diff --git a/app/controllers/organizations_controller.rb b/app/controllers/organizations_controller.rb index 6b622b8c..36d4a6f5 100644 --- a/app/controllers/organizations_controller.rb +++ b/app/controllers/organizations_controller.rb @@ -2,96 +2,88 @@ # typed: true class OrganizationsController < ApplicationController - include SwayGoogleCloudStorage + include SwayGoogleCloudStorage - before_action :verify_is_admin, only: %i[create] - before_action :set_organization, only: %i[show] - before_action :set_bill, only: %i[create] + before_action :verify_is_admin, only: %i[create] + before_action :set_organization, only: %i[show] + before_action :set_bill, only: %i[create] - def index - render json: Organization.where(sway_locale_id: current_sway_locale&.id).map(&:to_sway_json), status: :ok - end + def index + render json: Organization.where(sway_locale_id: current_sway_locale&.id).map(&:to_sway_json), status: :ok + end - def show - if @organization.present? - render json: @organization.to_sway_json, status: :ok - else - render json: {success: false, message: "Organization not found."}, status: :ok + def show + if @organization.present? + render json: @organization.to_sway_json, status: :ok + else + render json: { success: false, message: "Organization not found." }, status: :ok + end end - end - def create - errored = T.let(false, T::Boolean) - errors = { - organization: organizations_params[:organizations].map do |_| - { - label: nil, - value: nil, - summary: nil, - support: nil, - icon_path: nil + def create + errored = T.let(false, T::Boolean) + errors = { + organization: + organizations_params[:organizations].map do |_| + { label: nil, value: nil, summary: nil, support: nil, icon_path: nil } + end, } - end - } - organizations_params[:organizations].each_with_index do |param, index| - organization = find_or_initialize_organization_from_param(param) - current_icon_path = organization.icon_path.freeze - organization.icon_path = param[:icon_path] + organizations_params[:organizations].each_with_index do |param, index| + organization = find_or_initialize_organization_from_param(param) + current_icon_path = organization.icon_path.freeze + organization.icon_path = param[:icon_path] - if organization.save - organization.remove_icon(current_icon_path) + if organization.save + organization.remove_icon(current_icon_path) - position = OrganizationBillPosition.find_or_initialize_by(organization:, bill: @bill) - position.support = param[:support] - position.summary = param[:summary] + position = OrganizationBillPosition.find_or_initialize_by(organization:, bill: @bill) + position.support = param[:support] + position.summary = param[:summary] - unless position.save - errored = true - position.errors.each do |e| - if errors[:organizations][index].key?(e.attribute) - errors[:organizations][index][e.attribute] = "#{e.attribute.capitalize} #{e.message}" + unless position.save + errored = true + position.errors.each do |e| + if errors[:organizations][index].key?(e.attribute) + errors[:organizations][index][e.attribute] = "#{e.attribute.capitalize} #{e.message}" + end + end + end + else + errored = true + organization.errors.each do |e| + attribute_by_key = { name: :label, id: :value, icon_path: :icon_path } + + attr = attribute_by_key[e.attribute] + if attr.present? && errors[:organizations][index].key?(attr) + errors[:organizations][index][attr] = "#{attr} #{e.message.capitalize}" + end + end end - end end - else - errored = true - organization.errors.each do |e| - attribute_by_key = { - name: :label, - id: :value, - icon_path: :icon_path - } - attr = attribute_by_key[e.attribute] - if attr.present? && errors[:organizations][index].key?(attr) - errors[:organizations][index][attr] = "#{attr} #{e.message.capitalize}" - end + if errored + flash[:alert] = "Error Saving Supporting/Opposing Arguments" + redirect_to edit_bill_path(@bill.id, { event_key: "organizations" }), inertia: { errors: errors } + else + flash[:notice] = "Supporting/Opposing Arguments Saved" + redirect_to edit_bill_path(@bill.id, saved: "Supporting/Opposing Arguments Saved", +event_key: "organizations") end - end - end - - if errored - flash[:alert] = "Error Saving Supporting/Opposing Arguments" - redirect_to edit_bill_path(@bill.id, {event_key: "organizations"}), inertia: {errors: errors} - else - flash[:notice] = "Supporting/Opposing Arguments Saved" - redirect_to edit_bill_path(@bill.id, saved: "Supporting/Opposing Arguments Saved", event_key: "organizations") end - end - private + private - def set_bill - @bill = Bill.includes(:organization_bill_positions, :sway_locale).find(organizations_params[:bill_id]) - end + def set_bill + @bill = Bill.includes(:organization_bill_positions, :sway_locale).find(organizations_params[:bill_id]) + end - def organizations_params - params.permit(:bill_id, organizations: %i[label value summary support icon_path]) - end + def organizations_params + params.permit(:bill_id, organizations: %i[label value summary support icon_path]) + end - def find_or_initialize_organization_from_param(param) - o = param[:value].blank? ? nil : Organization.find_by(id: param[:value]).presence - o || Organization.find_or_initialize_by(name: param[:label], sway_locale: @bill.sway_locale) - end + def find_or_initialize_organization_from_param(param) + o = param[:value].blank? ? nil : Organization.find_by(id: param[:value]).presence + o || Organization.find_or_initialize_by(name: param[:label], sway_locale: @bill.sway_locale) + end end diff --git a/app/controllers/phone_verification_controller.rb b/app/controllers/phone_verification_controller.rb index badc24d8..0adad0a2 100644 --- a/app/controllers/phone_verification_controller.rb +++ b/app/controllers/phone_verification_controller.rb @@ -4,91 +4,92 @@ # https://www.twilio.com/docs/verify/sms # https://www.twilio.com/docs/verify/quickstarts/python-flask class PhoneVerificationController < ApplicationController - include Authentication - extend T::Sig + include Authentication + extend T::Sig - before_action :set_twilio_client - skip_before_action :authenticate_user! + before_action :set_twilio_client + skip_before_action :authenticate_user! - def create - if ENV.fetch("SKIP_PHONE_VERIFICATION", nil).present? - session[:phone] = phone_verification_params[:phone] - render json: {success: true}, status: :ok - else - render json: {success: send_phone_verification(session, phone_verification_params[:phone])}, status: :ok + def create + if ENV.fetch("SKIP_PHONE_VERIFICATION", nil).present? + session[:phone] = phone_verification_params[:phone] + render json: { success: true }, status: :ok + else + render json: { success: send_phone_verification(session, phone_verification_params[:phone]) }, status: :ok + end end - end - def update - if ENV.fetch("SKIP_PHONE_VERIFICATION", nil).present? - session[:verified_phone] = session[:phone] - approved = true - u = User.find_or_create_by( - phone: session[:phone], - email: "#{session[:phone]}@sway.vote", - full_name: ENV.fetch("DEFAULT_USER_FULL_NAME").split("+").join(" ") - ) - u.update( - phone: session[:phone], - is_admin: true, - is_email_verified: true, - is_phone_verified: true, - is_registered_to_vote: true, - is_registration_complete: true - ) - a = Address.find_or_create_by( - city: ENV.fetch("DEFAULT_CITY"), - postal_code: ENV.fetch("DEFAULT_REGION_CODE"), - region_code: ENV.fetch("DEFAULT_POSTAL_CODE"), - street: ENV.fetch("DEFAULT_STREET").split("+").join(" "), - latitude: ENV.fetch("DEFAULT_LATITUDE").to_f, - longitude: ENV.fetch("DEFAULT_LONGITUDE").to_f - ) - UserAddress.find_or_create_by( - user: u, - address: a - ) - else - verification_check = @client.verify - .v2 - .services(service_sid) - .verification_checks - .create(to: "+1#{session[:phone]}", code: phone_verification_params[:code]) + def update + if ENV.fetch("SKIP_PHONE_VERIFICATION", nil).present? + session[:verified_phone] = session[:phone] + approved = true + u = + User.find_or_create_by( + phone: session[:phone], + email: "#{session[:phone]}@sway.vote", + full_name: ENV.fetch("DEFAULT_USER_FULL_NAME").split("+").join(" "), + ) + u.update( + phone: session[:phone], + is_admin: true, + is_email_verified: true, + is_phone_verified: true, + is_registered_to_vote: true, + is_registration_complete: true, + ) + a = + Address.find_or_create_by( + city: ENV.fetch("DEFAULT_CITY"), + postal_code: ENV.fetch("DEFAULT_REGION_CODE"), + region_code: ENV.fetch("DEFAULT_POSTAL_CODE"), + street: ENV.fetch("DEFAULT_STREET").split("+").join(" "), + latitude: ENV.fetch("DEFAULT_LATITUDE").to_f, + longitude: ENV.fetch("DEFAULT_LONGITUDE").to_f, + ) + UserAddress.find_or_create_by(user: u, address: a) + else + verification_check = + @client + .verify + .v2 + .services(service_sid) + .verification_checks + .create(to: "+1#{session[:phone]}", code: phone_verification_params[:code]) - approved = verification_check&.status == "approved" + approved = verification_check&.status == "approved" - if approved - # Do NOT create a user here - # there exists a race condition where a phone is verified - # and an attacker creates a passkey on another device using the verified phone - # if we create a user with a verified phone here - session[:verified_phone] = session[:phone] - end - end + if approved + # Do NOT create a user here + # there exists a race condition where a phone is verified + # and an attacker creates a passkey on another device using the verified phone + # if we create a user with a verified phone here + session[:verified_phone] = session[:phone] + end + end - render json: {success: approved}, status: :ok - end + render json: { success: approved }, status: :ok + end - private + private - def set_twilio_client - @client ||= Twilio::REST::Client.new(account_sid, auth_token) - end + def set_twilio_client + @set_twilio_client ||= Twilio::REST::Client.new(account_sid, auth_token) + end - def account_sid - ENV["TWILIO_ACCOUNT_SID"] - end + def account_sid + ENV["TWILIO_ACCOUNT_SID"] + end - def auth_token - ENV["TWILIO_AUTH_TOKEN"] - end + def auth_token + ENV["TWILIO_AUTH_TOKEN"] + end - def service_sid - ENV["TWILIO_VERIFY_SERVICE_SID"] - end + def service_sid + ENV["TWILIO_VERIFY_SERVICE_SID"] + end - sig { returns(ActionController::Parameters) } - def phone_verification_params - params.require(:phone_verification).permit(:phone, :code) - end + sig { returns(ActionController::Parameters) } + def phone_verification_params + params.require(:phone_verification).permit(:phone, :code) + end end diff --git a/app/controllers/sitemap_controller.rb b/app/controllers/sitemap_controller.rb index 40ddc855..ab077be8 100644 --- a/app/controllers/sitemap_controller.rb +++ b/app/controllers/sitemap_controller.rb @@ -1,12 +1,12 @@ class SitemapController < ApplicationController - skip_before_action :authenticate_user! + skip_before_action :authenticate_user! - def index - @bills = Bill.all.includes(:sway_locale) # Replace YourModel with your actual model - @legislators = Legislator.all.includes(district: :sway_locale) # Replace YourModel with your actual model - @sway_locales = SwayLocale.all - respond_to do |format| - format.xml { render layout: false } # Render without layout + def index + @bills = Bill.all.includes(:sway_locale) # Replace YourModel with your actual model + @legislators = Legislator.all.includes(district: :sway_locale) # Replace YourModel with your actual model + @sway_locales = SwayLocale.all + respond_to do |format| + format.xml { render layout: false } # Render without layout + end end - end end diff --git a/app/controllers/sway_locales_controller.rb b/app/controllers/sway_locales_controller.rb index ae6ab358..37cdb039 100644 --- a/app/controllers/sway_locales_controller.rb +++ b/app/controllers/sway_locales_controller.rb @@ -2,28 +2,29 @@ # typed: true class SwayLocalesController < ApplicationController - skip_before_action :authenticate_user! + skip_before_action :authenticate_user! - # GET /sway_locales or /sway_locales.json - def index - render json: (current_user&.sway_locales || SwayLocale.all).map(&:to_sway_json), status: :ok - end + # GET /sway_locales or /sway_locales.json + def index + render json: (current_user&.sway_locales || SwayLocale.all).map(&:to_sway_json), status: :ok + end - # GET /sway_locales/1 or /sway_locales/1.json - def show - locale = T.let(SwayLocale.find(params[:id]), T.nilable(SwayLocale)) || T.cast(SwayLocale.default_locale, SwayLocale) - if locale.nil? - nil - else - cookies.permanent[:sway_locale_id] = locale.id - render json: locale.to_sway_json, status: :ok + # GET /sway_locales/1 or /sway_locales/1.json + def show + locale = T.let(SwayLocale.find(params[:id]), +T.nilable(SwayLocale)) || T.cast(SwayLocale.default_locale, SwayLocale) + if locale.nil? + nil + else + cookies.permanent[:sway_locale_id] = locale.id + render json: locale.to_sway_json, status: :ok + end end - end - private + private - # Only allow a list of trusted parameters through. - def sway_locale_params - params.require(:sway_locale).permit(:id) - end + # Only allow a list of trusted parameters through. + def sway_locale_params + params.require(:sway_locale).permit(:id) + end end diff --git a/app/controllers/sway_registration_controller.rb b/app/controllers/sway_registration_controller.rb index 3e8da429..1d6db9dc 100644 --- a/app/controllers/sway_registration_controller.rb +++ b/app/controllers/sway_registration_controller.rb @@ -2,80 +2,85 @@ # frozen_string_literal: true class SwayRegistrationController < ApplicationController - extend T::Sig + extend T::Sig - skip_before_action :authenticate_user! + skip_before_action :authenticate_user! - T::Configuration.inline_type_error_handler = lambda do |error, _opts| - Rails.logger.error error - end + T::Configuration.inline_type_error_handler = lambda { |error, _opts| Rails.logger.error error } - def index - u = current_user - if u.nil? - redirect_to root_path - elsif u.is_registration_complete - redirect_to legislators_path - else - render_component(Pages::REGISTRATION) + def index + u = current_user + if u.nil? + redirect_to root_path + elsif u.is_registration_complete + redirect_to legislators_path + else + render_component(Pages::REGISTRATION) + end end - end - # Update user's sway registration status - # Finds representatives based on a user's address - # creates UserLegislators and initial UserLegislatorScores - # and sets user.is_registered to true - def create - u = current_user - if u.nil? - redirect_to root_path - elsif u.has_user_legislators? - redirect_to legislators_path - else - T.cast(user_address(u).address, Address).sway_locales.each do |sway_locale| - SwayRegistrationService.new( - u, - T.cast(user_address(u).address, Address), - sway_locale, - invited_by_id: invited_by_id - ).run - end + # Update user's sway registration status + # Finds representatives based on a user's address + # creates UserLegislators and initial UserLegislatorScores + # and sets user.is_registered to true + def create + u = current_user + if u.nil? + redirect_to root_path + elsif u.has_user_legislators? + redirect_to legislators_path + else + T + .cast(user_address(u).address, Address) + .sway_locales + .each do |sway_locale| + SwayRegistrationService.new( + u, + T.cast(user_address(u).address, Address), + sway_locale, + invited_by_id: invited_by_id, + ).run + end - if u.is_registration_complete - redirect_to legislators_path - else - redirect_to sway_registration_index_path, inertia: { - errros: { - address: "Registration not complete." - } - } - end + if u.is_registration_complete + redirect_to legislators_path + else + redirect_to sway_registration_index_path, inertia: { errros: { address: "Registration not complete." } } + end + end end - end - private + private - sig { params(u: User).returns(UserAddress) } - def user_address(u) - u.user_address || UserAddress.find_or_create_by(user: u, address:) - end + sig { params(u: User).returns(UserAddress) } + def user_address(u) + u.user_address || UserAddress.find_or_create_by(user: u, address:) + end - sig { returns(Address) } - def address - Address.find_or_create_by!( - street: sway_registration_params.fetch(:street), - city: sway_registration_params.fetch(:city), - region_code: sway_registration_params.fetch(:region_code), - postal_code: sway_registration_params.fetch(:postal_code), - country: sway_registration_params.fetch(:country), - latitude: sway_registration_params.fetch(:latitude), - longitude: sway_registration_params.fetch(:longitude) - ) - end + sig { returns(Address) } + def address + Address.find_or_create_by!( + street: sway_registration_params.fetch(:street), + city: sway_registration_params.fetch(:city), + region_code: sway_registration_params.fetch(:region_code), + postal_code: sway_registration_params.fetch(:postal_code), + country: sway_registration_params.fetch(:country), + latitude: sway_registration_params.fetch(:latitude), + longitude: sway_registration_params.fetch(:longitude), + ) + end - sig { returns(ActionController::Parameters) } - def sway_registration_params - params.require(:sway_registration).permit(:latitude, :longitude, :street, :city, :region, :region_code, - :postal_code, :country) - end + sig { returns(ActionController::Parameters) } + def sway_registration_params + params.require(:sway_registration).permit( + :latitude, + :longitude, + :street, + :city, + :region, + :region_code, + :postal_code, + :country, + ) + end end diff --git a/app/controllers/user_districts_controller.rb b/app/controllers/user_districts_controller.rb index 42d16a8e..a45c3bd0 100644 --- a/app/controllers/user_districts_controller.rb +++ b/app/controllers/user_districts_controller.rb @@ -2,7 +2,7 @@ # typed: true class UserDistrictsController < ApplicationController - def index - render json: current_user&.districts(T.cast(current_sway_locale, SwayLocale)), status: :ok - end + def index + render json: current_user&.districts(T.cast(current_sway_locale, SwayLocale)), status: :ok + end end diff --git a/app/controllers/user_legislator_email_controller.rb b/app/controllers/user_legislator_email_controller.rb index 1b9dd6c7..3a8e6ec3 100644 --- a/app/controllers/user_legislator_email_controller.rb +++ b/app/controllers/user_legislator_email_controller.rb @@ -1,26 +1,22 @@ class UserLegislatorEmailController < ApplicationController - before_action :set_bill + before_action :set_bill - def create - if @bill.present? - current_user.user_legislators_by_locale(@bill.sway_locale).each do |user_legislator| - UserLegislatorEmail.find_or_create_by({ - user_legislator:, - bill: @bill - }) - end + def create + return if @bill.blank? + current_user + .user_legislators_by_locale(@bill.sway_locale) + .each { |user_legislator| UserLegislatorEmail.find_or_create_by({ user_legislator:, bill: @bill }) } - redirect_to(bill_path(@bill.id)) + redirect_to(bill_path(@bill.id)) end - end - private + private - def set_bill - @bill = Bill.find_by(id: user_legislator_email_params[:bill_id]) - end + def set_bill + @bill = Bill.find_by(id: user_legislator_email_params[:bill_id]) + end - def user_legislator_email_params - params.require(:user_legislator_email).permit(:bill_id) - end + def user_legislator_email_params + params.require(:user_legislator_email).permit(:bill_id) + end end diff --git a/app/controllers/user_legislator_scores_controller.rb b/app/controllers/user_legislator_scores_controller.rb index 3eb34288..8a751e62 100644 --- a/app/controllers/user_legislator_scores_controller.rb +++ b/app/controllers/user_legislator_scores_controller.rb @@ -2,29 +2,26 @@ # typed: true class UserLegislatorScoresController < ApplicationController - # GET /user_legislator_scores or /user_legislator_scores.json - def index - render json: UserLegislatorScore.where(user: current_user).map(&:to_sway_json), status: :ok - end + # GET /user_legislator_scores or /user_legislator_scores.json + def index + render json: UserLegislatorScore.where(user: current_user).map(&:to_sway_json), status: :ok + end - # GET /user_legislator_scores/1 or /user_legislator_scores/1.json - def show - uls = UserLegislator.find_by( - user: current_user, - legislator_id: params[:id] - )&.user_legislator_score + # GET /user_legislator_scores/1 or /user_legislator_scores/1.json + def show + uls = UserLegislator.find_by(user: current_user, legislator_id: params[:id])&.user_legislator_score - if uls.present? && !uls.empty? - render json: uls.to_sway_json, status: :ok - else - render json: nil, status: :ok + if uls.present? && !uls.empty? + render json: uls.to_sway_json, status: :ok + else + render json: nil, status: :ok + end end - end - private + private - # Only allow a list of trusted parameters through. - def user_legislator_score_params - params.require(:user_legislator_score).permit(:legislator_id) - end + # Only allow a list of trusted parameters through. + def user_legislator_score_params + params.require(:user_legislator_score).permit(:legislator_id) + end end diff --git a/app/controllers/user_legislators_controller.rb b/app/controllers/user_legislators_controller.rb index 0dfc2abb..b28a1840 100644 --- a/app/controllers/user_legislators_controller.rb +++ b/app/controllers/user_legislators_controller.rb @@ -2,21 +2,21 @@ # typed: true class UserLegislatorsController < ApplicationController - def index - render json: current_user&.user_legislators_by_locale(T.cast(current_sway_locale, SwayLocale)), status: :ok - end + def index + render json: current_user&.user_legislators_by_locale(T.cast(current_sway_locale, SwayLocale)), status: :ok + end - def create - u = T.cast(current_user, User) + def create + u = T.cast(current_user, User) - SwayRegistrationService.new( - u, - T.cast(u.address, Address), - T.cast(current_sway_locale, SwayLocale), - invited_by_id: invited_by_id - ).run + SwayRegistrationService.new( + u, + T.cast(u.address, Address), + T.cast(current_sway_locale, SwayLocale), + invited_by_id: invited_by_id, + ).run - # route_component(legislators_path) - render json: {success: true}, status: :ok - end + # route_component(legislators_path) + render json: { success: true }, status: :ok + end end diff --git a/app/controllers/user_organization_membership_invites_controller.rb b/app/controllers/user_organization_membership_invites_controller.rb new file mode 100644 index 00000000..d1b4f57f --- /dev/null +++ b/app/controllers/user_organization_membership_invites_controller.rb @@ -0,0 +1,31 @@ +class UserOrganizationMembershipInvitesController < ApplicationController + before_action :require_admin! + + def create + @invite = + UserOrganizationMembershipInvite.new( + invite_params.merge(inviter: current_user, organization_id: params[:organization_id]), + ) + if @invite.save + if Rails.env.test? + UserOrganizationMembershipInviteMailer.invite(@invite).deliver_now + else + UserOrganizationMembershipInviteMailer.invite(@invite).deliver_later + end + render json: { success: true } + else + render json: { errors: @invite.errors.full_messages }, status: :unprocessable_entity + end + end + + private + + def invite_params + params.require(:invite).permit(:invitee_email, :role) + end + + def require_admin! + membership = UserOrganizationMembership.find_by(user: current_user, organization_id: params[:organization_id]) + render json: { error: "Forbidden" }, status: :forbidden unless membership&.admin? + end +end diff --git a/app/controllers/user_organization_memberships_controller.rb b/app/controllers/user_organization_memberships_controller.rb new file mode 100644 index 00000000..393889fa --- /dev/null +++ b/app/controllers/user_organization_memberships_controller.rb @@ -0,0 +1,104 @@ +class UserOrganizationMembershipsController < ApplicationController + before_action :set_current_user_membership, except: %i[index] + + inertia_share do + u = current_user.to_sway_json + + { + tab: params[:tab] || "positions", + user: { + **u, + memberships: current_user.user_organization_memberships&.map(&:to_sway_json), + }, + } + end + + def index + render_component(Pages::USER_ORGANIZATION_MEMBERSHIPS) + end + + def show + props = { + **@current_user_membership.to_sway_json, + organization: organization.to_simple_builder.attributes!, + role: @current_user_membership.role, + positions: positions.map do |p| + { id: p.id, support: p.support, summary: p.summary, bill: p.bill.to_sway_json } end, + } + + if @current_user_membership.admin? + props[:members] = members.map do |m| + { id: m.id, user_id: m.user.id, full_name: m.user.full_name, email: m.user.email, role: m.role } + end + props[:pending_changes] = pending_changes.map(&:to_sway_json) + else + props[:pending_changes] = pending_changes.where(updated_by: current_user).map(&:to_sway_json) + end + + render_component(Pages::USER_ORGANIZATION_MEMBERSHIP, membership: props) + end + + def update + # Only allow admins of the organization to change roles + unless @current_user_membership&.admin? + flash[:alert] = "Forbidden" + redirect_to user_organization_membership_path(@current_user_membership) and return + end + + if working_membership.update(role: UserOrganizationMembership.roles.fetch(params[:role])) + flash[:notice] = "Member updated" + else + Rails.logger.error(working_membership.errors.full_messages) + flash[:alert] = "Could not update member" + end + + redirect_to user_organization_membership_path(@current_user_membership) + end + + def destroy + # Only allow admins of the organization to remove members + if @current_user_membership&.admin? + working_membership.destroy + flash[:notice] = "Member removed" + else + flash[:alert] = "Forbidden" + end + + if working_membership.id == @current_user_membership.id + redirect_to user_organization_memberships_path + else + redirect_to user_organization_membership_path(@current_user_membership) + end + end + + private + + def pending_changes + OrganizationBillPositionChange.includes(organization_bill_position: :organization).where( + approved_by_id: nil, # NOTE: Commnet-out to show all changes, not just pending + organization_bill_position: { + organization: organization, + }, + ) + end + + def organization + @organization ||= @current_user_membership.organization + end + + def members + organization.user_organization_memberships.includes(:user) + end + + def positions + organization.positions.eager_load(:bill) + end + + def working_membership + @working_membership ||= UserOrganizationMembership.find(params[:working_membership_id]) + end + + def set_current_user_membership + @current_user_membership = UserOrganizationMembership.includes(:organization).find(params[:id]) + end +end diff --git a/app/controllers/user_organization_positions_controller.rb b/app/controllers/user_organization_positions_controller.rb new file mode 100644 index 00000000..c9f6636a --- /dev/null +++ b/app/controllers/user_organization_positions_controller.rb @@ -0,0 +1,92 @@ +# frozen_string_literal: true +# typed: true + +class UserOrganizationPositionsController < ApplicationController + before_action :set_position, only: %i[update destroy] + before_action :set_membership, only: %i[update destroy] + before_action :current_user_must_be_member! + + # TODO: Create a position on a bill + def create + flash[:alert] = "Not implemented" + redirect_to user_organization_membership_path(@membership) + end + + def update + change = find_unapproved_existing_or_new_change + if change.approved? + flash[:notice] = "Change to position has already been approved." + redirect_to user_organization_membership_path(@membership) and return + end + + if change.new_support == @position.support && change.new_summary == @position.summary + flash[:notice] = "No changes to position detected." + redirect_to user_organization_membership_path(@membership) and return + end + + change.approved_by = nil + + if change.save + flash[:notice] = "Created change to position subject to approval." + else + Rails.logger.error(@position.errors.full_messages) + flash[:alert] = "Failed to save change to position." + end + redirect_to user_organization_membership_path(@membership) + end + + def destroy + if @membership.admin? + @position.destroy! + flash[:notice] = "Position for bill #{@position.bill.title} destroyed." + else + flash[:alert] = "Forbidden" + end + redirect_to user_organization_membership_path(@membership) + end + + private + + def organization + @organization ||= @position.organization + end + + def set_position + @position = OrganizationBillPosition.find(params[:id]) + end + + def set_membership + @membership = UserOrganizationMembership.find_by(organization: organization, user: current_user) + end + + def current_user_must_be_member! + return if @membership.user_id == current_user&.id + + Rails.logger.info("Membership user_id #{@membership.user_id} does not match current_user.id #{current_user&.id}") + flash[:alert] = "Forbidden" + redirect_to root_path and return + end + + def find_unapproved_existing_or_new_change + existing_unapproved_change = + OrganizationBillPositionChange.find_by( + organization_bill_position: @position, + updated_by: current_user, + approved_by_id: nil, + ) + if existing_unapproved_change + existing_unapproved_change.new_support = params[:support] + existing_unapproved_change.new_summary = params[:summary] + return existing_unapproved_change + end + + OrganizationBillPositionChange.new( + organization_bill_position: @position, + updated_by: current_user, + previous_support: @position.support, + previous_summary: @position.summary, + new_support: params[:support], + new_summary: params[:summary], + ) + end +end diff --git a/app/controllers/user_votes_controller.rb b/app/controllers/user_votes_controller.rb index addf090f..71714d67 100644 --- a/app/controllers/user_votes_controller.rb +++ b/app/controllers/user_votes_controller.rb @@ -3,43 +3,32 @@ # typed: true class UserVotesController < ApplicationController - def index - render json: UserVote.where(user: current_user), status: :ok - end + def index + render json: UserVote.where(user: current_user), status: :ok + end - def show - uv = UserVote.find_by( - user: current_user, - bill_id: params[:id] - ) - if uv.present? - render json: uv.to_json, status: :ok - else - render json: {}, status: :no_content + def show + uv = UserVote.find_by(user: current_user, bill_id: params[:id]) + if uv.present? + render json: uv.to_json, status: :ok + else + render json: {}, status: :no_content + end end - end - # POST /user_votes or /user_votes.json - def create - uv = UserVote.find_or_initialize_by( - user: current_user, - bill_id: user_vote_params[:bill_id] - ) - uv.support = user_vote_params[:support] - uv.save + # POST /user_votes or /user_votes.json + def create + uv = UserVote.find_or_initialize_by(user: current_user, bill_id: user_vote_params[:bill_id]) + uv.support = user_vote_params[:support] + uv.save - redirect_to( - bill_path(user_vote_params[:bill_id]), - inertia: { - errors: uv.errors - } - ) - end + redirect_to(bill_path(user_vote_params[:bill_id]), inertia: { errors: uv.errors }) + end - private + private - # Only allow a list of trusted parameters through. - def user_vote_params - params.permit(:bill_id, :support) - end + # Only allow a list of trusted parameters through. + def user_vote_params + params.permit(:bill_id, :support) + end end diff --git a/app/controllers/users/user_details_controller.rb b/app/controllers/users/user_details_controller.rb index c8217917..39287ea2 100644 --- a/app/controllers/users/user_details_controller.rb +++ b/app/controllers/users/user_details_controller.rb @@ -1,30 +1,30 @@ # typed: true -class Users::UserDetailsController < ApplicationController - extend T::Sig +module Users + class UserDetailsController < ApplicationController + extend T::Sig - def create - unless current_user.update(full_name: user_details_params[:full_name]) - flash[:error] = "Failed to save your name. Please try again." - end - redirect_to redirect_path, inertia: { - errors: current_user.errors - } - end + def create + unless current_user.update(full_name: user_details_params[:full_name]) + flash[:error] = "Failed to save your name. Please try again." + end + redirect_to redirect_path, inertia: { errors: current_user.errors } + end - private + private - sig { returns(User) } - def current_user - T.cast(super, User) - end + sig { returns(User) } + def current_user + T.cast(super, User) + end - def redirect_path - bill_path(user_details_params[:bill_id], {with: "legislator,address"}) - end + def redirect_path + bill_path(user_details_params[:bill_id], { with: "legislator,address" }) + end - # Currently this flow only works on bill path, TODO: Decouple - def user_details_params - params.require(:user_detail).permit(:bill_id, :full_name) - end + # Currently this flow only works on bill path, TODO: Decouple + def user_details_params + params.require(:user_detail).permit(:bill_id, :full_name) + end + end end diff --git a/app/controllers/users/webauthn/registration_controller.rb b/app/controllers/users/webauthn/registration_controller.rb index 86db9322..f82a774c 100644 --- a/app/controllers/users/webauthn/registration_controller.rb +++ b/app/controllers/users/webauthn/registration_controller.rb @@ -3,99 +3,93 @@ # frozen_string_literal: true module Users - module Webauthn - class RegistrationController < ApplicationController - extend T::Sig - - skip_before_action :authenticate_user! - - def create - user = User.find_or_initialize_by( - phone: session[:verified_phone] - ) - - user.is_phone_verified = session[:verified_phone] == session[:phone] - - if user.is_phone_verified - - create_options = relying_party.options_for_registration( - user: { - name: session[:verified_phone], - id: user.webauthn_id - }, - authenticator_selection: {user_verification: "required"} - ) - - if user.valid? - session[:current_registration] = {challenge: create_options.challenge, user_attributes: user.attributes} - - render json: create_options - else - render json: {errors: user.errors.full_messages}, status: :unprocessable_entity - end - else - render json: {success: false, message: "Please confirm your phone number first."}, status: :ok + module Webauthn + class RegistrationController < ApplicationController + extend T::Sig + + skip_before_action :authenticate_user! + + def create + user = User.find_or_initialize_by(phone: session[:verified_phone]) + + user.is_phone_verified = session[:verified_phone] == session[:phone] + + if user.is_phone_verified + create_options = + relying_party.options_for_registration( + user: { + name: session[:verified_phone], + id: user.webauthn_id, + }, + authenticator_selection: { + user_verification: "required", + }, + ) + + if user.valid? + session[:current_registration] = +{ challenge: create_options.challenge, user_attributes: user.attributes } + + render json: create_options + else + render json: { errors: user.errors.full_messages }, status: :unprocessable_entity + end + else + render json: { success: false, message: "Please confirm your phone number first." }, status: :ok + end + end + + def callback + user = User.find_by(phone: session[:verified_phone]) + if user.present? + user.update!(user_attributes) + else + user = User.create!(user_attributes) + end + + begin + webauthn_passkey = relying_party.verify_registration(params, challenge, user_verification: true) + + passkey = + Passkey.new( + user:, + external_id: webauthn_passkey.id, + label: params[:passkey_label], + public_key: webauthn_passkey.public_key, + sign_count: webauthn_passkey.sign_count, + ) + + if passkey.save + sign_in(user) + + route_component(SwayRoutes::REGISTRATION) + else + render json: { success: false, message: "Couldn't register your Passkey" }, +status: :unprocessable_entity + end + rescue WebAuthn::Error => e + render json: { success: false, message: "Verification failed: #{e.message}" }, +status: :unprocessable_entity + ensure + session.delete(:current_registration) + end + end + + sig { returns(T::Hash[String, T.anything]) } + def user_attributes + session.dig(:current_registration, "user_attributes") + end + + def challenge + session.dig(:current_registration, "challenge") + end + + private + + sig { returns(ActionController::Parameters) } + def registration_params + params.permit(:passkey_label, :token) + end end - end - - def callback - user = User.find_by(phone: session[:verified_phone]) - if user.present? - user.update!(user_attributes) - else - user = User.create!(user_attributes) - end - - begin - webauthn_passkey = relying_party.verify_registration( - params, - challenge, - user_verification: true - ) - - passkey = Passkey.new( - user:, - external_id: webauthn_passkey.id, - label: params[:passkey_label], - public_key: webauthn_passkey.public_key, - sign_count: webauthn_passkey.sign_count - ) - - if passkey.save - sign_in(user) - - route_component(SwayRoutes::REGISTRATION) - else - render json: { - success: false, - message: "Couldn't register your Passkey" - }, status: :unprocessable_entity - end - rescue WebAuthn::Error => e - render json: { - success: false, - message: "Verification failed: #{e.message}" - }, status: :unprocessable_entity - ensure - session.delete(:current_registration) - end - end - - sig { returns(T::Hash[String, T.anything]) } - def user_attributes - session.dig(:current_registration, "user_attributes") - end - - def challenge - session.dig(:current_registration, "challenge") - end - - private - - sig { returns(ActionController::Parameters) } - def registration_params - params.permit(:passkey_label, :token) - end end - end end diff --git a/app/controllers/users/webauthn/sessions_controller.rb b/app/controllers/users/webauthn/sessions_controller.rb index 42086d61..8c11bd6f 100644 --- a/app/controllers/users/webauthn/sessions_controller.rb +++ b/app/controllers/users/webauthn/sessions_controller.rb @@ -3,104 +3,99 @@ # frozen_string_literal: true module Users - module Webauthn - class SessionsController < ApplicationController - extend T::Sig - include Authentication - - skip_before_action :authenticate_user! - - before_action :verify_valid_phone, only: %i[create] - - def create - user = User.find_by(phone:) - - if user&.has_passkey? - get_options = relying_party.options_for_authentication( - allow_credentials: user.passkeys.map { |p| { id: p.external_id, type: "public-key" } }, - user_verification: "required" - ) - - session[:current_authentication] = { challenge: get_options.challenge, phone: } - - render json: get_options - elsif phone.present? - if ENV.fetch("SKIP_PHONE_VERIFICATION", nil).present? - session[:phone] = phone - render json: { success: true }, status: :accepted - else - render json: { success: send_phone_verification(session, phone) }, status: :accepted - end - else - render json: { success: false }, status: :unprocessable_entity + module Webauthn + class SessionsController < ApplicationController + extend T::Sig + include Authentication + + skip_before_action :authenticate_user! + + before_action :verify_valid_phone, only: %i[create] + + def create + user = User.find_by(phone:) + + if user&.has_passkey? + get_options = + relying_party.options_for_authentication( + allow_credentials: user.passkeys.map { |p| { id: p.external_id, type: "public-key" } }, + user_verification: "required", + ) + + session[:current_authentication] = { challenge: get_options.challenge, phone: } + + render json: get_options + elsif phone.present? + if ENV.fetch("SKIP_PHONE_VERIFICATION", nil).present? + session[:phone] = phone + render json: { success: true }, status: :accepted + else + render json: { success: send_phone_verification(session, phone) }, status: :accepted + end + else + render json: { success: false }, status: :unprocessable_entity + end + end + + def callback + user = User.find_by(phone: session.dig(:current_authentication, "phone")) + raise "user #{session.dig(:current_authentication, "phone")} never initiated sign up" unless user + + begin + verified_webauthn_passkey, stored_passkey = + relying_party.verify_authentication( + public_key_credential_params, + session.dig(:current_authentication, "challenge"), + user_verification: true, + ) do |webauthn_passkey| + user + .passkeys + .where(external_id: [webauthn_passkey.id, +Base64.strict_encode64(webauthn_passkey.raw_id)]) + .first + end + + stored_passkey.update!(sign_count: verified_webauthn_passkey.sign_count) + sign_in(user) + + session[:verified_phone] = user.phone + if user.is_registration_complete + route_component(legislators_path) + else + route_component(sway_registration_index_path) + end + rescue WebAuthn::Error => e + render json: { success: false, message: "Verification failed: #{e.message}" }, +status: :unprocessable_entity + ensure + session.delete(:current_authentication) + end + end + + def destroy + sign_out + end + + private + + def session_params + params.permit(:phone, :publicKeyCredential, :token) + end + + def public_key_credential_params + params.require(:publicKeyCredential) + end + + sig { returns(T.nilable(String)) } + def phone + @phone ||= session_params[:phone]&.remove_non_digits + end + + def verify_valid_phone + return unless phone.blank? || phone&.size != 10 + + redirect_to(root_path, errors: { phone: "Phone must be 10 digits." }) + end end - end - - def callback - user = User.find_by(phone: session.dig(:current_authentication, "phone")) - raise "user #{session.dig(:current_authentication, 'phone')} never initiated sign up" unless user - - begin - verified_webauthn_passkey, stored_passkey = relying_party.verify_authentication( - public_key_credential_params, - session.dig(:current_authentication, "challenge"), - user_verification: true - ) do |webauthn_passkey| - user.passkeys.where( - external_id: [ - webauthn_passkey.id, - Base64.strict_encode64(webauthn_passkey.raw_id) - ] - ).first - end - - stored_passkey.update!(sign_count: verified_webauthn_passkey.sign_count) - sign_in(user) - - session[:verified_phone] = user.phone - if user.is_registration_complete - route_component(legislators_path) - else - route_component(sway_registration_index_path) - end - rescue WebAuthn::Error => e - render json: { - success: false, - message: "Verification failed: #{e.message}" - }, status: :unprocessable_entity - ensure - session.delete(:current_authentication) - end - end - - def destroy - sign_out - end - - private - - def session_params - params.permit(:phone, :publicKeyCredential, :token) - end - - def public_key_credential_params - # params.require(:publicKeyCredential).permit(:type, :id, :rawId, :authenticatorAttachment, - # :response, :userHandle, :clientExtensionResults) - params.require(:publicKeyCredential) - end - - sig { returns(T.nilable(String)) } - def phone - @_phone ||= session_params[:phone]&.remove_non_digits - end - - def verify_valid_phone - return unless phone.blank? || phone&.size != 10 - - redirect_to(root_path, errors: { - phone: "Phone must be 10 digits." - }) - end end - end end diff --git a/app/controllers/users/webauthn_controller.rb b/app/controllers/users/webauthn_controller.rb index 508964e0..630d4d2f 100644 --- a/app/controllers/users/webauthn_controller.rb +++ b/app/controllers/users/webauthn_controller.rb @@ -2,6 +2,6 @@ # typed: strict module Users - class WebauthnController < ApplicationController - end + class WebauthnController < ApplicationController + end end diff --git a/app/controllers/well_known_controller.rb b/app/controllers/well_known_controller.rb index 68943c86..36dabcb6 100644 --- a/app/controllers/well_known_controller.rb +++ b/app/controllers/well_known_controller.rb @@ -2,16 +2,10 @@ # https://web.dev/articles/webauthn-related-origin-requests class WellKnownController < ApplicationController - skip_before_action :authenticate_user! + skip_before_action :authenticate_user! - def index - Rails.logger.info("WellKnownController.index.request.host - #{request.host}") - if request.host == "app.sway.vote" - render json: { - origins: [ - "https://sway.vote" - ] - } + def index + Rails.logger.info("WellKnownController.index.request.host - #{request.host}") + render json: { origins: ["https://sway.vote"] } if request.host == "app.sway.vote" end - end end diff --git a/app/frontend/components/Layout.tsx b/app/frontend/components/Layout.tsx deleted file mode 100644 index 7f717e0b..00000000 --- a/app/frontend/components/Layout.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import Footer from "app/frontend/components/Footer"; -import AppDrawer from "app/frontend/components/drawer/AppDrawer"; -import React, { Fragment, PropsWithChildren } from "react"; - -interface IProps extends PropsWithChildren { - [key: string]: any; -} - -const Layout_: React.FC = ({ children, ...props }) => ( - - {React.Children.map(children, (child, i) => ( -
-
- {React.isValidElement(child) ? ( - React.cloneElement(child, { ...(child.props as Record), ...props }) - ) : ( - - )} -
-
- ))} - -